@obsrviq/widgets 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,64 +1,64 @@
1
- "use strict";var ObsrviqReplayBundle=(()=>{var jS=Object.create;var Vs=Object.defineProperty;var VS=Object.getOwnPropertyDescriptor;var GS=Object.getOwnPropertyNames;var XS=Object.getPrototypeOf,KS=Object.prototype.hasOwnProperty;var Tr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),QS=(e,t)=>{for(var r in t)Vs(e,r,{get:t[r],enumerable:!0})},dm=(e,t,r,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of GS(t))!KS.call(e,n)&&n!==r&&Vs(e,n,{get:()=>t[n],enumerable:!(a=VS(t,n))||a.enumerable});return e};var F=(e,t,r)=>(r=e!=null?jS(XS(e)):{},dm(t||!e||!e.__esModule?Vs(r,"default",{value:e,enumerable:!0}):r,e)),YS=e=>dm(Vs({},"__esModule",{value:!0}),e);var bm=Tr(oe=>{"use strict";var so=Symbol.for("react.element"),JS=Symbol.for("react.portal"),ZS=Symbol.for("react.fragment"),e0=Symbol.for("react.strict_mode"),t0=Symbol.for("react.profiler"),r0=Symbol.for("react.provider"),a0=Symbol.for("react.context"),n0=Symbol.for("react.forward_ref"),o0=Symbol.for("react.suspense"),s0=Symbol.for("react.memo"),i0=Symbol.for("react.lazy"),cm=Symbol.iterator;function l0(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var mm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},hm=Object.assign,gm={};function cn(e,t,r){this.props=e,this.context=t,this.refs=gm,this.updater=r||mm}cn.prototype.isReactComponent={};cn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};cn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function xm(){}xm.prototype=cn.prototype;function Iu(e,t,r){this.props=e,this.context=t,this.refs=gm,this.updater=r||mm}var Mu=Iu.prototype=new xm;Mu.constructor=Iu;hm(Mu,cn.prototype);Mu.isPureReactComponent=!0;var fm=Array.isArray,vm=Object.prototype.hasOwnProperty,_u={current:null},ym={key:!0,ref:!0,__self:!0,__source:!0};function wm(e,t,r){var a,n={},o=null,i=null;if(t!=null)for(a in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)vm.call(t,a)&&!ym.hasOwnProperty(a)&&(n[a]=t[a]);var s=arguments.length-2;if(s===1)n.children=r;else if(1<s){for(var l=Array(s),d=0;d<s;d++)l[d]=arguments[d+2];n.children=l}if(e&&e.defaultProps)for(a in s=e.defaultProps,s)n[a]===void 0&&(n[a]=s[a]);return{$$typeof:so,type:e,key:o,ref:i,props:n,_owner:_u.current}}function u0(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Ru(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function d0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var pm=/\/+/g;function ku(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d0(""+e.key):t.toString(36)}function Xs(e,t,r,a,n){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(o){case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case so:case JS:i=!0}}if(i)return i=e,n=n(i),e=a===""?"."+ku(i,0):a,fm(n)?(r="",e!=null&&(r=e.replace(pm,"$&/")+"/"),Xs(n,t,r,"",function(d){return d})):n!=null&&(Ru(n)&&(n=u0(n,r+(!n.key||i&&i.key===n.key?"":(""+n.key).replace(pm,"$&/")+"/")+e)),t.push(n)),1;if(i=0,a=a===""?".":a+":",fm(e))for(var s=0;s<e.length;s++){o=e[s];var l=a+ku(o,s);i+=Xs(o,t,r,l,n)}else if(l=l0(e),typeof l=="function")for(e=l.call(e),s=0;!(o=e.next()).done;)o=o.value,l=a+ku(o,s++),i+=Xs(o,t,r,l,n);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return i}function Gs(e,t,r){if(e==null)return e;var a=[],n=0;return Xs(e,a,"","",function(o){return t.call(r,o,n++)}),a}function c0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},Ks={transition:null},f0={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:Ks,ReactCurrentOwner:_u};function Sm(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:Gs,forEach:function(e,t,r){Gs(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Gs(e,function(){t++}),t},toArray:function(e){return Gs(e,function(t){return t})||[]},only:function(e){if(!Ru(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=cn;oe.Fragment=ZS;oe.Profiler=t0;oe.PureComponent=Iu;oe.StrictMode=e0;oe.Suspense=o0;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=f0;oe.act=Sm;oe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=hm({},e.props),n=e.key,o=e.ref,i=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,i=_u.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)vm.call(t,l)&&!ym.hasOwnProperty(l)&&(a[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)a.children=r;else if(1<l){s=Array(l);for(var d=0;d<l;d++)s[d]=arguments[d+2];a.children=s}return{$$typeof:so,type:e.type,key:n,ref:o,props:a,_owner:i}};oe.createContext=function(e){return e={$$typeof:a0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:r0,_context:e},e.Consumer=e};oe.createElement=wm;oe.createFactory=function(e){var t=wm.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:n0,render:e}};oe.isValidElement=Ru;oe.lazy=function(e){return{$$typeof:i0,_payload:{_status:-1,_result:e},_init:c0}};oe.memo=function(e,t){return{$$typeof:s0,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Ks.transition;Ks.transition={};try{e()}finally{Ks.transition=t}};oe.unstable_act=Sm;oe.useCallback=function(e,t){return wt.current.useCallback(e,t)};oe.useContext=function(e){return wt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return wt.current.useEffect(e,t)};oe.useId=function(){return wt.current.useId()};oe.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};oe.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return wt.current.useMemo(e,t)};oe.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};oe.useRef=function(e){return wt.current.useRef(e)};oe.useState=function(e){return wt.current.useState(e)};oe.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};oe.useTransition=function(){return wt.current.useTransition()};oe.version="18.3.1"});var fe=Tr((_M,Cm)=>{"use strict";Cm.exports=bm()});var Nm=Tr(Ee=>{"use strict";function Nu(e,t){var r=e.length;e.push(t);e:for(;0<r;){var a=r-1>>>1,n=e[a];if(0<Qs(n,t))e[a]=t,e[r]=n,r=a;else break e}}function ir(e){return e.length===0?null:e[0]}function Js(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var a=0,n=e.length,o=n>>>1;a<o;){var i=2*(a+1)-1,s=e[i],l=i+1,d=e[l];if(0>Qs(s,r))l<n&&0>Qs(d,s)?(e[a]=d,e[l]=r,a=l):(e[a]=s,e[i]=r,a=i);else if(l<n&&0>Qs(d,r))e[a]=d,e[l]=r,a=l;else break e}}return t}function Qs(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Lm=performance,Ee.unstable_now=function(){return Lm.now()}):(Eu=Date,km=Eu.now(),Ee.unstable_now=function(){return Eu.now()-km});var Lm,Eu,km,Cr=[],Yr=[],p0=1,jt=null,dt=3,Zs=!1,_a=!1,lo=!1,_m=typeof setTimeout=="function"?setTimeout:null,Rm=typeof clearTimeout=="function"?clearTimeout:null,Im=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Au(e){for(var t=ir(Yr);t!==null;){if(t.callback===null)Js(Yr);else if(t.startTime<=e)Js(Yr),t.sortIndex=t.expirationTime,Nu(Cr,t);else break;t=ir(Yr)}}function Du(e){if(lo=!1,Au(e),!_a)if(ir(Cr)!==null)_a=!0,Fu(Ou);else{var t=ir(Yr);t!==null&&Bu(Du,t.startTime-e)}}function Ou(e,t){_a=!1,lo&&(lo=!1,Rm(uo),uo=-1),Zs=!0;var r=dt;try{for(Au(t),jt=ir(Cr);jt!==null&&(!(jt.expirationTime>t)||e&&!Tm());){var a=jt.callback;if(typeof a=="function"){jt.callback=null,dt=jt.priorityLevel;var n=a(jt.expirationTime<=t);t=Ee.unstable_now(),typeof n=="function"?jt.callback=n:jt===ir(Cr)&&Js(Cr),Au(t)}else Js(Cr);jt=ir(Cr)}if(jt!==null)var o=!0;else{var i=ir(Yr);i!==null&&Bu(Du,i.startTime-t),o=!1}return o}finally{jt=null,dt=r,Zs=!1}}var ei=!1,Ys=null,uo=-1,Em=5,Pm=-1;function Tm(){return!(Ee.unstable_now()-Pm<Em)}function Pu(){if(Ys!==null){var e=Ee.unstable_now();Pm=e;var t=!0;try{t=Ys(!0,e)}finally{t?io():(ei=!1,Ys=null)}}else ei=!1}var io;typeof Im=="function"?io=function(){Im(Pu)}:typeof MessageChannel<"u"?(Tu=new MessageChannel,Mm=Tu.port2,Tu.port1.onmessage=Pu,io=function(){Mm.postMessage(null)}):io=function(){_m(Pu,0)};var Tu,Mm;function Fu(e){Ys=e,ei||(ei=!0,io())}function Bu(e,t){uo=_m(function(){e(Ee.unstable_now())},t)}Ee.unstable_IdlePriority=5;Ee.unstable_ImmediatePriority=1;Ee.unstable_LowPriority=4;Ee.unstable_NormalPriority=3;Ee.unstable_Profiling=null;Ee.unstable_UserBlockingPriority=2;Ee.unstable_cancelCallback=function(e){e.callback=null};Ee.unstable_continueExecution=function(){_a||Zs||(_a=!0,Fu(Ou))};Ee.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Em=0<e?Math.floor(1e3/e):5};Ee.unstable_getCurrentPriorityLevel=function(){return dt};Ee.unstable_getFirstCallbackNode=function(){return ir(Cr)};Ee.unstable_next=function(e){switch(dt){case 1:case 2:case 3:var t=3;break;default:t=dt}var r=dt;dt=t;try{return e()}finally{dt=r}};Ee.unstable_pauseExecution=function(){};Ee.unstable_requestPaint=function(){};Ee.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dt;dt=e;try{return t()}finally{dt=r}};Ee.unstable_scheduleCallback=function(e,t,r){var a=Ee.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?a+r:a):r=a,e){case 1:var n=-1;break;case 2:n=250;break;case 5:n=1073741823;break;case 4:n=1e4;break;default:n=5e3}return n=r+n,e={id:p0++,callback:t,priorityLevel:e,startTime:r,expirationTime:n,sortIndex:-1},r>a?(e.sortIndex=r,Nu(Yr,e),ir(Cr)===null&&e===ir(Yr)&&(lo?(Rm(uo),uo=-1):lo=!0,Bu(Du,r-a))):(e.sortIndex=n,Nu(Cr,e),_a||Zs||(_a=!0,Fu(Ou))),e};Ee.unstable_shouldYield=Tm;Ee.unstable_wrapCallback=function(e){var t=dt;return function(){var r=dt;dt=t;try{return e.apply(this,arguments)}finally{dt=r}}}});var Dm=Tr((EM,Am)=>{"use strict";Am.exports=Nm()});var zx=Tr(qt=>{"use strict";var m0=fe(),zt=Dm();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var $h=new Set,To={};function qa(e,t){Tn(e,t),Tn(e+"Capture",t)}function Tn(e,t){for(To[e]=t,e=0;e<t.length;e++)$h.add(t[e])}var Br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),id=Object.prototype.hasOwnProperty,h0=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Om={},Fm={};function g0(e){return id.call(Fm,e)?!0:id.call(Om,e)?!1:h0.test(e)?Fm[e]=!0:(Om[e]=!0,!1)}function x0(e,t,r,a){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return a?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function v0(e,t,r,a){if(t===null||typeof t>"u"||x0(e,t,r,a))return!0;if(a)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,r,a,n,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=a,this.attributeNamespace=n,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var Zd=/[\-:]([a-z])/g;function ec(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Zd,ec);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function tc(e,t,r,a){var n=ot.hasOwnProperty(t)?ot[t]:null;(n!==null?n.type!==0:a||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(v0(t,r,n,a)&&(r=null),a||n===null?g0(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):n.mustUseProperty?e[n.propertyName]=r===null?n.type===3?!1:"":r:(t=n.attributeName,a=n.attributeNamespace,r===null?e.removeAttribute(t):(n=n.type,r=n===3||n===4&&r===!0?"":""+r,a?e.setAttributeNS(a,t,r):e.setAttribute(t,r))))}var $r=m0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ti=Symbol.for("react.element"),mn=Symbol.for("react.portal"),hn=Symbol.for("react.fragment"),rc=Symbol.for("react.strict_mode"),ld=Symbol.for("react.profiler"),Hh=Symbol.for("react.provider"),Wh=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),ud=Symbol.for("react.suspense"),dd=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),jh=Symbol.for("react.offscreen"),Bm=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=Bm&&e[Bm]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,zu;function yo(e){if(zu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);zu=t&&t[1]||""}return`
2
- `+zu+e}var Uu=!1;function qu(e,t){if(!e||Uu)return"";Uu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var a=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){a=d}e.call(t.prototype)}else{try{throw Error()}catch(d){a=d}e()}}catch(d){if(d&&a&&typeof d.stack=="string"){for(var n=d.stack.split(`
3
- `),o=a.stack.split(`
4
- `),i=n.length-1,s=o.length-1;1<=i&&0<=s&&n[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(n[i]!==o[s]){if(i!==1||s!==1)do if(i--,s--,0>s||n[i]!==o[s]){var l=`
5
- `+n[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=i&&0<=s);break}}}finally{Uu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yo(e):""}function y0(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=qu(e.type,!1),e;case 11:return e=qu(e.type.render,!1),e;case 1:return e=qu(e.type,!0),e;default:return""}}function cd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case hn:return"Fragment";case mn:return"Portal";case ld:return"Profiler";case rc:return"StrictMode";case ud:return"Suspense";case dd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Wh:return(e.displayName||"Context")+".Consumer";case Hh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case nc:return t=e.displayName||null,t!==null?t:cd(e.type)||"Memo";case Zr:t=e._payload,e=e._init;try{return cd(e(t))}catch{}}return null}function w0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cd(t);case 8:return t===rc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function pa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Vh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function S0(e){var t=Vh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var n=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(i){a=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(i){a=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ri(e){e._valueTracker||(e._valueTracker=S0(e))}function Gh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),a="";return e&&(a=Vh(e)?e.checked?"true":"false":e.value),e=a,e!==r?(t.setValue(e),!0):!1}function Ei(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function fd(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function zm(e,t){var r=t.defaultValue==null?"":t.defaultValue,a=t.checked!=null?t.checked:t.defaultChecked;r=pa(t.value!=null?t.value:r),e._wrapperState={initialChecked:a,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Xh(e,t){t=t.checked,t!=null&&tc(e,"checked",t,!1)}function pd(e,t){Xh(e,t);var r=pa(t.value),a=t.type;if(r!=null)a==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(a==="submit"||a==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?md(e,t.type,r):t.hasOwnProperty("defaultValue")&&md(e,t.type,pa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Um(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!(a!=="submit"&&a!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function md(e,t,r){(t!=="number"||Ei(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wo=Array.isArray;function In(e,t,r,a){if(e=e.options,t){t={};for(var n=0;n<r.length;n++)t["$"+r[n]]=!0;for(r=0;r<e.length;r++)n=t.hasOwnProperty("$"+e[r].value),e[r].selected!==n&&(e[r].selected=n),n&&a&&(e[r].defaultSelected=!0)}else{for(r=""+pa(r),t=null,n=0;n<e.length;n++){if(e[n].value===r){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function hd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function qm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(P(92));if(wo(r)){if(1<r.length)throw Error(P(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:pa(r)}}function Kh(e,t){var r=pa(t.value),a=pa(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),a!=null&&(e.defaultValue=""+a)}function $m(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Qh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function gd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Qh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,Yh=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,a,n){MSApp.execUnsafeLocalFunction(function(){return e(t,r,a,n)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function No(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},b0=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){b0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function Jh(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function Zh(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var a=r.indexOf("--")===0,n=Jh(r,t[r],a);r==="float"&&(r="cssFloat"),a?e.setProperty(r,n):e[r]=n}}var C0=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xd(e,t){if(t){if(C0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function vd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yd=null;function oc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var wd=null,Mn=null,_n=null;function Hm(e){if(e=Yo(e)){if(typeof wd!="function")throw Error(P(280));var t=e.stateNode;t&&(t=nl(t),wd(e.stateNode,e.type,t))}}function eg(e){Mn?_n?_n.push(e):_n=[e]:Mn=e}function tg(){if(Mn){var e=Mn,t=_n;if(_n=Mn=null,Hm(e),t)for(e=0;e<t.length;e++)Hm(t[e])}}function rg(e,t){return e(t)}function ag(){}var $u=!1;function ng(e,t,r){if($u)return e(t,r);$u=!0;try{return rg(e,t,r)}finally{$u=!1,(Mn!==null||_n!==null)&&(ag(),tg())}}function Ao(e,t){var r=e.stateNode;if(r===null)return null;var a=nl(r);if(a===null)return null;r=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(P(231,t,typeof r));return r}var Sd=!1;if(Br)try{fn={},Object.defineProperty(fn,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",fn,fn),window.removeEventListener("test",fn,fn)}catch{Sd=!1}var fn;function L0(e,t,r,a,n,o,i,s,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Lo=!1,Pi=null,Ti=!1,bd=null,k0={onError:function(e){Lo=!0,Pi=e}};function I0(e,t,r,a,n,o,i,s,l){Lo=!1,Pi=null,L0.apply(k0,arguments)}function M0(e,t,r,a,n,o,i,s,l){if(I0.apply(this,arguments),Lo){if(Lo){var d=Pi;Lo=!1,Pi=null}else throw Error(P(198));Ti||(Ti=!0,bd=d)}}function $a(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function og(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Wm(e){if($a(e)!==e)throw Error(P(188))}function _0(e){var t=e.alternate;if(!t){if(t=$a(e),t===null)throw Error(P(188));return t!==e?null:e}for(var r=e,a=t;;){var n=r.return;if(n===null)break;var o=n.alternate;if(o===null){if(a=n.return,a!==null){r=a;continue}break}if(n.child===o.child){for(o=n.child;o;){if(o===r)return Wm(n),e;if(o===a)return Wm(n),t;o=o.sibling}throw Error(P(188))}if(r.return!==a.return)r=n,a=o;else{for(var i=!1,s=n.child;s;){if(s===r){i=!0,r=n,a=o;break}if(s===a){i=!0,a=n,r=o;break}s=s.sibling}if(!i){for(s=o.child;s;){if(s===r){i=!0,r=o,a=n;break}if(s===a){i=!0,a=o,r=n;break}s=s.sibling}if(!i)throw Error(P(189))}}if(r.alternate!==a)throw Error(P(190))}if(r.tag!==3)throw Error(P(188));return r.stateNode.current===r?e:t}function sg(e){return e=_0(e),e!==null?ig(e):null}function ig(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=ig(e);if(t!==null)return t;e=e.sibling}return null}var lg=zt.unstable_scheduleCallback,jm=zt.unstable_cancelCallback,R0=zt.unstable_shouldYield,E0=zt.unstable_requestPaint,Ve=zt.unstable_now,P0=zt.unstable_getCurrentPriorityLevel,sc=zt.unstable_ImmediatePriority,ug=zt.unstable_UserBlockingPriority,Ni=zt.unstable_NormalPriority,T0=zt.unstable_LowPriority,dg=zt.unstable_IdlePriority,el=null,Mr=null;function N0(e){if(Mr&&typeof Mr.onCommitFiberRoot=="function")try{Mr.onCommitFiberRoot(el,e,void 0,(e.current.flags&128)===128)}catch{}}var fr=Math.clz32?Math.clz32:O0,A0=Math.log,D0=Math.LN2;function O0(e){return e>>>=0,e===0?32:31-(A0(e)/D0|0)|0}var ni=64,oi=4194304;function So(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ai(e,t){var r=e.pendingLanes;if(r===0)return 0;var a=0,n=e.suspendedLanes,o=e.pingedLanes,i=r&268435455;if(i!==0){var s=i&~n;s!==0?a=So(s):(o&=i,o!==0&&(a=So(o)))}else i=r&~n,i!==0?a=So(i):o!==0&&(a=So(o));if(a===0)return 0;if(t!==0&&t!==a&&(t&n)===0&&(n=a&-a,o=t&-t,n>=o||n===16&&(o&4194240)!==0))return t;if((a&4)!==0&&(a|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=a;0<t;)r=31-fr(t),n=1<<r,a|=e[r],t&=~n;return a}function F0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function B0(e,t){for(var r=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-fr(o),s=1<<i,l=n[i];l===-1?((s&r)===0||(s&a)!==0)&&(n[i]=F0(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}function Cd(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cg(){var e=ni;return ni<<=1,(ni&4194240)===0&&(ni=64),e}function Hu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ko(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=r}function z0(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var a=e.eventTimes;for(e=e.expirationTimes;0<r;){var n=31-fr(r),o=1<<n;t[n]=0,a[n]=-1,e[n]=-1,r&=~o}}function ic(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var a=31-fr(r),n=1<<a;n&t|e[a]&t&&(e[a]|=t),r&=~n}}var Le=0;function fg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var pg,lc,mg,hg,gg,Ld=!1,si=[],oa=null,sa=null,ia=null,Do=new Map,Oo=new Map,ta=[],U0="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Vm(e,t){switch(e){case"focusin":case"focusout":oa=null;break;case"dragenter":case"dragleave":sa=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function fo(e,t,r,a,n,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:a,nativeEvent:o,targetContainers:[n]},t!==null&&(t=Yo(t),t!==null&&lc(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function q0(e,t,r,a,n){switch(t){case"focusin":return oa=fo(oa,e,t,r,a,n),!0;case"dragenter":return sa=fo(sa,e,t,r,a,n),!0;case"mouseover":return ia=fo(ia,e,t,r,a,n),!0;case"pointerover":var o=n.pointerId;return Do.set(o,fo(Do.get(o)||null,e,t,r,a,n)),!0;case"gotpointercapture":return o=n.pointerId,Oo.set(o,fo(Oo.get(o)||null,e,t,r,a,n)),!0}return!1}function xg(e){var t=Pa(e.target);if(t!==null){var r=$a(t);if(r!==null){if(t=r.tag,t===13){if(t=og(r),t!==null){e.blockedOn=t,gg(e.priority,function(){mg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=kd(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var a=new r.constructor(r.type,r);yd=a,r.target.dispatchEvent(a),yd=null}else return t=Yo(r),t!==null&&lc(t),e.blockedOn=r,!1;t.shift()}return!0}function Gm(e,t,r){wi(e)&&r.delete(t)}function $0(){Ld=!1,oa!==null&&wi(oa)&&(oa=null),sa!==null&&wi(sa)&&(sa=null),ia!==null&&wi(ia)&&(ia=null),Do.forEach(Gm),Oo.forEach(Gm)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,Ld||(Ld=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,$0)))}function Fo(e){function t(n){return po(n,e)}if(0<si.length){po(si[0],e);for(var r=1;r<si.length;r++){var a=si[r];a.blockedOn===e&&(a.blockedOn=null)}}for(oa!==null&&po(oa,e),sa!==null&&po(sa,e),ia!==null&&po(ia,e),Do.forEach(t),Oo.forEach(t),r=0;r<ta.length;r++)a=ta[r],a.blockedOn===e&&(a.blockedOn=null);for(;0<ta.length&&(r=ta[0],r.blockedOn===null);)xg(r),r.blockedOn===null&&ta.shift()}var Rn=$r.ReactCurrentBatchConfig,Di=!0;function H0(e,t,r,a){var n=Le,o=Rn.transition;Rn.transition=null;try{Le=1,uc(e,t,r,a)}finally{Le=n,Rn.transition=o}}function W0(e,t,r,a){var n=Le,o=Rn.transition;Rn.transition=null;try{Le=4,uc(e,t,r,a)}finally{Le=n,Rn.transition=o}}function uc(e,t,r,a){if(Di){var n=kd(e,t,r,a);if(n===null)Qu(e,t,a,Oi,r),Vm(e,a);else if(q0(n,e,t,r,a))a.stopPropagation();else if(Vm(e,a),t&4&&-1<U0.indexOf(e)){for(;n!==null;){var o=Yo(n);if(o!==null&&pg(o),o=kd(e,t,r,a),o===null&&Qu(e,t,a,Oi,r),o===n)break;n=o}n!==null&&a.stopPropagation()}else Qu(e,t,a,null,r)}}var Oi=null;function kd(e,t,r,a){if(Oi=null,e=oc(a),e=Pa(e),e!==null)if(t=$a(e),t===null)e=null;else if(r=t.tag,r===13){if(e=og(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Oi=e,null}function vg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(P0()){case sc:return 1;case ug:return 4;case Ni:case T0:return 16;case dg:return 536870912;default:return 16}default:return 16}}var aa=null,dc=null,Si=null;function yg(){if(Si)return Si;var e,t=dc,r=t.length,a,n="value"in aa?aa.value:aa.textContent,o=n.length;for(e=0;e<r&&t[e]===n[e];e++);var i=r-e;for(a=1;a<=i&&t[r-a]===n[o-a];a++);return Si=n.slice(e,1<a?1-a:void 0)}function bi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ii(){return!0}function Xm(){return!1}function Ut(e){function t(r,a,n,o,i){this._reactName=r,this._targetInst=n,this.type=a,this.nativeEvent=o,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(r=e[s],this[s]=r?r(o):o[s]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?ii:Xm,this.isPropagationStopped=Xm,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var zn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},cc=Ut(zn),Qo=$e({},zn,{view:0,detail:0}),j0=Ut(Qo),Wu,ju,mo,tl=$e({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:fc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mo&&(mo&&e.type==="mousemove"?(Wu=e.screenX-mo.screenX,ju=e.screenY-mo.screenY):ju=Wu=0,mo=e),Wu)},movementY:function(e){return"movementY"in e?e.movementY:ju}}),Km=Ut(tl),V0=$e({},tl,{dataTransfer:0}),G0=Ut(V0),X0=$e({},Qo,{relatedTarget:0}),Vu=Ut(X0),K0=$e({},zn,{animationName:0,elapsedTime:0,pseudoElement:0}),Q0=Ut(K0),Y0=$e({},zn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),J0=Ut(Y0),Z0=$e({},zn,{data:0}),Qm=Ut(Z0),eb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tb={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},rb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ab(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=rb[e])?!!t[e]:!1}function fc(){return ab}var nb=$e({},Qo,{key:function(e){if(e.key){var t=eb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=bi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?tb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:fc,charCode:function(e){return e.type==="keypress"?bi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?bi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ob=Ut(nb),sb=$e({},tl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ym=Ut(sb),ib=$e({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:fc}),lb=Ut(ib),ub=$e({},zn,{propertyName:0,elapsedTime:0,pseudoElement:0}),db=Ut(ub),cb=$e({},tl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),fb=Ut(cb),pb=[9,13,27,32],pc=Br&&"CompositionEvent"in window,ko=null;Br&&"documentMode"in document&&(ko=document.documentMode);var mb=Br&&"TextEvent"in window&&!ko,wg=Br&&(!pc||ko&&8<ko&&11>=ko),Jm=" ",Zm=!1;function Sg(e,t){switch(e){case"keyup":return pb.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function hb(e,t){switch(e){case"compositionend":return bg(t);case"keypress":return t.which!==32?null:(Zm=!0,Jm);case"textInput":return e=t.data,e===Jm&&Zm?null:e;default:return null}}function gb(e,t){if(gn)return e==="compositionend"||!pc&&Sg(e,t)?(e=yg(),Si=dc=aa=null,gn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return wg&&t.locale!=="ko"?null:t.data;default:return null}}var xb={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function eh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!xb[e.type]:t==="textarea"}function Cg(e,t,r,a){eg(a),t=Fi(t,"onChange"),0<t.length&&(r=new cc("onChange","change",null,r,a),e.push({event:r,listeners:t}))}var Io=null,Bo=null;function vb(e){Ag(e,0)}function rl(e){var t=yn(e);if(Gh(t))return e}function yb(e,t){if(e==="change")return t}var Lg=!1;Br&&(Br?(ui="oninput"in document,ui||(Gu=document.createElement("div"),Gu.setAttribute("oninput","return;"),ui=typeof Gu.oninput=="function"),li=ui):li=!1,Lg=li&&(!document.documentMode||9<document.documentMode));var li,ui,Gu;function th(){Io&&(Io.detachEvent("onpropertychange",kg),Bo=Io=null)}function kg(e){if(e.propertyName==="value"&&rl(Bo)){var t=[];Cg(t,Bo,e,oc(e)),ng(vb,t)}}function wb(e,t,r){e==="focusin"?(th(),Io=t,Bo=r,Io.attachEvent("onpropertychange",kg)):e==="focusout"&&th()}function Sb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return rl(Bo)}function bb(e,t){if(e==="click")return rl(t)}function Cb(e,t){if(e==="input"||e==="change")return rl(t)}function Lb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mr=typeof Object.is=="function"?Object.is:Lb;function zo(e,t){if(mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(a=0;a<r.length;a++){var n=r[a];if(!id.call(t,n)||!mr(e[n],t[n]))return!1}return!0}function rh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ah(e,t){var r=rh(e);e=0;for(var a;r;){if(r.nodeType===3){if(a=e+r.textContent.length,e<=t&&a>=t)return{node:r,offset:t-e};e=a}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=rh(r)}}function Ig(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ig(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Mg(){for(var e=window,t=Ei();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Ei(e.document)}return t}function mc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function kb(e){var t=Mg(),r=e.focusedElem,a=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Ig(r.ownerDocument.documentElement,r)){if(a!==null&&mc(r)){if(t=a.start,e=a.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=r.textContent.length,o=Math.min(a.start,n);a=a.end===void 0?o:Math.min(a.end,n),!e.extend&&o>a&&(n=a,a=o,o=n),n=ah(r,o);var i=ah(r,a);n&&i&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),o>a?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ib=Br&&"documentMode"in document&&11>=document.documentMode,xn=null,Id=null,Mo=null,Md=!1;function nh(e,t,r){var a=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Md||xn==null||xn!==Ei(a)||(a=xn,"selectionStart"in a&&mc(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Mo&&zo(Mo,a)||(Mo=a,a=Fi(Id,"onSelect"),0<a.length&&(t=new cc("onSelect","select",null,t,r),e.push({event:t,listeners:a}),t.target=xn)))}function di(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var vn={animationend:di("Animation","AnimationEnd"),animationiteration:di("Animation","AnimationIteration"),animationstart:di("Animation","AnimationStart"),transitionend:di("Transition","TransitionEnd")},Xu={},_g={};Br&&(_g=document.createElement("div").style,"AnimationEvent"in window||(delete vn.animationend.animation,delete vn.animationiteration.animation,delete vn.animationstart.animation),"TransitionEvent"in window||delete vn.transitionend.transition);function al(e){if(Xu[e])return Xu[e];if(!vn[e])return e;var t=vn[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in _g)return Xu[e]=t[r];return e}var Rg=al("animationend"),Eg=al("animationiteration"),Pg=al("animationstart"),Tg=al("transitionend"),Ng=new Map,oh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ha(e,t){Ng.set(e,t),qa(t,[e])}for(ci=0;ci<oh.length;ci++)fi=oh[ci],sh=fi.toLowerCase(),ih=fi[0].toUpperCase()+fi.slice(1),ha(sh,"on"+ih);var fi,sh,ih,ci;ha(Rg,"onAnimationEnd");ha(Eg,"onAnimationIteration");ha(Pg,"onAnimationStart");ha("dblclick","onDoubleClick");ha("focusin","onFocus");ha("focusout","onBlur");ha(Tg,"onTransitionEnd");Tn("onMouseEnter",["mouseout","mouseover"]);Tn("onMouseLeave",["mouseout","mouseover"]);Tn("onPointerEnter",["pointerout","pointerover"]);Tn("onPointerLeave",["pointerout","pointerover"]);qa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));qa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));qa("onBeforeInput",["compositionend","keypress","textInput","paste"]);qa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));qa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));qa("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bo="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Mb=new Set("cancel close invalid load scroll toggle".split(" ").concat(bo));function lh(e,t,r){var a=e.type||"unknown-event";e.currentTarget=r,M0(a,t,void 0,e),e.currentTarget=null}function Ag(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var a=e[r],n=a.event;a=a.listeners;e:{var o=void 0;if(t)for(var i=a.length-1;0<=i;i--){var s=a[i],l=s.instance,d=s.currentTarget;if(s=s.listener,l!==o&&n.isPropagationStopped())break e;lh(n,s,d),o=l}else for(i=0;i<a.length;i++){if(s=a[i],l=s.instance,d=s.currentTarget,s=s.listener,l!==o&&n.isPropagationStopped())break e;lh(n,s,d),o=l}}}if(Ti)throw e=bd,Ti=!1,bd=null,e}function Ae(e,t){var r=t[Td];r===void 0&&(r=t[Td]=new Set);var a=e+"__bubble";r.has(a)||(Dg(t,e,2,!1),r.add(a))}function Ku(e,t,r){var a=0;t&&(a|=4),Dg(r,e,a,t)}var pi="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[pi]){e[pi]=!0,$h.forEach(function(r){r!=="selectionchange"&&(Mb.has(r)||Ku(r,!1,e),Ku(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[pi]||(t[pi]=!0,Ku("selectionchange",!1,t))}}function Dg(e,t,r,a){switch(vg(t)){case 1:var n=H0;break;case 4:n=W0;break;default:n=uc}r=n.bind(null,t,r,e),n=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,r,{capture:!0,passive:n}):e.addEventListener(t,r,!0):n!==void 0?e.addEventListener(t,r,{passive:n}):e.addEventListener(t,r,!1)}function Qu(e,t,r,a,n){var o=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var i=a.tag;if(i===3||i===4){var s=a.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(i===4)for(i=a.return;i!==null;){var l=i.tag;if((l===3||l===4)&&(l=i.stateNode.containerInfo,l===n||l.nodeType===8&&l.parentNode===n))return;i=i.return}for(;s!==null;){if(i=Pa(s),i===null)return;if(l=i.tag,l===5||l===6){a=o=i;continue e}s=s.parentNode}}a=a.return}ng(function(){var d=o,u=oc(r),f=[];e:{var c=Ng.get(e);if(c!==void 0){var p=cc,h=e;switch(e){case"keypress":if(bi(r)===0)break e;case"keydown":case"keyup":p=ob;break;case"focusin":h="focus",p=Vu;break;case"focusout":h="blur",p=Vu;break;case"beforeblur":case"afterblur":p=Vu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=Km;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=G0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=lb;break;case Rg:case Eg:case Pg:p=Q0;break;case Tg:p=db;break;case"scroll":p=j0;break;case"wheel":p=fb;break;case"copy":case"cut":case"paste":p=J0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Ym}var m=(t&4)!==0,S=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var b=v.stateNode;if(v.tag===5&&b!==null&&(v=b,g!==null&&(b=Ao(x,g),b!=null&&m.push(qo(x,b,v)))),S)break;x=x.return}0<m.length&&(c=new p(c,h,null,r,u),f.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",c&&r!==yd&&(h=r.relatedTarget||r.fromElement)&&(Pa(h)||h[zr]))break e;if((p||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,p?(h=r.relatedTarget||r.toElement,p=d,h=h?Pa(h):null,h!==null&&(S=$a(h),h!==S||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=d),p!==h)){if(m=Km,b="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=Ym,b="onPointerLeave",g="onPointerEnter",x="pointer"),S=p==null?c:yn(p),v=h==null?c:yn(h),c=new m(b,x+"leave",p,r,u),c.target=S,c.relatedTarget=v,b=null,Pa(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=S,b=m),S=b,p&&h)t:{for(m=p,g=h,x=0,v=m;v;v=pn(v))x++;for(v=0,b=g;b;b=pn(b))v++;for(;0<x-v;)m=pn(m),x--;for(;0<v-x;)g=pn(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=pn(m),g=pn(g)}m=null}else m=null;p!==null&&uh(f,c,p,m,!1),h!==null&&S!==null&&uh(f,S,h,m,!0)}}e:{if(c=d?yn(d):window,p=c.nodeName&&c.nodeName.toLowerCase(),p==="select"||p==="input"&&c.type==="file")var w=yb;else if(eh(c))if(Lg)w=Cb;else{w=Sb;var y=wb}else(p=c.nodeName)&&p.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(w=bb);if(w&&(w=w(e,d))){Cg(f,w,r,u);break e}y&&y(e,c,d),e==="focusout"&&(y=c._wrapperState)&&y.controlled&&c.type==="number"&&md(c,"number",c.value)}switch(y=d?yn(d):window,e){case"focusin":(eh(y)||y.contentEditable==="true")&&(xn=y,Id=d,Mo=null);break;case"focusout":Mo=Id=xn=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,nh(f,r,u);break;case"selectionchange":if(Ib)break;case"keydown":case"keyup":nh(f,r,u)}var L;if(pc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else gn?Sg(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(wg&&r.locale!=="ko"&&(gn||C!=="onCompositionStart"?C==="onCompositionEnd"&&gn&&(L=yg()):(aa=u,dc="value"in aa?aa.value:aa.textContent,gn=!0)),y=Fi(d,C),0<y.length&&(C=new Qm(C,e,null,r,u),f.push({event:C,listeners:y}),L?C.data=L:(L=bg(r),L!==null&&(C.data=L)))),(L=mb?hb(e,r):gb(e,r))&&(d=Fi(d,"onBeforeInput"),0<d.length&&(u=new Qm("onBeforeInput","beforeinput",null,r,u),f.push({event:u,listeners:d}),u.data=L))}Ag(f,t)})}function qo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Fi(e,t){for(var r=t+"Capture",a=[];e!==null;){var n=e,o=n.stateNode;n.tag===5&&o!==null&&(n=o,o=Ao(e,r),o!=null&&a.unshift(qo(e,o,n)),o=Ao(e,t),o!=null&&a.push(qo(e,o,n))),e=e.return}return a}function pn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function uh(e,t,r,a,n){for(var o=t._reactName,i=[];r!==null&&r!==a;){var s=r,l=s.alternate,d=s.stateNode;if(l!==null&&l===a)break;s.tag===5&&d!==null&&(s=d,n?(l=Ao(r,o),l!=null&&i.unshift(qo(r,l,s))):n||(l=Ao(r,o),l!=null&&i.push(qo(r,l,s)))),r=r.return}i.length!==0&&e.push({event:t,listeners:i})}var _b=/\r\n?/g,Rb=/\u0000|\uFFFD/g;function dh(e){return(typeof e=="string"?e:""+e).replace(_b,`
6
- `).replace(Rb,"")}function mi(e,t,r){if(t=dh(t),dh(e)!==t&&r)throw Error(P(425))}function Bi(){}var _d=null,Rd=null;function Ed(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Pd=typeof setTimeout=="function"?setTimeout:void 0,Eb=typeof clearTimeout=="function"?clearTimeout:void 0,ch=typeof Promise=="function"?Promise:void 0,Pb=typeof queueMicrotask=="function"?queueMicrotask:typeof ch<"u"?function(e){return ch.resolve(null).then(e).catch(Tb)}:Pd;function Tb(e){setTimeout(function(){throw e})}function Yu(e,t){var r=t,a=0;do{var n=r.nextSibling;if(e.removeChild(r),n&&n.nodeType===8)if(r=n.data,r==="/$"){if(a===0){e.removeChild(n),Fo(t);return}a--}else r!=="$"&&r!=="$?"&&r!=="$!"||a++;r=n}while(r);Fo(t)}function la(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function fh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var Un=Math.random().toString(36).slice(2),Ir="__reactFiber$"+Un,$o="__reactProps$"+Un,zr="__reactContainer$"+Un,Td="__reactEvents$"+Un,Nb="__reactListeners$"+Un,Ab="__reactHandles$"+Un;function Pa(e){var t=e[Ir];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zr]||r[Ir]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=fh(e);e!==null;){if(r=e[Ir])return r;e=fh(e)}return t}e=r,r=e.parentNode}return null}function Yo(e){return e=e[Ir]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function yn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function nl(e){return e[$o]||null}var Nd=[],wn=-1;function ga(e){return{current:e}}function De(e){0>wn||(e.current=Nd[wn],Nd[wn]=null,wn--)}function Pe(e,t){wn++,Nd[wn]=e.current,e.current=t}var ma={},mt=ga(ma),Rt=ga(!1),Oa=ma;function Nn(e,t){var r=e.type.contextTypes;if(!r)return ma;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var n={},o;for(o in r)n[o]=t[o];return a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function Et(e){return e=e.childContextTypes,e!=null}function zi(){De(Rt),De(mt)}function ph(e,t,r){if(mt.current!==ma)throw Error(P(168));Pe(mt,t),Pe(Rt,r)}function Og(e,t,r){var a=e.stateNode;if(t=t.childContextTypes,typeof a.getChildContext!="function")return r;a=a.getChildContext();for(var n in a)if(!(n in t))throw Error(P(108,w0(e)||"Unknown",n));return $e({},r,a)}function Ui(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ma,Oa=mt.current,Pe(mt,e),Pe(Rt,Rt.current),!0}function mh(e,t,r){var a=e.stateNode;if(!a)throw Error(P(169));r?(e=Og(e,t,Oa),a.__reactInternalMemoizedMergedChildContext=e,De(Rt),De(mt),Pe(mt,e)):De(Rt),Pe(Rt,r)}var Ar=null,ol=!1,Ju=!1;function Fg(e){Ar===null?Ar=[e]:Ar.push(e)}function Db(e){ol=!0,Fg(e)}function xa(){if(!Ju&&Ar!==null){Ju=!0;var e=0,t=Le;try{var r=Ar;for(Le=1;e<r.length;e++){var a=r[e];do a=a(!0);while(a!==null)}Ar=null,ol=!1}catch(n){throw Ar!==null&&(Ar=Ar.slice(e+1)),lg(sc,xa),n}finally{Le=t,Ju=!1}}return null}var Sn=[],bn=0,qi=null,$i=0,Vt=[],Gt=0,Fa=null,Dr=1,Or="";function Ra(e,t){Sn[bn++]=$i,Sn[bn++]=qi,qi=e,$i=t}function Bg(e,t,r){Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Fa,Fa=e;var a=Dr;e=Or;var n=32-fr(a)-1;a&=~(1<<n),r+=1;var o=32-fr(t)+n;if(30<o){var i=n-n%5;o=(a&(1<<i)-1).toString(32),a>>=i,n-=i,Dr=1<<32-fr(t)+n|r<<n|a,Or=o+e}else Dr=1<<o|r<<n|a,Or=e}function hc(e){e.return!==null&&(Ra(e,1),Bg(e,1,0))}function gc(e){for(;e===qi;)qi=Sn[--bn],Sn[bn]=null,$i=Sn[--bn],Sn[bn]=null;for(;e===Fa;)Fa=Vt[--Gt],Vt[Gt]=null,Or=Vt[--Gt],Vt[Gt]=null,Dr=Vt[--Gt],Vt[Gt]=null}var Bt=null,Ft=null,Fe=!1,cr=null;function zg(e,t){var r=Xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function hh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=la(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Fa!==null?{id:Dr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Bt=e,Ft=null,!0):!1;default:return!1}}function Ad(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Dd(e){if(Fe){var t=Ft;if(t){var r=t;if(!hh(e,t)){if(Ad(e))throw Error(P(418));t=la(r.nextSibling);var a=Bt;t&&hh(e,t)?zg(a,r):(e.flags=e.flags&-4097|2,Fe=!1,Bt=e)}}else{if(Ad(e))throw Error(P(418));e.flags=e.flags&-4097|2,Fe=!1,Bt=e}}}function gh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function hi(e){if(e!==Bt)return!1;if(!Fe)return gh(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ed(e.type,e.memoizedProps)),t&&(t=Ft)){if(Ad(e))throw Ug(),Error(P(418));for(;t;)zg(e,t),t=la(t.nextSibling)}if(gh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=la(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Bt?la(e.stateNode.nextSibling):null;return!0}function Ug(){for(var e=Ft;e;)e=la(e.nextSibling)}function An(){Ft=Bt=null,Fe=!1}function xc(e){cr===null?cr=[e]:cr.push(e)}var Ob=$r.ReactCurrentBatchConfig;function ho(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(P(309));var a=r.stateNode}if(!a)throw Error(P(147,e));var n=a,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(i){var s=n.refs;i===null?delete s[o]:s[o]=i},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!r._owner)throw Error(P(290,e))}return e}function gi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function xh(e){var t=e._init;return t(e._payload)}function qg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function a(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function n(g,x){return g=fa(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function i(g){return e&&g.alternate===null&&(g.flags|=2),g}function s(g,x,v,b){return x===null||x.tag!==6?(x=od(v,g.mode,b),x.return=g,x):(x=n(x,v),x.return=g,x)}function l(g,x,v,b){var w=v.type;return w===hn?u(g,x,v.props.children,b,v.key):x!==null&&(x.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zr&&xh(w)===x.type)?(b=n(x,v.props),b.ref=ho(g,x,v),b.return=g,b):(b=Ri(v.type,v.key,v.props,null,g.mode,b),b.ref=ho(g,x,v),b.return=g,b)}function d(g,x,v,b){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=sd(v,g.mode,b),x.return=g,x):(x=n(x,v.children||[]),x.return=g,x)}function u(g,x,v,b,w){return x===null||x.tag!==7?(x=Da(v,g.mode,b,w),x.return=g,x):(x=n(x,v),x.return=g,x)}function f(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=od(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ti:return v=Ri(x.type,x.key,x.props,null,g.mode,v),v.ref=ho(g,null,x),v.return=g,v;case mn:return x=sd(x,g.mode,v),x.return=g,x;case Zr:var b=x._init;return f(g,b(x._payload),v)}if(wo(x)||co(x))return x=Da(x,g.mode,v,null),x.return=g,x;gi(g,x)}return null}function c(g,x,v,b){var w=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:s(g,x,""+v,b);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ti:return v.key===w?l(g,x,v,b):null;case mn:return v.key===w?d(g,x,v,b):null;case Zr:return w=v._init,c(g,x,w(v._payload),b)}if(wo(v)||co(v))return w!==null?null:u(g,x,v,b,null);gi(g,v)}return null}function p(g,x,v,b,w){if(typeof b=="string"&&b!==""||typeof b=="number")return g=g.get(v)||null,s(x,g,""+b,w);if(typeof b=="object"&&b!==null){switch(b.$$typeof){case ti:return g=g.get(b.key===null?v:b.key)||null,l(x,g,b,w);case mn:return g=g.get(b.key===null?v:b.key)||null,d(x,g,b,w);case Zr:var y=b._init;return p(g,x,v,y(b._payload),w)}if(wo(b)||co(b))return g=g.get(v)||null,u(x,g,b,w,null);gi(x,b)}return null}function h(g,x,v,b){for(var w=null,y=null,L=x,C=x=0,M=null;L!==null&&C<v.length;C++){L.index>C?(M=L,L=null):M=L.sibling;var I=c(g,L,v[C],b);if(I===null){L===null&&(L=M);break}e&&L&&I.alternate===null&&t(g,L),x=o(I,x,C),y===null?w=I:y.sibling=I,y=I,L=M}if(C===v.length)return r(g,L),Fe&&Ra(g,C),w;if(L===null){for(;C<v.length;C++)L=f(g,v[C],b),L!==null&&(x=o(L,x,C),y===null?w=L:y.sibling=L,y=L);return Fe&&Ra(g,C),w}for(L=a(g,L);C<v.length;C++)M=p(L,g,C,v[C],b),M!==null&&(e&&M.alternate!==null&&L.delete(M.key===null?C:M.key),x=o(M,x,C),y===null?w=M:y.sibling=M,y=M);return e&&L.forEach(function(D){return t(g,D)}),Fe&&Ra(g,C),w}function m(g,x,v,b){var w=co(v);if(typeof w!="function")throw Error(P(150));if(v=w.call(v),v==null)throw Error(P(151));for(var y=w=null,L=x,C=x=0,M=null,I=v.next();L!==null&&!I.done;C++,I=v.next()){L.index>C?(M=L,L=null):M=L.sibling;var D=c(g,L,I.value,b);if(D===null){L===null&&(L=M);break}e&&L&&D.alternate===null&&t(g,L),x=o(D,x,C),y===null?w=D:y.sibling=D,y=D,L=M}if(I.done)return r(g,L),Fe&&Ra(g,C),w;if(L===null){for(;!I.done;C++,I=v.next())I=f(g,I.value,b),I!==null&&(x=o(I,x,C),y===null?w=I:y.sibling=I,y=I);return Fe&&Ra(g,C),w}for(L=a(g,L);!I.done;C++,I=v.next())I=p(L,g,C,I.value,b),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?C:I.key),x=o(I,x,C),y===null?w=I:y.sibling=I,y=I);return e&&L.forEach(function(A){return t(g,A)}),Fe&&Ra(g,C),w}function S(g,x,v,b){if(typeof v=="object"&&v!==null&&v.type===hn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ti:e:{for(var w=v.key,y=x;y!==null;){if(y.key===w){if(w=v.type,w===hn){if(y.tag===7){r(g,y.sibling),x=n(y,v.props.children),x.return=g,g=x;break e}}else if(y.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Zr&&xh(w)===y.type){r(g,y.sibling),x=n(y,v.props),x.ref=ho(g,y,v),x.return=g,g=x;break e}r(g,y);break}else t(g,y);y=y.sibling}v.type===hn?(x=Da(v.props.children,g.mode,b,v.key),x.return=g,g=x):(b=Ri(v.type,v.key,v.props,null,g.mode,b),b.ref=ho(g,x,v),b.return=g,g=b)}return i(g);case mn:e:{for(y=v.key;x!==null;){if(x.key===y)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=n(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=sd(v,g.mode,b),x.return=g,g=x}return i(g);case Zr:return y=v._init,S(g,x,y(v._payload),b)}if(wo(v))return h(g,x,v,b);if(co(v))return m(g,x,v,b);gi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=n(x,v),x.return=g,g=x):(r(g,x),x=od(v,g.mode,b),x.return=g,g=x),i(g)):r(g,x)}return S}var Dn=qg(!0),$g=qg(!1),Hi=ga(null),Wi=null,Cn=null,vc=null;function yc(){vc=Cn=Wi=null}function wc(e){var t=Hi.current;De(Hi),e._currentValue=t}function Od(e,t,r){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===r)break;e=e.return}}function En(e,t){Wi=e,vc=Cn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(_t=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(vc!==e)if(e={context:e,memoizedValue:t,next:null},Cn===null){if(Wi===null)throw Error(P(308));Cn=e,Wi.dependencies={lanes:0,firstContext:e}}else Cn=Cn.next=e;return t}var Ta=null;function Sc(e){Ta===null?Ta=[e]:Ta.push(e)}function Hg(e,t,r,a){var n=t.interleaved;return n===null?(r.next=r,Sc(t)):(r.next=n.next,n.next=r),t.interleaved=r,Ur(e,a)}function Ur(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var ea=!1;function bc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Wg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ua(e,t,r){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(he&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,Ur(e,r)}return n=a.interleaved,n===null?(t.next=t,Sc(a)):(t.next=n.next,n.next=t),a.interleaved=t,Ur(e,r)}function Ci(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,ic(e,r)}}function vh(e,t){var r=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,r===a)){var n=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var i={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?n=o=i:o=o.next=i,r=r.next}while(r!==null);o===null?n=o=t:o=o.next=t}else n=o=t;r={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:o,shared:a.shared,effects:a.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function ji(e,t,r,a){var n=e.updateQueue;ea=!1;var o=n.firstBaseUpdate,i=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var l=s,d=l.next;l.next=null,i===null?o=d:i.next=d,i=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==i&&(s===null?u.firstBaseUpdate=d:s.next=d,u.lastBaseUpdate=l))}if(o!==null){var f=n.baseState;i=0,u=d=l=null,s=o;do{var c=s.lane,p=s.eventTime;if((a&c)===c){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(c=t,p=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){f=h.call(p,f,c);break e}f=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(p,f,c):h,c==null)break e;f=$e({},f,c);break e;case 2:ea=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,c=n.effects,c===null?n.effects=[s]:c.push(s))}else p={eventTime:p,lane:c,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(d=u=p,l=f):u=u.next=p,i|=c;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;c=s,s=c.next,c.next=null,n.lastBaseUpdate=c,n.shared.pending=null}}while(!0);if(u===null&&(l=f),n.baseState=l,n.firstBaseUpdate=d,n.lastBaseUpdate=u,t=n.shared.interleaved,t!==null){n=t;do i|=n.lane,n=n.next;while(n!==t)}else o===null&&(n.shared.lanes=0);za|=i,e.lanes=i,e.memoizedState=f}}function yh(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var a=e[t],n=a.callback;if(n!==null){if(a.callback=null,a=r,typeof n!="function")throw Error(P(191,n));n.call(a)}}}var Jo={},_r=ga(Jo),Ho=ga(Jo),Wo=ga(Jo);function Na(e){if(e===Jo)throw Error(P(174));return e}function Cc(e,t){switch(Pe(Wo,t),Pe(Ho,e),Pe(_r,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:gd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=gd(t,e)}De(_r),Pe(_r,t)}function On(){De(_r),De(Ho),De(Wo)}function jg(e){Na(Wo.current);var t=Na(_r.current),r=gd(t,e.type);t!==r&&(Pe(Ho,e),Pe(_r,r))}function Lc(e){Ho.current===e&&(De(_r),De(Ho))}var Ue=ga(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Zu=[];function kc(){for(var e=0;e<Zu.length;e++)Zu[e]._workInProgressVersionPrimary=null;Zu.length=0}var Li=$r.ReactCurrentDispatcher,ed=$r.ReactCurrentBatchConfig,Ba=0,qe=null,Ye=null,tt=null,Gi=!1,_o=!1,jo=0,Fb=0;function ct(){throw Error(P(321))}function Ic(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mr(e[r],t[r]))return!1;return!0}function Mc(e,t,r,a,n,o){if(Ba=o,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Li.current=e===null||e.memoizedState===null?qb:$b,e=r(a,n),_o){o=0;do{if(_o=!1,jo=0,25<=o)throw Error(P(301));o+=1,tt=Ye=null,t.updateQueue=null,Li.current=Hb,e=r(a,n)}while(_o)}if(Li.current=Xi,t=Ye!==null&&Ye.next!==null,Ba=0,tt=Ye=qe=null,Gi=!1,t)throw Error(P(300));return e}function _c(){var e=jo!==0;return jo=0,e}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?qe.memoizedState=tt=e:tt=tt.next=e,tt}function Yt(){if(Ye===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=tt===null?qe.memoizedState:tt.next;if(t!==null)tt=t,Ye=e;else{if(e===null)throw Error(P(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},tt===null?qe.memoizedState=tt=e:tt=tt.next=e}return tt}function Vo(e,t){return typeof t=="function"?t(e):t}function td(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var a=Ye,n=a.baseQueue,o=r.pending;if(o!==null){if(n!==null){var i=n.next;n.next=o.next,o.next=i}a.baseQueue=n=o,r.pending=null}if(n!==null){o=n.next,a=a.baseState;var s=i=null,l=null,d=o;do{var u=d.lane;if((Ba&u)===u)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),a=d.hasEagerState?d.eagerState:e(a,d.action);else{var f={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(s=l=f,i=a):l=l.next=f,qe.lanes|=u,za|=u}d=d.next}while(d!==null&&d!==o);l===null?i=a:l.next=s,mr(a,t.memoizedState)||(_t=!0),t.memoizedState=a,t.baseState=i,t.baseQueue=l,r.lastRenderedState=a}if(e=r.interleaved,e!==null){n=e;do o=n.lane,qe.lanes|=o,za|=o,n=n.next;while(n!==e)}else n===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function rd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var a=r.dispatch,n=r.pending,o=t.memoizedState;if(n!==null){r.pending=null;var i=n=n.next;do o=e(o,i.action),i=i.next;while(i!==n);mr(o,t.memoizedState)||(_t=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,a]}function Vg(){}function Gg(e,t){var r=qe,a=Yt(),n=t(),o=!mr(a.memoizedState,n);if(o&&(a.memoizedState=n,_t=!0),a=a.queue,Rc(Qg.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Go(9,Kg.bind(null,r,a,n,t),void 0,null),rt===null)throw Error(P(349));(Ba&30)!==0||Xg(r,t,n)}return n}function Xg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Kg(e,t,r,a){t.value=r,t.getSnapshot=a,Yg(t)&&Jg(e)}function Qg(e,t,r){return r(function(){Yg(t)&&Jg(e)})}function Yg(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mr(e,r)}catch{return!0}}function Jg(e){var t=Ur(e,1);t!==null&&pr(t,e,1,-1)}function wh(e){var t=kr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=Ub.bind(null,qe,e),[t.memoizedState,e]}function Go(e,t,r,a){return e={tag:e,create:t,destroy:r,deps:a,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(a=r.next,r.next=e,e.next=a,t.lastEffect=e)),e}function Zg(){return Yt().memoizedState}function ki(e,t,r,a){var n=kr();qe.flags|=e,n.memoizedState=Go(1|t,r,void 0,a===void 0?null:a)}function sl(e,t,r,a){var n=Yt();a=a===void 0?null:a;var o=void 0;if(Ye!==null){var i=Ye.memoizedState;if(o=i.destroy,a!==null&&Ic(a,i.deps)){n.memoizedState=Go(t,r,o,a);return}}qe.flags|=e,n.memoizedState=Go(1|t,r,o,a)}function Sh(e,t){return ki(8390656,8,e,t)}function Rc(e,t){return sl(2048,8,e,t)}function ex(e,t){return sl(4,2,e,t)}function tx(e,t){return sl(4,4,e,t)}function rx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ax(e,t,r){return r=r!=null?r.concat([e]):null,sl(4,4,rx.bind(null,t,e),r)}function Ec(){}function nx(e,t){var r=Yt();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Ic(t,a[1])?a[0]:(r.memoizedState=[e,t],e)}function ox(e,t){var r=Yt();t=t===void 0?null:t;var a=r.memoizedState;return a!==null&&t!==null&&Ic(t,a[1])?a[0]:(e=e(),r.memoizedState=[e,t],e)}function sx(e,t,r){return(Ba&21)===0?(e.baseState&&(e.baseState=!1,_t=!0),e.memoizedState=r):(mr(r,t)||(r=cg(),qe.lanes|=r,za|=r,e.baseState=!0),t)}function Bb(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var a=ed.transition;ed.transition={};try{e(!1),t()}finally{Le=r,ed.transition=a}}function ix(){return Yt().memoizedState}function zb(e,t,r){var a=ca(e);if(r={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null},lx(e))ux(t,r);else if(r=Hg(e,t,r,a),r!==null){var n=bt();pr(r,e,a,n),dx(r,t,a)}}function Ub(e,t,r){var a=ca(e),n={lane:a,action:r,hasEagerState:!1,eagerState:null,next:null};if(lx(e))ux(t,n);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,r);if(n.hasEagerState=!0,n.eagerState=s,mr(s,i)){var l=t.interleaved;l===null?(n.next=n,Sc(t)):(n.next=l.next,l.next=n),t.interleaved=n;return}}catch{}r=Hg(e,t,n,a),r!==null&&(n=bt(),pr(r,e,a,n),dx(r,t,a))}}function lx(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function ux(e,t){_o=Gi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function dx(e,t,r){if((r&4194240)!==0){var a=t.lanes;a&=e.pendingLanes,r|=a,t.lanes=r,ic(e,r)}}var Xi={readContext:Qt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},qb={readContext:Qt,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:Sh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,ki(4194308,4,rx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return ki(4194308,4,e,t)},useInsertionEffect:function(e,t){return ki(4,2,e,t)},useMemo:function(e,t){var r=kr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var a=kr();return t=r!==void 0?r(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=zb.bind(null,qe,e),[a.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:wh,useDebugValue:Ec,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=wh(!1),t=e[0];return e=Bb.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var a=qe,n=kr();if(Fe){if(r===void 0)throw Error(P(407));r=r()}else{if(r=t(),rt===null)throw Error(P(349));(Ba&30)!==0||Xg(a,t,r)}n.memoizedState=r;var o={value:r,getSnapshot:t};return n.queue=o,Sh(Qg.bind(null,a,o,e),[e]),a.flags|=2048,Go(9,Kg.bind(null,a,o,r,t),void 0,null),r},useId:function(){var e=kr(),t=rt.identifierPrefix;if(Fe){var r=Or,a=Dr;r=(a&~(1<<32-fr(a)-1)).toString(32)+r,t=":"+t+"R"+r,r=jo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=Fb++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},$b={readContext:Qt,useCallback:nx,useContext:Qt,useEffect:Rc,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ox,useReducer:td,useRef:Zg,useState:function(){return td(Vo)},useDebugValue:Ec,useDeferredValue:function(e){var t=Yt();return sx(t,Ye.memoizedState,e)},useTransition:function(){var e=td(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Vg,useSyncExternalStore:Gg,useId:ix,unstable_isNewReconciler:!1},Hb={readContext:Qt,useCallback:nx,useContext:Qt,useEffect:Rc,useImperativeHandle:ax,useInsertionEffect:ex,useLayoutEffect:tx,useMemo:ox,useReducer:rd,useRef:Zg,useState:function(){return rd(Vo)},useDebugValue:Ec,useDeferredValue:function(e){var t=Yt();return Ye===null?t.memoizedState=e:sx(t,Ye.memoizedState,e)},useTransition:function(){var e=rd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Vg,useSyncExternalStore:Gg,useId:ix,unstable_isNewReconciler:!1};function ur(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Fd(e,t,r,a){t=e.memoizedState,r=r(a,t),r=r==null?t:$e({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var il={isMounted:function(e){return(e=e._reactInternals)?$a(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var a=bt(),n=ca(e),o=Fr(a,n);o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,n),t!==null&&(pr(t,e,n,a),Ci(t,e,n))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var a=bt(),n=ca(e),o=Fr(a,n);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=ua(e,o,n),t!==null&&(pr(t,e,n,a),Ci(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=bt(),a=ca(e),n=Fr(r,a);n.tag=2,t!=null&&(n.callback=t),t=ua(e,n,a),t!==null&&(pr(t,e,a,r),Ci(t,e,a))}};function bh(e,t,r,a,n,o,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,o,i):t.prototype&&t.prototype.isPureReactComponent?!zo(r,a)||!zo(n,o):!0}function cx(e,t,r){var a=!1,n=ma,o=t.contextType;return typeof o=="object"&&o!==null?o=Qt(o):(n=Et(t)?Oa:mt.current,a=t.contextTypes,o=(a=a!=null)?Nn(e,n):ma),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=il,e.stateNode=t,t._reactInternals=e,a&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=o),t}function Ch(e,t,r,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,a),t.state!==e&&il.enqueueReplaceState(t,t.state,null)}function Bd(e,t,r,a){var n=e.stateNode;n.props=r,n.state=e.memoizedState,n.refs={},bc(e);var o=t.contextType;typeof o=="object"&&o!==null?n.context=Qt(o):(o=Et(t)?Oa:mt.current,n.context=Nn(e,o)),n.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Fd(e,t,o,r),n.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(t=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),t!==n.state&&il.enqueueReplaceState(n,n.state,null),ji(e,r,n,a),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Fn(e,t){try{var r="",a=t;do r+=y0(a),a=a.return;while(a);var n=r}catch(o){n=`
1
+ "use strict";var ObsrviqReplayBundle=(()=>{var G0=Object.create;var Gs=Object.defineProperty;var X0=Object.getOwnPropertyDescriptor;var K0=Object.getOwnPropertyNames;var Q0=Object.getPrototypeOf,Y0=Object.prototype.hasOwnProperty;var Nr=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),J0=(e,t)=>{for(var r in t)Gs(e,r,{get:t[r],enumerable:!0})},mm=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of K0(t))!Y0.call(e,a)&&a!==r&&Gs(e,a,{get:()=>t[a],enumerable:!(n=X0(t,a))||n.enumerable});return e};var F=(e,t,r)=>(r=e!=null?G0(Q0(e)):{},mm(t||!e||!e.__esModule?Gs(r,"default",{value:e,enumerable:!0}):r,e)),Z0=e=>mm(Gs({},"__esModule",{value:!0}),e);var Im=Nr(oe=>{"use strict";var so=Symbol.for("react.element"),eb=Symbol.for("react.portal"),tb=Symbol.for("react.fragment"),rb=Symbol.for("react.strict_mode"),nb=Symbol.for("react.profiler"),ab=Symbol.for("react.provider"),ob=Symbol.for("react.context"),sb=Symbol.for("react.forward_ref"),ib=Symbol.for("react.suspense"),lb=Symbol.for("react.memo"),ub=Symbol.for("react.lazy"),hm=Symbol.iterator;function db(e){return e===null||typeof e!="object"?null:(e=hm&&e[hm]||e["@@iterator"],typeof e=="function"?e:null)}var vm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ym=Object.assign,wm={};function fa(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||vm}fa.prototype.isReactComponent={};fa.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};fa.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function bm(){}bm.prototype=fa.prototype;function _u(e,t,r){this.props=e,this.context=t,this.refs=wm,this.updater=r||vm}var Mu=_u.prototype=new bm;Mu.constructor=_u;ym(Mu,fa.prototype);Mu.isPureReactComponent=!0;var gm=Array.isArray,Sm=Object.prototype.hasOwnProperty,Ru={current:null},Cm={key:!0,ref:!0,__self:!0,__source:!0};function Lm(e,t,r){var n,a={},o=null,s=null;if(t!=null)for(n in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)Sm.call(t,n)&&!Cm.hasOwnProperty(n)&&(a[n]=t[n]);var i=arguments.length-2;if(i===1)a.children=r;else if(1<i){for(var l=Array(i),d=0;d<i;d++)l[d]=arguments[d+2];a.children=l}if(e&&e.defaultProps)for(n in i=e.defaultProps,i)a[n]===void 0&&(a[n]=i[n]);return{$$typeof:so,type:e,key:o,ref:s,props:a,_owner:Ru.current}}function cb(e,t){return{$$typeof:so,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Eu(e){return typeof e=="object"&&e!==null&&e.$$typeof===so}function fb(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(r){return t[r]})}var xm=/\/+/g;function Iu(e,t){return typeof e=="object"&&e!==null&&e.key!=null?fb(""+e.key):t.toString(36)}function Ks(e,t,r,n,a){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case so:case eb:s=!0}}if(s)return s=e,a=a(s),e=n===""?"."+Iu(s,0):n,gm(a)?(r="",e!=null&&(r=e.replace(xm,"$&/")+"/"),Ks(a,t,r,"",function(d){return d})):a!=null&&(Eu(a)&&(a=cb(a,r+(!a.key||s&&s.key===a.key?"":(""+a.key).replace(xm,"$&/")+"/")+e)),t.push(a)),1;if(s=0,n=n===""?".":n+":",gm(e))for(var i=0;i<e.length;i++){o=e[i];var l=n+Iu(o,i);s+=Ks(o,t,r,l,a)}else if(l=db(e),typeof l=="function")for(e=l.call(e),i=0;!(o=e.next()).done;)o=o.value,l=n+Iu(o,i++),s+=Ks(o,t,r,l,a);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return s}function Xs(e,t,r){if(e==null)return e;var n=[],a=0;return Ks(e,n,"","",function(o){return t.call(r,o,a++)}),n}function pb(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(r){(e._status===0||e._status===-1)&&(e._status=1,e._result=r)},function(r){(e._status===0||e._status===-1)&&(e._status=2,e._result=r)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var wt={current:null},Qs={transition:null},mb={ReactCurrentDispatcher:wt,ReactCurrentBatchConfig:Qs,ReactCurrentOwner:Ru};function km(){throw Error("act(...) is not supported in production builds of React.")}oe.Children={map:Xs,forEach:function(e,t,r){Xs(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return Xs(e,function(){t++}),t},toArray:function(e){return Xs(e,function(t){return t})||[]},only:function(e){if(!Eu(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};oe.Component=fa;oe.Fragment=tb;oe.Profiler=nb;oe.PureComponent=_u;oe.StrictMode=rb;oe.Suspense=ib;oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=mb;oe.act=km;oe.cloneElement=function(e,t,r){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=ym({},e.props),a=e.key,o=e.ref,s=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,s=Ru.current),t.key!==void 0&&(a=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(l in t)Sm.call(t,l)&&!Cm.hasOwnProperty(l)&&(n[l]=t[l]===void 0&&i!==void 0?i[l]:t[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){i=Array(l);for(var d=0;d<l;d++)i[d]=arguments[d+2];n.children=i}return{$$typeof:so,type:e.type,key:a,ref:o,props:n,_owner:s}};oe.createContext=function(e){return e={$$typeof:ob,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:ab,_context:e},e.Consumer=e};oe.createElement=Lm;oe.createFactory=function(e){var t=Lm.bind(null,e);return t.type=e,t};oe.createRef=function(){return{current:null}};oe.forwardRef=function(e){return{$$typeof:sb,render:e}};oe.isValidElement=Eu;oe.lazy=function(e){return{$$typeof:ub,_payload:{_status:-1,_result:e},_init:pb}};oe.memo=function(e,t){return{$$typeof:lb,type:e,compare:t===void 0?null:t}};oe.startTransition=function(e){var t=Qs.transition;Qs.transition={};try{e()}finally{Qs.transition=t}};oe.unstable_act=km;oe.useCallback=function(e,t){return wt.current.useCallback(e,t)};oe.useContext=function(e){return wt.current.useContext(e)};oe.useDebugValue=function(){};oe.useDeferredValue=function(e){return wt.current.useDeferredValue(e)};oe.useEffect=function(e,t){return wt.current.useEffect(e,t)};oe.useId=function(){return wt.current.useId()};oe.useImperativeHandle=function(e,t,r){return wt.current.useImperativeHandle(e,t,r)};oe.useInsertionEffect=function(e,t){return wt.current.useInsertionEffect(e,t)};oe.useLayoutEffect=function(e,t){return wt.current.useLayoutEffect(e,t)};oe.useMemo=function(e,t){return wt.current.useMemo(e,t)};oe.useReducer=function(e,t,r){return wt.current.useReducer(e,t,r)};oe.useRef=function(e){return wt.current.useRef(e)};oe.useState=function(e){return wt.current.useState(e)};oe.useSyncExternalStore=function(e,t,r){return wt.current.useSyncExternalStore(e,t,r)};oe.useTransition=function(){return wt.current.useTransition()};oe.version="18.3.1"});var fe=Nr((P_,_m)=>{"use strict";_m.exports=Im()});var Fm=Nr(Ee=>{"use strict";function Au(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,a=e[n];if(0<Ys(a,t))e[n]=t,e[r]=a,r=n;else break e}}function ir(e){return e.length===0?null:e[0]}function Zs(e){if(e.length===0)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,a=e.length,o=a>>>1;n<o;){var s=2*(n+1)-1,i=e[s],l=s+1,d=e[l];if(0>Ys(i,r))l<a&&0>Ys(d,i)?(e[n]=d,e[l]=r,n=l):(e[n]=i,e[s]=r,n=s);else if(l<a&&0>Ys(d,r))e[n]=d,e[l]=r,n=l;else break e}}return t}function Ys(e,t){var r=e.sortIndex-t.sortIndex;return r!==0?r:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Mm=performance,Ee.unstable_now=function(){return Mm.now()}):(Pu=Date,Rm=Pu.now(),Ee.unstable_now=function(){return Pu.now()-Rm});var Mm,Pu,Rm,Cr=[],Yr=[],hb=1,jt=null,dt=3,ei=!1,Rn=!1,lo=!1,Nm=typeof setTimeout=="function"?setTimeout:null,Tm=typeof clearTimeout=="function"?clearTimeout:null,Em=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Du(e){for(var t=ir(Yr);t!==null;){if(t.callback===null)Zs(Yr);else if(t.startTime<=e)Zs(Yr),t.sortIndex=t.expirationTime,Au(Cr,t);else break;t=ir(Yr)}}function Ou(e){if(lo=!1,Du(e),!Rn)if(ir(Cr)!==null)Rn=!0,Bu(Fu);else{var t=ir(Yr);t!==null&&zu(Ou,t.startTime-e)}}function Fu(e,t){Rn=!1,lo&&(lo=!1,Tm(uo),uo=-1),ei=!0;var r=dt;try{for(Du(t),jt=ir(Cr);jt!==null&&(!(jt.expirationTime>t)||e&&!Om());){var n=jt.callback;if(typeof n=="function"){jt.callback=null,dt=jt.priorityLevel;var a=n(jt.expirationTime<=t);t=Ee.unstable_now(),typeof a=="function"?jt.callback=a:jt===ir(Cr)&&Zs(Cr),Du(t)}else Zs(Cr);jt=ir(Cr)}if(jt!==null)var o=!0;else{var s=ir(Yr);s!==null&&zu(Ou,s.startTime-t),o=!1}return o}finally{jt=null,dt=r,ei=!1}}var ti=!1,Js=null,uo=-1,Am=5,Dm=-1;function Om(){return!(Ee.unstable_now()-Dm<Am)}function Nu(){if(Js!==null){var e=Ee.unstable_now();Dm=e;var t=!0;try{t=Js(!0,e)}finally{t?io():(ti=!1,Js=null)}}else ti=!1}var io;typeof Em=="function"?io=function(){Em(Nu)}:typeof MessageChannel<"u"?(Tu=new MessageChannel,Pm=Tu.port2,Tu.port1.onmessage=Nu,io=function(){Pm.postMessage(null)}):io=function(){Nm(Nu,0)};var Tu,Pm;function Bu(e){Js=e,ti||(ti=!0,io())}function zu(e,t){uo=Nm(function(){e(Ee.unstable_now())},t)}Ee.unstable_IdlePriority=5;Ee.unstable_ImmediatePriority=1;Ee.unstable_LowPriority=4;Ee.unstable_NormalPriority=3;Ee.unstable_Profiling=null;Ee.unstable_UserBlockingPriority=2;Ee.unstable_cancelCallback=function(e){e.callback=null};Ee.unstable_continueExecution=function(){Rn||ei||(Rn=!0,Bu(Fu))};Ee.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Am=0<e?Math.floor(1e3/e):5};Ee.unstable_getCurrentPriorityLevel=function(){return dt};Ee.unstable_getFirstCallbackNode=function(){return ir(Cr)};Ee.unstable_next=function(e){switch(dt){case 1:case 2:case 3:var t=3;break;default:t=dt}var r=dt;dt=t;try{return e()}finally{dt=r}};Ee.unstable_pauseExecution=function(){};Ee.unstable_requestPaint=function(){};Ee.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=dt;dt=e;try{return t()}finally{dt=r}};Ee.unstable_scheduleCallback=function(e,t,r){var n=Ee.unstable_now();switch(typeof r=="object"&&r!==null?(r=r.delay,r=typeof r=="number"&&0<r?n+r:n):r=n,e){case 1:var a=-1;break;case 2:a=250;break;case 5:a=1073741823;break;case 4:a=1e4;break;default:a=5e3}return a=r+a,e={id:hb++,callback:t,priorityLevel:e,startTime:r,expirationTime:a,sortIndex:-1},r>n?(e.sortIndex=r,Au(Yr,e),ir(Cr)===null&&e===ir(Yr)&&(lo?(Tm(uo),uo=-1):lo=!0,zu(Ou,r-n))):(e.sortIndex=a,Au(Cr,e),Rn||ei||(Rn=!0,Bu(Fu))),e};Ee.unstable_shouldYield=Om;Ee.unstable_wrapCallback=function(e){var t=dt;return function(){var r=dt;dt=t;try{return e.apply(this,arguments)}finally{dt=r}}}});var zm=Nr((T_,Bm)=>{"use strict";Bm.exports=Fm()});var Hx=Nr(qt=>{"use strict";var gb=fe(),zt=zm();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Vh=new Set,No={};function $n(e,t){Ta(e,t),Ta(e+"Capture",t)}function Ta(e,t){for(No[e]=t,e=0;e<t.length;e++)Vh.add(t[e])}var Br=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ld=Object.prototype.hasOwnProperty,xb=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Um={},qm={};function vb(e){return ld.call(qm,e)?!0:ld.call(Um,e)?!1:xb.test(e)?qm[e]=!0:(Um[e]=!0,!1)}function yb(e,t,r,n){if(r!==null&&r.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function wb(e,t,r,n){if(t===null||typeof t>"u"||yb(e,t,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ct(e,t,r,n,a,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=n,this.attributeNamespace=a,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ot={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ot[e]=new Ct(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ot[t]=new Ct(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ot[e]=new Ct(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ot[e]=new Ct(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ot[e]=new Ct(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ot[e]=new Ct(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ot[e]=new Ct(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ot[e]=new Ct(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ot[e]=new Ct(e,5,!1,e.toLowerCase(),null,!1,!1)});var ec=/[\-:]([a-z])/g;function tc(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ec,tc);ot[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!1,!1)});ot.xlinkHref=new Ct("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ot[e]=new Ct(e,1,!1,e.toLowerCase(),null,!0,!0)});function rc(e,t,r,n){var a=ot.hasOwnProperty(t)?ot[t]:null;(a!==null?a.type!==0:n||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(wb(t,r,a,n)&&(r=null),n||a===null?vb(t)&&(r===null?e.removeAttribute(t):e.setAttribute(t,""+r)):a.mustUseProperty?e[a.propertyName]=r===null?a.type===3?!1:"":r:(t=a.attributeName,n=a.attributeNamespace,r===null?e.removeAttribute(t):(a=a.type,r=a===3||a===4&&r===!0?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}var $r=gb.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ri=Symbol.for("react.element"),ha=Symbol.for("react.portal"),ga=Symbol.for("react.fragment"),nc=Symbol.for("react.strict_mode"),ud=Symbol.for("react.profiler"),Gh=Symbol.for("react.provider"),Xh=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),dd=Symbol.for("react.suspense"),cd=Symbol.for("react.suspense_list"),oc=Symbol.for("react.memo"),Zr=Symbol.for("react.lazy"),Kh=Symbol.for("react.offscreen"),$m=Symbol.iterator;function co(e){return e===null||typeof e!="object"?null:(e=$m&&e[$m]||e["@@iterator"],typeof e=="function"?e:null)}var $e=Object.assign,Uu;function yo(e){if(Uu===void 0)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);Uu=t&&t[1]||""}return`
2
+ `+Uu+e}var qu=!1;function $u(e,t){if(!e||qu)return"";qu=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var n=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){n=d}e.call(t.prototype)}else{try{throw Error()}catch(d){n=d}e()}}catch(d){if(d&&n&&typeof d.stack=="string"){for(var a=d.stack.split(`
3
+ `),o=n.stack.split(`
4
+ `),s=a.length-1,i=o.length-1;1<=s&&0<=i&&a[s]!==o[i];)i--;for(;1<=s&&0<=i;s--,i--)if(a[s]!==o[i]){if(s!==1||i!==1)do if(s--,i--,0>i||a[s]!==o[i]){var l=`
5
+ `+a[s].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=s&&0<=i);break}}}finally{qu=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?yo(e):""}function bb(e){switch(e.tag){case 5:return yo(e.type);case 16:return yo("Lazy");case 13:return yo("Suspense");case 19:return yo("SuspenseList");case 0:case 2:case 15:return e=$u(e.type,!1),e;case 11:return e=$u(e.type.render,!1),e;case 1:return e=$u(e.type,!0),e;default:return""}}function fd(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ga:return"Fragment";case ha:return"Portal";case ud:return"Profiler";case nc:return"StrictMode";case dd:return"Suspense";case cd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Xh:return(e.displayName||"Context")+".Consumer";case Gh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case oc:return t=e.displayName||null,t!==null?t:fd(e.type)||"Memo";case Zr:t=e._payload,e=e._init;try{return fd(e(t))}catch{}}return null}function Sb(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return fd(t);case 8:return t===nc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function mn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Qh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Cb(e){var t=Qh(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,o=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ni(e){e._valueTracker||(e._valueTracker=Cb(e))}function Yh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=Qh(e)?e.checked?"true":"false":e.value),e=n,e!==r?(t.setValue(e),!0):!1}function Pi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function pd(e,t){var r=t.checked;return $e({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??e._wrapperState.initialChecked})}function Hm(e,t){var r=t.defaultValue==null?"":t.defaultValue,n=t.checked!=null?t.checked:t.defaultChecked;r=mn(t.value!=null?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jh(e,t){t=t.checked,t!=null&&rc(e,"checked",t,!1)}function md(e,t){Jh(e,t);var r=mn(t.value),n=t.type;if(r!=null)n==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if(n==="submit"||n==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?hd(e,t.type,r):t.hasOwnProperty("defaultValue")&&hd(e,t.type,mn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Wm(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!(n!=="submit"&&n!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}r=e.name,r!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,r!==""&&(e.name=r)}function hd(e,t,r){(t!=="number"||Pi(e.ownerDocument)!==e)&&(r==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var wo=Array.isArray;function _a(e,t,r,n){if(e=e.options,t){t={};for(var a=0;a<r.length;a++)t["$"+r[a]]=!0;for(r=0;r<e.length;r++)a=t.hasOwnProperty("$"+e[r].value),e[r].selected!==a&&(e[r].selected=a),a&&n&&(e[r].defaultSelected=!0)}else{for(r=""+mn(r),t=null,a=0;a<e.length;a++){if(e[a].value===r){e[a].selected=!0,n&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function gd(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return $e({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function jm(e,t){var r=t.value;if(r==null){if(r=t.children,t=t.defaultValue,r!=null){if(t!=null)throw Error(P(92));if(wo(r)){if(1<r.length)throw Error(P(93));r=r[0]}t=r}t==null&&(t=""),r=t}e._wrapperState={initialValue:mn(r)}}function Zh(e,t){var r=mn(t.value),n=mn(t.defaultValue);r!=null&&(r=""+r,r!==e.value&&(e.value=r),t.defaultValue==null&&e.defaultValue!==r&&(e.defaultValue=r)),n!=null&&(e.defaultValue=""+n)}function Vm(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function eg(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function xd(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?eg(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ai,tg=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,r,n,a){MSApp.execUnsafeLocalFunction(function(){return e(t,r,n,a)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(ai=ai||document.createElement("div"),ai.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ai.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function To(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&r.nodeType===3){r.nodeValue=t;return}}e.textContent=t}var Co={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lb=["Webkit","ms","Moz","O"];Object.keys(Co).forEach(function(e){Lb.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Co[t]=Co[e]})});function rg(e,t,r){return t==null||typeof t=="boolean"||t===""?"":r||typeof t!="number"||t===0||Co.hasOwnProperty(e)&&Co[e]?(""+t).trim():t+"px"}function ng(e,t){e=e.style;for(var r in t)if(t.hasOwnProperty(r)){var n=r.indexOf("--")===0,a=rg(r,t[r],n);r==="float"&&(r="cssFloat"),n?e.setProperty(r,a):e[r]=a}}var kb=$e({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function vd(e,t){if(t){if(kb[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function yd(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var wd=null;function sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var bd=null,Ma=null,Ra=null;function Gm(e){if(e=Yo(e)){if(typeof bd!="function")throw Error(P(280));var t=e.stateNode;t&&(t=ol(t),bd(e.stateNode,e.type,t))}}function ag(e){Ma?Ra?Ra.push(e):Ra=[e]:Ma=e}function og(){if(Ma){var e=Ma,t=Ra;if(Ra=Ma=null,Gm(e),t)for(e=0;e<t.length;e++)Gm(t[e])}}function sg(e,t){return e(t)}function ig(){}var Hu=!1;function lg(e,t,r){if(Hu)return e(t,r);Hu=!0;try{return sg(e,t,r)}finally{Hu=!1,(Ma!==null||Ra!==null)&&(ig(),og())}}function Ao(e,t){var r=e.stateNode;if(r===null)return null;var n=ol(r);if(n===null)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(e=e.type,n=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!n;break e;default:e=!1}if(e)return null;if(r&&typeof r!="function")throw Error(P(231,t,typeof r));return r}var Sd=!1;if(Br)try{pa={},Object.defineProperty(pa,"passive",{get:function(){Sd=!0}}),window.addEventListener("test",pa,pa),window.removeEventListener("test",pa,pa)}catch{Sd=!1}var pa;function Ib(e,t,r,n,a,o,s,i,l){var d=Array.prototype.slice.call(arguments,3);try{t.apply(r,d)}catch(u){this.onError(u)}}var Lo=!1,Ni=null,Ti=!1,Cd=null,_b={onError:function(e){Lo=!0,Ni=e}};function Mb(e,t,r,n,a,o,s,i,l){Lo=!1,Ni=null,Ib.apply(_b,arguments)}function Rb(e,t,r,n,a,o,s,i,l){if(Mb.apply(this,arguments),Lo){if(Lo){var d=Ni;Lo=!1,Ni=null}else throw Error(P(198));Ti||(Ti=!0,Cd=d)}}function Hn(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(r=t.return),e=t.return;while(e)}return t.tag===3?r:null}function ug(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Xm(e){if(Hn(e)!==e)throw Error(P(188))}function Eb(e){var t=e.alternate;if(!t){if(t=Hn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var r=e,n=t;;){var a=r.return;if(a===null)break;var o=a.alternate;if(o===null){if(n=a.return,n!==null){r=n;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===r)return Xm(a),e;if(o===n)return Xm(a),t;o=o.sibling}throw Error(P(188))}if(r.return!==n.return)r=a,n=o;else{for(var s=!1,i=a.child;i;){if(i===r){s=!0,r=a,n=o;break}if(i===n){s=!0,n=a,r=o;break}i=i.sibling}if(!s){for(i=o.child;i;){if(i===r){s=!0,r=o,n=a;break}if(i===n){s=!0,n=o,r=a;break}i=i.sibling}if(!s)throw Error(P(189))}}if(r.alternate!==n)throw Error(P(190))}if(r.tag!==3)throw Error(P(188));return r.stateNode.current===r?e:t}function dg(e){return e=Eb(e),e!==null?cg(e):null}function cg(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=cg(e);if(t!==null)return t;e=e.sibling}return null}var fg=zt.unstable_scheduleCallback,Km=zt.unstable_cancelCallback,Pb=zt.unstable_shouldYield,Nb=zt.unstable_requestPaint,Ve=zt.unstable_now,Tb=zt.unstable_getCurrentPriorityLevel,ic=zt.unstable_ImmediatePriority,pg=zt.unstable_UserBlockingPriority,Ai=zt.unstable_NormalPriority,Ab=zt.unstable_LowPriority,mg=zt.unstable_IdlePriority,tl=null,_r=null;function Db(e){if(_r&&typeof _r.onCommitFiberRoot=="function")try{_r.onCommitFiberRoot(tl,e,void 0,(e.current.flags&128)===128)}catch{}}var fr=Math.clz32?Math.clz32:Bb,Ob=Math.log,Fb=Math.LN2;function Bb(e){return e>>>=0,e===0?32:31-(Ob(e)/Fb|0)|0}var oi=64,si=4194304;function bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Di(e,t){var r=e.pendingLanes;if(r===0)return 0;var n=0,a=e.suspendedLanes,o=e.pingedLanes,s=r&268435455;if(s!==0){var i=s&~a;i!==0?n=bo(i):(o&=s,o!==0&&(n=bo(o)))}else s=r&~a,s!==0?n=bo(s):o!==0&&(n=bo(o));if(n===0)return 0;if(t!==0&&t!==n&&(t&a)===0&&(a=n&-n,o=t&-t,a>=o||a===16&&(o&4194240)!==0))return t;if((n&4)!==0&&(n|=r&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=n;0<t;)r=31-fr(t),a=1<<r,n|=e[r],t&=~a;return n}function zb(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ub(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var s=31-fr(o),i=1<<s,l=a[s];l===-1?((i&r)===0||(i&n)!==0)&&(a[s]=zb(i,t)):l<=t&&(e.expiredLanes|=i),o&=~i}}function Ld(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function hg(){var e=oi;return oi<<=1,(oi&4194240)===0&&(oi=64),e}function Wu(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function Ko(e,t,r){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-fr(t),e[t]=r}function qb(e,t){var r=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var n=e.eventTimes;for(e=e.expirationTimes;0<r;){var a=31-fr(r),o=1<<a;t[a]=0,n[a]=-1,e[a]=-1,r&=~o}}function lc(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-fr(r),a=1<<n;a&t|e[n]&t&&(e[n]|=t),r&=~a}}var Le=0;function gg(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var xg,uc,vg,yg,wg,kd=!1,ii=[],on=null,sn=null,ln=null,Do=new Map,Oo=new Map,tn=[],$b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qm(e,t){switch(e){case"focusin":case"focusout":on=null;break;case"dragenter":case"dragleave":sn=null;break;case"mouseover":case"mouseout":ln=null;break;case"pointerover":case"pointerout":Do.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Oo.delete(t.pointerId)}}function fo(e,t,r,n,a,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:o,targetContainers:[a]},t!==null&&(t=Yo(t),t!==null&&uc(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function Hb(e,t,r,n,a){switch(t){case"focusin":return on=fo(on,e,t,r,n,a),!0;case"dragenter":return sn=fo(sn,e,t,r,n,a),!0;case"mouseover":return ln=fo(ln,e,t,r,n,a),!0;case"pointerover":var o=a.pointerId;return Do.set(o,fo(Do.get(o)||null,e,t,r,n,a)),!0;case"gotpointercapture":return o=a.pointerId,Oo.set(o,fo(Oo.get(o)||null,e,t,r,n,a)),!0}return!1}function bg(e){var t=Nn(e.target);if(t!==null){var r=Hn(t);if(r!==null){if(t=r.tag,t===13){if(t=ug(r),t!==null){e.blockedOn=t,wg(e.priority,function(){vg(r)});return}}else if(t===3&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function bi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var r=Id(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(r===null){r=e.nativeEvent;var n=new r.constructor(r.type,r);wd=n,r.target.dispatchEvent(n),wd=null}else return t=Yo(r),t!==null&&uc(t),e.blockedOn=r,!1;t.shift()}return!0}function Ym(e,t,r){bi(e)&&r.delete(t)}function Wb(){kd=!1,on!==null&&bi(on)&&(on=null),sn!==null&&bi(sn)&&(sn=null),ln!==null&&bi(ln)&&(ln=null),Do.forEach(Ym),Oo.forEach(Ym)}function po(e,t){e.blockedOn===t&&(e.blockedOn=null,kd||(kd=!0,zt.unstable_scheduleCallback(zt.unstable_NormalPriority,Wb)))}function Fo(e){function t(a){return po(a,e)}if(0<ii.length){po(ii[0],e);for(var r=1;r<ii.length;r++){var n=ii[r];n.blockedOn===e&&(n.blockedOn=null)}}for(on!==null&&po(on,e),sn!==null&&po(sn,e),ln!==null&&po(ln,e),Do.forEach(t),Oo.forEach(t),r=0;r<tn.length;r++)n=tn[r],n.blockedOn===e&&(n.blockedOn=null);for(;0<tn.length&&(r=tn[0],r.blockedOn===null);)bg(r),r.blockedOn===null&&tn.shift()}var Ea=$r.ReactCurrentBatchConfig,Oi=!0;function jb(e,t,r,n){var a=Le,o=Ea.transition;Ea.transition=null;try{Le=1,dc(e,t,r,n)}finally{Le=a,Ea.transition=o}}function Vb(e,t,r,n){var a=Le,o=Ea.transition;Ea.transition=null;try{Le=4,dc(e,t,r,n)}finally{Le=a,Ea.transition=o}}function dc(e,t,r,n){if(Oi){var a=Id(e,t,r,n);if(a===null)Yu(e,t,n,Fi,r),Qm(e,n);else if(Hb(a,e,t,r,n))n.stopPropagation();else if(Qm(e,n),t&4&&-1<$b.indexOf(e)){for(;a!==null;){var o=Yo(a);if(o!==null&&xg(o),o=Id(e,t,r,n),o===null&&Yu(e,t,n,Fi,r),o===a)break;a=o}a!==null&&n.stopPropagation()}else Yu(e,t,n,null,r)}}var Fi=null;function Id(e,t,r,n){if(Fi=null,e=sc(n),e=Nn(e),e!==null)if(t=Hn(e),t===null)e=null;else if(r=t.tag,r===13){if(e=ug(t),e!==null)return e;e=null}else if(r===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Fi=e,null}function Sg(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Tb()){case ic:return 1;case pg:return 4;case Ai:case Ab:return 16;case mg:return 536870912;default:return 16}default:return 16}}var nn=null,cc=null,Si=null;function Cg(){if(Si)return Si;var e,t=cc,r=t.length,n,a="value"in nn?nn.value:nn.textContent,o=a.length;for(e=0;e<r&&t[e]===a[e];e++);var s=r-e;for(n=1;n<=s&&t[r-n]===a[o-n];n++);return Si=a.slice(e,1<n?1-n:void 0)}function Ci(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function li(){return!0}function Jm(){return!1}function Ut(e){function t(r,n,a,o,s){this._reactName=r,this._targetInst=a,this.type=n,this.nativeEvent=o,this.target=s,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(r=e[i],this[i]=r?r(o):o[i]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?li:Jm,this.isPropagationStopped=Jm,this}return $e(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var Ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fc=Ut(Ua),Qo=$e({},Ua,{view:0,detail:0}),Gb=Ut(Qo),ju,Vu,mo,rl=$e({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:pc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==mo&&(mo&&e.type==="mousemove"?(ju=e.screenX-mo.screenX,Vu=e.screenY-mo.screenY):Vu=ju=0,mo=e),ju)},movementY:function(e){return"movementY"in e?e.movementY:Vu}}),Zm=Ut(rl),Xb=$e({},rl,{dataTransfer:0}),Kb=Ut(Xb),Qb=$e({},Qo,{relatedTarget:0}),Gu=Ut(Qb),Yb=$e({},Ua,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Ut(Yb),Zb=$e({},Ua,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),eS=Ut(Zb),tS=$e({},Ua,{data:0}),eh=Ut(tS),rS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nS={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},aS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function oS(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=aS[e])?!!t[e]:!1}function pc(){return oS}var sS=$e({},Qo,{key:function(e){if(e.key){var t=rS[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ci(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?nS[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:pc,charCode:function(e){return e.type==="keypress"?Ci(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ci(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),iS=Ut(sS),lS=$e({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),th=Ut(lS),uS=$e({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:pc}),dS=Ut(uS),cS=$e({},Ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),fS=Ut(cS),pS=$e({},rl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),mS=Ut(pS),hS=[9,13,27,32],mc=Br&&"CompositionEvent"in window,ko=null;Br&&"documentMode"in document&&(ko=document.documentMode);var gS=Br&&"TextEvent"in window&&!ko,Lg=Br&&(!mc||ko&&8<ko&&11>=ko),rh=" ",nh=!1;function kg(e,t){switch(e){case"keyup":return hS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ig(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var xa=!1;function xS(e,t){switch(e){case"compositionend":return Ig(t);case"keypress":return t.which!==32?null:(nh=!0,rh);case"textInput":return e=t.data,e===rh&&nh?null:e;default:return null}}function vS(e,t){if(xa)return e==="compositionend"||!mc&&kg(e,t)?(e=Cg(),Si=cc=nn=null,xa=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lg&&t.locale!=="ko"?null:t.data;default:return null}}var yS={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ah(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!yS[e.type]:t==="textarea"}function _g(e,t,r,n){ag(n),t=Bi(t,"onChange"),0<t.length&&(r=new fc("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var Io=null,Bo=null;function wS(e){Bg(e,0)}function nl(e){var t=wa(e);if(Yh(t))return e}function bS(e,t){if(e==="change")return t}var Mg=!1;Br&&(Br?(di="oninput"in document,di||(Xu=document.createElement("div"),Xu.setAttribute("oninput","return;"),di=typeof Xu.oninput=="function"),ui=di):ui=!1,Mg=ui&&(!document.documentMode||9<document.documentMode));var ui,di,Xu;function oh(){Io&&(Io.detachEvent("onpropertychange",Rg),Bo=Io=null)}function Rg(e){if(e.propertyName==="value"&&nl(Bo)){var t=[];_g(t,Bo,e,sc(e)),lg(wS,t)}}function SS(e,t,r){e==="focusin"?(oh(),Io=t,Bo=r,Io.attachEvent("onpropertychange",Rg)):e==="focusout"&&oh()}function CS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return nl(Bo)}function LS(e,t){if(e==="click")return nl(t)}function kS(e,t){if(e==="input"||e==="change")return nl(t)}function IS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var mr=typeof Object.is=="function"?Object.is:IS;function zo(e,t){if(mr(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var a=r[n];if(!ld.call(t,a)||!mr(e[a],t[a]))return!1}return!0}function sh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ih(e,t){var r=sh(e);e=0;for(var n;r;){if(r.nodeType===3){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sh(r)}}function Eg(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eg(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Pg(){for(var e=window,t=Pi();t instanceof e.HTMLIFrameElement;){try{var r=typeof t.contentWindow.location.href=="string"}catch{r=!1}if(r)e=t.contentWindow;else break;t=Pi(e.document)}return t}function hc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function _S(e){var t=Pg(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&Eg(r.ownerDocument.documentElement,r)){if(n!==null&&hc(r)){if(t=n.start,e=n.end,e===void 0&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if(e=(t=r.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var a=r.textContent.length,o=Math.min(n.start,a);n=n.end===void 0?o:Math.min(n.end,a),!e.extend&&o>n&&(a=n,n=o,o=a),a=ih(r,o);var s=ih(r,n);a&&s&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(a.node,a.offset),e.removeAllRanges(),o>n?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<t.length;r++)e=t[r],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var MS=Br&&"documentMode"in document&&11>=document.documentMode,va=null,_d=null,_o=null,Md=!1;function lh(e,t,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Md||va==null||va!==Pi(n)||(n=va,"selectionStart"in n&&hc(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),_o&&zo(_o,n)||(_o=n,n=Bi(_d,"onSelect"),0<n.length&&(t=new fc("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=va)))}function ci(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var ya={animationend:ci("Animation","AnimationEnd"),animationiteration:ci("Animation","AnimationIteration"),animationstart:ci("Animation","AnimationStart"),transitionend:ci("Transition","TransitionEnd")},Ku={},Ng={};Br&&(Ng=document.createElement("div").style,"AnimationEvent"in window||(delete ya.animationend.animation,delete ya.animationiteration.animation,delete ya.animationstart.animation),"TransitionEvent"in window||delete ya.transitionend.transition);function al(e){if(Ku[e])return Ku[e];if(!ya[e])return e;var t=ya[e],r;for(r in t)if(t.hasOwnProperty(r)&&r in Ng)return Ku[e]=t[r];return e}var Tg=al("animationend"),Ag=al("animationiteration"),Dg=al("animationstart"),Og=al("transitionend"),Fg=new Map,uh="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function gn(e,t){Fg.set(e,t),$n(t,[e])}for(fi=0;fi<uh.length;fi++)pi=uh[fi],dh=pi.toLowerCase(),ch=pi[0].toUpperCase()+pi.slice(1),gn(dh,"on"+ch);var pi,dh,ch,fi;gn(Tg,"onAnimationEnd");gn(Ag,"onAnimationIteration");gn(Dg,"onAnimationStart");gn("dblclick","onDoubleClick");gn("focusin","onFocus");gn("focusout","onBlur");gn(Og,"onTransitionEnd");Ta("onMouseEnter",["mouseout","mouseover"]);Ta("onMouseLeave",["mouseout","mouseover"]);Ta("onPointerEnter",["pointerout","pointerover"]);Ta("onPointerLeave",["pointerout","pointerover"]);$n("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$n("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$n("onBeforeInput",["compositionend","keypress","textInput","paste"]);$n("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$n("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),RS=new Set("cancel close invalid load scroll toggle".split(" ").concat(So));function fh(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,Rb(n,t,void 0,e),e.currentTarget=null}function Bg(e,t){t=(t&4)!==0;for(var r=0;r<e.length;r++){var n=e[r],a=n.event;n=n.listeners;e:{var o=void 0;if(t)for(var s=n.length-1;0<=s;s--){var i=n[s],l=i.instance,d=i.currentTarget;if(i=i.listener,l!==o&&a.isPropagationStopped())break e;fh(a,i,d),o=l}else for(s=0;s<n.length;s++){if(i=n[s],l=i.instance,d=i.currentTarget,i=i.listener,l!==o&&a.isPropagationStopped())break e;fh(a,i,d),o=l}}}if(Ti)throw e=Cd,Ti=!1,Cd=null,e}function Ae(e,t){var r=t[Td];r===void 0&&(r=t[Td]=new Set);var n=e+"__bubble";r.has(n)||(zg(t,e,2,!1),r.add(n))}function Qu(e,t,r){var n=0;t&&(n|=4),zg(r,e,n,t)}var mi="_reactListening"+Math.random().toString(36).slice(2);function Uo(e){if(!e[mi]){e[mi]=!0,Vh.forEach(function(r){r!=="selectionchange"&&(RS.has(r)||Qu(r,!1,e),Qu(r,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mi]||(t[mi]=!0,Qu("selectionchange",!1,t))}}function zg(e,t,r,n){switch(Sg(t)){case 1:var a=jb;break;case 4:a=Vb;break;default:a=dc}r=a.bind(null,t,r,e),a=void 0,!Sd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),n?a!==void 0?e.addEventListener(t,r,{capture:!0,passive:a}):e.addEventListener(t,r,!0):a!==void 0?e.addEventListener(t,r,{passive:a}):e.addEventListener(t,r,!1)}function Yu(e,t,r,n,a){var o=n;if((t&1)===0&&(t&2)===0&&n!==null)e:for(;;){if(n===null)return;var s=n.tag;if(s===3||s===4){var i=n.stateNode.containerInfo;if(i===a||i.nodeType===8&&i.parentNode===a)break;if(s===4)for(s=n.return;s!==null;){var l=s.tag;if((l===3||l===4)&&(l=s.stateNode.containerInfo,l===a||l.nodeType===8&&l.parentNode===a))return;s=s.return}for(;i!==null;){if(s=Nn(i),s===null)return;if(l=s.tag,l===5||l===6){n=o=s;continue e}i=i.parentNode}}n=n.return}lg(function(){var d=o,u=sc(r),p=[];e:{var c=Fg.get(e);if(c!==void 0){var f=fc,h=e;switch(e){case"keypress":if(Ci(r)===0)break e;case"keydown":case"keyup":f=iS;break;case"focusin":h="focus",f=Gu;break;case"focusout":h="blur",f=Gu;break;case"beforeblur":case"afterblur":f=Gu;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Zm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=Kb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=dS;break;case Tg:case Ag:case Dg:f=Jb;break;case Og:f=fS;break;case"scroll":f=Gb;break;case"wheel":f=mS;break;case"copy":case"cut":case"paste":f=eS;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=th}var m=(t&4)!==0,b=!m&&e==="scroll",g=m?c!==null?c+"Capture":null:c;m=[];for(var x=d,v;x!==null;){v=x;var S=v.stateNode;if(v.tag===5&&S!==null&&(v=S,g!==null&&(S=Ao(x,g),S!=null&&m.push(qo(x,S,v)))),b)break;x=x.return}0<m.length&&(c=new f(c,h,null,r,u),p.push({event:c,listeners:m}))}}if((t&7)===0){e:{if(c=e==="mouseover"||e==="pointerover",f=e==="mouseout"||e==="pointerout",c&&r!==wd&&(h=r.relatedTarget||r.fromElement)&&(Nn(h)||h[zr]))break e;if((f||c)&&(c=u.window===u?u:(c=u.ownerDocument)?c.defaultView||c.parentWindow:window,f?(h=r.relatedTarget||r.toElement,f=d,h=h?Nn(h):null,h!==null&&(b=Hn(h),h!==b||h.tag!==5&&h.tag!==6)&&(h=null)):(f=null,h=d),f!==h)){if(m=Zm,S="onMouseLeave",g="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(m=th,S="onPointerLeave",g="onPointerEnter",x="pointer"),b=f==null?c:wa(f),v=h==null?c:wa(h),c=new m(S,x+"leave",f,r,u),c.target=b,c.relatedTarget=v,S=null,Nn(u)===d&&(m=new m(g,x+"enter",h,r,u),m.target=v,m.relatedTarget=b,S=m),b=S,f&&h)t:{for(m=f,g=h,x=0,v=m;v;v=ma(v))x++;for(v=0,S=g;S;S=ma(S))v++;for(;0<x-v;)m=ma(m),x--;for(;0<v-x;)g=ma(g),v--;for(;x--;){if(m===g||g!==null&&m===g.alternate)break t;m=ma(m),g=ma(g)}m=null}else m=null;f!==null&&ph(p,c,f,m,!1),h!==null&&b!==null&&ph(p,b,h,m,!0)}}e:{if(c=d?wa(d):window,f=c.nodeName&&c.nodeName.toLowerCase(),f==="select"||f==="input"&&c.type==="file")var y=bS;else if(ah(c))if(Mg)y=kS;else{y=CS;var w=SS}else(f=c.nodeName)&&f.toLowerCase()==="input"&&(c.type==="checkbox"||c.type==="radio")&&(y=LS);if(y&&(y=y(e,d))){_g(p,y,r,u);break e}w&&w(e,c,d),e==="focusout"&&(w=c._wrapperState)&&w.controlled&&c.type==="number"&&hd(c,"number",c.value)}switch(w=d?wa(d):window,e){case"focusin":(ah(w)||w.contentEditable==="true")&&(va=w,_d=d,_o=null);break;case"focusout":_o=_d=va=null;break;case"mousedown":Md=!0;break;case"contextmenu":case"mouseup":case"dragend":Md=!1,lh(p,r,u);break;case"selectionchange":if(MS)break;case"keydown":case"keyup":lh(p,r,u)}var L;if(mc)e:{switch(e){case"compositionstart":var C="onCompositionStart";break e;case"compositionend":C="onCompositionEnd";break e;case"compositionupdate":C="onCompositionUpdate";break e}C=void 0}else xa?kg(e,r)&&(C="onCompositionEnd"):e==="keydown"&&r.keyCode===229&&(C="onCompositionStart");C&&(Lg&&r.locale!=="ko"&&(xa||C!=="onCompositionStart"?C==="onCompositionEnd"&&xa&&(L=Cg()):(nn=u,cc="value"in nn?nn.value:nn.textContent,xa=!0)),w=Bi(d,C),0<w.length&&(C=new eh(C,e,null,r,u),p.push({event:C,listeners:w}),L?C.data=L:(L=Ig(r),L!==null&&(C.data=L)))),(L=gS?xS(e,r):vS(e,r))&&(d=Bi(d,"onBeforeInput"),0<d.length&&(u=new eh("onBeforeInput","beforeinput",null,r,u),p.push({event:u,listeners:d}),u.data=L))}Bg(p,t)})}function qo(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Bi(e,t){for(var r=t+"Capture",n=[];e!==null;){var a=e,o=a.stateNode;a.tag===5&&o!==null&&(a=o,o=Ao(e,r),o!=null&&n.unshift(qo(e,o,a)),o=Ao(e,t),o!=null&&n.push(qo(e,o,a))),e=e.return}return n}function ma(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ph(e,t,r,n,a){for(var o=t._reactName,s=[];r!==null&&r!==n;){var i=r,l=i.alternate,d=i.stateNode;if(l!==null&&l===n)break;i.tag===5&&d!==null&&(i=d,a?(l=Ao(r,o),l!=null&&s.unshift(qo(r,l,i))):a||(l=Ao(r,o),l!=null&&s.push(qo(r,l,i)))),r=r.return}s.length!==0&&e.push({event:t,listeners:s})}var ES=/\r\n?/g,PS=/\u0000|\uFFFD/g;function mh(e){return(typeof e=="string"?e:""+e).replace(ES,`
6
+ `).replace(PS,"")}function hi(e,t,r){if(t=mh(t),mh(e)!==t&&r)throw Error(P(425))}function zi(){}var Rd=null,Ed=null;function Pd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Nd=typeof setTimeout=="function"?setTimeout:void 0,NS=typeof clearTimeout=="function"?clearTimeout:void 0,hh=typeof Promise=="function"?Promise:void 0,TS=typeof queueMicrotask=="function"?queueMicrotask:typeof hh<"u"?function(e){return hh.resolve(null).then(e).catch(AS)}:Nd;function AS(e){setTimeout(function(){throw e})}function Ju(e,t){var r=t,n=0;do{var a=r.nextSibling;if(e.removeChild(r),a&&a.nodeType===8)if(r=a.data,r==="/$"){if(n===0){e.removeChild(a),Fo(t);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=a}while(r);Fo(t)}function un(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function gh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="$"||r==="$!"||r==="$?"){if(t===0)return e;t--}else r==="/$"&&t++}e=e.previousSibling}return null}var qa=Math.random().toString(36).slice(2),Ir="__reactFiber$"+qa,$o="__reactProps$"+qa,zr="__reactContainer$"+qa,Td="__reactEvents$"+qa,DS="__reactListeners$"+qa,OS="__reactHandles$"+qa;function Nn(e){var t=e[Ir];if(t)return t;for(var r=e.parentNode;r;){if(t=r[zr]||r[Ir]){if(r=t.alternate,t.child!==null||r!==null&&r.child!==null)for(e=gh(e);e!==null;){if(r=e[Ir])return r;e=gh(e)}return t}e=r,r=e.parentNode}return null}function Yo(e){return e=e[Ir]||e[zr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function wa(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function ol(e){return e[$o]||null}var Ad=[],ba=-1;function xn(e){return{current:e}}function De(e){0>ba||(e.current=Ad[ba],Ad[ba]=null,ba--)}function Pe(e,t){ba++,Ad[ba]=e.current,e.current=t}var hn={},mt=xn(hn),Rt=xn(!1),Fn=hn;function Aa(e,t){var r=e.type.contextTypes;if(!r)return hn;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var a={},o;for(o in r)a[o]=t[o];return n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Et(e){return e=e.childContextTypes,e!=null}function Ui(){De(Rt),De(mt)}function xh(e,t,r){if(mt.current!==hn)throw Error(P(168));Pe(mt,t),Pe(Rt,r)}function Ug(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var a in n)if(!(a in t))throw Error(P(108,Sb(e)||"Unknown",a));return $e({},r,n)}function qi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||hn,Fn=mt.current,Pe(mt,e),Pe(Rt,Rt.current),!0}function vh(e,t,r){var n=e.stateNode;if(!n)throw Error(P(169));r?(e=Ug(e,t,Fn),n.__reactInternalMemoizedMergedChildContext=e,De(Rt),De(mt),Pe(mt,e)):De(Rt),Pe(Rt,r)}var Ar=null,sl=!1,Zu=!1;function qg(e){Ar===null?Ar=[e]:Ar.push(e)}function FS(e){sl=!0,qg(e)}function vn(){if(!Zu&&Ar!==null){Zu=!0;var e=0,t=Le;try{var r=Ar;for(Le=1;e<r.length;e++){var n=r[e];do n=n(!0);while(n!==null)}Ar=null,sl=!1}catch(a){throw Ar!==null&&(Ar=Ar.slice(e+1)),fg(ic,vn),a}finally{Le=t,Zu=!1}}return null}var Sa=[],Ca=0,$i=null,Hi=0,Vt=[],Gt=0,Bn=null,Dr=1,Or="";function En(e,t){Sa[Ca++]=Hi,Sa[Ca++]=$i,$i=e,Hi=t}function $g(e,t,r){Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Bn,Bn=e;var n=Dr;e=Or;var a=32-fr(n)-1;n&=~(1<<a),r+=1;var o=32-fr(t)+a;if(30<o){var s=a-a%5;o=(n&(1<<s)-1).toString(32),n>>=s,a-=s,Dr=1<<32-fr(t)+a|r<<a|n,Or=o+e}else Dr=1<<o|r<<a|n,Or=e}function gc(e){e.return!==null&&(En(e,1),$g(e,1,0))}function xc(e){for(;e===$i;)$i=Sa[--Ca],Sa[Ca]=null,Hi=Sa[--Ca],Sa[Ca]=null;for(;e===Bn;)Bn=Vt[--Gt],Vt[Gt]=null,Or=Vt[--Gt],Vt[Gt]=null,Dr=Vt[--Gt],Vt[Gt]=null}var Bt=null,Ft=null,Fe=!1,cr=null;function Hg(e,t){var r=Xt(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)}function yh(e,t){switch(e.tag){case 5:var r=e.type;return t=t.nodeType!==1||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=un(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Bt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(r=Bn!==null?{id:Dr,overflow:Or}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},r=Xt(18,null,null,0),r.stateNode=t,r.return=e,e.child=r,Bt=e,Ft=null,!0):!1;default:return!1}}function Dd(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Od(e){if(Fe){var t=Ft;if(t){var r=t;if(!yh(e,t)){if(Dd(e))throw Error(P(418));t=un(r.nextSibling);var n=Bt;t&&yh(e,t)?Hg(n,r):(e.flags=e.flags&-4097|2,Fe=!1,Bt=e)}}else{if(Dd(e))throw Error(P(418));e.flags=e.flags&-4097|2,Fe=!1,Bt=e}}}function wh(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Bt=e}function gi(e){if(e!==Bt)return!1;if(!Fe)return wh(e),Fe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Pd(e.type,e.memoizedProps)),t&&(t=Ft)){if(Dd(e))throw Wg(),Error(P(418));for(;t;)Hg(e,t),t=un(t.nextSibling)}if(wh(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var r=e.data;if(r==="/$"){if(t===0){Ft=un(e.nextSibling);break e}t--}else r!=="$"&&r!=="$!"&&r!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Bt?un(e.stateNode.nextSibling):null;return!0}function Wg(){for(var e=Ft;e;)e=un(e.nextSibling)}function Da(){Ft=Bt=null,Fe=!1}function vc(e){cr===null?cr=[e]:cr.push(e)}var BS=$r.ReactCurrentBatchConfig;function ho(e,t,r){if(e=r.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(P(309));var n=r.stateNode}if(!n)throw Error(P(147,e));var a=n,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(s){var i=a.refs;s===null?delete i[o]:i[o]=s},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!r._owner)throw Error(P(290,e))}return e}function xi(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bh(e){var t=e._init;return t(e._payload)}function jg(e){function t(g,x){if(e){var v=g.deletions;v===null?(g.deletions=[x],g.flags|=16):v.push(x)}}function r(g,x){if(!e)return null;for(;x!==null;)t(g,x),x=x.sibling;return null}function n(g,x){for(g=new Map;x!==null;)x.key!==null?g.set(x.key,x):g.set(x.index,x),x=x.sibling;return g}function a(g,x){return g=pn(g,x),g.index=0,g.sibling=null,g}function o(g,x,v){return g.index=v,e?(v=g.alternate,v!==null?(v=v.index,v<x?(g.flags|=2,x):v):(g.flags|=2,x)):(g.flags|=1048576,x)}function s(g){return e&&g.alternate===null&&(g.flags|=2),g}function i(g,x,v,S){return x===null||x.tag!==6?(x=sd(v,g.mode,S),x.return=g,x):(x=a(x,v),x.return=g,x)}function l(g,x,v,S){var y=v.type;return y===ga?u(g,x,v.props.children,S,v.key):x!==null&&(x.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Zr&&bh(y)===x.type)?(S=a(x,v.props),S.ref=ho(g,x,v),S.return=g,S):(S=Ei(v.type,v.key,v.props,null,g.mode,S),S.ref=ho(g,x,v),S.return=g,S)}function d(g,x,v,S){return x===null||x.tag!==4||x.stateNode.containerInfo!==v.containerInfo||x.stateNode.implementation!==v.implementation?(x=id(v,g.mode,S),x.return=g,x):(x=a(x,v.children||[]),x.return=g,x)}function u(g,x,v,S,y){return x===null||x.tag!==7?(x=On(v,g.mode,S,y),x.return=g,x):(x=a(x,v),x.return=g,x)}function p(g,x,v){if(typeof x=="string"&&x!==""||typeof x=="number")return x=sd(""+x,g.mode,v),x.return=g,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ri:return v=Ei(x.type,x.key,x.props,null,g.mode,v),v.ref=ho(g,null,x),v.return=g,v;case ha:return x=id(x,g.mode,v),x.return=g,x;case Zr:var S=x._init;return p(g,S(x._payload),v)}if(wo(x)||co(x))return x=On(x,g.mode,v,null),x.return=g,x;xi(g,x)}return null}function c(g,x,v,S){var y=x!==null?x.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return y!==null?null:i(g,x,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:return v.key===y?l(g,x,v,S):null;case ha:return v.key===y?d(g,x,v,S):null;case Zr:return y=v._init,c(g,x,y(v._payload),S)}if(wo(v)||co(v))return y!==null?null:u(g,x,v,S,null);xi(g,v)}return null}function f(g,x,v,S,y){if(typeof S=="string"&&S!==""||typeof S=="number")return g=g.get(v)||null,i(x,g,""+S,y);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case ri:return g=g.get(S.key===null?v:S.key)||null,l(x,g,S,y);case ha:return g=g.get(S.key===null?v:S.key)||null,d(x,g,S,y);case Zr:var w=S._init;return f(g,x,v,w(S._payload),y)}if(wo(S)||co(S))return g=g.get(v)||null,u(x,g,S,y,null);xi(x,S)}return null}function h(g,x,v,S){for(var y=null,w=null,L=x,C=x=0,_=null;L!==null&&C<v.length;C++){L.index>C?(_=L,L=null):_=L.sibling;var I=c(g,L,v[C],S);if(I===null){L===null&&(L=_);break}e&&L&&I.alternate===null&&t(g,L),x=o(I,x,C),w===null?y=I:w.sibling=I,w=I,L=_}if(C===v.length)return r(g,L),Fe&&En(g,C),y;if(L===null){for(;C<v.length;C++)L=p(g,v[C],S),L!==null&&(x=o(L,x,C),w===null?y=L:w.sibling=L,w=L);return Fe&&En(g,C),y}for(L=n(g,L);C<v.length;C++)_=f(L,g,C,v[C],S),_!==null&&(e&&_.alternate!==null&&L.delete(_.key===null?C:_.key),x=o(_,x,C),w===null?y=_:w.sibling=_,w=_);return e&&L.forEach(function(D){return t(g,D)}),Fe&&En(g,C),y}function m(g,x,v,S){var y=co(v);if(typeof y!="function")throw Error(P(150));if(v=y.call(v),v==null)throw Error(P(151));for(var w=y=null,L=x,C=x=0,_=null,I=v.next();L!==null&&!I.done;C++,I=v.next()){L.index>C?(_=L,L=null):_=L.sibling;var D=c(g,L,I.value,S);if(D===null){L===null&&(L=_);break}e&&L&&D.alternate===null&&t(g,L),x=o(D,x,C),w===null?y=D:w.sibling=D,w=D,L=_}if(I.done)return r(g,L),Fe&&En(g,C),y;if(L===null){for(;!I.done;C++,I=v.next())I=p(g,I.value,S),I!==null&&(x=o(I,x,C),w===null?y=I:w.sibling=I,w=I);return Fe&&En(g,C),y}for(L=n(g,L);!I.done;C++,I=v.next())I=f(L,g,C,I.value,S),I!==null&&(e&&I.alternate!==null&&L.delete(I.key===null?C:I.key),x=o(I,x,C),w===null?y=I:w.sibling=I,w=I);return e&&L.forEach(function(A){return t(g,A)}),Fe&&En(g,C),y}function b(g,x,v,S){if(typeof v=="object"&&v!==null&&v.type===ga&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ri:e:{for(var y=v.key,w=x;w!==null;){if(w.key===y){if(y=v.type,y===ga){if(w.tag===7){r(g,w.sibling),x=a(w,v.props.children),x.return=g,g=x;break e}}else if(w.elementType===y||typeof y=="object"&&y!==null&&y.$$typeof===Zr&&bh(y)===w.type){r(g,w.sibling),x=a(w,v.props),x.ref=ho(g,w,v),x.return=g,g=x;break e}r(g,w);break}else t(g,w);w=w.sibling}v.type===ga?(x=On(v.props.children,g.mode,S,v.key),x.return=g,g=x):(S=Ei(v.type,v.key,v.props,null,g.mode,S),S.ref=ho(g,x,v),S.return=g,g=S)}return s(g);case ha:e:{for(w=v.key;x!==null;){if(x.key===w)if(x.tag===4&&x.stateNode.containerInfo===v.containerInfo&&x.stateNode.implementation===v.implementation){r(g,x.sibling),x=a(x,v.children||[]),x.return=g,g=x;break e}else{r(g,x);break}else t(g,x);x=x.sibling}x=id(v,g.mode,S),x.return=g,g=x}return s(g);case Zr:return w=v._init,b(g,x,w(v._payload),S)}if(wo(v))return h(g,x,v,S);if(co(v))return m(g,x,v,S);xi(g,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,x!==null&&x.tag===6?(r(g,x.sibling),x=a(x,v),x.return=g,g=x):(r(g,x),x=sd(v,g.mode,S),x.return=g,g=x),s(g)):r(g,x)}return b}var Oa=jg(!0),Vg=jg(!1),Wi=xn(null),ji=null,La=null,yc=null;function wc(){yc=La=ji=null}function bc(e){var t=Wi.current;De(Wi),e._currentValue=t}function Fd(e,t,r){for(;e!==null;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,n!==null&&(n.childLanes|=t)):n!==null&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function Pa(e,t){ji=e,yc=La=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Mt=!0),e.firstContext=null)}function Qt(e){var t=e._currentValue;if(yc!==e)if(e={context:e,memoizedValue:t,next:null},La===null){if(ji===null)throw Error(P(308));La=e,ji.dependencies={lanes:0,firstContext:e}}else La=La.next=e;return t}var Tn=null;function Sc(e){Tn===null?Tn=[e]:Tn.push(e)}function Gg(e,t,r,n){var a=t.interleaved;return a===null?(r.next=r,Sc(t)):(r.next=a.next,a.next=r),t.interleaved=r,Ur(e,n)}function Ur(e,t){e.lanes|=t;var r=e.alternate;for(r!==null&&(r.lanes|=t),r=e,e=e.return;e!==null;)e.childLanes|=t,r=e.alternate,r!==null&&(r.childLanes|=t),r=e,e=e.return;return r.tag===3?r.stateNode:null}var en=!1;function Cc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xg(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Fr(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function dn(e,t,r){var n=e.updateQueue;if(n===null)return null;if(n=n.shared,(he&2)!==0){var a=n.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),n.pending=t,Ur(e,r)}return a=n.interleaved,a===null?(t.next=t,Sc(n)):(t.next=a.next,a.next=t),n.interleaved=t,Ur(e,r)}function Li(e,t,r){if(t=t.updateQueue,t!==null&&(t=t.shared,(r&4194240)!==0)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lc(e,r)}}function Sh(e,t){var r=e.updateQueue,n=e.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var a=null,o=null;if(r=r.firstBaseUpdate,r!==null){do{var s={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};o===null?a=o=s:o=o.next=s,r=r.next}while(r!==null);o===null?a=o=t:o=o.next=t}else a=o=t;r={baseState:n.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:n.shared,effects:n.effects},e.updateQueue=r;return}e=r.lastBaseUpdate,e===null?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Vi(e,t,r,n){var a=e.updateQueue;en=!1;var o=a.firstBaseUpdate,s=a.lastBaseUpdate,i=a.shared.pending;if(i!==null){a.shared.pending=null;var l=i,d=l.next;l.next=null,s===null?o=d:s.next=d,s=l;var u=e.alternate;u!==null&&(u=u.updateQueue,i=u.lastBaseUpdate,i!==s&&(i===null?u.firstBaseUpdate=d:i.next=d,u.lastBaseUpdate=l))}if(o!==null){var p=a.baseState;s=0,u=d=l=null,i=o;do{var c=i.lane,f=i.eventTime;if((n&c)===c){u!==null&&(u=u.next={eventTime:f,lane:0,tag:i.tag,payload:i.payload,callback:i.callback,next:null});e:{var h=e,m=i;switch(c=t,f=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){p=h.call(f,p,c);break e}p=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,c=typeof h=="function"?h.call(f,p,c):h,c==null)break e;p=$e({},p,c);break e;case 2:en=!0}}i.callback!==null&&i.lane!==0&&(e.flags|=64,c=a.effects,c===null?a.effects=[i]:c.push(i))}else f={eventTime:f,lane:c,tag:i.tag,payload:i.payload,callback:i.callback,next:null},u===null?(d=u=f,l=p):u=u.next=f,s|=c;if(i=i.next,i===null){if(i=a.shared.pending,i===null)break;c=i,i=c.next,c.next=null,a.lastBaseUpdate=c,a.shared.pending=null}}while(!0);if(u===null&&(l=p),a.baseState=l,a.firstBaseUpdate=d,a.lastBaseUpdate=u,t=a.shared.interleaved,t!==null){a=t;do s|=a.lane,a=a.next;while(a!==t)}else o===null&&(a.shared.lanes=0);Un|=s,e.lanes=s,e.memoizedState=p}}function Ch(e,t,r){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var n=e[t],a=n.callback;if(a!==null){if(n.callback=null,n=r,typeof a!="function")throw Error(P(191,a));a.call(n)}}}var Jo={},Mr=xn(Jo),Ho=xn(Jo),Wo=xn(Jo);function An(e){if(e===Jo)throw Error(P(174));return e}function Lc(e,t){switch(Pe(Wo,t),Pe(Ho,e),Pe(Mr,Jo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:xd(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=xd(t,e)}De(Mr),Pe(Mr,t)}function Fa(){De(Mr),De(Ho),De(Wo)}function Kg(e){An(Wo.current);var t=An(Mr.current),r=xd(t,e.type);t!==r&&(Pe(Ho,e),Pe(Mr,r))}function kc(e){Ho.current===e&&(De(Mr),De(Ho))}var Ue=xn(0);function Gi(e){for(var t=e;t!==null;){if(t.tag===13){var r=t.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ed=[];function Ic(){for(var e=0;e<ed.length;e++)ed[e]._workInProgressVersionPrimary=null;ed.length=0}var ki=$r.ReactCurrentDispatcher,td=$r.ReactCurrentBatchConfig,zn=0,qe=null,Ye=null,tt=null,Xi=!1,Mo=!1,jo=0,zS=0;function ct(){throw Error(P(321))}function _c(e,t){if(t===null)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!mr(e[r],t[r]))return!1;return!0}function Mc(e,t,r,n,a,o){if(zn=o,qe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ki.current=e===null||e.memoizedState===null?HS:WS,e=r(n,a),Mo){o=0;do{if(Mo=!1,jo=0,25<=o)throw Error(P(301));o+=1,tt=Ye=null,t.updateQueue=null,ki.current=jS,e=r(n,a)}while(Mo)}if(ki.current=Ki,t=Ye!==null&&Ye.next!==null,zn=0,tt=Ye=qe=null,Xi=!1,t)throw Error(P(300));return e}function Rc(){var e=jo!==0;return jo=0,e}function kr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return tt===null?qe.memoizedState=tt=e:tt=tt.next=e,tt}function Yt(){if(Ye===null){var e=qe.alternate;e=e!==null?e.memoizedState:null}else e=Ye.next;var t=tt===null?qe.memoizedState:tt.next;if(t!==null)tt=t,Ye=e;else{if(e===null)throw Error(P(310));Ye=e,e={memoizedState:Ye.memoizedState,baseState:Ye.baseState,baseQueue:Ye.baseQueue,queue:Ye.queue,next:null},tt===null?qe.memoizedState=tt=e:tt=tt.next=e}return tt}function Vo(e,t){return typeof t=="function"?t(e):t}function rd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var n=Ye,a=n.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}n.baseQueue=a=o,r.pending=null}if(a!==null){o=a.next,n=n.baseState;var i=s=null,l=null,d=o;do{var u=d.lane;if((zn&u)===u)l!==null&&(l=l.next={lane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),n=d.hasEagerState?d.eagerState:e(n,d.action);else{var p={lane:u,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null};l===null?(i=l=p,s=n):l=l.next=p,qe.lanes|=u,Un|=u}d=d.next}while(d!==null&&d!==o);l===null?s=n:l.next=i,mr(n,t.memoizedState)||(Mt=!0),t.memoizedState=n,t.baseState=s,t.baseQueue=l,r.lastRenderedState=n}if(e=r.interleaved,e!==null){a=e;do o=a.lane,qe.lanes|=o,Un|=o,a=a.next;while(a!==e)}else a===null&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function nd(e){var t=Yt(),r=t.queue;if(r===null)throw Error(P(311));r.lastRenderedReducer=e;var n=r.dispatch,a=r.pending,o=t.memoizedState;if(a!==null){r.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);mr(o,t.memoizedState)||(Mt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),r.lastRenderedState=o}return[o,n]}function Qg(){}function Yg(e,t){var r=qe,n=Yt(),a=t(),o=!mr(n.memoizedState,a);if(o&&(n.memoizedState=a,Mt=!0),n=n.queue,Ec(ex.bind(null,r,n,e),[e]),n.getSnapshot!==t||o||tt!==null&&tt.memoizedState.tag&1){if(r.flags|=2048,Go(9,Zg.bind(null,r,n,a,t),void 0,null),rt===null)throw Error(P(349));(zn&30)!==0||Jg(r,t,a)}return a}function Jg(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.stores=[e]):(r=t.stores,r===null?t.stores=[e]:r.push(e))}function Zg(e,t,r,n){t.value=r,t.getSnapshot=n,tx(t)&&rx(e)}function ex(e,t,r){return r(function(){tx(t)&&rx(e)})}function tx(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!mr(e,r)}catch{return!0}}function rx(e){var t=Ur(e,1);t!==null&&pr(t,e,1,-1)}function Lh(e){var t=kr();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:e},t.queue=e,e=e.dispatch=$S.bind(null,qe,e),[t.memoizedState,e]}function Go(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},t=qe.updateQueue,t===null?(t={lastEffect:null,stores:null},qe.updateQueue=t,t.lastEffect=e.next=e):(r=t.lastEffect,r===null?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e)),e}function nx(){return Yt().memoizedState}function Ii(e,t,r,n){var a=kr();qe.flags|=e,a.memoizedState=Go(1|t,r,void 0,n===void 0?null:n)}function il(e,t,r,n){var a=Yt();n=n===void 0?null:n;var o=void 0;if(Ye!==null){var s=Ye.memoizedState;if(o=s.destroy,n!==null&&_c(n,s.deps)){a.memoizedState=Go(t,r,o,n);return}}qe.flags|=e,a.memoizedState=Go(1|t,r,o,n)}function kh(e,t){return Ii(8390656,8,e,t)}function Ec(e,t){return il(2048,8,e,t)}function ax(e,t){return il(4,2,e,t)}function ox(e,t){return il(4,4,e,t)}function sx(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ix(e,t,r){return r=r!=null?r.concat([e]):null,il(4,4,sx.bind(null,t,e),r)}function Pc(){}function lx(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_c(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function ux(e,t){var r=Yt();t=t===void 0?null:t;var n=r.memoizedState;return n!==null&&t!==null&&_c(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function dx(e,t,r){return(zn&21)===0?(e.baseState&&(e.baseState=!1,Mt=!0),e.memoizedState=r):(mr(r,t)||(r=hg(),qe.lanes|=r,Un|=r,e.baseState=!0),t)}function US(e,t){var r=Le;Le=r!==0&&4>r?r:4,e(!0);var n=td.transition;td.transition={};try{e(!1),t()}finally{Le=r,td.transition=n}}function cx(){return Yt().memoizedState}function qS(e,t,r){var n=fn(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},fx(e))px(t,r);else if(r=Gg(e,t,r,n),r!==null){var a=St();pr(r,e,n,a),mx(r,t,n)}}function $S(e,t,r){var n=fn(e),a={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(fx(e))px(t,a);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,i=o(s,r);if(a.hasEagerState=!0,a.eagerState=i,mr(i,s)){var l=t.interleaved;l===null?(a.next=a,Sc(t)):(a.next=l.next,l.next=a),t.interleaved=a;return}}catch{}r=Gg(e,t,a,n),r!==null&&(a=St(),pr(r,e,n,a),mx(r,t,n))}}function fx(e){var t=e.alternate;return e===qe||t!==null&&t===qe}function px(e,t){Mo=Xi=!0;var r=e.pending;r===null?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function mx(e,t,r){if((r&4194240)!==0){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,lc(e,r)}}var Ki={readContext:Qt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},HS={readContext:Qt,useCallback:function(e,t){return kr().memoizedState=[e,t===void 0?null:t],e},useContext:Qt,useEffect:kh,useImperativeHandle:function(e,t,r){return r=r!=null?r.concat([e]):null,Ii(4194308,4,sx.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Ii(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ii(4,2,e,t)},useMemo:function(e,t){var r=kr();return t=t===void 0?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=kr();return t=r!==void 0?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=qS.bind(null,qe,e),[n.memoizedState,e]},useRef:function(e){var t=kr();return e={current:e},t.memoizedState=e},useState:Lh,useDebugValue:Pc,useDeferredValue:function(e){return kr().memoizedState=e},useTransition:function(){var e=Lh(!1),t=e[0];return e=US.bind(null,e[1]),kr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=qe,a=kr();if(Fe){if(r===void 0)throw Error(P(407));r=r()}else{if(r=t(),rt===null)throw Error(P(349));(zn&30)!==0||Jg(n,t,r)}a.memoizedState=r;var o={value:r,getSnapshot:t};return a.queue=o,kh(ex.bind(null,n,o,e),[e]),n.flags|=2048,Go(9,Zg.bind(null,n,o,r,t),void 0,null),r},useId:function(){var e=kr(),t=rt.identifierPrefix;if(Fe){var r=Or,n=Dr;r=(n&~(1<<32-fr(n)-1)).toString(32)+r,t=":"+t+"R"+r,r=jo++,0<r&&(t+="H"+r.toString(32)),t+=":"}else r=zS++,t=":"+t+"r"+r.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},WS={readContext:Qt,useCallback:lx,useContext:Qt,useEffect:Ec,useImperativeHandle:ix,useInsertionEffect:ax,useLayoutEffect:ox,useMemo:ux,useReducer:rd,useRef:nx,useState:function(){return rd(Vo)},useDebugValue:Pc,useDeferredValue:function(e){var t=Yt();return dx(t,Ye.memoizedState,e)},useTransition:function(){var e=rd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Yg,useId:cx,unstable_isNewReconciler:!1},jS={readContext:Qt,useCallback:lx,useContext:Qt,useEffect:Ec,useImperativeHandle:ix,useInsertionEffect:ax,useLayoutEffect:ox,useMemo:ux,useReducer:nd,useRef:nx,useState:function(){return nd(Vo)},useDebugValue:Pc,useDeferredValue:function(e){var t=Yt();return Ye===null?t.memoizedState=e:dx(t,Ye.memoizedState,e)},useTransition:function(){var e=nd(Vo)[0],t=Yt().memoizedState;return[e,t]},useMutableSource:Qg,useSyncExternalStore:Yg,useId:cx,unstable_isNewReconciler:!1};function ur(e,t){if(e&&e.defaultProps){t=$e({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Bd(e,t,r,n){t=e.memoizedState,r=r(n,t),r=r==null?t:$e({},t,r),e.memoizedState=r,e.lanes===0&&(e.updateQueue.baseState=r)}var ll={isMounted:function(e){return(e=e._reactInternals)?Hn(e)===e:!1},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=St(),a=fn(e),o=Fr(n,a);o.payload=t,r!=null&&(o.callback=r),t=dn(e,o,a),t!==null&&(pr(t,e,a,n),Li(t,e,a))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=St(),a=fn(e),o=Fr(n,a);o.tag=1,o.payload=t,r!=null&&(o.callback=r),t=dn(e,o,a),t!==null&&(pr(t,e,a,n),Li(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=St(),n=fn(e),a=Fr(r,n);a.tag=2,t!=null&&(a.callback=t),t=dn(e,a,n),t!==null&&(pr(t,e,n,r),Li(t,e,n))}};function Ih(e,t,r,n,a,o,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(n,o,s):t.prototype&&t.prototype.isPureReactComponent?!zo(r,n)||!zo(a,o):!0}function hx(e,t,r){var n=!1,a=hn,o=t.contextType;return typeof o=="object"&&o!==null?o=Qt(o):(a=Et(t)?Fn:mt.current,n=t.contextTypes,o=(n=n!=null)?Aa(e,a):hn),t=new t(r,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ll,e.stateNode=t,t._reactInternals=e,n&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function _h(e,t,r,n){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(r,n),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&ll.enqueueReplaceState(t,t.state,null)}function zd(e,t,r,n){var a=e.stateNode;a.props=r,a.state=e.memoizedState,a.refs={},Cc(e);var o=t.contextType;typeof o=="object"&&o!==null?a.context=Qt(o):(o=Et(t)?Fn:mt.current,a.context=Aa(e,o)),a.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Bd(e,t,o,r),a.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(t=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),t!==a.state&&ll.enqueueReplaceState(a,a.state,null),Vi(e,r,a,n),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function Ba(e,t){try{var r="",n=t;do r+=bb(n),n=n.return;while(n);var a=r}catch(o){a=`
7
7
  Error generating stack: `+o.message+`
8
- `+o.stack}return{value:e,source:t,stack:n,digest:null}}function ad(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function zd(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var Wb=typeof WeakMap=="function"?WeakMap:Map;function fx(e,t,r){r=Fr(-1,r),r.tag=3,r.payload={element:null};var a=t.value;return r.callback=function(){Qi||(Qi=!0,Kd=a),zd(e,t)},r}function px(e,t,r){r=Fr(-1,r),r.tag=3;var a=e.type.getDerivedStateFromError;if(typeof a=="function"){var n=t.value;r.payload=function(){return a(n)},r.callback=function(){zd(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){zd(e,t),typeof a!="function"&&(da===null?da=new Set([this]):da.add(this));var i=t.stack;this.componentDidCatch(t.value,{componentStack:i!==null?i:""})}),r}function Lh(e,t,r){var a=e.pingCache;if(a===null){a=e.pingCache=new Wb;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(r)||(n.add(r),e=nC.bind(null,e,t,r),t.then(e,e))}function kh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ih(e,t,r,a,n){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fr(-1,1),t.tag=2,ua(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=n,e)}var jb=$r.ReactCurrentOwner,_t=!1;function St(e,t,r,a){t.child=e===null?$g(t,null,r,a):Dn(t,e.child,r,a)}function Mh(e,t,r,a,n){r=r.render;var o=t.ref;return En(t,n),a=Mc(e,t,r,a,o,n),r=_c(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,qr(e,t,n)):(Fe&&r&&hc(t),t.flags|=1,St(e,t,a,n),t.child)}function _h(e,t,r,a,n){if(e===null){var o=r.type;return typeof o=="function"&&!Bc(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,mx(e,t,o,a,n)):(e=Ri(r.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&n)===0){var i=o.memoizedProps;if(r=r.compare,r=r!==null?r:zo,r(i,a)&&e.ref===t.ref)return qr(e,t,n)}return t.flags|=1,e=fa(o,a),e.ref=t.ref,e.return=t,t.child=e}function mx(e,t,r,a,n){if(e!==null){var o=e.memoizedProps;if(zo(o,a)&&e.ref===t.ref)if(_t=!1,t.pendingProps=a=o,(e.lanes&n)!==0)(e.flags&131072)!==0&&(_t=!0);else return t.lanes=e.lanes,qr(e,t,n)}return Ud(e,t,r,a,n)}function hx(e,t,r){var a=t.pendingProps,n=a.children,o=e!==null?e.memoizedState:null;if(a.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(kn,Ot),Ot|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(kn,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=o!==null?o.baseLanes:r,Pe(kn,Ot),Ot|=a}else o!==null?(a=o.baseLanes|r,t.memoizedState=null):a=r,Pe(kn,Ot),Ot|=a;return St(e,t,n,r),t.child}function gx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function Ud(e,t,r,a,n){var o=Et(r)?Oa:mt.current;return o=Nn(t,o),En(t,n),r=Mc(e,t,r,a,o,n),a=_c(),e!==null&&!_t?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,qr(e,t,n)):(Fe&&a&&hc(t),t.flags|=1,St(e,t,r,n),t.child)}function Rh(e,t,r,a,n){if(Et(r)){var o=!0;Ui(t)}else o=!1;if(En(t,n),t.stateNode===null)Ii(e,t),cx(t,r,a),Bd(t,r,a,n),a=!0;else if(e===null){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,d=r.contextType;typeof d=="object"&&d!==null?d=Qt(d):(d=Et(r)?Oa:mt.current,d=Nn(t,d));var u=r.getDerivedStateFromProps,f=typeof u=="function"||typeof i.getSnapshotBeforeUpdate=="function";f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==a||l!==d)&&Ch(t,i,a,d),ea=!1;var c=t.memoizedState;i.state=c,ji(t,a,i,n),l=t.memoizedState,s!==a||c!==l||Rt.current||ea?(typeof u=="function"&&(Fd(t,r,u,a),l=t.memoizedState),(s=ea||bh(t,r,s,a,c,l,d))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=l),i.props=a,i.state=l,i.context=d,a=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{i=t.stateNode,Wg(e,t),s=t.memoizedProps,d=t.type===t.elementType?s:ur(t.type,s),i.props=d,f=t.pendingProps,c=i.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Et(r)?Oa:mt.current,l=Nn(t,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||c!==l)&&Ch(t,i,a,l),ea=!1,c=t.memoizedState,i.state=c,ji(t,a,i,n);var h=t.memoizedState;s!==f||c!==h||Rt.current||ea?(typeof p=="function"&&(Fd(t,r,p,a),h=t.memoizedState),(d=ea||bh(t,r,d,a,c,h,l)||!1)?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,h,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,h,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),i.props=a,i.state=h,i.context=l,a=d):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),a=!1)}return qd(e,t,r,a,o,n)}function qd(e,t,r,a,n,o){gx(e,t);var i=(t.flags&128)!==0;if(!a&&!i)return n&&mh(t,r,!1),qr(e,t,o);a=t.stateNode,jb.current=t;var s=i&&typeof r.getDerivedStateFromError!="function"?null:a.render();return t.flags|=1,e!==null&&i?(t.child=Dn(t,e.child,null,o),t.child=Dn(t,null,s,o)):St(e,t,s,o),t.memoizedState=a.state,n&&mh(t,r,!0),t.child}function xx(e){var t=e.stateNode;t.pendingContext?ph(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ph(e,t.context,!1),Cc(e,t.containerInfo)}function Eh(e,t,r,a,n){return An(),xc(n),t.flags|=256,St(e,t,r,a),t.child}var $d={dehydrated:null,treeContext:null,retryLane:0};function Hd(e){return{baseLanes:e,cachePool:null,transitions:null}}function vx(e,t,r){var a=t.pendingProps,n=Ue.current,o=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),Pe(Ue,n&1),e===null)return Dd(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(i=a.children,e=a.fallback,o?(a=t.mode,o=t.child,i={mode:"hidden",children:i},(a&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=i):o=dl(i,a,0,null),e=Da(e,a,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Hd(r),t.memoizedState=$d,e):Pc(t,i));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return Vb(e,t,i,a,s,n,r);if(o){o=a.fallback,i=t.mode,n=e.child,s=n.sibling;var l={mode:"hidden",children:a.children};return(i&1)===0&&t.child!==n?(a=t.child,a.childLanes=0,a.pendingProps=l,t.deletions=null):(a=fa(n,l),a.subtreeFlags=n.subtreeFlags&14680064),s!==null?o=fa(s,o):(o=Da(o,i,r,null),o.flags|=2),o.return=t,a.return=t,a.sibling=o,t.child=a,a=o,o=t.child,i=e.child.memoizedState,i=i===null?Hd(r):{baseLanes:i.baseLanes|r,cachePool:null,transitions:i.transitions},o.memoizedState=i,o.childLanes=e.childLanes&~r,t.memoizedState=$d,a}return o=e.child,e=o.sibling,a=fa(o,{mode:"visible",children:a.children}),(t.mode&1)===0&&(a.lanes=r),a.return=t,a.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=a,t.memoizedState=null,a}function Pc(e,t){return t=dl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function xi(e,t,r,a){return a!==null&&xc(a),Dn(t,e.child,null,r),e=Pc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vb(e,t,r,a,n,o,i){if(r)return t.flags&256?(t.flags&=-257,a=ad(Error(P(422))),xi(e,t,i,a)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=a.fallback,n=t.mode,a=dl({mode:"visible",children:a.children},n,0,null),o=Da(o,n,i,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,(t.mode&1)!==0&&Dn(t,e.child,null,i),t.child.memoizedState=Hd(i),t.memoizedState=$d,o);if((t.mode&1)===0)return xi(e,t,i,null);if(n.data==="$!"){if(a=n.nextSibling&&n.nextSibling.dataset,a)var s=a.dgst;return a=s,o=Error(P(419)),a=ad(o,a,void 0),xi(e,t,i,a)}if(s=(i&e.childLanes)!==0,_t||s){if(a=rt,a!==null){switch(i&-i){case 4:n=2;break;case 16:n=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:n=32;break;case 536870912:n=268435456;break;default:n=0}n=(n&(a.suspendedLanes|i))!==0?0:n,n!==0&&n!==o.retryLane&&(o.retryLane=n,Ur(e,n),pr(a,e,n,-1))}return Fc(),a=ad(Error(P(421))),xi(e,t,i,a)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=oC.bind(null,e),n._reactRetry=t,null):(e=o.treeContext,Ft=la(n.nextSibling),Bt=t,Fe=!0,cr=null,e!==null&&(Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Fa,Dr=e.id,Or=e.overflow,Fa=t),t=Pc(t,a.children),t.flags|=4096,t)}function Ph(e,t,r){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Od(e.return,t,r)}function nd(e,t,r,a,n){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:r,tailMode:n}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=r,o.tailMode=n)}function yx(e,t,r){var a=t.pendingProps,n=a.revealOrder,o=a.tail;if(St(e,t,a.children,r),a=Ue.current,(a&2)!==0)a=a&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ph(e,r,t);else if(e.tag===19)Ph(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Pe(Ue,a),(t.mode&1)===0)t.memoizedState=null;else switch(n){case"forwards":for(r=t.child,n=null;r!==null;)e=r.alternate,e!==null&&Vi(e)===null&&(n=r),r=r.sibling;r=n,r===null?(n=t.child,t.child=null):(n=r.sibling,r.sibling=null),nd(t,!1,n,r,o);break;case"backwards":for(r=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Vi(e)===null){t.child=n;break}e=n.sibling,n.sibling=r,r=n,n=e}nd(t,!0,r,null,o);break;case"together":nd(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ii(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),za|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,r=fa(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=fa(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function Gb(e,t,r){switch(t.tag){case 3:xx(t),An();break;case 5:jg(t);break;case 1:Et(t.type)&&Ui(t);break;case 4:Cc(t,t.stateNode.containerInfo);break;case 10:var a=t.type._context,n=t.memoizedProps.value;Pe(Hi,a._currentValue),a._currentValue=n;break;case 13:if(a=t.memoizedState,a!==null)return a.dehydrated!==null?(Pe(Ue,Ue.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?vx(e,t,r):(Pe(Ue,Ue.current&1),e=qr(e,t,r),e!==null?e.sibling:null);Pe(Ue,Ue.current&1);break;case 19:if(a=(r&t.childLanes)!==0,(e.flags&128)!==0){if(a)return yx(e,t,r);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Pe(Ue,Ue.current),a)break;return null;case 22:case 23:return t.lanes=0,hx(e,t,r)}return qr(e,t,r)}var wx,Wd,Sx,bx;wx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};Wd=function(){};Sx=function(e,t,r,a){var n=e.memoizedProps;if(n!==a){e=t.stateNode,Na(_r.current);var o=null;switch(r){case"input":n=fd(e,n),a=fd(e,a),o=[];break;case"select":n=$e({},n,{value:void 0}),a=$e({},a,{value:void 0}),o=[];break;case"textarea":n=hd(e,n),a=hd(e,a),o=[];break;default:typeof n.onClick!="function"&&typeof a.onClick=="function"&&(e.onclick=Bi)}xd(r,a);var i;r=null;for(d in n)if(!a.hasOwnProperty(d)&&n.hasOwnProperty(d)&&n[d]!=null)if(d==="style"){var s=n[d];for(i in s)s.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(To.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in a){var l=a[d];if(s=n?.[d],a.hasOwnProperty(d)&&l!==s&&(l!=null||s!=null))if(d==="style")if(s){for(i in s)!s.hasOwnProperty(i)||l&&l.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in l)l.hasOwnProperty(i)&&s[i]!==l[i]&&(r||(r={}),r[i]=l[i])}else r||(o||(o=[]),o.push(d,r)),r=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(o=o||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(To.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Ae("scroll",e),o||s===l||(o=[])):(o=o||[]).push(d,l))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};bx=function(e,t,r,a){r!==a&&(t.flags|=4)};function go(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var a=null;r!==null;)r.alternate!==null&&(a=r),r=r.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,a=0;if(t)for(var n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags&14680064,a|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)r|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=r,t}function Xb(e,t,r){var a=t.pendingProps;switch(gc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return Et(t.type)&&zi(),ft(t),null;case 3:return a=t.stateNode,On(),De(Rt),De(mt),kc(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(hi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr!==null&&(Jd(cr),cr=null))),Wd(e,t),ft(t),null;case 5:Lc(t);var n=Na(Wo.current);if(r=t.type,e!==null&&t.stateNode!=null)Sx(e,t,r,a,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(t.stateNode===null)throw Error(P(166));return ft(t),null}if(e=Na(_r.current),hi(t)){a=t.stateNode,r=t.type;var o=t.memoizedProps;switch(a[Ir]=t,a[$o]=o,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",a),Ae("close",a);break;case"iframe":case"object":case"embed":Ae("load",a);break;case"video":case"audio":for(n=0;n<bo.length;n++)Ae(bo[n],a);break;case"source":Ae("error",a);break;case"img":case"image":case"link":Ae("error",a),Ae("load",a);break;case"details":Ae("toggle",a);break;case"input":zm(a,o),Ae("invalid",a);break;case"select":a._wrapperState={wasMultiple:!!o.multiple},Ae("invalid",a);break;case"textarea":qm(a,o),Ae("invalid",a)}xd(r,o),n=null;for(var i in o)if(o.hasOwnProperty(i)){var s=o[i];i==="children"?typeof s=="string"?a.textContent!==s&&(o.suppressHydrationWarning!==!0&&mi(a.textContent,s,e),n=["children",s]):typeof s=="number"&&a.textContent!==""+s&&(o.suppressHydrationWarning!==!0&&mi(a.textContent,s,e),n=["children",""+s]):To.hasOwnProperty(i)&&s!=null&&i==="onScroll"&&Ae("scroll",a)}switch(r){case"input":ri(a),Um(a,o,!0);break;case"textarea":ri(a),$m(a);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(a.onclick=Bi)}a=n,t.updateQueue=a,a!==null&&(t.flags|=4)}else{i=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Qh(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=i.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof a.is=="string"?e=i.createElement(r,{is:a.is}):(e=i.createElement(r),r==="select"&&(i=e,a.multiple?i.multiple=!0:a.size&&(i.size=a.size))):e=i.createElementNS(e,r),e[Ir]=t,e[$o]=a,wx(e,t,!1,!1),t.stateNode=e;e:{switch(i=vd(r,a),r){case"dialog":Ae("cancel",e),Ae("close",e),n=a;break;case"iframe":case"object":case"embed":Ae("load",e),n=a;break;case"video":case"audio":for(n=0;n<bo.length;n++)Ae(bo[n],e);n=a;break;case"source":Ae("error",e),n=a;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),n=a;break;case"details":Ae("toggle",e),n=a;break;case"input":zm(e,a),n=fd(e,a),Ae("invalid",e);break;case"option":n=a;break;case"select":e._wrapperState={wasMultiple:!!a.multiple},n=$e({},a,{value:void 0}),Ae("invalid",e);break;case"textarea":qm(e,a),n=hd(e,a),Ae("invalid",e);break;default:n=a}xd(r,n),s=n;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];o==="style"?Zh(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&Yh(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&No(e,l):typeof l=="number"&&No(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(To.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ae("scroll",e):l!=null&&tc(e,o,l,i))}switch(r){case"input":ri(e),Um(e,a,!1);break;case"textarea":ri(e),$m(e);break;case"option":a.value!=null&&e.setAttribute("value",""+pa(a.value));break;case"select":e.multiple=!!a.multiple,o=a.value,o!=null?In(e,!!a.multiple,o,!1):a.defaultValue!=null&&In(e,!!a.multiple,a.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Bi)}switch(r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}}a&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)bx(e,t,e.memoizedProps,a);else{if(typeof a!="string"&&t.stateNode===null)throw Error(P(166));if(r=Na(Wo.current),Na(_r.current),hi(t)){if(a=t.stateNode,r=t.memoizedProps,a[Ir]=t,(o=a.nodeValue!==r)&&(e=Bt,e!==null))switch(e.tag){case 3:mi(a.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&mi(a.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else a=(r.nodeType===9?r:r.ownerDocument).createTextNode(a),a[Ir]=t,t.stateNode=a}return ft(t),null;case 13:if(De(Ue),a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Ug(),An(),t.flags|=98560,o=!1;else if(o=hi(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[Ir]=t}else An(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else cr!==null&&(Jd(cr),cr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(a=a!==null,a!==(e!==null&&e.memoizedState!==null)&&a&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?Je===0&&(Je=3):Fc())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return On(),Wd(e,t),e===null&&Uo(t.stateNode.containerInfo),ft(t),null;case 10:return wc(t.type._context),ft(t),null;case 17:return Et(t.type)&&zi(),ft(t),null;case 19:if(De(Ue),o=t.memoizedState,o===null)return ft(t),null;if(a=(t.flags&128)!==0,i=o.rendering,i===null)if(a)go(o,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(i=Vi(e),i!==null){for(t.flags|=128,go(o,!1),a=i.updateQueue,a!==null&&(t.updateQueue=a,t.flags|=4),t.subtreeFlags=0,a=r,r=t.child;r!==null;)o=r,e=a,o.flags&=14680066,i=o.alternate,i===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,o.type=i.type,e=i.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(Ue,Ue.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ve()>Bn&&(t.flags|=128,a=!0,go(o,!1),t.lanes=4194304)}else{if(!a)if(e=Vi(i),e!==null){if(t.flags|=128,a=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!Fe)return ft(t),null}else 2*Ve()-o.renderingStartTime>Bn&&r!==1073741824&&(t.flags|=128,a=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(r=o.last,r!==null?r.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,r=Ue.current,Pe(Ue,a?r&1|2:r&1),t):(ft(t),null);case 22:case 23:return Oc(),a=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==a&&(t.flags|=8192),a&&(t.mode&1)!==0?(Ot&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Kb(e,t){switch(gc(t),t.tag){case 1:return Et(t.type)&&zi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return On(),De(Rt),De(mt),kc(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Lc(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));An()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return On(),null;case 10:return wc(t.type._context),null;case 22:case 23:return Oc(),null;case 24:return null;default:return null}}var vi=!1,pt=!1,Qb=typeof WeakSet=="function"?WeakSet:Set,B=null;function Ln(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(a){He(e,t,a)}else r.current=null}function jd(e,t,r){try{r()}catch(a){He(e,t,a)}}var Th=!1;function Yb(e,t){if(_d=Di,e=Mg(),mc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var a=r.getSelection&&r.getSelection();if(a&&a.rangeCount!==0){r=a.anchorNode;var n=a.anchorOffset,o=a.focusNode;a=a.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var i=0,s=-1,l=-1,d=0,u=0,f=e,c=null;t:for(;;){for(var p;f!==r||n!==0&&f.nodeType!==3||(s=i+n),f!==o||a!==0&&f.nodeType!==3||(l=i+a),f.nodeType===3&&(i+=f.nodeValue.length),(p=f.firstChild)!==null;)c=f,f=p;for(;;){if(f===e)break t;if(c===r&&++d===n&&(s=i),c===o&&++u===a&&(l=i),(p=f.nextSibling)!==null)break;f=c,c=f.parentNode}f=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Rd={focusedElem:e,selectionRange:r},Di=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,S=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ur(t.type,m),S);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(b){He(t,t.return,b)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=Th,Th=!1,h}function Ro(e,t,r){var a=t.updateQueue;if(a=a!==null?a.lastEffect:null,a!==null){var n=a=a.next;do{if((n.tag&e)===e){var o=n.destroy;n.destroy=void 0,o!==void 0&&jd(t,r,o)}n=n.next}while(n!==a)}}function ll(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var a=r.create;r.destroy=a()}r=r.next}while(r!==t)}}function Vd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function Cx(e){var t=e.alternate;t!==null&&(e.alternate=null,Cx(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[$o],delete t[Td],delete t[Nb],delete t[Ab])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Lx(e){return e.tag===5||e.tag===3||e.tag===4}function Nh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Gd(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=Bi));else if(a!==4&&(e=e.child,e!==null))for(Gd(e,t,r),e=e.sibling;e!==null;)Gd(e,t,r),e=e.sibling}function Xd(e,t,r){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(a!==4&&(e=e.child,e!==null))for(Xd(e,t,r),e=e.sibling;e!==null;)Xd(e,t,r),e=e.sibling}var at=null,dr=!1;function Jr(e,t,r){for(r=r.child;r!==null;)kx(e,t,r),r=r.sibling}function kx(e,t,r){if(Mr&&typeof Mr.onCommitFiberUnmount=="function")try{Mr.onCommitFiberUnmount(el,r)}catch{}switch(r.tag){case 5:pt||Ln(r,t);case 6:var a=at,n=dr;at=null,Jr(e,t,r),at=a,dr=n,at!==null&&(dr?(e=at,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):at.removeChild(r.stateNode));break;case 18:at!==null&&(dr?(e=at,r=r.stateNode,e.nodeType===8?Yu(e.parentNode,r):e.nodeType===1&&Yu(e,r),Fo(e)):Yu(at,r.stateNode));break;case 4:a=at,n=dr,at=r.stateNode.containerInfo,dr=!0,Jr(e,t,r),at=a,dr=n;break;case 0:case 11:case 14:case 15:if(!pt&&(a=r.updateQueue,a!==null&&(a=a.lastEffect,a!==null))){n=a=a.next;do{var o=n,i=o.destroy;o=o.tag,i!==void 0&&((o&2)!==0||(o&4)!==0)&&jd(r,t,i),n=n.next}while(n!==a)}Jr(e,t,r);break;case 1:if(!pt&&(Ln(r,t),a=r.stateNode,typeof a.componentWillUnmount=="function"))try{a.props=r.memoizedProps,a.state=r.memoizedState,a.componentWillUnmount()}catch(s){He(r,t,s)}Jr(e,t,r);break;case 21:Jr(e,t,r);break;case 22:r.mode&1?(pt=(a=pt)||r.memoizedState!==null,Jr(e,t,r),pt=a):Jr(e,t,r);break;default:Jr(e,t,r)}}function Ah(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new Qb),t.forEach(function(a){var n=sC.bind(null,e,a);r.has(a)||(r.add(a),a.then(n,n))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var n=r[a];try{var o=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 5:at=s.stateNode,dr=!1;break e;case 3:at=s.stateNode.containerInfo,dr=!0;break e;case 4:at=s.stateNode.containerInfo,dr=!0;break e}s=s.return}if(at===null)throw Error(P(160));kx(o,i,n),at=null,dr=!1;var l=n.alternate;l!==null&&(l.return=null),n.return=null}catch(d){He(n,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ix(t,e),t=t.sibling}function Ix(e,t){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lr(t,e),Lr(e),a&4){try{Ro(3,e,e.return),ll(3,e)}catch(m){He(e,e.return,m)}try{Ro(5,e,e.return)}catch(m){He(e,e.return,m)}}break;case 1:lr(t,e),Lr(e),a&512&&r!==null&&Ln(r,r.return);break;case 5:if(lr(t,e),Lr(e),a&512&&r!==null&&Ln(r,r.return),e.flags&32){var n=e.stateNode;try{No(n,"")}catch(m){He(e,e.return,m)}}if(a&4&&(n=e.stateNode,n!=null)){var o=e.memoizedProps,i=r!==null?r.memoizedProps:o,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&o.type==="radio"&&o.name!=null&&Xh(n,o),vd(s,i);var d=vd(s,o);for(i=0;i<l.length;i+=2){var u=l[i],f=l[i+1];u==="style"?Zh(n,f):u==="dangerouslySetInnerHTML"?Yh(n,f):u==="children"?No(n,f):tc(n,u,f,d)}switch(s){case"input":pd(n,o);break;case"textarea":Kh(n,o);break;case"select":var c=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!o.multiple;var p=o.value;p!=null?In(n,!!o.multiple,p,!1):c!==!!o.multiple&&(o.defaultValue!=null?In(n,!!o.multiple,o.defaultValue,!0):In(n,!!o.multiple,o.multiple?[]:"",!1))}n[$o]=o}catch(m){He(e,e.return,m)}}break;case 6:if(lr(t,e),Lr(e),a&4){if(e.stateNode===null)throw Error(P(162));n=e.stateNode,o=e.memoizedProps;try{n.nodeValue=o}catch(m){He(e,e.return,m)}}break;case 3:if(lr(t,e),Lr(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Fo(t.containerInfo)}catch(m){He(e,e.return,m)}break;case 4:lr(t,e),Lr(e);break;case 13:lr(t,e),Lr(e),n=e.child,n.flags&8192&&(o=n.memoizedState!==null,n.stateNode.isHidden=o,!o||n.alternate!==null&&n.alternate.memoizedState!==null||(Ac=Ve())),a&4&&Ah(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(pt=(d=pt)||u,lr(t,e),pt=d):lr(t,e),Lr(e),a&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(B=e,u=e.child;u!==null;){for(f=B=u;B!==null;){switch(c=B,p=c.child,c.tag){case 0:case 11:case 14:case 15:Ro(4,c,c.return);break;case 1:Ln(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){a=c,r=c.return;try{t=a,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){He(a,r,m)}}break;case 5:Ln(c,c.return);break;case 22:if(c.memoizedState!==null){Oh(f);continue}}p!==null?(p.return=c,B=p):Oh(f)}u=u.sibling}e:for(u=null,f=e;;){if(f.tag===5){if(u===null){u=f;try{n=f.stateNode,d?(o=n.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(s=f.stateNode,l=f.memoizedProps.style,i=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=Jh("display",i))}catch(m){He(e,e.return,m)}}}else if(f.tag===6){if(u===null)try{f.stateNode.nodeValue=d?"":f.memoizedProps}catch(m){He(e,e.return,m)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break e;for(;f.sibling===null;){if(f.return===null||f.return===e)break e;u===f&&(u=null),f=f.return}u===f&&(u=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:lr(t,e),Lr(e),a&4&&Ah(e);break;case 21:break;default:lr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Lx(r)){var a=r;break e}r=r.return}throw Error(P(160))}switch(a.tag){case 5:var n=a.stateNode;a.flags&32&&(No(n,""),a.flags&=-33);var o=Nh(e);Xd(e,o,n);break;case 3:case 4:var i=a.stateNode.containerInfo,s=Nh(e);Gd(e,s,i);break;default:throw Error(P(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Jb(e,t,r){B=e,Mx(e,t,r)}function Mx(e,t,r){for(var a=(e.mode&1)!==0;B!==null;){var n=B,o=n.child;if(n.tag===22&&a){var i=n.memoizedState!==null||vi;if(!i){var s=n.alternate,l=s!==null&&s.memoizedState!==null||pt;s=vi;var d=pt;if(vi=i,(pt=l)&&!d)for(B=n;B!==null;)i=B,l=i.child,i.tag===22&&i.memoizedState!==null?Fh(n):l!==null?(l.return=i,B=l):Fh(n);for(;o!==null;)B=o,Mx(o,t,r),o=o.sibling;B=n,vi=s,pt=d}Dh(e,t,r)}else(n.subtreeFlags&8772)!==0&&o!==null?(o.return=n,B=o):Dh(e,t,r)}}function Dh(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:pt||ll(5,t);break;case 1:var a=t.stateNode;if(t.flags&4&&!pt)if(r===null)a.componentDidMount();else{var n=t.elementType===t.type?r.memoizedProps:ur(t.type,r.memoizedProps);a.componentDidUpdate(n,r.memoizedState,a.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&yh(t,o,a);break;case 3:var i=t.updateQueue;if(i!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}yh(t,i,r)}break;case 5:var s=t.stateNode;if(r===null&&t.flags&4){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var f=u.dehydrated;f!==null&&Fo(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}pt||t.flags&512&&Vd(t)}catch(c){He(t,t.return,c)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function Oh(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function Fh(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ll(4,t)}catch(l){He(t,r,l)}break;case 1:var a=t.stateNode;if(typeof a.componentDidMount=="function"){var n=t.return;try{a.componentDidMount()}catch(l){He(t,n,l)}}var o=t.return;try{Vd(t)}catch(l){He(t,o,l)}break;case 5:var i=t.return;try{Vd(t)}catch(l){He(t,i,l)}}}catch(l){He(t,t.return,l)}if(t===e){B=null;break}var s=t.sibling;if(s!==null){s.return=t.return,B=s;break}B=t.return}}var Zb=Math.ceil,Ki=$r.ReactCurrentDispatcher,Tc=$r.ReactCurrentOwner,Kt=$r.ReactCurrentBatchConfig,he=0,rt=null,Ge=null,nt=0,Ot=0,kn=ga(0),Je=0,Xo=null,za=0,ul=0,Nc=0,Eo=null,Mt=null,Ac=0,Bn=1/0,Nr=null,Qi=!1,Kd=null,da=null,yi=!1,na=null,Yi=0,Po=0,Qd=null,Mi=-1,_i=0;function bt(){return(he&6)!==0?Ve():Mi!==-1?Mi:Mi=Ve()}function ca(e){return(e.mode&1)===0?1:(he&2)!==0&&nt!==0?nt&-nt:Ob.transition!==null?(_i===0&&(_i=cg()),_i):(e=Le,e!==0||(e=window.event,e=e===void 0?16:vg(e.type)),e)}function pr(e,t,r,a){if(50<Po)throw Po=0,Qd=null,Error(P(185));Ko(e,r,a),((he&2)===0||e!==rt)&&(e===rt&&((he&2)===0&&(ul|=r),Je===4&&ra(e,nt)),Pt(e,a),r===1&&he===0&&(t.mode&1)===0&&(Bn=Ve()+500,ol&&xa()))}function Pt(e,t){var r=e.callbackNode;B0(e,t);var a=Ai(e,e===rt?nt:0);if(a===0)r!==null&&jm(r),e.callbackNode=null,e.callbackPriority=0;else if(t=a&-a,e.callbackPriority!==t){if(r!=null&&jm(r),t===1)e.tag===0?Db(Bh.bind(null,e)):Fg(Bh.bind(null,e)),Pb(function(){(he&6)===0&&xa()}),r=null;else{switch(fg(a)){case 1:r=sc;break;case 4:r=ug;break;case 16:r=Ni;break;case 536870912:r=dg;break;default:r=Ni}r=Dx(r,_x.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function _x(e,t){if(Mi=-1,_i=0,(he&6)!==0)throw Error(P(327));var r=e.callbackNode;if(Pn()&&e.callbackNode!==r)return null;var a=Ai(e,e===rt?nt:0);if(a===0)return null;if((a&30)!==0||(a&e.expiredLanes)!==0||t)t=Ji(e,a);else{t=a;var n=he;he|=2;var o=Ex();(rt!==e||nt!==t)&&(Nr=null,Bn=Ve()+500,Aa(e,t));do try{rC();break}catch(s){Rx(e,s)}while(!0);yc(),Ki.current=o,he=n,Ge!==null?t=0:(rt=null,nt=0,t=Je)}if(t!==0){if(t===2&&(n=Cd(e),n!==0&&(a=n,t=Yd(e,n))),t===1)throw r=Xo,Aa(e,0),ra(e,a),Pt(e,Ve()),r;if(t===6)ra(e,a);else{if(n=e.current.alternate,(a&30)===0&&!eC(n)&&(t=Ji(e,a),t===2&&(o=Cd(e),o!==0&&(a=o,t=Yd(e,o))),t===1))throw r=Xo,Aa(e,0),ra(e,a),Pt(e,Ve()),r;switch(e.finishedWork=n,e.finishedLanes=a,t){case 0:case 1:throw Error(P(345));case 2:Ea(e,Mt,Nr);break;case 3:if(ra(e,a),(a&130023424)===a&&(t=Ac+500-Ve(),10<t)){if(Ai(e,0)!==0)break;if(n=e.suspendedLanes,(n&a)!==a){bt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Pd(Ea.bind(null,e,Mt,Nr),t);break}Ea(e,Mt,Nr);break;case 4:if(ra(e,a),(a&4194240)===a)break;for(t=e.eventTimes,n=-1;0<a;){var i=31-fr(a);o=1<<i,i=t[i],i>n&&(n=i),a&=~o}if(a=n,a=Ve()-a,a=(120>a?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Zb(a/1960))-a,10<a){e.timeoutHandle=Pd(Ea.bind(null,e,Mt,Nr),a);break}Ea(e,Mt,Nr);break;case 5:Ea(e,Mt,Nr);break;default:throw Error(P(329))}}}return Pt(e,Ve()),e.callbackNode===r?_x.bind(null,e):null}function Yd(e,t){var r=Eo;return e.current.memoizedState.isDehydrated&&(Aa(e,t).flags|=256),e=Ji(e,t),e!==2&&(t=Mt,Mt=r,t!==null&&Jd(t)),e}function Jd(e){Mt===null?Mt=e:Mt.push.apply(Mt,e)}function eC(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var a=0;a<r.length;a++){var n=r[a],o=n.getSnapshot;n=n.value;try{if(!mr(o(),n))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ra(e,t){for(t&=~Nc,t&=~ul,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-fr(t),a=1<<r;e[r]=-1,t&=~a}}function Bh(e){if((he&6)!==0)throw Error(P(327));Pn();var t=Ai(e,0);if((t&1)===0)return Pt(e,Ve()),null;var r=Ji(e,t);if(e.tag!==0&&r===2){var a=Cd(e);a!==0&&(t=a,r=Yd(e,a))}if(r===1)throw r=Xo,Aa(e,0),ra(e,t),Pt(e,Ve()),r;if(r===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ea(e,Mt,Nr),Pt(e,Ve()),null}function Dc(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(Bn=Ve()+500,ol&&xa())}}function Ua(e){na!==null&&na.tag===0&&(he&6)===0&&Pn();var t=he;he|=1;var r=Kt.transition,a=Le;try{if(Kt.transition=null,Le=1,e)return e()}finally{Le=a,Kt.transition=r,he=t,(he&6)===0&&xa()}}function Oc(){Ot=kn.current,De(kn)}function Aa(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,Eb(r)),Ge!==null)for(r=Ge.return;r!==null;){var a=r;switch(gc(a),a.tag){case 1:a=a.type.childContextTypes,a!=null&&zi();break;case 3:On(),De(Rt),De(mt),kc();break;case 5:Lc(a);break;case 4:On();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:wc(a.type._context);break;case 22:case 23:Oc()}r=r.return}if(rt=e,Ge=e=fa(e.current,null),nt=Ot=t,Je=0,Xo=null,Nc=ul=za=0,Mt=Eo=null,Ta!==null){for(t=0;t<Ta.length;t++)if(r=Ta[t],a=r.interleaved,a!==null){r.interleaved=null;var n=a.next,o=r.pending;if(o!==null){var i=o.next;o.next=n,a.next=i}r.pending=a}Ta=null}return e}function Rx(e,t){do{var r=Ge;try{if(yc(),Li.current=Xi,Gi){for(var a=qe.memoizedState;a!==null;){var n=a.queue;n!==null&&(n.pending=null),a=a.next}Gi=!1}if(Ba=0,tt=Ye=qe=null,_o=!1,jo=0,Tc.current=null,r===null||r.return===null){Je=1,Xo=t,Ge=null;break}e:{var o=e,i=r.return,s=r,l=t;if(t=nt,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,u=s,f=u.tag;if((u.mode&1)===0&&(f===0||f===11||f===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=kh(i);if(p!==null){p.flags&=-257,Ih(p,i,s,o,t),p.mode&1&&Lh(o,d,t),t=p,l=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}else{if((t&1)===0){Lh(o,d,t),Fc();break e}l=Error(P(426))}}else if(Fe&&s.mode&1){var S=kh(i);if(S!==null){(S.flags&65536)===0&&(S.flags|=256),Ih(S,i,s,o,t),xc(Fn(l,s));break e}}o=l=Fn(l,s),Je!==4&&(Je=2),Eo===null?Eo=[o]:Eo.push(o),o=i;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=fx(o,l,t);vh(o,g);break e;case 1:s=l;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(da===null||!da.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var b=px(o,s,t);vh(o,b);break e}}o=o.return}while(o!==null)}Tx(r)}catch(w){t=w,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function Ex(){var e=Ki.current;return Ki.current=Xi,e===null?Xi:e}function Fc(){(Je===0||Je===3||Je===2)&&(Je=4),rt===null||(za&268435455)===0&&(ul&268435455)===0||ra(rt,nt)}function Ji(e,t){var r=he;he|=2;var a=Ex();(rt!==e||nt!==t)&&(Nr=null,Aa(e,t));do try{tC();break}catch(n){Rx(e,n)}while(!0);if(yc(),he=r,Ki.current=a,Ge!==null)throw Error(P(261));return rt=null,nt=0,Je}function tC(){for(;Ge!==null;)Px(Ge)}function rC(){for(;Ge!==null&&!R0();)Px(Ge)}function Px(e){var t=Ax(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?Tx(e):Ge=t,Tc.current=null}function Tx(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=Xb(r,t,Ot),r!==null){Ge=r;return}}else{if(r=Kb(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Je===0&&(Je=5)}function Ea(e,t,r){var a=Le,n=Kt.transition;try{Kt.transition=null,Le=1,aC(e,t,r,a)}finally{Kt.transition=n,Le=a}return null}function aC(e,t,r,a){do Pn();while(na!==null);if((he&6)!==0)throw Error(P(327));r=e.finishedWork;var n=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(z0(e,o),e===rt&&(Ge=rt=null,nt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||yi||(yi=!0,Dx(Ni,function(){return Pn(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Kt.transition,Kt.transition=null;var i=Le;Le=1;var s=he;he|=4,Tc.current=null,Yb(e,r),Ix(r,e),kb(Rd),Di=!!_d,Rd=_d=null,e.current=r,Jb(r,e,n),E0(),he=s,Le=i,Kt.transition=o}else e.current=r;if(yi&&(yi=!1,na=e,Yi=n),o=e.pendingLanes,o===0&&(da=null),N0(r.stateNode,a),Pt(e,Ve()),t!==null)for(a=e.onRecoverableError,r=0;r<t.length;r++)n=t[r],a(n.value,{componentStack:n.stack,digest:n.digest});if(Qi)throw Qi=!1,e=Kd,Kd=null,e;return(Yi&1)!==0&&e.tag!==0&&Pn(),o=e.pendingLanes,(o&1)!==0?e===Qd?Po++:(Po=0,Qd=e):Po=0,xa(),null}function Pn(){if(na!==null){var e=fg(Yi),t=Kt.transition,r=Le;try{if(Kt.transition=null,Le=16>e?16:e,na===null)var a=!1;else{if(e=na,na=null,Yi=0,(he&6)!==0)throw Error(P(331));var n=he;for(he|=4,B=e.current;B!==null;){var o=B,i=o.child;if((B.flags&16)!==0){var s=o.deletions;if(s!==null){for(var l=0;l<s.length;l++){var d=s[l];for(B=d;B!==null;){var u=B;switch(u.tag){case 0:case 11:case 15:Ro(8,u,o)}var f=u.child;if(f!==null)f.return=u,B=f;else for(;B!==null;){u=B;var c=u.sibling,p=u.return;if(Cx(u),u===d){B=null;break}if(c!==null){c.return=p,B=c;break}B=p}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var S=m.sibling;m.sibling=null,m=S}while(m!==null)}}B=o}}if((o.subtreeFlags&2064)!==0&&i!==null)i.return=o,B=i;else e:for(;B!==null;){if(o=B,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Ro(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,B=g;break e}B=o.return}}var x=e.current;for(B=x;B!==null;){i=B;var v=i.child;if((i.subtreeFlags&2064)!==0&&v!==null)v.return=i,B=v;else e:for(i=x;B!==null;){if(s=B,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:ll(9,s)}}catch(w){He(s,s.return,w)}if(s===i){B=null;break e}var b=s.sibling;if(b!==null){b.return=s.return,B=b;break e}B=s.return}}if(he=n,xa(),Mr&&typeof Mr.onPostCommitFiberRoot=="function")try{Mr.onPostCommitFiberRoot(el,e)}catch{}a=!0}return a}finally{Le=r,Kt.transition=t}}return!1}function zh(e,t,r){t=Fn(r,t),t=fx(e,t,1),e=ua(e,t,1),t=bt(),e!==null&&(Ko(e,1,t),Pt(e,t))}function He(e,t,r){if(e.tag===3)zh(e,e,r);else for(;t!==null;){if(t.tag===3){zh(t,e,r);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(da===null||!da.has(a))){e=Fn(r,e),e=px(t,e,1),t=ua(t,e,1),e=bt(),t!==null&&(Ko(t,1,e),Pt(t,e));break}}t=t.return}}function nC(e,t,r){var a=e.pingCache;a!==null&&a.delete(t),t=bt(),e.pingedLanes|=e.suspendedLanes&r,rt===e&&(nt&r)===r&&(Je===4||Je===3&&(nt&130023424)===nt&&500>Ve()-Ac?Aa(e,0):Nc|=r),Pt(e,t)}function Nx(e,t){t===0&&((e.mode&1)===0?t=1:(t=oi,oi<<=1,(oi&130023424)===0&&(oi=4194304)));var r=bt();e=Ur(e,t),e!==null&&(Ko(e,t,r),Pt(e,r))}function oC(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Nx(e,r)}function sC(e,t){var r=0;switch(e.tag){case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(r=n.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(P(314))}a!==null&&a.delete(t),Nx(e,r)}var Ax;Ax=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)_t=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return _t=!1,Gb(e,t,r);_t=(e.flags&131072)!==0}else _t=!1,Fe&&(t.flags&1048576)!==0&&Bg(t,$i,t.index);switch(t.lanes=0,t.tag){case 2:var a=t.type;Ii(e,t),e=t.pendingProps;var n=Nn(t,mt.current);En(t,r),n=Mc(null,t,a,e,n,r);var o=_c();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(a)?(o=!0,Ui(t)):o=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,bc(t),n.updater=il,t.stateNode=n,n._reactInternals=t,Bd(t,a,e,r),t=qd(null,t,a,!0,o,r)):(t.tag=0,Fe&&o&&hc(t),St(null,t,n,r),t=t.child),t;case 16:a=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,n=a._init,a=n(a._payload),t.type=a,n=t.tag=lC(a),e=ur(a,e),n){case 0:t=Ud(null,t,a,e,r);break e;case 1:t=Rh(null,t,a,e,r);break e;case 11:t=Mh(null,t,a,e,r);break e;case 14:t=_h(null,t,a,ur(a.type,e),r);break e}throw Error(P(306,a,""))}return t;case 0:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Ud(e,t,a,n,r);case 1:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Rh(e,t,a,n,r);case 3:e:{if(xx(t),e===null)throw Error(P(387));a=t.pendingProps,o=t.memoizedState,n=o.element,Wg(e,t),ji(t,a,null,r);var i=t.memoizedState;if(a=i.element,o.isDehydrated)if(o={element:a,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){n=Fn(Error(P(423)),t),t=Eh(e,t,a,r,n);break e}else if(a!==n){n=Fn(Error(P(424)),t),t=Eh(e,t,a,r,n);break e}else for(Ft=la(t.stateNode.containerInfo.firstChild),Bt=t,Fe=!0,cr=null,r=$g(t,null,a,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(An(),a===n){t=qr(e,t,r);break e}St(e,t,a,r)}t=t.child}return t;case 5:return jg(t),e===null&&Dd(t),a=t.type,n=t.pendingProps,o=e!==null?e.memoizedProps:null,i=n.children,Ed(a,n)?i=null:o!==null&&Ed(a,o)&&(t.flags|=32),gx(e,t),St(e,t,i,r),t.child;case 6:return e===null&&Dd(t),null;case 13:return vx(e,t,r);case 4:return Cc(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Dn(t,null,a,r):St(e,t,a,r),t.child;case 11:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Mh(e,t,a,n,r);case 7:return St(e,t,t.pendingProps,r),t.child;case 8:return St(e,t,t.pendingProps.children,r),t.child;case 12:return St(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(a=t.type._context,n=t.pendingProps,o=t.memoizedProps,i=n.value,Pe(Hi,a._currentValue),a._currentValue=i,o!==null)if(mr(o.value,i)){if(o.children===n.children&&!Rt.current){t=qr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var l=s.firstContext;l!==null;){if(l.context===a){if(o.tag===1){l=Fr(-1,r&-r),l.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Od(o.return,r,t),s.lanes|=r;break}l=l.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(P(341));i.lanes|=r,s=i.alternate,s!==null&&(s.lanes|=r),Od(i,r,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}St(e,t,n.children,r),t=t.child}return t;case 9:return n=t.type,a=t.pendingProps.children,En(t,r),n=Qt(n),a=a(n),t.flags|=1,St(e,t,a,r),t.child;case 14:return a=t.type,n=ur(a,t.pendingProps),n=ur(a.type,n),_h(e,t,a,n,r);case 15:return mx(e,t,t.type,t.pendingProps,r);case 17:return a=t.type,n=t.pendingProps,n=t.elementType===a?n:ur(a,n),Ii(e,t),t.tag=1,Et(a)?(e=!0,Ui(t)):e=!1,En(t,r),cx(t,a,n),Bd(t,a,n,r),qd(null,t,a,!0,e,r);case 19:return yx(e,t,r);case 22:return hx(e,t,r)}throw Error(P(156,t.tag))};function Dx(e,t){return lg(e,t)}function iC(e,t,r,a){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,r,a){return new iC(e,t,r,a)}function Bc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function lC(e){if(typeof e=="function")return Bc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===nc)return 14}return 2}function fa(e,t){var r=e.alternate;return r===null?(r=Xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ri(e,t,r,a,n,o){var i=2;if(a=e,typeof e=="function")Bc(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case hn:return Da(r.children,n,o,t);case rc:i=8,n|=8;break;case ld:return e=Xt(12,r,t,n|2),e.elementType=ld,e.lanes=o,e;case ud:return e=Xt(13,r,t,n),e.elementType=ud,e.lanes=o,e;case dd:return e=Xt(19,r,t,n),e.elementType=dd,e.lanes=o,e;case jh:return dl(r,n,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Hh:i=10;break e;case Wh:i=9;break e;case ac:i=11;break e;case nc:i=14;break e;case Zr:i=16,a=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Xt(i,r,t,n),t.elementType=e,t.type=a,t.lanes=o,t}function Da(e,t,r,a){return e=Xt(7,e,a,t),e.lanes=r,e}function dl(e,t,r,a){return e=Xt(22,e,a,t),e.elementType=jh,e.lanes=r,e.stateNode={isHidden:!1},e}function od(e,t,r){return e=Xt(6,e,null,t),e.lanes=r,e}function sd(e,t,r){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function uC(e,t,r,a,n){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Hu(0),this.expirationTimes=Hu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Hu(0),this.identifierPrefix=a,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function zc(e,t,r,a,n,o,i,s,l){return e=new uC(e,t,r,s,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:a,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},bc(o),e}function dC(e,t,r){var a=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:r}}function Ox(e){if(!e)return ma;e=e._reactInternals;e:{if($a(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var r=e.type;if(Et(r))return Og(e,r,t)}return t}function Fx(e,t,r,a,n,o,i,s,l){return e=zc(r,a,!0,e,n,o,i,s,l),e.context=Ox(null),r=e.current,a=bt(),n=ca(r),o=Fr(a,n),o.callback=t??null,ua(r,o,n),e.current.lanes=n,Ko(e,n,a),Pt(e,a),e}function cl(e,t,r,a){var n=t.current,o=bt(),i=ca(n);return r=Ox(r),t.context===null?t.context=r:t.pendingContext=r,t=Fr(o,i),t.payload={element:e},a=a===void 0?null:a,a!==null&&(t.callback=a),e=ua(n,t,i),e!==null&&(pr(e,n,i,o),Ci(e,n,i)),i}function Zi(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Uh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function Uc(e,t){Uh(e,t),(e=e.alternate)&&Uh(e,t)}function cC(){return null}var Bx=typeof reportError=="function"?reportError:function(e){console.error(e)};function qc(e){this._internalRoot=e}fl.prototype.render=qc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));cl(e,t,null,null)};fl.prototype.unmount=qc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ua(function(){cl(null,e,null,null)}),t[zr]=null}};function fl(e){this._internalRoot=e}fl.prototype.unstable_scheduleHydration=function(e){if(e){var t=hg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<ta.length&&t!==0&&t<ta[r].priority;r++);ta.splice(r,0,e),r===0&&xg(e)}};function $c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function pl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function qh(){}function fC(e,t,r,a,n){if(n){if(typeof a=="function"){var o=a;a=function(){var d=Zi(i);o.call(d)}}var i=Fx(t,a,e,0,null,!1,!1,"",qh);return e._reactRootContainer=i,e[zr]=i.current,Uo(e.nodeType===8?e.parentNode:e),Ua(),i}for(;n=e.lastChild;)e.removeChild(n);if(typeof a=="function"){var s=a;a=function(){var d=Zi(l);s.call(d)}}var l=zc(e,0,!1,null,null,!1,!1,"",qh);return e._reactRootContainer=l,e[zr]=l.current,Uo(e.nodeType===8?e.parentNode:e),Ua(function(){cl(t,l,r,a)}),l}function ml(e,t,r,a,n){var o=r._reactRootContainer;if(o){var i=o;if(typeof n=="function"){var s=n;n=function(){var l=Zi(i);s.call(l)}}cl(t,i,e,n)}else i=fC(r,t,e,n,a);return Zi(i)}pg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=So(t.pendingLanes);r!==0&&(ic(t,r|1),Pt(t,Ve()),(he&6)===0&&(Bn=Ve()+500,xa()))}break;case 13:Ua(function(){var a=Ur(e,1);if(a!==null){var n=bt();pr(a,e,1,n)}}),Uc(e,1)}};lc=function(e){if(e.tag===13){var t=Ur(e,134217728);if(t!==null){var r=bt();pr(t,e,134217728,r)}Uc(e,134217728)}};mg=function(e){if(e.tag===13){var t=ca(e),r=Ur(e,t);if(r!==null){var a=bt();pr(r,e,t,a)}Uc(e,t)}};hg=function(){return Le};gg=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};wd=function(e,t,r){switch(t){case"input":if(pd(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var a=r[t];if(a!==e&&a.form===e.form){var n=nl(a);if(!n)throw Error(P(90));Gh(a),pd(a,n)}}}break;case"textarea":Kh(e,r);break;case"select":t=r.value,t!=null&&In(e,!!r.multiple,t,!1)}};rg=Dc;ag=Ua;var pC={usingClientEntryPoint:!1,Events:[Yo,yn,nl,eg,tg,Dc]},xo={findFiberByHostInstance:Pa,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},mC={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=sg(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||cC,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(vo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!vo.isDisabled&&vo.supportsFiber))try{el=vo.inject(mC),Mr=vo}catch{}var vo;qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=pC;qt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!$c(t))throw Error(P(200));return dC(e,t,null,r)};qt.createRoot=function(e,t){if(!$c(e))throw Error(P(299));var r=!1,a="",n=Bx;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=zc(e,1,!1,null,null,r,!1,a,n),e[zr]=t.current,Uo(e.nodeType===8?e.parentNode:e),new qc(t)};qt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=sg(t),e=e===null?null:e.stateNode,e};qt.flushSync=function(e){return Ua(e)};qt.hydrate=function(e,t,r){if(!pl(t))throw Error(P(200));return ml(null,e,t,!0,r)};qt.hydrateRoot=function(e,t,r){if(!$c(e))throw Error(P(405));var a=r!=null&&r.hydratedSources||null,n=!1,o="",i=Bx;if(r!=null&&(r.unstable_strictMode===!0&&(n=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(i=r.onRecoverableError)),t=Fx(t,null,e,1,r??null,n,!1,o,i),e[zr]=t.current,Uo(e),a)for(e=0;e<a.length;e++)r=a[e],n=r._getVersion,n=n(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,n]:t.mutableSourceEagerHydrationData.push(r,n);return new fl(t)};qt.render=function(e,t,r){if(!pl(t))throw Error(P(200));return ml(null,e,t,!1,r)};qt.unmountComponentAtNode=function(e){if(!pl(e))throw Error(P(40));return e._reactRootContainer?(Ua(function(){ml(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};qt.unstable_batchedUpdates=Dc;qt.unstable_renderSubtreeIntoContainer=function(e,t,r,a){if(!pl(r))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return ml(e,t,r,!1,a)};qt.version="18.3.1-next-f1338f8080-20240426"});var $x=Tr((TM,qx)=>{"use strict";function Ux(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ux)}catch(e){console.error(e)}}Ux(),qx.exports=zx()});var Wx=Tr(Hc=>{"use strict";var Hx=$x();Hc.createRoot=Hx.createRoot,Hc.hydrateRoot=Hx.hydrateRoot;var NM});var Vx=Tr(hl=>{"use strict";var hC=fe(),gC=Symbol.for("react.element"),xC=Symbol.for("react.fragment"),vC=Object.prototype.hasOwnProperty,yC=hC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wC={key:!0,ref:!0,__self:!0,__source:!0};function jx(e,t,r){var a,n={},o=null,i=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(i=t.ref);for(a in t)vC.call(t,a)&&!wC.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps,t)n[a]===void 0&&(n[a]=t[a]);return{$$typeof:gC,type:e,key:o,ref:i,props:n,_owner:yC.current}}hl.Fragment=xC;hl.jsx=jx;hl.jsxs=jx});var le=Tr((OM,Gx)=>{"use strict";Gx.exports=Vx()});var kM={};QS(kM,{default:()=>LM,mount:()=>OS});var AS=F(fe(),1),DS=F(Wx(),1);var Qr=F(fe(),1);var G=F(fe(),1);var Tt=F(fe(),1),de=F(le(),1),gl=(...e)=>e.filter(Boolean).join(" ");function ht({label:e,pressed:t,className:r,children:a,...n}){return(0,de.jsx)(SC,{content:e,children:(0,de.jsx)("button",{className:gl("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...n,children:a})})}function qn({tone:e="default",children:t,className:r}){return(0,de.jsx)("span",{className:gl("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function SC({content:e,children:t}){return e?(0,de.jsxs)("span",{className:"lum-tip",children:[t,(0,de.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,de.jsx)(de.Fragment,{children:t})}function Xx({open:e,onClose:t,title:r,children:a}){return(0,Tt.useEffect)(()=>{if(!e)return;let n=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",n),()=>window.removeEventListener("keydown",n)},[e,t]),e?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,de.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,de.jsxs)("div",{className:"lum-drawer__header",children:[(0,de.jsx)("strong",{children:r}),(0,de.jsx)(ht,{label:"Close",onClick:t,children:"\u2715"})]}),(0,de.jsx)("div",{className:"lum-drawer__body",children:a})]})]}):null}function Wc({width:e,height:t=14,className:r,radius:a}){return(0,de.jsx)("div",{className:gl("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:a},"aria-hidden":!0})}var bC=(0,Tt.createContext)(()=>{});function Kx({children:e}){let[t,r]=(0,Tt.useState)([]),a=(0,Tt.useCallback)((n,o="default")=>{let i=Date.now()+Math.floor(performance.now());r(s=>[...s,{id:i,text:n,tone:o}]),setTimeout(()=>r(s=>s.filter(l=>l.id!==i)),3200)},[]);return(0,de.jsxs)(bC.Provider,{value:a,children:[e,(0,de.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(n=>(0,de.jsx)("div",{className:gl("lum-toast",n.tone&&n.tone!=="default"&&`lum-toast--${n.tone}`),children:n.text},n.id))})]})}function Qx({trigger:e,options:t,value:r,onSelect:a,placement:n="bottom"}){let[o,i]=(0,Tt.useState)(!1),s=(0,Tt.useRef)(null);return(0,Tt.useEffect)(()=>{if(!o)return;let l=u=>{s.current&&!s.current.contains(u.target)&&i(!1)},d=u=>u.key==="Escape"&&i(!1);return document.addEventListener("mousedown",l),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("keydown",d)}},[o]),(0,de.jsxs)("div",{className:"lum-menu",ref:s,children:[(0,de.jsx)("span",{onClick:()=>i(l=>!l),children:e}),o&&(0,de.jsx)("div",{className:`lum-menu__list${n==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(l=>(0,de.jsxs)("button",{role:"menuitemradio","aria-checked":r===l.value,className:"lum-menu__item",onClick:()=>{a(l.value),i(!1)},children:[l.label,r===l.value&&(0,de.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(l.value)))})]})}function Jt({title:e,children:t,icon:r,action:a}){return(0,de.jsxs)("div",{className:"lum-state",children:[r&&(0,de.jsx)("div",{className:"lum-state__icon",children:r}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),a]})}function Yx({title:e,children:t,action:r}){return(0,de.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,de.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),r]})}var Jx=e=>{let t,r=new Set,a=(d,u)=>{let f=typeof d=="function"?d(t):d;if(!Object.is(f,t)){let c=t;t=u??(typeof f!="object"||f===null)?f:Object.assign({},t,f),r.forEach(p=>p(t,c))}},n=()=>t,s={setState:a,getState:n,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=t=e(a,n,s);return s},Zx=(e=>e?Jx(e):Jx);var mu=F(fe(),1);var Zo=F(fe(),1);var CC=e=>e;function ev(e,t=CC){let r=Zo.default.useSyncExternalStore(e.subscribe,Zo.default.useCallback(()=>t(e.getState()),[e,t]),Zo.default.useCallback(()=>t(e.getInitialState()),[e,t]));return Zo.default.useDebugValue(r),r}var uS=F(le(),1),hu=F(fe(),1),cS=F(le(),1);var LC=Object.defineProperty,kC=(e,t,r)=>t in e?LC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>kC(e,typeof t!="symbol"?t+"":t,r),tv,IC=Object.defineProperty,MC=(e,t,r)=>t in e?IC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,rv=(e,t,r)=>MC(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{}),av={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},nv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},xl={},qy={},_C=()=>!!globalThis.Zone;function Lp(e){if(xl[e])return xl[e];let t=globalThis[e],r=t.prototype,a=e in av?av[e]:void 0,n=!!(a&&a.every(s=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,s))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in nv?nv[e]:void 0,i=!!(o&&o.every(s=>{var l;return typeof r[s]=="function"&&((l=r[s])==null?void 0:l.toString().includes("[native code]"))}));if(n&&i&&!_C())return xl[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let l=s.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return s.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),qy[e]=()=>s.remove()):s.remove(),xl[e]=d}catch{return r}}var jc={};function Vr(e,t,r){var a;let n=`${e}.${String(r)}`;if(jc[n])return jc[n].call(t);let o=Lp(e),i=(a=Object.getOwnPropertyDescriptor(o,r))==null?void 0:a.get;return i?(jc[n]=i,i.call(t)):t[r]}var Vc={};function $y(e,t,r){let a=`${e}.${String(r)}`;if(Vc[a])return Vc[a].bind(t);let o=Lp(e)[r];return typeof o!="function"?t[r]:(Vc[a]=o,o.bind(t))}function RC(e){return Vr("Node",e,"ownerDocument")}function EC(e){return Vr("Node",e,"childNodes")}function PC(e){return Vr("Node",e,"parentNode")}function TC(e){return Vr("Node",e,"parentElement")}function NC(e){return Vr("Node",e,"textContent")}function AC(e,t){return $y("Node",e,"contains")(t)}function DC(e){return $y("Node",e,"getRootNode")()}function OC(e){return!e||!("host"in e)?null:Vr("ShadowRoot",e,"host")}function FC(e){return e.styleSheets}function BC(e){return!e||!("shadowRoot"in e)?null:Vr("Element",e,"shadowRoot")}function zC(e,t){return Vr("Element",e,"querySelector")(t)}function UC(e,t){return Vr("Element",e,"querySelectorAll")(t)}function qC(){return[Lp("MutationObserver").constructor,qy.MutationObserver??(()=>{})]}var Hy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Hy=()=>new Date().getTime());function $C(e,t,r){try{if(!(t in e))return()=>{};let a=e[t],n=r(a);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var gt={ownerDocument:RC,childNodes:EC,parentNode:PC,parentElement:TC,textContent:NC,contains:AC,getRootNode:DC,host:OC,styleSheets:FC,shadowRoot:BC,querySelector:zC,querySelectorAll:UC,nowTimestamp:Hy,mutationObserverCtor:qC,patch:$C};function kp(e){return e.nodeType===e.ELEMENT_NODE}function as(e){let t=e&&"host"in e&&"mode"in e&&gt.host(e)||null;return!!(t&&"shadowRoot"in t&&gt.shadowRoot(t)===e)}function ns(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function HC(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function WC(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function ep(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let a=Array.from(t,n=>Wy(n,r)).join("");return HC(a)}catch{return null}}function Wy(e,t){if(VC(e)){let r;try{r=ep(e.styleSheet)||WC(e)}catch{r=e.cssText}return e.styleSheet.href?Pl(r,e.styleSheet.href):r}else{let r=e.cssText;return GC(e)&&e.selectorText.includes(":")&&(r=jC(r)),t?Pl(r,t):r}}function jC(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function VC(e){return"styleSheet"in e}function GC(e){return"selectorText"in e}var ls=class{constructor(){rv(this,"idNodeMap",new Map),rv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function jy(){return new ls}function Rl({element:e,maskInputOptions:t,tagName:r,type:a,value:n,maskInputFn:o}){let i=n||"",s=a&&Sa(a);return(t[r.toLowerCase()]||s&&t[s])&&(o?i=o(i,e):i="*".repeat(i.length)),i}function Sa(e){return e.toLowerCase()}var ov="__rrweb_original__";function XC(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let a=0;a<e.width;a+=r)for(let n=0;n<e.height;n+=r){let o=t.getImageData,i=ov in o?o[ov]:o;if(new Uint32Array(i.call(t,a,n,Math.min(r,e.width-a),Math.min(r,e.height-n)).data.buffer).some(l=>l!==0))return!1}return!0}function KC(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function El(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sa(t):null}function Ip(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let a=/\.([0-9a-z]+)(?:$)/i,n=r.pathname.match(a);return n?.[1]??null}function QC(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var YC=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,JC=/^(?:[a-z+]+:)?\/\//i,ZC=/^www\..*/i,eL=/^(data:)([^,]*),(.*)/i;function Pl(e,t){return(e||"").replace(YC,(r,a,n,o,i,s)=>{let l=n||i||s,d=a||o||"";if(!l)return r;if(JC.test(l)||ZC.test(l))return`url(${d}${l}${d})`;if(eL.test(l))return`url(${d}${l}${d})`;if(l[0]==="/")return`url(${d}${QC(t)+l}${d})`;let u=t.split("/"),f=l.split("/");u.pop();for(let c of f)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function vl(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function tL(e,t,r=!1){let a=Array.from(t.childNodes),n=[],o=0;if(a.length>1&&e&&typeof e=="string"){let i=vl(e,r),s=i.length/e.length;for(let l=1;l<a.length;l++)if(a[l].textContent&&typeof a[l].textContent=="string"){let d=vl(a[l].textContent,r),u=100,f=3;for(;f<d.length&&(d[f].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,f),1)!==-1);f++);for(;f<d.length;f++){let c=d.substring(0,f),p=i.split(c),h=-1;if(p.length===2)h=p[0].length;else if(p.length>2&&p[0]===""&&a[l-1].textContent!=="")h=i.indexOf(c,1);else if(p.length===1){if(c=c.substring(0,c.length-1),p=i.split(c),p.length<=1)return n.push(e),n;f=u+1}else f===d.length-1&&(h=i.indexOf(c));if(p.length>=2&&f>u){let m=a[l-1].textContent;if(m&&typeof m=="string"){let S=vl(m).length;h=i.indexOf(c,S)}h===-1&&(h=p[0].length)}if(h!==-1){let m=Math.floor(h/s);for(;m>0&&m<e.length;){if(o+=1,o>50*a.length)return n.push(e),n;let S=vl(e.substring(0,m),r);if(S.length===h){n.push(e.substring(0,m)),e=e.substring(m),i=i.substring(h);break}else S.length<h?m+=Math.max(1,Math.floor((h-S.length)/s)):m-=Math.max(1,Math.floor((S.length-h)*s))}break}}}}return n.push(e),n}function rL(e,t){return tL(e,t).join("/* rr_split */")}var aL=1,nL=new RegExp("[^a-z0-9-_:]"),us=-2;function Vy(){return aL++}function oL(e){if(e instanceof HTMLFormElement)return"form";let t=Sa(e.tagName);return nL.test(t)?"div":t}var $n,sv,sL=/^[^ \t\n\r\u000c]+/,iL=/^[, \t\n\r\u000c]+/;function lL(e,t){if(t.trim()==="")return t;let r=0;function a(o){let i,s=o.exec(t.substring(r));return s?(i=s[0],r+=i.length,i):""}let n=[];for(;a(iL),!(r>=t.length);){let o=a(sL);if(o.slice(-1)===",")o=Vn(e,o.substring(0,o.length-1)),n.push(o);else{let i="";o=Vn(e,o);let s=!1;for(;;){let l=t.charAt(r);if(l===""){n.push((o+i).trim());break}else if(s)l===")"&&(s=!1);else if(l===","){r+=1,n.push((o+i).trim());break}else l==="("&&(s=!0);i+=l,r+=1}}}return n.join(", ")}var iv=new WeakMap;function Vn(e,t){return!t||t.trim()===""?t:Mp(e,t)}function uL(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Mp(e,t){let r=iv.get(e);if(r||(r=e.createElement("a"),iv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Gy(e,t,r,a){return a&&(r==="src"||r==="href"&&!(t==="use"&&a[0]==="#")||r==="xlink:href"&&a[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Vn(e,a):r==="srcset"?lL(e,a):r==="style"?Pl(a,Mp(e)):t==="object"&&r==="data"?Vn(e,a):a)}function Xy(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function dL(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let a=e.classList.length;a--;){let n=e.classList[a];if(t.test(n))return!0}if(r)return e.matches(r)}catch{}return!1}function Tl(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Tl(gt.parentNode(e),t,r):!1;for(let a=e.classList.length;a--;){let n=e.classList[a];if(t.test(n))return!0}return r?Tl(gt.parentNode(e),t,r):!1}function Ky(e,t,r,a){let n;if(kp(e)){if(n=e,!gt.childNodes(n).length)return!1}else{if(gt.parentElement(e)===null)return!1;n=gt.parentElement(e)}try{if(typeof t=="string"){if(a){if(n.closest(`.${t}`))return!0}else if(n.classList.contains(t))return!0}else if(Tl(n,t,a))return!0;if(r){if(a){if(n.closest(r))return!0}else if(n.matches(r))return!0}}catch{}return!1}function cL(e,t,r){let a=e.contentWindow;if(!a)return;let n=!1,o;try{o=a.document.readyState}catch{return}if(o!=="complete"){let s=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(s),n=!0,t()});return}let i="about:blank";if(a.location.href!==i||e.src===i||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function fL(e,t,r){let a=!1,n;try{n=e.sheet}catch{return}if(n)return;let o=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),a=!0,t()})}function pL(e,t){let{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:i,inlineStylesheet:s,maskInputOptions:l={},maskTextFn:d,maskInputFn:u,dataURLOptions:f={},inlineImages:c,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:S=!1}=t,g=mL(r,a);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return gL(e,{doc:r,blockClass:n,blockSelector:o,inlineStylesheet:s,maskInputOptions:l,maskInputFn:u,dataURLOptions:f,inlineImages:c,recordCanvas:p,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return hL(e,{doc:r,needsMask:i,maskTextFn:d,rootId:g,cssCaptured:S});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:re.Comment,textContent:gt.textContent(e)||"",rootId:g};default:return!1}}function mL(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function hL(e,t){let{needsMask:r,maskTextFn:a,rootId:n,cssCaptured:o}=t,i=gt.parentNode(e),s=i&&i.tagName,l="",d=s==="STYLE"?!0:void 0,u=s==="SCRIPT"?!0:void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=gt.textContent(e),d&&l&&(l=Pl(l,Mp(t.doc)))),!d&&!u&&l&&r&&(l=a?a(l,gt.parentElement(e)):l.replace(/[\S]/g,"*")),{type:re.Text,textContent:l||"",rootId:n}}function gL(e,t){let{doc:r,blockClass:a,blockSelector:n,inlineStylesheet:o,maskInputOptions:i={},maskInputFn:s,dataURLOptions:l={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:f,newlyAddedElement:c=!1,rootId:p}=t,h=dL(e,a,n),m=oL(e),S={},g=e.attributes.length;for(let v=0;v<g;v++){let b=e.attributes[v];Xy(m,b.name,b.value)||(S[b.name]=Gy(r,m,Sa(b.name),b.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(w=>w.href===e.href),b=null;v&&(b=ep(v)),b&&(delete S.rel,delete S.href,S._cssText=b)}if(m==="style"&&e.sheet){let v=ep(e.sheet);v&&(e.childNodes.length>1&&(v=rL(v,e)),S._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,b=e.checked;S.type!=="radio"&&S.type!=="checkbox"&&S.type!=="submit"&&S.type!=="button"&&v?S.value=Rl({element:e,type:El(e),tagName:m,value:v,maskInputOptions:i,maskInputFn:s}):b&&(S.checked=b)}if(m==="option"&&(e.selected&&!i.select?S.selected=!0:delete S.selected),m==="dialog"&&e.open&&(S.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")XC(e)||(S.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),b=r.createElement("canvas");b.width=e.width,b.height=e.height;let w=b.toDataURL(l.type,l.quality);v!==w&&(S.rr_dataURL=v)}}if(m==="img"&&d){$n||($n=r.createElement("canvas"),sv=$n.getContext("2d"));let v=e,b=v.currentSrc||v.getAttribute("src")||"<unknown-src>",w=v.crossOrigin,y=()=>{v.removeEventListener("load",y);try{$n.width=v.naturalWidth,$n.height=v.naturalHeight,sv.drawImage(v,0,0),S.rr_dataURL=$n.toDataURL(l.type,l.quality)}catch(L){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y);return}else console.warn(`Cannot inline img src=${b}! Error: ${L}`)}v.crossOrigin==="anonymous"&&(w?S.crossOrigin=w:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?y():v.addEventListener("load",y)}if(["audio","video"].includes(m)){let v=S;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(S.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(S.rr_scrollTop=e.scrollTop)),h){let{width:v,height:b}=e.getBoundingClientRect();S={class:S.class,rr_width:`${v}px`,rr_height:`${b}px`}}m==="iframe"&&!f(S.src)&&(e.contentDocument||(S.rr_src=S.src),delete S.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:re.Element,tagName:m,attributes:S,childNodes:[],isSVG:uL(e)||void 0,needBlock:h,rootId:p,isCustom:x}}function Te(e){return e==null?"":e.toLowerCase()}function Qy(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function xL(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ip(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Te(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Te(e.attributes.name)==="application-name"||Te(e.attributes.rel)==="icon"||Te(e.attributes.rel)==="apple-touch-icon"||Te(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Te(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Te(e.attributes.property).match(/^(og|twitter|fb):/)||Te(e.attributes.name).match(/^(og|twitter):/)||Te(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Te(e.attributes.name)==="robots"||Te(e.attributes.name)==="googlebot"||Te(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Te(e.attributes.name)==="author"||Te(e.attributes.name)==="generator"||Te(e.attributes.name)==="framework"||Te(e.attributes.name)==="publisher"||Te(e.attributes.name)==="progid"||Te(e.attributes.property).match(/^article:/)||Te(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Te(e.attributes.name)==="google-site-verification"||Te(e.attributes.name)==="yandex-verification"||Te(e.attributes.name)==="csrf-token"||Te(e.attributes.name)==="p:domain_verify"||Te(e.attributes.name)==="verify-v1"||Te(e.attributes.name)==="verification"||Te(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Gn(e,t){let{doc:r,mirror:a,blockClass:n,blockSelector:o,maskTextClass:i,maskTextSelector:s,skipChild:l=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:S=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:b,stylesheetLoadTimeout:w=5e3,keepIframeSrcFn:y=()=>!1,newlyAddedElement:L=!1,cssCaptured:C=!1}=t,{needsMask:M}=t,{preserveWhiteSpace:I=!0}=t;M||(M=Ky(e,i,s,M===void 0));let D=pL(e,{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:S,keepIframeSrcFn:y,newlyAddedElement:L,cssCaptured:C});if(!D)return console.warn(e,"not serialized"),null;let A;a.hasNode(e)?A=a.getId(e):xL(D,p)||!I&&D.type===re.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?A=us:A=Vy();let k=Object.assign(D,{id:A});if(a.add(e,k),A===us)return null;g&&g(e);let ke=!l;if(k.type===re.Element){ke=ke&&!k.needBlock,delete k.needBlock;let ue=gt.shadowRoot(e);ue&&ns(ue)&&(k.isShadowHost=!0)}if((k.type===re.Document||k.type===re.Element)&&ke){p.headWhitespace&&k.type===re.Element&&k.tagName==="head"&&(I=!1);let ue={doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:l,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y,cssCaptured:!1};if(!(k.type===re.Element&&k.tagName==="textarea"&&k.attributes.value!==void 0)){k.type===re.Element&&k.attributes._cssText!==void 0&&typeof k.attributes._cssText=="string"&&(ue.cssCaptured=!0);for(let Se of Array.from(gt.childNodes(e))){let ze=Gn(Se,ue);ze&&k.childNodes.push(ze)}}let j=null;if(kp(e)&&(j=gt.shadowRoot(e)))for(let Se of Array.from(gt.childNodes(j))){let ze=Gn(Se,ue);ze&&(ns(j)&&(ze.isShadow=!0),k.childNodes.push(ze))}}let Ie=gt.parentNode(e);return Ie&&as(Ie)&&ns(Ie)&&(k.isShadow=!0),k.type===re.Element&&k.tagName==="iframe"&&cL(e,()=>{let ue=e.contentDocument;if(ue&&x){let j=Gn(ue,{doc:ue,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y});j&&x(e,j)}},v),k.type===re.Element&&k.tagName==="link"&&typeof k.attributes.rel=="string"&&(k.attributes.rel==="stylesheet"||k.attributes.rel==="preload"&&typeof k.attributes.href=="string"&&Ip(k.attributes.href)==="css")&&fL(e,()=>{if(b){let ue=Gn(e,{doc:r,mirror:a,blockClass:n,blockSelector:o,needsMask:M,maskTextClass:i,maskTextSelector:s,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:f,maskInputFn:c,slimDOMOptions:p,dataURLOptions:h,inlineImages:m,recordCanvas:S,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:b,stylesheetLoadTimeout:w,keepIframeSrcFn:y});ue&&b(e,ue)}},w),k}function vL(e,t){let{mirror:r=new ls,blockClass:a="rr-block",blockSelector:n=null,maskTextClass:o="rr-mask",maskTextSelector:i=null,inlineStylesheet:s=!0,inlineImages:l=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:f,maskInputFn:c,slimDOM:p=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:S,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w=()=>!1}=t,y=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}:u===!1?{password:!0}:u,L=Qy(p);return Gn(e,{doc:e,mirror:r,blockClass:a,blockSelector:n,maskTextClass:o,maskTextSelector:i,skipChild:!1,inlineStylesheet:s,maskInputOptions:y,maskTextFn:f,maskInputFn:c,slimDOMOptions:L,dataURLOptions:h,inlineImages:l,recordCanvas:d,preserveWhiteSpace:m,onSerialize:S,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:b,keepIframeSrcFn:w,newlyAddedElement:!1})}var yL=/(max|min)-device-(width|height)/,lv=new RegExp(yL.source,"g"),wL={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(lv)&&(e.params=e.params.replace(lv,"$1-$2"))}}}},SL={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
9
- `+r.replace(/:hover/g,".\\:hover"))}))}}}};function bL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function CL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}),r}var yl={exports:{}},uv;function LL(){if(uv)return yl.exports;uv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return yl.exports=t(),yl.exports.createColors=t,yl.exports}var kL={},IL=Object.freeze(Object.defineProperty({__proto__:null,default:kL},Symbol.toStringTag,{value:"Module"})),gr=CL(IL),Gc,dv;function _p(){if(dv)return Gc;dv=1;let e=LL(),t=gr;class r extends Error{constructor(n,o,i,s,l,d){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),s&&(this.source=s),d&&(this.plugin=d),typeof o<"u"&&typeof i<"u"&&(typeof o=="number"?(this.line=o,this.column=i):(this.line=o.line,this.column=o.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let i=o.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,i.length),d=String(l).length,u,f;if(n){let{bold:c,gray:p,red:h}=e.createColors(!0);u=m=>c(h(m)),f=m=>p(m)}else u=f=c=>c;return i.slice(s,l).map((c,p)=>{let h=s+1+p,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let S=f(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+f(m)+c+`
10
- `+S+u("^")}return" "+f(m)+c}).join(`
11
- `)}toString(){let n=this.showSourceCode();return n&&(n=`
8
+ `+o.stack}return{value:e,source:t,stack:a,digest:null}}function ad(e,t,r){return{value:e,source:null,stack:r??null,digest:t??null}}function Ud(e,t){try{console.error(t.value)}catch(r){setTimeout(function(){throw r})}}var VS=typeof WeakMap=="function"?WeakMap:Map;function gx(e,t,r){r=Fr(-1,r),r.tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Yi||(Yi=!0,Qd=n),Ud(e,t)},r}function xx(e,t,r){r=Fr(-1,r),r.tag=3;var n=e.type.getDerivedStateFromError;if(typeof n=="function"){var a=t.value;r.payload=function(){return n(a)},r.callback=function(){Ud(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(r.callback=function(){Ud(e,t),typeof n!="function"&&(cn===null?cn=new Set([this]):cn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),r}function Mh(e,t,r){var n=e.pingCache;if(n===null){n=e.pingCache=new VS;var a=new Set;n.set(t,a)}else a=n.get(t),a===void 0&&(a=new Set,n.set(t,a));a.has(r)||(a.add(r),e=s1.bind(null,e,t,r),t.then(e,e))}function Rh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Eh(e,t,r,n,a){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(t=Fr(-1,1),t.tag=2,dn(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var GS=$r.ReactCurrentOwner,Mt=!1;function bt(e,t,r,n){t.child=e===null?Vg(t,null,r,n):Oa(t,e.child,r,n)}function Ph(e,t,r,n,a){r=r.render;var o=t.ref;return Pa(t,a),n=Mc(e,t,r,n,o,a),r=Rc(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qr(e,t,a)):(Fe&&r&&gc(t),t.flags|=1,bt(e,t,n,a),t.child)}function Nh(e,t,r,n,a){if(e===null){var o=r.type;return typeof o=="function"&&!zc(o)&&o.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(t.tag=15,t.type=o,vx(e,t,o,n,a)):(e=Ei(r.type,null,n,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&a)===0){var s=o.memoizedProps;if(r=r.compare,r=r!==null?r:zo,r(s,n)&&e.ref===t.ref)return qr(e,t,a)}return t.flags|=1,e=pn(o,n),e.ref=t.ref,e.return=t,t.child=e}function vx(e,t,r,n,a){if(e!==null){var o=e.memoizedProps;if(zo(o,n)&&e.ref===t.ref)if(Mt=!1,t.pendingProps=n=o,(e.lanes&a)!==0)(e.flags&131072)!==0&&(Mt=!0);else return t.lanes=e.lanes,qr(e,t,a)}return qd(e,t,r,n,a)}function yx(e,t,r){var n=t.pendingProps,a=n.children,o=e!==null?e.memoizedState:null;if(n.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Pe(Ia,Ot),Ot|=r;else{if((r&1073741824)===0)return e=o!==null?o.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Pe(Ia,Ot),Ot|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=o!==null?o.baseLanes:r,Pe(Ia,Ot),Ot|=n}else o!==null?(n=o.baseLanes|r,t.memoizedState=null):n=r,Pe(Ia,Ot),Ot|=n;return bt(e,t,a,r),t.child}function wx(e,t){var r=t.ref;(e===null&&r!==null||e!==null&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function qd(e,t,r,n,a){var o=Et(r)?Fn:mt.current;return o=Aa(t,o),Pa(t,a),r=Mc(e,t,r,n,o,a),n=Rc(),e!==null&&!Mt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,qr(e,t,a)):(Fe&&n&&gc(t),t.flags|=1,bt(e,t,r,a),t.child)}function Th(e,t,r,n,a){if(Et(r)){var o=!0;qi(t)}else o=!1;if(Pa(t,a),t.stateNode===null)_i(e,t),hx(t,r,n),zd(t,r,n,a),n=!0;else if(e===null){var s=t.stateNode,i=t.memoizedProps;s.props=i;var l=s.context,d=r.contextType;typeof d=="object"&&d!==null?d=Qt(d):(d=Et(r)?Fn:mt.current,d=Aa(t,d));var u=r.getDerivedStateFromProps,p=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==n||l!==d)&&_h(t,s,n,d),en=!1;var c=t.memoizedState;s.state=c,Vi(t,n,s,a),l=t.memoizedState,i!==n||c!==l||Rt.current||en?(typeof u=="function"&&(Bd(t,r,u,n),l=t.memoizedState),(i=en||Ih(t,r,i,n,c,l,d))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=l),s.props=n,s.state=l,s.context=d,n=i):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),n=!1)}else{s=t.stateNode,Xg(e,t),i=t.memoizedProps,d=t.type===t.elementType?i:ur(t.type,i),s.props=d,p=t.pendingProps,c=s.context,l=r.contextType,typeof l=="object"&&l!==null?l=Qt(l):(l=Et(r)?Fn:mt.current,l=Aa(t,l));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(i!==p||c!==l)&&_h(t,s,n,l),en=!1,c=t.memoizedState,s.state=c,Vi(t,n,s,a);var h=t.memoizedState;i!==p||c!==h||Rt.current||en?(typeof f=="function"&&(Bd(t,r,f,n),h=t.memoizedState),(d=en||Ih(t,r,d,n,c,h,l)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(n,h,l),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(n,h,l)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),s.props=n,s.state=h,s.context=l,n=d):(typeof s.componentDidUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&c===e.memoizedState||(t.flags|=1024),n=!1)}return $d(e,t,r,n,o,a)}function $d(e,t,r,n,a,o){wx(e,t);var s=(t.flags&128)!==0;if(!n&&!s)return a&&vh(t,r,!1),qr(e,t,o);n=t.stateNode,GS.current=t;var i=s&&typeof r.getDerivedStateFromError!="function"?null:n.render();return t.flags|=1,e!==null&&s?(t.child=Oa(t,e.child,null,o),t.child=Oa(t,null,i,o)):bt(e,t,i,o),t.memoizedState=n.state,a&&vh(t,r,!0),t.child}function bx(e){var t=e.stateNode;t.pendingContext?xh(e,t.pendingContext,t.pendingContext!==t.context):t.context&&xh(e,t.context,!1),Lc(e,t.containerInfo)}function Ah(e,t,r,n,a){return Da(),vc(a),t.flags|=256,bt(e,t,r,n),t.child}var Hd={dehydrated:null,treeContext:null,retryLane:0};function Wd(e){return{baseLanes:e,cachePool:null,transitions:null}}function Sx(e,t,r){var n=t.pendingProps,a=Ue.current,o=!1,s=(t.flags&128)!==0,i;if((i=s)||(i=e!==null&&e.memoizedState===null?!1:(a&2)!==0),i?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),Pe(Ue,a&1),e===null)return Od(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(s=n.children,e=n.fallback,o?(n=t.mode,o=t.child,s={mode:"hidden",children:s},(n&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=s):o=cl(s,n,0,null),e=On(e,n,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Wd(r),t.memoizedState=Hd,e):Nc(t,s));if(a=e.memoizedState,a!==null&&(i=a.dehydrated,i!==null))return XS(e,t,s,n,i,a,r);if(o){o=n.fallback,s=t.mode,a=e.child,i=a.sibling;var l={mode:"hidden",children:n.children};return(s&1)===0&&t.child!==a?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=pn(a,l),n.subtreeFlags=a.subtreeFlags&14680064),i!==null?o=pn(i,o):(o=On(o,s,r,null),o.flags|=2),o.return=t,n.return=t,n.sibling=o,t.child=n,n=o,o=t.child,s=e.child.memoizedState,s=s===null?Wd(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=Hd,n}return o=e.child,e=o.sibling,n=pn(o,{mode:"visible",children:n.children}),(t.mode&1)===0&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n}function Nc(e,t){return t=cl({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function vi(e,t,r,n){return n!==null&&vc(n),Oa(t,e.child,null,r),e=Nc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function XS(e,t,r,n,a,o,s){if(r)return t.flags&256?(t.flags&=-257,n=ad(Error(P(422))),vi(e,t,s,n)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=n.fallback,a=t.mode,n=cl({mode:"visible",children:n.children},a,0,null),o=On(o,a,s,null),o.flags|=2,n.return=t,o.return=t,n.sibling=o,t.child=n,(t.mode&1)!==0&&Oa(t,e.child,null,s),t.child.memoizedState=Wd(s),t.memoizedState=Hd,o);if((t.mode&1)===0)return vi(e,t,s,null);if(a.data==="$!"){if(n=a.nextSibling&&a.nextSibling.dataset,n)var i=n.dgst;return n=i,o=Error(P(419)),n=ad(o,n,void 0),vi(e,t,s,n)}if(i=(s&e.childLanes)!==0,Mt||i){if(n=rt,n!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(n.suspendedLanes|s))!==0?0:a,a!==0&&a!==o.retryLane&&(o.retryLane=a,Ur(e,a),pr(n,e,a,-1))}return Bc(),n=ad(Error(P(421))),vi(e,t,s,n)}return a.data==="$?"?(t.flags|=128,t.child=e.child,t=i1.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,Ft=un(a.nextSibling),Bt=t,Fe=!0,cr=null,e!==null&&(Vt[Gt++]=Dr,Vt[Gt++]=Or,Vt[Gt++]=Bn,Dr=e.id,Or=e.overflow,Bn=t),t=Nc(t,n.children),t.flags|=4096,t)}function Dh(e,t,r){e.lanes|=t;var n=e.alternate;n!==null&&(n.lanes|=t),Fd(e.return,t,r)}function od(e,t,r,n,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=r,o.tailMode=a)}function Cx(e,t,r){var n=t.pendingProps,a=n.revealOrder,o=n.tail;if(bt(e,t,n.children,r),n=Ue.current,(n&2)!==0)n=n&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Dh(e,r,t);else if(e.tag===19)Dh(e,r,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Pe(Ue,n),(t.mode&1)===0)t.memoizedState=null;else switch(a){case"forwards":for(r=t.child,a=null;r!==null;)e=r.alternate,e!==null&&Gi(e)===null&&(a=r),r=r.sibling;r=a,r===null?(a=t.child,t.child=null):(a=r.sibling,r.sibling=null),od(t,!1,a,r,o);break;case"backwards":for(r=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Gi(e)===null){t.child=a;break}e=a.sibling,a.sibling=r,r=a,a=e}od(t,!0,r,null,o);break;case"together":od(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _i(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qr(e,t,r){if(e!==null&&(t.dependencies=e.dependencies),Un|=t.lanes,(r&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,r=pn(e,e.pendingProps),t.child=r,r.return=t;e.sibling!==null;)e=e.sibling,r=r.sibling=pn(e,e.pendingProps),r.return=t;r.sibling=null}return t.child}function KS(e,t,r){switch(t.tag){case 3:bx(t),Da();break;case 5:Kg(t);break;case 1:Et(t.type)&&qi(t);break;case 4:Lc(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,a=t.memoizedProps.value;Pe(Wi,n._currentValue),n._currentValue=a;break;case 13:if(n=t.memoizedState,n!==null)return n.dehydrated!==null?(Pe(Ue,Ue.current&1),t.flags|=128,null):(r&t.child.childLanes)!==0?Sx(e,t,r):(Pe(Ue,Ue.current&1),e=qr(e,t,r),e!==null?e.sibling:null);Pe(Ue,Ue.current&1);break;case 19:if(n=(r&t.childLanes)!==0,(e.flags&128)!==0){if(n)return Cx(e,t,r);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Pe(Ue,Ue.current),n)break;return null;case 22:case 23:return t.lanes=0,yx(e,t,r)}return qr(e,t,r)}var Lx,jd,kx,Ix;Lx=function(e,t){for(var r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};jd=function(){};kx=function(e,t,r,n){var a=e.memoizedProps;if(a!==n){e=t.stateNode,An(Mr.current);var o=null;switch(r){case"input":a=pd(e,a),n=pd(e,n),o=[];break;case"select":a=$e({},a,{value:void 0}),n=$e({},n,{value:void 0}),o=[];break;case"textarea":a=gd(e,a),n=gd(e,n),o=[];break;default:typeof a.onClick!="function"&&typeof n.onClick=="function"&&(e.onclick=zi)}vd(r,n);var s;r=null;for(d in a)if(!n.hasOwnProperty(d)&&a.hasOwnProperty(d)&&a[d]!=null)if(d==="style"){var i=a[d];for(s in i)i.hasOwnProperty(s)&&(r||(r={}),r[s]="")}else d!=="dangerouslySetInnerHTML"&&d!=="children"&&d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(No.hasOwnProperty(d)?o||(o=[]):(o=o||[]).push(d,null));for(d in n){var l=n[d];if(i=a?.[d],n.hasOwnProperty(d)&&l!==i&&(l!=null||i!=null))if(d==="style")if(i){for(s in i)!i.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in l)l.hasOwnProperty(s)&&i[s]!==l[s]&&(r||(r={}),r[s]=l[s])}else r||(o||(o=[]),o.push(d,r)),r=l;else d==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,i=i?i.__html:void 0,l!=null&&i!==l&&(o=o||[]).push(d,l)):d==="children"?typeof l!="string"&&typeof l!="number"||(o=o||[]).push(d,""+l):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&(No.hasOwnProperty(d)?(l!=null&&d==="onScroll"&&Ae("scroll",e),o||i===l||(o=[])):(o=o||[]).push(d,l))}r&&(o=o||[]).push("style",r);var d=o;(t.updateQueue=d)&&(t.flags|=4)}};Ix=function(e,t,r,n){r!==n&&(t.flags|=4)};function go(e,t){if(!Fe)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;t!==null;)t.alternate!==null&&(r=t),t=t.sibling;r===null?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:n.sibling=null}}function ft(e){var t=e.alternate!==null&&e.alternate.child===e.child,r=0,n=0;if(t)for(var a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags&14680064,n|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)r|=a.lanes|a.childLanes,n|=a.subtreeFlags,n|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function QS(e,t,r){var n=t.pendingProps;switch(xc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ft(t),null;case 1:return Et(t.type)&&Ui(),ft(t),null;case 3:return n=t.stateNode,Fa(),De(Rt),De(mt),Ic(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(gi(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,cr!==null&&(Zd(cr),cr=null))),jd(e,t),ft(t),null;case 5:kc(t);var a=An(Wo.current);if(r=t.type,e!==null&&t.stateNode!=null)kx(e,t,r,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(t.stateNode===null)throw Error(P(166));return ft(t),null}if(e=An(Mr.current),gi(t)){n=t.stateNode,r=t.type;var o=t.memoizedProps;switch(n[Ir]=t,n[$o]=o,e=(t.mode&1)!==0,r){case"dialog":Ae("cancel",n),Ae("close",n);break;case"iframe":case"object":case"embed":Ae("load",n);break;case"video":case"audio":for(a=0;a<So.length;a++)Ae(So[a],n);break;case"source":Ae("error",n);break;case"img":case"image":case"link":Ae("error",n),Ae("load",n);break;case"details":Ae("toggle",n);break;case"input":Hm(n,o),Ae("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!o.multiple},Ae("invalid",n);break;case"textarea":jm(n,o),Ae("invalid",n)}vd(r,o),a=null;for(var s in o)if(o.hasOwnProperty(s)){var i=o[s];s==="children"?typeof i=="string"?n.textContent!==i&&(o.suppressHydrationWarning!==!0&&hi(n.textContent,i,e),a=["children",i]):typeof i=="number"&&n.textContent!==""+i&&(o.suppressHydrationWarning!==!0&&hi(n.textContent,i,e),a=["children",""+i]):No.hasOwnProperty(s)&&i!=null&&s==="onScroll"&&Ae("scroll",n)}switch(r){case"input":ni(n),Wm(n,o,!0);break;case"textarea":ni(n),Vm(n);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(n.onclick=zi)}n=a,t.updateQueue=n,n!==null&&(t.flags|=4)}else{s=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=eg(r)),e==="http://www.w3.org/1999/xhtml"?r==="script"?(e=s.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof n.is=="string"?e=s.createElement(r,{is:n.is}):(e=s.createElement(r),r==="select"&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,r),e[Ir]=t,e[$o]=n,Lx(e,t,!1,!1),t.stateNode=e;e:{switch(s=yd(r,n),r){case"dialog":Ae("cancel",e),Ae("close",e),a=n;break;case"iframe":case"object":case"embed":Ae("load",e),a=n;break;case"video":case"audio":for(a=0;a<So.length;a++)Ae(So[a],e);a=n;break;case"source":Ae("error",e),a=n;break;case"img":case"image":case"link":Ae("error",e),Ae("load",e),a=n;break;case"details":Ae("toggle",e),a=n;break;case"input":Hm(e,n),a=pd(e,n),Ae("invalid",e);break;case"option":a=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},a=$e({},n,{value:void 0}),Ae("invalid",e);break;case"textarea":jm(e,n),a=gd(e,n),Ae("invalid",e);break;default:a=n}vd(r,a),i=a;for(o in i)if(i.hasOwnProperty(o)){var l=i[o];o==="style"?ng(e,l):o==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&tg(e,l)):o==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&To(e,l):typeof l=="number"&&To(e,""+l):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(No.hasOwnProperty(o)?l!=null&&o==="onScroll"&&Ae("scroll",e):l!=null&&rc(e,o,l,s))}switch(r){case"input":ni(e),Wm(e,n,!1);break;case"textarea":ni(e),Vm(e);break;case"option":n.value!=null&&e.setAttribute("value",""+mn(n.value));break;case"select":e.multiple=!!n.multiple,o=n.value,o!=null?_a(e,!!n.multiple,o,!1):n.defaultValue!=null&&_a(e,!!n.multiple,n.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=zi)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ft(t),null;case 6:if(e&&t.stateNode!=null)Ix(e,t,e.memoizedProps,n);else{if(typeof n!="string"&&t.stateNode===null)throw Error(P(166));if(r=An(Wo.current),An(Mr.current),gi(t)){if(n=t.stateNode,r=t.memoizedProps,n[Ir]=t,(o=n.nodeValue!==r)&&(e=Bt,e!==null))switch(e.tag){case 3:hi(n.nodeValue,r,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&hi(n.nodeValue,r,(e.mode&1)!==0)}o&&(t.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Ir]=t,t.stateNode=n}return ft(t),null;case 13:if(De(Ue),n=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Fe&&Ft!==null&&(t.mode&1)!==0&&(t.flags&128)===0)Wg(),Da(),t.flags|=98560,o=!1;else if(o=gi(t),n!==null&&n.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[Ir]=t}else Da(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ft(t),o=!1}else cr!==null&&(Zd(cr),cr=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=r,t):(n=n!==null,n!==(e!==null&&e.memoizedState!==null)&&n&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ue.current&1)!==0?Je===0&&(Je=3):Bc())),t.updateQueue!==null&&(t.flags|=4),ft(t),null);case 4:return Fa(),jd(e,t),e===null&&Uo(t.stateNode.containerInfo),ft(t),null;case 10:return bc(t.type._context),ft(t),null;case 17:return Et(t.type)&&Ui(),ft(t),null;case 19:if(De(Ue),o=t.memoizedState,o===null)return ft(t),null;if(n=(t.flags&128)!==0,s=o.rendering,s===null)if(n)go(o,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Gi(e),s!==null){for(t.flags|=128,go(o,!1),n=s.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;r!==null;)o=r,e=n,o.flags&=14680066,s=o.alternate,s===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=s.childLanes,o.lanes=s.lanes,o.child=s.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=s.memoizedProps,o.memoizedState=s.memoizedState,o.updateQueue=s.updateQueue,o.type=s.type,e=s.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Pe(Ue,Ue.current&1|2),t.child}e=e.sibling}o.tail!==null&&Ve()>za&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304)}else{if(!n)if(e=Gi(s),e!==null){if(t.flags|=128,n=!0,r=e.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),go(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Fe)return ft(t),null}else 2*Ve()-o.renderingStartTime>za&&r!==1073741824&&(t.flags|=128,n=!0,go(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(r=o.last,r!==null?r.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Ve(),t.sibling=null,r=Ue.current,Pe(Ue,n?r&1|2:r&1),t):(ft(t),null);case 22:case 23:return Fc(),n=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==n&&(t.flags|=8192),n&&(t.mode&1)!==0?(Ot&1073741824)!==0&&(ft(t),t.subtreeFlags&6&&(t.flags|=8192)):ft(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function YS(e,t){switch(xc(t),t.tag){case 1:return Et(t.type)&&Ui(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fa(),De(Rt),De(mt),Ic(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return kc(t),null;case 13:if(De(Ue),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Da()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return De(Ue),null;case 4:return Fa(),null;case 10:return bc(t.type._context),null;case 22:case 23:return Fc(),null;case 24:return null;default:return null}}var yi=!1,pt=!1,JS=typeof WeakSet=="function"?WeakSet:Set,B=null;function ka(e,t){var r=e.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){He(e,t,n)}else r.current=null}function Vd(e,t,r){try{r()}catch(n){He(e,t,n)}}var Oh=!1;function ZS(e,t){if(Rd=Oi,e=Pg(),hc(e)){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{r=(r=e.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break e}var s=0,i=-1,l=-1,d=0,u=0,p=e,c=null;t:for(;;){for(var f;p!==r||a!==0&&p.nodeType!==3||(i=s+a),p!==o||n!==0&&p.nodeType!==3||(l=s+n),p.nodeType===3&&(s+=p.nodeValue.length),(f=p.firstChild)!==null;)c=p,p=f;for(;;){if(p===e)break t;if(c===r&&++d===a&&(i=s),c===o&&++u===n&&(l=s),(f=p.nextSibling)!==null)break;p=c,c=p.parentNode}p=f}r=i===-1||l===-1?null:{start:i,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ed={focusedElem:e,selectionRange:r},Oi=!1,B=t;B!==null;)if(t=B,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,b=h.memoizedState,g=t.stateNode,x=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ur(t.type,m),b);g.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(S){He(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=Oh,Oh=!1,h}function Ro(e,t,r){var n=t.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var a=n=n.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,o!==void 0&&Vd(t,r,o)}a=a.next}while(a!==n)}}function ul(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function Gd(e){var t=e.ref;if(t!==null){var r=e.stateNode;e.tag,e=r,typeof t=="function"?t(e):t.current=e}}function _x(e){var t=e.alternate;t!==null&&(e.alternate=null,_x(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ir],delete t[$o],delete t[Td],delete t[DS],delete t[OS])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mx(e){return e.tag===5||e.tag===3||e.tag===4}function Fh(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Mx(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.nodeType===8?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(r.nodeType===8?(t=r.parentNode,t.insertBefore(e,r)):(t=r,t.appendChild(e)),r=r._reactRootContainer,r!=null||t.onclick!==null||(t.onclick=zi));else if(n!==4&&(e=e.child,e!==null))for(Xd(e,t,r),e=e.sibling;e!==null;)Xd(e,t,r),e=e.sibling}function Kd(e,t,r){var n=e.tag;if(n===5||n===6)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(n!==4&&(e=e.child,e!==null))for(Kd(e,t,r),e=e.sibling;e!==null;)Kd(e,t,r),e=e.sibling}var nt=null,dr=!1;function Jr(e,t,r){for(r=r.child;r!==null;)Rx(e,t,r),r=r.sibling}function Rx(e,t,r){if(_r&&typeof _r.onCommitFiberUnmount=="function")try{_r.onCommitFiberUnmount(tl,r)}catch{}switch(r.tag){case 5:pt||ka(r,t);case 6:var n=nt,a=dr;nt=null,Jr(e,t,r),nt=n,dr=a,nt!==null&&(dr?(e=nt,r=r.stateNode,e.nodeType===8?e.parentNode.removeChild(r):e.removeChild(r)):nt.removeChild(r.stateNode));break;case 18:nt!==null&&(dr?(e=nt,r=r.stateNode,e.nodeType===8?Ju(e.parentNode,r):e.nodeType===1&&Ju(e,r),Fo(e)):Ju(nt,r.stateNode));break;case 4:n=nt,a=dr,nt=r.stateNode.containerInfo,dr=!0,Jr(e,t,r),nt=n,dr=a;break;case 0:case 11:case 14:case 15:if(!pt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){a=n=n.next;do{var o=a,s=o.destroy;o=o.tag,s!==void 0&&((o&2)!==0||(o&4)!==0)&&Vd(r,t,s),a=a.next}while(a!==n)}Jr(e,t,r);break;case 1:if(!pt&&(ka(r,t),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(i){He(r,t,i)}Jr(e,t,r);break;case 21:Jr(e,t,r);break;case 22:r.mode&1?(pt=(n=pt)||r.memoizedState!==null,Jr(e,t,r),pt=n):Jr(e,t,r);break;default:Jr(e,t,r)}}function Bh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var r=e.stateNode;r===null&&(r=e.stateNode=new JS),t.forEach(function(n){var a=l1.bind(null,e,n);r.has(n)||(r.add(n),n.then(a,a))})}}function lr(e,t){var r=t.deletions;if(r!==null)for(var n=0;n<r.length;n++){var a=r[n];try{var o=e,s=t,i=s;e:for(;i!==null;){switch(i.tag){case 5:nt=i.stateNode,dr=!1;break e;case 3:nt=i.stateNode.containerInfo,dr=!0;break e;case 4:nt=i.stateNode.containerInfo,dr=!0;break e}i=i.return}if(nt===null)throw Error(P(160));Rx(o,s,a),nt=null,dr=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(d){He(a,t,d)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Ex(t,e),t=t.sibling}function Ex(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(lr(t,e),Lr(e),n&4){try{Ro(3,e,e.return),ul(3,e)}catch(m){He(e,e.return,m)}try{Ro(5,e,e.return)}catch(m){He(e,e.return,m)}}break;case 1:lr(t,e),Lr(e),n&512&&r!==null&&ka(r,r.return);break;case 5:if(lr(t,e),Lr(e),n&512&&r!==null&&ka(r,r.return),e.flags&32){var a=e.stateNode;try{To(a,"")}catch(m){He(e,e.return,m)}}if(n&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=r!==null?r.memoizedProps:o,i=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{i==="input"&&o.type==="radio"&&o.name!=null&&Jh(a,o),yd(i,s);var d=yd(i,o);for(s=0;s<l.length;s+=2){var u=l[s],p=l[s+1];u==="style"?ng(a,p):u==="dangerouslySetInnerHTML"?tg(a,p):u==="children"?To(a,p):rc(a,u,p,d)}switch(i){case"input":md(a,o);break;case"textarea":Zh(a,o);break;case"select":var c=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var f=o.value;f!=null?_a(a,!!o.multiple,f,!1):c!==!!o.multiple&&(o.defaultValue!=null?_a(a,!!o.multiple,o.defaultValue,!0):_a(a,!!o.multiple,o.multiple?[]:"",!1))}a[$o]=o}catch(m){He(e,e.return,m)}}break;case 6:if(lr(t,e),Lr(e),n&4){if(e.stateNode===null)throw Error(P(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(m){He(e,e.return,m)}}break;case 3:if(lr(t,e),Lr(e),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Fo(t.containerInfo)}catch(m){He(e,e.return,m)}break;case 4:lr(t,e),Lr(e);break;case 13:lr(t,e),Lr(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(Dc=Ve())),n&4&&Bh(e);break;case 22:if(u=r!==null&&r.memoizedState!==null,e.mode&1?(pt=(d=pt)||u,lr(t,e),pt=d):lr(t,e),Lr(e),n&8192){if(d=e.memoizedState!==null,(e.stateNode.isHidden=d)&&!u&&(e.mode&1)!==0)for(B=e,u=e.child;u!==null;){for(p=B=u;B!==null;){switch(c=B,f=c.child,c.tag){case 0:case 11:case 14:case 15:Ro(4,c,c.return);break;case 1:ka(c,c.return);var h=c.stateNode;if(typeof h.componentWillUnmount=="function"){n=c,r=c.return;try{t=n,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(m){He(n,r,m)}}break;case 5:ka(c,c.return);break;case 22:if(c.memoizedState!==null){Uh(p);continue}}f!==null?(f.return=c,B=f):Uh(p)}u=u.sibling}e:for(u=null,p=e;;){if(p.tag===5){if(u===null){u=p;try{a=p.stateNode,d?(o=a.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(i=p.stateNode,l=p.memoizedProps.style,s=l!=null&&l.hasOwnProperty("display")?l.display:null,i.style.display=rg("display",s))}catch(m){He(e,e.return,m)}}}else if(p.tag===6){if(u===null)try{p.stateNode.nodeValue=d?"":p.memoizedProps}catch(m){He(e,e.return,m)}}else if((p.tag!==22&&p.tag!==23||p.memoizedState===null||p===e)&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;p.sibling===null;){if(p.return===null||p.return===e)break e;u===p&&(u=null),p=p.return}u===p&&(u=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:lr(t,e),Lr(e),n&4&&Bh(e);break;case 21:break;default:lr(t,e),Lr(e)}}function Lr(e){var t=e.flags;if(t&2){try{e:{for(var r=e.return;r!==null;){if(Mx(r)){var n=r;break e}r=r.return}throw Error(P(160))}switch(n.tag){case 5:var a=n.stateNode;n.flags&32&&(To(a,""),n.flags&=-33);var o=Fh(e);Kd(e,o,a);break;case 3:case 4:var s=n.stateNode.containerInfo,i=Fh(e);Xd(e,i,s);break;default:throw Error(P(161))}}catch(l){He(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function e1(e,t,r){B=e,Px(e,t,r)}function Px(e,t,r){for(var n=(e.mode&1)!==0;B!==null;){var a=B,o=a.child;if(a.tag===22&&n){var s=a.memoizedState!==null||yi;if(!s){var i=a.alternate,l=i!==null&&i.memoizedState!==null||pt;i=yi;var d=pt;if(yi=s,(pt=l)&&!d)for(B=a;B!==null;)s=B,l=s.child,s.tag===22&&s.memoizedState!==null?qh(a):l!==null?(l.return=s,B=l):qh(a);for(;o!==null;)B=o,Px(o,t,r),o=o.sibling;B=a,yi=i,pt=d}zh(e,t,r)}else(a.subtreeFlags&8772)!==0&&o!==null?(o.return=a,B=o):zh(e,t,r)}}function zh(e){for(;B!==null;){var t=B;if((t.flags&8772)!==0){var r=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:pt||ul(5,t);break;case 1:var n=t.stateNode;if(t.flags&4&&!pt)if(r===null)n.componentDidMount();else{var a=t.elementType===t.type?r.memoizedProps:ur(t.type,r.memoizedProps);n.componentDidUpdate(a,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&Ch(t,o,n);break;case 3:var s=t.updateQueue;if(s!==null){if(r=null,t.child!==null)switch(t.child.tag){case 5:r=t.child.stateNode;break;case 1:r=t.child.stateNode}Ch(t,s,r)}break;case 5:var i=t.stateNode;if(r===null&&t.flags&4){r=i;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var d=t.alternate;if(d!==null){var u=d.memoizedState;if(u!==null){var p=u.dehydrated;p!==null&&Fo(p)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}pt||t.flags&512&&Gd(t)}catch(c){He(t,t.return,c)}}if(t===e){B=null;break}if(r=t.sibling,r!==null){r.return=t.return,B=r;break}B=t.return}}function Uh(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var r=t.sibling;if(r!==null){r.return=t.return,B=r;break}B=t.return}}function qh(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{ul(4,t)}catch(l){He(t,r,l)}break;case 1:var n=t.stateNode;if(typeof n.componentDidMount=="function"){var a=t.return;try{n.componentDidMount()}catch(l){He(t,a,l)}}var o=t.return;try{Gd(t)}catch(l){He(t,o,l)}break;case 5:var s=t.return;try{Gd(t)}catch(l){He(t,s,l)}}}catch(l){He(t,t.return,l)}if(t===e){B=null;break}var i=t.sibling;if(i!==null){i.return=t.return,B=i;break}B=t.return}}var t1=Math.ceil,Qi=$r.ReactCurrentDispatcher,Tc=$r.ReactCurrentOwner,Kt=$r.ReactCurrentBatchConfig,he=0,rt=null,Ge=null,at=0,Ot=0,Ia=xn(0),Je=0,Xo=null,Un=0,dl=0,Ac=0,Eo=null,_t=null,Dc=0,za=1/0,Tr=null,Yi=!1,Qd=null,cn=null,wi=!1,an=null,Ji=0,Po=0,Yd=null,Mi=-1,Ri=0;function St(){return(he&6)!==0?Ve():Mi!==-1?Mi:Mi=Ve()}function fn(e){return(e.mode&1)===0?1:(he&2)!==0&&at!==0?at&-at:BS.transition!==null?(Ri===0&&(Ri=hg()),Ri):(e=Le,e!==0||(e=window.event,e=e===void 0?16:Sg(e.type)),e)}function pr(e,t,r,n){if(50<Po)throw Po=0,Yd=null,Error(P(185));Ko(e,r,n),((he&2)===0||e!==rt)&&(e===rt&&((he&2)===0&&(dl|=r),Je===4&&rn(e,at)),Pt(e,n),r===1&&he===0&&(t.mode&1)===0&&(za=Ve()+500,sl&&vn()))}function Pt(e,t){var r=e.callbackNode;Ub(e,t);var n=Di(e,e===rt?at:0);if(n===0)r!==null&&Km(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(r!=null&&Km(r),t===1)e.tag===0?FS($h.bind(null,e)):qg($h.bind(null,e)),TS(function(){(he&6)===0&&vn()}),r=null;else{switch(gg(n)){case 1:r=ic;break;case 4:r=pg;break;case 16:r=Ai;break;case 536870912:r=mg;break;default:r=Ai}r=zx(r,Nx.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function Nx(e,t){if(Mi=-1,Ri=0,(he&6)!==0)throw Error(P(327));var r=e.callbackNode;if(Na()&&e.callbackNode!==r)return null;var n=Di(e,e===rt?at:0);if(n===0)return null;if((n&30)!==0||(n&e.expiredLanes)!==0||t)t=Zi(e,n);else{t=n;var a=he;he|=2;var o=Ax();(rt!==e||at!==t)&&(Tr=null,za=Ve()+500,Dn(e,t));do try{a1();break}catch(i){Tx(e,i)}while(!0);wc(),Qi.current=o,he=a,Ge!==null?t=0:(rt=null,at=0,t=Je)}if(t!==0){if(t===2&&(a=Ld(e),a!==0&&(n=a,t=Jd(e,a))),t===1)throw r=Xo,Dn(e,0),rn(e,n),Pt(e,Ve()),r;if(t===6)rn(e,n);else{if(a=e.current.alternate,(n&30)===0&&!r1(a)&&(t=Zi(e,n),t===2&&(o=Ld(e),o!==0&&(n=o,t=Jd(e,o))),t===1))throw r=Xo,Dn(e,0),rn(e,n),Pt(e,Ve()),r;switch(e.finishedWork=a,e.finishedLanes=n,t){case 0:case 1:throw Error(P(345));case 2:Pn(e,_t,Tr);break;case 3:if(rn(e,n),(n&130023424)===n&&(t=Dc+500-Ve(),10<t)){if(Di(e,0)!==0)break;if(a=e.suspendedLanes,(a&n)!==n){St(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Nd(Pn.bind(null,e,_t,Tr),t);break}Pn(e,_t,Tr);break;case 4:if(rn(e,n),(n&4194240)===n)break;for(t=e.eventTimes,a=-1;0<n;){var s=31-fr(n);o=1<<s,s=t[s],s>a&&(a=s),n&=~o}if(n=a,n=Ve()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*t1(n/1960))-n,10<n){e.timeoutHandle=Nd(Pn.bind(null,e,_t,Tr),n);break}Pn(e,_t,Tr);break;case 5:Pn(e,_t,Tr);break;default:throw Error(P(329))}}}return Pt(e,Ve()),e.callbackNode===r?Nx.bind(null,e):null}function Jd(e,t){var r=Eo;return e.current.memoizedState.isDehydrated&&(Dn(e,t).flags|=256),e=Zi(e,t),e!==2&&(t=_t,_t=r,t!==null&&Zd(t)),e}function Zd(e){_t===null?_t=e:_t.push.apply(_t,e)}function r1(e){for(var t=e;;){if(t.flags&16384){var r=t.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var a=r[n],o=a.getSnapshot;a=a.value;try{if(!mr(o(),a))return!1}catch{return!1}}}if(r=t.child,t.subtreeFlags&16384&&r!==null)r.return=t,t=r;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function rn(e,t){for(t&=~Ac,t&=~dl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-fr(t),n=1<<r;e[r]=-1,t&=~n}}function $h(e){if((he&6)!==0)throw Error(P(327));Na();var t=Di(e,0);if((t&1)===0)return Pt(e,Ve()),null;var r=Zi(e,t);if(e.tag!==0&&r===2){var n=Ld(e);n!==0&&(t=n,r=Jd(e,n))}if(r===1)throw r=Xo,Dn(e,0),rn(e,t),Pt(e,Ve()),r;if(r===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pn(e,_t,Tr),Pt(e,Ve()),null}function Oc(e,t){var r=he;he|=1;try{return e(t)}finally{he=r,he===0&&(za=Ve()+500,sl&&vn())}}function qn(e){an!==null&&an.tag===0&&(he&6)===0&&Na();var t=he;he|=1;var r=Kt.transition,n=Le;try{if(Kt.transition=null,Le=1,e)return e()}finally{Le=n,Kt.transition=r,he=t,(he&6)===0&&vn()}}function Fc(){Ot=Ia.current,De(Ia)}function Dn(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(r!==-1&&(e.timeoutHandle=-1,NS(r)),Ge!==null)for(r=Ge.return;r!==null;){var n=r;switch(xc(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Ui();break;case 3:Fa(),De(Rt),De(mt),Ic();break;case 5:kc(n);break;case 4:Fa();break;case 13:De(Ue);break;case 19:De(Ue);break;case 10:bc(n.type._context);break;case 22:case 23:Fc()}r=r.return}if(rt=e,Ge=e=pn(e.current,null),at=Ot=t,Je=0,Xo=null,Ac=dl=Un=0,_t=Eo=null,Tn!==null){for(t=0;t<Tn.length;t++)if(r=Tn[t],n=r.interleaved,n!==null){r.interleaved=null;var a=n.next,o=r.pending;if(o!==null){var s=o.next;o.next=a,n.next=s}r.pending=n}Tn=null}return e}function Tx(e,t){do{var r=Ge;try{if(wc(),ki.current=Ki,Xi){for(var n=qe.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}Xi=!1}if(zn=0,tt=Ye=qe=null,Mo=!1,jo=0,Tc.current=null,r===null||r.return===null){Je=1,Xo=t,Ge=null;break}e:{var o=e,s=r.return,i=r,l=t;if(t=at,i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=l,u=i,p=u.tag;if((u.mode&1)===0&&(p===0||p===11||p===15)){var c=u.alternate;c?(u.updateQueue=c.updateQueue,u.memoizedState=c.memoizedState,u.lanes=c.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Rh(s);if(f!==null){f.flags&=-257,Eh(f,s,i,o,t),f.mode&1&&Mh(o,d,t),t=f,l=d;var h=t.updateQueue;if(h===null){var m=new Set;m.add(l),t.updateQueue=m}else h.add(l);break e}else{if((t&1)===0){Mh(o,d,t),Bc();break e}l=Error(P(426))}}else if(Fe&&i.mode&1){var b=Rh(s);if(b!==null){(b.flags&65536)===0&&(b.flags|=256),Eh(b,s,i,o,t),vc(Ba(l,i));break e}}o=l=Ba(l,i),Je!==4&&(Je=2),Eo===null?Eo=[o]:Eo.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var g=gx(o,l,t);Sh(o,g);break e;case 1:i=l;var x=o.type,v=o.stateNode;if((o.flags&128)===0&&(typeof x.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(cn===null||!cn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var S=xx(o,i,t);Sh(o,S);break e}}o=o.return}while(o!==null)}Ox(r)}catch(y){t=y,Ge===r&&r!==null&&(Ge=r=r.return);continue}break}while(!0)}function Ax(){var e=Qi.current;return Qi.current=Ki,e===null?Ki:e}function Bc(){(Je===0||Je===3||Je===2)&&(Je=4),rt===null||(Un&268435455)===0&&(dl&268435455)===0||rn(rt,at)}function Zi(e,t){var r=he;he|=2;var n=Ax();(rt!==e||at!==t)&&(Tr=null,Dn(e,t));do try{n1();break}catch(a){Tx(e,a)}while(!0);if(wc(),he=r,Qi.current=n,Ge!==null)throw Error(P(261));return rt=null,at=0,Je}function n1(){for(;Ge!==null;)Dx(Ge)}function a1(){for(;Ge!==null&&!Pb();)Dx(Ge)}function Dx(e){var t=Bx(e.alternate,e,Ot);e.memoizedProps=e.pendingProps,t===null?Ox(e):Ge=t,Tc.current=null}function Ox(e){var t=e;do{var r=t.alternate;if(e=t.return,(t.flags&32768)===0){if(r=QS(r,t,Ot),r!==null){Ge=r;return}}else{if(r=YS(r,t),r!==null){r.flags&=32767,Ge=r;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Je=6,Ge=null;return}}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);Je===0&&(Je=5)}function Pn(e,t,r){var n=Le,a=Kt.transition;try{Kt.transition=null,Le=1,o1(e,t,r,n)}finally{Kt.transition=a,Le=n}return null}function o1(e,t,r,n){do Na();while(an!==null);if((he&6)!==0)throw Error(P(327));r=e.finishedWork;var a=e.finishedLanes;if(r===null)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(qb(e,o),e===rt&&(Ge=rt=null,at=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||wi||(wi=!0,zx(Ai,function(){return Na(),null})),o=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||o){o=Kt.transition,Kt.transition=null;var s=Le;Le=1;var i=he;he|=4,Tc.current=null,ZS(e,r),Ex(r,e),_S(Ed),Oi=!!Rd,Ed=Rd=null,e.current=r,e1(r,e,a),Nb(),he=i,Le=s,Kt.transition=o}else e.current=r;if(wi&&(wi=!1,an=e,Ji=a),o=e.pendingLanes,o===0&&(cn=null),Db(r.stateNode,n),Pt(e,Ve()),t!==null)for(n=e.onRecoverableError,r=0;r<t.length;r++)a=t[r],n(a.value,{componentStack:a.stack,digest:a.digest});if(Yi)throw Yi=!1,e=Qd,Qd=null,e;return(Ji&1)!==0&&e.tag!==0&&Na(),o=e.pendingLanes,(o&1)!==0?e===Yd?Po++:(Po=0,Yd=e):Po=0,vn(),null}function Na(){if(an!==null){var e=gg(Ji),t=Kt.transition,r=Le;try{if(Kt.transition=null,Le=16>e?16:e,an===null)var n=!1;else{if(e=an,an=null,Ji=0,(he&6)!==0)throw Error(P(331));var a=he;for(he|=4,B=e.current;B!==null;){var o=B,s=o.child;if((B.flags&16)!==0){var i=o.deletions;if(i!==null){for(var l=0;l<i.length;l++){var d=i[l];for(B=d;B!==null;){var u=B;switch(u.tag){case 0:case 11:case 15:Ro(8,u,o)}var p=u.child;if(p!==null)p.return=u,B=p;else for(;B!==null;){u=B;var c=u.sibling,f=u.return;if(_x(u),u===d){B=null;break}if(c!==null){c.return=f,B=c;break}B=f}}}var h=o.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var b=m.sibling;m.sibling=null,m=b}while(m!==null)}}B=o}}if((o.subtreeFlags&2064)!==0&&s!==null)s.return=o,B=s;else e:for(;B!==null;){if(o=B,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:Ro(9,o,o.return)}var g=o.sibling;if(g!==null){g.return=o.return,B=g;break e}B=o.return}}var x=e.current;for(B=x;B!==null;){s=B;var v=s.child;if((s.subtreeFlags&2064)!==0&&v!==null)v.return=s,B=v;else e:for(s=x;B!==null;){if(i=B,(i.flags&2048)!==0)try{switch(i.tag){case 0:case 11:case 15:ul(9,i)}}catch(y){He(i,i.return,y)}if(i===s){B=null;break e}var S=i.sibling;if(S!==null){S.return=i.return,B=S;break e}B=i.return}}if(he=a,vn(),_r&&typeof _r.onPostCommitFiberRoot=="function")try{_r.onPostCommitFiberRoot(tl,e)}catch{}n=!0}return n}finally{Le=r,Kt.transition=t}}return!1}function Hh(e,t,r){t=Ba(r,t),t=gx(e,t,1),e=dn(e,t,1),t=St(),e!==null&&(Ko(e,1,t),Pt(e,t))}function He(e,t,r){if(e.tag===3)Hh(e,e,r);else for(;t!==null;){if(t.tag===3){Hh(t,e,r);break}else if(t.tag===1){var n=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(cn===null||!cn.has(n))){e=Ba(r,e),e=xx(t,e,1),t=dn(t,e,1),e=St(),t!==null&&(Ko(t,1,e),Pt(t,e));break}}t=t.return}}function s1(e,t,r){var n=e.pingCache;n!==null&&n.delete(t),t=St(),e.pingedLanes|=e.suspendedLanes&r,rt===e&&(at&r)===r&&(Je===4||Je===3&&(at&130023424)===at&&500>Ve()-Dc?Dn(e,0):Ac|=r),Pt(e,t)}function Fx(e,t){t===0&&((e.mode&1)===0?t=1:(t=si,si<<=1,(si&130023424)===0&&(si=4194304)));var r=St();e=Ur(e,t),e!==null&&(Ko(e,t,r),Pt(e,r))}function i1(e){var t=e.memoizedState,r=0;t!==null&&(r=t.retryLane),Fx(e,r)}function l1(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,a=e.memoizedState;a!==null&&(r=a.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(P(314))}n!==null&&n.delete(t),Fx(e,r)}var Bx;Bx=function(e,t,r){if(e!==null)if(e.memoizedProps!==t.pendingProps||Rt.current)Mt=!0;else{if((e.lanes&r)===0&&(t.flags&128)===0)return Mt=!1,KS(e,t,r);Mt=(e.flags&131072)!==0}else Mt=!1,Fe&&(t.flags&1048576)!==0&&$g(t,Hi,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;_i(e,t),e=t.pendingProps;var a=Aa(t,mt.current);Pa(t,r),a=Mc(null,t,n,e,a,r);var o=Rc();return t.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Et(n)?(o=!0,qi(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,Cc(t),a.updater=ll,t.stateNode=a,a._reactInternals=t,zd(t,n,e,r),t=$d(null,t,n,!0,o,r)):(t.tag=0,Fe&&o&&gc(t),bt(null,t,a,r),t=t.child),t;case 16:n=t.elementType;e:{switch(_i(e,t),e=t.pendingProps,a=n._init,n=a(n._payload),t.type=n,a=t.tag=d1(n),e=ur(n,e),a){case 0:t=qd(null,t,n,e,r);break e;case 1:t=Th(null,t,n,e,r);break e;case 11:t=Ph(null,t,n,e,r);break e;case 14:t=Nh(null,t,n,ur(n.type,e),r);break e}throw Error(P(306,n,""))}return t;case 0:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),qd(e,t,n,a,r);case 1:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),Th(e,t,n,a,r);case 3:e:{if(bx(t),e===null)throw Error(P(387));n=t.pendingProps,o=t.memoizedState,a=o.element,Xg(e,t),Vi(t,n,null,r);var s=t.memoizedState;if(n=s.element,o.isDehydrated)if(o={element:n,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ba(Error(P(423)),t),t=Ah(e,t,n,r,a);break e}else if(n!==a){a=Ba(Error(P(424)),t),t=Ah(e,t,n,r,a);break e}else for(Ft=un(t.stateNode.containerInfo.firstChild),Bt=t,Fe=!0,cr=null,r=Vg(t,null,n,r),t.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(Da(),n===a){t=qr(e,t,r);break e}bt(e,t,n,r)}t=t.child}return t;case 5:return Kg(t),e===null&&Od(t),n=t.type,a=t.pendingProps,o=e!==null?e.memoizedProps:null,s=a.children,Pd(n,a)?s=null:o!==null&&Pd(n,o)&&(t.flags|=32),wx(e,t),bt(e,t,s,r),t.child;case 6:return e===null&&Od(t),null;case 13:return Sx(e,t,r);case 4:return Lc(t,t.stateNode.containerInfo),n=t.pendingProps,e===null?t.child=Oa(t,null,n,r):bt(e,t,n,r),t.child;case 11:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),Ph(e,t,n,a,r);case 7:return bt(e,t,t.pendingProps,r),t.child;case 8:return bt(e,t,t.pendingProps.children,r),t.child;case 12:return bt(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Pe(Wi,n._currentValue),n._currentValue=s,o!==null)if(mr(o.value,s)){if(o.children===a.children&&!Rt.current){t=qr(e,t,r);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var i=o.dependencies;if(i!==null){s=o.child;for(var l=i.firstContext;l!==null;){if(l.context===n){if(o.tag===1){l=Fr(-1,r&-r),l.tag=2;var d=o.updateQueue;if(d!==null){d=d.shared;var u=d.pending;u===null?l.next=l:(l.next=u.next,u.next=l),d.pending=l}}o.lanes|=r,l=o.alternate,l!==null&&(l.lanes|=r),Fd(o.return,r,t),i.lanes|=r;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(P(341));s.lanes|=r,i=s.alternate,i!==null&&(i.lanes|=r),Fd(s,r,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}bt(e,t,a.children,r),t=t.child}return t;case 9:return a=t.type,n=t.pendingProps.children,Pa(t,r),a=Qt(a),n=n(a),t.flags|=1,bt(e,t,n,r),t.child;case 14:return n=t.type,a=ur(n,t.pendingProps),a=ur(n.type,a),Nh(e,t,n,a,r);case 15:return vx(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,a=t.pendingProps,a=t.elementType===n?a:ur(n,a),_i(e,t),t.tag=1,Et(n)?(e=!0,qi(t)):e=!1,Pa(t,r),hx(t,n,a),zd(t,n,a,r),$d(null,t,n,!0,e,r);case 19:return Cx(e,t,r);case 22:return yx(e,t,r)}throw Error(P(156,t.tag))};function zx(e,t){return fg(e,t)}function u1(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,r,n){return new u1(e,t,r,n)}function zc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function d1(e){if(typeof e=="function")return zc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===oc)return 14}return 2}function pn(e,t){var r=e.alternate;return r===null?(r=Xt(e.tag,t,e.key,e.mode),r.elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=e.flags&14680064,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ei(e,t,r,n,a,o){var s=2;if(n=e,typeof e=="function")zc(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ga:return On(r.children,a,o,t);case nc:s=8,a|=8;break;case ud:return e=Xt(12,r,t,a|2),e.elementType=ud,e.lanes=o,e;case dd:return e=Xt(13,r,t,a),e.elementType=dd,e.lanes=o,e;case cd:return e=Xt(19,r,t,a),e.elementType=cd,e.lanes=o,e;case Kh:return cl(r,a,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gh:s=10;break e;case Xh:s=9;break e;case ac:s=11;break e;case oc:s=14;break e;case Zr:s=16,n=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=Xt(s,r,t,a),t.elementType=e,t.type=n,t.lanes=o,t}function On(e,t,r,n){return e=Xt(7,e,n,t),e.lanes=r,e}function cl(e,t,r,n){return e=Xt(22,e,n,t),e.elementType=Kh,e.lanes=r,e.stateNode={isHidden:!1},e}function sd(e,t,r){return e=Xt(6,e,null,t),e.lanes=r,e}function id(e,t,r){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function c1(e,t,r,n,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Wu(0),this.expirationTimes=Wu(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wu(0),this.identifierPrefix=n,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Uc(e,t,r,n,a,o,s,i,l){return e=new c1(e,t,r,i,l),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Xt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cc(o),e}function f1(e,t,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:ha,key:n==null?null:""+n,children:e,containerInfo:t,implementation:r}}function Ux(e){if(!e)return hn;e=e._reactInternals;e:{if(Hn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Et(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var r=e.type;if(Et(r))return Ug(e,r,t)}return t}function qx(e,t,r,n,a,o,s,i,l){return e=Uc(r,n,!0,e,a,o,s,i,l),e.context=Ux(null),r=e.current,n=St(),a=fn(r),o=Fr(n,a),o.callback=t??null,dn(r,o,a),e.current.lanes=a,Ko(e,a,n),Pt(e,n),e}function fl(e,t,r,n){var a=t.current,o=St(),s=fn(a);return r=Ux(r),t.context===null?t.context=r:t.pendingContext=r,t=Fr(o,s),t.payload={element:e},n=n===void 0?null:n,n!==null&&(t.callback=n),e=dn(a,t,s),e!==null&&(pr(e,a,s,o),Li(e,a,s)),s}function el(e){return e=e.current,e.child?(e.child.tag===5,e.child.stateNode):null}function Wh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var r=e.retryLane;e.retryLane=r!==0&&r<t?r:t}}function qc(e,t){Wh(e,t),(e=e.alternate)&&Wh(e,t)}function p1(){return null}var $x=typeof reportError=="function"?reportError:function(e){console.error(e)};function $c(e){this._internalRoot=e}pl.prototype.render=$c.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));fl(e,t,null,null)};pl.prototype.unmount=$c.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;qn(function(){fl(null,e,null,null)}),t[zr]=null}};function pl(e){this._internalRoot=e}pl.prototype.unstable_scheduleHydration=function(e){if(e){var t=yg();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tn.length&&t!==0&&t<tn[r].priority;r++);tn.splice(r,0,e),r===0&&bg(e)}};function Hc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ml(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function jh(){}function m1(e,t,r,n,a){if(a){if(typeof n=="function"){var o=n;n=function(){var d=el(s);o.call(d)}}var s=qx(t,n,e,0,null,!1,!1,"",jh);return e._reactRootContainer=s,e[zr]=s.current,Uo(e.nodeType===8?e.parentNode:e),qn(),s}for(;a=e.lastChild;)e.removeChild(a);if(typeof n=="function"){var i=n;n=function(){var d=el(l);i.call(d)}}var l=Uc(e,0,!1,null,null,!1,!1,"",jh);return e._reactRootContainer=l,e[zr]=l.current,Uo(e.nodeType===8?e.parentNode:e),qn(function(){fl(t,l,r,n)}),l}function hl(e,t,r,n,a){var o=r._reactRootContainer;if(o){var s=o;if(typeof a=="function"){var i=a;a=function(){var l=el(s);i.call(l)}}fl(t,s,e,a)}else s=m1(r,t,e,a,n);return el(s)}xg=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=bo(t.pendingLanes);r!==0&&(lc(t,r|1),Pt(t,Ve()),(he&6)===0&&(za=Ve()+500,vn()))}break;case 13:qn(function(){var n=Ur(e,1);if(n!==null){var a=St();pr(n,e,1,a)}}),qc(e,1)}};uc=function(e){if(e.tag===13){var t=Ur(e,134217728);if(t!==null){var r=St();pr(t,e,134217728,r)}qc(e,134217728)}};vg=function(e){if(e.tag===13){var t=fn(e),r=Ur(e,t);if(r!==null){var n=St();pr(r,e,t,n)}qc(e,t)}};yg=function(){return Le};wg=function(e,t){var r=Le;try{return Le=e,t()}finally{Le=r}};bd=function(e,t,r){switch(t){case"input":if(md(e,r),t=r.name,r.type==="radio"&&t!=null){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var a=ol(n);if(!a)throw Error(P(90));Yh(n),md(n,a)}}}break;case"textarea":Zh(e,r);break;case"select":t=r.value,t!=null&&_a(e,!!r.multiple,t,!1)}};sg=Oc;ig=qn;var h1={usingClientEntryPoint:!1,Events:[Yo,wa,ol,ag,og,Oc]},xo={findFiberByHostInstance:Nn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},g1={bundleType:xo.bundleType,version:xo.version,rendererPackageName:xo.rendererPackageName,rendererConfig:xo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:$r.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=dg(e),e===null?null:e.stateNode},findFiberByHostInstance:xo.findFiberByHostInstance||p1,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(vo=__REACT_DEVTOOLS_GLOBAL_HOOK__,!vo.isDisabled&&vo.supportsFiber))try{tl=vo.inject(g1),_r=vo}catch{}var vo;qt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=h1;qt.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Hc(t))throw Error(P(200));return f1(e,t,null,r)};qt.createRoot=function(e,t){if(!Hc(e))throw Error(P(299));var r=!1,n="",a=$x;return t!=null&&(t.unstable_strictMode===!0&&(r=!0),t.identifierPrefix!==void 0&&(n=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=Uc(e,1,!1,null,null,r,!1,n,a),e[zr]=t.current,Uo(e.nodeType===8?e.parentNode:e),new $c(t)};qt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=dg(t),e=e===null?null:e.stateNode,e};qt.flushSync=function(e){return qn(e)};qt.hydrate=function(e,t,r){if(!ml(t))throw Error(P(200));return hl(null,e,t,!0,r)};qt.hydrateRoot=function(e,t,r){if(!Hc(e))throw Error(P(405));var n=r!=null&&r.hydratedSources||null,a=!1,o="",s=$x;if(r!=null&&(r.unstable_strictMode===!0&&(a=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onRecoverableError!==void 0&&(s=r.onRecoverableError)),t=qx(t,null,e,1,r??null,a,!1,o,s),e[zr]=t.current,Uo(e),n)for(e=0;e<n.length;e++)r=n[e],a=r._getVersion,a=a(r._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[r,a]:t.mutableSourceEagerHydrationData.push(r,a);return new pl(t)};qt.render=function(e,t,r){if(!ml(t))throw Error(P(200));return hl(null,e,t,!1,r)};qt.unmountComponentAtNode=function(e){if(!ml(e))throw Error(P(40));return e._reactRootContainer?(qn(function(){hl(null,null,e,!1,function(){e._reactRootContainer=null,e[zr]=null})}),!0):!1};qt.unstable_batchedUpdates=Oc;qt.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!ml(r))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return hl(e,t,r,!1,n)};qt.version="18.3.1-next-f1338f8080-20240426"});var Vx=Nr((D_,jx)=>{"use strict";function Wx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Wx)}catch(e){console.error(e)}}Wx(),jx.exports=Hx()});var Xx=Nr(Wc=>{"use strict";var Gx=Vx();Wc.createRoot=Gx.createRoot,Wc.hydrateRoot=Gx.hydrateRoot;var O_});var Qx=Nr(gl=>{"use strict";var x1=fe(),v1=Symbol.for("react.element"),y1=Symbol.for("react.fragment"),w1=Object.prototype.hasOwnProperty,b1=x1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,S1={key:!0,ref:!0,__self:!0,__source:!0};function Kx(e,t,r){var n,a={},o=null,s=null;r!==void 0&&(o=""+r),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(n in t)w1.call(t,n)&&!S1.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps,t)a[n]===void 0&&(a[n]=t[n]);return{$$typeof:v1,type:e,key:o,ref:s,props:a,_owner:b1.current}}gl.Fragment=y1;gl.jsx=Kx;gl.jsxs=Kx});var le=Nr((z_,Yx)=>{"use strict";Yx.exports=Qx()});var M_={};J0(M_,{default:()=>__,mount:()=>B0});var O0=F(fe(),1),F0=F(Xx(),1);var Qr=F(fe(),1);var G=F(fe(),1);var Nt=F(fe(),1),de=F(le(),1),xl=(...e)=>e.filter(Boolean).join(" ");function ht({label:e,pressed:t,className:r,children:n,...a}){return(0,de.jsx)(jc,{content:e,children:(0,de.jsx)("button",{className:xl("lum-iconbtn",r),"aria-label":e,"aria-pressed":t,...a,children:n})})}function Wn({tone:e="default",children:t,className:r}){return(0,de.jsx)("span",{className:xl("lum-badge",e!=="default"&&`lum-badge--${e}`,r),children:t})}function jc({content:e,children:t}){return e?(0,de.jsxs)("span",{className:"lum-tip",children:[t,(0,de.jsx)("span",{className:"lum-tip__bubble",role:"tooltip",children:e})]}):(0,de.jsx)(de.Fragment,{children:t})}function Vc({open:e,onClose:t,title:r,children:n}){return(0,Nt.useEffect)(()=>{if(!e)return;let a=o=>o.key==="Escape"&&t();return window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a)},[e,t]),e?(0,de.jsxs)(de.Fragment,{children:[(0,de.jsx)("div",{className:"lum-drawer__scrim",onClick:t}),(0,de.jsxs)("aside",{className:"lum-drawer",role:"dialog","aria-modal":"true","aria-label":typeof r=="string"?r:"Details",children:[(0,de.jsxs)("div",{className:"lum-drawer__header",children:[(0,de.jsx)("strong",{children:r}),(0,de.jsx)(ht,{label:"Close",onClick:t,children:"\u2715"})]}),(0,de.jsx)("div",{className:"lum-drawer__body",children:n})]})]}):null}function Gc({width:e,height:t=14,className:r,radius:n}){return(0,de.jsx)("div",{className:xl("lum-skeleton",r),style:{width:e??"100%",height:t,borderRadius:n},"aria-hidden":!0})}var C1=(0,Nt.createContext)(()=>{});function Jx({children:e}){let[t,r]=(0,Nt.useState)([]),n=(0,Nt.useCallback)((a,o="default")=>{let s=Date.now()+Math.floor(performance.now());r(i=>[...i,{id:s,text:a,tone:o}]),setTimeout(()=>r(i=>i.filter(l=>l.id!==s)),3200)},[]);return(0,de.jsxs)(C1.Provider,{value:n,children:[e,(0,de.jsx)("div",{className:"lum-toasts",role:"status","aria-live":"polite",children:t.map(a=>(0,de.jsx)("div",{className:xl("lum-toast",a.tone&&a.tone!=="default"&&`lum-toast--${a.tone}`),children:a.text},a.id))})]})}function Zx({trigger:e,options:t,value:r,onSelect:n,placement:a="bottom"}){let[o,s]=(0,Nt.useState)(!1),i=(0,Nt.useRef)(null);return(0,Nt.useEffect)(()=>{if(!o)return;let l=u=>{i.current&&!i.current.contains(u.target)&&s(!1)},d=u=>u.key==="Escape"&&s(!1);return document.addEventListener("mousedown",l),document.addEventListener("keydown",d),()=>{document.removeEventListener("mousedown",l),document.removeEventListener("keydown",d)}},[o]),(0,de.jsxs)("div",{className:"lum-menu",ref:i,children:[(0,de.jsx)("span",{onClick:()=>s(l=>!l),children:e}),o&&(0,de.jsx)("div",{className:`lum-menu__list${a==="top"?" lum-menu__list--up":""}`,role:"menu",children:t.map(l=>(0,de.jsxs)("button",{role:"menuitemradio","aria-checked":r===l.value,className:"lum-menu__item",onClick:()=>{n(l.value),s(!1)},children:[l.label,r===l.value&&(0,de.jsx)("span",{"aria-hidden":!0,children:"\u2713"})]},String(l.value)))})]})}function Jt({title:e,children:t,icon:r,action:n}){return(0,de.jsxs)("div",{className:"lum-state",children:[r&&(0,de.jsx)("div",{className:"lum-state__icon",children:r}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),n]})}function ev({title:e,children:t,action:r}){return(0,de.jsxs)("div",{className:"lum-state lum-state--error",role:"alert",children:[(0,de.jsx)("div",{className:"lum-state__icon",children:"\u26A0"}),(0,de.jsx)("div",{className:"lum-state__title",children:e}),t&&(0,de.jsx)("div",{children:t}),r]})}var tv=e=>{let t,r=new Set,n=(d,u)=>{let p=typeof d=="function"?d(t):d;if(!Object.is(p,t)){let c=t;t=u??(typeof p!="object"||p===null)?p:Object.assign({},t,p),r.forEach(f=>f(t,c))}},a=()=>t,i={setState:n,getState:a,getInitialState:()=>l,subscribe:d=>(r.add(d),()=>r.delete(d))},l=t=e(n,a,i);return i},rv=(e=>e?tv(e):tv);var hu=F(fe(),1);var Zo=F(fe(),1);var L1=e=>e;function nv(e,t=L1){let r=Zo.default.useSyncExternalStore(e.subscribe,Zo.default.useCallback(()=>t(e.getState()),[e,t]),Zo.default.useCallback(()=>t(e.getInitialState()),[e,t]));return Zo.default.useDebugValue(r),r}var f0=F(le(),1),gu=F(fe(),1),m0=F(le(),1);var k1=Object.defineProperty,I1=(e,t,r)=>t in e?k1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t,r)=>I1(e,typeof t!="symbol"?t+"":t,r),av,_1=Object.defineProperty,M1=(e,t,r)=>t in e?_1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ov=(e,t,r)=>M1(e,typeof t!="symbol"?t+"":t,r),re=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(re||{}),sv={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},iv={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},vl={},Wy={},R1=()=>!!globalThis.Zone;function _p(e){if(vl[e])return vl[e];let t=globalThis[e],r=t.prototype,n=e in sv?sv[e]:void 0,a=!!(n&&n.every(i=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,i))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in iv?iv[e]:void 0,s=!!(o&&o.every(i=>{var l;return typeof r[i]=="function"&&((l=r[i])==null?void 0:l.toString().includes("[native code]"))}));if(a&&s&&!R1())return vl[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);let l=i.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return i.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(i.classList.add("rr-block"),i.setAttribute("__rrwebUntaintedMutationObserver",""),Wy[e]=()=>i.remove()):i.remove(),vl[e]=d}catch{return r}}var Xc={};function Vr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Xc[a])return Xc[a].call(t);let o=_p(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Xc[a]=s,s.call(t)):t[r]}var Kc={};function jy(e,t,r){let n=`${e}.${String(r)}`;if(Kc[n])return Kc[n].bind(t);let o=_p(e)[r];return typeof o!="function"?t[r]:(Kc[n]=o,o.bind(t))}function E1(e){return Vr("Node",e,"ownerDocument")}function P1(e){return Vr("Node",e,"childNodes")}function N1(e){return Vr("Node",e,"parentNode")}function T1(e){return Vr("Node",e,"parentElement")}function A1(e){return Vr("Node",e,"textContent")}function D1(e,t){return jy("Node",e,"contains")(t)}function O1(e){return jy("Node",e,"getRootNode")()}function F1(e){return!e||!("host"in e)?null:Vr("ShadowRoot",e,"host")}function B1(e){return e.styleSheets}function z1(e){return!e||!("shadowRoot"in e)?null:Vr("Element",e,"shadowRoot")}function U1(e,t){return Vr("Element",e,"querySelector")(t)}function q1(e,t){return Vr("Element",e,"querySelectorAll")(t)}function $1(){return[_p("MutationObserver").constructor,Wy.MutationObserver??(()=>{})]}var Vy=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Vy=()=>new Date().getTime());function H1(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var gt={ownerDocument:E1,childNodes:P1,parentNode:N1,parentElement:T1,textContent:A1,contains:D1,getRootNode:O1,host:F1,styleSheets:B1,shadowRoot:z1,querySelector:U1,querySelectorAll:q1,nowTimestamp:Vy,mutationObserverCtor:$1,patch:H1};function Mp(e){return e.nodeType===e.ELEMENT_NODE}function ns(e){let t=e&&"host"in e&&"mode"in e&&gt.host(e)||null;return!!(t&&"shadowRoot"in t&&gt.shadowRoot(t)===e)}function as(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function W1(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function j1(e){let{cssText:t}=e;if(t.split('"').length<3)return t;let r=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?r.push("layer"):e.layerName&&r.push(`layer(${e.layerName})`),e.supportsText&&r.push(`supports(${e.supportsText})`),e.media.length&&r.push(e.media.mediaText),r.join(" ")+";"}function np(e){try{let t=e.rules||e.cssRules;if(!t)return null;let r=e.href;!r&&e.ownerNode&&(r=e.ownerNode.baseURI);let n=Array.from(t,a=>Gy(a,r)).join("");return W1(n)}catch{return null}}function Gy(e,t){if(G1(e)){let r;try{r=np(e.styleSheet)||j1(e)}catch{r=e.cssText}return e.styleSheet.href?Nl(r,e.styleSheet.href):r}else{let r=e.cssText;return X1(e)&&e.selectorText.includes(":")&&(r=V1(r)),t?Nl(r,t):r}}function V1(e){let t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function G1(e){return"styleSheet"in e}function X1(e){return"selectorText"in e}var ls=class{constructor(){ov(this,"idNodeMap",new Map),ov(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let 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){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Xy(){return new ls}function El({element:e,maskInputOptions:t,tagName:r,type:n,value:a,maskInputFn:o}){let s=a||"",i=n&&Sn(n);return(t[r.toLowerCase()]||i&&t[i])&&(o?s=o(s,e):s="*".repeat(s.length)),s}function Sn(e){return e.toLowerCase()}var lv="__rrweb_original__";function K1(e){let t=e.getContext("2d");if(!t)return!0;let r=50;for(let n=0;n<e.width;n+=r)for(let a=0;a<e.height;a+=r){let o=t.getImageData,s=lv in o?o[lv]:o;if(new Uint32Array(s.call(t,n,a,Math.min(r,e.width-n),Math.min(r,e.height-a)).data.buffer).some(l=>l!==0))return!1}return!0}function Q1(e,t){return!e||!t||e.type!==t.type?!1:e.type===re.Document?e.compatMode===t.compatMode:e.type===re.DocumentType?e.name===t.name&&e.publicId===t.publicId&&e.systemId===t.systemId:e.type===re.Comment||e.type===re.Text||e.type===re.CDATA?e.textContent===t.textContent:e.type===re.Element?e.tagName===t.tagName&&JSON.stringify(e.attributes)===JSON.stringify(t.attributes)&&e.isSVG===t.isSVG&&e.needBlock===t.needBlock:!1}function Pl(e){let t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Sn(t):null}function Rp(e,t){let r;try{r=new URL(e,t??window.location.href)}catch{return null}let n=/\.([0-9a-z]+)(?:$)/i,a=r.pathname.match(n);return a?.[1]??null}function Y1(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}var J1=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Z1=/^(?:[a-z+]+:)?\/\//i,eC=/^www\..*/i,tC=/^(data:)([^,]*),(.*)/i;function Nl(e,t){return(e||"").replace(J1,(r,n,a,o,s,i)=>{let l=a||s||i,d=n||o||"";if(!l)return r;if(Z1.test(l)||eC.test(l))return`url(${d}${l}${d})`;if(tC.test(l))return`url(${d}${l}${d})`;if(l[0]==="/")return`url(${d}${Y1(t)+l}${d})`;let u=t.split("/"),p=l.split("/");u.pop();for(let c of p)c!=="."&&(c===".."?u.pop():u.push(c));return`url(${d}${u.join("/")}${d})`})}function yl(e,t=!1){return t?e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):e.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")}function rC(e,t,r=!1){let n=Array.from(t.childNodes),a=[],o=0;if(n.length>1&&e&&typeof e=="string"){let s=yl(e,r),i=s.length/e.length;for(let l=1;l<n.length;l++)if(n[l].textContent&&typeof n[l].textContent=="string"){let d=yl(n[l].textContent,r),u=100,p=3;for(;p<d.length&&(d[p].match(/[a-zA-Z0-9]/)||d.indexOf(d.substring(0,p),1)!==-1);p++);for(;p<d.length;p++){let c=d.substring(0,p),f=s.split(c),h=-1;if(f.length===2)h=f[0].length;else if(f.length>2&&f[0]===""&&n[l-1].textContent!=="")h=s.indexOf(c,1);else if(f.length===1){if(c=c.substring(0,c.length-1),f=s.split(c),f.length<=1)return a.push(e),a;p=u+1}else p===d.length-1&&(h=s.indexOf(c));if(f.length>=2&&p>u){let m=n[l-1].textContent;if(m&&typeof m=="string"){let b=yl(m).length;h=s.indexOf(c,b)}h===-1&&(h=f[0].length)}if(h!==-1){let m=Math.floor(h/i);for(;m>0&&m<e.length;){if(o+=1,o>50*n.length)return a.push(e),a;let b=yl(e.substring(0,m),r);if(b.length===h){a.push(e.substring(0,m)),e=e.substring(m),s=s.substring(h);break}else b.length<h?m+=Math.max(1,Math.floor((h-b.length)/i)):m-=Math.max(1,Math.floor((b.length-h)*i))}break}}}}return a.push(e),a}function nC(e,t){return rC(e,t).join("/* rr_split */")}var aC=1,oC=new RegExp("[^a-z0-9-_:]"),us=-2;function Ky(){return aC++}function sC(e){if(e instanceof HTMLFormElement)return"form";let t=Sn(e.tagName);return oC.test(t)?"div":t}var $a,uv,iC=/^[^ \t\n\r\u000c]+/,lC=/^[, \t\n\r\u000c]+/;function uC(e,t){if(t.trim()==="")return t;let r=0;function n(o){let s,i=o.exec(t.substring(r));return i?(s=i[0],r+=s.length,s):""}let a=[];for(;n(lC),!(r>=t.length);){let o=n(iC);if(o.slice(-1)===",")o=Va(e,o.substring(0,o.length-1)),a.push(o);else{let s="";o=Va(e,o);let i=!1;for(;;){let l=t.charAt(r);if(l===""){a.push((o+s).trim());break}else if(i)l===")"&&(i=!1);else if(l===","){r+=1,a.push((o+s).trim());break}else l==="("&&(i=!0);s+=l,r+=1}}}return a.join(", ")}var dv=new WeakMap;function Va(e,t){return!t||t.trim()===""?t:Ep(e,t)}function dC(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Ep(e,t){let r=dv.get(e);if(r||(r=e.createElement("a"),dv.set(e,r)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return r.setAttribute("href",t),r.href}function Qy(e,t,r,n){return n&&(r==="src"||r==="href"&&!(t==="use"&&n[0]==="#")||r==="xlink:href"&&n[0]!=="#"||r==="background"&&["table","td","th"].includes(t)?Va(e,n):r==="srcset"?uC(e,n):r==="style"?Nl(n,Ep(e)):t==="object"&&r==="data"?Va(e,n):n)}function Yy(e,t,r){return["video","audio"].includes(e)&&t==="autoplay"}function cC(e,t,r){try{if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}if(r)return e.matches(r)}catch{}return!1}function Tl(e,t,r){if(!e)return!1;if(e.nodeType!==e.ELEMENT_NODE)return r?Tl(gt.parentNode(e),t,r):!1;for(let n=e.classList.length;n--;){let a=e.classList[n];if(t.test(a))return!0}return r?Tl(gt.parentNode(e),t,r):!1}function Jy(e,t,r,n){let a;if(Mp(e)){if(a=e,!gt.childNodes(a).length)return!1}else{if(gt.parentElement(e)===null)return!1;a=gt.parentElement(e)}try{if(typeof t=="string"){if(n){if(a.closest(`.${t}`))return!0}else if(a.classList.contains(t))return!0}else if(Tl(a,t,n))return!0;if(r){if(n){if(a.closest(r))return!0}else if(a.matches(r))return!0}}catch{}return!1}function fC(e,t,r){let n=e.contentWindow;if(!n)return;let a=!1,o;try{o=n.document.readyState}catch{return}if(o!=="complete"){let i=setTimeout(()=>{a||(t(),a=!0)},r);e.addEventListener("load",()=>{clearTimeout(i),a=!0,t()});return}let s="about:blank";if(n.location.href!==s||e.src===s||e.src==="")return setTimeout(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function pC(e,t,r){let n=!1,a;try{a=e.sheet}catch{return}if(a)return;let o=setTimeout(()=>{n||(t(),n=!0)},r);e.addEventListener("load",()=>{clearTimeout(o),n=!0,t()})}function mC(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:s,inlineStylesheet:i,maskInputOptions:l={},maskTextFn:d,maskInputFn:u,dataURLOptions:p={},inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m=!1,cssCaptured:b=!1}=t,g=hC(r,n);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:re.Document,childNodes:[],compatMode:e.compatMode}:{type:re.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:re.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:g};case e.ELEMENT_NODE:return xC(e,{doc:r,blockClass:a,blockSelector:o,inlineStylesheet:i,maskInputOptions:l,maskInputFn:u,dataURLOptions:p,inlineImages:c,recordCanvas:f,keepIframeSrcFn:h,newlyAddedElement:m,rootId:g});case e.TEXT_NODE:return gC(e,{doc:r,needsMask:s,maskTextFn:d,rootId:g,cssCaptured:b});case e.CDATA_SECTION_NODE:return{type:re.CDATA,textContent:"",rootId:g};case e.COMMENT_NODE:return{type:re.Comment,textContent:gt.textContent(e)||"",rootId:g};default:return!1}}function hC(e,t){if(!t.hasNode(e))return;let r=t.getId(e);return r===1?void 0:r}function gC(e,t){let{needsMask:r,maskTextFn:n,rootId:a,cssCaptured:o}=t,s=gt.parentNode(e),i=s&&s.tagName,l="",d=i==="STYLE"?!0:void 0,u=i==="SCRIPT"?!0:void 0;return u?l="SCRIPT_PLACEHOLDER":o||(l=gt.textContent(e),d&&l&&(l=Nl(l,Ep(t.doc)))),!d&&!u&&l&&r&&(l=n?n(l,gt.parentElement(e)):l.replace(/[\S]/g,"*")),{type:re.Text,textContent:l||"",rootId:a}}function xC(e,t){let{doc:r,blockClass:n,blockSelector:a,inlineStylesheet:o,maskInputOptions:s={},maskInputFn:i,dataURLOptions:l={},inlineImages:d,recordCanvas:u,keepIframeSrcFn:p,newlyAddedElement:c=!1,rootId:f}=t,h=cC(e,n,a),m=sC(e),b={},g=e.attributes.length;for(let v=0;v<g;v++){let S=e.attributes[v];Yy(m,S.name,S.value)||(b[S.name]=Qy(r,m,Sn(S.name),S.value))}if(m==="link"&&o){let v=Array.from(r.styleSheets).find(y=>y.href===e.href),S=null;v&&(S=np(v)),S&&(delete b.rel,delete b.href,b._cssText=S)}if(m==="style"&&e.sheet){let v=np(e.sheet);v&&(e.childNodes.length>1&&(v=nC(v,e)),b._cssText=v)}if(["input","textarea","select"].includes(m)){let v=e.value,S=e.checked;b.type!=="radio"&&b.type!=="checkbox"&&b.type!=="submit"&&b.type!=="button"&&v?b.value=El({element:e,type:Pl(e),tagName:m,value:v,maskInputOptions:s,maskInputFn:i}):S&&(b.checked=S)}if(m==="option"&&(e.selected&&!s.select?b.selected=!0:delete b.selected),m==="dialog"&&e.open&&(b.rr_open_mode=e.matches("dialog:modal")?"modal":"non-modal"),m==="canvas"&&u){if(e.__context==="2d")K1(e)||(b.rr_dataURL=e.toDataURL(l.type,l.quality));else if(!("__context"in e)){let v=e.toDataURL(l.type,l.quality),S=r.createElement("canvas");S.width=e.width,S.height=e.height;let y=S.toDataURL(l.type,l.quality);v!==y&&(b.rr_dataURL=v)}}if(m==="img"&&d){$a||($a=r.createElement("canvas"),uv=$a.getContext("2d"));let v=e,S=v.currentSrc||v.getAttribute("src")||"<unknown-src>",y=v.crossOrigin,w=()=>{v.removeEventListener("load",w);try{$a.width=v.naturalWidth,$a.height=v.naturalHeight,uv.drawImage(v,0,0),b.rr_dataURL=$a.toDataURL(l.type,l.quality)}catch(L){if(v.crossOrigin!=="anonymous"){v.crossOrigin="anonymous",v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w);return}else console.warn(`Cannot inline img src=${S}! Error: ${L}`)}v.crossOrigin==="anonymous"&&(y?b.crossOrigin=y:v.removeAttribute("crossorigin"))};v.complete&&v.naturalWidth!==0?w():v.addEventListener("load",w)}if(["audio","video"].includes(m)){let v=b;v.rr_mediaState=e.paused?"paused":"played",v.rr_mediaCurrentTime=e.currentTime,v.rr_mediaPlaybackRate=e.playbackRate,v.rr_mediaMuted=e.muted,v.rr_mediaLoop=e.loop,v.rr_mediaVolume=e.volume}if(c||(e.scrollLeft&&(b.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(b.rr_scrollTop=e.scrollTop)),h){let{width:v,height:S}=e.getBoundingClientRect();b={class:b.class,rr_width:`${v}px`,rr_height:`${S}px`}}m==="iframe"&&!p(b.src)&&(e.contentDocument||(b.rr_src=b.src),delete b.src);let x;try{customElements.get(m)&&(x=!0)}catch{}return{type:re.Element,tagName:m,attributes:b,childNodes:[],isSVG:dC(e)||void 0,needBlock:h,rootId:f,isCustom:x}}function Ne(e){return e==null?"":e.toLowerCase()}function Zy(e){return e===!0||e==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:e==="all",headMetaDescKeywords:e==="all",headTitleMutations:e==="all"}:e||{}}function vC(e,t){if(t.comment&&e.type===re.Comment)return!0;if(e.type===re.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Rp(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Ne(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Ne(e.attributes.name)==="application-name"||Ne(e.attributes.rel)==="icon"||Ne(e.attributes.rel)==="apple-touch-icon"||Ne(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Ne(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Ne(e.attributes.property).match(/^(og|twitter|fb):/)||Ne(e.attributes.name).match(/^(og|twitter):/)||Ne(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Ne(e.attributes.name)==="robots"||Ne(e.attributes.name)==="googlebot"||Ne(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Ne(e.attributes.name)==="author"||Ne(e.attributes.name)==="generator"||Ne(e.attributes.name)==="framework"||Ne(e.attributes.name)==="publisher"||Ne(e.attributes.name)==="progid"||Ne(e.attributes.property).match(/^article:/)||Ne(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Ne(e.attributes.name)==="google-site-verification"||Ne(e.attributes.name)==="yandex-verification"||Ne(e.attributes.name)==="csrf-token"||Ne(e.attributes.name)==="p:domain_verify"||Ne(e.attributes.name)==="verify-v1"||Ne(e.attributes.name)==="verification"||Ne(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Ga(e,t){let{doc:r,mirror:n,blockClass:a,blockSelector:o,maskTextClass:s,maskTextSelector:i,skipChild:l=!1,inlineStylesheet:d=!0,maskInputOptions:u={},maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h={},inlineImages:m=!1,recordCanvas:b=!1,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v=5e3,onStylesheetLoad:S,stylesheetLoadTimeout:y=5e3,keepIframeSrcFn:w=()=>!1,newlyAddedElement:L=!1,cssCaptured:C=!1}=t,{needsMask:_}=t,{preserveWhiteSpace:I=!0}=t;_||(_=Jy(e,s,i,_===void 0));let D=mC(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,dataURLOptions:h,inlineImages:m,recordCanvas:b,keepIframeSrcFn:w,newlyAddedElement:L,cssCaptured:C});if(!D)return console.warn(e,"not serialized"),null;let A;n.hasNode(e)?A=n.getId(e):vC(D,f)||!I&&D.type===re.Text&&!D.textContent.replace(/^\s+|\s+$/gm,"").length?A=us:A=Ky();let k=Object.assign(D,{id:A});if(n.add(e,k),A===us)return null;g&&g(e);let ke=!l;if(k.type===re.Element){ke=ke&&!k.needBlock,delete k.needBlock;let ue=gt.shadowRoot(e);ue&&as(ue)&&(k.isShadowHost=!0)}if((k.type===re.Document||k.type===re.Element)&&ke){f.headWhitespace&&k.type===re.Element&&k.tagName==="head"&&(I=!1);let ue={doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:l,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w,cssCaptured:!1};if(!(k.type===re.Element&&k.tagName==="textarea"&&k.attributes.value!==void 0)){k.type===re.Element&&k.attributes._cssText!==void 0&&typeof k.attributes._cssText=="string"&&(ue.cssCaptured=!0);for(let be of Array.from(gt.childNodes(e))){let ze=Ga(be,ue);ze&&k.childNodes.push(ze)}}let j=null;if(Mp(e)&&(j=gt.shadowRoot(e)))for(let be of Array.from(gt.childNodes(j))){let ze=Ga(be,ue);ze&&(as(j)&&(ze.isShadow=!0),k.childNodes.push(ze))}}let Ie=gt.parentNode(e);return Ie&&ns(Ie)&&as(Ie)&&(k.isShadow=!0),k.type===re.Element&&k.tagName==="iframe"&&fC(e,()=>{let ue=e.contentDocument;if(ue&&x){let j=Ga(ue,{doc:ue,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w});j&&x(e,j)}},v),k.type===re.Element&&k.tagName==="link"&&typeof k.attributes.rel=="string"&&(k.attributes.rel==="stylesheet"||k.attributes.rel==="preload"&&typeof k.attributes.href=="string"&&Rp(k.attributes.href)==="css")&&pC(e,()=>{if(S){let ue=Ga(e,{doc:r,mirror:n,blockClass:a,blockSelector:o,needsMask:_,maskTextClass:s,maskTextSelector:i,skipChild:!1,inlineStylesheet:d,maskInputOptions:u,maskTextFn:p,maskInputFn:c,slimDOMOptions:f,dataURLOptions:h,inlineImages:m,recordCanvas:b,preserveWhiteSpace:I,onSerialize:g,onIframeLoad:x,iframeLoadTimeout:v,onStylesheetLoad:S,stylesheetLoadTimeout:y,keepIframeSrcFn:w});ue&&S(e,ue)}},y),k}function yC(e,t){let{mirror:r=new ls,blockClass:n="rr-block",blockSelector:a=null,maskTextClass:o="rr-mask",maskTextSelector:s=null,inlineStylesheet:i=!0,inlineImages:l=!1,recordCanvas:d=!1,maskAllInputs:u=!1,maskTextFn:p,maskInputFn:c,slimDOM:f=!1,dataURLOptions:h,preserveWhiteSpace:m,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:y=()=>!1}=t,w=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}:u===!1?{password:!0}:u,L=Zy(f);return Ga(e,{doc:e,mirror:r,blockClass:n,blockSelector:a,maskTextClass:o,maskTextSelector:s,skipChild:!1,inlineStylesheet:i,maskInputOptions:w,maskTextFn:p,maskInputFn:c,slimDOMOptions:L,dataURLOptions:h,inlineImages:l,recordCanvas:d,preserveWhiteSpace:m,onSerialize:b,onIframeLoad:g,iframeLoadTimeout:x,onStylesheetLoad:v,stylesheetLoadTimeout:S,keepIframeSrcFn:y,newlyAddedElement:!1})}var wC=/(max|min)-device-(width|height)/,cv=new RegExp(wC.source,"g"),bC={postcssPlugin:"postcss-custom-selectors",prepare(){return{postcssPlugin:"postcss-custom-selectors",AtRule:function(e){e.params.match(cv)&&(e.params=e.params.replace(cv,"$1-$2"))}}}},SC={postcssPlugin:"postcss-hover-classes",prepare:function(){let e=[];return{Rule:function(t){e.indexOf(t)===-1&&(e.push(t),t.selectors.forEach(function(r){r.includes(":hover")&&(t.selector+=`,
9
+ `+r.replace(/:hover/g,".\\:hover"))}))}}}};function CC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function LC(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var wl={exports:{}},fv;function kC(){if(fv)return wl.exports;fv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return wl.exports=t(),wl.exports.createColors=t,wl.exports}var IC={},_C=Object.freeze(Object.defineProperty({__proto__:null,default:IC},Symbol.toStringTag,{value:"Module"})),gr=LC(_C),Qc,pv;function Pp(){if(pv)return Qc;pv=1;let e=kC(),t=gr;class r extends Error{constructor(a,o,s,i,l,d){super(a),this.name="CssSyntaxError",this.reason=a,l&&(this.file=l),i&&(this.source=i),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),i=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),d=String(l).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(i,l).map((c,f)=>{let h=i+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let b=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
10
+ `+b+u("^")}return" "+p(m)+c}).join(`
11
+ `)}toString(){let a=this.showSourceCode();return a&&(a=`
12
12
 
13
- `+n+`
14
- `),this.name+": "+this.message+n}}return Gc=r,r.default=r,Gc}var wl={},cv;function Rp(){return cv||(cv=1,wl.isClean=Symbol("isClean"),wl.my=Symbol("my")),wl}var Xc,fv;function Yy(){if(fv)return Xc;fv=1;let e={after:`
13
+ `+a+`
14
+ `),this.name+": "+this.message+a}}return Qc=r,r.default=r,Qc}var bl={},mv;function Np(){return mv||(mv=1,bl.isClean=Symbol("isClean"),bl.my=Symbol("my")),bl}var Yc,hv;function ew(){if(hv)return Yc;hv=1;let e={after:`
15
15
  `,beforeClose:`
16
16
  `,beforeComment:`
17
17
  `,beforeDecl:`
18
18
  `,beforeOpen:" ",beforeRule:`
19
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(a){return a[0].toUpperCase()+a.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let i="@"+n.name,s=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?i+=n.raws.afterName:s&&(i+=" "),n.nodes)this.block(n,i+s);else{let l=(n.raws.between||"")+(o?";":"");this.builder(i+s+l,n)}}beforeAfter(n,o){let i;n.type==="decl"?i=this.raw(n,null,"beforeDecl"):n.type==="comment"?i=this.raw(n,null,"beforeComment"):o==="before"?i=this.raw(n,null,"beforeRule"):i=this.raw(n,null,"beforeClose");let s=n.parent,l=0;for(;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
20
- `)){let d=this.raw(n,null,"indent");if(d.length)for(let u=0;u<l;u++)i+=d}return i}block(n,o){let i=this.raw(n,"between","beforeOpen");this.builder(o+i+"{",n,"start");let s;n.nodes&&n.nodes.length?(this.body(n),s=this.raw(n,"after")):s=this.raw(n,"after","emptyBody"),s&&this.builder(s),this.builder("}",n,"end")}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let i=this.raw(n,"semicolon");for(let s=0;s<n.nodes.length;s++){let l=n.nodes[s],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,o!==s||i)}}comment(n){let o=this.raw(n,"left","commentLeft"),i=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+i+"*/",n)}decl(n,o){let i=this.raw(n,"between","colon"),s=n.prop+i+this.rawValue(n,"value");n.important&&(s+=n.raws.important||" !important"),o&&(s+=";"),this.builder(s,n)}document(n){this.body(n)}raw(n,o,i){let s;if(i||(i=o),o&&(s=n.raws[o],typeof s<"u"))return s;let l=n.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[i];let d=n.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[i]<"u")return d.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(n,i);{let u="raw"+t(i);this[u]?s=this[u](d,n):d.walk(f=>{if(s=f.raws[o],typeof s<"u")return!1})}return typeof s>"u"&&(s=e[i]),d.rawCache[i]=s,s}rawBeforeClose(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return o=i.raws.after,o.includes(`
21
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let i;return n.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
22
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(n,o){let i;return n.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
23
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(n){let o;return n.walk(i=>{if(i.type!=="decl"&&(o=i.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(n){let o;return n.walk(i=>{if(i.nodes&&(i.parent!==n||n.first!==i)&&typeof i.raws.before<"u")return o=i.raws.before,o.includes(`
24
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(i=>{let s=i.parent;if(s&&s!==n&&s.parent&&s.parent===n&&typeof i.raws.before<"u"){let l=i.raws.before.split(`
25
- `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(n,o){let i=n[o],s=n.raws[o];return s&&s.value===i?s.raw:i}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return Xc=r,r.default=r,Xc}var Kc,pv;function jl(){if(pv)return Kc;pv=1;let e=Yy();function t(r,a){new e(a).stringify(r)}return Kc=t,t.default=t,Kc}var Qc,mv;function Vl(){if(mv)return Qc;mv=1;let{isClean:e,my:t}=Rp(),r=_p(),a=Yy(),n=jl();function o(s,l){let d=new s.constructor;for(let u in s){if(!Object.prototype.hasOwnProperty.call(s,u)||u==="proxyCache")continue;let f=s[u],c=typeof f;u==="parent"&&c==="object"?l&&(d[u]=l):u==="source"?d[u]=f:Array.isArray(f)?d[u]=f.map(p=>o(p,d)):(c==="object"&&f!==null&&(f=o(f)),d[u]=f)}return d}class i{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in l)if(d==="nodes"){this.nodes=[];for(let u of l[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=l[d]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let d=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let d in l)this[d]=l[d];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let d=o(this);for(let u in l)d[u]=l[u];return d}cloneAfter(l={}){let d=this.clone(l);return this.parent.insertAfter(this,d),d}cloneBefore(l={}){let d=this.clone(l);return this.parent.insertBefore(this,d),d}error(l,d={}){if(this.source){let{end:u,start:f}=this.rangeBy(d);return this.source.input.error(l,{column:f.column,line:f.line},{column:u.column,line:u.line},d)}return new r(l)}getProxyProcessor(){return{get(l,d){return d==="proxyOf"?l:d==="root"?()=>l.root().toProxy():l[d]},set(l,d,u){return l[d]===u||(l[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,d){let u=this.source.start;if(l.index)u=this.positionInside(l.index,d);else if(l.word){d=this.toString();let f=d.indexOf(l.word);f!==-1&&(u=this.positionInside(f,d))}return u}positionInside(l,d){let u=d||this.toString(),f=this.source.start.column,c=this.source.start.line;for(let p=0;p<l;p++)u[p]===`
26
- `?(f=1,c+=1):f+=1;return{column:f,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let f=this.toString(),c=f.indexOf(l.word);c!==-1&&(d=this.positionInside(c,f),u=this.positionInside(c+l.word.length,f))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?u={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?u=this.positionInside(l.endIndex):l.index&&(u=this.positionInside(l.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(l,d){return new a().raw(this,l,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let d=this,u=!1;for(let f of l)f===this?u=!0:u?(this.parent.insertAfter(d,f),d=f):this.parent.insertBefore(d,f);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,d){let u={},f=d==null;d=d||new Map;let c=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let h=this[p];if(Array.isArray(h))u[p]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[p]=h.toJSON(null,d);else if(p==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[p]={end:h.end,inputId:m,start:h.start}}else u[p]=h}return f&&(u.inputs=[...d.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,u=>{d+=u}),d}warn(l,d,u){let f={node:this};for(let c in u)f[c]=u[c];return l.warn(d,f)}get proxyOf(){return this}}return Qc=i,i.default=i,Qc}var Yc,hv;function Gl(){if(hv)return Yc;hv=1;let e=Vl();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Yc=t,t.default=t,Yc}var Jc,gv;function ML(){if(gv)return Jc;gv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Jc={nanoid:(a=21)=>{let n="",o=a;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(a,n=21)=>(o=n)=>{let i="",s=o;for(;s--;)i+=a[Math.random()*a.length|0];return i}},Jc}var Zc,xv;function Jy(){if(xv)return Zc;xv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{existsSync:r,readFileSync:a}=gr,{dirname:n,join:o}=gr;function i(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class s{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let f=u.map?u.map.prev:void 0,c=this.loadMap(u.from,f);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,p=/^data:application\/json,/;if(c.test(d)||p.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||f.test(d))return i(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let f=d.lastIndexOf(u.pop()),c=d.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(f,c)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,a(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let f=u(d);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return d&&(f=o(n(d),f)),this.loadFile(f)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Zc=s,s.default=s,Zc}var ef,vv;function Xl(){if(vv)return ef;vv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{fileURLToPath:r,pathToFileURL:a}=gr,{isAbsolute:n,resolve:o}=gr,{nanoid:i}=ML(),s=gr,l=_p(),d=Jy(),u=Symbol("fromOffsetCache"),f=!!(e&&t),c=!!(o&&n);class p{constructor(m,S={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,S.from&&(!c||/^\w+:\/\//.test(S.from)||n(S.from)?this.file=S.from:this.file=o(S.from)),c&&f){let g=new d(this.css,S);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(m,S,g,x={}){let v,b,w;if(S&&typeof S=="object"){let L=S,C=g;if(typeof L.offset=="number"){let M=this.fromOffset(L.offset);S=M.line,g=M.col}else S=L.line,g=L.column;if(typeof C.offset=="number"){let M=this.fromOffset(C.offset);b=M.line,w=M.col}else b=C.line,w=C.column}else if(!g){let L=this.fromOffset(S);S=L.line,g=L.col}let y=this.origin(S,g,b,w);return y?v=new l(m,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,x.plugin):v=new l(m,b===void 0?S:{column:g,line:S},b===void 0?g:{column:w,line:b},this.css,this.file,x.plugin),v.input={column:g,endColumn:w,endLine:b,line:S,source:this.css},this.file&&(a&&(v.input.url=a(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let S,g;if(this[u])g=this[u];else{let v=this.css.split(`
27
- `);g=new Array(v.length);let b=0;for(let w=0,y=v.length;w<y;w++)g[w]=b,b+=v[w].length+1;this[u]=g}S=g[g.length-1];let x=0;if(m>=S)x=g.length-1;else{let v=g.length-2,b;for(;x<v;)if(b=x+(v-x>>1),m<g[b])v=b-1;else if(m>=g[b+1])x=b+1;else{x=b;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,S,g,x){if(!this.map)return!1;let v=this.map.consumer(),b=v.originalPositionFor({column:S,line:m});if(!b.source)return!1;let w;typeof g=="number"&&(w=v.originalPositionFor({column:x,line:g}));let y;n(b.source)?y=a(b.source):y=new URL(b.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:b.column,endColumn:w&&w.column,endLine:w&&w.line,line:b.line,url:y.toString()};if(y.protocol==="file:")if(r)L.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let C=v.sourceContentFor(b.source);return C&&(L.source=C),L}toJSON(){let m={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(m[S]=this[S]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return ef=p,p.default=p,s&&s.registerInput&&s.registerInput(p),ef}var tf,yv;function Zy(){if(yv)return tf;yv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{dirname:r,relative:a,resolve:n,sep:o}=gr,{pathToFileURL:i}=gr,s=Xl(),l=!!(e&&t),d=!!(r&&n&&a&&o);class u{constructor(c,p,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=p,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let p=`
19
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,i=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:i&&(s+=" "),a.nodes)this.block(a,s+i);else{let l=(a.raws.between||"")+(o?";":"");this.builder(s+i+l,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let i=a.parent,l=0;for(;i&&i.type!=="root";)l+=1,i=i.parent;if(s.includes(`
20
+ `)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<l;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let i;a.nodes&&a.nodes.length?(this.body(a),i=this.raw(a,"after")):i=this.raw(a,"after","emptyBody"),i&&this.builder(i),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let i=0;i<a.nodes.length;i++){let l=a.nodes[i],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,o!==i||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),i=a.prop+s+this.rawValue(a,"value");a.important&&(i+=a.raws.important||" !important"),o&&(i+=";"),this.builder(i,a)}document(a){this.body(a)}raw(a,o,s){let i;if(s||(s=o),o&&(i=a.raws[o],typeof i<"u"))return i;let l=a.parent;if(s==="before"&&(!l||l.type==="root"&&l.first===a||l&&l.type==="document"))return"";if(!l)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?i=this[u](d,a):d.walk(p=>{if(i=p.raws[o],typeof i<"u")return!1})}return typeof i>"u"&&(i=e[s]),d.rawCache[s]=i,i}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
21
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(i=>{if(typeof i.raws.before<"u")return s=i.raws.before,s.includes(`
22
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(i=>{if(typeof i.raws.before<"u")return s=i.raws.before,s.includes(`
23
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
24
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let i=s.parent;if(i&&i!==a&&i.parent&&i.parent===a&&typeof s.raws.before<"u"){let l=s.raws.before.split(`
25
+ `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],i=a.raws[o];return i&&i.value===s?i.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return Yc=r,r.default=r,Yc}var Jc,gv;function Vl(){if(gv)return Jc;gv=1;let e=ew();function t(r,n){new e(n).stringify(r)}return Jc=t,t.default=t,Jc}var Zc,xv;function Gl(){if(xv)return Zc;xv=1;let{isClean:e,my:t}=Np(),r=Pp(),n=ew(),a=Vl();function o(i,l){let d=new i.constructor;for(let u in i){if(!Object.prototype.hasOwnProperty.call(i,u)||u==="proxyCache")continue;let p=i[u],c=typeof p;u==="parent"&&c==="object"?l&&(d[u]=l):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in l)if(d==="nodes"){this.nodes=[];for(let u of l[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=l[d]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let d=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let d in l)this[d]=l[d];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let d=o(this);for(let u in l)d[u]=l[u];return d}cloneAfter(l={}){let d=this.clone(l);return this.parent.insertAfter(this,d),d}cloneBefore(l={}){let d=this.clone(l);return this.parent.insertBefore(this,d),d}error(l,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(l,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(l)}getProxyProcessor(){return{get(l,d){return d==="proxyOf"?l:d==="root"?()=>l.root().toProxy():l[d]},set(l,d,u){return l[d]===u||(l[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,d){let u=this.source.start;if(l.index)u=this.positionInside(l.index,d);else if(l.word){d=this.toString();let p=d.indexOf(l.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(l,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<l;f++)u[f]===`
26
+ `?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let p=this.toString(),c=p.indexOf(l.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+l.word.length,p))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?u={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?u=this.positionInside(l.endIndex):l.index&&(u=this.positionInside(l.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(l,d){return new n().raw(this,l,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let d=this,u=!1;for(let p of l)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=a){l.stringify&&(l=l.stringify);let d="";return l(this,u=>{d+=u}),d}warn(l,d,u){let p={node:this};for(let c in u)p[c]=u[c];return l.warn(d,p)}get proxyOf(){return this}}return Zc=s,s.default=s,Zc}var ef,vv;function Xl(){if(vv)return ef;vv=1;let e=Gl();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return ef=t,t.default=t,ef}var tf,yv;function MC(){if(yv)return tf;yv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return tf={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",i=o;for(;i--;)s+=n[Math.random()*n.length|0];return s}},tf}var rf,wv;function tw(){if(wv)return rf;wv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{existsSync:r,readFileSync:n}=gr,{dirname:a,join:o}=gr;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class i{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return rf=i,i.default=i,rf}var nf,bv;function Kl(){if(bv)return nf;bv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{fileURLToPath:r,pathToFileURL:n}=gr,{isAbsolute:a,resolve:o}=gr,{nanoid:s}=MC(),i=gr,l=Pp(),d=tw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,b={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,b.from&&(!c||/^\w+:\/\//.test(b.from)||a(b.from)?this.file=b.from:this.file=o(b.from)),c&&p){let g=new d(this.css,b);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,b,g,x={}){let v,S,y;if(b&&typeof b=="object"){let L=b,C=g;if(typeof L.offset=="number"){let _=this.fromOffset(L.offset);b=_.line,g=_.col}else b=L.line,g=L.column;if(typeof C.offset=="number"){let _=this.fromOffset(C.offset);S=_.line,y=_.col}else S=C.line,y=C.column}else if(!g){let L=this.fromOffset(b);b=L.line,g=L.col}let w=this.origin(b,g,S,y);return w?v=new l(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new l(m,S===void 0?b:{column:g,line:b},S===void 0?g:{column:y,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:y,endLine:S,line:b,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let b,g;if(this[u])g=this[u];else{let v=this.css.split(`
27
+ `);g=new Array(v.length);let S=0;for(let y=0,w=v.length;y<w;y++)g[y]=S,S+=v[y].length+1;this[u]=g}b=g[g.length-1];let x=0;if(m>=b)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,b,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:b,line:m});if(!S.source)return!1;let y;typeof g=="number"&&(y=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let L={column:S.column,endColumn:y&&y.column,endLine:y&&y.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)L.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=v.sourceContentFor(S.source);return C&&(L.source=C),L}toJSON(){let m={};for(let b of["hasBOM","css","file","id"])this[b]!=null&&(m[b]=this[b]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return nf=f,f.default=f,i&&i.registerInput&&i.registerInput(f),nf}var af,Sv;function rw(){if(Sv)return af;Sv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=gr,{dirname:r,relative:n,resolve:a,sep:o}=gr,{pathToFileURL:s}=gr,i=Kl(),l=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
28
28
  `;this.css.includes(`\r
29
- `)&&(p=`\r
30
- `),this.css+=p+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let p=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,p,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let p=this.root.nodes.length-1;p>=0;p--)c=this.root.nodes[p],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(p)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,p=>{c+=p}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,p=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},S,g;this.stringify(this.root,(x,v,b)=>{if(this.css+=x,v&&b!=="end"&&(m.generated.line=c,m.generated.column=p-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),S=x.match(/\n/g),S?(c+=S.length,g=x.lastIndexOf(`
31
- `),p=x.length-g):p+=x.length,v&&b!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=p-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=p-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let p=this.memoizedPaths.get(c);if(p)return p;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(n(h,this.mapOpts.annotation)));let m=a(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let p=c.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let c=new s(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let p=this.memoizedFileURLs.get(c);if(p)return p;if(i){let h=i(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let p=this.memoizedURLs.get(c);if(p)return p;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return tf=u,tf}var rf,wv;function Kl(){if(wv)return rf;wv=1;let e=Vl();class t extends e{constructor(a){super(a),this.type="comment"}}return rf=t,t.default=t,rf}var af,Sv;function ja(){if(Sv)return af;Sv=1;let{isClean:e,my:t}=Rp(),r=Gl(),a=Kl(),n=Vl(),o,i,s,l;function d(c){return c.map(p=>(p.nodes&&(p.nodes=d(p.nodes)),delete p.source,p))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let p of c.proxyOf.nodes)u(p)}class f extends n{append(...p){for(let h of p){let m=this.normalize(h,this.last);for(let S of m)this.proxyOf.nodes.push(S)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,S;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],S=p(this.proxyOf.nodes[m],m),S!==!1);)this.indexes[h]+=1;return delete this.indexes[h],S}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>p[h](...m.map(S=>typeof S=="function"?(g,x)=>S(g.toProxy(),x):S)):h==="every"||h==="some"?m=>p[h]((S,...g)=>m(S.toProxy(),...g)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,m){return p[h]===m||(p[h]=m,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let m=this.index(p),S=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(p);for(let x of S)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+S.length);return this.markDirty(),this}insertBefore(p,h){let m=this.index(p),S=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],S).reverse();m=this.index(p);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=d(o(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new r(p)]}else if(p.selector)p=[new i(p)];else if(p.name)p=[new s(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(S=>(S[t]||f.rebuild(S),S=S.proxyOf,S.parent&&S.parent.removeChild(S),S[e]&&u(S),typeof S.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(S.raws.before=h.raws.before.replace(/\S/g,"")),S.parent=this.proxyOf,S))}prepend(...p){p=p.reverse();for(let h of p){let m=this.normalize(h,this.first,"prepend").reverse();for(let S of m)this.proxyOf.nodes.unshift(S);for(let S in this.indexes)this.indexes[S]=this.indexes[S]+m.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=p&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(p,h,m){return m||(m=h,h={}),this.walkDecls(S=>{h.props&&!h.props.includes(S.prop)||h.fast&&!S.value.includes(h.fast)||(S.value=S.value.replace(p,m))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,m)=>{let S;try{S=p(h,m)}catch(g){throw h.addToError(g)}return S!==!1&&h.walk&&(S=h.walk(p)),S})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="atrule"&&p.test(m.name))return h(m,S)}):this.walk((m,S)=>{if(m.type==="atrule"&&m.name===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="atrule")return h(m,S)}))}walkComments(p){return this.walk((h,m)=>{if(h.type==="comment")return p(h,m)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="decl"&&p.test(m.prop))return h(m,S)}):this.walk((m,S)=>{if(m.type==="decl"&&m.prop===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="decl")return h(m,S)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="rule"&&p.test(m.selector))return h(m,S)}):this.walk((m,S)=>{if(m.type==="rule"&&m.selector===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="rule")return h(m,S)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=c=>{o=c},f.registerRule=c=>{i=c},f.registerAtRule=c=>{s=c},f.registerRoot=c=>{l=c},af=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,i.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,a.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(p=>{f.rebuild(p)})},af}var nf,bv;function Ep(){if(bv)return nf;bv=1;let e=ja(),t,r;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},nf=a,a.default=a,nf}var of,Cv;function ew(){if(Cv)return of;Cv=1;let e={};return of=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},of}var sf,Lv;function tw(){if(Lv)return sf;Lv=1;class e{constructor(r,a={}){if(this.type="warning",this.text=r,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return sf=e,e.default=e,sf}var lf,kv;function Pp(){if(kv)return lf;kv=1;let e=tw();class t{constructor(a,n,o){this.processor=a,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(a,n);return this.messages.push(o),o}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}return lf=t,t.default=t,lf}var uf,Iv;function _L(){if(Iv)return uf;Iv=1;let e=39,t=34,r=92,a=47,n=10,o=32,i=12,s=9,l=13,d=91,u=93,f=40,c=41,p=123,h=125,m=59,S=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return uf=function(C,M={}){let I=C.css.valueOf(),D=M.ignoreErrors,A,k,ke,Ie,ue,j,Se,ze,be,we,wr=I.length,E=0,vt=[],yt=[];function Ia(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function Sr(X){if(yt.length)return yt.pop();if(E>=wr)return;let _e=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case n:case o:case s:case l:case i:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===n||A===s||A===l||A===i);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case p:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case f:{if(ze=vt.length?vt.pop()[1]:"",be=I.charCodeAt(E+1),ze==="url"&&be!==e&&be!==t&&be!==o&&be!==n&&be!==s&&be!==i&&be!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||_e){k=E;break}else Qe("bracket");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||w.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||_e){k=E+1;break}else Qe("string");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==a&&A!==o&&A!==n&&A!==s&&A!==l&&A!==i&&(k+=1,y.test(I.charAt(k)))){for(;y.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===a&&I.charCodeAt(E+1)===S?(k=I.indexOf("*/",E+2)+1,k===0&&(D||_e?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(b.lastIndex=E+1,b.test(I),b.lastIndex===0?k=I.length-1:k=b.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function br(X){yt.push(X)}return{back:br,endOfFile:it,nextToken:Sr,position:Ia}},uf}var df,Mv;function Tp(){if(Mv)return df;Mv=1;let e=ja();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return df=t,t.default=t,e.registerAtRule(t),df}var cf,_v;function fs(){if(_v)return cf;_v=1;let e=ja(),t,r;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,s){let l=super.normalize(o);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let d of l)d.raws.before=i.raws.before}return l}removeChild(o,i){let s=this.index(o);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},cf=a,a.default=a,e.registerRoot(a),cf}var ff,Rv;function rw(){if(Rv)return ff;Rv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
32
- `," "];return e.split(t,r)},split(t,r,a){let n=[],o="",i=!1,s=0,l=!1,d="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:l?f===d&&(l=!1):f==='"'||f==="'"?(l=!0,d=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&r.includes(f)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=f;return(a||o!=="")&&n.push(o.trim()),n}};return ff=e,e.default=e,ff}var pf,Ev;function Np(){if(Ev)return pf;Ev=1;let e=ja(),t=rw();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(i)}}return pf=r,r.default=r,e.registerRule(r),pf}var mf,Pv;function RL(){if(Pv)return mf;Pv=1;let e=Gl(),t=_L(),r=Kl(),a=Tp(),n=fs(),o=Np(),i={empty:!0,space:!0};function s(d){for(let u=d.length-1;u>=0;u--){let f=d[u],c=f[3]||f[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let f=new a;f.name=u[1].slice(1),f.name===""&&this.unnamedAtrule(f,u),this.init(f,u[2]);let c,p,h,m=!1,S=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){f.source.end=this.getPosition(u[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){S=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,p=g[h];p&&p[0]==="space";)p=g[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(f.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(f,"params",g),m&&(u=g[g.length-1],f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),S&&(f.nodes=[],this.current=f)}checkMissedSemicolon(u){let f=this.colon(u);if(f===!1)return;let c=0,p;for(let h=f-1;h>=0&&(p=u[h],!(p[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(u){let f=0,c,p,h;for(let[m,S]of u.entries()){if(c=S,p=c[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let f=new r;this.init(f,u[2]),f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let p=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,f){let c=new e;this.init(c,u[0][2]);let p=u[u.length-1];for(p[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(p[3]||p[2]||s(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],S;for(;u.length&&(S=u[0][0],!(S!=="space"&&S!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),b="";for(let w=x;w>0;w--){let y=v[w][0];if(b.trim().indexOf("!")===0&&y!=="space")break;b=v.pop()[1]+b}b.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=b,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let f=new o;this.init(f,u[2]),f.selector="",f.raws.between="",this.current=f}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let f=this.input.fromOffset(u);return{column:f.col,line:f.line,offset:u}}init(u,f){this.current.push(u),u.source={input:this.input,start:this.getPosition(f)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let f=!1,c=null,p=!1,h=null,m=[],S=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(S&&p&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(p){this.decl(g,S);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),f=!0;break}else c===":"&&(p=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(h),f&&p){if(!S)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,S)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,f,c,p){let h,m,S=c.length,g="",x=!0,v,b;for(let w=0;w<S;w+=1)h=c[w],m=h[0],m==="space"&&w===S-1&&!p?x=!1:m==="comment"?(b=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!i[b]&&!i[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let w=c.reduce((y,L)=>y+L[1],"");u.raws[f]={raw:w,value:g}}u[f]=g}rule(u){u.pop();let f=new o;this.init(f,u[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(f,"selector",u),this.current=f}spacesAndCommentsFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let f,c="";for(;u.length&&(f=u[0][0],!(f!=="space"&&f!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],f==="space");)c=u.pop()[1]+c;return c}stringFrom(u,f){let c="";for(let p=f;p<u.length;p++)c+=u[p][1];return u.splice(f,u.length-f),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return mf=l,mf}var hf,Tv;function Ap(){if(Tv)return hf;Tv=1;let e=ja(),t=RL(),r=Xl();function a(n,o){let i=new r(n,o),s=new t(i);try{s.parse()}catch(l){throw l}return s.root}return hf=a,a.default=a,e.registerParse(a),hf}var gf,Nv;function aw(){if(Nv)return gf;Nv=1;let{isClean:e,my:t}=Rp(),r=Zy(),a=jl(),n=ja(),o=Ep(),i=ew(),s=Pp(),l=Ap(),d=fs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(b){return typeof b=="object"&&typeof b.then=="function"}function m(b){let w=!1,y=u[b.type];return b.type==="decl"?w=b.prop.toLowerCase():b.type==="atrule"&&(w=b.name.toLowerCase()),w&&b.append?[y,y+"-"+w,p,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:b.append?[y,p,y+"Exit"]:[y,y+"Exit"]}function S(b){let w;return b.type==="document"?w=["Document",p,"DocumentExit"]:b.type==="root"?w=["Root",p,"RootExit"]:w=m(b),{eventIndex:0,events:w,iterator:0,node:b,visitorIndex:0,visitors:[]}}function g(b){return b[e]=!1,b.nodes&&b.nodes.forEach(w=>g(w)),b}let x={};class v{constructor(w,y,L){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof s)C=g(y.root),y.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=y.map);else{let M=l;L.syntax&&(M=L.syntax.parse),L.parser&&(M=L.parser),M.parse&&(M=M.parse);try{C=M(y,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&n.rebuild(C)}this.result=new s(w,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let L=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=L.postcssPlugin,w.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let L in y){if(!f[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof y[L]=="object")for(let C in y[L])C==="*"?w(y,L,y[L][C]):w(y,L+"-"+C.toLowerCase(),y[L][C]);else typeof y[L]=="function"&&w(y,L,y[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],L=this.runOnRoot(y);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[S(w)];for(;y.length>0;){let L=this.visitTick(y);if(h(L))try{await L}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,L]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>L(M,this.helpers));await Promise.all(C)}else await L(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(L=>w.Once(L,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[L,C]of w){this.result.lastPlugin=L;let M;try{M=C(y,this.helpers)}catch(I){throw this.handleError(I,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:L,visitors:C}=y;if(L.type!=="root"&&L.type!=="document"&&!L.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[I,D]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(y.iterator!==0){let I=y.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,w.push(S(D));return}y.iterator=0,delete L.indexes[I]}let M=y.events;for(;y.eventIndex<M.length;){let I=M[y.eventIndex];if(y.eventIndex+=1,I===p){L.nodes&&L.nodes.length&&(L[e]=!0,y.iterator=L.getIterator());return}else if(this.listeners[I]){y.visitors=this.listeners[I];return}}w.pop()}walkSync(w){w[e]=!0;let y=m(w);for(let L of y)if(L===p)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=b=>{x=b},gf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),gf}var xf,Av;function EL(){if(Av)return xf;Av=1;let e=Zy(),t=jl(),r=ew(),a=Ap(),n=Pp();class o{constructor(s,l,d){l=l.toString(),this.stringified=!1,this._processor=s,this._css=l,this._opts=d,this._map=void 0;let u,f=t;this.result=new n(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let p=new e(f,u,this._opts,l);if(p.isMap()){let[h,m]=p.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,l){return this.async().then(s,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,l=a;try{s=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return xf=o,o.default=o,xf}var vf,Dv;function PL(){if(Dv)return vf;Dv=1;let e=EL(),t=aw(),r=Ep(),a=fs();class n{constructor(i=[]){this.version="8.4.38",this.plugins=this.normalize(i)}normalize(i){let s=[];for(let l of i)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))s=s.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)s.push(l);else if(typeof l=="function")s.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return s}process(i,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new e(this,i,s):new t(this,i,s)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return vf=n,n.default=n,a.registerProcessor(n),r.registerProcessor(n),vf}var yf,Ov;function TL(){if(Ov)return yf;Ov=1;let e=Gl(),t=Jy(),r=Kl(),a=Tp(),n=Xl(),o=fs(),i=Np();function s(l,d){if(Array.isArray(l))return l.map(c=>s(c));let{inputs:u,...f}=l;if(u){d=[];for(let c of u){let p={...c,__proto__:n.prototype};p.map&&(p.map={...p.map,__proto__:t.prototype}),d.push(p)}}if(f.nodes&&(f.nodes=l.nodes.map(c=>s(c,d))),f.source){let{inputId:c,...p}=f.source;f.source=p,c!=null&&(f.source.input=d[c])}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new i(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new a(f);throw new Error("Unknown node type: "+l.type)}return yf=s,s.default=s,yf}var wf,Fv;function NL(){if(Fv)return wf;Fv=1;let e=_p(),t=Gl(),r=aw(),a=ja(),n=PL(),o=jl(),i=TL(),s=Ep(),l=tw(),d=Kl(),u=Tp(),f=Pp(),c=Xl(),p=Ap(),h=rw(),m=Np(),S=fs(),g=Vl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return x.plugin=function(b,w){let y=!1;function L(...M){console&&console.warn&&!y&&(y=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
33
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(b+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
34
- https://www.w3ctech.com/topic/2226`));let I=w(...M);return I.postcssPlugin=b,I.postcssVersion=new n().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(M,I,D){return x([L(D)]).process(M,I)},L},x.stringify=o,x.parse=p,x.fromJSON=i,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new S(v),x.document=v=>new s(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=a,x.Processor=n,x.Document=s,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=f,x.Input=c,x.Rule=m,x.Root=S,x.Node=g,r.registerPostcss(x),wf=x,x.default=x,wf}var AL=NL(),Oe=bL(AL);Oe.stringify;Oe.fromJSON;Oe.plugin;Oe.parse;Oe.list;Oe.document;Oe.comment;Oe.atRule;Oe.rule;Oe.decl;Oe.root;Oe.CssSyntaxError;Oe.Declaration;Oe.Container;Oe.Processor;Oe.Document;Oe.Comment;Oe.Warning;Oe.AtRule;Oe.Result;Oe.Input;Oe.Rule;Oe.Root;Oe.Node;var Bv={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 DL(e){let t=Bv[e.tagName]?Bv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Ql(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let a=e;try{a=Oe([wL,SL]).process(e).css}catch(n){console.warn("Failed to adapt css for replay",n)}return t?.stylesWithHoverClass.set(e,a),a}function zv(){return{stylesWithHoverClass:new Map}}var OL="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Uv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",nw=new WeakSet;function FL(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function BL(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(nw.has(e.doc)&&FL(t.frameElement)))throw new Error(OL)}function zL(e,t,r,a){let n=[];for(let l of e.childNodes)l.type===re.Text&&n.push(l);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>n.length;)o.splice(-2,2,o.slice(-2).join(""));let i="";r&&(i=Ql(o.join(""),a));let s=0;for(let l=0;l<n.length&&l!==o.length;l++){let d=n[l];if(!r)d.textContent=o[l];else if(l<o.length-1){let u=s,f=o[l+1].length;f=Math.min(f,30);let c=!1;for(;f>2;f--){let p=o[l+1].substring(0,f),h=i.substring(s).indexOf(p);if(c=h!==-1,c){u+=h;break}}c||(u+=o[l].length),d.textContent=i.substring(s,u),s=u}else d.textContent=i.substring(s)}}function UL(e,t,r,a){let{doc:n,hackCss:o,cache:i}=a;e.childNodes.length?zL(e,r,o,i):(o&&(r=Ql(r,i)),t.appendChild(n.createTextNode(r)))}function qL(e,t){var r;let{doc:a,hackCss:n,cache:o}=t;switch(e.type){case re.Document:return a.implementation.createDocument(null,"",null);case re.DocumentType:return a.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{let i=DL(e),s;e.isSVG?s=a.createElementNS("http://www.w3.org/2000/svg",i):(e.isCustom&&((r=a.defaultView)!=null&&r.customElements)&&!a.defaultView.customElements.get(e.tagName)&&a.defaultView.customElements.define(e.tagName,class extends a.defaultView.HTMLElement{}),s=a.createElement(i));let l={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(i==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){l[d]=u;continue}if(typeof u=="string"){if(i==="style"&&d==="_cssText"){UL(e,s,u,t);continue}else if(i==="textarea"&&d==="value"){s.appendChild(a.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")s.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")s.setAttribute("_"+d,u.toString());else if(i==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){s.setAttribute("csp-content",u.toString());continue}else i==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||i==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Ip(e.attributes.href)==="js"||(i==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?s.setAttribute("rrweb-original-srcset",e.attributes.srcset):s.setAttribute(d,u.toString()))}catch{}}}for(let d in l){let u=l[d];if(i==="canvas"&&d==="rr_dataURL"){let f=a.createElement("img");f.onload=()=>{let c=s.getContext("2d");c&&c.drawImage(f,0,0,f.width,f.height)},f.src=u.toString(),s.RRNodeType&&(s.rr_dataURL=u.toString())}else if(i==="img"&&d==="rr_dataURL"){let f=s;f.currentSrc.startsWith("data:")||(f.setAttribute("rrweb-original-src",e.attributes.src),f.src=u.toString())}if(d==="rr_width")s.style.setProperty("width",u.toString());else if(d==="rr_height")s.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")s.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":s.play().catch(f=>console.warn("media playback error",f));break;case"paused":s.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?s.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?s.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?s.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?s.volume=u:d==="rr_open_mode"&&s.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!s.shadowRoot)s.attachShadow({mode:"open"});else for(;s.shadowRoot.firstChild;)s.shadowRoot.removeChild(s.shadowRoot.firstChild);return s}case re.Text:return e.isStyle&&n?a.createTextNode(Ql(e.textContent,o)):a.createTextNode(e.textContent);case re.CDATA:return a.createCDATASection(e.textContent);case re.Comment:return a.createComment(e.textContent);default:return null}}function os(e,t){let{doc:r,mirror:a,skipChild:n=!1,hackCss:o=!0,afterAppend:i,cache:s}=t;if(a.has(e.id)){let d=a.getNode(e.id),u=a.getMeta(d);if(KC(u,e))return a.getNode(e.id)}let l=qL(e,{doc:r,hackCss:o,cache:s});if(!l)return null;if(e.rootId&&a.getNode(e.rootId)!==r&&a.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.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),a.add(l,e),(e.type===re.Document||e.type===re.Element)&&!n)for(let d of e.childNodes){let u=os(d,{doc:r,mirror:a,skipChild:!1,hackCss:o,afterAppend:i,cache:s});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&kp(l)&&l.shadowRoot)l.shadowRoot.appendChild(u);else if(e.type===re.Document&&d.type==re.Element){let f=u,c=null;f.childNodes.forEach(p=>{p.nodeName==="BODY"&&(c=p)}),c?(f.removeChild(c),l.appendChild(u),f.appendChild(c)):l.appendChild(u)}else l.appendChild(u);i&&i(u,d.id)}return l}function $L(e,t){function r(a){t(a)}for(let a of e.getIds())e.has(a)&&r(e.getNode(a))}function HL(e,t){let r=t.getMeta(e);if(r?.type!==re.Element)return;let a=e;for(let n in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,n)&&n.startsWith("rr_")))continue;let o=r.attributes[n];n==="rr_scrollLeft"&&(a.scrollLeft=o),n==="rr_scrollTop"&&(a.scrollTop=o)}}function WL(e,t){BL(t);let{doc:r,onVisit:a,hackCss:n=!0,afterAppend:o,cache:i,mirror:s=new ls}=t,l=os(e,{doc:r,mirror:s,skipChild:!1,hackCss:n,afterAppend:o,cache:i});return $L(s,d=>{a&&a(d),HL(d,s)}),l}function jL(e){var t;if(!e.root.isConnected)throw new Error(Uv);let r=e.root.ownerDocument.createElement("iframe");for(let[n,o]of Object.entries(e.iframeAttributes||{}))n!=="sandbox"&&r.setAttribute(n,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let a=r.contentDocument;if(!a||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Uv);return nw.add(a),r}var VL=Object.defineProperty,GL=(e,t,r)=>t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t,r)=>GL(e,typeof t!="symbol"?t+"":t,r),XL=Object.defineProperty,KL=(e,t,r)=>t in e?XL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qv=(e,t,r)=>KL(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var QL=class{constructor(){qv(this,"idNodeMap",new Map),qv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function YL(){return new QL}function JL(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ZL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function a(){return this instanceof a?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,n.get?n:{enumerable:!0,get:function(){return e[a]}})}),r}var Sl={exports:{}},$v;function e1(){if($v)return Sl.exports;$v=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Sl.exports=t(),Sl.exports.createColors=t,Sl.exports}var t1={},r1=Object.freeze(Object.defineProperty({__proto__:null,default:t1},Symbol.toStringTag,{value:"Module"})),xr=ZL(r1),Sf,Hv;function Dp(){if(Hv)return Sf;Hv=1;let e=e1(),t=xr;class r extends Error{constructor(n,o,i,s,l,d){super(n),this.name="CssSyntaxError",this.reason=n,l&&(this.file=l),s&&(this.source=s),d&&(this.plugin=d),typeof o<"u"&&typeof i<"u"&&(typeof o=="number"?(this.line=o,this.column=i):(this.line=o.line,this.column=o.column,this.endLine=i.line,this.endColumn=i.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(n){if(!this.source)return"";let o=this.source;n==null&&(n=e.isColorSupported),t&&n&&(o=t(o));let i=o.split(/\r?\n/),s=Math.max(this.line-3,0),l=Math.min(this.line+2,i.length),d=String(l).length,u,f;if(n){let{bold:c,gray:p,red:h}=e.createColors(!0);u=m=>c(h(m)),f=m=>p(m)}else u=f=c=>c;return i.slice(s,l).map((c,p)=>{let h=s+1+p,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let S=f(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+f(m)+c+`
35
- `+S+u("^")}return" "+f(m)+c}).join(`
36
- `)}toString(){let n=this.showSourceCode();return n&&(n=`
37
-
38
- `+n+`
39
- `),this.name+": "+this.message+n}}return Sf=r,r.default=r,Sf}var bl={},Wv;function Op(){return Wv||(Wv=1,bl.isClean=Symbol("isClean"),bl.my=Symbol("my")),bl}var bf,jv;function ow(){if(jv)return bf;jv=1;let e={after:`
29
+ `)&&(f=`\r
30
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=x.match(/\n/g),b?(c+=b.length,g=x.lastIndexOf(`
31
+ `),f=x.length-g):f+=x.length,v&&S!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new i(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return af=u,af}var of,Cv;function Ql(){if(Cv)return of;Cv=1;let e=Gl();class t extends e{constructor(n){super(n),this.type="comment"}}return of=t,t.default=t,of}var sf,Lv;function Gn(){if(Lv)return sf;Lv=1;let{isClean:e,my:t}=Np(),r=Xl(),n=Ql(),a=Gl(),o,s,i,l;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,b;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],b=f(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[h]+=1;return delete this.indexes[h],b}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(b=>typeof b=="function"?(g,x)=>b(g.toProxy(),x):b)):h==="every"||h==="some"?m=>f[h]((b,...g)=>m(b.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),b=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of b)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+b.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),b=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],b).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new i(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(b=>(b[t]||p.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[e]&&u(b),typeof b.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(b.raws.before=h.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(b=>{h.props&&!h.props.includes(b.prop)||h.fast&&!b.value.includes(h.fast)||(b.value=b.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let b;try{b=f(h,m)}catch(g){throw h.addToError(g)}return b!==!1&&h.walk&&(b=h.walk(f)),b})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="atrule")return h(m,b)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="decl")return h(m,b)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="rule")return h(m,b)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{i=c},p.registerRoot=c=>{l=c},sf=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,i.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},sf}var lf,kv;function Tp(){if(kv)return lf;kv=1;let e=Gn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},lf=n,n.default=n,lf}var uf,Iv;function nw(){if(Iv)return uf;Iv=1;let e={};return uf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},uf}var df,_v;function aw(){if(_v)return df;_v=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return df=e,e.default=e,df}var cf,Mv;function Ap(){if(Mv)return cf;Mv=1;let e=aw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return cf=t,t.default=t,cf}var ff,Rv;function RC(){if(Rv)return ff;Rv=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,i=9,l=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,b=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return ff=function(C,_={}){let I=C.css.valueOf(),D=_.ignoreErrors,A,k,ke,Ie,ue,j,be,ze,Se,we,wr=I.length,E=0,vt=[],yt=[];function _n(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function br(X){if(yt.length)return yt.pop();if(E>=wr)return;let Me=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case a:case o:case i:case l:case s:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===a||A===i||A===l||A===s);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case f:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case p:{if(ze=vt.length?vt.pop()[1]:"",Se=I.charCodeAt(E+1),ze==="url"&&Se!==e&&Se!==t&&Se!==o&&Se!==a&&Se!==i&&Se!==s&&Se!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||Me){k=E;break}else Qe("bracket");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||y.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||Me){k=E+1;break}else Qe("string");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==n&&A!==o&&A!==a&&A!==i&&A!==l&&A!==s&&(k+=1,w.test(I.charAt(k)))){for(;w.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===n&&I.charCodeAt(E+1)===b?(k=I.indexOf("*/",E+2)+1,k===0&&(D||Me?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(S.lastIndex=E+1,S.test(I),S.lastIndex===0?k=I.length-1:k=S.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function Sr(X){yt.push(X)}return{back:Sr,endOfFile:it,nextToken:br,position:_n}},ff}var pf,Ev;function Dp(){if(Ev)return pf;Ev=1;let e=Gn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return pf=t,t.default=t,e.registerAtRule(t),pf}var mf,Pv;function fs(){if(Pv)return mf;Pv=1;let e=Gn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,i){let l=super.normalize(o);if(s){if(i==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of l)d.raws.before=s.raws.before}return l}removeChild(o,s){let i=this.index(o);return!s&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},mf=n,n.default=n,e.registerRoot(n),mf}var hf,Nv;function ow(){if(Nv)return hf;Nv=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
32
+ `," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,i=0,l=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:l?p===d&&(l=!1):p==='"'||p==="'"?(l=!0,d=p):p==="("?i+=1:p===")"?i>0&&(i-=1):i===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return hf=e,e.default=e,hf}var gf,Tv;function Op(){if(Tv)return gf;Tv=1;let e=Gn(),t=ow();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return gf=r,r.default=r,e.registerRule(r),gf}var xf,Av;function EC(){if(Av)return xf;Av=1;let e=Xl(),t=RC(),r=Ql(),n=Dp(),a=fs(),o=Op(),s={empty:!0,space:!0};function i(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,b=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),b&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,b]of u.entries()){if(c=b,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||i(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;u.length&&(b=u[0][0],!(b!=="space"&&b!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let y=x;y>0;y--){let w=v[y][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],b=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(b&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,b);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!b)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,b)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,b=c.length,g="",x=!0,v,S;for(let y=0;y<b;y+=1)h=c[y],m=h[0],m==="space"&&y===b-1&&!f?x=!1:m==="comment"?(S=c[y-1]?c[y-1][0]:"empty",v=c[y+1]?c[y+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let y=c.reduce((w,L)=>w+L[1],"");u.raws[p]={raw:y,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return xf=l,xf}var vf,Dv;function Fp(){if(Dv)return vf;Dv=1;let e=Gn(),t=EC(),r=Kl();function n(a,o){let s=new r(a,o),i=new t(s);try{i.parse()}catch(l){throw l}return i.root}return vf=n,n.default=n,e.registerParse(n),vf}var yf,Ov;function sw(){if(Ov)return yf;Ov=1;let{isClean:e,my:t}=Np(),r=rw(),n=Vl(),a=Gn(),o=Tp(),s=nw(),i=Ap(),l=Fp(),d=fs(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let y=!1,w=u[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function b(S){let y;return S.type==="document"?y=["Document",f,"DocumentExit"]:S.type==="root"?y=["Root",f,"RootExit"]:y=m(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let x={};class v{constructor(y,w,L){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=g(w);else if(w instanceof v||w instanceof i)C=g(w.root),w.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=w.map);else{let _=l;L.syntax&&(_=L.syntax.parse),L.parser&&(_=L.parser),_.parse&&(_=_.parse);try{C=_(w,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&a.rebuild(C)}this.result=new i(y,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?{..._,..._.prepare(this.result)}:_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let L=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=L.postcssPlugin,y.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(w,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let L in w){if(!p[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof w[L]=="object")for(let C in w[L])C==="*"?y(w,L,w[L][C]):y(w,L+"-"+C.toLowerCase(),w[L][C]);else typeof w[L]=="function"&&y(w,L,w[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],L=this.runOnRoot(w);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[b(y)];for(;w.length>0;){let L=this.visitTick(w);if(h(L))try{await L}catch(C){let _=w[w.length-1].node;throw this.handleError(C,_)}}}if(this.listeners.OnceExit)for(let[w,L]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let C=y.nodes.map(_=>L(_,this.helpers));await Promise.all(C)}else await L(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(L=>y.Once(L,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=n;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[L,C]of y){this.result.lastPlugin=L;let _;try{_=C(w,this.helpers)}catch(I){throw this.handleError(I,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(_))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:L,visitors:C}=w;if(L.type!=="root"&&L.type!=="document"&&!L.parent){y.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[I,D]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(w.iterator!==0){let I=w.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,y.push(b(D));return}w.iterator=0,delete L.indexes[I]}let _=w.events;for(;w.eventIndex<_.length;){let I=_[w.eventIndex];if(w.eventIndex+=1,I===f){L.nodes&&L.nodes.length&&(L[e]=!0,w.iterator=L.getIterator());return}else if(this.listeners[I]){w.visitors=this.listeners[I];return}}y.pop()}walkSync(y){y[e]=!0;let w=m(y);for(let L of w)if(L===f)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},yf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),yf}var wf,Fv;function PC(){if(Fv)return wf;Fv=1;let e=rw(),t=Vl(),r=nw(),n=Fp(),a=Ap();class o{constructor(i,l,d){l=l.toString(),this.stringified=!1,this._processor=i,this._css=l,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,l);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,l){return this.async().then(i,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let i,l=n;try{i=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return wf=o,o.default=o,wf}var bf,Bv;function NC(){if(Bv)return bf;Bv=1;let e=PC(),t=sw(),r=Tp(),n=fs();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let i=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return i}process(s,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new e(this,s,i):new t(this,s,i)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return bf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),bf}var Sf,zv;function TC(){if(zv)return Sf;zv=1;let e=Xl(),t=tw(),r=Ql(),n=Dp(),a=Kl(),o=fs(),s=Op();function i(l,d){if(Array.isArray(l))return l.map(c=>i(c));let{inputs:u,...p}=l;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=l.nodes.map(c=>i(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+l.type)}return Sf=i,i.default=i,Sf}var Cf,Uv;function AC(){if(Uv)return Cf;Uv=1;let e=Pp(),t=Xl(),r=sw(),n=Gn(),a=NC(),o=Vl(),s=TC(),i=Tp(),l=aw(),d=Ql(),u=Dp(),p=Ap(),c=Kl(),f=Fp(),h=ow(),m=Op(),b=fs(),g=Gl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,y){let w=!1;function L(..._){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
33
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
34
+ https://www.w3ctech.com/topic/2226`));let I=y(..._);return I.postcssPlugin=S,I.postcssVersion=new a().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(_,I,D){return x([L(D)]).process(_,I)},L},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new b(v),x.document=v=>new i(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=i,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=b,x.Node=g,r.registerPostcss(x),Cf=x,x.default=x,Cf}var DC=AC(),Oe=CC(DC);Oe.stringify;Oe.fromJSON;Oe.plugin;Oe.parse;Oe.list;Oe.document;Oe.comment;Oe.atRule;Oe.rule;Oe.decl;Oe.root;Oe.CssSyntaxError;Oe.Declaration;Oe.Container;Oe.Processor;Oe.Document;Oe.Comment;Oe.Warning;Oe.AtRule;Oe.Result;Oe.Input;Oe.Rule;Oe.Root;Oe.Node;var qv={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 OC(e){let t=qv[e.tagName]?qv[e.tagName]:e.tagName;return t==="link"&&e.attributes._cssText&&(t="style"),t}function Yl(e,t){let r=t?.stylesWithHoverClass.get(e);if(r)return r;let n=e;try{n=Oe([bC,SC]).process(e).css}catch(a){console.warn("Failed to adapt css for replay",a)}return t?.stylesWithHoverClass.set(e,n),n}function $v(){return{stylesWithHoverClass:new Map}}var FC="rrweb-snapshot.rebuild() cannot rebuild into an unprotected browser document. Use rebuildIntoSandboxedIframe() or set UNSAFE_allowUnprotectedRebuild: true only when you accept the script-execution risk.",Hv="rrweb-snapshot.createSandboxedIframe() requires root to be connected to a document before creating a sandboxed iframe.",iw=new WeakSet;function BC(e){if(!e||e.tagName!=="IFRAME"||!("sandbox"in e))return!1;let t=Array.from(e.sandbox);return t.length===1&&t[0]==="allow-same-origin"}function zC(e){if(e.UNSAFE_allowUnprotectedRebuild)return;let t=e.doc.defaultView;if(t&&!(iw.has(e.doc)&&BC(t.frameElement)))throw new Error(FC)}function UC(e,t,r,n){let a=[];for(let l of e.childNodes)l.type===re.Text&&a.push(l);let o=t.split("/* rr_split */");for(;o.length>1&&o.length>a.length;)o.splice(-2,2,o.slice(-2).join(""));let s="";r&&(s=Yl(o.join(""),n));let i=0;for(let l=0;l<a.length&&l!==o.length;l++){let d=a[l];if(!r)d.textContent=o[l];else if(l<o.length-1){let u=i,p=o[l+1].length;p=Math.min(p,30);let c=!1;for(;p>2;p--){let f=o[l+1].substring(0,p),h=s.substring(i).indexOf(f);if(c=h!==-1,c){u+=h;break}}c||(u+=o[l].length),d.textContent=s.substring(i,u),i=u}else d.textContent=s.substring(i)}}function qC(e,t,r,n){let{doc:a,hackCss:o,cache:s}=n;e.childNodes.length?UC(e,r,o,s):(o&&(r=Yl(r,s)),t.appendChild(a.createTextNode(r)))}function $C(e,t){var r;let{doc:n,hackCss:a,cache:o}=t;switch(e.type){case re.Document:return n.implementation.createDocument(null,"",null);case re.DocumentType:return n.implementation.createDocumentType(e.name||"html",e.publicId,e.systemId);case re.Element:{let s=OC(e),i;e.isSVG?i=n.createElementNS("http://www.w3.org/2000/svg",s):(e.isCustom&&((r=n.defaultView)!=null&&r.customElements)&&!n.defaultView.customElements.get(e.tagName)&&n.defaultView.customElements.define(e.tagName,class extends n.defaultView.HTMLElement{}),i=n.createElement(s));let l={};for(let d in e.attributes){if(!Object.prototype.hasOwnProperty.call(e.attributes,d))continue;let u=e.attributes[d];if(!(s==="option"&&d==="selected"&&u===!1)&&u!==null){if(u===!0&&(u=""),d.startsWith("rr_")){l[d]=u;continue}if(typeof u=="string"){if(s==="style"&&d==="_cssText"){qC(e,i,u,t);continue}else if(s==="textarea"&&d==="value"){i.appendChild(n.createTextNode(u)),e.childNodes=[];continue}}try{if(e.isSVG&&d==="xlink:href")i.setAttributeNS("http://www.w3.org/1999/xlink",d,u.toString());else if(d==="onload"||d==="onclick"||d.substring(0,7)==="onmouse")i.setAttribute("_"+d,u.toString());else if(s==="meta"&&e.attributes["http-equiv"]==="Content-Security-Policy"&&d==="content"){i.setAttribute("csp-content",u.toString());continue}else s==="link"&&(e.attributes.rel==="preload"&&e.attributes.as==="script"||e.attributes.rel==="modulepreload")||s==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&Rp(e.attributes.href)==="js"||(s==="img"&&e.attributes.srcset&&e.attributes.rr_dataURL?i.setAttribute("rrweb-original-srcset",e.attributes.srcset):i.setAttribute(d,u.toString()))}catch{}}}for(let d in l){let u=l[d];if(s==="canvas"&&d==="rr_dataURL"){let p=n.createElement("img");p.onload=()=>{let c=i.getContext("2d");c&&c.drawImage(p,0,0,p.width,p.height)},p.src=u.toString(),i.RRNodeType&&(i.rr_dataURL=u.toString())}else if(s==="img"&&d==="rr_dataURL"){let p=i;p.currentSrc.startsWith("data:")||(p.setAttribute("rrweb-original-src",e.attributes.src),p.src=u.toString())}if(d==="rr_width")i.style.setProperty("width",u.toString());else if(d==="rr_height")i.style.setProperty("height",u.toString());else if(d==="rr_mediaCurrentTime"&&typeof u=="number")i.currentTime=u;else if(d==="rr_mediaState")switch(u){case"played":i.play().catch(p=>console.warn("media playback error",p));break;case"paused":i.pause();break}else d==="rr_mediaPlaybackRate"&&typeof u=="number"?i.playbackRate=u:d==="rr_mediaMuted"&&typeof u=="boolean"?i.muted=u:d==="rr_mediaLoop"&&typeof u=="boolean"?i.loop=u:d==="rr_mediaVolume"&&typeof u=="number"?i.volume=u:d==="rr_open_mode"&&i.setAttribute("rr_open_mode",u)}if(e.isShadowHost)if(!i.shadowRoot)i.attachShadow({mode:"open"});else for(;i.shadowRoot.firstChild;)i.shadowRoot.removeChild(i.shadowRoot.firstChild);return i}case re.Text:return e.isStyle&&a?n.createTextNode(Yl(e.textContent,o)):n.createTextNode(e.textContent);case re.CDATA:return n.createCDATASection(e.textContent);case re.Comment:return n.createComment(e.textContent);default:return null}}function os(e,t){let{doc:r,mirror:n,skipChild:a=!1,hackCss:o=!0,afterAppend:s,cache:i}=t;if(n.has(e.id)){let d=n.getNode(e.id),u=n.getMeta(d);if(Q1(u,e))return n.getNode(e.id)}let l=$C(e,{doc:r,hackCss:o,cache:i});if(!l)return null;if(e.rootId&&n.getNode(e.rootId)!==r&&n.replace(e.rootId,r),e.type===re.Document&&(r.close(),r.open(),e.compatMode==="BackCompat"&&e.childNodes&&e.childNodes[0].type!==re.DocumentType&&(e.childNodes[0].type===re.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===re.Document||e.type===re.Element)&&!a)for(let d of e.childNodes){let u=os(d,{doc:r,mirror:n,skipChild:!1,hackCss:o,afterAppend:s,cache:i});if(!u){console.warn("Failed to rebuild",d);continue}if(d.isShadow&&Mp(l)&&l.shadowRoot)l.shadowRoot.appendChild(u);else if(e.type===re.Document&&d.type==re.Element){let p=u,c=null;p.childNodes.forEach(f=>{f.nodeName==="BODY"&&(c=f)}),c?(p.removeChild(c),l.appendChild(u),p.appendChild(c)):l.appendChild(u)}else l.appendChild(u);s&&s(u,d.id)}return l}function HC(e,t){function r(n){t(n)}for(let n of e.getIds())e.has(n)&&r(e.getNode(n))}function WC(e,t){let r=t.getMeta(e);if(r?.type!==re.Element)return;let n=e;for(let a in r.attributes){if(!(Object.prototype.hasOwnProperty.call(r.attributes,a)&&a.startsWith("rr_")))continue;let o=r.attributes[a];a==="rr_scrollLeft"&&(n.scrollLeft=o),a==="rr_scrollTop"&&(n.scrollTop=o)}}function jC(e,t){zC(t);let{doc:r,onVisit:n,hackCss:a=!0,afterAppend:o,cache:s,mirror:i=new ls}=t,l=os(e,{doc:r,mirror:i,skipChild:!1,hackCss:a,afterAppend:o,cache:s});return HC(i,d=>{n&&n(d),WC(d,i)}),l}function VC(e){var t;if(!e.root.isConnected)throw new Error(Hv);let r=e.root.ownerDocument.createElement("iframe");for(let[a,o]of Object.entries(e.iframeAttributes||{}))a!=="sandbox"&&r.setAttribute(a,o);r.setAttribute("sandbox","allow-same-origin"),e.root.appendChild(r);let n=r.contentDocument;if(!n||!r.contentWindow)throw(t=r.parentNode)==null||t.removeChild(r),new Error(Hv);return iw.add(n),r}var GC=Object.defineProperty,XC=(e,t,r)=>t in e?GC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,z=(e,t,r)=>XC(e,typeof t!="symbol"?t+"":t,r),KC=Object.defineProperty,QC=(e,t,r)=>t in e?KC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wv=(e,t,r)=>QC(e,typeof t!="symbol"?t+"":t,r);Date.now().toString();var YC=class{constructor(){Wv(this,"idNodeMap",new Map),Wv(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let 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){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function JC(){return new YC}function ZC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eL(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var a=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,a.get?a:{enumerable:!0,get:function(){return e[n]}})}),r}var Sl={exports:{}},jv;function tL(){if(jv)return Sl.exports;jv=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e}};return Sl.exports=t(),Sl.exports.createColors=t,Sl.exports}var rL={},nL=Object.freeze(Object.defineProperty({__proto__:null,default:rL},Symbol.toStringTag,{value:"Module"})),xr=eL(nL),Lf,Vv;function Bp(){if(Vv)return Lf;Vv=1;let e=tL(),t=xr;class r extends Error{constructor(a,o,s,i,l,d){super(a),this.name="CssSyntaxError",this.reason=a,l&&(this.file=l),i&&(this.source=i),d&&(this.plugin=d),typeof o<"u"&&typeof s<"u"&&(typeof o=="number"?(this.line=o,this.column=s):(this.line=o.line,this.column=o.column,this.endLine=s.line,this.endColumn=s.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,r)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(a){if(!this.source)return"";let o=this.source;a==null&&(a=e.isColorSupported),t&&a&&(o=t(o));let s=o.split(/\r?\n/),i=Math.max(this.line-3,0),l=Math.min(this.line+2,s.length),d=String(l).length,u,p;if(a){let{bold:c,gray:f,red:h}=e.createColors(!0);u=m=>c(h(m)),p=m=>f(m)}else u=p=c=>c;return s.slice(i,l).map((c,f)=>{let h=i+1+f,m=" "+(" "+h).slice(-d)+" | ";if(h===this.line){let b=p(m.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+p(m)+c+`
35
+ `+b+u("^")}return" "+p(m)+c}).join(`
36
+ `)}toString(){let a=this.showSourceCode();return a&&(a=`
37
+
38
+ `+a+`
39
+ `),this.name+": "+this.message+a}}return Lf=r,r.default=r,Lf}var Cl={},Gv;function zp(){return Gv||(Gv=1,Cl.isClean=Symbol("isClean"),Cl.my=Symbol("my")),Cl}var kf,Xv;function lw(){if(Xv)return kf;Xv=1;let e={after:`
40
40
  `,beforeClose:`
41
41
  `,beforeComment:`
42
42
  `,beforeDecl:`
43
43
  `,beforeOpen:" ",beforeRule:`
44
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(a){return a[0].toUpperCase()+a.slice(1)}class r{constructor(n){this.builder=n}atrule(n,o){let i="@"+n.name,s=n.params?this.rawValue(n,"params"):"";if(typeof n.raws.afterName<"u"?i+=n.raws.afterName:s&&(i+=" "),n.nodes)this.block(n,i+s);else{let l=(n.raws.between||"")+(o?";":"");this.builder(i+s+l,n)}}beforeAfter(n,o){let i;n.type==="decl"?i=this.raw(n,null,"beforeDecl"):n.type==="comment"?i=this.raw(n,null,"beforeComment"):o==="before"?i=this.raw(n,null,"beforeRule"):i=this.raw(n,null,"beforeClose");let s=n.parent,l=0;for(;s&&s.type!=="root";)l+=1,s=s.parent;if(i.includes(`
45
- `)){let d=this.raw(n,null,"indent");if(d.length)for(let u=0;u<l;u++)i+=d}return i}block(n,o){let i=this.raw(n,"between","beforeOpen");this.builder(o+i+"{",n,"start");let s;n.nodes&&n.nodes.length?(this.body(n),s=this.raw(n,"after")):s=this.raw(n,"after","emptyBody"),s&&this.builder(s),this.builder("}",n,"end")}body(n){let o=n.nodes.length-1;for(;o>0&&n.nodes[o].type==="comment";)o-=1;let i=this.raw(n,"semicolon");for(let s=0;s<n.nodes.length;s++){let l=n.nodes[s],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,o!==s||i)}}comment(n){let o=this.raw(n,"left","commentLeft"),i=this.raw(n,"right","commentRight");this.builder("/*"+o+n.text+i+"*/",n)}decl(n,o){let i=this.raw(n,"between","colon"),s=n.prop+i+this.rawValue(n,"value");n.important&&(s+=n.raws.important||" !important"),o&&(s+=";"),this.builder(s,n)}document(n){this.body(n)}raw(n,o,i){let s;if(i||(i=o),o&&(s=n.raws[o],typeof s<"u"))return s;let l=n.parent;if(i==="before"&&(!l||l.type==="root"&&l.first===n||l&&l.type==="document"))return"";if(!l)return e[i];let d=n.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[i]<"u")return d.rawCache[i];if(i==="before"||i==="after")return this.beforeAfter(n,i);{let u="raw"+t(i);this[u]?s=this[u](d,n):d.walk(f=>{if(s=f.raws[o],typeof s<"u")return!1})}return typeof s>"u"&&(s=e[i]),d.rawCache[i]=s,s}rawBeforeClose(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length>0&&typeof i.raws.after<"u")return o=i.raws.after,o.includes(`
46
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(n,o){let i;return n.walkComments(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
47
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeDecl"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeDecl(n,o){let i;return n.walkDecls(s=>{if(typeof s.raws.before<"u")return i=s.raws.before,i.includes(`
48
- `)&&(i=i.replace(/[^\n]+$/,"")),!1}),typeof i>"u"?i=this.raw(o,null,"beforeRule"):i&&(i=i.replace(/\S/g,"")),i}rawBeforeOpen(n){let o;return n.walk(i=>{if(i.type!=="decl"&&(o=i.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(n){let o;return n.walk(i=>{if(i.nodes&&(i.parent!==n||n.first!==i)&&typeof i.raws.before<"u")return o=i.raws.before,o.includes(`
49
- `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(n){let o;return n.walkDecls(i=>{if(typeof i.raws.between<"u")return o=i.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length===0&&(o=i.raws.after,typeof o<"u"))return!1}),o}rawIndent(n){if(n.raws.indent)return n.raws.indent;let o;return n.walk(i=>{let s=i.parent;if(s&&s!==n&&s.parent&&s.parent===n&&typeof i.raws.before<"u"){let l=i.raws.before.split(`
50
- `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(n){let o;return n.walk(i=>{if(i.nodes&&i.nodes.length&&i.last.type==="decl"&&(o=i.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(n,o){let i=n[o],s=n.raws[o];return s&&s.value===i?s.raw:i}root(n){this.body(n),n.raws.after&&this.builder(n.raws.after)}rule(n){this.block(n,this.rawValue(n,"selector")),n.raws.ownSemicolon&&this.builder(n.raws.ownSemicolon,n,"end")}stringify(n,o){if(!this[n.type])throw new Error("Unknown AST node type "+n.type+". Maybe you need to change PostCSS stringifier.");this[n.type](n,o)}}return bf=r,r.default=r,bf}var Cf,Vv;function Yl(){if(Vv)return Cf;Vv=1;let e=ow();function t(r,a){new e(a).stringify(r)}return Cf=t,t.default=t,Cf}var Lf,Gv;function Jl(){if(Gv)return Lf;Gv=1;let{isClean:e,my:t}=Op(),r=Dp(),a=ow(),n=Yl();function o(s,l){let d=new s.constructor;for(let u in s){if(!Object.prototype.hasOwnProperty.call(s,u)||u==="proxyCache")continue;let f=s[u],c=typeof f;u==="parent"&&c==="object"?l&&(d[u]=l):u==="source"?d[u]=f:Array.isArray(f)?d[u]=f.map(p=>o(p,d)):(c==="object"&&f!==null&&(f=o(f)),d[u]=f)}return d}class i{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in l)if(d==="nodes"){this.nodes=[];for(let u of l[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=l[d]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let d=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let d in l)this[d]=l[d];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let d=o(this);for(let u in l)d[u]=l[u];return d}cloneAfter(l={}){let d=this.clone(l);return this.parent.insertAfter(this,d),d}cloneBefore(l={}){let d=this.clone(l);return this.parent.insertBefore(this,d),d}error(l,d={}){if(this.source){let{end:u,start:f}=this.rangeBy(d);return this.source.input.error(l,{column:f.column,line:f.line},{column:u.column,line:u.line},d)}return new r(l)}getProxyProcessor(){return{get(l,d){return d==="proxyOf"?l:d==="root"?()=>l.root().toProxy():l[d]},set(l,d,u){return l[d]===u||(l[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,d){let u=this.source.start;if(l.index)u=this.positionInside(l.index,d);else if(l.word){d=this.toString();let f=d.indexOf(l.word);f!==-1&&(u=this.positionInside(f,d))}return u}positionInside(l,d){let u=d||this.toString(),f=this.source.start.column,c=this.source.start.line;for(let p=0;p<l;p++)u[p]===`
51
- `?(f=1,c+=1):f+=1;return{column:f,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let f=this.toString(),c=f.indexOf(l.word);c!==-1&&(d=this.positionInside(c,f),u=this.positionInside(c+l.word.length,f))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?u={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?u=this.positionInside(l.endIndex):l.index&&(u=this.positionInside(l.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(l,d){return new a().raw(this,l,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let d=this,u=!1;for(let f of l)f===this?u=!0:u?(this.parent.insertAfter(d,f),d=f):this.parent.insertBefore(d,f);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,d){let u={},f=d==null;d=d||new Map;let c=0;for(let p in this){if(!Object.prototype.hasOwnProperty.call(this,p)||p==="parent"||p==="proxyCache")continue;let h=this[p];if(Array.isArray(h))u[p]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[p]=h.toJSON(null,d);else if(p==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[p]={end:h.end,inputId:m,start:h.start}}else u[p]=h}return f&&(u.inputs=[...d.keys()].map(p=>p.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=n){l.stringify&&(l=l.stringify);let d="";return l(this,u=>{d+=u}),d}warn(l,d,u){let f={node:this};for(let c in u)f[c]=u[c];return l.warn(d,f)}get proxyOf(){return this}}return Lf=i,i.default=i,Lf}var kf,Xv;function Zl(){if(Xv)return kf;Xv=1;let e=Jl();class t extends e{constructor(a){a&&typeof a.value<"u"&&typeof a.value!="string"&&(a={...a,value:String(a.value)}),super(a),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return kf=t,t.default=t,kf}var If,Kv;function a1(){if(Kv)return If;Kv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return If={nanoid:(a=21)=>{let n="",o=a;for(;o--;)n+=e[Math.random()*64|0];return n},customAlphabet:(a,n=21)=>(o=n)=>{let i="",s=o;for(;s--;)i+=a[Math.random()*a.length|0];return i}},If}var Mf,Qv;function sw(){if(Qv)return Mf;Qv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{existsSync:r,readFileSync:a}=xr,{dirname:n,join:o}=xr;function i(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class s{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let f=u.map?u.map.prev:void 0,c=this.loadMap(u.from,f);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=n(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,f=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,p=/^data:application\/json,/;if(c.test(d)||p.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||f.test(d))return i(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let f=d.lastIndexOf(u.pop()),c=d.indexOf("*/",f);f>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(f,c)))}loadFile(d){if(this.root=n(d),r(d))return this.mapFile=d,a(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let f=u(d);if(f){let c=this.loadFile(f);if(!c)throw new Error("Unable to load previous source map: "+f.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let f=this.annotation;return d&&(f=o(n(d),f)),this.loadFile(f)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Mf=s,s.default=s,Mf}var _f,Yv;function eu(){if(Yv)return _f;Yv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{fileURLToPath:r,pathToFileURL:a}=xr,{isAbsolute:n,resolve:o}=xr,{nanoid:i}=a1(),s=xr,l=Dp(),d=sw(),u=Symbol("fromOffsetCache"),f=!!(e&&t),c=!!(o&&n);class p{constructor(m,S={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,S.from&&(!c||/^\w+:\/\//.test(S.from)||n(S.from)?this.file=S.from:this.file=o(S.from)),c&&f){let g=new d(this.css,S);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+i(6)+">"),this.map&&(this.map.file=this.from)}error(m,S,g,x={}){let v,b,w;if(S&&typeof S=="object"){let L=S,C=g;if(typeof L.offset=="number"){let M=this.fromOffset(L.offset);S=M.line,g=M.col}else S=L.line,g=L.column;if(typeof C.offset=="number"){let M=this.fromOffset(C.offset);b=M.line,w=M.col}else b=C.line,w=C.column}else if(!g){let L=this.fromOffset(S);S=L.line,g=L.col}let y=this.origin(S,g,b,w);return y?v=new l(m,y.endLine===void 0?y.line:{column:y.column,line:y.line},y.endLine===void 0?y.column:{column:y.endColumn,line:y.endLine},y.source,y.file,x.plugin):v=new l(m,b===void 0?S:{column:g,line:S},b===void 0?g:{column:w,line:b},this.css,this.file,x.plugin),v.input={column:g,endColumn:w,endLine:b,line:S,source:this.css},this.file&&(a&&(v.input.url=a(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let S,g;if(this[u])g=this[u];else{let v=this.css.split(`
52
- `);g=new Array(v.length);let b=0;for(let w=0,y=v.length;w<y;w++)g[w]=b,b+=v[w].length+1;this[u]=g}S=g[g.length-1];let x=0;if(m>=S)x=g.length-1;else{let v=g.length-2,b;for(;x<v;)if(b=x+(v-x>>1),m<g[b])v=b-1;else if(m>=g[b+1])x=b+1;else{x=b;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,S,g,x){if(!this.map)return!1;let v=this.map.consumer(),b=v.originalPositionFor({column:S,line:m});if(!b.source)return!1;let w;typeof g=="number"&&(w=v.originalPositionFor({column:x,line:g}));let y;n(b.source)?y=a(b.source):y=new URL(b.source,this.map.consumer().sourceRoot||a(this.map.mapFile));let L={column:b.column,endColumn:w&&w.column,endLine:w&&w.line,line:b.line,url:y.toString()};if(y.protocol==="file:")if(r)L.file=r(y);else throw new Error("file: protocol is not available in this PostCSS build");let C=v.sourceContentFor(b.source);return C&&(L.source=C),L}toJSON(){let m={};for(let S of["hasBOM","css","file","id"])this[S]!=null&&(m[S]=this[S]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return _f=p,p.default=p,s&&s.registerInput&&s.registerInput(p),_f}var Rf,Jv;function iw(){if(Jv)return Rf;Jv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{dirname:r,relative:a,resolve:n,sep:o}=xr,{pathToFileURL:i}=xr,s=eu(),l=!!(e&&t),d=!!(r&&n&&a&&o);class u{constructor(c,p,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=p,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let p=`
44
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function t(n){return n[0].toUpperCase()+n.slice(1)}class r{constructor(a){this.builder=a}atrule(a,o){let s="@"+a.name,i=a.params?this.rawValue(a,"params"):"";if(typeof a.raws.afterName<"u"?s+=a.raws.afterName:i&&(s+=" "),a.nodes)this.block(a,s+i);else{let l=(a.raws.between||"")+(o?";":"");this.builder(s+i+l,a)}}beforeAfter(a,o){let s;a.type==="decl"?s=this.raw(a,null,"beforeDecl"):a.type==="comment"?s=this.raw(a,null,"beforeComment"):o==="before"?s=this.raw(a,null,"beforeRule"):s=this.raw(a,null,"beforeClose");let i=a.parent,l=0;for(;i&&i.type!=="root";)l+=1,i=i.parent;if(s.includes(`
45
+ `)){let d=this.raw(a,null,"indent");if(d.length)for(let u=0;u<l;u++)s+=d}return s}block(a,o){let s=this.raw(a,"between","beforeOpen");this.builder(o+s+"{",a,"start");let i;a.nodes&&a.nodes.length?(this.body(a),i=this.raw(a,"after")):i=this.raw(a,"after","emptyBody"),i&&this.builder(i),this.builder("}",a,"end")}body(a){let o=a.nodes.length-1;for(;o>0&&a.nodes[o].type==="comment";)o-=1;let s=this.raw(a,"semicolon");for(let i=0;i<a.nodes.length;i++){let l=a.nodes[i],d=this.raw(l,"before");d&&this.builder(d),this.stringify(l,o!==i||s)}}comment(a){let o=this.raw(a,"left","commentLeft"),s=this.raw(a,"right","commentRight");this.builder("/*"+o+a.text+s+"*/",a)}decl(a,o){let s=this.raw(a,"between","colon"),i=a.prop+s+this.rawValue(a,"value");a.important&&(i+=a.raws.important||" !important"),o&&(i+=";"),this.builder(i,a)}document(a){this.body(a)}raw(a,o,s){let i;if(s||(s=o),o&&(i=a.raws[o],typeof i<"u"))return i;let l=a.parent;if(s==="before"&&(!l||l.type==="root"&&l.first===a||l&&l.type==="document"))return"";if(!l)return e[s];let d=a.root();if(d.rawCache||(d.rawCache={}),typeof d.rawCache[s]<"u")return d.rawCache[s];if(s==="before"||s==="after")return this.beforeAfter(a,s);{let u="raw"+t(s);this[u]?i=this[u](d,a):d.walk(p=>{if(i=p.raws[o],typeof i<"u")return!1})}return typeof i>"u"&&(i=e[s]),d.rawCache[s]=i,i}rawBeforeClose(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length>0&&typeof s.raws.after<"u")return o=s.raws.after,o.includes(`
46
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(a,o){let s;return a.walkComments(i=>{if(typeof i.raws.before<"u")return s=i.raws.before,s.includes(`
47
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeDecl"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeDecl(a,o){let s;return a.walkDecls(i=>{if(typeof i.raws.before<"u")return s=i.raws.before,s.includes(`
48
+ `)&&(s=s.replace(/[^\n]+$/,"")),!1}),typeof s>"u"?s=this.raw(o,null,"beforeRule"):s&&(s=s.replace(/\S/g,"")),s}rawBeforeOpen(a){let o;return a.walk(s=>{if(s.type!=="decl"&&(o=s.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(a){let o;return a.walk(s=>{if(s.nodes&&(s.parent!==a||a.first!==s)&&typeof s.raws.before<"u")return o=s.raws.before,o.includes(`
49
+ `)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(a){let o;return a.walkDecls(s=>{if(typeof s.raws.between<"u")return o=s.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length===0&&(o=s.raws.after,typeof o<"u"))return!1}),o}rawIndent(a){if(a.raws.indent)return a.raws.indent;let o;return a.walk(s=>{let i=s.parent;if(i&&i!==a&&i.parent&&i.parent===a&&typeof s.raws.before<"u"){let l=s.raws.before.split(`
50
+ `);return o=l[l.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(a){let o;return a.walk(s=>{if(s.nodes&&s.nodes.length&&s.last.type==="decl"&&(o=s.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(a,o){let s=a[o],i=a.raws[o];return i&&i.value===s?i.raw:s}root(a){this.body(a),a.raws.after&&this.builder(a.raws.after)}rule(a){this.block(a,this.rawValue(a,"selector")),a.raws.ownSemicolon&&this.builder(a.raws.ownSemicolon,a,"end")}stringify(a,o){if(!this[a.type])throw new Error("Unknown AST node type "+a.type+". Maybe you need to change PostCSS stringifier.");this[a.type](a,o)}}return kf=r,r.default=r,kf}var If,Kv;function Jl(){if(Kv)return If;Kv=1;let e=lw();function t(r,n){new e(n).stringify(r)}return If=t,t.default=t,If}var _f,Qv;function Zl(){if(Qv)return _f;Qv=1;let{isClean:e,my:t}=zp(),r=Bp(),n=lw(),a=Jl();function o(i,l){let d=new i.constructor;for(let u in i){if(!Object.prototype.hasOwnProperty.call(i,u)||u==="proxyCache")continue;let p=i[u],c=typeof p;u==="parent"&&c==="object"?l&&(d[u]=l):u==="source"?d[u]=p:Array.isArray(p)?d[u]=p.map(f=>o(f,d)):(c==="object"&&p!==null&&(p=o(p)),d[u]=p)}return d}class s{constructor(l={}){this.raws={},this[e]=!1,this[t]=!0;for(let d in l)if(d==="nodes"){this.nodes=[];for(let u of l[d])typeof u.clone=="function"?this.append(u.clone()):this.append(u)}else this[d]=l[d]}addToError(l){if(l.postcssNode=this,l.stack&&this.source&&/\n\s{4}at /.test(l.stack)){let d=this.source;l.stack=l.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return l}after(l){return this.parent.insertAfter(this,l),this}assign(l={}){for(let d in l)this[d]=l[d];return this}before(l){return this.parent.insertBefore(this,l),this}cleanRaws(l){delete this.raws.before,delete this.raws.after,l||delete this.raws.between}clone(l={}){let d=o(this);for(let u in l)d[u]=l[u];return d}cloneAfter(l={}){let d=this.clone(l);return this.parent.insertAfter(this,d),d}cloneBefore(l={}){let d=this.clone(l);return this.parent.insertBefore(this,d),d}error(l,d={}){if(this.source){let{end:u,start:p}=this.rangeBy(d);return this.source.input.error(l,{column:p.column,line:p.line},{column:u.column,line:u.line},d)}return new r(l)}getProxyProcessor(){return{get(l,d){return d==="proxyOf"?l:d==="root"?()=>l.root().toProxy():l[d]},set(l,d,u){return l[d]===u||(l[d]=u,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&l.markDirty()),!0}}}markDirty(){if(this[e]){this[e]=!1;let l=this;for(;l=l.parent;)l[e]=!1}}next(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l+1]}positionBy(l,d){let u=this.source.start;if(l.index)u=this.positionInside(l.index,d);else if(l.word){d=this.toString();let p=d.indexOf(l.word);p!==-1&&(u=this.positionInside(p,d))}return u}positionInside(l,d){let u=d||this.toString(),p=this.source.start.column,c=this.source.start.line;for(let f=0;f<l;f++)u[f]===`
51
+ `?(p=1,c+=1):p+=1;return{column:p,line:c}}prev(){if(!this.parent)return;let l=this.parent.index(this);return this.parent.nodes[l-1]}rangeBy(l){let d={column:this.source.start.column,line:this.source.start.line},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:d.column+1,line:d.line};if(l.word){let p=this.toString(),c=p.indexOf(l.word);c!==-1&&(d=this.positionInside(c,p),u=this.positionInside(c+l.word.length,p))}else l.start?d={column:l.start.column,line:l.start.line}:l.index&&(d=this.positionInside(l.index)),l.end?u={column:l.end.column,line:l.end.line}:typeof l.endIndex=="number"?u=this.positionInside(l.endIndex):l.index&&(u=this.positionInside(l.index+1));return(u.line<d.line||u.line===d.line&&u.column<=d.column)&&(u={column:d.column+1,line:d.line}),{end:u,start:d}}raw(l,d){return new n().raw(this,l,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...l){if(this.parent){let d=this,u=!1;for(let p of l)p===this?u=!0:u?(this.parent.insertAfter(d,p),d=p):this.parent.insertBefore(d,p);u||this.remove()}return this}root(){let l=this;for(;l.parent&&l.parent.type!=="document";)l=l.parent;return l}toJSON(l,d){let u={},p=d==null;d=d||new Map;let c=0;for(let f in this){if(!Object.prototype.hasOwnProperty.call(this,f)||f==="parent"||f==="proxyCache")continue;let h=this[f];if(Array.isArray(h))u[f]=h.map(m=>typeof m=="object"&&m.toJSON?m.toJSON(null,d):m);else if(typeof h=="object"&&h.toJSON)u[f]=h.toJSON(null,d);else if(f==="source"){let m=d.get(h.input);m==null&&(m=c,d.set(h.input,c),c++),u[f]={end:h.end,inputId:m,start:h.start}}else u[f]=h}return p&&(u.inputs=[...d.keys()].map(f=>f.toJSON())),u}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(l=a){l.stringify&&(l=l.stringify);let d="";return l(this,u=>{d+=u}),d}warn(l,d,u){let p={node:this};for(let c in u)p[c]=u[c];return l.warn(d,p)}get proxyOf(){return this}}return _f=s,s.default=s,_f}var Mf,Yv;function eu(){if(Yv)return Mf;Yv=1;let e=Zl();class t extends e{constructor(n){n&&typeof n.value<"u"&&typeof n.value!="string"&&(n={...n,value:String(n.value)}),super(n),this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}return Mf=t,t.default=t,Mf}var Rf,Jv;function aL(){if(Jv)return Rf;Jv=1;let e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";return Rf={nanoid:(n=21)=>{let a="",o=n;for(;o--;)a+=e[Math.random()*64|0];return a},customAlphabet:(n,a=21)=>(o=a)=>{let s="",i=o;for(;i--;)s+=n[Math.random()*n.length|0];return s}},Rf}var Ef,Zv;function uw(){if(Zv)return Ef;Zv=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{existsSync:r,readFileSync:n}=xr,{dirname:a,join:o}=xr;function s(l){return Buffer?Buffer.from(l,"base64").toString():window.atob(l)}class i{constructor(d,u){if(u.map===!1)return;this.loadAnnotation(d),this.inline=this.startWith(this.annotation,"data:");let p=u.map?u.map.prev:void 0,c=this.loadMap(u.from,p);!this.mapFile&&u.from&&(this.mapFile=u.from),this.mapFile&&(this.root=a(this.mapFile)),c&&(this.text=c)}consumer(){return this.consumerCache||(this.consumerCache=new e(this.text)),this.consumerCache}decodeInline(d){let u=/^data:application\/json;charset=utf-?8;base64,/,p=/^data:application\/json;base64,/,c=/^data:application\/json;charset=utf-?8,/,f=/^data:application\/json,/;if(c.test(d)||f.test(d))return decodeURIComponent(d.substr(RegExp.lastMatch.length));if(u.test(d)||p.test(d))return s(d.substr(RegExp.lastMatch.length));let h=d.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+h)}getAnnotationURL(d){return d.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(d){return typeof d!="object"?!1:typeof d.mappings=="string"||typeof d._mappings=="string"||Array.isArray(d.sections)}loadAnnotation(d){let u=d.match(/\/\*\s*# sourceMappingURL=/gm);if(!u)return;let p=d.lastIndexOf(u.pop()),c=d.indexOf("*/",p);p>-1&&c>-1&&(this.annotation=this.getAnnotationURL(d.substring(p,c)))}loadFile(d){if(this.root=a(d),r(d))return this.mapFile=d,n(d,"utf-8").toString().trim()}loadMap(d,u){if(u===!1)return!1;if(u){if(typeof u=="string")return u;if(typeof u=="function"){let p=u(d);if(p){let c=this.loadFile(p);if(!c)throw new Error("Unable to load previous source map: "+p.toString());return c}}else{if(u instanceof e)return t.fromSourceMap(u).toString();if(u instanceof t)return u.toString();if(this.isMap(u))return JSON.stringify(u);throw new Error("Unsupported previous source map format: "+u.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let p=this.annotation;return d&&(p=o(a(d),p)),this.loadFile(p)}}}startWith(d,u){return d?d.substr(0,u.length)===u:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}return Ef=i,i.default=i,Ef}var Pf,ey;function tu(){if(ey)return Pf;ey=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{fileURLToPath:r,pathToFileURL:n}=xr,{isAbsolute:a,resolve:o}=xr,{nanoid:s}=aL(),i=xr,l=Bp(),d=uw(),u=Symbol("fromOffsetCache"),p=!!(e&&t),c=!!(o&&a);class f{constructor(m,b={}){if(m===null||typeof m>"u"||typeof m=="object"&&!m.toString)throw new Error(`PostCSS received ${m} instead of CSS string`);if(this.css=m.toString(),this.css[0]==="\uFEFF"||this.css[0]==="\uFFFE"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,b.from&&(!c||/^\w+:\/\//.test(b.from)||a(b.from)?this.file=b.from:this.file=o(b.from)),c&&p){let g=new d(this.css,b);if(g.text){this.map=g;let x=g.consumer().file;!this.file&&x&&(this.file=this.mapResolve(x))}}this.file||(this.id="<input css "+s(6)+">"),this.map&&(this.map.file=this.from)}error(m,b,g,x={}){let v,S,y;if(b&&typeof b=="object"){let L=b,C=g;if(typeof L.offset=="number"){let _=this.fromOffset(L.offset);b=_.line,g=_.col}else b=L.line,g=L.column;if(typeof C.offset=="number"){let _=this.fromOffset(C.offset);S=_.line,y=_.col}else S=C.line,y=C.column}else if(!g){let L=this.fromOffset(b);b=L.line,g=L.col}let w=this.origin(b,g,S,y);return w?v=new l(m,w.endLine===void 0?w.line:{column:w.column,line:w.line},w.endLine===void 0?w.column:{column:w.endColumn,line:w.endLine},w.source,w.file,x.plugin):v=new l(m,S===void 0?b:{column:g,line:b},S===void 0?g:{column:y,line:S},this.css,this.file,x.plugin),v.input={column:g,endColumn:y,endLine:S,line:b,source:this.css},this.file&&(n&&(v.input.url=n(this.file).toString()),v.input.file=this.file),v}fromOffset(m){let b,g;if(this[u])g=this[u];else{let v=this.css.split(`
52
+ `);g=new Array(v.length);let S=0;for(let y=0,w=v.length;y<w;y++)g[y]=S,S+=v[y].length+1;this[u]=g}b=g[g.length-1];let x=0;if(m>=b)x=g.length-1;else{let v=g.length-2,S;for(;x<v;)if(S=x+(v-x>>1),m<g[S])v=S-1;else if(m>=g[S+1])x=S+1;else{x=S;break}}return{col:m-g[x]+1,line:x+1}}mapResolve(m){return/^\w+:\/\//.test(m)?m:o(this.map.consumer().sourceRoot||this.map.root||".",m)}origin(m,b,g,x){if(!this.map)return!1;let v=this.map.consumer(),S=v.originalPositionFor({column:b,line:m});if(!S.source)return!1;let y;typeof g=="number"&&(y=v.originalPositionFor({column:x,line:g}));let w;a(S.source)?w=n(S.source):w=new URL(S.source,this.map.consumer().sourceRoot||n(this.map.mapFile));let L={column:S.column,endColumn:y&&y.column,endLine:y&&y.line,line:S.line,url:w.toString()};if(w.protocol==="file:")if(r)L.file=r(w);else throw new Error("file: protocol is not available in this PostCSS build");let C=v.sourceContentFor(S.source);return C&&(L.source=C),L}toJSON(){let m={};for(let b of["hasBOM","css","file","id"])this[b]!=null&&(m[b]=this[b]);return this.map&&(m.map={...this.map},m.map.consumerCache&&(m.map.consumerCache=void 0)),m}get from(){return this.file||this.id}}return Pf=f,f.default=f,i&&i.registerInput&&i.registerInput(f),Pf}var Nf,ty;function dw(){if(ty)return Nf;ty=1;let{SourceMapConsumer:e,SourceMapGenerator:t}=xr,{dirname:r,relative:n,resolve:a,sep:o}=xr,{pathToFileURL:s}=xr,i=tu(),l=!!(e&&t),d=!!(r&&a&&n&&o);class u{constructor(c,f,h,m){this.stringify=c,this.mapOpts=h.map||{},this.root=f,this.opts=h,this.css=m,this.originalCSS=m,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let c;this.isInline()?c="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?c=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?c=this.mapOpts.annotation(this.opts.to,this.root):c=this.outputFile()+".map";let f=`
53
53
  `;this.css.includes(`\r
54
- `)&&(p=`\r
55
- `),this.css+=p+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let p=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,p,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let p=this.root.nodes.length-1;p>=0;p--)c=this.root.nodes[p],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(p)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,p=>{c+=p}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,p=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},S,g;this.stringify(this.root,(x,v,b)=>{if(this.css+=x,v&&b!=="end"&&(m.generated.line=c,m.generated.column=p-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),S=x.match(/\n/g),S?(c+=S.length,g=x.lastIndexOf(`
56
- `),p=x.length-g):p+=x.length,v&&b!=="start"){let w=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==w.last||w.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=p-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=p-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(p=>p.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let p=this.memoizedPaths.get(c);if(p)return p;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(n(h,this.mapOpts.annotation)));let m=a(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let p=c.source.input.map;this.previousMaps.includes(p)||this.previousMaps.push(p)}});else{let c=new s(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(p=>{if(p.source){let h=p.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,p.source.input.css)}}});else if(this.css){let p=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(p,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let p=this.memoizedFileURLs.get(c);if(p)return p;if(i){let h=i(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let p=this.memoizedURLs.get(c);if(p)return p;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Rf=u,Rf}var Ef,Zv;function tu(){if(Zv)return Ef;Zv=1;let e=Jl();class t extends e{constructor(a){super(a),this.type="comment"}}return Ef=t,t.default=t,Ef}var Pf,ey;function Va(){if(ey)return Pf;ey=1;let{isClean:e,my:t}=Op(),r=Zl(),a=tu(),n=Jl(),o,i,s,l;function d(c){return c.map(p=>(p.nodes&&(p.nodes=d(p.nodes)),delete p.source,p))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let p of c.proxyOf.nodes)u(p)}class f extends n{append(...p){for(let h of p){let m=this.normalize(h,this.last);for(let S of m)this.proxyOf.nodes.push(S)}return this.markDirty(),this}cleanRaws(p){if(super.cleanRaws(p),this.nodes)for(let h of this.nodes)h.cleanRaws(p)}each(p){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,S;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],S=p(this.proxyOf.nodes[m],m),S!==!1);)this.indexes[h]+=1;return delete this.indexes[h],S}every(p){return this.nodes.every(p)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let p=this.lastEach;return this.indexes[p]=0,p}getProxyProcessor(){return{get(p,h){return h==="proxyOf"?p:p[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>p[h](...m.map(S=>typeof S=="function"?(g,x)=>S(g.toProxy(),x):S)):h==="every"||h==="some"?m=>p[h]((S,...g)=>m(S.toProxy(),...g)):h==="root"?()=>p.root().toProxy():h==="nodes"?p.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?p[h].toProxy():p[h]:p[h]},set(p,h,m){return p[h]===m||(p[h]=m,(h==="name"||h==="params"||h==="selector")&&p.markDirty()),!0}}}index(p){return typeof p=="number"?p:(p.proxyOf&&(p=p.proxyOf),this.proxyOf.nodes.indexOf(p))}insertAfter(p,h){let m=this.index(p),S=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(p);for(let x of S)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+S.length);return this.markDirty(),this}insertBefore(p,h){let m=this.index(p),S=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],S).reverse();m=this.index(p);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(p,h){if(typeof p=="string")p=d(o(p).nodes);else if(typeof p>"u")p=[];else if(Array.isArray(p)){p=p.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type==="root"&&this.type!=="document"){p=p.nodes.slice(0);for(let S of p)S.parent&&S.parent.removeChild(S,"ignore")}else if(p.type)p=[p];else if(p.prop){if(typeof p.value>"u")throw new Error("Value field is missed in node creation");typeof p.value!="string"&&(p.value=String(p.value)),p=[new r(p)]}else if(p.selector)p=[new i(p)];else if(p.name)p=[new s(p)];else if(p.text)p=[new a(p)];else throw new Error("Unknown node type in node creation");return p.map(S=>(S[t]||f.rebuild(S),S=S.proxyOf,S.parent&&S.parent.removeChild(S),S[e]&&u(S),typeof S.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(S.raws.before=h.raws.before.replace(/\S/g,"")),S.parent=this.proxyOf,S))}prepend(...p){p=p.reverse();for(let h of p){let m=this.normalize(h,this.first,"prepend").reverse();for(let S of m)this.proxyOf.nodes.unshift(S);for(let S in this.indexes)this.indexes[S]=this.indexes[S]+m.length}return this.markDirty(),this}push(p){return p.parent=this,this.proxyOf.nodes.push(p),this}removeAll(){for(let p of this.proxyOf.nodes)p.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(p){p=this.index(p),this.proxyOf.nodes[p].parent=void 0,this.proxyOf.nodes.splice(p,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=p&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(p,h,m){return m||(m=h,h={}),this.walkDecls(S=>{h.props&&!h.props.includes(S.prop)||h.fast&&!S.value.includes(h.fast)||(S.value=S.value.replace(p,m))}),this.markDirty(),this}some(p){return this.nodes.some(p)}walk(p){return this.each((h,m)=>{let S;try{S=p(h,m)}catch(g){throw h.addToError(g)}return S!==!1&&h.walk&&(S=h.walk(p)),S})}walkAtRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="atrule"&&p.test(m.name))return h(m,S)}):this.walk((m,S)=>{if(m.type==="atrule"&&m.name===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="atrule")return h(m,S)}))}walkComments(p){return this.walk((h,m)=>{if(h.type==="comment")return p(h,m)})}walkDecls(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="decl"&&p.test(m.prop))return h(m,S)}):this.walk((m,S)=>{if(m.type==="decl"&&m.prop===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="decl")return h(m,S)}))}walkRules(p,h){return h?p instanceof RegExp?this.walk((m,S)=>{if(m.type==="rule"&&p.test(m.selector))return h(m,S)}):this.walk((m,S)=>{if(m.type==="rule"&&m.selector===p)return h(m,S)}):(h=p,this.walk((m,S)=>{if(m.type==="rule")return h(m,S)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return f.registerParse=c=>{o=c},f.registerRule=c=>{i=c},f.registerAtRule=c=>{s=c},f.registerRoot=c=>{l=c},Pf=f,f.default=f,f.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,s.prototype):c.type==="rule"?Object.setPrototypeOf(c,i.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,a.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(p=>{f.rebuild(p)})},Pf}var Tf,ty;function Fp(){if(ty)return Tf;ty=1;let e=Va(),t,r;class a extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},Tf=a,a.default=a,Tf}var Nf,ry;function lw(){if(ry)return Nf;ry=1;let e={};return Nf=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Nf}var Af,ay;function uw(){if(ay)return Af;ay=1;class e{constructor(r,a={}){if(this.type="warning",this.text=r,a.node&&a.node.source){let n=a.node.rangeBy(a);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in a)this[n]=a[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Af=e,e.default=e,Af}var Df,ny;function Bp(){if(ny)return Df;ny=1;let e=uw();class t{constructor(a,n,o){this.processor=a,this.messages=[],this.root=n,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(a,n={}){n.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(n.plugin=this.lastPlugin.postcssPlugin);let o=new e(a,n);return this.messages.push(o),o}warnings(){return this.messages.filter(a=>a.type==="warning")}get content(){return this.css}}return Df=t,t.default=t,Df}var Of,oy;function n1(){if(oy)return Of;oy=1;let e=39,t=34,r=92,a=47,n=10,o=32,i=12,s=9,l=13,d=91,u=93,f=40,c=41,p=123,h=125,m=59,S=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,b=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,w=/.[\r\n"'(/\\]/,y=/[\da-f]/i;return Of=function(C,M={}){let I=C.css.valueOf(),D=M.ignoreErrors,A,k,ke,Ie,ue,j,Se,ze,be,we,wr=I.length,E=0,vt=[],yt=[];function Ia(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function Sr(X){if(yt.length)return yt.pop();if(E>=wr)return;let _e=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case n:case o:case s:case l:case i:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===n||A===s||A===l||A===i);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case p:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case f:{if(ze=vt.length?vt.pop()[1]:"",be=I.charCodeAt(E+1),ze==="url"&&be!==e&&be!==t&&be!==o&&be!==n&&be!==s&&be!==i&&be!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||_e){k=E;break}else Qe("bracket");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||w.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||_e){k=E+1;break}else Qe("string");for(Se=k;I.charCodeAt(Se-1)===r;)Se-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==a&&A!==o&&A!==n&&A!==s&&A!==l&&A!==i&&(k+=1,y.test(I.charAt(k)))){for(;y.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===a&&I.charCodeAt(E+1)===S?(k=I.indexOf("*/",E+2)+1,k===0&&(D||_e?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(b.lastIndex=E+1,b.test(I),b.lastIndex===0?k=I.length-1:k=b.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function br(X){yt.push(X)}return{back:br,endOfFile:it,nextToken:Sr,position:Ia}},Of}var Ff,sy;function zp(){if(sy)return Ff;sy=1;let e=Va();class t extends e{constructor(a){super(a),this.type="atrule"}append(...a){return this.proxyOf.nodes||(this.nodes=[]),super.append(...a)}prepend(...a){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...a)}}return Ff=t,t.default=t,e.registerAtRule(t),Ff}var Bf,iy;function ps(){if(iy)return Bf;iy=1;let e=Va(),t,r;class a extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,i,s){let l=super.normalize(o);if(i){if(s==="prepend")this.nodes.length>1?i.raws.before=this.nodes[1].raws.before:delete i.raws.before;else if(this.first!==i)for(let d of l)d.raws.before=i.raws.before}return l}removeChild(o,i){let s=this.index(o);return!i&&s===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[s].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return a.registerLazyResult=n=>{t=n},a.registerProcessor=n=>{r=n},Bf=a,a.default=a,e.registerRoot(a),Bf}var zf,ly;function dw(){if(ly)return zf;ly=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
57
- `," "];return e.split(t,r)},split(t,r,a){let n=[],o="",i=!1,s=0,l=!1,d="",u=!1;for(let f of t)u?u=!1:f==="\\"?u=!0:l?f===d&&(l=!1):f==='"'||f==="'"?(l=!0,d=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&r.includes(f)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=f;return(a||o!=="")&&n.push(o.trim()),n}};return zf=e,e.default=e,zf}var Uf,uy;function Up(){if(uy)return Uf;uy=1;let e=Va(),t=dw();class r extends e{constructor(n){super(n),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(n){let o=this.selector?this.selector.match(/,\s*/):null,i=o?o[0]:","+this.raw("between","beforeOpen");this.selector=n.join(i)}}return Uf=r,r.default=r,e.registerRule(r),Uf}var qf,dy;function o1(){if(dy)return qf;dy=1;let e=Zl(),t=n1(),r=tu(),a=zp(),n=ps(),o=Up(),i={empty:!0,space:!0};function s(d){for(let u=d.length-1;u>=0;u--){let f=d[u],c=f[3]||f[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new n,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let f=new a;f.name=u[1].slice(1),f.name===""&&this.unnamedAtrule(f,u),this.init(f,u[2]);let c,p,h,m=!1,S=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){f.source.end=this.getPosition(u[2]),f.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){S=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,p=g[h];p&&p[0]==="space";)p=g[--h];p&&(f.source.end=this.getPosition(p[3]||p[2]),f.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}f.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(f.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(f,"params",g),m&&(u=g[g.length-1],f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++,this.spaces=f.raws.between,f.raws.between="")):(f.raws.afterName="",f.params=""),S&&(f.nodes=[],this.current=f)}checkMissedSemicolon(u){let f=this.colon(u);if(f===!1)return;let c=0,p;for(let h=f-1;h>=0&&(p=u[h],!(p[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",p[0]==="word"?p[3]+1:p[2])}colon(u){let f=0,c,p,h;for(let[m,S]of u.entries()){if(c=S,p=c[0],p==="("&&(f+=1),p===")"&&(f-=1),f===0&&p===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let f=new r;this.init(f,u[2]),f.source.end=this.getPosition(u[3]||u[2]),f.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))f.text="",f.raws.left=c,f.raws.right="";else{let p=c.match(/^(\s*)([^]*\S)(\s*)$/);f.text=p[2],f.raws.left=p[1],f.raws.right=p[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,f){let c=new e;this.init(c,u[0][2]);let p=u[u.length-1];for(p[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(p[3]||p[2]||s(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],S;for(;u.length&&(S=u[0][0],!(S!=="space"&&S!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),b="";for(let w=x;w>0;w--){let y=v[w][0];if(b.trim().indexOf("!")===0&&y!=="space")break;b=v.pop()[1]+b}b.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=b,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),f),c.value.includes(":")&&!f&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let f=new o;this.init(f,u[2]),f.selector="",f.raws.between="",this.current=f}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let f=this.current.nodes[this.current.nodes.length-1];f&&f.type==="rule"&&!f.raws.ownSemicolon&&(f.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let f=this.input.fromOffset(u);return{column:f.col,line:f.line,offset:u}}init(u,f){this.current.push(u),u.source={input:this.input,start:this.getPosition(f)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let f=!1,c=null,p=!1,h=null,m=[],S=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(S&&p&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(p){this.decl(g,S);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),f=!0;break}else c===":"&&(p=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(f=!0),m.length>0&&this.unclosedBracket(h),f&&p){if(!S)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,S)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,f,c,p){let h,m,S=c.length,g="",x=!0,v,b;for(let w=0;w<S;w+=1)h=c[w],m=h[0],m==="space"&&w===S-1&&!p?x=!1:m==="comment"?(b=c[w-1]?c[w-1][0]:"empty",v=c[w+1]?c[w+1][0]:"empty",!i[b]&&!i[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let w=c.reduce((y,L)=>y+L[1],"");u.raws[f]={raw:w,value:g}}u[f]=g}rule(u){u.pop();let f=new o;this.init(f,u[0][2]),f.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(f,"selector",u),this.current=f}spacesAndCommentsFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],!(f!=="space"&&f!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let f,c="";for(;u.length&&(f=u[0][0],!(f!=="space"&&f!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let f,c="";for(;u.length&&(f=u[u.length-1][0],f==="space");)c=u.pop()[1]+c;return c}stringFrom(u,f){let c="";for(let p=f;p<u.length;p++)c+=u[p][1];return u.splice(f,u.length-f),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,f){throw this.input.error("At-rule without name",{offset:f[2]},{offset:f[2]+f[1].length})}}return qf=l,qf}var $f,cy;function qp(){if(cy)return $f;cy=1;let e=Va(),t=o1(),r=eu();function a(n,o){let i=new r(n,o),s=new t(i);try{s.parse()}catch(l){throw l}return s.root}return $f=a,a.default=a,e.registerParse(a),$f}var Hf,fy;function cw(){if(fy)return Hf;fy=1;let{isClean:e,my:t}=Op(),r=iw(),a=Yl(),n=Va(),o=Fp(),i=lw(),s=Bp(),l=qp(),d=ps(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},p=0;function h(b){return typeof b=="object"&&typeof b.then=="function"}function m(b){let w=!1,y=u[b.type];return b.type==="decl"?w=b.prop.toLowerCase():b.type==="atrule"&&(w=b.name.toLowerCase()),w&&b.append?[y,y+"-"+w,p,y+"Exit",y+"Exit-"+w]:w?[y,y+"-"+w,y+"Exit",y+"Exit-"+w]:b.append?[y,p,y+"Exit"]:[y,y+"Exit"]}function S(b){let w;return b.type==="document"?w=["Document",p,"DocumentExit"]:b.type==="root"?w=["Root",p,"RootExit"]:w=m(b),{eventIndex:0,events:w,iterator:0,node:b,visitorIndex:0,visitors:[]}}function g(b){return b[e]=!1,b.nodes&&b.nodes.forEach(w=>g(w)),b}let x={};class v{constructor(w,y,L){this.stringified=!1,this.processed=!1;let C;if(typeof y=="object"&&y!==null&&(y.type==="root"||y.type==="document"))C=g(y);else if(y instanceof v||y instanceof s)C=g(y.root),y.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=y.map);else{let M=l;L.syntax&&(M=L.syntax.parse),L.parser&&(M=L.parser),M.parse&&(M=M.parse);try{C=M(y,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&n.rebuild(C)}this.result=new s(w,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(M=>typeof M=="object"&&M.prepare?{...M,...M.prepare(this.result)}:M)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,y){let L=this.result.lastPlugin;try{y&&y.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=L.postcssPlugin,w.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return w}prepareVisitors(){this.listeners={};let w=(y,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([y,C])};for(let y of this.plugins)if(typeof y=="object")for(let L in y){if(!f[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${y.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof y[L]=="object")for(let C in y[L])C==="*"?w(y,L,y[L][C]):w(y,L+"-"+C.toLowerCase(),y[L][C]);else typeof y[L]=="function"&&w(y,L,y[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let y=this.plugins[w],L=this.runOnRoot(y);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];){w[e]=!0;let y=[S(w)];for(;y.length>0;){let L=this.visitTick(y);if(h(L))try{await L}catch(C){let M=y[y.length-1].node;throw this.handleError(C,M)}}}if(this.listeners.OnceExit)for(let[y,L]of this.listeners.OnceExit){this.result.lastPlugin=y;try{if(w.type==="document"){let C=w.nodes.map(M=>L(M,this.helpers));await Promise.all(C)}else await L(w,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let y=this.result.root.nodes.map(L=>w.Once(L,this.helpers));return h(y[0])?Promise.all(y):y}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(y){throw this.handleError(y)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,y=a;w.syntax&&(y=w.syntax.stringify),w.stringifier&&(y=w.stringifier),y.stringify&&(y=y.stringify);let C=new r(y,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let y=this.runOnRoot(w);if(h(y))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[e];)w[e]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let y of w.nodes)this.visitSync(this.listeners.OnceExit,y);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,y){return this.async().then(w,y)}toString(){return this.css}visitSync(w,y){for(let[L,C]of w){this.result.lastPlugin=L;let M;try{M=C(y,this.helpers)}catch(I){throw this.handleError(I,y.proxyOf)}if(y.type!=="root"&&y.type!=="document"&&!y.parent)return!0;if(h(M))throw this.getAsyncError()}}visitTick(w){let y=w[w.length-1],{node:L,visitors:C}=y;if(L.type!=="root"&&L.type!=="document"&&!L.parent){w.pop();return}if(C.length>0&&y.visitorIndex<C.length){let[I,D]=C[y.visitorIndex];y.visitorIndex+=1,y.visitorIndex===C.length&&(y.visitors=[],y.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(y.iterator!==0){let I=y.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,w.push(S(D));return}y.iterator=0,delete L.indexes[I]}let M=y.events;for(;y.eventIndex<M.length;){let I=M[y.eventIndex];if(y.eventIndex+=1,I===p){L.nodes&&L.nodes.length&&(L[e]=!0,y.iterator=L.getIterator());return}else if(this.listeners[I]){y.visitors=this.listeners[I];return}}w.pop()}walkSync(w){w[e]=!0;let y=m(w);for(let L of y)if(L===p)w.nodes&&w.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,w.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=b=>{x=b},Hf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Hf}var Wf,py;function s1(){if(py)return Wf;py=1;let e=iw(),t=Yl(),r=lw(),a=qp(),n=Bp();class o{constructor(s,l,d){l=l.toString(),this.stringified=!1,this._processor=s,this._css=l,this._opts=d,this._map=void 0;let u,f=t;this.result=new n(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let p=new e(f,u,this._opts,l);if(p.isMap()){let[h,m]=p.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else p.clearAnnotation(),this.result.css=p.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(s){return this.async().catch(s)}finally(s){return this.async().then(s,s)}sync(){if(this.error)throw this.error;return this.result}then(s,l){return this.async().then(s,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let s,l=a;try{s=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=s,s}get[Symbol.toStringTag](){return"NoWorkResult"}}return Wf=o,o.default=o,Wf}var jf,my;function i1(){if(my)return jf;my=1;let e=s1(),t=cw(),r=Fp(),a=ps();class n{constructor(i=[]){this.version="8.4.38",this.plugins=this.normalize(i)}normalize(i){let s=[];for(let l of i)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))s=s.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)s.push(l);else if(typeof l=="function")s.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return s}process(i,s={}){return!this.plugins.length&&!s.parser&&!s.stringifier&&!s.syntax?new e(this,i,s):new t(this,i,s)}use(i){return this.plugins=this.plugins.concat(this.normalize([i])),this}}return jf=n,n.default=n,a.registerProcessor(n),r.registerProcessor(n),jf}var Vf,hy;function l1(){if(hy)return Vf;hy=1;let e=Zl(),t=sw(),r=tu(),a=zp(),n=eu(),o=ps(),i=Up();function s(l,d){if(Array.isArray(l))return l.map(c=>s(c));let{inputs:u,...f}=l;if(u){d=[];for(let c of u){let p={...c,__proto__:n.prototype};p.map&&(p.map={...p.map,__proto__:t.prototype}),d.push(p)}}if(f.nodes&&(f.nodes=l.nodes.map(c=>s(c,d))),f.source){let{inputId:c,...p}=f.source;f.source=p,c!=null&&(f.source.input=d[c])}if(f.type==="root")return new o(f);if(f.type==="decl")return new e(f);if(f.type==="rule")return new i(f);if(f.type==="comment")return new r(f);if(f.type==="atrule")return new a(f);throw new Error("Unknown node type: "+l.type)}return Vf=s,s.default=s,Vf}var Gf,gy;function u1(){if(gy)return Gf;gy=1;let e=Dp(),t=Zl(),r=cw(),a=Va(),n=i1(),o=Yl(),i=l1(),s=Fp(),l=uw(),d=tu(),u=zp(),f=Bp(),c=eu(),p=qp(),h=dw(),m=Up(),S=ps(),g=Jl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new n(v)}return x.plugin=function(b,w){let y=!1;function L(...M){console&&console.warn&&!y&&(y=!0,console.warn(b+`: postcss.plugin was deprecated. Migration guide:
58
- https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(b+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
59
- https://www.w3ctech.com/topic/2226`));let I=w(...M);return I.postcssPlugin=b,I.postcssVersion=new n().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(M,I,D){return x([L(D)]).process(M,I)},L},x.stringify=o,x.parse=p,x.fromJSON=i,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new S(v),x.document=v=>new s(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=a,x.Processor=n,x.Document=s,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=f,x.Input=c,x.Rule=m,x.Root=S,x.Node=g,r.registerPostcss(x),Gf=x,x.default=x,Gf}var d1=u1(),Be=JL(d1);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ce||{});function c1(e){let t={},r=/;(?![^(]*\))/g,a=/:(.+)/,n=/\/\*.*?\*\//g;return e.replace(n,"").split(r).forEach(function(o){if(o){let i=o.split(a);i.length>1&&(t[tp(i[0].trim())]=i[1].trim())}}),t}function xy(e){let t=[];for(let r in e){let a=e[r];if(typeof a!="string")continue;let n=h1(r);t.push(`${n}: ${a};`)}return t.join(" ")}var f1=/-([a-z])/g,p1=/^--[a-zA-Z0-9-]+$/,tp=e=>p1.test(e)?e:e.replace(f1,(t,r)=>r?r.toUpperCase():""),m1=/\B([A-Z])/g,h1=e=>e.replace(m1,"-$1").toLowerCase(),vr=class e{constructor(...t){z(this,"parentElement",null),z(this,"parentNode",null),z(this,"ownerDocument"),z(this,"firstChild",null),z(this,"lastChild",null),z(this,"previousSibling",null),z(this,"nextSibling",null),z(this,"ELEMENT_NODE",1),z(this,"TEXT_NODE",3),z(this,"nodeType"),z(this,"nodeName"),z(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},rp=class e extends vr{constructor(...t){super(t),z(this,"nodeType",9),z(this,"nodeName","#document"),z(this,"compatMode","CSS1Compat"),z(this,"RRNodeType",ce.Document),z(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===ce.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===ce.Element||r===ce.DocumentType)&&this.childNodes.some(n=>n.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=$p(this,t);return a.parentElement=null,a}insertBefore(t,r){let a=t.RRNodeType;if((a===ce.Element||a===ce.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===a))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${a===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=fw(this,t,r);return n.parentElement=null,n}removeChild(t){return pw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let a=this.createDocumentType("html",r,"");this.open(),this.appendChild(a)}}createDocument(t,r,a){return new e}createDocumentType(t,r,a){let n=new Nl(t,r,a);return n.ownerDocument=this,n}createElement(t){let r=new Qn(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Al(t);return r.ownerDocument=this,r}createComment(t){let r=new Dl(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Ol(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Nl=class extends vr{constructor(t,r,a){super(),z(this,"nodeType",10),z(this,"RRNodeType",ce.DocumentType),z(this,"name"),z(this,"publicId"),z(this,"systemId"),z(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=a,this.nodeName=t}toString(){return"RRDocumentType"}},Qn=class extends vr{constructor(t){super(),z(this,"nodeType",1),z(this,"RRNodeType",ce.Element),z(this,"tagName"),z(this,"attributes",{}),z(this,"shadowRoot",null),z(this,"scrollLeft"),z(this,"scrollTop"),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.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new op(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?c1(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(a,n,o)=>{if(r.test(a))return;let i=tp(a);n?t[i]=n:delete t[i],o==="important"&&(t[i]+=" !important"),this.attributes.style=xy(t)},t.removeProperty=a=>{if(r.test(a))return"";let n=tp(a),o=t[n]||"";return delete t[n],this.attributes.style=xy(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,a){this.setAttribute(r,a)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return $p(this,t)}insertBefore(t,r){return fw(this,t,r)}removeChild(t){return pw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},ap=class extends Qn{constructor(){super(...arguments),z(this,"currentTime"),z(this,"volume"),z(this,"paused"),z(this,"muted"),z(this,"playbackRate"),z(this,"loop")}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}},np=class extends Qn{constructor(){super(...arguments),z(this,"tagName","DIALOG"),z(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Al=class extends vr{constructor(t){super(),z(this,"nodeType",3),z(this,"nodeName","#text"),z(this,"RRNodeType",ce.Text),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Dl=class extends vr{constructor(t){super(),z(this,"nodeType",8),z(this,"nodeName","#comment"),z(this,"RRNodeType",ce.Comment),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Ol=class extends vr{constructor(t){super(),z(this,"nodeName","#cdata-section"),z(this,"nodeType",4),z(this,"RRNodeType",ce.CDATA),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},op=class{constructor(t,r){if(z(this,"onChange"),z(this,"classes",[]),z(this,"add",(...a)=>{for(let n of a){let o=String(n);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),z(this,"remove",(...a)=>{this.classes=this.classes.filter(n=>a.indexOf(n)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let a=t.trim().split(/\s+/);this.classes.push(...a)}this.onChange=r}};function $p(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function fw(e,t,r){if(!r)return $p(e,t);if(r.parentNode!==e)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 t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function pw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var $t=(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",e))($t||{}),sp={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},g1={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"},Rr=null;function Fl(e,t,r,a=t.mirror||t.ownerDocument.mirror){e=x1(e,t,r,a),mw(e,t,r,a),v1(e,t,r)}function x1(e,t,r,a){var n;if(r.afterAppend&&!Rr&&(Rr=new WeakSet,setTimeout(()=>{Rr=null},0)),!Hp(e,t)){let o=Bl(t,r.mirror,a);(n=e.parentNode)==null||n.replaceChild(o,e),e=o}switch(t.RRNodeType){case ce.Document:{if(!Hn(e,t,r.mirror,a)){let o=a.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Rr?.add(e))}break}case ce.Element:{let o=e,i=t;switch(i.tagName){case"IFRAME":{let s=e.contentDocument;if(!s)break;Fl(s,t.contentDocument,r,a);break}}i.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),mw(o.shadowRoot,i.shadowRoot,r,a)),y1(o,i,a);break}}return e}function v1(e,t,r){var a;switch(t.RRNodeType){case ce.Document:{let n=t.scrollData;n&&r.applyScroll(n,!0);break}case ce.Element:{let n=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let i=e,s=o;s.paused!==void 0&&(s.paused?i.pause():i.play()),s.muted!==void 0&&(i.muted=s.muted),s.volume!==void 0&&(i.volume=s.volume),s.currentTime!==void 0&&(i.currentTime=s.currentTime),s.playbackRate!==void 0&&(i.playbackRate=s.playbackRate),s.loop!==void 0&&(i.loop=s.loop);break}case"CANVAS":{let i=t;if(i.rr_dataURL!==null){let s=document.createElement("img");s.onload=()=>{let l=n.getContext("2d");l&&l.drawImage(s,0,0,s.width,s.height)},s.src=i.rr_dataURL}i.canvasMutations.forEach(s=>r.applyCanvas(s.event,s.mutation,e));break}case"STYLE":{let i=n.sheet;i&&t.rules.forEach(s=>r.applyStyleSheetMutation(s,i));break}case"DIALOG":{let i=n,s=o,l=i.open,d=i.matches("dialog:modal"),u=s.open,f=s.isModal,c=d!==f,p=l!==u;if((c||l&&p)&&i.close(),u&&(p||c))try{f?i.showModal():i.show()}catch(h){console.warn(h)}break}}break}case ce.Text:case ce.Comment:case ce.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Rr?.has(e)&&(Rr.delete(e),(a=r.afterAppend)==null||a.call(r,e,r.mirror.getId(e)))}function y1(e,t,r){let a=e.attributes,n=t.attributes;for(let o in n){let i=n[o],s=r.getMeta(t);if(s?.isSVG&&sp[o])e.setAttributeNS(sp[o],o,i);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let l=document.createElement("img");l.src=i,l.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,i)}catch(l){console.warn(l)}}}for(let{name:o}of Array.from(a))o in n||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function mw(e,t,r,a){let n=Array.from(e.childNodes),o=t.childNodes;if(n.length===0&&o.length===0)return;let i=0,s=n.length-1,l=0,d=o.length-1,u=n[i],f=n[s],c=o[l],p=o[d],h,m;for(;i<=s&&l<=d;)if(u===void 0)u=n[++i];else if(f===void 0)f=n[--s];else if(Hn(u,c,r.mirror,a))u=n[++i],c=o[++l];else if(Hn(f,p,r.mirror,a))f=n[--s],p=o[--d];else if(Hn(u,p,r.mirror,a)){try{e.insertBefore(u,f.nextSibling)}catch(x){console.warn(x)}u=n[++i],p=o[--d]}else if(Hn(f,c,r.mirror,a)){try{e.insertBefore(f,u)}catch(x){console.warn(x)}f=n[--s],c=o[++l]}else{if(!h){h={};for(let v=i;v<=s;v++){let b=n[v];b&&r.mirror.hasNode(b)&&(h[r.mirror.getId(b)]=v)}}m=h[a.getId(c)];let x=n[m];if(m!==void 0&&x&&Hn(x,c,r.mirror,a)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}n[m]=void 0}else{let v=Bl(c,r.mirror,a);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=n[++i]);try{e.insertBefore(v,u||null)}catch(b){console.warn(b)}}c=o[++l]}if(i>s){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(a.getId(x)));l<=d;++l){let b=Bl(o[l],r.mirror,a);try{e.insertBefore(b,v)}catch(w){console.warn(w)}}}else if(l>d)for(;i<=s;i++){let x=n[i];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let S=e.firstChild,g=t.firstChild;for(;S!==null&&g!==null;)Fl(S,g,r,a),S=S.nextSibling,g=g.nextSibling}function Bl(e,t,r){let a=r.getId(e),n=r.getMeta(e),o=null;if(a>-1&&(o=t.getNode(a)),o!==null&&Hp(o,e))return o;switch(e.RRNodeType){case ce.Document:o=new Document;break;case ce.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case ce.Element:{let i=e.tagName.toLowerCase();i=g1[i]||i,n&&"isSVG"in n&&n?.isSVG?o=document.createElementNS(sp.svg,i):o=document.createElement(e.tagName);break}case ce.Text:o=document.createTextNode(e.data);break;case ce.Comment:o=document.createComment(e.data);break;case ce.CDATA:o=document.createCDATASection(e.data);break}n&&t.add(o,{...n});try{Rr?.add(o)}catch{}return o}function Hp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Hn(e,t,r,a){let n=r.getId(e),o=a.getId(t);return n===-1||n!==o?!1:Hp(e,t)}var Yn=class e extends rp{constructor(t){super(),z(this,"UNSERIALIZED_STARTING_ID",-2),z(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),z(this,"mirror",I1()),z(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,a){return new e}createDocumentType(t,r,a){let n=new w1(t,r,a);return n.ownerDocument=this,n}createElement(t){let r=t.toUpperCase(),a;switch(r){case"AUDIO":case"VIDEO":a=new ip(r);break;case"IFRAME":a=new cp(r,this.mirror);break;case"CANVAS":a=new up(r);break;case"STYLE":a=new dp(r);break;case"DIALOG":a=new lp(r);break;default:a=new Jn(r);break}return a.ownerDocument=this,a}createComment(t){let r=new b1(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new C1(t);return r.ownerDocument=this,r}createTextNode(t){let r=new S1(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},w1=Nl,Jn=class extends Qn{constructor(){super(...arguments),z(this,"inputData",null),z(this,"scrollData",null)}},ip=class extends ap{},lp=class extends np{},up=class extends Jn{constructor(){super(...arguments),z(this,"rr_dataURL",null),z(this,"canvasMutations",[])}getContext(){return null}},dp=class extends Jn{constructor(){super(...arguments),z(this,"rules",[])}},cp=class extends Jn{constructor(t,r){super(t),z(this,"contentDocument",new Yn),this.contentDocument.mirror=r}},S1=Al,b1=Dl,C1=Ol;function L1(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function hw(e,t,r,a){let n;switch(e.nodeType){case $t.DOCUMENT_NODE:a&&a.nodeName==="IFRAME"?n=a.contentDocument:(n=t,n.compatMode=e.compatMode);break;case $t.DOCUMENT_TYPE_NODE:{let i=e;n=t.createDocumentType(i.name,i.publicId,i.systemId);break}case $t.ELEMENT_NODE:{let i=e,s=L1(i);n=t.createElement(s);let l=n;for(let{name:d,value:u}of Array.from(i.attributes))l.attributes[d]=u;i.scrollLeft&&(l.scrollLeft=i.scrollLeft),i.scrollTop&&(l.scrollTop=i.scrollTop);break}case $t.TEXT_NODE:n=t.createTextNode(e.textContent||"");break;case $t.CDATA_SECTION_NODE:n=t.createCDATASection(e.data);break;case $t.COMMENT_NODE:n=t.createComment(e.textContent||"");break;case $t.DOCUMENT_FRAGMENT_NODE:n=a.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof Yn&&(o||(o=gw(n,t.unserializedId),r.add(e,o)),t.mirror.add(n,{...o})),n}function k1(e,t=YL(),r=new Yn){function a(n,o){let i=hw(n,r,t,o);if(i!==null)if(o?.nodeName!=="IFRAME"&&n.nodeType!==$t.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(i),i.parentNode=o,i.parentElement=o),n.nodeName==="IFRAME"){let s=n.contentDocument;s&&a(s,i)}else(n.nodeType===$t.DOCUMENT_NODE||n.nodeType===$t.ELEMENT_NODE||n.nodeType===$t.DOCUMENT_FRAGMENT_NODE)&&(n.nodeType===$t.ELEMENT_NODE&&n.shadowRoot&&a(n.shadowRoot,i),n.childNodes.forEach(s=>a(s,i)))}return a(e,null),r}function I1(){return new fp}var fp=class{constructor(){z(this,"idNodeMap",new Map),z(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let r=this.getId(t);this.idNodeMap.delete(r),t.childNodes&&t.childNodes.forEach(a=>this.removeNodeFromMap(a))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,r){let a=r.id;this.idNodeMap.set(a,t),this.nodeMetaMap.set(t,r)}replace(t,r){let a=this.getNode(t);if(a){let n=this.nodeMetaMap.get(a);n&&this.nodeMetaMap.set(r,n)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function gw(e,t){switch(e.RRNodeType){case ce.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case ce.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case ce.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case ce.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var vy={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},yy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Cl={},xw={},M1=()=>!!globalThis.Zone;function Wp(e){if(Cl[e])return Cl[e];let t=globalThis[e],r=t.prototype,a=e in vy?vy[e]:void 0,n=!!(a&&a.every(s=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,s))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in yy?yy[e]:void 0,i=!!(o&&o.every(s=>{var l;return typeof r[s]=="function"&&((l=r[s])==null?void 0:l.toString().includes("[native code]"))}));if(n&&i&&!M1())return Cl[e]=t.prototype,t.prototype;try{let s=document.createElement("iframe");s.style.display="none",document.body.appendChild(s);let l=s.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return s.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(s.classList.add("rr-block"),s.setAttribute("__rrwebUntaintedMutationObserver",""),xw[e]=()=>s.remove()):s.remove(),Cl[e]=d}catch{return r}}var Xf={};function Gr(e,t,r){var a;let n=`${e}.${String(r)}`;if(Xf[n])return Xf[n].call(t);let o=Wp(e),i=(a=Object.getOwnPropertyDescriptor(o,r))==null?void 0:a.get;return i?(Xf[n]=i,i.call(t)):t[r]}var Kf={};function vw(e,t,r){let a=`${e}.${String(r)}`;if(Kf[a])return Kf[a].bind(t);let o=Wp(e)[r];return typeof o!="function"?t[r]:(Kf[a]=o,o.bind(t))}function _1(e){return Gr("Node",e,"ownerDocument")}function R1(e){return Gr("Node",e,"childNodes")}function E1(e){return Gr("Node",e,"parentNode")}function P1(e){return Gr("Node",e,"parentElement")}function T1(e){return Gr("Node",e,"textContent")}function N1(e,t){return vw("Node",e,"contains")(t)}function A1(e){return vw("Node",e,"getRootNode")()}function D1(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function O1(e){return e.styleSheets}function F1(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function B1(e,t){return Gr("Element",e,"querySelector")(t)}function z1(e,t){return Gr("Element",e,"querySelectorAll")(t)}function yw(){return[Wp("MutationObserver").constructor,xw.MutationObserver??(()=>{})]}var ds=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ds=()=>new Date().getTime());function Ga(e,t,r){try{if(!(t in e))return()=>{};let a=e[t],n=r(a);return typeof n=="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:a}})),e[t]=n,()=>{e[t]=a}}catch{return()=>{}}}var ae={ownerDocument:_1,childNodes:R1,parentNode:E1,parentElement:P1,textContent:T1,contains:N1,getRootNode:A1,host:D1,styleSheets:O1,shadowRoot:F1,querySelector:B1,querySelectorAll:z1,nowTimestamp:ds,mutationObserverCtor:yw,patch:Ga};function Lt(e,t,r=document){let a={capture:!0,passive:!0};return r.addEventListener(e,t,a),()=>r.removeEventListener(e,t,a)}var Wn=`Please stop import mirror directly. Instead of that,\r
54
+ `)&&(f=`\r
55
+ `),this.css+=f+"/*# sourceMappingURL="+c+" */"}applyPrevMaps(){for(let c of this.previous()){let f=this.toUrl(this.path(c.file)),h=c.root||r(c.file),m;this.mapOpts.sourcesContent===!1?(m=new e(c.text),m.sourcesContent&&(m.sourcesContent=null)):m=c.consumer(),this.map.applySourceMap(m,f,this.toUrl(this.path(h)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let c;for(let f=this.root.nodes.length-1;f>=0;f--)c=this.root.nodes[f],c.type==="comment"&&c.text.indexOf("# sourceMappingURL=")===0&&this.root.removeChild(f)}else this.css&&(this.css=this.css.replace(/\n*?\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),d&&l&&this.isMap())return this.generateMap();{let c="";return this.stringify(this.root,f=>{c+=f}),[c]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let c=this.previous()[0].consumer();c.file=this.outputFile(),this.map=t.fromSourceMap(c,{ignoreInvalidMapping:!0})}else this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new t({file:this.outputFile(),ignoreInvalidMapping:!0});let c=1,f=1,h="<no source>",m={generated:{column:0,line:0},original:{column:0,line:0},source:""},b,g;this.stringify(this.root,(x,v,S)=>{if(this.css+=x,v&&S!=="end"&&(m.generated.line=c,m.generated.column=f-1,v.source&&v.source.start?(m.source=this.sourcePath(v),m.original.line=v.source.start.line,m.original.column=v.source.start.column-1,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,this.map.addMapping(m))),b=x.match(/\n/g),b?(c+=b.length,g=x.lastIndexOf(`
56
+ `),f=x.length-g):f+=x.length,v&&S!=="start"){let y=v.parent||{raws:{}};(!(v.type==="decl"||v.type==="atrule"&&!v.nodes)||v!==y.last||y.raws.semicolon)&&(v.source&&v.source.end?(m.source=this.sourcePath(v),m.original.line=v.source.end.line,m.original.column=v.source.end.column-1,m.generated.line=c,m.generated.column=f-2,this.map.addMapping(m)):(m.source=h,m.original.line=1,m.original.column=0,m.generated.line=c,m.generated.column=f-1,this.map.addMapping(m)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(c=>c.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let c=this.mapOpts.annotation;return typeof c<"u"&&c!==!0?!1:this.previous().length?this.previous().some(f=>f.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(c=>c.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(c){if(this.mapOpts.absolute||c.charCodeAt(0)===60||/^\w+:\/\//.test(c))return c;let f=this.memoizedPaths.get(c);if(f)return f;let h=this.opts.to?r(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(h=r(a(h,this.mapOpts.annotation)));let m=n(h,c);return this.memoizedPaths.set(c,m),m}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(c=>{if(c.source&&c.source.input.map){let f=c.source.input.map;this.previousMaps.includes(f)||this.previousMaps.push(f)}});else{let c=new i(this.originalCSS,this.opts);c.map&&this.previousMaps.push(c.map)}return this.previousMaps}setSourcesContent(){let c={};if(this.root)this.root.walk(f=>{if(f.source){let h=f.source.input.from;if(h&&!c[h]){c[h]=!0;let m=this.usesFileUrls?this.toFileUrl(h):this.toUrl(this.path(h));this.map.setSourceContent(m,f.source.input.css)}}});else if(this.css){let f=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(f,this.css)}}sourcePath(c){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(c.source.input.from):this.toUrl(this.path(c.source.input.from))}toBase64(c){return Buffer?Buffer.from(c).toString("base64"):window.btoa(unescape(encodeURIComponent(c)))}toFileUrl(c){let f=this.memoizedFileURLs.get(c);if(f)return f;if(s){let h=s(c).toString();return this.memoizedFileURLs.set(c,h),h}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(c){let f=this.memoizedURLs.get(c);if(f)return f;o==="\\"&&(c=c.replace(/\\/g,"/"));let h=encodeURI(c).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(c,h),h}}return Nf=u,Nf}var Tf,ry;function ru(){if(ry)return Tf;ry=1;let e=Zl();class t extends e{constructor(n){super(n),this.type="comment"}}return Tf=t,t.default=t,Tf}var Af,ny;function Xn(){if(ny)return Af;ny=1;let{isClean:e,my:t}=zp(),r=eu(),n=ru(),a=Zl(),o,s,i,l;function d(c){return c.map(f=>(f.nodes&&(f.nodes=d(f.nodes)),delete f.source,f))}function u(c){if(c[e]=!1,c.proxyOf.nodes)for(let f of c.proxyOf.nodes)u(f)}class p extends a{append(...f){for(let h of f){let m=this.normalize(h,this.last);for(let b of m)this.proxyOf.nodes.push(b)}return this.markDirty(),this}cleanRaws(f){if(super.cleanRaws(f),this.nodes)for(let h of this.nodes)h.cleanRaws(f)}each(f){if(!this.proxyOf.nodes)return;let h=this.getIterator(),m,b;for(;this.indexes[h]<this.proxyOf.nodes.length&&(m=this.indexes[h],b=f(this.proxyOf.nodes[m],m),b!==!1);)this.indexes[h]+=1;return delete this.indexes[h],b}every(f){return this.nodes.every(f)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let f=this.lastEach;return this.indexes[f]=0,f}getProxyProcessor(){return{get(f,h){return h==="proxyOf"?f:f[h]?h==="each"||typeof h=="string"&&h.startsWith("walk")?(...m)=>f[h](...m.map(b=>typeof b=="function"?(g,x)=>b(g.toProxy(),x):b)):h==="every"||h==="some"?m=>f[h]((b,...g)=>m(b.toProxy(),...g)):h==="root"?()=>f.root().toProxy():h==="nodes"?f.nodes.map(m=>m.toProxy()):h==="first"||h==="last"?f[h].toProxy():f[h]:f[h]},set(f,h,m){return f[h]===m||(f[h]=m,(h==="name"||h==="params"||h==="selector")&&f.markDirty()),!0}}}index(f){return typeof f=="number"?f:(f.proxyOf&&(f=f.proxyOf),this.proxyOf.nodes.indexOf(f))}insertAfter(f,h){let m=this.index(f),b=this.normalize(h,this.proxyOf.nodes[m]).reverse();m=this.index(f);for(let x of b)this.proxyOf.nodes.splice(m+1,0,x);let g;for(let x in this.indexes)g=this.indexes[x],m<g&&(this.indexes[x]=g+b.length);return this.markDirty(),this}insertBefore(f,h){let m=this.index(f),b=m===0?"prepend":!1,g=this.normalize(h,this.proxyOf.nodes[m],b).reverse();m=this.index(f);for(let v of g)this.proxyOf.nodes.splice(m,0,v);let x;for(let v in this.indexes)x=this.indexes[v],m<=x&&(this.indexes[v]=x+g.length);return this.markDirty(),this}normalize(f,h){if(typeof f=="string")f=d(o(f).nodes);else if(typeof f>"u")f=[];else if(Array.isArray(f)){f=f.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type==="root"&&this.type!=="document"){f=f.nodes.slice(0);for(let b of f)b.parent&&b.parent.removeChild(b,"ignore")}else if(f.type)f=[f];else if(f.prop){if(typeof f.value>"u")throw new Error("Value field is missed in node creation");typeof f.value!="string"&&(f.value=String(f.value)),f=[new r(f)]}else if(f.selector)f=[new s(f)];else if(f.name)f=[new i(f)];else if(f.text)f=[new n(f)];else throw new Error("Unknown node type in node creation");return f.map(b=>(b[t]||p.rebuild(b),b=b.proxyOf,b.parent&&b.parent.removeChild(b),b[e]&&u(b),typeof b.raws.before>"u"&&h&&typeof h.raws.before<"u"&&(b.raws.before=h.raws.before.replace(/\S/g,"")),b.parent=this.proxyOf,b))}prepend(...f){f=f.reverse();for(let h of f){let m=this.normalize(h,this.first,"prepend").reverse();for(let b of m)this.proxyOf.nodes.unshift(b);for(let b in this.indexes)this.indexes[b]=this.indexes[b]+m.length}return this.markDirty(),this}push(f){return f.parent=this,this.proxyOf.nodes.push(f),this}removeAll(){for(let f of this.proxyOf.nodes)f.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(f){f=this.index(f),this.proxyOf.nodes[f].parent=void 0,this.proxyOf.nodes.splice(f,1);let h;for(let m in this.indexes)h=this.indexes[m],h>=f&&(this.indexes[m]=h-1);return this.markDirty(),this}replaceValues(f,h,m){return m||(m=h,h={}),this.walkDecls(b=>{h.props&&!h.props.includes(b.prop)||h.fast&&!b.value.includes(h.fast)||(b.value=b.value.replace(f,m))}),this.markDirty(),this}some(f){return this.nodes.some(f)}walk(f){return this.each((h,m)=>{let b;try{b=f(h,m)}catch(g){throw h.addToError(g)}return b!==!1&&h.walk&&(b=h.walk(f)),b})}walkAtRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="atrule"&&f.test(m.name))return h(m,b)}):this.walk((m,b)=>{if(m.type==="atrule"&&m.name===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="atrule")return h(m,b)}))}walkComments(f){return this.walk((h,m)=>{if(h.type==="comment")return f(h,m)})}walkDecls(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="decl"&&f.test(m.prop))return h(m,b)}):this.walk((m,b)=>{if(m.type==="decl"&&m.prop===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="decl")return h(m,b)}))}walkRules(f,h){return h?f instanceof RegExp?this.walk((m,b)=>{if(m.type==="rule"&&f.test(m.selector))return h(m,b)}):this.walk((m,b)=>{if(m.type==="rule"&&m.selector===f)return h(m,b)}):(h=f,this.walk((m,b)=>{if(m.type==="rule")return h(m,b)}))}get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}return p.registerParse=c=>{o=c},p.registerRule=c=>{s=c},p.registerAtRule=c=>{i=c},p.registerRoot=c=>{l=c},Af=p,p.default=p,p.rebuild=c=>{c.type==="atrule"?Object.setPrototypeOf(c,i.prototype):c.type==="rule"?Object.setPrototypeOf(c,s.prototype):c.type==="decl"?Object.setPrototypeOf(c,r.prototype):c.type==="comment"?Object.setPrototypeOf(c,n.prototype):c.type==="root"&&Object.setPrototypeOf(c,l.prototype),c[t]=!0,c.nodes&&c.nodes.forEach(f=>{p.rebuild(f)})},Af}var Df,ay;function Up(){if(ay)return Df;ay=1;let e=Xn(),t,r;class n extends e{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},Df=n,n.default=n,Df}var Of,oy;function cw(){if(oy)return Of;oy=1;let e={};return Of=function(r){e[r]||(e[r]=!0,typeof console<"u"&&console.warn&&console.warn(r))},Of}var Ff,sy;function fw(){if(sy)return Ff;sy=1;class e{constructor(r,n={}){if(this.type="warning",this.text=r,n.node&&n.node.source){let a=n.node.rangeBy(n);this.line=a.start.line,this.column=a.start.column,this.endLine=a.end.line,this.endColumn=a.end.column}for(let a in n)this[a]=n[a]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}}return Ff=e,e.default=e,Ff}var Bf,iy;function qp(){if(iy)return Bf;iy=1;let e=fw();class t{constructor(n,a,o){this.processor=n,this.messages=[],this.root=a,this.opts=o,this.css=void 0,this.map=void 0}toString(){return this.css}warn(n,a={}){a.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(a.plugin=this.lastPlugin.postcssPlugin);let o=new e(n,a);return this.messages.push(o),o}warnings(){return this.messages.filter(n=>n.type==="warning")}get content(){return this.css}}return Bf=t,t.default=t,Bf}var zf,ly;function oL(){if(ly)return zf;ly=1;let e=39,t=34,r=92,n=47,a=10,o=32,s=12,i=9,l=13,d=91,u=93,p=40,c=41,f=123,h=125,m=59,b=42,g=58,x=64,v=/[\t\n\f\r "#'()/;[\\\]{}]/g,S=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,y=/.[\r\n"'(/\\]/,w=/[\da-f]/i;return zf=function(C,_={}){let I=C.css.valueOf(),D=_.ignoreErrors,A,k,ke,Ie,ue,j,be,ze,Se,we,wr=I.length,E=0,vt=[],yt=[];function _n(){return E}function Qe(X){throw C.error("Unclosed "+X,E)}function it(){return yt.length===0&&E>=wr}function br(X){if(yt.length)return yt.pop();if(E>=wr)return;let Me=X?X.ignoreUnclosed:!1;switch(A=I.charCodeAt(E),A){case a:case o:case i:case l:case s:{k=E;do k+=1,A=I.charCodeAt(k);while(A===o||A===a||A===i||A===l||A===s);we=["space",I.slice(E,k)],E=k-1;break}case d:case u:case f:case h:case g:case m:case c:{let se=String.fromCharCode(A);we=[se,se,E];break}case p:{if(ze=vt.length?vt.pop()[1]:"",Se=I.charCodeAt(E+1),ze==="url"&&Se!==e&&Se!==t&&Se!==o&&Se!==a&&Se!==i&&Se!==s&&Se!==l){k=E;do{if(j=!1,k=I.indexOf(")",k+1),k===-1)if(D||Me){k=E;break}else Qe("bracket");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["brackets",I.slice(E,k+1),E,k],E=k}else k=I.indexOf(")",E+1),Ie=I.slice(E,k+1),k===-1||y.test(Ie)?we=["(","(",E]:(we=["brackets",Ie,E,k],E=k);break}case e:case t:{ke=A===e?"'":'"',k=E;do{if(j=!1,k=I.indexOf(ke,k+1),k===-1)if(D||Me){k=E+1;break}else Qe("string");for(be=k;I.charCodeAt(be-1)===r;)be-=1,j=!j}while(j);we=["string",I.slice(E,k+1),E,k],E=k;break}case x:{v.lastIndex=E+1,v.test(I),v.lastIndex===0?k=I.length-1:k=v.lastIndex-2,we=["at-word",I.slice(E,k+1),E,k],E=k;break}case r:{for(k=E,ue=!0;I.charCodeAt(k+1)===r;)k+=1,ue=!ue;if(A=I.charCodeAt(k+1),ue&&A!==n&&A!==o&&A!==a&&A!==i&&A!==l&&A!==s&&(k+=1,w.test(I.charAt(k)))){for(;w.test(I.charAt(k+1));)k+=1;I.charCodeAt(k+1)===o&&(k+=1)}we=["word",I.slice(E,k+1),E,k],E=k;break}default:{A===n&&I.charCodeAt(E+1)===b?(k=I.indexOf("*/",E+2)+1,k===0&&(D||Me?k=I.length:Qe("comment")),we=["comment",I.slice(E,k+1),E,k],E=k):(S.lastIndex=E+1,S.test(I),S.lastIndex===0?k=I.length-1:k=S.lastIndex-2,we=["word",I.slice(E,k+1),E,k],vt.push(we),E=k);break}}return E++,we}function Sr(X){yt.push(X)}return{back:Sr,endOfFile:it,nextToken:br,position:_n}},zf}var Uf,uy;function $p(){if(uy)return Uf;uy=1;let e=Xn();class t extends e{constructor(n){super(n),this.type="atrule"}append(...n){return this.proxyOf.nodes||(this.nodes=[]),super.append(...n)}prepend(...n){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...n)}}return Uf=t,t.default=t,e.registerAtRule(t),Uf}var qf,dy;function ps(){if(dy)return qf;dy=1;let e=Xn(),t,r;class n extends e{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,s,i){let l=super.normalize(o);if(s){if(i==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let d of l)d.raws.before=s.raws.before}return l}removeChild(o,s){let i=this.index(o);return!s&&i===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[i].raws.before),super.removeChild(o)}toResult(o={}){return new t(new r,this,o).stringify()}}return n.registerLazyResult=a=>{t=a},n.registerProcessor=a=>{r=a},qf=n,n.default=n,e.registerRoot(n),qf}var $f,cy;function pw(){if(cy)return $f;cy=1;let e={comma(t){return e.split(t,[","],!0)},space(t){let r=[" ",`
57
+ `," "];return e.split(t,r)},split(t,r,n){let a=[],o="",s=!1,i=0,l=!1,d="",u=!1;for(let p of t)u?u=!1:p==="\\"?u=!0:l?p===d&&(l=!1):p==='"'||p==="'"?(l=!0,d=p):p==="("?i+=1:p===")"?i>0&&(i-=1):i===0&&r.includes(p)&&(s=!0),s?(o!==""&&a.push(o.trim()),o="",s=!1):o+=p;return(n||o!=="")&&a.push(o.trim()),a}};return $f=e,e.default=e,$f}var Hf,fy;function Hp(){if(fy)return Hf;fy=1;let e=Xn(),t=pw();class r extends e{constructor(a){super(a),this.type="rule",this.nodes||(this.nodes=[])}get selectors(){return t.comma(this.selector)}set selectors(a){let o=this.selector?this.selector.match(/,\s*/):null,s=o?o[0]:","+this.raw("between","beforeOpen");this.selector=a.join(s)}}return Hf=r,r.default=r,e.registerRule(r),Hf}var Wf,py;function sL(){if(py)return Wf;py=1;let e=eu(),t=oL(),r=ru(),n=$p(),a=ps(),o=Hp(),s={empty:!0,space:!0};function i(d){for(let u=d.length-1;u>=0;u--){let p=d[u],c=p[3]||p[2];if(c)return c}}class l{constructor(u){this.input=u,this.root=new a,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:u,start:{column:1,line:1,offset:0}}}atrule(u){let p=new n;p.name=u[1].slice(1),p.name===""&&this.unnamedAtrule(p,u),this.init(p,u[2]);let c,f,h,m=!1,b=!1,g=[],x=[];for(;!this.tokenizer.endOfFile();){if(u=this.tokenizer.nextToken(),c=u[0],c==="("||c==="["?x.push(c==="("?")":"]"):c==="{"&&x.length>0?x.push("}"):c===x[x.length-1]&&x.pop(),x.length===0)if(c===";"){p.source.end=this.getPosition(u[2]),p.source.end.offset++,this.semicolon=!0;break}else if(c==="{"){b=!0;break}else if(c==="}"){if(g.length>0){for(h=g.length-1,f=g[h];f&&f[0]==="space";)f=g[--h];f&&(p.source.end=this.getPosition(f[3]||f[2]),p.source.end.offset++)}this.end(u);break}else g.push(u);else g.push(u);if(this.tokenizer.endOfFile()){m=!0;break}}p.raws.between=this.spacesAndCommentsFromEnd(g),g.length?(p.raws.afterName=this.spacesAndCommentsFromStart(g),this.raw(p,"params",g),m&&(u=g[g.length-1],p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++,this.spaces=p.raws.between,p.raws.between="")):(p.raws.afterName="",p.params=""),b&&(p.nodes=[],this.current=p)}checkMissedSemicolon(u){let p=this.colon(u);if(p===!1)return;let c=0,f;for(let h=p-1;h>=0&&(f=u[h],!(f[0]!=="space"&&(c+=1,c===2)));h--);throw this.input.error("Missed semicolon",f[0]==="word"?f[3]+1:f[2])}colon(u){let p=0,c,f,h;for(let[m,b]of u.entries()){if(c=b,f=c[0],f==="("&&(p+=1),f===")"&&(p-=1),p===0&&f===":")if(!h)this.doubleColon(c);else{if(h[0]==="word"&&h[1]==="progid")continue;return m}h=c}return!1}comment(u){let p=new r;this.init(p,u[2]),p.source.end=this.getPosition(u[3]||u[2]),p.source.end.offset++;let c=u[1].slice(2,-2);if(/^\s*$/.test(c))p.text="",p.raws.left=c,p.raws.right="";else{let f=c.match(/^(\s*)([^]*\S)(\s*)$/);p.text=f[2],p.raws.left=f[1],p.raws.right=f[3]}}createTokenizer(){this.tokenizer=t(this.input)}decl(u,p){let c=new e;this.init(c,u[0][2]);let f=u[u.length-1];for(f[0]===";"&&(this.semicolon=!0,u.pop()),c.source.end=this.getPosition(f[3]||f[2]||i(u)),c.source.end.offset++;u[0][0]!=="word";)u.length===1&&this.unknownWord(u),c.raws.before+=u.shift()[1];for(c.source.start=this.getPosition(u[0][2]),c.prop="";u.length;){let x=u[0][0];if(x===":"||x==="space"||x==="comment")break;c.prop+=u.shift()[1]}c.raws.between="";let h;for(;u.length;)if(h=u.shift(),h[0]===":"){c.raws.between+=h[1];break}else h[0]==="word"&&/\w/.test(h[1])&&this.unknownWord([h]),c.raws.between+=h[1];(c.prop[0]==="_"||c.prop[0]==="*")&&(c.raws.before+=c.prop[0],c.prop=c.prop.slice(1));let m=[],b;for(;u.length&&(b=u[0][0],!(b!=="space"&&b!=="comment"));)m.push(u.shift());this.precheckMissedSemicolon(u);for(let x=u.length-1;x>=0;x--){if(h=u[x],h[1].toLowerCase()==="!important"){c.important=!0;let v=this.stringFrom(u,x);v=this.spacesFromEnd(u)+v,v!==" !important"&&(c.raws.important=v);break}else if(h[1].toLowerCase()==="important"){let v=u.slice(0),S="";for(let y=x;y>0;y--){let w=v[y][0];if(S.trim().indexOf("!")===0&&w!=="space")break;S=v.pop()[1]+S}S.trim().indexOf("!")===0&&(c.important=!0,c.raws.important=S,u=v)}if(h[0]!=="space"&&h[0]!=="comment")break}u.some(x=>x[0]!=="space"&&x[0]!=="comment")&&(c.raws.between+=m.map(x=>x[1]).join(""),m=[]),this.raw(c,"value",m.concat(u),p),c.value.includes(":")&&!p&&this.checkMissedSemicolon(u)}doubleColon(u){throw this.input.error("Double colon",{offset:u[2]},{offset:u[2]+u[1].length})}emptyRule(u){let p=new o;this.init(p,u[2]),p.selector="",p.raws.between="",this.current=p}end(u){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(u[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(u)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(u){if(this.spaces+=u[1],this.current.nodes){let p=this.current.nodes[this.current.nodes.length-1];p&&p.type==="rule"&&!p.raws.ownSemicolon&&(p.raws.ownSemicolon=this.spaces,this.spaces="")}}getPosition(u){let p=this.input.fromOffset(u);return{column:p.col,line:p.line,offset:u}}init(u,p){this.current.push(u),u.source={input:this.input,start:this.getPosition(p)},u.raws.before=this.spaces,this.spaces="",u.type!=="comment"&&(this.semicolon=!1)}other(u){let p=!1,c=null,f=!1,h=null,m=[],b=u[1].startsWith("--"),g=[],x=u;for(;x;){if(c=x[0],g.push(x),c==="("||c==="[")h||(h=x),m.push(c==="("?")":"]");else if(b&&f&&c==="{")h||(h=x),m.push("}");else if(m.length===0)if(c===";")if(f){this.decl(g,b);return}else break;else if(c==="{"){this.rule(g);return}else if(c==="}"){this.tokenizer.back(g.pop()),p=!0;break}else c===":"&&(f=!0);else c===m[m.length-1]&&(m.pop(),m.length===0&&(h=null));x=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(p=!0),m.length>0&&this.unclosedBracket(h),p&&f){if(!b)for(;g.length&&(x=g[g.length-1][0],!(x!=="space"&&x!=="comment"));)this.tokenizer.back(g.pop());this.decl(g,b)}else this.unknownWord(g)}parse(){let u;for(;!this.tokenizer.endOfFile();)switch(u=this.tokenizer.nextToken(),u[0]){case"space":this.spaces+=u[1];break;case";":this.freeSemicolon(u);break;case"}":this.end(u);break;case"comment":this.comment(u);break;case"at-word":this.atrule(u);break;case"{":this.emptyRule(u);break;default:this.other(u);break}this.endFile()}precheckMissedSemicolon(){}raw(u,p,c,f){let h,m,b=c.length,g="",x=!0,v,S;for(let y=0;y<b;y+=1)h=c[y],m=h[0],m==="space"&&y===b-1&&!f?x=!1:m==="comment"?(S=c[y-1]?c[y-1][0]:"empty",v=c[y+1]?c[y+1][0]:"empty",!s[S]&&!s[v]?g.slice(-1)===","?x=!1:g+=h[1]:x=!1):g+=h[1];if(!x){let y=c.reduce((w,L)=>w+L[1],"");u.raws[p]={raw:y,value:g}}u[p]=g}rule(u){u.pop();let p=new o;this.init(p,u[0][2]),p.raws.between=this.spacesAndCommentsFromEnd(u),this.raw(p,"selector",u),this.current=p}spacesAndCommentsFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],!(p!=="space"&&p!=="comment"));)c=u.pop()[1]+c;return c}spacesAndCommentsFromStart(u){let p,c="";for(;u.length&&(p=u[0][0],!(p!=="space"&&p!=="comment"));)c+=u.shift()[1];return c}spacesFromEnd(u){let p,c="";for(;u.length&&(p=u[u.length-1][0],p==="space");)c=u.pop()[1]+c;return c}stringFrom(u,p){let c="";for(let f=p;f<u.length;f++)c+=u[f][1];return u.splice(p,u.length-p),c}unclosedBlock(){let u=this.current.source.start;throw this.input.error("Unclosed block",u.line,u.column)}unclosedBracket(u){throw this.input.error("Unclosed bracket",{offset:u[2]},{offset:u[2]+1})}unexpectedClose(u){throw this.input.error("Unexpected }",{offset:u[2]},{offset:u[2]+1})}unknownWord(u){throw this.input.error("Unknown word",{offset:u[0][2]},{offset:u[0][2]+u[0][1].length})}unnamedAtrule(u,p){throw this.input.error("At-rule without name",{offset:p[2]},{offset:p[2]+p[1].length})}}return Wf=l,Wf}var jf,my;function Wp(){if(my)return jf;my=1;let e=Xn(),t=sL(),r=tu();function n(a,o){let s=new r(a,o),i=new t(s);try{i.parse()}catch(l){throw l}return i.root}return jf=n,n.default=n,e.registerParse(n),jf}var Vf,hy;function mw(){if(hy)return Vf;hy=1;let{isClean:e,my:t}=zp(),r=dw(),n=Jl(),a=Xn(),o=Up(),s=cw(),i=qp(),l=Wp(),d=ps(),u={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},p={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},c={Once:!0,postcssPlugin:!0,prepare:!0},f=0;function h(S){return typeof S=="object"&&typeof S.then=="function"}function m(S){let y=!1,w=u[S.type];return S.type==="decl"?y=S.prop.toLowerCase():S.type==="atrule"&&(y=S.name.toLowerCase()),y&&S.append?[w,w+"-"+y,f,w+"Exit",w+"Exit-"+y]:y?[w,w+"-"+y,w+"Exit",w+"Exit-"+y]:S.append?[w,f,w+"Exit"]:[w,w+"Exit"]}function b(S){let y;return S.type==="document"?y=["Document",f,"DocumentExit"]:S.type==="root"?y=["Root",f,"RootExit"]:y=m(S),{eventIndex:0,events:y,iterator:0,node:S,visitorIndex:0,visitors:[]}}function g(S){return S[e]=!1,S.nodes&&S.nodes.forEach(y=>g(y)),S}let x={};class v{constructor(y,w,L){this.stringified=!1,this.processed=!1;let C;if(typeof w=="object"&&w!==null&&(w.type==="root"||w.type==="document"))C=g(w);else if(w instanceof v||w instanceof i)C=g(w.root),w.map&&(typeof L.map>"u"&&(L.map={}),L.map.inline||(L.map.inline=!1),L.map.prev=w.map);else{let _=l;L.syntax&&(_=L.syntax.parse),L.parser&&(_=L.parser),_.parse&&(_=_.parse);try{C=_(w,L)}catch(I){this.processed=!0,this.error=I}C&&!C[t]&&a.rebuild(C)}this.result=new i(y,C,L),this.helpers={...x,postcss:x,result:this.result},this.plugins=this.processor.plugins.map(_=>typeof _=="object"&&_.prepare?{..._,..._.prepare(this.result)}:_)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(y){return this.async().catch(y)}finally(y){return this.async().then(y,y)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(y,w){let L=this.result.lastPlugin;try{w&&w.addToError(y),this.error=y,y.name==="CssSyntaxError"&&!y.plugin?(y.plugin=L.postcssPlugin,y.setMessage()):L.postcssVersion}catch(C){console&&console.error&&console.error(C)}return y}prepareVisitors(){this.listeners={};let y=(w,L,C)=>{this.listeners[L]||(this.listeners[L]=[]),this.listeners[L].push([w,C])};for(let w of this.plugins)if(typeof w=="object")for(let L in w){if(!p[L]&&/^[A-Z]/.test(L))throw new Error(`Unknown event ${L} in ${w.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!c[L])if(typeof w[L]=="object")for(let C in w[L])C==="*"?y(w,L,w[L][C]):y(w,L+"-"+C.toLowerCase(),w[L][C]);else typeof w[L]=="function"&&y(w,L,w[L])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let y=0;y<this.plugins.length;y++){let w=this.plugins[y],L=this.runOnRoot(w);if(h(L))try{await L}catch(C){throw this.handleError(C)}}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];){y[e]=!0;let w=[b(y)];for(;w.length>0;){let L=this.visitTick(w);if(h(L))try{await L}catch(C){let _=w[w.length-1].node;throw this.handleError(C,_)}}}if(this.listeners.OnceExit)for(let[w,L]of this.listeners.OnceExit){this.result.lastPlugin=w;try{if(y.type==="document"){let C=y.nodes.map(_=>L(_,this.helpers));await Promise.all(C)}else await L(y,this.helpers)}catch(C){throw this.handleError(C)}}}return this.processed=!0,this.stringify()}runOnRoot(y){this.result.lastPlugin=y;try{if(typeof y=="object"&&y.Once){if(this.result.root.type==="document"){let w=this.result.root.nodes.map(L=>y.Once(L,this.helpers));return h(w[0])?Promise.all(w):w}return y.Once(this.result.root,this.helpers)}else if(typeof y=="function")return y(this.result.root,this.result)}catch(w){throw this.handleError(w)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let y=this.result.opts,w=n;y.syntax&&(w=y.syntax.stringify),y.stringifier&&(w=y.stringifier),w.stringify&&(w=w.stringify);let C=new r(w,this.result.root,this.result.opts).generate();return this.result.css=C[0],this.result.map=C[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let y of this.plugins){let w=this.runOnRoot(y);if(h(w))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let y=this.result.root;for(;!y[e];)y[e]=!0,this.walkSync(y);if(this.listeners.OnceExit)if(y.type==="document")for(let w of y.nodes)this.visitSync(this.listeners.OnceExit,w);else this.visitSync(this.listeners.OnceExit,y)}return this.result}then(y,w){return this.async().then(y,w)}toString(){return this.css}visitSync(y,w){for(let[L,C]of y){this.result.lastPlugin=L;let _;try{_=C(w,this.helpers)}catch(I){throw this.handleError(I,w.proxyOf)}if(w.type!=="root"&&w.type!=="document"&&!w.parent)return!0;if(h(_))throw this.getAsyncError()}}visitTick(y){let w=y[y.length-1],{node:L,visitors:C}=w;if(L.type!=="root"&&L.type!=="document"&&!L.parent){y.pop();return}if(C.length>0&&w.visitorIndex<C.length){let[I,D]=C[w.visitorIndex];w.visitorIndex+=1,w.visitorIndex===C.length&&(w.visitors=[],w.visitorIndex=0),this.result.lastPlugin=I;try{return D(L.toProxy(),this.helpers)}catch(A){throw this.handleError(A,L)}}if(w.iterator!==0){let I=w.iterator,D;for(;D=L.nodes[L.indexes[I]];)if(L.indexes[I]+=1,!D[e]){D[e]=!0,y.push(b(D));return}w.iterator=0,delete L.indexes[I]}let _=w.events;for(;w.eventIndex<_.length;){let I=_[w.eventIndex];if(w.eventIndex+=1,I===f){L.nodes&&L.nodes.length&&(L[e]=!0,w.iterator=L.getIterator());return}else if(this.listeners[I]){w.visitors=this.listeners[I];return}}y.pop()}walkSync(y){y[e]=!0;let w=m(y);for(let L of w)if(L===f)y.nodes&&y.each(C=>{C[e]||this.walkSync(C)});else{let C=this.listeners[L];if(C&&this.visitSync(C,y.toProxy()))return}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}return v.registerPostcss=S=>{x=S},Vf=v,v.default=v,d.registerLazyResult(v),o.registerLazyResult(v),Vf}var Gf,gy;function iL(){if(gy)return Gf;gy=1;let e=dw(),t=Jl(),r=cw(),n=Wp(),a=qp();class o{constructor(i,l,d){l=l.toString(),this.stringified=!1,this._processor=i,this._css=l,this._opts=d,this._map=void 0;let u,p=t;this.result=new a(this._processor,u,this._opts),this.result.css=l;let c=this;Object.defineProperty(this.result,"root",{get(){return c.root}});let f=new e(p,u,this._opts,l);if(f.isMap()){let[h,m]=f.generate();h&&(this.result.css=h),m&&(this.result.map=m)}else f.clearAnnotation(),this.result.css=f.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(i){return this.async().catch(i)}finally(i){return this.async().then(i,i)}sync(){if(this.error)throw this.error;return this.result}then(i,l){return this.async().then(i,l)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let i,l=n;try{i=l(this._css,this._opts)}catch(d){this.error=d}if(this.error)throw this.error;return this._root=i,i}get[Symbol.toStringTag](){return"NoWorkResult"}}return Gf=o,o.default=o,Gf}var Xf,xy;function lL(){if(xy)return Xf;xy=1;let e=iL(),t=mw(),r=Up(),n=ps();class a{constructor(s=[]){this.version="8.4.38",this.plugins=this.normalize(s)}normalize(s){let i=[];for(let l of s)if(l.postcss===!0?l=l():l.postcss&&(l=l.postcss),typeof l=="object"&&Array.isArray(l.plugins))i=i.concat(l.plugins);else if(typeof l=="object"&&l.postcssPlugin)i.push(l);else if(typeof l=="function")i.push(l);else if(!(typeof l=="object"&&(l.parse||l.stringify)))throw new Error(l+" is not a PostCSS plugin");return i}process(s,i={}){return!this.plugins.length&&!i.parser&&!i.stringifier&&!i.syntax?new e(this,s,i):new t(this,s,i)}use(s){return this.plugins=this.plugins.concat(this.normalize([s])),this}}return Xf=a,a.default=a,n.registerProcessor(a),r.registerProcessor(a),Xf}var Kf,vy;function uL(){if(vy)return Kf;vy=1;let e=eu(),t=uw(),r=ru(),n=$p(),a=tu(),o=ps(),s=Hp();function i(l,d){if(Array.isArray(l))return l.map(c=>i(c));let{inputs:u,...p}=l;if(u){d=[];for(let c of u){let f={...c,__proto__:a.prototype};f.map&&(f.map={...f.map,__proto__:t.prototype}),d.push(f)}}if(p.nodes&&(p.nodes=l.nodes.map(c=>i(c,d))),p.source){let{inputId:c,...f}=p.source;p.source=f,c!=null&&(p.source.input=d[c])}if(p.type==="root")return new o(p);if(p.type==="decl")return new e(p);if(p.type==="rule")return new s(p);if(p.type==="comment")return new r(p);if(p.type==="atrule")return new n(p);throw new Error("Unknown node type: "+l.type)}return Kf=i,i.default=i,Kf}var Qf,yy;function dL(){if(yy)return Qf;yy=1;let e=Bp(),t=eu(),r=mw(),n=Xn(),a=lL(),o=Jl(),s=uL(),i=Up(),l=fw(),d=ru(),u=$p(),p=qp(),c=tu(),f=Wp(),h=pw(),m=Hp(),b=ps(),g=Zl();function x(...v){return v.length===1&&Array.isArray(v[0])&&(v=v[0]),new a(v)}return x.plugin=function(S,y){let w=!1;function L(..._){console&&console.warn&&!w&&(w=!0,console.warn(S+`: postcss.plugin was deprecated. Migration guide:
58
+ https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(S+`: \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:
59
+ https://www.w3ctech.com/topic/2226`));let I=y(..._);return I.postcssPlugin=S,I.postcssVersion=new a().version,I}let C;return Object.defineProperty(L,"postcss",{get(){return C||(C=L()),C}}),L.process=function(_,I,D){return x([L(D)]).process(_,I)},L},x.stringify=o,x.parse=f,x.fromJSON=s,x.list=h,x.comment=v=>new d(v),x.atRule=v=>new u(v),x.decl=v=>new t(v),x.rule=v=>new m(v),x.root=v=>new b(v),x.document=v=>new i(v),x.CssSyntaxError=e,x.Declaration=t,x.Container=n,x.Processor=a,x.Document=i,x.Comment=d,x.Warning=l,x.AtRule=u,x.Result=p,x.Input=c,x.Rule=m,x.Root=b,x.Node=g,r.registerPostcss(x),Qf=x,x.default=x,Qf}var cL=dL(),Be=ZC(cL);Be.stringify;Be.fromJSON;Be.plugin;Be.parse;Be.list;Be.document;Be.comment;Be.atRule;Be.rule;Be.decl;Be.root;Be.CssSyntaxError;Be.Declaration;Be.Container;Be.Processor;Be.Document;Be.Comment;Be.Warning;Be.AtRule;Be.Result;Be.Input;Be.Rule;Be.Root;Be.Node;var ce=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(ce||{});function fL(e){let t={},r=/;(?![^(]*\))/g,n=/:(.+)/,a=/\/\*.*?\*\//g;return e.replace(a,"").split(r).forEach(function(o){if(o){let s=o.split(n);s.length>1&&(t[ap(s[0].trim())]=s[1].trim())}}),t}function wy(e){let t=[];for(let r in e){let n=e[r];if(typeof n!="string")continue;let a=gL(r);t.push(`${a}: ${n};`)}return t.join(" ")}var pL=/-([a-z])/g,mL=/^--[a-zA-Z0-9-]+$/,ap=e=>mL.test(e)?e:e.replace(pL,(t,r)=>r?r.toUpperCase():""),hL=/\B([A-Z])/g,gL=e=>e.replace(hL,"-$1").toLowerCase(),vr=class e{constructor(...t){z(this,"parentElement",null),z(this,"parentNode",null),z(this,"ownerDocument"),z(this,"firstChild",null),z(this,"lastChild",null),z(this,"previousSibling",null),z(this,"nextSibling",null),z(this,"ELEMENT_NODE",1),z(this,"TEXT_NODE",3),z(this,"nodeType"),z(this,"nodeName"),z(this,"RRNodeType")}get childNodes(){let t=[],r=this.firstChild;for(;r;)t.push(r),r=r.nextSibling;return t}contains(t){if(t instanceof e){if(t.ownerDocument!==this.ownerDocument)return!1;if(t===this)return!0}else return!1;for(;t.parentNode;){if(t.parentNode===this)return!0;t=t.parentNode}return!1}appendChild(t){throw new Error("RRDomException: Failed to execute 'appendChild' on 'RRNode': This RRNode type does not support this method.")}insertBefore(t,r){throw new Error("RRDomException: Failed to execute 'insertBefore' on 'RRNode': This RRNode type does not support this method.")}removeChild(t){throw new Error("RRDomException: Failed to execute 'removeChild' on 'RRNode': This RRNode type does not support this method.")}toString(){return"RRNode"}},op=class e extends vr{constructor(...t){super(t),z(this,"nodeType",9),z(this,"nodeName","#document"),z(this,"compatMode","CSS1Compat"),z(this,"RRNodeType",ce.Document),z(this,"textContent",null),this.ownerDocument=this}get documentElement(){return this.childNodes.find(t=>t.RRNodeType===ce.Element&&t.tagName==="HTML")||null}get body(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="BODY"))||null}get head(){var t;return((t=this.documentElement)==null?void 0:t.childNodes.find(r=>r.RRNodeType===ce.Element&&r.tagName==="HEAD"))||null}get implementation(){return this}get firstElementChild(){return this.documentElement}appendChild(t){let r=t.RRNodeType;if((r===ce.Element||r===ce.DocumentType)&&this.childNodes.some(a=>a.RRNodeType===r))throw new Error(`RRDomException: Failed to execute 'appendChild' on 'RRNode': Only one ${r===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let n=jp(this,t);return n.parentElement=null,n}insertBefore(t,r){let n=t.RRNodeType;if((n===ce.Element||n===ce.DocumentType)&&this.childNodes.some(o=>o.RRNodeType===n))throw new Error(`RRDomException: Failed to execute 'insertBefore' on 'RRNode': Only one ${n===ce.Element?"RRElement":"RRDoctype"} on RRDocument allowed.`);let a=hw(this,t,r);return a.parentElement=null,a}removeChild(t){return gw(this,t)}open(){this.firstChild=null,this.lastChild=null}close(){}write(t){let r;if(t==='<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">'?r="-//W3C//DTD XHTML 1.0 Transitional//EN":t==='<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "">'&&(r="-//W3C//DTD HTML 4.0 Transitional//EN"),r){let n=this.createDocumentType("html",r,"");this.open(),this.appendChild(n)}}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new Al(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=new Qa(t);return r.ownerDocument=this,r}createElementNS(t,r){return this.createElement(r)}createTextNode(t){let r=new Dl(t);return r.ownerDocument=this,r}createComment(t){let r=new Ol(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new Fl(t);return r.ownerDocument=this,r}toString(){return"RRDocument"}},Al=class extends vr{constructor(t,r,n){super(),z(this,"nodeType",10),z(this,"RRNodeType",ce.DocumentType),z(this,"name"),z(this,"publicId"),z(this,"systemId"),z(this,"textContent",null),this.name=t,this.publicId=r,this.systemId=n,this.nodeName=t}toString(){return"RRDocumentType"}},Qa=class extends vr{constructor(t){super(),z(this,"nodeType",1),z(this,"RRNodeType",ce.Element),z(this,"tagName"),z(this,"attributes",{}),z(this,"shadowRoot",null),z(this,"scrollLeft"),z(this,"scrollTop"),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.firstChild=null,this.lastChild=null,this.appendChild(this.ownerDocument.createTextNode(t))}get classList(){return new lp(this.attributes.class,t=>{this.attributes.class=t})}get id(){return this.attributes.id||""}get className(){return this.attributes.class||""}get style(){let t=this.attributes.style?fL(this.attributes.style):{},r=/\B([A-Z])/g;return t.setProperty=(n,a,o)=>{if(r.test(n))return;let s=ap(n);a?t[s]=a:delete t[s],o==="important"&&(t[s]+=" !important"),this.attributes.style=wy(t)},t.removeProperty=n=>{if(r.test(n))return"";let a=ap(n),o=t[a]||"";return delete t[a],this.attributes.style=wy(t),o},t}getAttribute(t){return this.attributes[t]===void 0?null:this.attributes[t]}setAttribute(t,r){this.attributes[t]=r}setAttributeNS(t,r,n){this.setAttribute(r,n)}removeAttribute(t){delete this.attributes[t]}appendChild(t){return jp(this,t)}insertBefore(t,r){return hw(this,t,r)}removeChild(t){return gw(this,t)}attachShadow(t){let r=this.ownerDocument.createElement("SHADOWROOT");return this.shadowRoot=r,r}dispatchEvent(t){return!0}toString(){let t="";for(let r in this.attributes)t+=`${r}="${this.attributes[r]}" `;return`${this.tagName} ${t}`}},sp=class extends Qa{constructor(){super(...arguments),z(this,"currentTime"),z(this,"volume"),z(this,"paused"),z(this,"muted"),z(this,"playbackRate"),z(this,"loop")}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}},ip=class extends Qa{constructor(){super(...arguments),z(this,"tagName","DIALOG"),z(this,"nodeName","DIALOG")}get isModal(){return this.getAttribute("rr_open_mode")==="modal"}get open(){return this.getAttribute("open")!==null}close(){this.removeAttribute("open"),this.removeAttribute("rr_open_mode")}show(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","non-modal")}showModal(){this.setAttribute("open",""),this.setAttribute("rr_open_mode","modal")}},Dl=class extends vr{constructor(t){super(),z(this,"nodeType",3),z(this,"nodeName","#text"),z(this,"RRNodeType",ce.Text),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRText text=${JSON.stringify(this.data)}`}},Ol=class extends vr{constructor(t){super(),z(this,"nodeType",8),z(this,"nodeName","#comment"),z(this,"RRNodeType",ce.Comment),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRComment text=${JSON.stringify(this.data)}`}},Fl=class extends vr{constructor(t){super(),z(this,"nodeName","#cdata-section"),z(this,"nodeType",4),z(this,"RRNodeType",ce.CDATA),z(this,"data"),this.data=t}get textContent(){return this.data}set textContent(t){this.data=t}toString(){return`RRCDATASection data=${JSON.stringify(this.data)}`}},lp=class{constructor(t,r){if(z(this,"onChange"),z(this,"classes",[]),z(this,"add",(...n)=>{for(let a of n){let o=String(a);this.classes.indexOf(o)>=0||this.classes.push(o)}this.onChange&&this.onChange(this.classes.join(" "))}),z(this,"remove",(...n)=>{this.classes=this.classes.filter(a=>n.indexOf(a)===-1),this.onChange&&this.onChange(this.classes.join(" "))}),t){let n=t.trim().split(/\s+/);this.classes.push(...n)}this.onChange=r}};function jp(e,t){return t.parentNode&&t.parentNode.removeChild(t),e.lastChild?(e.lastChild.nextSibling=t,t.previousSibling=e.lastChild):(e.firstChild=t,t.previousSibling=null),e.lastChild=t,t.nextSibling=null,t.parentNode=e,t.parentElement=e,t.ownerDocument=e.ownerDocument,t}function hw(e,t,r){if(!r)return jp(e,t);if(r.parentNode!==e)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 t===r||(t.parentNode&&t.parentNode.removeChild(t),t.previousSibling=r.previousSibling,r.previousSibling=t,t.nextSibling=r,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,t.parentElement=e,t.parentNode=e,t.ownerDocument=e.ownerDocument),t}function gw(e,t){if(t.parentNode!==e)throw new Error("Failed to execute 'removeChild' on 'RRNode': The RRNode to be removed is not a child of this RRNode.");return t.previousSibling?t.previousSibling.nextSibling=t.nextSibling:e.firstChild=t.nextSibling,t.nextSibling?t.nextSibling.previousSibling=t.previousSibling:e.lastChild=t.previousSibling,t.previousSibling=null,t.nextSibling=null,t.parentElement=null,t.parentNode=null,t}var $t=(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",e))($t||{}),up={svg:"http://www.w3.org/2000/svg","xlink:href":"http://www.w3.org/1999/xlink",xmlns:"http://www.w3.org/2000/xmlns/"},xL={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"},Rr=null;function Bl(e,t,r,n=t.mirror||t.ownerDocument.mirror){e=vL(e,t,r,n),xw(e,t,r,n),yL(e,t,r)}function vL(e,t,r,n){var a;if(r.afterAppend&&!Rr&&(Rr=new WeakSet,setTimeout(()=>{Rr=null},0)),!Vp(e,t)){let o=zl(t,r.mirror,n);(a=e.parentNode)==null||a.replaceChild(o,e),e=o}switch(t.RRNodeType){case ce.Document:{if(!Ha(e,t,r.mirror,n)){let o=n.getMeta(t);o&&(r.mirror.removeNodeFromMap(e),e.close(),e.open(),r.mirror.add(e,o),Rr?.add(e))}break}case ce.Element:{let o=e,s=t;switch(s.tagName){case"IFRAME":{let i=e.contentDocument;if(!i)break;Bl(i,t.contentDocument,r,n);break}}s.shadowRoot&&(o.shadowRoot||o.attachShadow({mode:"open"}),xw(o.shadowRoot,s.shadowRoot,r,n)),wL(o,s,n);break}}return e}function yL(e,t,r){var n;switch(t.RRNodeType){case ce.Document:{let a=t.scrollData;a&&r.applyScroll(a,!0);break}case ce.Element:{let a=e,o=t;switch(o.scrollData&&r.applyScroll(o.scrollData,!0),o.inputData&&r.applyInput(o.inputData),o.tagName){case"AUDIO":case"VIDEO":{let s=e,i=o;i.paused!==void 0&&(i.paused?s.pause():s.play()),i.muted!==void 0&&(s.muted=i.muted),i.volume!==void 0&&(s.volume=i.volume),i.currentTime!==void 0&&(s.currentTime=i.currentTime),i.playbackRate!==void 0&&(s.playbackRate=i.playbackRate),i.loop!==void 0&&(s.loop=i.loop);break}case"CANVAS":{let s=t;if(s.rr_dataURL!==null){let i=document.createElement("img");i.onload=()=>{let l=a.getContext("2d");l&&l.drawImage(i,0,0,i.width,i.height)},i.src=s.rr_dataURL}s.canvasMutations.forEach(i=>r.applyCanvas(i.event,i.mutation,e));break}case"STYLE":{let s=a.sheet;s&&t.rules.forEach(i=>r.applyStyleSheetMutation(i,s));break}case"DIALOG":{let s=a,i=o,l=s.open,d=s.matches("dialog:modal"),u=i.open,p=i.isModal,c=d!==p,f=l!==u;if((c||l&&f)&&s.close(),u&&(f||c))try{p?s.showModal():s.show()}catch(h){console.warn(h)}break}}break}case ce.Text:case ce.Comment:case ce.CDATA:{e.textContent!==t.data&&(e.textContent=t.data);break}}Rr?.has(e)&&(Rr.delete(e),(n=r.afterAppend)==null||n.call(r,e,r.mirror.getId(e)))}function wL(e,t,r){let n=e.attributes,a=t.attributes;for(let o in a){let s=a[o],i=r.getMeta(t);if(i?.isSVG&&up[o])e.setAttributeNS(up[o],o,s);else if(t.tagName==="CANVAS"&&o==="rr_dataURL"){let l=document.createElement("img");l.src=s,l.onload=()=>{let d=e.getContext("2d");d&&d.drawImage(l,0,0,l.width,l.height)}}else{if(t.tagName==="IFRAME"&&o==="srcdoc")continue;try{e.setAttribute(o,s)}catch(l){console.warn(l)}}}for(let{name:o}of Array.from(n))o in a||e.removeAttribute(o);t.scrollLeft&&(e.scrollLeft=t.scrollLeft),t.scrollTop&&(e.scrollTop=t.scrollTop)}function xw(e,t,r,n){let a=Array.from(e.childNodes),o=t.childNodes;if(a.length===0&&o.length===0)return;let s=0,i=a.length-1,l=0,d=o.length-1,u=a[s],p=a[i],c=o[l],f=o[d],h,m;for(;s<=i&&l<=d;)if(u===void 0)u=a[++s];else if(p===void 0)p=a[--i];else if(Ha(u,c,r.mirror,n))u=a[++s],c=o[++l];else if(Ha(p,f,r.mirror,n))p=a[--i],f=o[--d];else if(Ha(u,f,r.mirror,n)){try{e.insertBefore(u,p.nextSibling)}catch(x){console.warn(x)}u=a[++s],f=o[--d]}else if(Ha(p,c,r.mirror,n)){try{e.insertBefore(p,u)}catch(x){console.warn(x)}p=a[--i],c=o[++l]}else{if(!h){h={};for(let v=s;v<=i;v++){let S=a[v];S&&r.mirror.hasNode(S)&&(h[r.mirror.getId(S)]=v)}}m=h[n.getId(c)];let x=a[m];if(m!==void 0&&x&&Ha(x,c,r.mirror,n)){try{e.insertBefore(x,u)}catch(v){console.warn(v)}a[m]=void 0}else{let v=zl(c,r.mirror,n);e.nodeName==="#document"&&u&&(v.nodeType===v.DOCUMENT_TYPE_NODE&&u.nodeType===u.DOCUMENT_TYPE_NODE||v.nodeType===v.ELEMENT_NODE&&u.nodeType===u.ELEMENT_NODE)&&(e.removeChild(u),r.mirror.removeNodeFromMap(u),u=a[++s]);try{e.insertBefore(v,u||null)}catch(S){console.warn(S)}}c=o[++l]}if(s>i){let x=o[d+1],v=null;for(x&&(v=r.mirror.getNode(n.getId(x)));l<=d;++l){let S=zl(o[l],r.mirror,n);try{e.insertBefore(S,v)}catch(y){console.warn(y)}}}else if(l>d)for(;s<=i;s++){let x=a[s];if(!(!x||x.parentNode!==e))try{e.removeChild(x),r.mirror.removeNodeFromMap(x)}catch(v){console.warn(v)}}let b=e.firstChild,g=t.firstChild;for(;b!==null&&g!==null;)Bl(b,g,r,n),b=b.nextSibling,g=g.nextSibling}function zl(e,t,r){let n=r.getId(e),a=r.getMeta(e),o=null;if(n>-1&&(o=t.getNode(n)),o!==null&&Vp(o,e))return o;switch(e.RRNodeType){case ce.Document:o=new Document;break;case ce.DocumentType:o=document.implementation.createDocumentType(e.name,e.publicId,e.systemId);break;case ce.Element:{let s=e.tagName.toLowerCase();s=xL[s]||s,a&&"isSVG"in a&&a?.isSVG?o=document.createElementNS(up.svg,s):o=document.createElement(e.tagName);break}case ce.Text:o=document.createTextNode(e.data);break;case ce.Comment:o=document.createComment(e.data);break;case ce.CDATA:o=document.createCDATASection(e.data);break}a&&t.add(o,{...a});try{Rr?.add(o)}catch{}return o}function Vp(e,t){return e.nodeType!==t.nodeType?!1:e.nodeType!==e.ELEMENT_NODE||e.tagName.toUpperCase()===t.tagName}function Ha(e,t,r,n){let a=r.getId(e),o=n.getId(t);return a===-1||a!==o?!1:Vp(e,t)}var Ya=class e extends op{constructor(t){super(),z(this,"UNSERIALIZED_STARTING_ID",-2),z(this,"_unserializedId",this.UNSERIALIZED_STARTING_ID),z(this,"mirror",_L()),z(this,"scrollData",null),t&&(this.mirror=t)}get unserializedId(){return this._unserializedId--}createDocument(t,r,n){return new e}createDocumentType(t,r,n){let a=new bL(t,r,n);return a.ownerDocument=this,a}createElement(t){let r=t.toUpperCase(),n;switch(r){case"AUDIO":case"VIDEO":n=new dp(r);break;case"IFRAME":n=new mp(r,this.mirror);break;case"CANVAS":n=new fp(r);break;case"STYLE":n=new pp(r);break;case"DIALOG":n=new cp(r);break;default:n=new Ja(r);break}return n.ownerDocument=this,n}createComment(t){let r=new CL(t);return r.ownerDocument=this,r}createCDATASection(t){let r=new LL(t);return r.ownerDocument=this,r}createTextNode(t){let r=new SL(t);return r.ownerDocument=this,r}destroyTree(){this.firstChild=null,this.lastChild=null,this.mirror.reset()}open(){super.open(),this._unserializedId=this.UNSERIALIZED_STARTING_ID}},bL=Al,Ja=class extends Qa{constructor(){super(...arguments),z(this,"inputData",null),z(this,"scrollData",null)}},dp=class extends sp{},cp=class extends ip{},fp=class extends Ja{constructor(){super(...arguments),z(this,"rr_dataURL",null),z(this,"canvasMutations",[])}getContext(){return null}},pp=class extends Ja{constructor(){super(...arguments),z(this,"rules",[])}},mp=class extends Ja{constructor(t,r){super(t),z(this,"contentDocument",new Ya),this.contentDocument.mirror=r}},SL=Dl,CL=Ol,LL=Fl;function kL(e){return e instanceof HTMLFormElement?"FORM":e.tagName.toUpperCase()}function vw(e,t,r,n){let a;switch(e.nodeType){case $t.DOCUMENT_NODE:n&&n.nodeName==="IFRAME"?a=n.contentDocument:(a=t,a.compatMode=e.compatMode);break;case $t.DOCUMENT_TYPE_NODE:{let s=e;a=t.createDocumentType(s.name,s.publicId,s.systemId);break}case $t.ELEMENT_NODE:{let s=e,i=kL(s);a=t.createElement(i);let l=a;for(let{name:d,value:u}of Array.from(s.attributes))l.attributes[d]=u;s.scrollLeft&&(l.scrollLeft=s.scrollLeft),s.scrollTop&&(l.scrollTop=s.scrollTop);break}case $t.TEXT_NODE:a=t.createTextNode(e.textContent||"");break;case $t.CDATA_SECTION_NODE:a=t.createCDATASection(e.data);break;case $t.COMMENT_NODE:a=t.createComment(e.textContent||"");break;case $t.DOCUMENT_FRAGMENT_NODE:a=n.attachShadow({mode:"open"});break;default:return null}let o=r.getMeta(e);return t instanceof Ya&&(o||(o=yw(a,t.unserializedId),r.add(e,o)),t.mirror.add(a,{...o})),a}function IL(e,t=JC(),r=new Ya){function n(a,o){let s=vw(a,r,t,o);if(s!==null)if(o?.nodeName!=="IFRAME"&&a.nodeType!==$t.DOCUMENT_FRAGMENT_NODE&&(o?.appendChild(s),s.parentNode=o,s.parentElement=o),a.nodeName==="IFRAME"){let i=a.contentDocument;i&&n(i,s)}else(a.nodeType===$t.DOCUMENT_NODE||a.nodeType===$t.ELEMENT_NODE||a.nodeType===$t.DOCUMENT_FRAGMENT_NODE)&&(a.nodeType===$t.ELEMENT_NODE&&a.shadowRoot&&n(a.shadowRoot,s),a.childNodes.forEach(i=>n(i,s)))}return n(e,null),r}function _L(){return new hp}var hp=class{constructor(){z(this,"idNodeMap",new Map),z(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){let 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){let n=r.id;this.idNodeMap.set(n,t),this.nodeMetaMap.set(t,r)}replace(t,r){let n=this.getNode(t);if(n){let a=this.nodeMetaMap.get(n);a&&this.nodeMetaMap.set(r,a)}this.idNodeMap.set(t,r)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function yw(e,t){switch(e.RRNodeType){case ce.Document:return{id:t,type:e.RRNodeType,childNodes:[]};case ce.DocumentType:{let r=e;return{id:t,type:e.RRNodeType,name:r.name,publicId:r.publicId,systemId:r.systemId}}case ce.Element:return{id:t,type:e.RRNodeType,tagName:e.tagName.toLowerCase(),attributes:{},childNodes:[]};case ce.Text:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.Comment:return{id:t,type:e.RRNodeType,textContent:e.textContent||""};case ce.CDATA:return{id:t,type:e.RRNodeType,textContent:""}}}var by={Node:["childNodes","parentNode","parentElement","textContent","ownerDocument"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},Sy={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},Ll={},ww={},ML=()=>!!globalThis.Zone;function Gp(e){if(Ll[e])return Ll[e];let t=globalThis[e],r=t.prototype,n=e in by?by[e]:void 0,a=!!(n&&n.every(i=>{var l,d;return!!((d=(l=Object.getOwnPropertyDescriptor(r,i))==null?void 0:l.get)!=null&&d.toString().includes("[native code]"))})),o=e in Sy?Sy[e]:void 0,s=!!(o&&o.every(i=>{var l;return typeof r[i]=="function"&&((l=r[i])==null?void 0:l.toString().includes("[native code]"))}));if(a&&s&&!ML())return Ll[e]=t.prototype,t.prototype;try{let i=document.createElement("iframe");i.style.display="none",document.body.appendChild(i);let l=i.contentWindow;if(!l)return t.prototype;let d=l[e].prototype;if(!d)return i.remove(),r;let u=navigator.userAgent;return u.includes("Safari")&&!u.includes("Chrome")?(i.classList.add("rr-block"),i.setAttribute("__rrwebUntaintedMutationObserver",""),ww[e]=()=>i.remove()):i.remove(),Ll[e]=d}catch{return r}}var Yf={};function Gr(e,t,r){var n;let a=`${e}.${String(r)}`;if(Yf[a])return Yf[a].call(t);let o=Gp(e),s=(n=Object.getOwnPropertyDescriptor(o,r))==null?void 0:n.get;return s?(Yf[a]=s,s.call(t)):t[r]}var Jf={};function bw(e,t,r){let n=`${e}.${String(r)}`;if(Jf[n])return Jf[n].bind(t);let o=Gp(e)[r];return typeof o!="function"?t[r]:(Jf[n]=o,o.bind(t))}function RL(e){return Gr("Node",e,"ownerDocument")}function EL(e){return Gr("Node",e,"childNodes")}function PL(e){return Gr("Node",e,"parentNode")}function NL(e){return Gr("Node",e,"parentElement")}function TL(e){return Gr("Node",e,"textContent")}function AL(e,t){return bw("Node",e,"contains")(t)}function DL(e){return bw("Node",e,"getRootNode")()}function OL(e){return!e||!("host"in e)?null:Gr("ShadowRoot",e,"host")}function FL(e){return e.styleSheets}function BL(e){return!e||!("shadowRoot"in e)?null:Gr("Element",e,"shadowRoot")}function zL(e,t){return Gr("Element",e,"querySelector")(t)}function UL(e,t){return Gr("Element",e,"querySelectorAll")(t)}function Sw(){return[Gp("MutationObserver").constructor,ww.MutationObserver??(()=>{})]}var ds=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(ds=()=>new Date().getTime());function Kn(e,t,r){try{if(!(t in e))return()=>{};let n=e[t],a=r(n);return typeof a=="function"&&(a.prototype=a.prototype||{},Object.defineProperties(a,{__rrweb_original__:{enumerable:!1,value:n}})),e[t]=a,()=>{e[t]=n}}catch{return()=>{}}}var ne={ownerDocument:RL,childNodes:EL,parentNode:PL,parentElement:NL,textContent:TL,contains:AL,getRootNode:DL,host:OL,styleSheets:FL,shadowRoot:BL,querySelector:zL,querySelectorAll:UL,nowTimestamp:ds,mutationObserverCtor:Sw,patch:Kn};function Lt(e,t,r=document){let n={capture:!0,passive:!0};return r.addEventListener(e,t,n),()=>r.removeEventListener(e,t,n)}var Wa=`Please stop import mirror directly. Instead of that,\r
60
60
  now you can use replayer.getMirror() to access the mirror instance of a replayer,\r
61
- or you can use record.mirror to access the mirror instance during recording.`,wy={map:{},getId(){return console.error(Wn),-1},getNode(){return console.error(Wn),null},removeNodeFromMap(){console.error(Wn)},has(){return console.error(Wn),!1},reset(){console.error(Wn)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(wy=new Proxy(wy,{get(e,t,r){return t==="map"&&console.error(Wn),Reflect.get(e,t,r)}}));function cs(e,t,r={}){let a=null,n=0;return function(...o){let i=Date.now();!n&&r.leading===!1&&(n=i);let s=t-(i-n),l=this;s<=0||s>t?(a&&(clearTimeout(a),a=null),n=i,e.apply(l,o)):!a&&r.trailing!==!1&&(a=setTimeout(()=>{n=r.leading===!1?0:Date.now(),a=null,e.apply(l,o)},s))}}function ru(e,t,r,a,n=window){let o=n.Object.getOwnPropertyDescriptor(e,t);return n.Object.defineProperty(e,t,a?r:{set(i){setTimeout(()=>{r.set.call(this,i)},0),o&&o.set&&o.set.call(this,i)}}),()=>ru(e,t,o||{},!0)}function ww(e){var t,r,a,n;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=ae.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((a=ae.parentElement(o.body))==null?void 0:a.scrollTop)||((n=o?.body)==null?void 0:n.scrollTop)||0}}function Sw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function bw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Cw(e){return e?e.nodeType===e.ELEMENT_NODE?e:ae.parentElement(e):null}function kt(e,t,r,a){if(!e)return!1;let n=Cw(e);if(!n)return!1;try{if(typeof t=="string"){if(n.classList.contains(t)||a&&n.closest("."+t)!==null)return!0}else if(Tl(n,t,a))return!0}catch{}return!!(r&&(n.matches(r)||a&&n.closest(r)!==null))}function U1(e,t){return t.getId(e)!==-1}function Qf(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===us}function Lw(e,t){if(as(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let a=ae.parentNode(e);return a&&a.nodeType===e.DOCUMENT_NODE?!1:a?Lw(a,t):!0}function pp(e){return!!e.changedTouches}function kw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function q1(e){let t={},r=(n,o)=>{let i={value:n,parent:o,children:[]};return t[n.node.id]=i,i},a=[];for(let n of e){let{nextId:o,parentId:i}=n;if(o&&o in t){let s=t[o];if(s.parent){let l=s.parent.children.indexOf(s);s.parent.children.splice(l,0,r(n,s.parent))}else{let l=a.indexOf(s);a.splice(l,0,r(n,null))}continue}if(i in t){let s=t[i];s.children.push(r(n,s));continue}a.push(r(n,null))}return a}function Iw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Iw(e.children[r],t)}function ss(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Mw(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function _w(e,t){var r,a;let n=(a=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:a.frameElement;if(!n||n===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=n.getBoundingClientRect(),i=_w(n,t),s=o.height/n.clientHeight;return{x:o.x*i.relativeScale+i.x,y:o.y*i.relativeScale+i.y,relativeScale:s,absoluteScale:i.absoluteScale*s}}function Ha(e){return e?e instanceof vr&&"shadowRoot"in e?!!e.shadowRoot:!!ae.shadowRoot(e):!1}function ts(e,t){let r=e?.[t[0]];return r?t.length===1?r:ts(r.cssRules,t.slice(1)):null}function Sy(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function $1(e){let t=new Set,r=[];for(let a=e.length;a--;){let n=e[a];t.has(n.id)||(r.push(n),t.add(n.id))}return r}var zl=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let a;return r===void 0?a=this.id++:a=r,this.styleIDMap.set(t,a),this.idStyleMap.set(a,t),a}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Rw(e){var t;let r=null;return"getRootNode"in e&&((t=ae.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ae.host(ae.getRootNode(e))&&(r=ae.host(ae.getRootNode(e))),r}function H1(e){let t=e,r;for(;r=Rw(t);)t=r;return t}function W1(e){let t=ae.ownerDocument(e);if(!t)return!1;let r=H1(e);return ae.contains(t,r)}function Ew(e){let t=ae.ownerDocument(e);return t?ae.contains(t,e)||W1(e):!1}var W=(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[e.Asset=7]="Asset",e))(W||{}),U=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(U||{}),ye=(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))(ye||{}),Hr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Hr||{}),jr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(jr||{}),ya=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(ya||{}),ve=(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.Destroy="destroy",e))(ve||{}),Wr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wr||{});function by(e){return"__ln"in e}var mp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let a=0;a<t;a++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&by(t.previousSibling)){let a=t.previousSibling.__ln.next;r.next=a,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,a&&(a.previous=r)}else if(t.nextSibling&&by(t.nextSibling)&&t.nextSibling.__ln.previous){let a=t.nextSibling.__ln.previous;r.previous=a,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,a&&(a.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Cy=(e,t)=>`${e}@${t}`,hp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,a=new mp,n=l=>{let d=l,u=us;for(;u===us;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=l=>{let d=ae.parentNode(l);if(!d||!Ew(l))return;let u=!1;if(l.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let f=as(d)?this.mirror.getId(Rw(l)):this.mirror.getId(d),c=n(l);if(f===-1||c===-1)return a.addNode(l);let p=Gn(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ss(h,this.mirror)&&this.iframeManager.addIframe(h),Mw(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),Ha(l)&&this.shadowDomManager.addShadowRoot(ae.shadowRoot(l),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});p&&(t.push({parentId:f,nextId:c,node:p}),r.add(p.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)Ly(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(ae.parentNode(l))||o(l);for(let l of this.addedSet)!ky(this.droppedSet,l)&&!Ly(this.removesSubTreeCache,l,this.mirror)||ky(this.movedSet,l)?o(l):this.droppedSet.add(l);let i=null;for(;a.length;){let l=null;if(i){let d=this.mirror.getId(ae.parentNode(i.value)),u=n(i.value);d!==-1&&u!==-1&&(l=i)}if(!l){let d=a.tail;for(;d;){let u=d;if(d=d.previous,u){let f=this.mirror.getId(ae.parentNode(u.value));if(n(u.value)===-1)continue;if(f!==-1){l=u;break}else{let p=u.value,h=ae.parentNode(p);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=ae.host(h);if(this.mirror.getId(m)!==-1){l=u;break}}}}}}if(!l){for(;a.head;)a.removeNode(a.head.value);break}i=l.previous,a.removeNode(l.value),o(l.value)}let s={texts:this.texts.map(l=>{let d=l.node,u=ae.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:d}=l;if(typeof d.style=="string"){let u=JSON.stringify(l.styleDiff),f=JSON.stringify(l._unchangedStyles);u.length<d.style.length&&(u+f).split("var(").length===d.style.split("var(").length&&(d.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:d}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!s.texts.length&&!s.attributes.length&&!s.removes.length&&!s.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(s))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let a=Array.from(ae.childNodes(t),n=>ae.textContent(n)||"").join("");r.attributes.value=Rl({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:El(t),value:a,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!Qf(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=ae.textContent(t.target);!kt(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Ky(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Cw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,a=t.attributeName,n=t.target.getAttribute(a);if(a==="value"){let i=El(r);n=Rl({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:i,value:n,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,!1)||n===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&a==="src"&&!this.keepIframeSrcFn(n))if(!r.contentDocument)a="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),a==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Xy(r.tagName,a))if(o.attributes[a]=Gy(this.doc,Sa(r.tagName),Sa(a),n),a==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let i=this.unattachedDoc.createElement("span");t.oldValue&&i.setAttribute("style",t.oldValue);for(let s of Array.from(r.style)){let l=r.style.getPropertyValue(s),d=r.style.getPropertyPriority(s);l!==i.style.getPropertyValue(s)||d!==i.style.getPropertyPriority(s)?d===""?o.styleDiff[s]=l:o.styleDiff[s]=[l,d]:o._unchangedStyles[s]=[l,d]}for(let s of Array.from(i.style))r.style.getPropertyValue(s)===""&&(o.styleDiff[s]=!1)}else a==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(kt(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let a=this.mirror.getId(r),n=as(t.target)?this.mirror.getId(ae.host(t.target)):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,!1)||Qf(r,this.mirror,this.slimDOMOptions)||!U1(r,this.mirror)||(this.addedSet.has(r)?(gp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&a===-1||Lw(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Cy(a,n)]?gp(this.movedSet,r):(this.removes.push({parentId:n,id:a,isShadow:as(t.target)&&ns(t.target)?!0:void 0}),j1(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Qf(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let a=null;r&&this.mirror.hasNode(r)&&(a=this.mirror.getId(r)),a&&a!==-1&&(this.movedMap[Cy(this.mirror.getId(t),a)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,!1)||(ae.childNodes(t).forEach(a=>this.genAdds(a)),Ha(t)&&ae.childNodes(ae.shadowRoot(t)).forEach(a=>{this.processedNodeManager.add(a,this),this.genAdds(a,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function gp(e,t){e.delete(t),ae.childNodes(t).forEach(r=>gp(e,r))}function j1(e,t){let r=[e];for(;r.length;){let a=r.pop();t.has(a)||(t.add(a),ae.childNodes(a).forEach(n=>r.push(n)))}}function Ly(e,t,r){return e.size===0?!1:V1(e,t)}function V1(e,t,r){let a=ae.parentNode(t);return a?e.has(a):!1}function ky(e,t){return e.size===0?!1:Pw(e,t)}function Pw(e,t){let r=ae.parentNode(t);return r?e.has(r)?!0:Pw(e,r):!1}var is;function G1(e){is=e}function X1(){is=void 0}var pe=e=>is?(...r)=>{try{return e(...r)}catch(a){if(is&&is(a)===!0)return;throw a}}:e,Wa=[];function ms(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Tw(e,t){let r=new hp;Wa.push(r),r.init(e);let[a,n]=yw(),o=new a(pe(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,n]}function K1({mousemoveCb:e,sampling:t,doc:r,mirror:a}){if(t.mousemove===!1)return()=>{};let n=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,i=[],s,l=cs(pe(f=>{let c=Date.now()-s;e(i.map(p=>(p.timeOffset-=c,p)),f),i=[],s=null}),o),d=pe(cs(pe(f=>{let c=ms(f),{clientX:p,clientY:h}=pp(f)?f.changedTouches[0]:f;s||(s=ds()),i.push({x:p,y:h,id:a.getId(c),timeOffset:ds()-s}),l(typeof DragEvent<"u"&&f instanceof DragEvent?U.Drag:f instanceof MouseEvent?U.MouseMove:U.TouchMove)}),n,{trailing:!1})),u=[Lt("mousemove",d,r),Lt("touchmove",d,r),Lt("drag",d,r)];return pe(()=>{u.forEach(f=>f())})}function Q1({mouseInteractionCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let i=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,s=[],l=null,d=u=>f=>{let c=ms(f);if(kt(c,a,n,!0))return;let p=null,h=u;if("pointerType"in f){switch(f.pointerType){case"mouse":p=Hr.Mouse;break;case"touch":p=Hr.Touch;break;case"pen":p=Hr.Pen;break}p===Hr.Touch?ye[u]===ye.MouseDown?h="TouchStart":ye[u]===ye.MouseUp&&(h="TouchEnd"):Hr.Pen}else pp(f)&&(p=Hr.Touch);p!==null?(l=p,(h.startsWith("Touch")&&p===Hr.Touch||h.startsWith("Mouse")&&p===Hr.Mouse)&&(p=null)):ye[u]===ye.Click&&(p=l,l=null);let m=pp(f)?f.changedTouches[0]:f;if(!m)return;let S=r.getId(c),{clientX:g,clientY:x}=m;pe(e)({type:ye[h],id:S,x:g,y:x,...p!==null&&{pointerType:p}})};return Object.keys(ye).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&i[u]!==!1).forEach(u=>{let f=Sa(u),c=d(u);if(window.PointerEvent)switch(ye[u]){case ye.MouseDown:case ye.MouseUp:f=f.replace("mouse","pointer");break;case ye.TouchStart:case ye.TouchEnd:return}s.push(Lt(f,c,t))}),pe(()=>{s.forEach(u=>u())})}function Nw({scrollCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,sampling:o}){let i=pe(cs(pe(s=>{let l=ms(s);if(!l||kt(l,a,n,!0))return;let d=r.getId(l);if(l===t&&t.defaultView){let u=ww(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Lt("scroll",i,t)}function Y1({viewportResizeCb:e},{win:t}){let r=-1,a=-1,n=pe(cs(pe(()=>{let o=Sw(),i=bw();(r!==o||a!==i)&&(e({width:Number(i),height:Number(o)}),r=o,a=i)}),200));return Lt("resize",n,t)}var J1=["INPUT","TEXTAREA","SELECT"],Iy=new WeakMap;function Z1({inputCb:e,doc:t,mirror:r,blockClass:a,blockSelector:n,ignoreClass:o,ignoreSelector:i,maskInputOptions:s,maskInputFn:l,sampling:d,userTriggeredOnInput:u}){function f(x){let v=ms(x),b=x.isTrusted,w=v&&v.tagName;if(v&&w==="OPTION"&&(v=ae.parentElement(v)),!v||!w||J1.indexOf(w)<0||kt(v,a,n,!0)||v.classList.contains(o)||i&&v.matches(i))return;let y=v.value,L=!1,C=El(v)||"";C==="radio"||C==="checkbox"?L=v.checked:(s[w.toLowerCase()]||s[C])&&(y=Rl({element:v,maskInputOptions:s,tagName:w,type:C,value:y,maskInputFn:l})),c(v,u?{text:y,isChecked:L,userTriggered:b}:{text:y,isChecked:L});let M=v.name;C==="radio"&&M&&L&&t.querySelectorAll(`input[type="radio"][name="${M}"]`).forEach(I=>{if(I!==v){let D=I.value;c(I,u?{text:D,isChecked:!L,userTriggered:!1}:{text:D,isChecked:!L})}})}function c(x,v){let b=Iy.get(x);if(!b||b.text!==v.text||b.isChecked!==v.isChecked){Iy.set(x,v);let w=r.getId(x);pe(e)({...v,id:w})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>Lt(x,pe(f),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let S=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&h.push(...g.map(x=>ru(x[0],x[1],{set(){pe(f)({target:this,isTrusted:!1})}},!1,m))),pe(()=>{h.forEach(x=>x())})}function Ul(e){let t=[];function r(a,n){if(Ll("CSSGroupingRule")&&a.parentRule instanceof CSSGroupingRule||Ll("CSSMediaRule")&&a.parentRule instanceof CSSMediaRule||Ll("CSSSupportsRule")&&a.parentRule instanceof CSSSupportsRule||Ll("CSSConditionRule")&&a.parentRule instanceof CSSConditionRule){let i=Array.from(a.parentRule.cssRules).indexOf(a);return n.unshift(i),r(a.parentRule,n)}else if(a.parentStyleSheet){let i=Array.from(a.parentStyleSheet.cssRules).indexOf(a);n.unshift(i)}return n}return r(e,t)}function va(e,t,r){let a,n;return e?(e.ownerNode?a=t.getId(e.ownerNode):n=r.getId(e),{styleId:n,id:a}):{}}function ek({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:a}){if(!a.CSSStyleSheet||!a.CSSStyleSheet.prototype)return()=>{};let n=a.CSSStyleSheet.prototype.insertRule;a.CSSStyleSheet.prototype.insertRule=new Proxy(n,{apply:pe((u,f,c)=>{let[p,h]=c,{id:m,styleId:S}=va(f,t,r.styleMirror);return(m&&m!==-1||S&&S!==-1)&&e({id:m,styleId:S,adds:[{rule:p,index:h}]}),u.apply(f,c)})}),a.CSSStyleSheet.prototype.addRule=function(u,f,c=this.cssRules.length){let p=`${u} { ${f} }`;return a.CSSStyleSheet.prototype.insertRule.apply(this,[p,c])};let o=a.CSSStyleSheet.prototype.deleteRule;a.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),u.apply(f,c)})}),a.CSSStyleSheet.prototype.removeRule=function(u){return a.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let i;a.CSSStyleSheet.prototype.replace&&(i=a.CSSStyleSheet.prototype.replace,a.CSSStyleSheet.prototype.replace=new Proxy(i,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),u.apply(f,c)})}));let s;a.CSSStyleSheet.prototype.replaceSync&&(s=a.CSSStyleSheet.prototype.replaceSync,a.CSSStyleSheet.prototype.replaceSync=new Proxy(s,{apply:pe((u,f,c)=>{let[p]=c,{id:h,styleId:m}=va(f,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),u.apply(f,c)})}));let l={};kl("CSSGroupingRule")?l.CSSGroupingRule=a.CSSGroupingRule:(kl("CSSMediaRule")&&(l.CSSMediaRule=a.CSSMediaRule),kl("CSSConditionRule")&&(l.CSSConditionRule=a.CSSConditionRule),kl("CSSSupportsRule")&&(l.CSSSupportsRule=a.CSSSupportsRule));let d={};return Object.entries(l).forEach(([u,f])=>{d[u]={insertRule:f.prototype.insertRule,deleteRule:f.prototype.deleteRule},f.prototype.insertRule=new Proxy(d[u].insertRule,{apply:pe((c,p,h)=>{let[m,S]=h,{id:g,styleId:x}=va(p.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...Ul(p),S||0]}]}),c.apply(p,h)})}),f.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:pe((c,p,h)=>{let[m]=h,{id:S,styleId:g}=va(p.parentStyleSheet,t,r.styleMirror);return(S&&S!==-1||g&&g!==-1)&&e({id:S,styleId:g,removes:[{index:[...Ul(p),m]}]}),c.apply(p,h)})})}),pe(()=>{a.CSSStyleSheet.prototype.insertRule=n,a.CSSStyleSheet.prototype.deleteRule=o,i&&(a.CSSStyleSheet.prototype.replace=i),s&&(a.CSSStyleSheet.prototype.replaceSync=s),Object.entries(l).forEach(([u,f])=>{f.prototype.insertRule=d[u].insertRule,f.prototype.deleteRule=d[u].deleteRule})})}function Aw({mirror:e,stylesheetManager:t},r){var a,n,o;let i=null;r.nodeName==="#document"?i=e.getId(r):i=e.getId(ae.host(r));let s=r.nodeName==="#document"?(a=r.defaultView)==null?void 0:a.Document:(o=(n=r.ownerDocument)==null?void 0:n.defaultView)==null?void 0:o.ShadowRoot,l=s?.prototype?Object.getOwnPropertyDescriptor(s?.prototype,"adoptedStyleSheets"):void 0;return i===null||i===-1||!s||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var d;return(d=l.get)==null?void 0:d.call(this)},set(d){var u;let f=(u=l.set)==null?void 0:u.call(this,d);if(i!==null&&i!==-1)try{t.adoptStyleSheets(d,i)}catch{}return f}}),pe(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function tk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:a},{win:n}){let o=n.CSSStyleDeclaration.prototype.setProperty;n.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pe((s,l,d)=>{var u;let[f,c,p]=d;if(r.has(f))return o.apply(l,[f,c,p]);let{id:h,styleId:m}=va((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,a.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:f,value:c,priority:p},index:Ul(l.parentRule)}),s.apply(l,d)})});let i=n.CSSStyleDeclaration.prototype.removeProperty;return n.CSSStyleDeclaration.prototype.removeProperty=new Proxy(i,{apply:pe((s,l,d)=>{var u;let[f]=d;if(r.has(f))return i.apply(l,[f]);let{id:c,styleId:p}=va((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,a.styleMirror);return(c&&c!==-1||p&&p!==-1)&&e({id:c,styleId:p,remove:{property:f},index:Ul(l.parentRule)}),s.apply(l,d)})}),pe(()=>{n.CSSStyleDeclaration.prototype.setProperty=o,n.CSSStyleDeclaration.prototype.removeProperty=i})}function rk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:a,sampling:n,doc:o}){let i=pe(l=>cs(pe(d=>{let u=ms(d);if(!u||kt(u,t,r,!0))return;let{currentTime:f,volume:c,muted:p,playbackRate:h,loop:m}=u;e({type:l,id:a.getId(u),currentTime:f,volume:c,muted:p,playbackRate:h,loop:m})}),n.media||500)),s=[Lt("play",i(ya.Play),o),Lt("pause",i(ya.Pause),o),Lt("seeked",i(ya.Seeked),o),Lt("volumechange",i(ya.VolumeChange),o),Lt("ratechange",i(ya.RateChange),o)];return pe(()=>{s.forEach(l=>l())})}function ak({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let a=[],n=new WeakMap,o=r.FontFace;r.FontFace=function(l,d,u){let f=new o(l,d,u);return n.set(f,{family:l,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),f};let i=Ga(t.fonts,"add",function(s){return function(l){return setTimeout(pe(()=>{let d=n.get(l);d&&(e(d),n.delete(l))}),0),s.apply(this,[l])}});return a.push(()=>{r.FontFace=o}),a.push(i),pe(()=>{a.forEach(s=>s())})}function nk(e){let{doc:t,mirror:r,blockClass:a,blockSelector:n,selectionCb:o}=e,i=!0,s=pe(()=>{let l=t.getSelection();if(!l||i&&l?.isCollapsed)return;i=l.isCollapsed||!1;let d=[],u=l.rangeCount||0;for(let f=0;f<u;f++){let c=l.getRangeAt(f),{startContainer:p,startOffset:h,endContainer:m,endOffset:S}=c;kt(p,a,n,!0)||kt(m,a,n,!0)||d.push({start:r.getId(p),startOffset:h,end:r.getId(m),endOffset:S})}o({ranges:d})});return s(),Lt("selectionchange",s)}function ok({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Ga(r.customElements,"define",function(n){return function(o,i,s){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return n.apply(this,[o,i,s])}})}function sk(e,t){let{mutationCb:r,mousemoveCb:a,mouseInteractionCb:n,scrollCb:o,viewportResizeCb:i,inputCb:s,mediaInteractionCb:l,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:f,fontCb:c,selectionCb:p,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),a(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),n(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),i(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),s(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),l(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),f(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),p(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function ik(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};sk(e,t);let a,n=()=>{};e.recordDOM&&([a,n]=Tw(e,e.doc));let o=K1(e),i=Q1(e),s=Nw(e),l=Y1(e,{win:r}),d=Z1(e),u=rk(e),f=()=>{},c=()=>{},p=()=>{},h=()=>{};e.recordDOM&&(f=ek(e,{win:r}),c=Aw(e,e.doc),p=tk(e,{win:r}),e.collectFonts&&(h=ak(e)));let m=nk(e),S=ok(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return pe(()=>{Wa.forEach(x=>x.reset()),a?.disconnect(),n(),o(),i(),s(),l(),d(),u(),f(),c(),p(),h(),m(),S(),g.forEach(x=>x())})}function Ll(e){return typeof window[e]<"u"}function kl(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var ql=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,a,n){let o=a||this.getIdToRemoteIdMap(t),i=n||this.getRemoteIdToIdMap(t),s=o.get(r);return s||(s=this.generateIdFn(),o.set(r,s),i.set(s,r)),s}getIds(t,r){let a=this.getIdToRemoteIdMap(t),n=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,a,n))}getRemoteId(t,r,a){let n=a||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=n.get(r);return o||-1}getRemoteIds(t,r){let a=this.getRemoteIdToIdMap(t);return r.map(n=>this.getRemoteId(t,n,a))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},xp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new ql(Vy)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new ql(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var a,n;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((a=t.contentWindow)==null||a.addEventListener("message",this.handleMessage.bind(this))),(n=this.loadListener)==null||n.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let n=this.crossOriginIframeMap.get(t.source);if(!n)return;let o=this.transformCrossOriginEvent(n,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var a;switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let n=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,n),this.patchRootIdOnNode(r.data.node,n),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:U.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case U.Mutation:return r.data.adds.forEach(n=>{this.replaceIds(n,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(n.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(n.node,o)}),r.data.removes.forEach(n=>{this.replaceIds(n,t,["parentId","id"])}),r.data.attributes.forEach(n=>{this.replaceIds(n,t,["id"])}),r.data.texts.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case U.Drag:case U.TouchMove:case U.MouseMove:return r.data.positions.forEach(n=>{this.replaceIds(n,t,["id"])}),r;case U.ViewportResize:return!1;case U.MediaInteraction:case U.MouseInteraction:case U.Scroll:case U.CanvasMutation:case U.Input:return this.replaceIds(r.data,t,["id"]),r;case U.StyleSheetRule:case U.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case U.Font:return r;case U.Selection:return r.data.ranges.forEach(n=>{this.replaceIds(n,t,["start","end"])}),r;case U.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(a=r.data.styles)==null||a.forEach(n=>{this.replaceStyleIds(n,t,["styleId"])}),r}}return!1}replace(t,r,a,n){for(let o of n)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(a,r[o]):r[o]=t.getId(a,r[o]));return r}replaceIds(t,r,a){return this.replace(this.crossOriginIframeMirror,t,r,a)}replaceStyleIds(t,r,a){return this.replace(this.crossOriginIframeStyleMirror,t,r,a)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(a=>{this.replaceIdOnNode(a,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(a=>{this.patchRootIdOnNode(a,r)})}},vp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!ns(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[a]=Tw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>a.disconnect()),this.restoreHandlers.push(Nw({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(ae.host(t))),this.restoreHandlers.push(Aw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let a=this;this.restoreHandlers.push(Ga(t.prototype,"attachShadow",function(n){return function(o){let i=n.call(this,o),s=ae.shadowRoot(this);return s&&Ew(this)&&a.addShadowRoot(s,r),i}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Xn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(es=0;es<Xn.length;es++)rs[Xn.charCodeAt(es)]=es;var es,lk=function(e){var t=new Uint8Array(e),r,a=t.length,n="";for(r=0;r<a;r+=3)n+=Xn[t[r]>>2],n+=Xn[(t[r]&3)<<4|t[r+1]>>4],n+=Xn[(t[r+1]&15)<<2|t[r+2]>>6],n+=Xn[t[r+2]&63];return a%3===2?n=n.substring(0,n.length-1)+"=":a%3===1&&(n=n.substring(0,n.length-2)+"=="),n},uk=function(e){var t=e.length*.75,r=e.length,a,n=0,o,i,s,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(a=0;a<r;a+=4)o=rs[e.charCodeAt(a)],i=rs[e.charCodeAt(a+1)],s=rs[e.charCodeAt(a+2)],l=rs[e.charCodeAt(a+3)],u[n++]=o<<2|i>>4,u[n++]=(i&15)<<4|s>>2,u[n++]=(s&3)<<6|l&63;return d},My=new Map;function dk(e,t){let r=My.get(e);return r||(r=new Map,My.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Dw=(e,t,r)=>{if(!e||!(Fw(e,t)||typeof e=="object"))return;let a=e.constructor.name,n=dk(r,a),o=n.indexOf(e);return o===-1&&(o=n.length,n.push(e)),o};function Ml(e,t,r){if(e instanceof Array)return e.map(a=>Ml(a,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let a=e.constructor.name,n=lk(e);return{rr_type:a,base64:n}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ml(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let a=e.constructor.name,{src:n}=e;return{rr_type:a,src:n}}else if(e instanceof HTMLCanvasElement){let a="HTMLImageElement",n=e.toDataURL();return{rr_type:a,src:n}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ml(e.data,t,r),e.width,e.height]};if(Fw(e,t)||typeof e=="object"){let a=e.constructor.name,n=Dw(e,t,r);return{rr_type:a,index:n}}}}return e}var Ow=(e,t,r)=>e.map(a=>Ml(a,t,r)),Fw=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(n=>typeof t[n]=="function").find(n=>e instanceof t[n]);function ck(e,t,r,a){let n=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let i of o)try{if(typeof t.CanvasRenderingContext2D.prototype[i]!="function")continue;let s=Ga(t.CanvasRenderingContext2D.prototype,i,function(l){return function(...d){return kt(this.canvas,r,a,!0)||setTimeout(()=>{let u=Ow(d,t,this);e(this.canvas,{type:jr["2D"],property:i,args:u})},0),l.apply(this,d)}});n.push(s)}catch{let s=ru(t.CanvasRenderingContext2D.prototype,i,{set(l){e(this.canvas,{type:jr["2D"],property:i,args:[l],setter:!0})}});n.push(s)}return()=>{n.forEach(i=>i())}}function fk(e){return e==="experimental-webgl"?"webgl":e}function _y(e,t,r,a){let n=[];try{let o=Ga(e.HTMLCanvasElement.prototype,"getContext",function(i){return function(s,...l){if(!kt(this,t,r,!0)){let d=fk(s);if("__context"in this||(this.__context=d),a&&["webgl","webgl2"].includes(d))if(l[0]&&typeof l[0]=="object"){let u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return i.apply(this,[s,...l])}});n.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{n.forEach(o=>o())}}function Ry(e,t,r,a,n,o){let i=[],s=Object.getOwnPropertyNames(e);for(let l of s)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let d=Ga(e,l,function(u){return function(...f){let c=u.apply(this,f);if(Dw(c,o,this),"tagName"in this.canvas&&!kt(this.canvas,a,n,!0)){let p=Ow(f,o,this),h={type:t,property:l,args:p};r(this.canvas,h)}return c}});i.push(d)}catch{let d=ru(e,l,{set(u){r(this.canvas,{type:t,property:l,args:[u],setter:!0})}});i.push(d)}return i}function pk(e,t,r,a){let n=[];return typeof t.WebGLRenderingContext<"u"&&n.push(...Ry(t.WebGLRenderingContext.prototype,jr.WebGL,e,r,a,t)),typeof t.WebGL2RenderingContext<"u"&&n.push(...Ry(t.WebGL2RenderingContext.prototype,jr.WebGL2,e,r,a,t)),()=>{n.forEach(o=>o())}}var Bw=`(function() {
61
+ or you can use record.mirror to access the mirror instance during recording.`,Cy={map:{},getId(){return console.error(Wa),-1},getNode(){return console.error(Wa),null},removeNodeFromMap(){console.error(Wa)},has(){return console.error(Wa),!1},reset(){console.error(Wa)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(Cy=new Proxy(Cy,{get(e,t,r){return t==="map"&&console.error(Wa),Reflect.get(e,t,r)}}));function cs(e,t,r={}){let n=null,a=0;return function(...o){let s=Date.now();!a&&r.leading===!1&&(a=s);let i=t-(s-a),l=this;i<=0||i>t?(n&&(clearTimeout(n),n=null),a=s,e.apply(l,o)):!n&&r.trailing!==!1&&(n=setTimeout(()=>{a=r.leading===!1?0:Date.now(),n=null,e.apply(l,o)},i))}}function nu(e,t,r,n,a=window){let o=a.Object.getOwnPropertyDescriptor(e,t);return a.Object.defineProperty(e,t,n?r:{set(s){setTimeout(()=>{r.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>nu(e,t,o||{},!0)}function Cw(e){var t,r,n,a;let o=e.document;return{left:o.scrollingElement?o.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:o.documentElement.scrollLeft||o?.body&&((t=ne.parentElement(o.body))==null?void 0:t.scrollLeft)||((r=o?.body)==null?void 0:r.scrollLeft)||0,top:o.scrollingElement?o.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:o?.documentElement.scrollTop||o?.body&&((n=ne.parentElement(o.body))==null?void 0:n.scrollTop)||((a=o?.body)==null?void 0:a.scrollTop)||0}}function Lw(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function kw(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Iw(e){return e?e.nodeType===e.ELEMENT_NODE?e:ne.parentElement(e):null}function kt(e,t,r,n){if(!e)return!1;let a=Iw(e);if(!a)return!1;try{if(typeof t=="string"){if(a.classList.contains(t)||n&&a.closest("."+t)!==null)return!0}else if(Tl(a,t,n))return!0}catch{}return!!(r&&(a.matches(r)||n&&a.closest(r)!==null))}function qL(e,t){return t.getId(e)!==-1}function Zf(e,t,r){return e.tagName==="TITLE"&&r.headTitleMutations?!0:t.getId(e)===us}function _w(e,t){if(ns(e))return!1;let r=t.getId(e);if(!t.has(r))return!0;let n=ne.parentNode(e);return n&&n.nodeType===e.DOCUMENT_NODE?!1:n?_w(n,t):!0}function gp(e){return!!e.changedTouches}function Mw(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach)}function $L(e){let t={},r=(a,o)=>{let s={value:a,parent:o,children:[]};return t[a.node.id]=s,s},n=[];for(let a of e){let{nextId:o,parentId:s}=a;if(o&&o in t){let i=t[o];if(i.parent){let l=i.parent.children.indexOf(i);i.parent.children.splice(l,0,r(a,i.parent))}else{let l=n.indexOf(i);n.splice(l,0,r(a,null))}continue}if(s in t){let i=t[s];i.children.push(r(a,i));continue}n.push(r(a,null))}return n}function Rw(e,t){t(e.value);for(let r=e.children.length-1;r>=0;r--)Rw(e.children[r],t)}function ss(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function Ew(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function Pw(e,t){var r,n;let a=(n=(r=e.ownerDocument)==null?void 0:r.defaultView)==null?void 0:n.frameElement;if(!a||a===t)return{x:0,y:0,relativeScale:1,absoluteScale:1};let o=a.getBoundingClientRect(),s=Pw(a,t),i=o.height/a.clientHeight;return{x:o.x*s.relativeScale+s.x,y:o.y*s.relativeScale+s.y,relativeScale:i,absoluteScale:s.absoluteScale*i}}function jn(e){return e?e instanceof vr&&"shadowRoot"in e?!!e.shadowRoot:!!ne.shadowRoot(e):!1}function ts(e,t){let r=e?.[t[0]];return r?t.length===1?r:ts(r.cssRules,t.slice(1)):null}function Ly(e){let t=[...e],r=t.pop();return{positions:t,index:r}}function HL(e){let t=new Set,r=[];for(let n=e.length;n--;){let a=e[n];t.has(a.id)||(r.push(a),t.add(a.id))}return r}var Ul=class{constructor(){R(this,"id",1),R(this,"styleIDMap",new WeakMap),R(this,"idStyleMap",new Map)}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,r){if(this.has(t))return this.getId(t);let n;return r===void 0?n=this.id++:n=r,this.styleIDMap.set(t,n),this.idStyleMap.set(n,t),n}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}};function Nw(e){var t;let r=null;return"getRootNode"in e&&((t=ne.getRootNode(e))==null?void 0:t.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&ne.host(ne.getRootNode(e))&&(r=ne.host(ne.getRootNode(e))),r}function WL(e){let t=e,r;for(;r=Nw(t);)t=r;return t}function jL(e){let t=ne.ownerDocument(e);if(!t)return!1;let r=WL(e);return ne.contains(t,r)}function Tw(e){let t=ne.ownerDocument(e);return t?ne.contains(t,e)||jL(e):!1}var W=(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[e.Asset=7]="Asset",e))(W||{}),q=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(q||{}),ye=(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))(ye||{}),Hr=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(Hr||{}),jr=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(jr||{}),wn=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(wn||{}),ve=(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.Destroy="destroy",e))(ve||{}),Wr=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Wr||{});function ky(e){return"__ln"in e}var xp=class{constructor(){R(this,"length",0),R(this,"head",null),R(this,"tail",null)}get(t){if(t>=this.length)throw new Error("Position outside of list range");let r=this.head;for(let n=0;n<t;n++)r=r?.next||null;return r}addNode(t){let r={value:t,previous:null,next:null};if(t.__ln=r,t.previousSibling&&ky(t.previousSibling)){let n=t.previousSibling.__ln.next;r.next=n,r.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=r,n&&(n.previous=r)}else if(t.nextSibling&&ky(t.nextSibling)&&t.nextSibling.__ln.previous){let n=t.nextSibling.__ln.previous;r.previous=n,r.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=r,n&&(n.next=r)}else this.head&&(this.head.previous=r),r.next=this.head,this.head=r;r.next===null&&(this.tail=r),this.length++}removeNode(t){let r=t.__ln;this.head&&(r.previous?(r.previous.next=r.next,r.next?r.next.previous=r.previous:this.tail=r.previous):(this.head=r.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}},Iy=(e,t)=>`${e}@${t}`,vp=class{constructor(){R(this,"frozen",!1),R(this,"locked",!1),R(this,"texts",[]),R(this,"attributes",[]),R(this,"attributeMap",new WeakMap),R(this,"removes",[]),R(this,"mapRemoves",[]),R(this,"movedMap",{}),R(this,"addedSet",new Set),R(this,"movedSet",new Set),R(this,"droppedSet",new Set),R(this,"removesSubTreeCache",new Set),R(this,"mutationCb"),R(this,"blockClass"),R(this,"blockSelector"),R(this,"maskTextClass"),R(this,"maskTextSelector"),R(this,"inlineStylesheet"),R(this,"maskInputOptions"),R(this,"maskTextFn"),R(this,"maskInputFn"),R(this,"keepIframeSrcFn"),R(this,"recordCanvas"),R(this,"inlineImages"),R(this,"slimDOMOptions"),R(this,"dataURLOptions"),R(this,"doc"),R(this,"mirror"),R(this,"iframeManager"),R(this,"stylesheetManager"),R(this,"shadowDomManager"),R(this,"canvasManager"),R(this,"processedNodeManager"),R(this,"unattachedDoc"),R(this,"processMutations",t=>{t.forEach(this.processMutation),this.emit()}),R(this,"emit",()=>{if(this.frozen||this.locked)return;let t=[],r=new Set,n=new xp,a=l=>{let d=l,u=us;for(;u===us;)d=d&&d.nextSibling,u=d&&this.mirror.getId(d);return u},o=l=>{let d=ne.parentNode(l);if(!d||!Tw(l))return;let u=!1;if(l.nodeType===Node.TEXT_NODE){let h=d.tagName;if(h==="TEXTAREA")return;h==="STYLE"&&this.addedSet.has(d)&&(u=!0)}let p=ns(d)?this.mirror.getId(Nw(l)):this.mirror.getId(d),c=a(l);if(p===-1||c===-1)return n.addNode(l);let f=Ga(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskTextClass:this.maskTextClass,maskTextSelector:this.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:h=>{ss(h,this.mirror)&&this.iframeManager.addIframe(h),Ew(h,this.mirror)&&this.stylesheetManager.trackLinkElement(h),jn(l)&&this.shadowDomManager.addShadowRoot(ne.shadowRoot(l),this.doc)},onIframeLoad:(h,m)=>{this.iframeManager.attachIframe(h,m),this.shadowDomManager.observeAttachShadow(h)},onStylesheetLoad:(h,m)=>{this.stylesheetManager.attachLinkElement(h,m)},cssCaptured:u});f&&(t.push({parentId:p,nextId:c,node:f}),r.add(f.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(let l of this.movedSet)_y(this.removesSubTreeCache,l,this.mirror)&&!this.movedSet.has(ne.parentNode(l))||o(l);for(let l of this.addedSet)!My(this.droppedSet,l)&&!_y(this.removesSubTreeCache,l,this.mirror)||My(this.movedSet,l)?o(l):this.droppedSet.add(l);let s=null;for(;n.length;){let l=null;if(s){let d=this.mirror.getId(ne.parentNode(s.value)),u=a(s.value);d!==-1&&u!==-1&&(l=s)}if(!l){let d=n.tail;for(;d;){let u=d;if(d=d.previous,u){let p=this.mirror.getId(ne.parentNode(u.value));if(a(u.value)===-1)continue;if(p!==-1){l=u;break}else{let f=u.value,h=ne.parentNode(f);if(h&&h.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let m=ne.host(h);if(this.mirror.getId(m)!==-1){l=u;break}}}}}}if(!l){for(;n.head;)n.removeNode(n.head.value);break}s=l.previous,n.removeNode(l.value),o(l.value)}let i={texts:this.texts.map(l=>{let d=l.node,u=ne.parentNode(d);return u&&u.tagName==="TEXTAREA"&&this.genTextAreaValueMutation(u),{id:this.mirror.getId(d),value:l.value}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{let{attributes:d}=l;if(typeof d.style=="string"){let u=JSON.stringify(l.styleDiff),p=JSON.stringify(l._unchangedStyles);u.length<d.style.length&&(u+p).split("var(").length===d.style.split("var(").length&&(d.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:d}}).filter(l=>!r.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!i.texts.length&&!i.attributes.length&&!i.removes.length&&!i.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.removesSubTreeCache=new Set,this.movedMap={},this.mutationCb(i))}),R(this,"genTextAreaValueMutation",t=>{let r=this.attributeMap.get(t);r||(r={node:t,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(r),this.attributeMap.set(t,r));let n=Array.from(ne.childNodes(t),a=>ne.textContent(a)||"").join("");r.attributes.value=El({element:t,maskInputOptions:this.maskInputOptions,tagName:t.tagName,type:Pl(t),value:n,maskInputFn:this.maskInputFn})}),R(this,"processMutation",t=>{if(!Zf(t.target,this.mirror,this.slimDOMOptions))switch(t.type){case"characterData":{let r=ne.textContent(t.target);!kt(t.target,this.blockClass,this.blockSelector,!1)&&r!==t.oldValue&&this.texts.push({value:Jy(t.target,this.maskTextClass,this.maskTextSelector,!0)&&r?this.maskTextFn?this.maskTextFn(r,Iw(t.target)):r.replace(/[\S]/g,"*"):r,node:t.target});break}case"attributes":{let r=t.target,n=t.attributeName,a=t.target.getAttribute(n);if(n==="value"){let s=Pl(r);a=El({element:r,maskInputOptions:this.maskInputOptions,tagName:r.tagName,type:s,value:a,maskInputFn:this.maskInputFn})}if(kt(t.target,this.blockClass,this.blockSelector,!1)||a===t.oldValue)return;let o=this.attributeMap.get(t.target);if(r.tagName==="IFRAME"&&n==="src"&&!this.keepIframeSrcFn(a))if(!r.contentDocument)n="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),n==="type"&&r.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&r.setAttribute("data-rr-is-password","true"),!Yy(r.tagName,n))if(o.attributes[n]=Qy(this.doc,Sn(r.tagName),Sn(n),a),n==="style"){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}let s=this.unattachedDoc.createElement("span");t.oldValue&&s.setAttribute("style",t.oldValue);for(let i of Array.from(r.style)){let l=r.style.getPropertyValue(i),d=r.style.getPropertyPriority(i);l!==s.style.getPropertyValue(i)||d!==s.style.getPropertyPriority(i)?d===""?o.styleDiff[i]=l:o.styleDiff[i]=[l,d]:o._unchangedStyles[i]=[l,d]}for(let i of Array.from(s.style))r.style.getPropertyValue(i)===""&&(o.styleDiff[i]=!1)}else n==="open"&&r.tagName==="DIALOG"&&(r.matches("dialog:modal")?o.attributes.rr_open_mode="modal":o.attributes.rr_open_mode="non-modal");break}case"childList":{if(kt(t.target,this.blockClass,this.blockSelector,!0))return;if(t.target.tagName==="TEXTAREA"){this.genTextAreaValueMutation(t.target);return}t.addedNodes.forEach(r=>this.genAdds(r,t.target)),t.removedNodes.forEach(r=>{let n=this.mirror.getId(r),a=ns(t.target)?this.mirror.getId(ne.host(t.target)):this.mirror.getId(t.target);kt(t.target,this.blockClass,this.blockSelector,!1)||Zf(r,this.mirror,this.slimDOMOptions)||!qL(r,this.mirror)||(this.addedSet.has(r)?(yp(this.addedSet,r),this.droppedSet.add(r)):this.addedSet.has(t.target)&&n===-1||_w(t.target,this.mirror)||(this.movedSet.has(r)&&this.movedMap[Iy(n,a)]?yp(this.movedSet,r):(this.removes.push({parentId:a,id:n,isShadow:ns(t.target)&&as(t.target)?!0:void 0}),VL(r,this.removesSubTreeCache))),this.mapRemoves.push(r))});break}}}),R(this,"genAdds",(t,r)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(Zf(t,this.mirror,this.slimDOMOptions))return;this.movedSet.add(t);let n=null;r&&this.mirror.hasNode(r)&&(n=this.mirror.getId(r)),n&&n!==-1&&(this.movedMap[Iy(this.mirror.getId(t),n)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);kt(t,this.blockClass,this.blockSelector,!1)||(ne.childNodes(t).forEach(n=>this.genAdds(n)),jn(t)&&ne.childNodes(ne.shadowRoot(t)).forEach(n=>{this.processedNodeManager.add(n,this),this.genAdds(n,t)}))}})}init(t){["mutationCb","blockClass","blockSelector","maskTextClass","maskTextSelector","inlineStylesheet","maskInputOptions","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager"].forEach(r=>{this[r]=t[r]})}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}};function yp(e,t){e.delete(t),ne.childNodes(t).forEach(r=>yp(e,r))}function VL(e,t){let r=[e];for(;r.length;){let n=r.pop();t.has(n)||(t.add(n),ne.childNodes(n).forEach(a=>r.push(a)))}}function _y(e,t,r){return e.size===0?!1:GL(e,t)}function GL(e,t,r){let n=ne.parentNode(t);return n?e.has(n):!1}function My(e,t){return e.size===0?!1:Aw(e,t)}function Aw(e,t){let r=ne.parentNode(t);return r?e.has(r)?!0:Aw(e,r):!1}var is;function XL(e){is=e}function KL(){is=void 0}var pe=e=>is?(...r)=>{try{return e(...r)}catch(n){if(is&&is(n)===!0)return;throw n}}:e,Vn=[];function ms(e){try{if("composedPath"in e){let t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function Dw(e,t){let r=new vp;Vn.push(r),r.init(e);let[n,a]=Sw(),o=new n(pe(r.processMutations.bind(r)));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),[o,a]}function QL({mousemoveCb:e,sampling:t,doc:r,mirror:n}){if(t.mousemove===!1)return()=>{};let a=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500,s=[],i,l=cs(pe(p=>{let c=Date.now()-i;e(s.map(f=>(f.timeOffset-=c,f)),p),s=[],i=null}),o),d=pe(cs(pe(p=>{let c=ms(p),{clientX:f,clientY:h}=gp(p)?p.changedTouches[0]:p;i||(i=ds()),s.push({x:f,y:h,id:n.getId(c),timeOffset:ds()-i}),l(typeof DragEvent<"u"&&p instanceof DragEvent?q.Drag:p instanceof MouseEvent?q.MouseMove:q.TouchMove)}),a,{trailing:!1})),u=[Lt("mousemove",d,r),Lt("touchmove",d,r),Lt("drag",d,r)];return pe(()=>{u.forEach(p=>p())})}function YL({mouseInteractionCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){if(o.mouseInteraction===!1)return()=>{};let s=o.mouseInteraction===!0||o.mouseInteraction===void 0?{}:o.mouseInteraction,i=[],l=null,d=u=>p=>{let c=ms(p);if(kt(c,n,a,!0))return;let f=null,h=u;if("pointerType"in p){switch(p.pointerType){case"mouse":f=Hr.Mouse;break;case"touch":f=Hr.Touch;break;case"pen":f=Hr.Pen;break}f===Hr.Touch?ye[u]===ye.MouseDown?h="TouchStart":ye[u]===ye.MouseUp&&(h="TouchEnd"):Hr.Pen}else gp(p)&&(f=Hr.Touch);f!==null?(l=f,(h.startsWith("Touch")&&f===Hr.Touch||h.startsWith("Mouse")&&f===Hr.Mouse)&&(f=null)):ye[u]===ye.Click&&(f=l,l=null);let m=gp(p)?p.changedTouches[0]:p;if(!m)return;let b=r.getId(c),{clientX:g,clientY:x}=m;pe(e)({type:ye[h],id:b,x:g,y:x,...f!==null&&{pointerType:f}})};return Object.keys(ye).filter(u=>Number.isNaN(Number(u))&&!u.endsWith("_Departed")&&s[u]!==!1).forEach(u=>{let p=Sn(u),c=d(u);if(window.PointerEvent)switch(ye[u]){case ye.MouseDown:case ye.MouseUp:p=p.replace("mouse","pointer");break;case ye.TouchStart:case ye.TouchEnd:return}i.push(Lt(p,c,t))}),pe(()=>{i.forEach(u=>u())})}function Ow({scrollCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,sampling:o}){let s=pe(cs(pe(i=>{let l=ms(i);if(!l||kt(l,n,a,!0))return;let d=r.getId(l);if(l===t&&t.defaultView){let u=Cw(t.defaultView);e({id:d,x:u.left,y:u.top})}else e({id:d,x:l.scrollLeft,y:l.scrollTop})}),o.scroll||100));return Lt("scroll",s,t)}function JL({viewportResizeCb:e},{win:t}){let r=-1,n=-1,a=pe(cs(pe(()=>{let o=Lw(),s=kw();(r!==o||n!==s)&&(e({width:Number(s),height:Number(o)}),r=o,n=s)}),200));return Lt("resize",a,t)}var ZL=["INPUT","TEXTAREA","SELECT"],Ry=new WeakMap;function ek({inputCb:e,doc:t,mirror:r,blockClass:n,blockSelector:a,ignoreClass:o,ignoreSelector:s,maskInputOptions:i,maskInputFn:l,sampling:d,userTriggeredOnInput:u}){function p(x){let v=ms(x),S=x.isTrusted,y=v&&v.tagName;if(v&&y==="OPTION"&&(v=ne.parentElement(v)),!v||!y||ZL.indexOf(y)<0||kt(v,n,a,!0)||v.classList.contains(o)||s&&v.matches(s))return;let w=v.value,L=!1,C=Pl(v)||"";C==="radio"||C==="checkbox"?L=v.checked:(i[y.toLowerCase()]||i[C])&&(w=El({element:v,maskInputOptions:i,tagName:y,type:C,value:w,maskInputFn:l})),c(v,u?{text:w,isChecked:L,userTriggered:S}:{text:w,isChecked:L});let _=v.name;C==="radio"&&_&&L&&t.querySelectorAll(`input[type="radio"][name="${_}"]`).forEach(I=>{if(I!==v){let D=I.value;c(I,u?{text:D,isChecked:!L,userTriggered:!1}:{text:D,isChecked:!L})}})}function c(x,v){let S=Ry.get(x);if(!S||S.text!==v.text||S.isChecked!==v.isChecked){Ry.set(x,v);let y=r.getId(x);pe(e)({...v,id:y})}}let h=(d.input==="last"?["change"]:["input","change"]).map(x=>Lt(x,pe(p),t)),m=t.defaultView;if(!m)return()=>{h.forEach(x=>x())};let b=m.Object.getOwnPropertyDescriptor(m.HTMLInputElement.prototype,"value"),g=[[m.HTMLInputElement.prototype,"value"],[m.HTMLInputElement.prototype,"checked"],[m.HTMLSelectElement.prototype,"value"],[m.HTMLTextAreaElement.prototype,"value"],[m.HTMLSelectElement.prototype,"selectedIndex"],[m.HTMLOptionElement.prototype,"selected"]];return b&&b.set&&h.push(...g.map(x=>nu(x[0],x[1],{set(){pe(p)({target:this,isTrusted:!1})}},!1,m))),pe(()=>{h.forEach(x=>x())})}function ql(e){let t=[];function r(n,a){if(kl("CSSGroupingRule")&&n.parentRule instanceof CSSGroupingRule||kl("CSSMediaRule")&&n.parentRule instanceof CSSMediaRule||kl("CSSSupportsRule")&&n.parentRule instanceof CSSSupportsRule||kl("CSSConditionRule")&&n.parentRule instanceof CSSConditionRule){let s=Array.from(n.parentRule.cssRules).indexOf(n);return a.unshift(s),r(n.parentRule,a)}else if(n.parentStyleSheet){let s=Array.from(n.parentStyleSheet.cssRules).indexOf(n);a.unshift(s)}return a}return r(e,t)}function yn(e,t,r){let n,a;return e?(e.ownerNode?n=t.getId(e.ownerNode):a=r.getId(e),{styleId:a,id:n}):{}}function tk({styleSheetRuleCb:e,mirror:t,stylesheetManager:r},{win:n}){if(!n.CSSStyleSheet||!n.CSSStyleSheet.prototype)return()=>{};let a=n.CSSStyleSheet.prototype.insertRule;n.CSSStyleSheet.prototype.insertRule=new Proxy(a,{apply:pe((u,p,c)=>{let[f,h]=c,{id:m,styleId:b}=yn(p,t,r.styleMirror);return(m&&m!==-1||b&&b!==-1)&&e({id:m,styleId:b,adds:[{rule:f,index:h}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.addRule=function(u,p,c=this.cssRules.length){let f=`${u} { ${p} }`;return n.CSSStyleSheet.prototype.insertRule.apply(this,[f,c])};let o=n.CSSStyleSheet.prototype.deleteRule;n.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:f}]}),u.apply(p,c)})}),n.CSSStyleSheet.prototype.removeRule=function(u){return n.CSSStyleSheet.prototype.deleteRule.apply(this,[u])};let s;n.CSSStyleSheet.prototype.replace&&(s=n.CSSStyleSheet.prototype.replace,n.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:f}),u.apply(p,c)})}));let i;n.CSSStyleSheet.prototype.replaceSync&&(i=n.CSSStyleSheet.prototype.replaceSync,n.CSSStyleSheet.prototype.replaceSync=new Proxy(i,{apply:pe((u,p,c)=>{let[f]=c,{id:h,styleId:m}=yn(p,t,r.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:f}),u.apply(p,c)})}));let l={};Il("CSSGroupingRule")?l.CSSGroupingRule=n.CSSGroupingRule:(Il("CSSMediaRule")&&(l.CSSMediaRule=n.CSSMediaRule),Il("CSSConditionRule")&&(l.CSSConditionRule=n.CSSConditionRule),Il("CSSSupportsRule")&&(l.CSSSupportsRule=n.CSSSupportsRule));let d={};return Object.entries(l).forEach(([u,p])=>{d[u]={insertRule:p.prototype.insertRule,deleteRule:p.prototype.deleteRule},p.prototype.insertRule=new Proxy(d[u].insertRule,{apply:pe((c,f,h)=>{let[m,b]=h,{id:g,styleId:x}=yn(f.parentStyleSheet,t,r.styleMirror);return(g&&g!==-1||x&&x!==-1)&&e({id:g,styleId:x,adds:[{rule:m,index:[...ql(f),b||0]}]}),c.apply(f,h)})}),p.prototype.deleteRule=new Proxy(d[u].deleteRule,{apply:pe((c,f,h)=>{let[m]=h,{id:b,styleId:g}=yn(f.parentStyleSheet,t,r.styleMirror);return(b&&b!==-1||g&&g!==-1)&&e({id:b,styleId:g,removes:[{index:[...ql(f),m]}]}),c.apply(f,h)})})}),pe(()=>{n.CSSStyleSheet.prototype.insertRule=a,n.CSSStyleSheet.prototype.deleteRule=o,s&&(n.CSSStyleSheet.prototype.replace=s),i&&(n.CSSStyleSheet.prototype.replaceSync=i),Object.entries(l).forEach(([u,p])=>{p.prototype.insertRule=d[u].insertRule,p.prototype.deleteRule=d[u].deleteRule})})}function Fw({mirror:e,stylesheetManager:t},r){var n,a,o;let s=null;r.nodeName==="#document"?s=e.getId(r):s=e.getId(ne.host(r));let i=r.nodeName==="#document"?(n=r.defaultView)==null?void 0:n.Document:(o=(a=r.ownerDocument)==null?void 0:a.defaultView)==null?void 0:o.ShadowRoot,l=i?.prototype?Object.getOwnPropertyDescriptor(i?.prototype,"adoptedStyleSheets"):void 0;return s===null||s===-1||!i||!l?()=>{}:(Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get(){var d;return(d=l.get)==null?void 0:d.call(this)},set(d){var u;let p=(u=l.set)==null?void 0:u.call(this,d);if(s!==null&&s!==-1)try{t.adoptStyleSheets(d,s)}catch{}return p}}),pe(()=>{Object.defineProperty(r,"adoptedStyleSheets",{configurable:l.configurable,enumerable:l.enumerable,get:l.get,set:l.set})}))}function rk({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:r,stylesheetManager:n},{win:a}){let o=a.CSSStyleDeclaration.prototype.setProperty;a.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:pe((i,l,d)=>{var u;let[p,c,f]=d;if(r.has(p))return o.apply(l,[p,c,f]);let{id:h,styleId:m}=yn((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,set:{property:p,value:c,priority:f},index:ql(l.parentRule)}),i.apply(l,d)})});let s=a.CSSStyleDeclaration.prototype.removeProperty;return a.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:pe((i,l,d)=>{var u;let[p]=d;if(r.has(p))return s.apply(l,[p]);let{id:c,styleId:f}=yn((u=l.parentRule)==null?void 0:u.parentStyleSheet,t,n.styleMirror);return(c&&c!==-1||f&&f!==-1)&&e({id:c,styleId:f,remove:{property:p},index:ql(l.parentRule)}),i.apply(l,d)})}),pe(()=>{a.CSSStyleDeclaration.prototype.setProperty=o,a.CSSStyleDeclaration.prototype.removeProperty=s})}function nk({mediaInteractionCb:e,blockClass:t,blockSelector:r,mirror:n,sampling:a,doc:o}){let s=pe(l=>cs(pe(d=>{let u=ms(d);if(!u||kt(u,t,r,!0))return;let{currentTime:p,volume:c,muted:f,playbackRate:h,loop:m}=u;e({type:l,id:n.getId(u),currentTime:p,volume:c,muted:f,playbackRate:h,loop:m})}),a.media||500)),i=[Lt("play",s(wn.Play),o),Lt("pause",s(wn.Pause),o),Lt("seeked",s(wn.Seeked),o),Lt("volumechange",s(wn.VolumeChange),o),Lt("ratechange",s(wn.RateChange),o)];return pe(()=>{i.forEach(l=>l())})}function ak({fontCb:e,doc:t}){let r=t.defaultView;if(!r)return()=>{};let n=[],a=new WeakMap,o=r.FontFace;r.FontFace=function(l,d,u){let p=new o(l,d,u);return a.set(p,{family:l,buffer:typeof d!="string",descriptors:u,fontSource:typeof d=="string"?d:JSON.stringify(Array.from(new Uint8Array(d)))}),p};let s=Kn(t.fonts,"add",function(i){return function(l){return setTimeout(pe(()=>{let d=a.get(l);d&&(e(d),a.delete(l))}),0),i.apply(this,[l])}});return n.push(()=>{r.FontFace=o}),n.push(s),pe(()=>{n.forEach(i=>i())})}function ok(e){let{doc:t,mirror:r,blockClass:n,blockSelector:a,selectionCb:o}=e,s=!0,i=pe(()=>{let l=t.getSelection();if(!l||s&&l?.isCollapsed)return;s=l.isCollapsed||!1;let d=[],u=l.rangeCount||0;for(let p=0;p<u;p++){let c=l.getRangeAt(p),{startContainer:f,startOffset:h,endContainer:m,endOffset:b}=c;kt(f,n,a,!0)||kt(m,n,a,!0)||d.push({start:r.getId(f),startOffset:h,end:r.getId(m),endOffset:b})}o({ranges:d})});return i(),Lt("selectionchange",i)}function sk({doc:e,customElementCb:t}){let r=e.defaultView;return!r||!r.customElements?()=>{}:Kn(r.customElements,"define",function(a){return function(o,s,i){try{t({define:{name:o}})}catch{console.warn(`Custom element callback failed for ${o}`)}return a.apply(this,[o,s,i])}})}function ik(e,t){let{mutationCb:r,mousemoveCb:n,mouseInteractionCb:a,scrollCb:o,viewportResizeCb:s,inputCb:i,mediaInteractionCb:l,styleSheetRuleCb:d,styleDeclarationCb:u,canvasMutationCb:p,fontCb:c,selectionCb:f,customElementCb:h}=e;e.mutationCb=(...m)=>{t.mutation&&t.mutation(...m),r(...m)},e.mousemoveCb=(...m)=>{t.mousemove&&t.mousemove(...m),n(...m)},e.mouseInteractionCb=(...m)=>{t.mouseInteraction&&t.mouseInteraction(...m),a(...m)},e.scrollCb=(...m)=>{t.scroll&&t.scroll(...m),o(...m)},e.viewportResizeCb=(...m)=>{t.viewportResize&&t.viewportResize(...m),s(...m)},e.inputCb=(...m)=>{t.input&&t.input(...m),i(...m)},e.mediaInteractionCb=(...m)=>{t.mediaInteaction&&t.mediaInteaction(...m),l(...m)},e.styleSheetRuleCb=(...m)=>{t.styleSheetRule&&t.styleSheetRule(...m),d(...m)},e.styleDeclarationCb=(...m)=>{t.styleDeclaration&&t.styleDeclaration(...m),u(...m)},e.canvasMutationCb=(...m)=>{t.canvasMutation&&t.canvasMutation(...m),p(...m)},e.fontCb=(...m)=>{t.font&&t.font(...m),c(...m)},e.selectionCb=(...m)=>{t.selection&&t.selection(...m),f(...m)},e.customElementCb=(...m)=>{t.customElement&&t.customElement(...m),h(...m)}}function lk(e,t={}){let r=e.doc.defaultView;if(!r)return()=>{};ik(e,t);let n,a=()=>{};e.recordDOM&&([n,a]=Dw(e,e.doc));let o=QL(e),s=YL(e),i=Ow(e),l=JL(e,{win:r}),d=ek(e),u=nk(e),p=()=>{},c=()=>{},f=()=>{},h=()=>{};e.recordDOM&&(p=tk(e,{win:r}),c=Fw(e,e.doc),f=rk(e,{win:r}),e.collectFonts&&(h=ak(e)));let m=ok(e),b=sk(e),g=[];for(let x of e.plugins)g.push(x.observer(x.callback,r,x.options));return pe(()=>{Vn.forEach(x=>x.reset()),n?.disconnect(),a(),o(),s(),i(),l(),d(),u(),p(),c(),f(),h(),m(),b(),g.forEach(x=>x())})}function kl(e){return typeof window[e]<"u"}function Il(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}var $l=class{constructor(t){R(this,"iframeIdToRemoteIdMap",new WeakMap),R(this,"iframeRemoteIdToIdMap",new WeakMap),this.generateIdFn=t}getId(t,r,n,a){let o=n||this.getIdToRemoteIdMap(t),s=a||this.getRemoteIdToIdMap(t),i=o.get(r);return i||(i=this.generateIdFn(),o.set(r,i),s.set(i,r)),i}getIds(t,r){let n=this.getIdToRemoteIdMap(t),a=this.getRemoteIdToIdMap(t);return r.map(o=>this.getId(t,o,n,a))}getRemoteId(t,r,n){let a=n||this.getRemoteIdToIdMap(t);if(typeof r!="number")return r;let o=a.get(r);return o||-1}getRemoteIds(t,r){let n=this.getRemoteIdToIdMap(t);return r.map(a=>this.getRemoteId(t,a,n))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let r=this.iframeIdToRemoteIdMap.get(t);return r||(r=new Map,this.iframeIdToRemoteIdMap.set(t,r)),r}getRemoteIdToIdMap(t){let r=this.iframeRemoteIdToIdMap.get(t);return r||(r=new Map,this.iframeRemoteIdToIdMap.set(t,r)),r}},wp=class{constructor(t){R(this,"iframes",new WeakMap),R(this,"crossOriginIframeMap",new WeakMap),R(this,"crossOriginIframeMirror",new $l(Ky)),R(this,"crossOriginIframeStyleMirror"),R(this,"crossOriginIframeRootIdMap",new WeakMap),R(this,"mirror"),R(this,"mutationCb"),R(this,"wrappedEmit"),R(this,"loadListener"),R(this,"stylesheetManager"),R(this,"recordCrossOriginIframes"),this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new $l(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0),t.contentWindow&&this.crossOriginIframeMap.set(t.contentWindow,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,r){var n,a;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:r}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((n=t.contentWindow)==null||n.addEventListener("message",this.handleMessage.bind(this))),(a=this.loadListener)==null||a.call(this,t),t.contentDocument&&t.contentDocument.adoptedStyleSheets&&t.contentDocument.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(t.contentDocument.adoptedStyleSheets,this.mirror.getId(t.contentDocument))}handleMessage(t){let r=t;if(r.data.type!=="rrweb"||r.origin!==r.data.origin||!t.source)return;let a=this.crossOriginIframeMap.get(t.source);if(!a)return;let o=this.transformCrossOriginEvent(a,r.data.event);o&&this.wrappedEmit(o,r.data.isCheckout)}transformCrossOriginEvent(t,r){var n;switch(r.type){case W.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(r.data.node,t);let a=r.data.node.id;return this.crossOriginIframeRootIdMap.set(t,a),this.patchRootIdOnNode(r.data.node,a),{timestamp:r.timestamp,type:W.IncrementalSnapshot,data:{source:q.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:r.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case W.Meta:case W.Load:case W.DomContentLoaded:return!1;case W.Plugin:return r;case W.Custom:return this.replaceIds(r.data.payload,t,["id","parentId","previousId","nextId"]),r;case W.IncrementalSnapshot:switch(r.data.source){case q.Mutation:return r.data.adds.forEach(a=>{this.replaceIds(a,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(a.node,t);let o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(a.node,o)}),r.data.removes.forEach(a=>{this.replaceIds(a,t,["parentId","id"])}),r.data.attributes.forEach(a=>{this.replaceIds(a,t,["id"])}),r.data.texts.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case q.Drag:case q.TouchMove:case q.MouseMove:return r.data.positions.forEach(a=>{this.replaceIds(a,t,["id"])}),r;case q.ViewportResize:return!1;case q.MediaInteraction:case q.MouseInteraction:case q.Scroll:case q.CanvasMutation:case q.Input:return this.replaceIds(r.data,t,["id"]),r;case q.StyleSheetRule:case q.StyleDeclaration:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleId"]),r;case q.Font:return r;case q.Selection:return r.data.ranges.forEach(a=>{this.replaceIds(a,t,["start","end"])}),r;case q.AdoptedStyleSheet:return this.replaceIds(r.data,t,["id"]),this.replaceStyleIds(r.data,t,["styleIds"]),(n=r.data.styles)==null||n.forEach(a=>{this.replaceStyleIds(a,t,["styleId"])}),r}}return!1}replace(t,r,n,a){for(let o of a)!Array.isArray(r[o])&&typeof r[o]!="number"||(Array.isArray(r[o])?r[o]=t.getIds(n,r[o]):r[o]=t.getId(n,r[o]));return r}replaceIds(t,r,n){return this.replace(this.crossOriginIframeMirror,t,r,n)}replaceStyleIds(t,r,n){return this.replace(this.crossOriginIframeStyleMirror,t,r,n)}replaceIdOnNode(t,r){this.replaceIds(t,r,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(n=>{this.replaceIdOnNode(n,r)})}patchRootIdOnNode(t,r){t.type!==Wr.Document&&!t.rootId&&(t.rootId=r),"childNodes"in t&&t.childNodes.forEach(n=>{this.patchRootIdOnNode(n,r)})}},bp=class{constructor(t){R(this,"shadowDoms",new WeakSet),R(this,"mutationCb"),R(this,"scrollCb"),R(this,"bypassOptions"),R(this,"mirror"),R(this,"restoreHandlers",[]),this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,r){if(!as(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t);let[n]=Dw({...this.bypassOptions,doc:r,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>n.disconnect()),this.restoreHandlers.push(Ow({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),setTimeout(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(ne.host(t))),this.restoreHandlers.push(Fw({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){!t.contentWindow||!t.contentDocument||this.patchAttachShadow(t.contentWindow.Element,t.contentDocument)}patchAttachShadow(t,r){let n=this;this.restoreHandlers.push(Kn(t.prototype,"attachShadow",function(a){return function(o){let s=a.call(this,o),i=ne.shadowRoot(this);return i&&Tw(this)&&n.addShadowRoot(i,r),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet}},Xa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rs=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(es=0;es<Xa.length;es++)rs[Xa.charCodeAt(es)]=es;var es,uk=function(e){var t=new Uint8Array(e),r,n=t.length,a="";for(r=0;r<n;r+=3)a+=Xa[t[r]>>2],a+=Xa[(t[r]&3)<<4|t[r+1]>>4],a+=Xa[(t[r+1]&15)<<2|t[r+2]>>6],a+=Xa[t[r+2]&63];return n%3===2?a=a.substring(0,a.length-1)+"=":n%3===1&&(a=a.substring(0,a.length-2)+"=="),a},dk=function(e){var t=e.length*.75,r=e.length,n,a=0,o,s,i,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);var d=new ArrayBuffer(t),u=new Uint8Array(d);for(n=0;n<r;n+=4)o=rs[e.charCodeAt(n)],s=rs[e.charCodeAt(n+1)],i=rs[e.charCodeAt(n+2)],l=rs[e.charCodeAt(n+3)],u[a++]=o<<2|s>>4,u[a++]=(s&15)<<4|i>>2,u[a++]=(i&3)<<6|l&63;return d},Ey=new Map;function ck(e,t){let r=Ey.get(e);return r||(r=new Map,Ey.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}var Bw=(e,t,r)=>{if(!e||!(Uw(e,t)||typeof e=="object"))return;let n=e.constructor.name,a=ck(r,n),o=a.indexOf(e);return o===-1&&(o=a.length,a.push(e)),o};function Ml(e,t,r){if(e instanceof Array)return e.map(n=>Ml(n,t,r));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){let n=e.constructor.name,a=uk(e);return{rr_type:n,base64:a}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Ml(e.buffer,t,r),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){let n=e.constructor.name,{src:a}=e;return{rr_type:n,src:a}}else if(e instanceof HTMLCanvasElement){let n="HTMLImageElement",a=e.toDataURL();return{rr_type:n,src:a}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Ml(e.data,t,r),e.width,e.height]};if(Uw(e,t)||typeof e=="object"){let n=e.constructor.name,a=Bw(e,t,r);return{rr_type:n,index:a}}}}return e}var zw=(e,t,r)=>e.map(n=>Ml(n,t,r)),Uw=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(a=>typeof t[a]=="function").find(a=>e instanceof t[a]);function fk(e,t,r,n){let a=[],o=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(let s of o)try{if(typeof t.CanvasRenderingContext2D.prototype[s]!="function")continue;let i=Kn(t.CanvasRenderingContext2D.prototype,s,function(l){return function(...d){return kt(this.canvas,r,n,!0)||setTimeout(()=>{let u=zw(d,t,this);e(this.canvas,{type:jr["2D"],property:s,args:u})},0),l.apply(this,d)}});a.push(i)}catch{let i=nu(t.CanvasRenderingContext2D.prototype,s,{set(l){e(this.canvas,{type:jr["2D"],property:s,args:[l],setter:!0})}});a.push(i)}return()=>{a.forEach(s=>s())}}function pk(e){return e==="experimental-webgl"?"webgl":e}function Py(e,t,r,n){let a=[];try{let o=Kn(e.HTMLCanvasElement.prototype,"getContext",function(s){return function(i,...l){if(!kt(this,t,r,!0)){let d=pk(i);if("__context"in this||(this.__context=d),n&&["webgl","webgl2"].includes(d))if(l[0]&&typeof l[0]=="object"){let u=l[0];u.preserveDrawingBuffer||(u.preserveDrawingBuffer=!0)}else l.splice(0,1,{preserveDrawingBuffer:!0})}return s.apply(this,[i,...l])}});a.push(o)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{a.forEach(o=>o())}}function Ny(e,t,r,n,a,o){let s=[],i=Object.getOwnPropertyNames(e);for(let l of i)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(l))try{if(typeof e[l]!="function")continue;let d=Kn(e,l,function(u){return function(...p){let c=u.apply(this,p);if(Bw(c,o,this),"tagName"in this.canvas&&!kt(this.canvas,n,a,!0)){let f=zw(p,o,this),h={type:t,property:l,args:f};r(this.canvas,h)}return c}});s.push(d)}catch{let d=nu(e,l,{set(u){r(this.canvas,{type:t,property:l,args:[u],setter:!0})}});s.push(d)}return s}function mk(e,t,r,n){let a=[];return typeof t.WebGLRenderingContext<"u"&&a.push(...Ny(t.WebGLRenderingContext.prototype,jr.WebGL,e,r,n,t)),typeof t.WebGL2RenderingContext<"u"&&a.push(...Ny(t.WebGL2RenderingContext.prototype,jr.WebGL2,e,r,n,t)),()=>{a.forEach(o=>o())}}var qw=`(function() {
62
62
  "use strict";
63
63
  var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
64
64
  var lookup = typeof Uint8Array === "undefined" ? [] : new Uint8Array(256);
@@ -133,11 +133,11 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
133
133
  };
134
134
  })();
135
135
  //# sourceMappingURL=image-bitmap-data-url-worker-IJpC7g_b.js.map
136
- `,Ey=typeof self<"u"&&self.Blob&&new Blob([Bw],{type:"text/javascript;charset=utf-8"});function mk(e){let t;try{if(t=Ey&&(self.URL||self.webkitURL).createObjectURL(Ey),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(Bw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var yp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(l,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(d)});let{sampling:r="all",win:a,blockClass:n,blockSelector:o,recordCanvas:i,dataURLOptions:s}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,i&&r==="all"&&this.initCanvasMutationObserver(a,n,o),i&&typeof r=="number"&&this.initCanvasFPSObserver(r,a,n,o,{dataURLOptions:s})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,a,n,o){let i=_y(r,a,n,!0),s=new Map,l=new mk;l.onmessage=h=>{let{id:m}=h.data;if(s.set(m,!1),!("base64"in h.data))return;let{base64:S,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:jr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:S}],type:g}]},0,0]}]})};let d=1e3/t,u=0,f,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{kt(m,a,n,!0)||h.push(m)}),h},p=h=>{if(u&&h-u<d){f=requestAnimationFrame(p);return}u=h,c().forEach(async m=>{var S;let g=this.mirror.getId(m);if(s.get(g)||m.width===0||m.height===0)return;if(s.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((S=v?.getContextAttributes())==null?void 0:S.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);l.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),f=requestAnimationFrame(p)};f=requestAnimationFrame(p),this.resetObservers=()=>{i(),cancelAnimationFrame(f)}}initCanvasMutationObserver(t,r,a){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let n=_y(t,r,a,!1),o=ck(this.processMutation.bind(this),t,r,a),i=pk(this.processMutation.bind(this),t,r,a);this.resetObservers=()=>{n(),o(),i()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let a=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,a)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let a=this.pendingCanvasMutations.get(t);if(!a||r===-1)return;let n=a.map(i=>{let{type:s,...l}=i;return l}),{type:o}=a[0];this.mutationCb({id:r,type:o,commands:n}),this.pendingCanvasMutations.delete(t)}},wp=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new zl),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let a={id:r,styleIds:[]},n=[];for(let o of t){let i;this.styleMirror.has(o)?i=this.styleMirror.getId(o):(i=this.styleMirror.add(o),n.push({styleId:i,rules:Array.from(o.rules||CSSRule,(s,l)=>({rule:Wy(s,o.href),index:l}))})),a.styleIds.push(i)}n.length>0&&(a.styles=n),this.adoptedStyleSheetCb(a)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Sp=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let a=this.nodeMap.get(t);return a&&Array.from(a).some(n=>n!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,_l,Yf,$l=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((tv=e.contentWindow)==null?void 0:tv.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var hr=jy();function Xa(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:a,blockClass:n="rr-block",blockSelector:o=null,ignoreClass:i="rr-ignore",ignoreSelector:s=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:f,maskInputOptions:c,slimDOMOptions:p,maskInputFn:h,maskTextFn:m,hooks:S,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:b,recordDOM:w=!0,recordCanvas:y=!1,recordCrossOriginIframes:L=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:I=!1,inlineImages:D=!1,plugins:A,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:ke=new Set([]),errorHandler:Ie}=e;G1(Ie);let ue=L?window.parent===window:!0,j=!1;if(!ue)try{window.parent.document&&(j=!1)}catch{j=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!j)return()=>{};b!==void 0&&x.mousemove===void 0&&(x.mousemove=b),hr.reset();let Se=f===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},ze=Qy(p);kw();let be,we=0,wr=X=>{for(let _e of A||[])_e.eventProcessor&&(X=_e.eventProcessor(X));return g&&!j&&(X=g(X)),X};We=(X,_e)=>{var se;let Re=X;if(Re.timestamp=ds(),(se=Wa[0])!=null&&se.isFrozen()&&Re.type!==W.FullSnapshot&&!(Re.type===W.IncrementalSnapshot&&Re.data.source===U.Mutation)&&Wa.forEach(lt=>lt.unfreeze()),ue)t?.(wr(Re),_e);else if(j){let lt={type:"rrweb",event:wr(Re),origin:window.location.origin,isCheckout:_e};window.parent.postMessage(lt,"*")}if(Re.type===W.FullSnapshot)be=Re,we=0;else if(Re.type===W.IncrementalSnapshot){if(Re.data.source===U.Mutation&&Re.data.isAttachIframe)return;we++;let lt=a&&we>=a,me=r&&Re.timestamp-be.timestamp>r;(lt||me)&&_l(!0)}};let E=X=>{We({type:W.IncrementalSnapshot,data:{source:U.Mutation,...X}})},vt=X=>We({type:W.IncrementalSnapshot,data:{source:U.Scroll,...X}}),yt=X=>We({type:W.IncrementalSnapshot,data:{source:U.CanvasMutation,...X}}),Ia=X=>We({type:W.IncrementalSnapshot,data:{source:U.AdoptedStyleSheet,...X}}),Qe=new wp({mutationCb:E,adoptedStyleSheetCb:Ia}),it=new xp({mirror:hr,mutationCb:E,stylesheetManager:Qe,recordCrossOriginIframes:L,wrappedEmit:We});for(let X of A||[])X.getMirror&&X.getMirror({nodeMirror:hr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let Sr=new Sp;Yf=new yp({recordCanvas:y,mutationCb:yt,win:window,blockClass:n,blockSelector:o,mirror:hr,sampling:x.canvas,dataURLOptions:v});let br=new vp({mutationCb:E,scrollCb:vt,bypassOptions:{blockClass:n,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:Se,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:y,inlineImages:D,sampling:x,slimDOMOptions:ze,iframeManager:it,stylesheetManager:Qe,canvasManager:Yf,keepIframeSrcFn:k,processedNodeManager:Sr},mirror:hr});_l=(X=!1)=>{if(!w)return;We({type:W.Meta,data:{href:window.location.href,width:bw(),height:Sw()}},X),Qe.reset(),br.init(),Wa.forEach(se=>se.lock());let _e=vL(document,{mirror:hr,blockClass:n,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:Se,maskTextFn:m,maskInputFn:h,slimDOM:ze,dataURLOptions:v,recordCanvas:y,inlineImages:D,onSerialize:se=>{ss(se,hr)&&it.addIframe(se),Mw(se,hr)&&Qe.trackLinkElement(se),Ha(se)&&br.addShadowRoot(ae.shadowRoot(se),document)},onIframeLoad:(se,Re)=>{it.attachIframe(se,Re),br.observeAttachShadow(se)},onStylesheetLoad:(se,Re)=>{Qe.attachLinkElement(se,Re)},keepIframeSrcFn:k});if(!_e)return console.warn("Failed to snapshot the document");We({type:W.FullSnapshot,data:{node:_e,initialOffset:ww(window)}},X),Wa.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Qe.adoptStyleSheets(document.adoptedStyleSheets,hr.getId(document))};try{let X=[],_e=Re=>{var lt;return pe(ik)({mutationCb:E,mousemoveCb:(me,sn)=>We({type:W.IncrementalSnapshot,data:{source:sn,positions:me}}),mouseInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.MouseInteraction,...me}}),scrollCb:vt,viewportResizeCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.ViewportResize,...me}}),inputCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.Input,...me}}),mediaInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.MediaInteraction,...me}}),styleSheetRuleCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.StyleSheetRule,...me}}),styleDeclarationCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.StyleDeclaration,...me}}),canvasMutationCb:yt,fontCb:me=>We({type:W.IncrementalSnapshot,data:{source:U.Font,...me}}),selectionCb:me=>{We({type:W.IncrementalSnapshot,data:{source:U.Selection,...me}})},customElementCb:me=>{We({type:W.IncrementalSnapshot,data:{source:U.CustomElement,...me}})},blockClass:n,ignoreClass:i,ignoreSelector:s,maskTextClass:l,maskTextSelector:d,maskInputOptions:Se,inlineStylesheet:u,sampling:x,recordDOM:w,recordCanvas:y,inlineImages:D,userTriggeredOnInput:M,collectFonts:I,doc:Re,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:k,blockSelector:o,slimDOMOptions:ze,dataURLOptions:v,mirror:hr,iframeManager:it,stylesheetManager:Qe,shadowDomManager:br,processedNodeManager:Sr,canvasManager:Yf,ignoreCSSAttributes:ke,plugins:((lt=A?.filter(me=>me.observer))==null?void 0:lt.map(me=>({observer:me.observer,options:me.options,callback:sn=>We({type:W.Plugin,data:{plugin:me.name,payload:sn}})})))||[]},S)};it.addLoadListener(Re=>{try{X.push(_e(Re.contentDocument))}catch(lt){console.warn(lt)}});let se=()=>{_l(),X.push(_e(document)),$l=!0};return["interactive","complete"].includes(document.readyState)?se():(X.push(Lt("DOMContentLoaded",()=>{We({type:W.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&se()})),X.push(Lt("load",()=>{We({type:W.Load,data:{}}),C==="load"&&se()},window))),()=>{X.forEach(Re=>{try{Re()}catch(lt){String(lt).toLowerCase().includes("cross-origin")||console.warn(lt)}}),Sr.destroy(),$l=!1,X1()}}catch(X){console.warn(X)}}Xa.addCustomEvent=(e,t)=>{if(!$l)throw new Error("please add custom event after start recording");We({type:W.Custom,data:{tag:e,payload:t}})};Xa.freezePage=()=>{Wa.forEach(e=>e.freeze())};Xa.takeFullSnapshot=e=>{if(!$l)throw new Error("please take full snapshot after start recording");_l(e)};Xa.mirror=hr;function hk(e){return{all:e=e||new Map,on:function(t,r){var a=e.get(t);a?a.push(r):e.set(t,[r])},off:function(t,r){var a=e.get(t);a&&(r?a.splice(a.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var a=e.get(t);a&&a.slice().map(function(n){n(r)}),(a=e.get("*"))&&a.slice().map(function(n){n(t,r)})}}}function gk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,a=468,n={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function i(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let s=i(e.navigator.userAgent)?1:0;function l(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function f(g,x){if(x==="Y")return g.clientHeight+s<g.scrollHeight;if(x==="X")return g.clientWidth+s<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function p(g){let x=f(g,"Y")&&c(g,"Y"),v=f(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&p(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,b,w,y=(x-g.startTime)/a;y=y>1?1:y,v=d(y),b=g.startX+(g.x-g.startX)*v,w=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,b,w),(b!==g.x||w!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function S(g,x,v){let b,w,y,L,C=o();g===t.body?(b=e,w=e.scrollX||e.pageXOffset,y=e.scrollY||e.pageYOffset,L=n.scroll):(b=g,w=g.scrollLeft,y=g.scrollTop,L=l),m({scrollable:b,method:L,startTime:C,startX:w,startY:y,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){n.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}S.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(u(arguments[0])){n.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}S.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(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");n.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}let g=arguments[0].left,x=arguments[0].top;S.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){n.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(u(arguments[0])===!0){n.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(S.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var bp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let a=this.findActionIndex(t);this.actions.splice(a,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,a=this.actions.length-1;for(;r<=a;){let n=Math.floor((r+a)/2);if(this.actions[n].delay<t.delay)r=n+1;else if(this.actions[n].delay>t.delay)a=n-1;else return n+1}return r}};function Py(e,t){if(e.type===W.IncrementalSnapshot&&e.data.source===U.MouseMove&&e.data.positions&&e.data.positions.length){let r=e.data.positions[0].timeOffset,a=e.timestamp+r;return e.delay=a-t,a-t}return e.delay=e.timestamp-t,e.delay}function Ty(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var a,n,o=r.call(e),i=[];try{for(;(t===void 0||t-- >0)&&!(a=o.next()).done;)i.push(a.value)}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}var Kn;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Kn||(Kn={}));var zw={type:"xstate.init"};function Jf(e){return e===void 0?[]:[].concat(e)}function jn(e){return{type:"xstate.assign",assignment:e}}function Ny(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Hl(e){return function(t){return e===t}}function Uw(e){return typeof e=="string"?{type:e}:e}function Ay(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Hl(e)}}function Dy(e,t,r){var a=t,n=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){n=!0;var i=Object.assign({},a);return typeof o.assignment=="function"?i=o.assignment(a,r):Object.keys(o.assignment).forEach(function(s){i[s]=typeof o.assignment[s]=="function"?o.assignment[s](a,r):o.assignment[s]}),a=i,!1}return!0}),a,n]}function qw(e,t){t===void 0&&(t={});var r=Ty(Dy(Jf(e.states[e.initial].entry).map(function(i){return Ny(i,t.actions)}),e.context,zw),2),a=r[0],n=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:a,context:n,matches:Hl(e.initial)},transition:function(i,s){var l,d,u=typeof i=="string"?{value:i,context:e.context}:i,f=u.value,c=u.context,p=Uw(s),h=e.states[f];if(h.on){var m=Jf(h.on[p.type]);try{for(var S=(function(j){var Se=typeof Symbol=="function"&&Symbol.iterator,ze=Se&&j[Se],be=0;if(ze)return ze.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&be>=j.length&&(j=void 0),{value:j&&j[be++],done:!j}}};throw new TypeError(Se?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=S.next();!g.done;g=S.next()){var x=g.value;if(x===void 0)return Ay(f,c);var v=typeof x=="string"?{target:x}:x,b=v.target,w=v.actions,y=w===void 0?[]:w,L=v.cond,C=L===void 0?function(){return!0}:L,M=b===void 0,I=b??f,D=e.states[I];if(C(c,p)){var A=Ty(Dy((M?Jf(y):[].concat(h.exit,y,D.entry).filter(function(j){return j})).map(function(j){return Ny(j,o._options.actions)}),c,p),3),k=A[0],ke=A[1],Ie=A[2],ue=b??f;return{value:ue,context:ke,actions:k,changed:b!==f||k.length>0||Ie,matches:Hl(ue)}}}}catch(j){l={error:j}}finally{try{g&&!g.done&&(d=S.return)&&d.call(S)}finally{if(l)throw l.error}}}return Ay(f,c)}};return o}var Oy=function(e,t){return e.actions.forEach(function(r){var a=r.exec;return a&&a(e.context,t)})};function $w(e){var t=e.initialState,r=Kn.NotStarted,a=new Set,n={_machine:e,send:function(o){r===Kn.Running&&(t=e.transition(t,o),Oy(t,Uw(o)),a.forEach(function(i){return i(t)}))},subscribe:function(o){return a.add(o),o(t),{unsubscribe:function(){return a.delete(o)}}},start:function(o){if(o){var i=typeof o=="object"?o:{context:e.config.context,value:o};t={value:i.value,actions:[],context:i.context,matches:Hl(i.value)}}return r=Kn.Running,Oy(t,zw),n},stop:function(){return r=Kn.Stopped,a.clear(),n},get state(){return t},get status(){return r}};return n}function xk(e,t){for(let r=e.length-1;r>=0;r--){let a=e[r];if(a.type===W.Meta&&a.timestamp<=t)return e.slice(r)}return e}function vk(e,{getCastFn:t,applyEventsSynchronously:r,emitter:a}){let n=qw({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:jn({lastPlayedEvent:(o,i)=>i.type==="CAST_EVENT"?i.payload.event:o.lastPlayedEvent}),recordTimeOffset:jn((o,i)=>{let s=o.timeOffset;return"payload"in i&&"timeOffset"in i.payload&&(s=i.payload.timeOffset),{...o,timeOffset:s,baselineTime:o.events[0].timestamp+s}}),play(o){var i;let{timer:s,events:l,baselineTime:d,lastPlayedEvent:u}=o;s.clear();for(let h of l)Py(h,d);let f=xk(l,d),c=u?.timestamp;u?.type===W.IncrementalSnapshot&&u.data.source===U.MouseMove&&(c=u.timestamp+((i=u.data.positions[0])==null?void 0:i.timeOffset)),d<(c||0)&&a.emit(ve.PlayBack);let p=new Array;for(let h of f)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)p.push(h);else{let m=t(h,!1);s.addAction({doAction:()=>{m()},delay:h.delay})}r(p),a.emit(ve.Flush),s.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:jn(o=>({...o,lastPlayedEvent:null})),startLive:jn({baselineTime:(o,i)=>(o.timer.start(),i.type==="TO_LIVE"&&i.payload.baselineTime?i.payload.baselineTime:Date.now())}),addEvent:jn((o,i)=>{let{baselineTime:s,timer:l,events:d}=o;if(i.type==="ADD_EVENT"){let{event:u}=i.payload;Py(u,s);let f=d.length-1;if(!d[f]||d[f].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=f;){let S=Math.floor((m+f)/2);d[S].timestamp<=u.timestamp?m=S+1:f=S-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<s,p=t(u,c);c?p():l.isActive()&&l.addAction({doAction:()=>{p()},delay:u.delay})}return{...o,events:d}})}});return $w(n)}function yk(e){let t=qw({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,a)=>{"payload"in a&&r.timer.setSpeed(a.payload.speed)},recordSpeed:jn({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return $w(t)}var wk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Fy=new Map;function Hw(e,t){let r=Fy.get(e);return r||(r=new Map,Fy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function wa(e,t,r){return async a=>{if(a&&typeof a=="object"&&"rr_type"in a)if(r&&(r.isUnchanged=!1),a.rr_type==="ImageBitmap"&&"args"in a){let n=await wa(e,t,r)(a.args);return await createImageBitmap.apply(null,n)}else if("index"in a){if(r||t===null)return a;let{rr_type:n,index:o}=a;return Hw(t,n)[o]}else if("args"in a){let{rr_type:n,args:o}=a,i=window[n];return new i(...await Promise.all(o.map(wa(e,t,r))))}else{if("base64"in a)return uk(a.base64);if("src"in a){let n=e.get(a.src);if(n)return n;{let o=new Image;return o.src=a.src,e.set(a.src,o),o}}else if("data"in a&&a.rr_type==="Blob"){let n=await Promise.all(a.data.map(wa(e,t,r)));return new Blob(n,{type:a.type})}}else if(Array.isArray(a))return await Promise.all(a.map(wa(e,t,r)));return a}}function Sk(e,t){try{return t===jr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var bk=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Ck(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!bk.includes(r))return;let a=Hw(e,r);a.includes(t)||a.push(t)}async function Lk({mutation:e,target:t,type:r,imageMap:a,errorHandler:n}){try{let o=Sk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let i=o[e.property],s=await Promise.all(e.args.map(wa(a,o))),l=i.apply(o,s);Ck(o,l);let d=!1}catch(o){n(e,o)}}async function kk({event:e,mutations:t,target:r,imageMap:a,errorHandler:n}){let o=r.getContext("2d");if(!o){n(t[0],new Error("Canvas context is null"));return}let i=t.map(async l=>Promise.all(l.args.map(wa(a,o))));(await Promise.all(i)).forEach((l,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let f=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(a.get(e),f.apply(o,u.args)):f.apply(o,l)}catch(f){n(u,f)}})}async function By({event:e,mutation:t,target:r,imageMap:a,canvasEventMap:n,errorHandler:o}){try{let i=n.get(e)||t,s="commands"in i?i.commands:[i];if([jr.WebGL,jr.WebGL2].includes(t.type)){for(let l=0;l<s.length;l++){let d=s[l];await Lk({mutation:d,type:t.type,target:r,imageMap:a,errorHandler:o})}return}await kk({event:e,mutations:s,target:r,imageMap:a,errorHandler:o})}catch(i){o(t,i)}}var Cp=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(ve.Start,this.start.bind(this)),this.emitter.on(ve.SkipStart,this.start.bind(this)),this.emitter.on(ve.Pause,this.pause.bind(this)),this.emitter.on(ve.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,a)=>{this.syncTargetWithState(a),t.pause&&a.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:a}){if(a.isPlaying){let o=(t-a.lastInteractionTimeOffset)/1e3*a.playbackRate,i="duration"in r&&r.duration;if(Number.isNaN(i)){this.waitForMetadata(r);return}let s=a.currentTimeAtLastInteraction+o;r.loop&&i!==!1&&(s=s%i),r.currentTime=s}else r.pause(),r.currentTime=a.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let a=this.mediaMap.get(t);a&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:a})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:a}){let n=this.mediaMap.get(t),{type:o,playbackRate:i,currentTime:s,muted:l,volume:d,loop:u}=a;return{isPlaying:o===ya.Play||o!==ya.Pause&&(n?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:s??n?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:i??n?.playbackRate??1,volume:d??n?.volume??1,muted:l??n?.muted??t.getAttribute("muted")===null,loop:u??n?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:a,loop:n,volume:o,isPlaying:i}=r,s=this.service.state.matches("paused"),l=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=a,t.loop=n,t.playbackRate!==l&&(t.playbackRate=l),i&&!s?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,a){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let n=t,o=a.getMeta(n);if(!o||!("attributes"in o))return;let i=this.service.state.matches("paused"),s=o.attributes,l=!1;s.rr_mediaState?l=s.rr_mediaState==="played":l=n.getAttribute("autoplay")!==null,l&&i&&n.pause();let d=1;typeof s.rr_mediaPlaybackRate=="number"&&(d=s.rr_mediaPlaybackRate);let u=!1;typeof s.rr_mediaMuted=="boolean"?u=s.rr_mediaMuted:u=n.getAttribute("muted")!==null;let f=!1;typeof s.rr_mediaLoop=="boolean"?f=s.rr_mediaLoop:f=n.getAttribute("loop")!==null;let c=1;typeof s.rr_mediaVolume=="number"&&(c=s.rr_mediaVolume);let p=0;typeof s.rr_mediaCurrentTime=="number"&&(p=s.rr_mediaCurrentTime),this.mediaMap.set(n,{isPlaying:l,currentTimeAtLastInteraction:p,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:f}),this.syncTargetWithState(n)}mediaMutation({target:t,timeOffset:r,mutation:a}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:a})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function Il(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e,a=r.open,n=a&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),i=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",s=o==="modal";if(!(a&&!(n&&o==="non-modal"||!n&&s))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}a&&r.close(),i&&(s?r.showModal():r.show())}}function Ik(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Mk=5*1e3,_k=hk,zy="[replayer]",Zf={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Uy(e){return e.type==W.IncrementalSnapshot&&(e.data.source==U.TouchMove||e.data.source==U.MouseInteraction&&e.data.type==ye.TouchStart)}var Wl=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new Yn),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",_k()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",zv()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",jy()),R(this,"styleMirror",new zl),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",s=>{this.iframe.style.display="inherit";for(let l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(s.width)),l.setAttribute("height",String(s.height)))}),R(this,"applyEventsSynchronously",s=>{for(let l of s){switch(l.type){case W.DomContentLoaded:case W.Load:case W.Custom:continue;case W.FullSnapshot:case W.Meta:case W.Plugin:case W.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),R(this,"getCastFn",(s,l=!1)=>{let d;switch(s.type){case W.DomContentLoaded:case W.Load:break;case W.Custom:d=()=>{this.emitter.emit(ve.CustomEvent,s)};break;case W.Meta:d=()=>this.emitter.emit(ve.Resize,{width:s.data.width,height:s.data.height});break;case W.FullSnapshot:d=()=>{var f;if(this.firstFullSnapshot){if(this.firstFullSnapshot===s){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(s,l),(f=this.iframe.contentWindow)==null||f.scrollTo(s.data.initialOffset)};break;case W.IncrementalSnapshot:d=()=>{if(this.applyIncremental(s,l),!l&&(s===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let f of this.service.state.context.events)if(!(f.timestamp<=s.timestamp)&&this.isUserInteraction(f)){f.delay-s.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=f);break}if(this.nextUserInteractionEvent){let f=this.nextUserInteractionEvent.delay-s.delay,c={speed:Math.min(Math.round(f/Mk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(ve.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(s,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:s}});let f=this.service.state.context.events.length-1;if(!this.config.liveMode&&s===this.service.state.context.events[f]){let c=()=>{f<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(ve.Finish))},p=50;s.type===W.IncrementalSnapshot&&s.data.source===U.MouseMove&&s.data.positions.length&&(p+=Math.max(0,-s.data.positions[0].timeOffset)),setTimeout(c,p)}this.emitter.emit(ve.EventCast,s)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let a={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:Zf,useVirtualDom:!0,logger:console};this.config=Object.assign({},a,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(ve.Resize,this.handleResize),this.setupDom();for(let s of this.config.plugins||[])s.getMirror&&s.getMirror({nodeMirror:this.mirror});this.emitter.on(ve.Flush,()=>{if(this.usingVirtualDom){let s={mirror:this.mirror,applyCanvas:(l,d,u)=>{By({event:l,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,d)=>{l.source===U.StyleSheetRule?this.applyStyleSheetRule(l,d):l.source===U.StyleDeclaration&&this.applyStyleDeclaration(l,d)},afterAppend:(l,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{Fl(this.iframe.contentDocument,this.virtualDom,s,this.virtualDom.mirror)}catch(l){console.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let l in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[l],u=Bl(d.node,this.mirror,this.virtualDom.mirror);Fl(u,d.node,s,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[s,l]=this.lastMouseDownEvent;s.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ve.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let n=new bp([],{speed:this.config.speed});this.service=vk({events:t.map(s=>r&&r.unpackFn?r.unpackFn(s):s).sort((s,l)=>s.timestamp-l.timestamp),timer:n,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(s=>{this.emitter.emit(ve.StateChange,{player:s})}),this.speedService=yk({normalSpeed:-1,timer:n}),this.speedService.start(),this.speedService.subscribe(s=>{this.emitter.emit(ve.StateChange,{speed:s})}),this.mediaManager=new Cp({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(s=>s.type===W.Meta),i=this.service.state.context.events.find(s=>s.type===W.FullSnapshot);if(o){let{width:s,height:l}=o.data;setTimeout(()=>{this.emitter.emit(ve.Resize,{width:s,height:l})},0)}i&&setTimeout(()=>{var s;this.firstFullSnapshot||(this.firstFullSnapshot=i,this.rebuildFullSnapshot(i),(s=this.iframe.contentWindow)==null||s.scrollTo(i.data.initialOffset))},1),this.service.state.context.events.find(Uy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,a;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(a=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||a.classList.remove("rrweb-paused"),this.emitter.emit(ve.Start)}pause(t){var r,a;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(a=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||a.classList.add("rrweb-paused"),this.emitter.emit(ve.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(ve.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ve.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Uy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=zv()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=jL({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(gk(this.iframe.contentWindow,this.iframe.contentDocument),kw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let a=[],n=new Set,o=(l,d)=>{if(l.nodeName==="DIALOG"&&n.add(l),this.collectIframeAndAttachDocument(a,l),this.mediaManager.isSupportedMediaElement(l)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),WL(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:l,builtNode:d}of a)this.attachDocumentToIframe(l,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);let{documentElement:i,head:s}=this.iframe.contentDocument;this.insertStyleRules(i,s),n.forEach(l=>Il(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ve.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var a;let n=wk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&n.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!n.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,gw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:U.StyleSheetRule,adds:n.map((i,s)=>({rule:i,index:s}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let i=0;i<n.length;i++)(a=o.sheet)==null||a.insertRule(n[i],i)}}attachDocumentToIframe(t,r){let a=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,n=[],o=new Set,i=(s,l)=>{s.nodeName==="DIALOG"&&o.add(s),this.collectIframeAndAttachDocument(n,s);let d=a.getMeta(s);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:f}=r.contentDocument;this.insertStyleRules(u,f)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(s,{id:l,replayer:this})};os(t.node,{doc:r.contentDocument,mirror:a,hackCss:!0,skipChild:!1,afterAppend:i,cache:this.cache}),i(r.contentDocument,t.node.id);for(let{mutationInQueue:s,builtNode:l}of n)this.attachDocumentToIframe(s,l),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==s);o.forEach(s=>Il(s))}collectIframeAndAttachDocument(t,r){if(ss(r,this.mirror)){let a=this.newDocumentQueue.find(n=>n.parentId===this.mirror.getId(r));a&&t.push({mutationInQueue:a,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let a=new Set,n,o=this.service.state,i=()=>{o=this.service.state};this.emitter.on(ve.Start,i),this.emitter.on(ve.Pause,i);let s=()=>{this.emitter.off(ve.Start,i),this.emitter.off(ve.Pause,i)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(a.add(l),l.addEventListener("load",()=>{a.delete(l),a.size===0&&n!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ve.LoadStylesheetEnd),n&&clearTimeout(n),s())}))}),a.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ve.LoadStylesheetStart),n=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),n=-1,s()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===W.IncrementalSnapshot&&r.data.source===U.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(n=>{this.preloadImages(n,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let a=document.createElement("canvas"),n=a.getContext("2d"),o=n?.createImageData(a.width,a.height);n?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let a={isUnchanged:!0};if("commands"in t){let n=await Promise.all(t.commands.map(async o=>{let i=await Promise.all(o.args.map(wa(this.imageMap,null,a)));return{...o,args:i}}));a.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:n})}else{let n=await Promise.all(t.args.map(wa(this.imageMap,null,a)));a.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:n})}}}applyIncremental(t,r){var a,n,o;let{data:i}=t;switch(i.source){case U.Mutation:{try{this.applyMutation(i,r)}catch(s){this.warn(`Exception in mutation ${s.message||s}`,i)}break}case U.Drag:case U.TouchMove:case U.MouseMove:if(r){let s=i.positions[i.positions.length-1];this.mousePos={x:s.x,y:s.y,id:s.id,debugData:i}}else i.positions.forEach(s=>{let l={doAction:()=>{this.moveAndHover(s.x,s.y,s.id,r,i)},delay:s.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((a=i.positions[0])==null?void 0:a.timeOffset)});break;case U.MouseInteraction:{if(i.id===-1)break;let s=new Event(Sa(ye[i.type])),l=this.mirror.getNode(i.id);if(!l)return this.debugNodeNotFound(i,i.id);this.emitter.emit(ve.MouseInteraction,{type:i.type,target:l});let{triggerFocus:d}=this.config;switch(i.type){case ye.Blur:"blur"in l&&l.blur();break;case ye.Focus:d&&l.focus&&l.focus({preventScroll:!0});break;case ye.Click:case ye.TouchStart:case ye.TouchEnd:case ye.MouseDown:case ye.MouseUp:r?(i.type===ye.TouchStart?this.touchActive=!0:i.type===ye.TouchEnd&&(this.touchActive=!1),i.type===ye.MouseDown?this.lastMouseDownEvent=[l,s]:i.type===ye.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:i.x||0,y:i.y||0,id:i.id,debugData:i}):(i.type===ye.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(i.x||0,i.y||0,i.id,r,i),i.type===ye.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):i.type===ye.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):i.type===ye.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(s));break;case ye.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(s)}break}case U.Scroll:{if(i.id===-1)break;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.scrollData=i;break}this.applyScroll(i,r);break}case U.ViewportResize:this.emitter.emit(ve.Resize,{width:i.width,height:i.height});break;case U.Input:{if(i.id===-1)break;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.inputData=i;break}this.applyInput(i);break}case U.MediaInteraction:{let s=this.usingVirtualDom?this.virtualDom.mirror.getNode(i.id):this.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);let l=s,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-d[0].timestamp,mutation:i});break}case U.StyleSheetRule:case U.StyleDeclaration:{this.usingVirtualDom?i.styleId?this.constructedStyleMutations.push(i):i.id&&((n=this.virtualDom.mirror.getNode(i.id))==null||n.rules.push(i)):this.applyStyleSheetMutation(i);break}case U.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let s=this.virtualDom.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);s.canvasMutations.push({event:t,mutation:i})}else{let s=this.mirror.getNode(i.id);if(!s)return this.debugNodeNotFound(i,i.id);By({event:t,mutation:i,target:s,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case U.Font:{try{let s=new FontFace(i.family,i.buffer?new Uint8Array(JSON.parse(i.fontSource)):i.fontSource,i.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(s)}catch(s){this.warn(s)}break}case U.Selection:{if(r){this.lastSelectionData=i;break}this.applySelection(i);break}case U.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(i):this.applyAdoptedStyleSheet(i);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,k1(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],f=hw(u.node,this.virtualDom,this.mirror);f&&(u.node=f)}catch(u){this.warn(u)}let a=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>a.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return;let c=a.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&Ha(c)&&(c=c.shadowRoot),a.removeNodeFromMap(f),c)try{c.removeChild(f),this.usingVirtualDom&&f.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(p){if(p instanceof DOMException)this.warn("parent could not remove child in mutation",c,f,t);else throw p}});let n={...this.legacy_missingNodeRetryMap},o=[],i=d=>{let u=null;return d.nextId&&(u=a.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},s=d=>{var u,f;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=a.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(Ha(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let p=null,h=null;if(d.previousId&&(p=a.getNode(d.previousId)),d.nextId&&(h=a.getNode(d.nextId)),i(d))return o.push(d);if(d.node.rootId&&!a.getNode(d.node.rootId))return;let m=d.node.rootId?a.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ss(c,a)){this.attachDocumentToIframe(d,c);return}let S=(v,b)=>{if(!this.usingVirtualDom){Il(v);for(let w of this.config.plugins||[])w.onBuild&&w.onBuild(v,{id:b,replayer:this})}},g=os(d.node,{doc:m,mirror:a,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:S});if(d.previousId===-1||d.nextId===-1){n[d.node.id]={node:g,mutation:d};return}let x=a.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let b of v)b.nodeType===c.TEXT_NODE&&c.removeChild(b);else if(x.tagName==="style"&&v.length===1)for(let b of v)b.nodeType===c.TEXT_NODE&&!a.hasNode(b)&&(g.textContent=b.textContent,c.removeChild(b))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(p&&p.nextSibling&&p.nextSibling.parentNode?c.insertBefore(g,p.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),S(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((f=c.rules)==null?void 0:f.length)>0&&(c.rules=[]),ss(g,this.mirror)){let v=this.mirror.getId(g),b=this.newDocumentQueue.find(w=>w.parentId===v);b&&(this.attachDocumentToIframe(b,g),this.newDocumentQueue=this.newDocumentQueue.filter(w=>w!==b))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(n,c,g,d)};t.adds.forEach(d=>{s(d)});let l=Date.now();for(;o.length;){let d=q1(o);if(o.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)a.getNode(u.value.parentId)?Iw(u,c=>{s(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(n).length&&Object.assign(this.legacy_missingNodeRetryMap,n),$1(t.texts).forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return t.removes.find(p=>p.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=f.parentElement;if(d.value&&c&&c.tagName==="STYLE"?f.textContent=Ql(d.value,this.cache):f.textContent=d.value,this.usingVirtualDom){let p=f.parentNode;((u=p?.rules)==null?void 0:u.length)>0&&(p.rules=[])}}),t.attributes.forEach(d=>{var u;let f=a.getNode(d.id);if(!f)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let p=d.attributes[c];if(p===null)f.removeAttribute(c),c==="open"&&Ik(f,d);else if(typeof p=="string")try{if(c==="_cssText"&&(f.nodeName==="LINK"||f.nodeName==="STYLE"))try{let h=a.getMeta(f),m=os({...h,attributes:{...h.attributes,...d.attributes}},{doc:f.ownerDocument,mirror:a,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let S=f.nextSibling,g=f.parentNode;if(m&&g){g.removeChild(f),g.insertBefore(m,S),a.replace(d.id,m);break}}catch{}if(c==="value"&&f.nodeName==="TEXTAREA"){let h=f;h.childNodes.forEach(S=>h.removeChild(S));let m=(u=f.ownerDocument)==null?void 0:u.createTextNode(p);m&&h.appendChild(m)}else f.setAttribute(c,p);c==="rr_open_mode"&&f.nodeName==="DIALOG"&&Il(f,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=p,m=f;for(let S in h)if(h[S]===!1)m.style.removeProperty(S);else if(h[S]instanceof Array){let g=h[S];m.style.setProperty(S,g[0],g[1])}else{let g=h[S];m.style.setProperty(S,g)}}}})}applyScroll(t,r){var a,n;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let i=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(a=this.iframe.contentWindow)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(i?.type===Wr.Document)(n=o.defaultView)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,a=t.ranges.map(({start:n,startOffset:o,end:i,endOffset:s})=>{let l=this.mirror.getNode(n),d=this.mirror.getNode(i);if(!l||!d)return;let u=new Range;u.setStart(l,o),u.setEnd(d,s);let f=l.ownerDocument,c=f?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(n=>n.removeAllRanges()),a.forEach(n=>{var o;return n&&((o=n.selection)==null?void 0:o.addRange(n.range))})}catch{}}applyStyleSheetMutation(t){var r;let a=null;t.styleId?a=this.styleMirror.getStyle(t.styleId):t.id&&(a=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),a&&(t.source===U.StyleSheetRule?this.applyStyleSheetRule(t,a):t.source===U.StyleDeclaration&&this.applyStyleDeclaration(t,a))}applyStyleSheetRule(t,r){var a,n,o,i;if((a=t.adds)==null||a.forEach(({rule:s,index:l})=>{try{if(Array.isArray(l)){let{positions:d,index:u}=Sy(l),f=ts(r.cssRules,d);f?.insertRule(s,u)}else{let d=l===void 0?void 0:Math.min(l,r.cssRules.length);r?.insertRule(s,d)}}catch{}}),(n=t.removes)==null||n.forEach(({index:s})=>{try{if(Array.isArray(s)){let{positions:l,index:d}=Sy(s),u=ts(r.cssRules,l);u?.deleteRule(d||0)}else r?.deleteRule(s)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(i=r.replaceSync)==null||i.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let a=ts(r.rules,t.index);a?.style&&a.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let a=ts(r.rules,t.index);a?.style&&a.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let a=this.mirror.getNode(t.id);if(!a)return;(r=t.styles)==null||r.forEach(s=>{var l;let d=null,u=null;if(Ha(a)?u=((l=a.ownerDocument)==null?void 0:l.defaultView)||null:a.nodeName==="#document"&&(u=a.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,s.styleId),this.applyStyleSheetRule({source:U.StyleSheetRule,adds:s.rules},d)}catch{}});let n=10,o=0,i=(s,l)=>{let d=l.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);Ha(s)?s.shadowRoot.adoptedStyleSheets=d:s.nodeName==="#document"&&(s.adoptedStyleSheets=d),d.length!==l.length&&o<n&&(setTimeout(()=>i(s,l),0+100*o),o++)};i(a,t.styleIds)}legacy_resolveMissingNode(t,r,a,n){let{previousId:o,nextId:i}=n,s=o&&t[o],l=i&&t[i];if(s){let{node:d,mutation:u}=s;r.insertBefore(d,a),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(l){let{node:d,mutation:u}=l;r.insertBefore(d,a.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,a,n,o){let i=this.mirror.getNode(a);if(!i)return this.debugNodeNotFound(o,a);let s=_w(i,this.iframe),l=t*s.absoluteScale+s.x,d=r*s.absoluteScale+s.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${d}px`,n||this.drawMouseTail({x:l,y:d}),this.hoverElements(i)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:a,strokeStyle:n,duration:o}=this.config.mouseTail===!0?Zf:Object.assign({},Zf,this.config.mouseTail),i=()=>{if(!this.mouseTail)return;let s=this.mouseTail.getContext("2d");!s||!this.tailPositions.length||(s.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),s.beginPath(),s.lineWidth=a,s.lineCap=r,s.strokeStyle=n,s.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>s.lineTo(l.x,l.y)),s.stroke())};this.tailPositions.push(t),i(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(s=>s!==t),i()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(n=>{n.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let a=t;for(;a;)a.classList&&a.classList.add(":hover"),a=a.parentElement}isUserInteraction(t){return t.type!==W.IncrementalSnapshot?!1:t.data.source>U.Mutation&&t.data.source<=U.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ve.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn(zy,...t)}debug(...t){this.config.showDebug&&this.config.logger.log(zy,...t)}},{addCustomEvent:qM}=Xa,{freezePage:$M}=Xa,{takeFullSnapshot:HM}=Xa;var It=F(fe(),1);var nu=F(fe());var Ww=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),au=(...e)=>e.filter((t,r,a)=>!!t&&t.trim()!==""&&a.indexOf(t)===r).join(" ").trim();var hs=F(fe());var jw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Vw=(0,hs.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:a,className:n="",children:o,iconNode:i,...s},l)=>(0,hs.createElement)("svg",{ref:l,...jw,width:t,height:t,stroke:e,strokeWidth:a?Number(r)*24/Number(t):r,className:au("lucide",n),...s},[...i.map(([d,u])=>(0,hs.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var q=(e,t)=>{let r=(0,nu.forwardRef)(({className:a,...n},o)=>(0,nu.createElement)(Vw,{ref:o,iconNode:t,className:au(`lucide-${Ww(e)}`,a),...n}));return r.displayName=`${e}`,r};var Zn=q("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Ka=q("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Qa=q("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Ya=q("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var gs=q("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var xs=q("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var vs=q("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var Ja=q("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var ys=q("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var ws=q("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var ba=q("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var Ss=q("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var Za=q("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var en=q("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var bs=q("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var Cs=q("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var Ls=q("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var tn=q("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var ks=q("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var Is=q("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ms=q("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var _s=q("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Rs=q("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var Es=q("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var Zt=q("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ps=q("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Ts=q("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var Ns=q("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var As=q("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var Ds=q("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var rn=q("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var an=q("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var Bs=F(le(),1),$=F(le(),1),gu=F(fe(),1);var Dt=F(le(),1),gS=F(fe(),1);var Ne=F(le(),1),xS=F(fe(),1),lu=F(le(),1),ar=F(fe(),1);var vS=F(fe(),1);var xu=F(fe(),1),J=F(le(),1),SS=F(fe(),1);var et=F(le(),1);var bS=F(fe(),1);var Xe=F(le(),1),Ca=F(le(),1),vu=F(fe(),1);var Fs=F(le(),1),Kp=F(le(),1),Qp=F(le(),1),uu=F(fe(),1);var Ke=F(fe(),1);var ka=F(fe(),1),Me=F(le(),1),zs=F(fe(),1);var xt=F(le(),1),Nt=F(le(),1),Z=F(le(),1),MS=F(fe(),1),ao=F(fe(),1),yr=F(le(),1),ro=F(fe(),1),La=F(le(),1);var Q=F(le(),1),Jp=F(fe(),1),Ht=F(le(),1);var At=F(le(),1),pu=F(le(),1),Us=F(fe(),1),to=F(le(),1),Ze=F(le(),1),rr=F(fe(),1),tr=F(le(),1),er=F(le(),1),yu=F(fe(),1);var je=F(le(),1),qs=F(fe(),1);var RS=F(le(),1),lS=[.5,1,1.5,2,4,8],iu=["stage","balanced","debug"];function Zp(e){if(!e||!e.length)return[...iu];let t=new Set;for(let r of e)iu.includes(r)&&t.add(r);return t.size?[...t]:[...iu]}var du=["chapters","interaction","console","network","error","task","vitals"],st={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function nn(e,t,r){try{let a=localStorage.getItem(e);return a==null?t:r(a)}catch{return t}}function Xr(e,t){try{localStorage.setItem(e,t)}catch{}}function Rk(){let e={};for(let t of du)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Ek(){let e=Rk();try{let t=localStorage.getItem(st.laneState);if(!t)return e;let r=JSON.parse(t);for(let a of du){let n=r[a];n&&(e[a]={collapsed:!!n.collapsed,solo:!!n.solo,mute:!!n.mute})}return e}catch{return e}}function Pk(){let e=null,t=null;return Zx((r,a)=>{let n=()=>{e&&(clearInterval(e),e=null)},o=()=>{n();let s=performance.now();e=setInterval(()=>{let l=performance.now(),d=(l-s)*a().speed;s=l;let u=a().currentTime+d;u>=a().durationMs?(r({currentTime:a().durationMs}),a()._onFinish()):a()._onTime(u)},33.333333333333336)},i=s=>{let l=a(),d=l.events.find(f=>f.id===s);if(d)return d.t;let u=l.markers.find(f=>f.ref===s);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:nn(st.speed,1,s=>Number(s)),autoSkip:nn(st.autoSkip,!1,s=>s==="true"),autoSkim:nn(st.autoSkip,!1,s=>s==="true")?!1:nn(st.autoSkim,!0,s=>s==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:nn(st.showCursor,!0,s=>s==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:nn(st.mode,"balanced",s=>s==="stage"||s==="debug"?s:"balanced"),allowedModes:[...iu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Ek(),hover:null,snap:nn(st.snap,!0,s=>s==="true"),feedFilter:"all",paletteOpen:!1,toRelative:s=>{let l=s-a().offset;return Math.max(0,Math.min(a().durationMs,l))},play:()=>{let s=a();if(s.status==="error")return;s.clipEnd!=null&&s.currentTime>=s.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let l=s.clipEnd==null&&s.currentTime>=s.durationMs-20?0:s.currentTime;s.controller?s.controller.play(l):(l===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let s=a();s.controller?s.controller.pause():n(),r({status:"paused"})},toggle:()=>a().status==="playing"?a().pause():a().play(),restart:()=>{a().seek(0),a().play()},seek:s=>{let l=a(),d=Math.max(0,Math.min(l.durationMs,s)),u=l._covers?l._covers(d):d<=l.bufferedMs+1;!l.controller||u?(l.controller&&l.controller.seek(d),r({currentTime:d,pendingSeek:null,status:l.status==="ended"||l.status==="buffering"?"paused":l.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:s=>{let l=a(),d=l.controller?.mutationTimes??[];if(!d.length){a().seek(l.currentTime+s*200);return}let u=l.currentTime,f=s>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);f!=null&&a().seek(f)},jumpEvent:s=>{let l=a(),d=l.markers.map(c=>l.toRelative(c.t)).sort((c,p)=>c-p);if(!d.length)return;let u=l.currentTime,f=s>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);f!=null&&a().seek(f)},setSpeed:s=>{a().controller?.setSpeed(s),Xr(st.speed,String(s)),r({speed:s})},setPanel:s=>r({activePanel:s}),setAutoSkip:s=>{a().controller?.setAutoSkip(s),Xr(st.autoSkip,String(s)),s&&a().autoSkim&&(a().controller?.setAutoSkim(!1),Xr(st.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:s,isSkipping:s?a().isSkipping:!1})},setAutoSkim:s=>{a().controller?.setAutoSkim(s),Xr(st.autoSkim,String(s)),s&&a().autoSkip&&(a().controller?.setAutoSkip(!1),Xr(st.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:s,isSkimming:s?a().isSkimming:!1})},setLoop:s=>r({loop:s}),setClip:(s,l,d=!1)=>r({clipStart:s,clipEnd:l,clipLoop:d}),setAutoplayNext:s=>r({autoplayNext:s}),setShowCursor:s=>{a().controller?.setShowCursor(s),Xr(st.showCursor,String(s)),r({showCursor:s})},setFollowing:s=>{let l=a();s&&l.controller&&(l.controller.seek(l.durationMs),r({currentTime:l.durationMs})),r({following:s})},setFocusMode:s=>{a().allowedModes.includes(s)&&(Xr(st.mode,s),r({focusMode:s}))},setAllowedModes:s=>{let l=Zp(s),d=l.includes(a().focusMode)?a().focusMode:l[0];r({allowedModes:l,focusMode:d})},select:s=>{if(r({selectedEventId:s}),s!=null){let l=i(s);l!=null&&a().seek(a().toRelative(l))}},selectAndSeek:s=>{let l=i(s);r({selectedEventId:s}),l!=null&&a().seek(a().toRelative(l))},brush:(s,l)=>{if(l==null){r({selectionRange:null});return}let d=Math.min(s,l),u=Math.max(s,l);r({selectionRange:[d,u]})},zoomTo:(s,l)=>{let d=a(),u=Math.max(0,Math.min(s,l)),f=Math.min(d.offset+d.durationMs,Math.max(s,l));f-u<50||r({zoomStack:[...d.zoomStack,[u,f]]})},zoomOutTo:s=>{let l=a();r({zoomStack:l.zoomStack.slice(0,Math.max(0,s))})},setHover:s=>r({hover:s==null?null:{t:s}}),toggleSnap:()=>{let s=!a().snap;Xr(st.snap,String(s)),r({snap:s})},toggleLane:(s,l)=>{let d=a(),u=d.laneState[s],f={...d.laneState,[s]:{...u,[l]:!u[l]}};Xr(st.laneState,JSON.stringify(f)),r({laneState:f})},setFeedFilter:s=>r({feedFilter:s}),nextProblem:s=>{let l=a(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=l.markers.filter(p=>(d[p.kind]??0)>=2).map(p=>({rel:l.toRelative(p.t),m:p})).sort((p,h)=>p.rel-h.rel);if(!u.length)return;let f=l.currentTime,c=s>0?u.find(p=>p.rel>f+1):[...u].reverse().find(p=>p.rel<f-1);c&&(r({selectedEventId:c.m.ref}),a().seek(c.rel))},walkLane:(s,l)=>{let d=a(),u=d.events.filter(p=>Tk(s,p)).map(p=>({rel:d.toRelative(p.t),id:p.id})).sort((p,h)=>p.rel-h.rel);if(!u.length)return;let f=d.currentTime,c=l>0?u.find(p=>p.rel>f+1):[...u].reverse().find(p=>p.rel<f-1);c&&(r({selectedEventId:c.id}),a().seek(c.rel))},openPalette:s=>r({paletteOpen:s}),rewindToCause:s=>{let l=a(),d=i(s);if(d==null)return;let u=l.toRelative(d);a().seek(Math.max(0,u-5e3))},_attachController:s=>{let l=a().durationMs;r({controller:s,durationMs:Math.max(l,s.meta.totalTime),bufferedMs:s.meta.totalTime,status:"paused"})},_detachController:()=>{n();let s=a().controller;s&&s.destroy(),r({controller:null})},_setLoaderProbes:(s,l)=>r({_covers:s,_moreForward:l}),_onTime:s=>{let l=a();if(l.clipEnd!=null&&s>=l.clipEnd&&l.status==="playing"){l.clipLoop?a().seek(l.clipStart??0):(l.controller?l.controller.pause(l.clipEnd):n(),r({currentTime:l.clipEnd,status:"paused"}));return}r({currentTime:s})},_onSkip:s=>{r({isSkipping:!0,lastSkipMs:s}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let s=a();s.live&&s.following?r({status:"paused",currentTime:s.durationMs}):s.clipEnd!=null&&s.currentTime>=s.clipEnd-1?s.clipLoop?(a().seek(s.clipStart??0),a().play()):(n(),r({currentTime:s.clipEnd,status:"paused"})):s.controller&&(s._moreForward?s._moreForward(s.currentTime):s.currentTime<s.durationMs-1)?r({status:"buffering"}):s.loop?a().restart():(n(),r({status:"ended"}))},_setData:s=>r(s)}})}function Tk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var dS=(0,mu.createContext)(null);function Nk({store:e,children:t}){return(0,uS.jsx)(dS.Provider,{value:e,children:t})}function em(){let e=(0,mu.useContext)(dS);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function _(e){return ev(em(),e)}var fS=(0,hu.createContext)(null);function Ak({value:e,children:t}){return(0,cS.jsx)(fS.Provider,{value:e,children:t})}function Dk(){return(0,hu.useContext)(fS)}async function*Ok(e,t,r,a){let n={"content-type":"application/json"};t.token?n.authorization=`Bearer ${t.token}`:t.apiKey&&(n.authorization=`Bearer ${t.apiKey}`,n["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:n,body:JSON.stringify(r),signal:a});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let i=o.body.getReader(),s=new TextDecoder,l="";for(;;){let{done:d,value:u}=await i.read();if(d)break;l+=s.decode(u,{stream:!0});let f=l.split(`
136
+ `,Ty=typeof self<"u"&&self.Blob&&new Blob([qw],{type:"text/javascript;charset=utf-8"});function hk(e){let t;try{if(t=Ty&&(self.URL||self.webkitURL).createObjectURL(Ty),!t)throw"";let r=new Worker(t,{name:e?.name});return r.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(t)}),r}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(qw),{name:e?.name})}finally{t&&(self.URL||self.webkitURL).revokeObjectURL(t)}}var Sp=class{constructor(t){R(this,"pendingCanvasMutations",new Map),R(this,"rafStamps",{latestId:0,invokeId:null}),R(this,"mirror"),R(this,"mutationCb"),R(this,"resetObservers"),R(this,"frozen",!1),R(this,"locked",!1),R(this,"processMutation",(l,d)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(l)||this.pendingCanvasMutations.set(l,[]),this.pendingCanvasMutations.get(l).push(d)});let{sampling:r="all",win:n,blockClass:a,blockSelector:o,recordCanvas:s,dataURLOptions:i}=t;this.mutationCb=t.mutationCb,this.mirror=t.mirror,s&&r==="all"&&this.initCanvasMutationObserver(n,a,o),s&&typeof r=="number"&&this.initCanvasFPSObserver(r,n,a,o,{dataURLOptions:i})}reset(){this.pendingCanvasMutations.clear(),this.resetObservers&&this.resetObservers()}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}initCanvasFPSObserver(t,r,n,a,o){let s=Py(r,n,a,!0),i=new Map,l=new hk;l.onmessage=h=>{let{id:m}=h.data;if(i.set(m,!1),!("base64"in h.data))return;let{base64:b,type:g,width:x,height:v}=h.data;this.mutationCb({id:m,type:jr["2D"],commands:[{property:"clearRect",args:[0,0,x,v]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:b}],type:g}]},0,0]}]})};let d=1e3/t,u=0,p,c=()=>{let h=[];return r.document.querySelectorAll("canvas").forEach(m=>{kt(m,n,a,!0)||h.push(m)}),h},f=h=>{if(u&&h-u<d){p=requestAnimationFrame(f);return}u=h,c().forEach(async m=>{var b;let g=this.mirror.getId(m);if(i.get(g)||m.width===0||m.height===0)return;if(i.set(g,!0),["webgl","webgl2"].includes(m.__context)){let v=m.getContext(m.__context);((b=v?.getContextAttributes())==null?void 0:b.preserveDrawingBuffer)===!1&&v.clear(v.COLOR_BUFFER_BIT)}let x=await createImageBitmap(m);l.postMessage({id:g,bitmap:x,width:m.width,height:m.height,dataURLOptions:o.dataURLOptions},[x])}),p=requestAnimationFrame(f)};p=requestAnimationFrame(f),this.resetObservers=()=>{s(),cancelAnimationFrame(p)}}initCanvasMutationObserver(t,r,n){this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher();let a=Py(t,r,n,!1),o=fk(this.processMutation.bind(this),t,r,n),s=mk(this.processMutation.bind(this),t,r,n);this.resetObservers=()=>{a(),o(),s()}}startPendingCanvasMutationFlusher(){requestAnimationFrame(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){let t=r=>{this.rafStamps.latestId=r,requestAnimationFrame(t)};requestAnimationFrame(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,r)=>{let n=this.mirror.getId(r);this.flushPendingCanvasMutationFor(r,n)}),requestAnimationFrame(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,r){if(this.frozen||this.locked)return;let n=this.pendingCanvasMutations.get(t);if(!n||r===-1)return;let a=n.map(s=>{let{type:i,...l}=s;return l}),{type:o}=n[0];this.mutationCb({id:r,type:o,commands:a}),this.pendingCanvasMutations.delete(t)}},Cp=class{constructor(t){R(this,"trackedLinkElements",new WeakSet),R(this,"mutationCb"),R(this,"adoptedStyleSheetCb"),R(this,"styleMirror",new Ul),this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,r){"_cssText"in r.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:r.id,attributes:r.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,r){if(t.length===0)return;let n={id:r,styleIds:[]},a=[];for(let o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),a.push({styleId:s,rules:Array.from(o.rules||CSSRule,(i,l)=>({rule:Gy(i,o.href),index:l}))})),n.styleIds.push(s)}a.length>0&&(n.styles=a),this.adoptedStyleSheetCb(n)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}},Lp=class{constructor(){R(this,"nodeMap",new WeakMap),R(this,"active",!1)}inOtherBuffer(t,r){let n=this.nodeMap.get(t);return n&&Array.from(n).some(a=>a!==r)}add(t,r){this.active||(this.active=!0,requestAnimationFrame(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(r))}destroy(){}},We,Rl,ep,Hl=!1;try{if(Array.from([1],e=>e*2)[0]!==2){let e=document.createElement("iframe");document.body.appendChild(e),Array.from=((av=e.contentWindow)==null?void 0:av.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}var hr=Xy();function Qn(e={}){let{emit:t,checkoutEveryNms:r,checkoutEveryNth:n,blockClass:a="rr-block",blockSelector:o=null,ignoreClass:s="rr-ignore",ignoreSelector:i=null,maskTextClass:l="rr-mask",maskTextSelector:d=null,inlineStylesheet:u=!0,maskAllInputs:p,maskInputOptions:c,slimDOMOptions:f,maskInputFn:h,maskTextFn:m,hooks:b,packFn:g,sampling:x={},dataURLOptions:v={},mousemoveWait:S,recordDOM:y=!0,recordCanvas:w=!1,recordCrossOriginIframes:L=!1,recordAfter:C=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:_=!1,collectFonts:I=!1,inlineImages:D=!1,plugins:A,keepIframeSrcFn:k=()=>!1,ignoreCSSAttributes:ke=new Set([]),errorHandler:Ie}=e;XL(Ie);let ue=L?window.parent===window:!0,j=!1;if(!ue)try{window.parent.document&&(j=!1)}catch{j=!0}if(ue&&!t)throw new Error("emit function is required");if(!ue&&!j)return()=>{};S!==void 0&&x.mousemove===void 0&&(x.mousemove=S),hr.reset();let be=p===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,password:!0}:c!==void 0?c:{password:!0},ze=Zy(f);Mw();let Se,we=0,wr=X=>{for(let Me of A||[])Me.eventProcessor&&(X=Me.eventProcessor(X));return g&&!j&&(X=g(X)),X};We=(X,Me)=>{var se;let Re=X;if(Re.timestamp=ds(),(se=Vn[0])!=null&&se.isFrozen()&&Re.type!==W.FullSnapshot&&!(Re.type===W.IncrementalSnapshot&&Re.data.source===q.Mutation)&&Vn.forEach(lt=>lt.unfreeze()),ue)t?.(wr(Re),Me);else if(j){let lt={type:"rrweb",event:wr(Re),origin:window.location.origin,isCheckout:Me};window.parent.postMessage(lt,"*")}if(Re.type===W.FullSnapshot)Se=Re,we=0;else if(Re.type===W.IncrementalSnapshot){if(Re.data.source===q.Mutation&&Re.data.isAttachIframe)return;we++;let lt=n&&we>=n,me=r&&Re.timestamp-Se.timestamp>r;(lt||me)&&Rl(!0)}};let E=X=>{We({type:W.IncrementalSnapshot,data:{source:q.Mutation,...X}})},vt=X=>We({type:W.IncrementalSnapshot,data:{source:q.Scroll,...X}}),yt=X=>We({type:W.IncrementalSnapshot,data:{source:q.CanvasMutation,...X}}),_n=X=>We({type:W.IncrementalSnapshot,data:{source:q.AdoptedStyleSheet,...X}}),Qe=new Cp({mutationCb:E,adoptedStyleSheetCb:_n}),it=new wp({mirror:hr,mutationCb:E,stylesheetManager:Qe,recordCrossOriginIframes:L,wrappedEmit:We});for(let X of A||[])X.getMirror&&X.getMirror({nodeMirror:hr,crossOriginIframeMirror:it.crossOriginIframeMirror,crossOriginIframeStyleMirror:it.crossOriginIframeStyleMirror});let br=new Lp;ep=new Sp({recordCanvas:w,mutationCb:yt,win:window,blockClass:a,blockSelector:o,mirror:hr,sampling:x.canvas,dataURLOptions:v});let Sr=new bp({mutationCb:E,scrollCb:vt,bypassOptions:{blockClass:a,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskInputOptions:be,dataURLOptions:v,maskTextFn:m,maskInputFn:h,recordCanvas:w,inlineImages:D,sampling:x,slimDOMOptions:ze,iframeManager:it,stylesheetManager:Qe,canvasManager:ep,keepIframeSrcFn:k,processedNodeManager:br},mirror:hr});Rl=(X=!1)=>{if(!y)return;We({type:W.Meta,data:{href:window.location.href,width:kw(),height:Lw()}},X),Qe.reset(),Sr.init(),Vn.forEach(se=>se.lock());let Me=yC(document,{mirror:hr,blockClass:a,blockSelector:o,maskTextClass:l,maskTextSelector:d,inlineStylesheet:u,maskAllInputs:be,maskTextFn:m,maskInputFn:h,slimDOM:ze,dataURLOptions:v,recordCanvas:w,inlineImages:D,onSerialize:se=>{ss(se,hr)&&it.addIframe(se),Ew(se,hr)&&Qe.trackLinkElement(se),jn(se)&&Sr.addShadowRoot(ne.shadowRoot(se),document)},onIframeLoad:(se,Re)=>{it.attachIframe(se,Re),Sr.observeAttachShadow(se)},onStylesheetLoad:(se,Re)=>{Qe.attachLinkElement(se,Re)},keepIframeSrcFn:k});if(!Me)return console.warn("Failed to snapshot the document");We({type:W.FullSnapshot,data:{node:Me,initialOffset:Cw(window)}},X),Vn.forEach(se=>se.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&Qe.adoptStyleSheets(document.adoptedStyleSheets,hr.getId(document))};try{let X=[],Me=Re=>{var lt;return pe(lk)({mutationCb:E,mousemoveCb:(me,la)=>We({type:W.IncrementalSnapshot,data:{source:la,positions:me}}),mouseInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.MouseInteraction,...me}}),scrollCb:vt,viewportResizeCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.ViewportResize,...me}}),inputCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.Input,...me}}),mediaInteractionCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.MediaInteraction,...me}}),styleSheetRuleCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.StyleSheetRule,...me}}),styleDeclarationCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.StyleDeclaration,...me}}),canvasMutationCb:yt,fontCb:me=>We({type:W.IncrementalSnapshot,data:{source:q.Font,...me}}),selectionCb:me=>{We({type:W.IncrementalSnapshot,data:{source:q.Selection,...me}})},customElementCb:me=>{We({type:W.IncrementalSnapshot,data:{source:q.CustomElement,...me}})},blockClass:a,ignoreClass:s,ignoreSelector:i,maskTextClass:l,maskTextSelector:d,maskInputOptions:be,inlineStylesheet:u,sampling:x,recordDOM:y,recordCanvas:w,inlineImages:D,userTriggeredOnInput:_,collectFonts:I,doc:Re,maskInputFn:h,maskTextFn:m,keepIframeSrcFn:k,blockSelector:o,slimDOMOptions:ze,dataURLOptions:v,mirror:hr,iframeManager:it,stylesheetManager:Qe,shadowDomManager:Sr,processedNodeManager:br,canvasManager:ep,ignoreCSSAttributes:ke,plugins:((lt=A?.filter(me=>me.observer))==null?void 0:lt.map(me=>({observer:me.observer,options:me.options,callback:la=>We({type:W.Plugin,data:{plugin:me.name,payload:la}})})))||[]},b)};it.addLoadListener(Re=>{try{X.push(Me(Re.contentDocument))}catch(lt){console.warn(lt)}});let se=()=>{Rl(),X.push(Me(document)),Hl=!0};return["interactive","complete"].includes(document.readyState)?se():(X.push(Lt("DOMContentLoaded",()=>{We({type:W.DomContentLoaded,data:{}}),C==="DOMContentLoaded"&&se()})),X.push(Lt("load",()=>{We({type:W.Load,data:{}}),C==="load"&&se()},window))),()=>{X.forEach(Re=>{try{Re()}catch(lt){String(lt).toLowerCase().includes("cross-origin")||console.warn(lt)}}),br.destroy(),Hl=!1,KL()}}catch(X){console.warn(X)}}Qn.addCustomEvent=(e,t)=>{if(!Hl)throw new Error("please add custom event after start recording");We({type:W.Custom,data:{tag:e,payload:t}})};Qn.freezePage=()=>{Vn.forEach(e=>e.freeze())};Qn.takeFullSnapshot=e=>{if(!Hl)throw new Error("please take full snapshot after start recording");Rl(e)};Qn.mirror=hr;function gk(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(a){a(r)}),(n=e.get("*"))&&n.slice().map(function(a){a(t,r)})}}}function xk(e=window,t=document){if("scrollBehavior"in t.documentElement.style&&e.__forceSmoothScrollPolyfill__!==!0)return;let r=e.HTMLElement||e.Element,n=468,a={scroll:e.scroll||e.scrollTo,scrollBy:e.scrollBy,elementScroll:r.prototype.scroll||l,scrollIntoView:r.prototype.scrollIntoView},o=e.performance&&e.performance.now?e.performance.now.bind(e.performance):Date.now;function s(g){let x=["MSIE ","Trident/","Edge/"];return new RegExp(x.join("|")).test(g)}let i=s(e.navigator.userAgent)?1:0;function l(g,x){this.scrollLeft=g,this.scrollTop=x}function d(g){return .5*(1-Math.cos(Math.PI*g))}function u(g){if(g===null||typeof g!="object"||g.behavior===void 0||g.behavior==="auto"||g.behavior==="instant")return!0;if(typeof g=="object"&&g.behavior==="smooth")return!1;throw new TypeError("behavior member of ScrollOptions "+g.behavior+" is not a valid value for enumeration ScrollBehavior.")}function p(g,x){if(x==="Y")return g.clientHeight+i<g.scrollHeight;if(x==="X")return g.clientWidth+i<g.scrollWidth}function c(g,x){let v=e.getComputedStyle(g,null)["overflow"+x];return v==="auto"||v==="scroll"}function f(g){let x=p(g,"Y")&&c(g,"Y"),v=p(g,"X")&&c(g,"X");return x||v}function h(g){for(;g!==t.body&&f(g)===!1;)g=g.parentNode||g.host;return g}function m(g){let x=o(),v,S,y,w=(x-g.startTime)/n;w=w>1?1:w,v=d(w),S=g.startX+(g.x-g.startX)*v,y=g.startY+(g.y-g.startY)*v,g.method.call(g.scrollable,S,y),(S!==g.x||y!==g.y)&&e.requestAnimationFrame(m.bind(e,g))}function b(g,x,v){let S,y,w,L,C=o();g===t.body?(S=e,y=e.scrollX||e.pageXOffset,w=e.scrollY||e.pageYOffset,L=a.scroll):(S=g,y=g.scrollLeft,w=g.scrollTop,L=l),m({scrollable:S,method:L,startTime:C,startX:y,startY:w,x,y:v})}e.scroll=e.scrollTo=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.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}b.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(u(arguments[0])){a.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}b.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(u(arguments[0])===!0){if(typeof arguments[0]=="number"&&arguments[1]===void 0)throw new SyntaxError("Value could not be converted");a.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}let g=arguments[0].left,x=arguments[0].top;b.call(this,this,typeof g>"u"?this.scrollLeft:~~g,typeof x>"u"?this.scrollTop:~~x)},r.prototype.scrollBy=function(){if(arguments[0]!==void 0){if(u(arguments[0])===!0){a.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(u(arguments[0])===!0){a.scrollIntoView.call(this,arguments[0]===void 0?!0:arguments[0]);return}let g=h(this),x=g.getBoundingClientRect(),v=this.getBoundingClientRect();g!==t.body?(b.call(this,g,g.scrollLeft+v.left-x.left,g.scrollTop+v.top-x.top),e.getComputedStyle(g).position!=="fixed"&&e.scrollBy({left:x.left,top:x.top,behavior:"smooth"})):e.scrollBy({left:v.left,top:v.top,behavior:"smooth"})}}var kp=class{constructor(t=[],r){R(this,"timeOffset",0),R(this,"speed"),R(this,"actions"),R(this,"raf",null),R(this,"lastTimestamp"),this.actions=t,this.speed=r.speed}addAction(t){let r=this.raf===!0;if(!this.actions.length||this.actions[this.actions.length-1].delay<=t.delay)this.actions.push(t);else{let n=this.findActionIndex(t);this.actions.splice(n,0,t)}r&&(this.raf=requestAnimationFrame(this.rafCheck.bind(this)))}start(){this.timeOffset=0,this.lastTimestamp=performance.now(),this.raf=requestAnimationFrame(this.rafCheck.bind(this))}rafCheck(){let t=performance.now();for(this.timeOffset+=(t-this.lastTimestamp)*this.speed,this.lastTimestamp=t;this.actions.length;){let r=this.actions[0];if(this.timeOffset>=r.delay)this.actions.shift(),r.doAction();else break}this.actions.length>0?this.raf=requestAnimationFrame(this.rafCheck.bind(this)):this.raf=!0}clear(){this.raf&&(this.raf!==!0&&cancelAnimationFrame(this.raf),this.raf=null),this.actions.length=0}setSpeed(t){this.speed=t}isActive(){return this.raf!==null}findActionIndex(t){let r=0,n=this.actions.length-1;for(;r<=n;){let a=Math.floor((r+n)/2);if(this.actions[a].delay<t.delay)r=a+1;else if(this.actions[a].delay>t.delay)n=a-1;else return a+1}return r}};function Ay(e,t){if(e.type===W.IncrementalSnapshot&&e.data.source===q.MouseMove&&e.data.positions&&e.data.positions.length){let 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}function Dy(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),s=[];try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}var Ka;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(Ka||(Ka={}));var $w={type:"xstate.init"};function tp(e){return e===void 0?[]:[].concat(e)}function ja(e){return{type:"xstate.assign",assignment:e}}function Oy(e,t){return typeof(e=typeof e=="string"&&t&&t[e]?t[e]:e)=="string"?{type:e}:typeof e=="function"?{type:e.name,exec:e}:e}function Wl(e){return function(t){return e===t}}function Hw(e){return typeof e=="string"?{type:e}:e}function Fy(e,t){return{value:e,context:t,actions:[],changed:!1,matches:Wl(e)}}function By(e,t,r){var n=t,a=!1;return[e.filter(function(o){if(o.type==="xstate.assign"){a=!0;var s=Object.assign({},n);return typeof o.assignment=="function"?s=o.assignment(n,r):Object.keys(o.assignment).forEach(function(i){s[i]=typeof o.assignment[i]=="function"?o.assignment[i](n,r):o.assignment[i]}),n=s,!1}return!0}),n,a]}function Ww(e,t){t===void 0&&(t={});var r=Dy(By(tp(e.states[e.initial].entry).map(function(s){return Oy(s,t.actions)}),e.context,$w),2),n=r[0],a=r[1],o={config:e,_options:t,initialState:{value:e.initial,actions:n,context:a,matches:Wl(e.initial)},transition:function(s,i){var l,d,u=typeof s=="string"?{value:s,context:e.context}:s,p=u.value,c=u.context,f=Hw(i),h=e.states[p];if(h.on){var m=tp(h.on[f.type]);try{for(var b=(function(j){var be=typeof Symbol=="function"&&Symbol.iterator,ze=be&&j[be],Se=0;if(ze)return ze.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&Se>=j.length&&(j=void 0),{value:j&&j[Se++],done:!j}}};throw new TypeError(be?"Object is not iterable.":"Symbol.iterator is not defined.")})(m),g=b.next();!g.done;g=b.next()){var x=g.value;if(x===void 0)return Fy(p,c);var v=typeof x=="string"?{target:x}:x,S=v.target,y=v.actions,w=y===void 0?[]:y,L=v.cond,C=L===void 0?function(){return!0}:L,_=S===void 0,I=S??p,D=e.states[I];if(C(c,f)){var A=Dy(By((_?tp(w):[].concat(h.exit,w,D.entry).filter(function(j){return j})).map(function(j){return Oy(j,o._options.actions)}),c,f),3),k=A[0],ke=A[1],Ie=A[2],ue=S??p;return{value:ue,context:ke,actions:k,changed:S!==p||k.length>0||Ie,matches:Wl(ue)}}}}catch(j){l={error:j}}finally{try{g&&!g.done&&(d=b.return)&&d.call(b)}finally{if(l)throw l.error}}}return Fy(p,c)}};return o}var zy=function(e,t){return e.actions.forEach(function(r){var n=r.exec;return n&&n(e.context,t)})};function jw(e){var t=e.initialState,r=Ka.NotStarted,n=new Set,a={_machine:e,send:function(o){r===Ka.Running&&(t=e.transition(t,o),zy(t,Hw(o)),n.forEach(function(s){return s(t)}))},subscribe:function(o){return n.add(o),o(t),{unsubscribe:function(){return n.delete(o)}}},start:function(o){if(o){var s=typeof o=="object"?o:{context:e.config.context,value:o};t={value:s.value,actions:[],context:s.context,matches:Wl(s.value)}}return r=Ka.Running,zy(t,$w),a},stop:function(){return r=Ka.Stopped,n.clear(),a},get state(){return t},get status(){return r}};return a}function vk(e,t){for(let r=e.length-1;r>=0;r--){let n=e[r];if(n.type===W.Meta&&n.timestamp<=t)return e.slice(r)}return e}function yk(e,{getCastFn:t,applyEventsSynchronously:r,emitter:n}){let a=Ww({id:"player",context:e,initial:"paused",states:{playing:{on:{PAUSE:{target:"paused",actions:["pause"]},CAST_EVENT:{target:"playing",actions:"castEvent"},END:{target:"paused",actions:["resetLastPlayedEvent","pause"]},ADD_EVENT:{target:"playing",actions:["addEvent"]}}},paused:{on:{PLAY:{target:"playing",actions:["recordTimeOffset","play"]},CAST_EVENT:{target:"paused",actions:"castEvent"},TO_LIVE:{target:"live",actions:["startLive"]},ADD_EVENT:{target:"paused",actions:["addEvent"]}}},live:{on:{ADD_EVENT:{target:"live",actions:["addEvent"]},CAST_EVENT:{target:"live",actions:["castEvent"]}}}}},{actions:{castEvent:ja({lastPlayedEvent:(o,s)=>s.type==="CAST_EVENT"?s.payload.event:o.lastPlayedEvent}),recordTimeOffset:ja((o,s)=>{let i=o.timeOffset;return"payload"in s&&"timeOffset"in s.payload&&(i=s.payload.timeOffset),{...o,timeOffset:i,baselineTime:o.events[0].timestamp+i}}),play(o){var s;let{timer:i,events:l,baselineTime:d,lastPlayedEvent:u}=o;i.clear();for(let h of l)Ay(h,d);let p=vk(l,d),c=u?.timestamp;u?.type===W.IncrementalSnapshot&&u.data.source===q.MouseMove&&(c=u.timestamp+((s=u.data.positions[0])==null?void 0:s.timeOffset)),d<(c||0)&&n.emit(ve.PlayBack);let f=new Array;for(let h of p)if(!(c&&c<d&&(h.timestamp<=c||h===u)))if(h.timestamp<d)f.push(h);else{let m=t(h,!1);i.addAction({doAction:()=>{m()},delay:h.delay})}r(f),n.emit(ve.Flush),i.start()},pause(o){o.timer.clear()},resetLastPlayedEvent:ja(o=>({...o,lastPlayedEvent:null})),startLive:ja({baselineTime:(o,s)=>(o.timer.start(),s.type==="TO_LIVE"&&s.payload.baselineTime?s.payload.baselineTime:Date.now())}),addEvent:ja((o,s)=>{let{baselineTime:i,timer:l,events:d}=o;if(s.type==="ADD_EVENT"){let{event:u}=s.payload;Ay(u,i);let p=d.length-1;if(!d[p]||d[p].timestamp<=u.timestamp)d.push(u);else{let h=-1,m=0;for(;m<=p;){let b=Math.floor((m+p)/2);d[b].timestamp<=u.timestamp?m=b+1:p=b-1}h===-1&&(h=m),d.splice(h,0,u)}let c=u.timestamp<i,f=t(u,c);c?f():l.isActive()&&l.addAction({doAction:()=>{f()},delay:u.delay})}return{...o,events:d}})}});return jw(a)}function wk(e){let t=Ww({id:"speed",context:e,initial:"normal",states:{normal:{on:{FAST_FORWARD:{target:"skipping",actions:["recordSpeed","setSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}},skipping:{on:{BACK_TO_NORMAL:{target:"normal",actions:["restoreSpeed"]},SET_SPEED:{target:"normal",actions:["setSpeed"]}}}}},{actions:{setSpeed:(r,n)=>{"payload"in n&&r.timer.setSpeed(n.payload.speed)},recordSpeed:ja({normalSpeed:r=>r.timer.speed}),restoreSpeed:r=>{r.timer.setSpeed(r.normalSpeed)}}});return jw(t)}var bk=e=>[`.${e} { background: currentColor }`,"noscript { display: none !important; }"],Uy=new Map;function Vw(e,t){let r=Uy.get(e);return r||(r=new Map,Uy.set(e,r)),r.has(t)||r.set(t,[]),r.get(t)}function bn(e,t,r){return async n=>{if(n&&typeof n=="object"&&"rr_type"in n)if(r&&(r.isUnchanged=!1),n.rr_type==="ImageBitmap"&&"args"in n){let a=await bn(e,t,r)(n.args);return await createImageBitmap.apply(null,a)}else if("index"in n){if(r||t===null)return n;let{rr_type:a,index:o}=n;return Vw(t,a)[o]}else if("args"in n){let{rr_type:a,args:o}=n,s=window[a];return new s(...await Promise.all(o.map(bn(e,t,r))))}else{if("base64"in n)return dk(n.base64);if("src"in n){let a=e.get(n.src);if(a)return a;{let o=new Image;return o.src=n.src,e.set(n.src,o),o}}else if("data"in n&&n.rr_type==="Blob"){let a=await Promise.all(n.data.map(bn(e,t,r)));return new Blob(a,{type:n.type})}}else if(Array.isArray(n))return await Promise.all(n.map(bn(e,t,r)));return n}}function Sk(e,t){try{return t===jr.WebGL?e.getContext("webgl")||e.getContext("experimental-webgl"):e.getContext("webgl2")}catch{return null}}var Ck=["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject"];function Lk(e,t){if(!t?.constructor)return;let{name:r}=t.constructor;if(!Ck.includes(r))return;let n=Vw(e,r);n.includes(t)||n.push(t)}async function kk({mutation:e,target:t,type:r,imageMap:n,errorHandler:a}){try{let o=Sk(t,r);if(!o)return;if(e.setter){o[e.property]=e.args[0];return}let s=o[e.property],i=await Promise.all(e.args.map(bn(n,o))),l=s.apply(o,i);Lk(o,l);let d=!1}catch(o){a(e,o)}}async function Ik({event:e,mutations:t,target:r,imageMap:n,errorHandler:a}){let o=r.getContext("2d");if(!o){a(t[0],new Error("Canvas context is null"));return}let s=t.map(async l=>Promise.all(l.args.map(bn(n,o))));(await Promise.all(s)).forEach((l,d)=>{let u=t[d];try{if(u.setter){o[u.property]=u.args[0];return}let p=o[u.property];u.property==="drawImage"&&typeof u.args[0]=="string"?(n.get(e),p.apply(o,u.args)):p.apply(o,l)}catch(p){a(u,p)}})}async function qy({event:e,mutation:t,target:r,imageMap:n,canvasEventMap:a,errorHandler:o}){try{let s=a.get(e)||t,i="commands"in s?s.commands:[s];if([jr.WebGL,jr.WebGL2].includes(t.type)){for(let l=0;l<i.length;l++){let d=i[l];await kk({mutation:d,type:t.type,target:r,imageMap:n,errorHandler:o})}return}await Ik({event:e,mutations:i,target:r,imageMap:n,errorHandler:o})}catch(s){o(t,s)}}var Ip=class{constructor(t){R(this,"mediaMap",new Map),R(this,"warn"),R(this,"service"),R(this,"speedService"),R(this,"emitter"),R(this,"getCurrentTime"),R(this,"metadataCallbackMap",new Map),this.warn=t.warn,this.service=t.service,this.speedService=t.speedService,this.emitter=t.emitter,this.getCurrentTime=t.getCurrentTime,this.emitter.on(ve.Start,this.start.bind(this)),this.emitter.on(ve.SkipStart,this.start.bind(this)),this.emitter.on(ve.Pause,this.pause.bind(this)),this.emitter.on(ve.Finish,this.pause.bind(this)),this.speedService.subscribe(()=>{this.syncAllMediaElements()})}syncAllMediaElements(t={pause:!1}){this.mediaMap.forEach((r,n)=>{this.syncTargetWithState(n),t.pause&&n.pause()})}start(){this.syncAllMediaElements()}pause(){this.syncAllMediaElements({pause:!0})}seekTo({time:t,target:r,mediaState:n}){if(n.isPlaying){let o=(t-n.lastInteractionTimeOffset)/1e3*n.playbackRate,s="duration"in r&&r.duration;if(Number.isNaN(s)){this.waitForMetadata(r);return}let i=n.currentTimeAtLastInteraction+o;r.loop&&s!==!1&&(i=i%s),r.currentTime=i}else r.pause(),r.currentTime=n.currentTimeAtLastInteraction}waitForMetadata(t){if(this.metadataCallbackMap.has(t)||!("addEventListener"in t))return;let r=()=>{this.metadataCallbackMap.delete(t);let n=this.mediaMap.get(t);n&&this.seekTo({time:this.getCurrentTime(),target:t,mediaState:n})};this.metadataCallbackMap.set(t,r),t.addEventListener("loadedmetadata",r,{once:!0})}getMediaStateFromMutation({target:t,timeOffset:r,mutation:n}){let a=this.mediaMap.get(t),{type:o,playbackRate:s,currentTime:i,muted:l,volume:d,loop:u}=n;return{isPlaying:o===wn.Play||o!==wn.Pause&&(a?.isPlaying||t.getAttribute("autoplay")!==null),currentTimeAtLastInteraction:i??a?.currentTimeAtLastInteraction??0,lastInteractionTimeOffset:r,playbackRate:s??a?.playbackRate??1,volume:d??a?.volume??1,muted:l??a?.muted??t.getAttribute("muted")===null,loop:u??a?.loop??t.getAttribute("loop")===null}}syncTargetWithState(t){let r=this.mediaMap.get(t);if(!r)return;let{muted:n,loop:a,volume:o,isPlaying:s}=r,i=this.service.state.matches("paused"),l=r.playbackRate*this.speedService.state.context.timer.speed;try{this.seekTo({time:this.getCurrentTime(),target:t,mediaState:r}),t.volume!==o&&(t.volume=o),t.muted=n,t.loop=a,t.playbackRate!==l&&(t.playbackRate=l),s&&!i?t.play():t.pause()}catch(d){this.warn(`Failed to replay media interactions: ${d.message||d}`)}}addMediaElements(t,r,n){if(!["AUDIO","VIDEO"].includes(t.nodeName))return;let a=t,o=n.getMeta(a);if(!o||!("attributes"in o))return;let s=this.service.state.matches("paused"),i=o.attributes,l=!1;i.rr_mediaState?l=i.rr_mediaState==="played":l=a.getAttribute("autoplay")!==null,l&&s&&a.pause();let d=1;typeof i.rr_mediaPlaybackRate=="number"&&(d=i.rr_mediaPlaybackRate);let u=!1;typeof i.rr_mediaMuted=="boolean"?u=i.rr_mediaMuted:u=a.getAttribute("muted")!==null;let p=!1;typeof i.rr_mediaLoop=="boolean"?p=i.rr_mediaLoop:p=a.getAttribute("loop")!==null;let c=1;typeof i.rr_mediaVolume=="number"&&(c=i.rr_mediaVolume);let f=0;typeof i.rr_mediaCurrentTime=="number"&&(f=i.rr_mediaCurrentTime),this.mediaMap.set(a,{isPlaying:l,currentTimeAtLastInteraction:f,lastInteractionTimeOffset:r,playbackRate:d,volume:c,muted:u,loop:p}),this.syncTargetWithState(a)}mediaMutation({target:t,timeOffset:r,mutation:n}){this.mediaMap.set(t,this.getMediaStateFromMutation({target:t,timeOffset:r,mutation:n})),this.syncTargetWithState(t)}isSupportedMediaElement(t){return["AUDIO","VIDEO"].includes(t.nodeName)}reset(){this.mediaMap.clear()}};function _l(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e,n=r.open,a=n&&r.matches("dialog:modal"),o=r.getAttribute("rr_open_mode"),s=typeof t?.attributes.open=="string"||typeof r.getAttribute("open")=="string",i=o==="modal";if(!(n&&!(a&&o==="non-modal"||!a&&i))){if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}n&&r.close(),s&&(i?r.showModal():r.show())}}function _k(e,t){if(e.nodeName!=="DIALOG"||e instanceof vr)return;let r=e;if(!r.isConnected){console.warn("dialog is not attached to the dom",r);return}t.attributes.open===null&&(r.removeAttribute("open"),r.removeAttribute("rr_open_mode"))}var Mk=5*1e3,Rk=gk,$y="[replayer]",rp={duration:500,lineCap:"round",lineWidth:3,strokeStyle:"red"};function Hy(e){return e.type==W.IncrementalSnapshot&&(e.data.source==q.TouchMove||e.data.source==q.MouseInteraction&&e.data.type==ye.TouchStart)}var jl=class{constructor(t,r){if(R(this,"wrapper"),R(this,"iframe"),R(this,"UNSAFE_replayCanvas",!1),R(this,"service"),R(this,"speedService"),R(this,"config"),R(this,"usingVirtualDom",!1),R(this,"virtualDom",new Ya),R(this,"mouse"),R(this,"mouseTail",null),R(this,"tailPositions",[]),R(this,"emitter",Rk()),R(this,"nextUserInteractionEvent"),R(this,"legacy_missingNodeRetryMap",{}),R(this,"cache",$v()),R(this,"imageMap",new Map),R(this,"canvasEventMap",new Map),R(this,"mirror",Xy()),R(this,"styleMirror",new Ul),R(this,"mediaManager"),R(this,"firstFullSnapshot",null),R(this,"newDocumentQueue",[]),R(this,"mousePos",null),R(this,"touchActive",null),R(this,"lastMouseDownEvent",null),R(this,"lastHoveredRootNode"),R(this,"lastSelectionData",null),R(this,"constructedStyleMutations",[]),R(this,"adoptedStyleSheets",[]),R(this,"handleResize",i=>{this.iframe.style.display="inherit";for(let l of[this.mouseTail,this.iframe])l&&(l.setAttribute("width",String(i.width)),l.setAttribute("height",String(i.height)))}),R(this,"applyEventsSynchronously",i=>{for(let l of i){switch(l.type){case W.DomContentLoaded:case W.Load:case W.Custom:continue;case W.FullSnapshot:case W.Meta:case W.Plugin:case W.IncrementalSnapshot:break}this.getCastFn(l,!0)()}}),R(this,"getCastFn",(i,l=!1)=>{let d;switch(i.type){case W.DomContentLoaded:case W.Load:break;case W.Custom:d=()=>{this.emitter.emit(ve.CustomEvent,i)};break;case W.Meta:d=()=>this.emitter.emit(ve.Resize,{width:i.data.width,height:i.data.height});break;case W.FullSnapshot:d=()=>{var p;if(this.firstFullSnapshot){if(this.firstFullSnapshot===i){this.firstFullSnapshot=!0;return}}else this.firstFullSnapshot=!0;this.mediaManager.reset(),this.styleMirror.reset(),this.rebuildFullSnapshot(i,l),(p=this.iframe.contentWindow)==null||p.scrollTo(i.data.initialOffset)};break;case W.IncrementalSnapshot:d=()=>{if(this.applyIncremental(i,l),!l&&(i===this.nextUserInteractionEvent&&(this.nextUserInteractionEvent=null,this.backToNormal()),this.config.skipInactive&&!this.nextUserInteractionEvent)){for(let p of this.service.state.context.events)if(!(p.timestamp<=i.timestamp)&&this.isUserInteraction(p)){p.delay-i.delay>this.config.inactivePeriodThreshold*this.speedService.state.context.timer.speed&&(this.nextUserInteractionEvent=p);break}if(this.nextUserInteractionEvent){let p=this.nextUserInteractionEvent.delay-i.delay,c={speed:Math.min(Math.round(p/Mk),this.config.maxSpeed)};this.speedService.send({type:"FAST_FORWARD",payload:c}),this.emitter.emit(ve.SkipStart,c)}}};break}return()=>{d&&d();for(let c of this.config.plugins||[])c.handler&&c.handler(i,l,{replayer:this});this.service.send({type:"CAST_EVENT",payload:{event:i}});let p=this.service.state.context.events.length-1;if(!this.config.liveMode&&i===this.service.state.context.events[p]){let c=()=>{p<this.service.state.context.events.length-1||(this.backToNormal(),this.service.send("END"),this.emitter.emit(ve.Finish))},f=50;i.type===W.IncrementalSnapshot&&i.data.source===q.MouseMove&&i.data.positions.length&&(f+=Math.max(0,-i.data.positions[0].timeOffset)),setTimeout(c,f)}this.emitter.emit(ve.EventCast,i)}}),!r?.liveMode&&t.length<2)throw new Error("Replayer need at least 2 events.");let n={speed:1,maxSpeed:360,root:document.body,loadTimeout:0,skipInactive:!1,inactivePeriodThreshold:10*1e3,showWarning:!0,showDebug:!1,blockClass:"rr-block",liveMode:!1,insertStyleRules:[],triggerFocus:!0,UNSAFE_replayCanvas:!1,pauseAnimation:!0,mouseTail:rp,useVirtualDom:!0,logger:console};this.config=Object.assign({},n,r),this.handleResize=this.handleResize.bind(this),this.getCastFn=this.getCastFn.bind(this),this.applyEventsSynchronously=this.applyEventsSynchronously.bind(this),this.emitter.on(ve.Resize,this.handleResize),this.setupDom();for(let i of this.config.plugins||[])i.getMirror&&i.getMirror({nodeMirror:this.mirror});this.emitter.on(ve.Flush,()=>{if(this.usingVirtualDom){let i={mirror:this.mirror,applyCanvas:(l,d,u)=>{qy({event:l,mutation:d,target:u,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})},applyInput:this.applyInput.bind(this),applyScroll:this.applyScroll.bind(this),applyStyleSheetMutation:(l,d)=>{l.source===q.StyleSheetRule?this.applyStyleSheetRule(l,d):l.source===q.StyleDeclaration&&this.applyStyleDeclaration(l,d)},afterAppend:(l,d)=>{for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})}};if(this.iframe.contentDocument)try{Bl(this.iframe.contentDocument,this.virtualDom,i,this.virtualDom.mirror)}catch(l){console.warn(l)}if(this.virtualDom.destroyTree(),this.usingVirtualDom=!1,Object.keys(this.legacy_missingNodeRetryMap).length)for(let l in this.legacy_missingNodeRetryMap)try{let d=this.legacy_missingNodeRetryMap[l],u=zl(d.node,this.mirror,this.virtualDom.mirror);Bl(u,d.node,i,this.virtualDom.mirror),d.node=u}catch(d){this.warn(d)}this.constructedStyleMutations.forEach(l=>{this.applyStyleSheetMutation(l)}),this.constructedStyleMutations=[],this.adoptedStyleSheets.forEach(l=>{this.applyAdoptedStyleSheet(l)}),this.adoptedStyleSheets=[]}if(this.mousePos&&(this.moveAndHover(this.mousePos.x,this.mousePos.y,this.mousePos.id,!0,this.mousePos.debugData),this.mousePos=null),this.touchActive===!0?this.mouse.classList.add("touch-active"):this.touchActive===!1&&this.mouse.classList.remove("touch-active"),this.touchActive=null,this.lastMouseDownEvent){let[i,l]=this.lastMouseDownEvent;i.dispatchEvent(l)}this.lastMouseDownEvent=null,this.lastSelectionData&&(this.applySelection(this.lastSelectionData),this.lastSelectionData=null)}),this.emitter.on(ve.PlayBack,()=>{this.firstFullSnapshot=null,this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset()});let a=new kp([],{speed:this.config.speed});this.service=yk({events:t.map(i=>r&&r.unpackFn?r.unpackFn(i):i).sort((i,l)=>i.timestamp-l.timestamp),timer:a,timeOffset:0,baselineTime:0,lastPlayedEvent:null},{getCastFn:this.getCastFn,applyEventsSynchronously:this.applyEventsSynchronously,emitter:this.emitter}),this.service.start(),this.service.subscribe(i=>{this.emitter.emit(ve.StateChange,{player:i})}),this.speedService=wk({normalSpeed:-1,timer:a}),this.speedService.start(),this.speedService.subscribe(i=>{this.emitter.emit(ve.StateChange,{speed:i})}),this.mediaManager=new Ip({warn:this.warn.bind(this),service:this.service,speedService:this.speedService,emitter:this.emitter,getCurrentTime:this.getCurrentTime.bind(this)});let o=this.service.state.context.events.find(i=>i.type===W.Meta),s=this.service.state.context.events.find(i=>i.type===W.FullSnapshot);if(o){let{width:i,height:l}=o.data;setTimeout(()=>{this.emitter.emit(ve.Resize,{width:i,height:l})},0)}s&&setTimeout(()=>{var i;this.firstFullSnapshot||(this.firstFullSnapshot=s,this.rebuildFullSnapshot(s),(i=this.iframe.contentWindow)==null||i.scrollTo(s.data.initialOffset))},1),this.service.state.context.events.find(Hy)&&this.mouse.classList.add("touch-device")}get timer(){return this.service.state.context.timer}on(t,r){return this.emitter.on(t,r),this}off(t,r){return this.emitter.off(t,r),this}setConfig(t){Object.keys(t).forEach(r=>{t[r],this.config[r]=t[r]}),this.config.skipInactive||this.backToNormal(),typeof t.speed<"u"&&this.speedService.send({type:"SET_SPEED",payload:{speed:t.speed}}),typeof t.mouseTail<"u"&&(t.mouseTail===!1?this.mouseTail&&(this.mouseTail.style.display="none"):(this.mouseTail||(this.mouseTail=document.createElement("canvas"),this.mouseTail.width=Number.parseFloat(this.iframe.width),this.mouseTail.height=Number.parseFloat(this.iframe.height),this.mouseTail.classList.add("replayer-mouse-tail"),this.wrapper.insertBefore(this.mouseTail,this.iframe)),this.mouseTail.style.display="inherit"))}getMetaData(){let t=this.service.state.context.events[0],r=this.service.state.context.events[this.service.state.context.events.length-1];return{startTime:t.timestamp,endTime:r.timestamp,totalTime:r.timestamp-t.timestamp}}getCurrentTime(){return this.timer.timeOffset+this.getTimeOffset()}getTimeOffset(){let{baselineTime:t,events:r}=this.service.state.context;return t-r[0].timestamp}getMirror(){return this.mirror}play(t=0){var r,n;this.service.state.matches("paused")?this.service.send({type:"PLAY",payload:{timeOffset:t}}):(this.service.send({type:"PAUSE"}),this.service.send({type:"PLAY",payload:{timeOffset:t}})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.remove("rrweb-paused"),this.emitter.emit(ve.Start)}pause(t){var r,n;t===void 0&&this.service.state.matches("playing")&&this.service.send({type:"PAUSE"}),typeof t=="number"&&(this.play(t),this.service.send({type:"PAUSE"})),(n=(r=this.iframe.contentDocument)==null?void 0:r.getElementsByTagName("html")[0])==null||n.classList.add("rrweb-paused"),this.emitter.emit(ve.Pause)}resume(t=0){this.warn("The 'resume' was deprecated in 1.0. Please use 'play' method which has the same interface."),this.play(t),this.emitter.emit(ve.Resume)}destroy(){this.pause(),this.mirror.reset(),this.styleMirror.reset(),this.mediaManager.reset(),this.config.root.removeChild(this.wrapper),this.emitter.emit(ve.Destroy)}startLive(t){this.service.send({type:"TO_LIVE",payload:{baselineTime:t}})}addEvent(t){let r=this.config.unpackFn?this.config.unpackFn(t):t;Hy(r)&&this.mouse.classList.add("touch-device"),Promise.resolve().then(()=>this.service.send({type:"ADD_EVENT",payload:{event:r}}))}enableInteract(){this.iframe.setAttribute("scrolling","auto"),this.iframe.style.pointerEvents="auto"}disableInteract(){this.iframe.setAttribute("scrolling","no"),this.iframe.style.pointerEvents="none"}resetCache(){this.cache=$v()}setupDom(){this.wrapper=document.createElement("div"),this.wrapper.classList.add("replayer-wrapper"),this.config.root.appendChild(this.wrapper),this.mouse=document.createElement("div"),this.mouse.classList.add("replayer-mouse"),this.wrapper.appendChild(this.mouse),this.config.mouseTail!==!1&&(this.mouseTail=document.createElement("canvas"),this.mouseTail.classList.add("replayer-mouse-tail"),this.mouseTail.style.display="inherit",this.wrapper.appendChild(this.mouseTail)),this.config.UNSAFE_replayCanvas?(this.iframe=document.createElement("iframe"),this.iframe.setAttribute("sandbox","allow-same-origin allow-scripts"),this.wrapper.appendChild(this.iframe),this.UNSAFE_replayCanvas=!0):(this.iframe=VC({root:this.wrapper}),this.UNSAFE_replayCanvas=!1),this.iframe.style.display="none",this.disableInteract(),this.iframe.contentWindow&&this.iframe.contentDocument&&(xk(this.iframe.contentWindow,this.iframe.contentDocument),Mw(this.iframe.contentWindow))}rebuildFullSnapshot(t,r=!1){if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");Object.keys(this.legacy_missingNodeRetryMap).length&&this.warn("Found unresolved missing node map",this.legacy_missingNodeRetryMap),this.legacy_missingNodeRetryMap={};let n=[],a=new Set,o=(l,d)=>{if(l.nodeName==="DIALOG"&&a.add(l),this.collectIframeAndAttachDocument(n,l),this.mediaManager.isSupportedMediaElement(l)){let{events:u}=this.service.state.context;this.mediaManager.addMediaElements(l,t.timestamp-u[0].timestamp,this.mirror)}for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(l,{id:d,replayer:this})};this.usingVirtualDom&&(this.virtualDom.destroyTree(),this.usingVirtualDom=!1),this.mirror.reset(),jC(t.data.node,{doc:this.iframe.contentDocument,afterAppend:o,cache:this.cache,mirror:this.mirror,UNSAFE_allowUnprotectedRebuild:this.UNSAFE_replayCanvas}),o(this.iframe.contentDocument,t.data.node.id);for(let{mutationInQueue:l,builtNode:d}of n)this.attachDocumentToIframe(l,d),this.newDocumentQueue=this.newDocumentQueue.filter(u=>u!==l);let{documentElement:s,head:i}=this.iframe.contentDocument;this.insertStyleRules(s,i),a.forEach(l=>_l(l)),this.service.state.matches("playing")||this.iframe.contentDocument.getElementsByTagName("html")[0].classList.add("rrweb-paused"),this.emitter.emit(ve.FullsnapshotRebuilded,t),r||this.waitForStylesheetLoad(),this.config.UNSAFE_replayCanvas&&this.preloadAllImages()}insertStyleRules(t,r){var n;let a=bk(this.config.blockClass).concat(this.config.insertStyleRules);if(this.config.pauseAnimation&&a.push("html.rrweb-paused *, html.rrweb-paused *:before, html.rrweb-paused *:after { animation-play-state: paused !important; }"),!!a.length)if(this.usingVirtualDom){let o=this.virtualDom.createElement("style");this.virtualDom.mirror.add(o,yw(o,this.virtualDom.unserializedId)),t.insertBefore(o,r),o.rules.push({source:q.StyleSheetRule,adds:a.map((s,i)=>({rule:s,index:i}))})}else{let o=document.createElement("style");t.insertBefore(o,r);for(let s=0;s<a.length;s++)(n=o.sheet)==null||n.insertRule(a[s],s)}}attachDocumentToIframe(t,r){let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror,a=[],o=new Set,s=(i,l)=>{i.nodeName==="DIALOG"&&o.add(i),this.collectIframeAndAttachDocument(a,i);let d=n.getMeta(i);if(d?.type===Wr.Element&&d?.tagName.toUpperCase()==="HTML"){let{documentElement:u,head:p}=r.contentDocument;this.insertStyleRules(u,p)}if(!this.usingVirtualDom)for(let u of this.config.plugins||[])u.onBuild&&u.onBuild(i,{id:l,replayer:this})};os(t.node,{doc:r.contentDocument,mirror:n,hackCss:!0,skipChild:!1,afterAppend:s,cache:this.cache}),s(r.contentDocument,t.node.id);for(let{mutationInQueue:i,builtNode:l}of a)this.attachDocumentToIframe(i,l),this.newDocumentQueue=this.newDocumentQueue.filter(d=>d!==i);o.forEach(i=>_l(i))}collectIframeAndAttachDocument(t,r){if(ss(r,this.mirror)){let n=this.newDocumentQueue.find(a=>a.parentId===this.mirror.getId(r));n&&t.push({mutationInQueue:n,builtNode:r})}}waitForStylesheetLoad(){var t;let r=(t=this.iframe.contentDocument)==null?void 0:t.head;if(r){let n=new Set,a,o=this.service.state,s=()=>{o=this.service.state};this.emitter.on(ve.Start,s),this.emitter.on(ve.Pause,s);let i=()=>{this.emitter.off(ve.Start,s),this.emitter.off(ve.Pause,s)};r.querySelectorAll('link[rel="stylesheet"]').forEach(l=>{l.sheet||(n.add(l),l.addEventListener("load",()=>{n.delete(l),n.size===0&&a!==-1&&(o.matches("playing")&&this.play(this.getCurrentTime()),this.emitter.emit(ve.LoadStylesheetEnd),a&&clearTimeout(a),i())}))}),n.size>0&&(this.service.send({type:"PAUSE"}),this.emitter.emit(ve.LoadStylesheetStart),a=setTimeout(()=>{o.matches("playing")&&this.play(this.getCurrentTime()),a=-1,i()},this.config.loadTimeout))}}async preloadAllImages(){let t=[];for(let r of this.service.state.context.events)r.type===W.IncrementalSnapshot&&r.data.source===q.CanvasMutation&&(t.push(this.deserializeAndPreloadCanvasEvents(r.data,r)),("commands"in r.data?r.data.commands:[r.data]).forEach(a=>{this.preloadImages(a,r)}));return Promise.all(t)}preloadImages(t,r){if(t.property==="drawImage"&&typeof t.args[0]=="string"&&!this.imageMap.has(r)){let n=document.createElement("canvas"),a=n.getContext("2d"),o=a?.createImageData(n.width,n.height);a?.putImageData(o,0,0)}}async deserializeAndPreloadCanvasEvents(t,r){if(!this.canvasEventMap.has(r)){let n={isUnchanged:!0};if("commands"in t){let a=await Promise.all(t.commands.map(async o=>{let s=await Promise.all(o.args.map(bn(this.imageMap,null,n)));return{...o,args:s}}));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,commands:a})}else{let a=await Promise.all(t.args.map(bn(this.imageMap,null,n)));n.isUnchanged===!1&&this.canvasEventMap.set(r,{...t,args:a})}}}applyIncremental(t,r){var n,a,o;let{data:s}=t;switch(s.source){case q.Mutation:{try{this.applyMutation(s,r)}catch(i){this.warn(`Exception in mutation ${i.message||i}`,s)}break}case q.Drag:case q.TouchMove:case q.MouseMove:if(r){let i=s.positions[s.positions.length-1];this.mousePos={x:i.x,y:i.y,id:i.id,debugData:s}}else s.positions.forEach(i=>{let l={doAction:()=>{this.moveAndHover(i.x,i.y,i.id,r,s)},delay:i.timeOffset+t.timestamp-this.service.state.context.baselineTime};this.timer.addAction(l)}),this.timer.addAction({doAction(){},delay:t.delay-((n=s.positions[0])==null?void 0:n.timeOffset)});break;case q.MouseInteraction:{if(s.id===-1)break;let i=new Event(Sn(ye[s.type])),l=this.mirror.getNode(s.id);if(!l)return this.debugNodeNotFound(s,s.id);this.emitter.emit(ve.MouseInteraction,{type:s.type,target:l});let{triggerFocus:d}=this.config;switch(s.type){case ye.Blur:"blur"in l&&l.blur();break;case ye.Focus:d&&l.focus&&l.focus({preventScroll:!0});break;case ye.Click:case ye.TouchStart:case ye.TouchEnd:case ye.MouseDown:case ye.MouseUp:r?(s.type===ye.TouchStart?this.touchActive=!0:s.type===ye.TouchEnd&&(this.touchActive=!1),s.type===ye.MouseDown?this.lastMouseDownEvent=[l,i]:s.type===ye.MouseUp&&(this.lastMouseDownEvent=null),this.mousePos={x:s.x||0,y:s.y||0,id:s.id,debugData:s}):(s.type===ye.TouchStart&&(this.tailPositions.length=0),this.moveAndHover(s.x||0,s.y||0,s.id,r,s),s.type===ye.Click?(this.mouse.classList.remove("active"),this.mouse.offsetWidth,this.mouse.classList.add("active")):s.type===ye.TouchStart?(this.mouse.offsetWidth,this.mouse.classList.add("touch-active")):s.type===ye.TouchEnd?this.mouse.classList.remove("touch-active"):l.dispatchEvent(i));break;case ye.TouchCancel:r?this.touchActive=!1:this.mouse.classList.remove("touch-active");break;default:l.dispatchEvent(i)}break}case q.Scroll:{if(s.id===-1)break;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.scrollData=s;break}this.applyScroll(s,r);break}case q.ViewportResize:this.emitter.emit(ve.Resize,{width:s.width,height:s.height});break;case q.Input:{if(s.id===-1)break;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.inputData=s;break}this.applyInput(s);break}case q.MediaInteraction:{let i=this.usingVirtualDom?this.virtualDom.mirror.getNode(s.id):this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);let l=i,{events:d}=this.service.state.context;this.mediaManager.mediaMutation({target:l,timeOffset:t.timestamp-d[0].timestamp,mutation:s});break}case q.StyleSheetRule:case q.StyleDeclaration:{this.usingVirtualDom?s.styleId?this.constructedStyleMutations.push(s):s.id&&((a=this.virtualDom.mirror.getNode(s.id))==null||a.rules.push(s)):this.applyStyleSheetMutation(s);break}case q.CanvasMutation:{if(!this.config.UNSAFE_replayCanvas)return;if(this.usingVirtualDom){let i=this.virtualDom.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);i.canvasMutations.push({event:t,mutation:s})}else{let i=this.mirror.getNode(s.id);if(!i)return this.debugNodeNotFound(s,s.id);qy({event:t,mutation:s,target:i,imageMap:this.imageMap,canvasEventMap:this.canvasEventMap,errorHandler:this.warnCanvasMutationFailed.bind(this)})}break}case q.Font:{try{let i=new FontFace(s.family,s.buffer?new Uint8Array(JSON.parse(s.fontSource)):s.fontSource,s.descriptors);(o=this.iframe.contentDocument)==null||o.fonts.add(i)}catch(i){this.warn(i)}break}case q.Selection:{if(r){this.lastSelectionData=s;break}this.applySelection(s);break}case q.AdoptedStyleSheet:{this.usingVirtualDom?this.adoptedStyleSheets.push(s):this.applyAdoptedStyleSheet(s);break}}}applyMutation(t,r){if(this.config.useVirtualDom&&!this.usingVirtualDom&&r&&(this.usingVirtualDom=!0,IL(this.iframe.contentDocument,this.mirror,this.virtualDom),Object.keys(this.legacy_missingNodeRetryMap).length))for(let d in this.legacy_missingNodeRetryMap)try{let u=this.legacy_missingNodeRetryMap[d],p=vw(u.node,this.virtualDom,this.mirror);p&&(u.node=p)}catch(u){this.warn(u)}let n=this.usingVirtualDom?this.virtualDom.mirror:this.mirror;t.removes=t.removes.filter(d=>n.getNode(d.id)?!0:(this.warnNodeNotFound(t,d.id),!1)),t.removes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return;let c=n.getNode(d.parentId);if(!c)return this.warnNodeNotFound(t,d.parentId);if(d.isShadow&&jn(c)&&(c=c.shadowRoot),n.removeNodeFromMap(p),c)try{c.removeChild(p),this.usingVirtualDom&&p.nodeName==="#text"&&c.nodeName==="STYLE"&&((u=c.rules)==null?void 0:u.length)>0&&(c.rules=[])}catch(f){if(f instanceof DOMException)this.warn("parent could not remove child in mutation",c,p,t);else throw f}});let a={...this.legacy_missingNodeRetryMap},o=[],s=d=>{let u=null;return d.nextId&&(u=n.getNode(d.nextId)),d.nextId!==null&&d.nextId!==void 0&&d.nextId!==-1&&!u},i=d=>{var u,p;if(!this.iframe.contentDocument)return this.warn("Looks like your replayer has been destroyed.");let c=n.getNode(d.parentId);if(!c)return d.node.type===Wr.Document?this.newDocumentQueue.push(d):o.push(d);d.node.isShadow&&(jn(c)||c.attachShadow({mode:"open"}),c=c.shadowRoot);let f=null,h=null;if(d.previousId&&(f=n.getNode(d.previousId)),d.nextId&&(h=n.getNode(d.nextId)),s(d))return o.push(d);if(d.node.rootId&&!n.getNode(d.node.rootId))return;let m=d.node.rootId?n.getNode(d.node.rootId):this.usingVirtualDom?this.virtualDom:this.iframe.contentDocument;if(ss(c,n)){this.attachDocumentToIframe(d,c);return}let b=(v,S)=>{if(!this.usingVirtualDom){_l(v);for(let y of this.config.plugins||[])y.onBuild&&y.onBuild(v,{id:S,replayer:this})}},g=os(d.node,{doc:m,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache,afterAppend:b});if(d.previousId===-1||d.nextId===-1){a[d.node.id]={node:g,mutation:d};return}let x=n.getMeta(c);if(x&&x.type===Wr.Element&&d.node.type===Wr.Text){let v=Array.isArray(c.childNodes)?c.childNodes:Array.from(c.childNodes);if(x.tagName==="textarea")for(let S of v)S.nodeType===c.TEXT_NODE&&c.removeChild(S);else if(x.tagName==="style"&&v.length===1)for(let S of v)S.nodeType===c.TEXT_NODE&&!n.hasNode(S)&&(g.textContent=S.textContent,c.removeChild(S))}else if(x?.type===Wr.Document){let v=c;d.node.type===Wr.DocumentType&&((u=v.childNodes[0])==null?void 0:u.nodeType)===Node.DOCUMENT_TYPE_NODE&&v.removeChild(v.childNodes[0]),g.nodeName==="HTML"&&v.documentElement&&v.removeChild(v.documentElement)}if(f&&f.nextSibling&&f.nextSibling.parentNode?c.insertBefore(g,f.nextSibling):h&&h.parentNode?c.contains(h)?c.insertBefore(g,h):c.insertBefore(g,null):c.appendChild(g),b(g,d.node.id),this.usingVirtualDom&&g.nodeName==="#text"&&c.nodeName==="STYLE"&&((p=c.rules)==null?void 0:p.length)>0&&(c.rules=[]),ss(g,this.mirror)){let v=this.mirror.getId(g),S=this.newDocumentQueue.find(y=>y.parentId===v);S&&(this.attachDocumentToIframe(S,g),this.newDocumentQueue=this.newDocumentQueue.filter(y=>y!==S))}(d.previousId||d.nextId)&&this.legacy_resolveMissingNode(a,c,g,d)};t.adds.forEach(d=>{i(d)});let l=Date.now();for(;o.length;){let d=$L(o);if(o.length=0,Date.now()-l>500){this.warn("Timeout in the loop, please check the resolve tree data:",d);break}for(let u of d)n.getNode(u.value.parentId)?Rw(u,c=>{i(c)}):this.debug("Drop resolve tree since there is no parent for the root node.",u)}Object.keys(a).length&&Object.assign(this.legacy_missingNodeRetryMap,a),HL(t.texts).forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(f=>f.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);let c=p.parentElement;if(d.value&&c&&c.tagName==="STYLE"?p.textContent=Yl(d.value,this.cache):p.textContent=d.value,this.usingVirtualDom){let f=p.parentNode;((u=f?.rules)==null?void 0:u.length)>0&&(f.rules=[])}}),t.attributes.forEach(d=>{var u;let p=n.getNode(d.id);if(!p)return t.removes.find(c=>c.id===d.id)?void 0:this.warnNodeNotFound(t,d.id);for(let c in d.attributes)if(typeof c=="string"){let f=d.attributes[c];if(f===null)p.removeAttribute(c),c==="open"&&_k(p,d);else if(typeof f=="string")try{if(c==="_cssText"&&(p.nodeName==="LINK"||p.nodeName==="STYLE"))try{let h=n.getMeta(p),m=os({...h,attributes:{...h.attributes,...d.attributes}},{doc:p.ownerDocument,mirror:n,skipChild:!0,hackCss:!0,cache:this.cache});Object.assign(h.attributes,d.attributes);let b=p.nextSibling,g=p.parentNode;if(m&&g){g.removeChild(p),g.insertBefore(m,b),n.replace(d.id,m);break}}catch{}if(c==="value"&&p.nodeName==="TEXTAREA"){let h=p;h.childNodes.forEach(b=>h.removeChild(b));let m=(u=p.ownerDocument)==null?void 0:u.createTextNode(f);m&&h.appendChild(m)}else p.setAttribute(c,f);c==="rr_open_mode"&&p.nodeName==="DIALOG"&&_l(p,d)}catch(h){this.warn("An error occurred may due to the checkout feature.",h)}else if(c==="style"){let h=f,m=p;for(let b in h)if(h[b]===!1)m.style.removeProperty(b);else if(h[b]instanceof Array){let g=h[b];m.style.setProperty(b,g[0],g[1])}else{let g=h[b];m.style.setProperty(b,g)}}}})}applyScroll(t,r){var n,a;let o=this.mirror.getNode(t.id);if(!o)return this.debugNodeNotFound(t,t.id);let s=this.mirror.getMeta(o);if(o===this.iframe.contentDocument)(n=this.iframe.contentWindow)==null||n.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else if(s?.type===Wr.Document)(a=o.defaultView)==null||a.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"});else try{o.scrollTo({top:t.y,left:t.x,behavior:r?"auto":"smooth"})}catch{}}applyInput(t){let r=this.mirror.getNode(t.id);if(!r)return this.debugNodeNotFound(t,t.id);try{r.checked=t.isChecked,r.value=t.text}catch{}}applySelection(t){try{let r=new Set,n=t.ranges.map(({start:a,startOffset:o,end:s,endOffset:i})=>{let l=this.mirror.getNode(a),d=this.mirror.getNode(s);if(!l||!d)return;let u=new Range;u.setStart(l,o),u.setEnd(d,i);let p=l.ownerDocument,c=p?.getSelection();return c&&r.add(c),{range:u,selection:c}});r.forEach(a=>a.removeAllRanges()),n.forEach(a=>{var o;return a&&((o=a.selection)==null?void 0:o.addRange(a.range))})}catch{}}applyStyleSheetMutation(t){var r;let n=null;t.styleId?n=this.styleMirror.getStyle(t.styleId):t.id&&(n=((r=this.mirror.getNode(t.id))==null?void 0:r.sheet)||null),n&&(t.source===q.StyleSheetRule?this.applyStyleSheetRule(t,n):t.source===q.StyleDeclaration&&this.applyStyleDeclaration(t,n))}applyStyleSheetRule(t,r){var n,a,o,s;if((n=t.adds)==null||n.forEach(({rule:i,index:l})=>{try{if(Array.isArray(l)){let{positions:d,index:u}=Ly(l),p=ts(r.cssRules,d);p?.insertRule(i,u)}else{let d=l===void 0?void 0:Math.min(l,r.cssRules.length);r?.insertRule(i,d)}}catch{}}),(a=t.removes)==null||a.forEach(({index:i})=>{try{if(Array.isArray(i)){let{positions:l,index:d}=Ly(i),u=ts(r.cssRules,l);u?.deleteRule(d||0)}else r?.deleteRule(i)}catch{}}),typeof t.replace=="string")try{(o=r.replace)==null||o.call(r,t.replace)}catch{}if(typeof t.replaceSync=="string")try{(s=r.replaceSync)==null||s.call(r,t.replaceSync)}catch{}}applyStyleDeclaration(t,r){if(t.set){let n=ts(r.rules,t.index);n?.style&&n.style.setProperty(t.set.property,t.set.value,t.set.priority)}if(t.remove){let n=ts(r.rules,t.index);n?.style&&n.style.removeProperty(t.remove.property)}}applyAdoptedStyleSheet(t){var r;let n=this.mirror.getNode(t.id);if(!n)return;(r=t.styles)==null||r.forEach(i=>{var l;let d=null,u=null;if(jn(n)?u=((l=n.ownerDocument)==null?void 0:l.defaultView)||null:n.nodeName==="#document"&&(u=n.defaultView),!!u)try{d=new u.CSSStyleSheet,this.styleMirror.add(d,i.styleId),this.applyStyleSheetRule({source:q.StyleSheetRule,adds:i.rules},d)}catch{}});let a=10,o=0,s=(i,l)=>{let d=l.map(u=>this.styleMirror.getStyle(u)).filter(u=>u!==null);jn(i)?i.shadowRoot.adoptedStyleSheets=d:i.nodeName==="#document"&&(i.adoptedStyleSheets=d),d.length!==l.length&&o<a&&(setTimeout(()=>s(i,l),0+100*o),o++)};s(n,t.styleIds)}legacy_resolveMissingNode(t,r,n,a){let{previousId:o,nextId:s}=a,i=o&&t[o],l=s&&t[s];if(i){let{node:d,mutation:u}=i;r.insertBefore(d,n),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}if(l){let{node:d,mutation:u}=l;r.insertBefore(d,n.nextSibling),delete t[u.node.id],delete this.legacy_missingNodeRetryMap[u.node.id],(u.previousId||u.nextId)&&this.legacy_resolveMissingNode(t,r,d,u)}}moveAndHover(t,r,n,a,o){let s=this.mirror.getNode(n);if(!s)return this.debugNodeNotFound(o,n);let i=Pw(s,this.iframe),l=t*i.absoluteScale+i.x,d=r*i.absoluteScale+i.y;this.mouse.style.left=`${l}px`,this.mouse.style.top=`${d}px`,a||this.drawMouseTail({x:l,y:d}),this.hoverElements(s)}drawMouseTail(t){if(!this.mouseTail)return;let{lineCap:r,lineWidth:n,strokeStyle:a,duration:o}=this.config.mouseTail===!0?rp:Object.assign({},rp,this.config.mouseTail),s=()=>{if(!this.mouseTail)return;let i=this.mouseTail.getContext("2d");!i||!this.tailPositions.length||(i.clearRect(0,0,this.mouseTail.width,this.mouseTail.height),i.beginPath(),i.lineWidth=n,i.lineCap=r,i.strokeStyle=a,i.moveTo(this.tailPositions[0].x,this.tailPositions[0].y),this.tailPositions.forEach(l=>i.lineTo(l.x,l.y)),i.stroke())};this.tailPositions.push(t),s(),setTimeout(()=>{this.tailPositions=this.tailPositions.filter(i=>i!==t),s()},o/this.speedService.state.context.timer.speed)}hoverElements(t){var r;(r=this.lastHoveredRootNode||this.iframe.contentDocument)==null||r.querySelectorAll(".\\:hover").forEach(a=>{a.classList.remove(":hover")}),this.lastHoveredRootNode=t.getRootNode();let n=t;for(;n;)n.classList&&n.classList.add(":hover"),n=n.parentElement}isUserInteraction(t){return t.type!==W.IncrementalSnapshot?!1:t.data.source>q.Mutation&&t.data.source<=q.Input}backToNormal(){this.nextUserInteractionEvent=null,!this.speedService.state.matches("normal")&&(this.speedService.send({type:"BACK_TO_NORMAL"}),this.emitter.emit(ve.SkipEnd,{speed:this.speedService.state.context.normalSpeed}))}warnNodeNotFound(t,r){this.warn(`Node with id '${r}' not found. `,t)}warnCanvasMutationFailed(t,r){this.warn("Has error on canvas update",r,"canvas mutation:",t)}debugNodeNotFound(t,r){this.debug(`Node with id '${r}' not found. `,t)}warn(...t){this.config.showWarning&&this.config.logger.warn($y,...t)}debug(...t){this.config.showDebug&&this.config.logger.log($y,...t)}},{addCustomEvent:W_}=Qn,{freezePage:j_}=Qn,{takeFullSnapshot:V_}=Qn;var It=F(fe(),1);var ou=F(fe());var Gw=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),au=(...e)=>e.filter((t,r,n)=>!!t&&t.trim()!==""&&n.indexOf(t)===r).join(" ").trim();var hs=F(fe());var Xw={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Kw=(0,hs.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:a="",children:o,iconNode:s,...i},l)=>(0,hs.createElement)("svg",{ref:l,...Xw,width:t,height:t,stroke:e,strokeWidth:n?Number(r)*24/Number(t):r,className:au("lucide",a),...i},[...s.map(([d,u])=>(0,hs.createElement)(d,u)),...Array.isArray(o)?o:[o]]));var U=(e,t)=>{let r=(0,ou.forwardRef)(({className:n,...a},o)=>(0,ou.createElement)(Kw,{ref:o,iconNode:t,className:au(`lucide-${Gw(e)}`,n),...a}));return r.displayName=`${e}`,r};var Za=U("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);var Yn=U("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);var Jn=U("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Zn=U("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var gs=U("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);var xs=U("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);var vs=U("Disc",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);var ea=U("FastForward",[["polygon",{points:"13 19 22 12 13 5 13 19",key:"587y9g"}],["polygon",{points:"2 19 11 12 2 5 2 19",key:"3pweh0"}]]);var ys=U("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);var ws=U("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);var bs=U("Keyboard",[["path",{d:"M10 8h.01",key:"1r9ogq"}],["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M14 8h.01",key:"1primd"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"M18 8h.01",key:"emo2bl"}],["path",{d:"M6 8h.01",key:"x9i8wu"}],["path",{d:"M7 16h10",key:"wp8him"}],["path",{d:"M8 12h.01",key:"czm47f"}],["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}]]);var Cn=U("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);var Ss=U("Magnet",[["path",{d:"m6 15-4-4 6.75-6.77a7.79 7.79 0 0 1 11 11L13 22l-4-4 6.39-6.36a2.14 2.14 0 0 0-3-3L6 15",key:"1i3lhw"}],["path",{d:"m5 8 4 4",key:"j6kj7e"}],["path",{d:"m12 15 4 4",key:"lnac28"}]]);var ta=U("Maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]);var ra=U("Minimize",[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]]);var Cs=U("MonitorPlay",[["path",{d:"M10 7.75a.75.75 0 0 1 1.142-.638l3.664 2.249a.75.75 0 0 1 0 1.278l-3.664 2.25a.75.75 0 0 1-1.142-.64z",key:"1pctta"}],["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["rect",{x:"2",y:"3",width:"20",height:"14",rx:"2",key:"x3v2xh"}]]);var Ls=U("MousePointer2",[["path",{d:"M4.037 4.688a.495.495 0 0 1 .651-.651l16 6.5a.5.5 0 0 1-.063.947l-6.124 1.58a2 2 0 0 0-1.438 1.435l-1.579 6.126a.5.5 0 0 1-.947.063z",key:"edeuup"}]]);var ks=U("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);var na=U("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);var Is=U("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);var _s=U("Rewind",[["polygon",{points:"11 19 2 12 11 5 11 19",key:"14yba5"}],["polygon",{points:"22 19 13 12 22 5 22 19",key:"1pi1cj"}]]);var Ms=U("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);var Rs=U("Scissors",[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]]);var Es=U("SkipBack",[["polygon",{points:"19 20 9 12 19 4 19 20",key:"o2sva"}],["line",{x1:"5",x2:"5",y1:"19",y2:"5",key:"1ocqjk"}]]);var Ps=U("SkipForward",[["polygon",{points:"5 4 15 12 5 20 5 4",key:"16p6eg"}],["line",{x1:"19",x2:"19",y1:"5",y2:"19",key:"futhcm"}]]);var Zt=U("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);var Ns=U("StepBack",[["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["polygon",{points:"14,20 4,12 14,4",key:"ypakod"}]]);var Ts=U("StepForward",[["line",{x1:"6",x2:"6",y1:"4",y2:"20",key:"fy8qot"}],["polygon",{points:"10,4 20,12 10,20",key:"1mc1pf"}]]);var As=U("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);var Ds=U("Volume2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]);var Os=U("VolumeX",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]);var aa=U("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var oa=U("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);var zs=F(le(),1),$=F(le(),1),xu=F(fe(),1);var Dt=F(le(),1),y0=F(fe(),1);var Te=F(le(),1),w0=F(fe(),1),uu=F(le(),1),nr=F(fe(),1);var b0=F(fe(),1);var vu=F(fe(),1),Y=F(le(),1),L0=F(fe(),1);var et=F(le(),1);var k0=F(fe(),1);var Xe=F(le(),1),Ln=F(le(),1),yu=F(fe(),1);var Bs=F(le(),1),Jp=F(le(),1),Zp=F(le(),1),du=F(fe(),1);var Ke=F(fe(),1);var In=F(fe(),1),_e=F(le(),1),Us=F(fe(),1);var xt=F(le(),1),Tt=F(le(),1),Z=F(le(),1),E0=F(fe(),1),no=F(fe(),1),yr=F(le(),1),ro=F(fe(),1),kn=F(le(),1);var Q=F(le(),1),tm=F(fe(),1),Ht=F(le(),1);var At=F(le(),1),mu=F(le(),1),qs=F(fe(),1),to=F(le(),1),Ze=F(le(),1),rr=F(fe(),1),tr=F(le(),1),er=F(le(),1),wu=F(fe(),1);var je=F(le(),1),$s=F(fe(),1);var sm=F(le(),1);var c0=[.5,1,1.5,2,4,8],lu=["stage","balanced","debug"];function rm(e){if(!e||!e.length)return[...lu];let t=new Set;for(let r of e)lu.includes(r)&&t.add(r);return t.size?[...t]:[...lu]}var cu=["chapters","interaction","console","network","error","task","vitals"],st={speed:"obsrviq.player.speed",autoSkip:"obsrviq.player.autoSkip",autoSkim:"obsrviq.player.autoSkim",showCursor:"obsrviq.player.showCursor",mode:"obsrviq.player.mode",laneState:"obsrviq.player.laneState",snap:"obsrviq.player.snap"};function sa(e,t,r){try{let n=localStorage.getItem(e);return n==null?t:r(n)}catch{return t}}function Xr(e,t){try{localStorage.setItem(e,t)}catch{}}function Ek(){let e={};for(let t of cu)e[t]={collapsed:t==="console"||t==="vitals",solo:!1,mute:!1};return e}function Pk(){let e=Ek();try{let t=localStorage.getItem(st.laneState);if(!t)return e;let r=JSON.parse(t);for(let n of cu){let a=r[n];a&&(e[n]={collapsed:!!a.collapsed,solo:!!a.solo,mute:!!a.mute})}return e}catch{return e}}function Nk(){let e=null,t=null;return rv((r,n)=>{let a=()=>{e&&(clearInterval(e),e=null)},o=()=>{a();let i=performance.now();e=setInterval(()=>{let l=performance.now(),d=(l-i)*n().speed;i=l;let u=n().currentTime+d;u>=n().durationMs?(r({currentTime:n().durationMs}),n()._onFinish()):n()._onTime(u)},33.333333333333336)},s=i=>{let l=n(),d=l.events.find(p=>p.id===i);if(d)return d.t;let u=l.markers.find(p=>p.ref===i);return u?u.t:null};return{status:"idle",durationMs:0,currentTime:0,bufferedMs:0,speed:sa(st.speed,1,i=>Number(i)),autoSkip:sa(st.autoSkip,!1,i=>i==="true"),autoSkim:sa(st.autoSkip,!1,i=>i==="true")?!1:sa(st.autoSkim,!0,i=>i==="true"),isSkimming:!1,isSkipping:!1,lastSkipMs:0,loop:!1,clipStart:null,clipEnd:null,clipLoop:!1,autoplayNext:!1,showCursor:sa(st.showCursor,!0,i=>i==="true"),activePanel:"console",events:[],markers:[],summary:null,offset:0,hasReplay:!1,error:null,errorNotFound:!1,loadProgress:0,live:!1,following:!1,pendingSeek:null,controller:null,_covers:null,_moreForward:null,focusMode:sa(st.mode,"balanced",i=>i==="stage"||i==="debug"?i:"balanced"),allowedModes:[...lu],selectedEventId:null,selectionRange:null,zoomStack:[],laneState:Pk(),hover:null,snap:sa(st.snap,!0,i=>i==="true"),feedFilter:"all",paletteOpen:!1,toRelative:i=>{let l=i-n().offset;return Math.max(0,Math.min(n().durationMs,l))},play:()=>{let i=n();if(i.status==="error")return;i.clipEnd!=null&&i.currentTime>=i.clipEnd&&r({clipStart:null,clipEnd:null,clipLoop:!1});let l=i.clipEnd==null&&i.currentTime>=i.durationMs-20?0:i.currentTime;i.controller?i.controller.play(l):(l===0&&r({currentTime:0}),o()),r({status:"playing"})},pause:()=>{let i=n();i.controller?i.controller.pause():a(),r({status:"paused"})},toggle:()=>n().status==="playing"?n().pause():n().play(),restart:()=>{n().seek(0),n().play()},seek:i=>{let l=n(),d=Math.max(0,Math.min(l.durationMs,i)),u=l._covers?l._covers(d):d<=l.bufferedMs+1;!l.controller||u?(l.controller&&l.controller.seek(d),r({currentTime:d,pendingSeek:null,status:l.status==="ended"||l.status==="buffering"?"paused":l.status,following:!1})):r({currentTime:d,pendingSeek:d,status:"buffering",following:!1})},step:i=>{let l=n(),d=l.controller?.mutationTimes??[];if(!d.length){n().seek(l.currentTime+i*200);return}let u=l.currentTime,p=i>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},jumpEvent:i=>{let l=n(),d=l.markers.map(c=>l.toRelative(c.t)).sort((c,f)=>c-f);if(!d.length)return;let u=l.currentTime,p=i>0?d.find(c=>c>u+1):[...d].reverse().find(c=>c<u-1);p!=null&&n().seek(p)},setSpeed:i=>{n().controller?.setSpeed(i),Xr(st.speed,String(i)),r({speed:i})},setPanel:i=>r({activePanel:i}),setAutoSkip:i=>{n().controller?.setAutoSkip(i),Xr(st.autoSkip,String(i)),i&&n().autoSkim&&(n().controller?.setAutoSkim(!1),Xr(st.autoSkim,"false"),r({autoSkim:!1,isSkimming:!1})),r({autoSkip:i,isSkipping:i?n().isSkipping:!1})},setAutoSkim:i=>{n().controller?.setAutoSkim(i),Xr(st.autoSkim,String(i)),i&&n().autoSkip&&(n().controller?.setAutoSkip(!1),Xr(st.autoSkip,"false"),r({autoSkip:!1,isSkipping:!1})),r({autoSkim:i,isSkimming:i?n().isSkimming:!1})},setLoop:i=>r({loop:i}),setClip:(i,l,d=!1)=>r({clipStart:i,clipEnd:l,clipLoop:d}),setAutoplayNext:i=>r({autoplayNext:i}),setShowCursor:i=>{n().controller?.setShowCursor(i),Xr(st.showCursor,String(i)),r({showCursor:i})},setFollowing:i=>{let l=n();i&&l.controller&&(l.controller.seek(l.durationMs),r({currentTime:l.durationMs})),r({following:i})},setFocusMode:i=>{n().allowedModes.includes(i)&&(Xr(st.mode,i),r({focusMode:i}))},setAllowedModes:i=>{let l=rm(i),d=l.includes(n().focusMode)?n().focusMode:l[0];r({allowedModes:l,focusMode:d})},select:i=>{if(r({selectedEventId:i}),i!=null){let l=s(i);l!=null&&n().seek(n().toRelative(l))}},selectAndSeek:i=>{let l=s(i);r({selectedEventId:i}),l!=null&&n().seek(n().toRelative(l))},brush:(i,l)=>{if(l==null){r({selectionRange:null});return}let d=Math.min(i,l),u=Math.max(i,l);r({selectionRange:[d,u]})},zoomTo:(i,l)=>{let d=n(),u=Math.max(0,Math.min(i,l)),p=Math.min(d.offset+d.durationMs,Math.max(i,l));p-u<50||r({zoomStack:[...d.zoomStack,[u,p]]})},zoomOutTo:i=>{let l=n();r({zoomStack:l.zoomStack.slice(0,Math.max(0,i))})},setHover:i=>r({hover:i==null?null:{t:i}}),toggleSnap:()=>{let i=!n().snap;Xr(st.snap,String(i)),r({snap:i})},toggleLane:(i,l)=>{let d=n(),u=d.laneState[i],p={...d.laneState,[i]:{...u,[l]:!u[l]}};Xr(st.laneState,JSON.stringify(p)),r({laneState:p})},setFeedFilter:i=>r({feedFilter:i}),nextProblem:i=>{let l=n(),d={error:5,network:4,rage:3,dead:2,nav:1,conversion:1,ai:0},u=l.markers.filter(f=>(d[f.kind]??0)>=2).map(f=>({rel:l.toRelative(f.t),m:f})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=l.currentTime,c=i>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.m.ref}),n().seek(c.rel))},walkLane:(i,l)=>{let d=n(),u=d.events.filter(f=>Tk(i,f)).map(f=>({rel:d.toRelative(f.t),id:f.id})).sort((f,h)=>f.rel-h.rel);if(!u.length)return;let p=d.currentTime,c=l>0?u.find(f=>f.rel>p+1):[...u].reverse().find(f=>f.rel<p-1);c&&(r({selectedEventId:c.id}),n().seek(c.rel))},openPalette:i=>r({paletteOpen:i}),rewindToCause:i=>{let l=n(),d=s(i);if(d==null)return;let u=l.toRelative(d);n().seek(Math.max(0,u-5e3))},_attachController:i=>{let l=n().durationMs;r({controller:i,durationMs:Math.max(l,i.meta.totalTime),bufferedMs:i.meta.totalTime,status:"paused"})},_detachController:()=>{a();let i=n().controller;i&&i.destroy(),r({controller:null})},_setLoaderProbes:(i,l)=>r({_covers:i,_moreForward:l}),_onTime:i=>{let l=n();if(l.clipEnd!=null&&i>=l.clipEnd&&l.status==="playing"){l.clipLoop?n().seek(l.clipStart??0):(l.controller?l.controller.pause(l.clipEnd):a(),r({currentTime:l.clipEnd,status:"paused"}));return}r({currentTime:i})},_onSkip:i=>{r({isSkipping:!0,lastSkipMs:i}),t&&clearTimeout(t),t=setTimeout(()=>r({isSkipping:!1}),1100)},_onFinish:()=>{let i=n();i.live&&i.following?r({status:"paused",currentTime:i.durationMs}):i.clipEnd!=null&&i.currentTime>=i.clipEnd-1?i.clipLoop?(n().seek(i.clipStart??0),n().play()):(a(),r({currentTime:i.clipEnd,status:"paused"})):i.controller&&(i._moreForward?i._moreForward(i.currentTime):i.currentTime<i.durationMs-1)?r({status:"buffering"}):i.loop?n().restart():(a(),r({status:"ended"}))},_setData:i=>r(i)}})}function Tk(e,t){switch(e){case"network":return t.type==="network";case"error":return t.type==="error"||t.type==="console"&&t.level==="error";case"console":return t.type==="console";case"vitals":return t.type==="perf";case"task":return t.type==="custom"&&/^(.+):(started|ended)$/.test(t.name??"");case"interaction":return t.type==="custom"&&!/^(.+):(started|ended)$/.test(t.name??"")&&!["_tag","identify","metadata","_click","_scroll"].includes(t.name??"");case"chapters":return t.type==="custom"&&["navigation","pageview"].includes(t.name??"");default:return!1}}var p0=(0,hu.createContext)(null);function Ak({store:e,children:t}){return(0,f0.jsx)(p0.Provider,{value:e,children:t})}function nm(){let e=(0,hu.useContext)(p0);if(!e)throw new Error("usePlayer must be used within <ReplayPlayer>");return e}function M(e){return nv(nm(),e)}var h0=(0,gu.createContext)(null);function Dk({value:e,children:t}){return(0,m0.jsx)(h0.Provider,{value:e,children:t})}function Ok(){return(0,gu.useContext)(h0)}async function*Fk(e,t,r,n){let a={"content-type":"application/json"};t.token?a.authorization=`Bearer ${t.token}`:t.apiKey&&(a.authorization=`Bearer ${t.apiKey}`,a["x-obsrviq-key"]=t.apiKey);let o=await fetch(e,{method:"POST",headers:a,body:JSON.stringify(r),signal:n});if(!o.ok||!o.body)throw new Error(`${o.status} ${o.statusText}`);let s=o.body.getReader(),i=new TextDecoder,l="";for(;;){let{done:d,value:u}=await s.read();if(d)break;l+=i.decode(u,{stream:!0});let p=l.split(`
137
137
 
138
- `);l=f.pop()??"";for(let c of f){let p=c.trim();if(!p.startsWith("data:"))continue;let h=p.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Fk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),a=await Kr(`${r}/v1/sessions/${e}`,t),n=await Kr(`${r}/v1/sessions/${e}/events`,t);return{detail:a,events:n.items}}async function jp(e,t){return(await Kr(e,t)).slice().sort((a,n)=>a.timestamp-n.timestamp)}function Bk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Kr(e,t){let r=await fetch(e,{headers:Bk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function zk(e,t,r){let a=t.apiBaseUrl.replace(/\/$/,""),n=await Kr(`${a}/v1/sessions/${e}`,t),o=await Kr(`${a}/v1/sessions/${e}/events`,t),i=[...n.replayChunks].sort((u,f)=>u.seq-f.seq),s=0,d=(await Promise.allSettled(i.map(async u=>{let f=await Kr(u.url,t);return r?.(++s,i.length),f}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,f)=>u.timestamp-f.timestamp);return{detail:n,events:o.items,rrwebEvents:d}}async function Uk(e,t,r,a){let n=t.apiBaseUrl.replace(/\/$/,""),o=await Kr(`${n}/v1/sessions/${e}`,t),i=o.replayChunks.filter(c=>c.seq>r).sort((c,p)=>c.seq-p.seq),s=r,d=(await Promise.allSettled(i.map(async c=>{let p=await Kr(c.url,t);return c.seq>s&&(s=c.seq),p}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,p)=>c.timestamp-p.timestamp),f=(await Kr(`${n}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>a);return{summary:o.summary,newRrwebEvents:d,newEvents:f,maxSeq:s}}var qk=2e3;function Os(e){let t=[];for(let r of e){let a=null,n="";switch(r.type){case"error":{a="error",n=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(a="error",n=$k(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>qk)&&(a="network",n=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")a="rage",n=`Rage click ${Gw(o)}`;else if(o.name==="dead_click")a="dead",n=`Dead click ${Gw(o)}`;else if(o.props&&o.props.conversion===!0)a="conversion",n=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")a="nav",n="Page change";else{let i=/^(.+):started$/.exec(o.name??""),s=/^(.+):ended$/.exec(o.name??"");i?(a="task",n=`Task: ${o.props?.task??i[1]}`):s&&(a="task",n=`Task ended: ${o.props?.task??s[1]}`)}break}case"ai":{a="ai",n="AI step";break}}a&&t.push({kind:a,t:r.t,label:n,ref:r.id})}return t.sort((r,a)=>r.t-a.t)}function $k(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function Gw(e){return e.props?.selector??""}var Xw="#6e76f1",Hk=8,Wk=2500,jk=1200,Vk=600,Gk=400,Kw=250,Xk=class{constructor(e,t,r,a){this.root=e,this.cb=a,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new Wl(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:Xw}:!1,UNSAFE_replayCanvas:!1});let n=this.replayer.getMetaData();this.meta={startTime:n.startTime,endTime:n.endTime,totalTime:n.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-n.startTime).filter(o=>o>=0).sort((o,i)=>o-i),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let a=r.timestamp-this.meta.startTime;a>=0&&(this.mutationTimes.push(a),t=!0)}}return t&&(this.mutationTimes.sort((r,a)=>r-a),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let a=e[r],n=e[r+1];n-a>=Wk&&t.push({start:a,end:n})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=jk&&t.end-e>Vk;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<Gk||t.end-e<=Kw+50||t.end>this.meta.totalTime)return;let r=t.end-Kw,a=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(a)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Hk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,a=Number(e.getAttribute("height"))||e.offsetHeight,n=this.root.clientWidth,o=this.root.clientHeight;if(!r||!a||!n||!o)return;let i=Math.min(n/r,o/a,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${i})`,t.style.left=`${Math.max(0,(n-r*i)/2)}px`,t.style.top=`${Math.max(0,(o-a*i)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:Xw}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function ne(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,a=Math.floor(t/60)%60,n=Math.floor(t/3600),o=i=>String(i).padStart(2,"0");return n>0?`${n}:${o(a)}:${o(r)}`:`${a}:${o(r)}`}function Kk(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function cu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function Qk(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let a=Math.floor(r/60),n=r%60;return n?`${a}m ${n}s`:`${a}m`}var Yk=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function Jk(){let e=_(n=>n.focusMode),t=_(n=>n.setFocusMode),r=_(n=>n.allowedModes),a=Yk.filter(n=>r.includes(n.id));return a.length<=1?null:(0,Bs.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:a.map(n=>(0,Bs.jsxs)("button",{className:`lum-st-focus__pill ${e===n.id?"is-active":""}`,"aria-pressed":e===n.id,title:n.key?`${n.hint} (${n.key})`:n.hint,onClick:()=>t(n.id),children:[n.label,n.key&&(0,Bs.jsx)("kbd",{className:"lum-st-focus__key",children:n.key})]},n.id))})}async function pS(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var mS=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function hS(e){let{sessionId:t,shareUrl:r,apiBaseUrl:a}=e,n=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),n);let i=new URL(r,n);return i.pathname=`${i.pathname.replace(/\/+$/,"")}/sessions/${t}`,i}catch{}try{let i=new URL(window.location.href);if(t&&i.pathname.includes(t))return i}catch{}let o;try{o=new URL(a,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function Zk({sessionId:e,shareUrl:t,apiBaseUrl:r}){let a=em(),n=_(d=>d.status),[o,i]=(0,It.useState)(null),s=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(s.current),[]);async function l(){let d=a.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),f;try{let c=hS({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let p of["focus","sel","live",...mS])c.searchParams.delete(p);f=c.toString()}catch{return}await pS(f)&&(i(ne(u)),clearTimeout(s.current),s.current=setTimeout(()=>i(null),2e3))}return(0,$.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:l,disabled:n==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,$.jsx)(Zn,{size:13,"aria-hidden":!0}):(0,$.jsx)(ba,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function eI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let a=em(),n=_(w=>w.status),[o,i]=(0,It.useState)(!1),[s,l]=(0,It.useState)(null),[d,u]=(0,It.useState)(null),[f,c]=(0,It.useState)(!1),[p,h]=(0,It.useState)(!1),m=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(m.current),[]);let S=()=>{let w=a.getState();return Math.max(0,Math.round(w.currentTime+w.offset))},g=s!=null&&d!=null&&d>s;function x(){let w=s,y=d;if(w==null||y==null||y<=w)return;let L=a.getState(),C=L.toRelative(w),M=L.toRelative(y);M<=C||(L.setClip(C,M,f),L.seek(C),L.play())}async function v(){let w=s,y=d;if(w==null||y==null||y<=w)return;let L;try{let C=hS({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let M of["event","t","focus","sel","live",...mS])C.searchParams.delete(M);C.searchParams.set("clipFromMs",String(w)),C.searchParams.set("clipToMs",String(y)),f&&C.searchParams.set("clipLoop","1"),L=C.toString()}catch{return}await pS(L)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function b(){l(null),u(null),a.getState().setClip(null,null)}return(0,$.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,$.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>i(w=>!w),disabled:n==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,$.jsx)(_s,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:"Clip"})]}),o&&(0,$.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:s!=null?ne(s):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>l(S()),children:"Set to playhead"})]}),(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?ne(d):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(S()),children:"Set to playhead"})]}),(0,$.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,$.jsx)("input",{type:"checkbox",checked:f,onChange:w=>c(w.target.checked)}),"Loop the clip"]}),(0,$.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,$.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,$.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,$.jsx)(tn,{size:12,"aria-hidden":!0})," Play clip"]}),(0,$.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[p?(0,$.jsx)(Zn,{size:12,"aria-hidden":!0}):(0,$.jsx)(ba,{size:12,"aria-hidden":!0}),p?"Copied":"Copy clip link"]}),(0,$.jsx)("button",{className:"lum-st-clippop__clear",onClick:b,"aria-label":"Clear clip",children:(0,$.jsx)(rn,{size:12,"aria-hidden":!0})})]})]})]})}function tI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:a,shareUrl:n,apiBaseUrl:o,onHelp:i,onBack:s,backLabel:l,topbarActions:d}){let u=_(M=>M.summary),f=_(M=>M.durationMs),c=_(M=>M.events),p=_(M=>M.openPalette),h=_(M=>M.status),m=_(M=>M.live),S=_(M=>M.following),g=_(M=>M.setFollowing),x=(0,It.useMemo)(()=>{let M=0,I=0,D=0,A=0;for(let k of c)if(k.type==="error")M++;else if(k.type==="console"&&k.level==="error")M++;else if(k.type==="network"){let ke=k;(ke.status>=400||ke.status===0)&&I++}else if(k.type==="custom"){let ke=k;ke.name==="rage_click"&&D++,ke.props&&ke.props.conversion===!0&&A++}return{errors:M,netFail:I,rage:D,conversions:A}},[c]),v=u?.conversionNames??[],b=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,w=u?.customSignals??[],y=u?.device,L=u?.id??"\u2014",C=h==="loading";return(0,$.jsxs)("header",{className:"lum-st-topbar",children:[(0,$.jsxs)("div",{className:"lum-st-topbar__left",children:[s&&(0,$.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:s,"aria-label":l??"Back",title:l??"Back",children:(0,$.jsx)(Qa,{size:17})}),(0,$.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,$.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,$.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,$.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(L),children:String(L).slice(0,8)}),y&&(0,$.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[y.type,y.browser?` \xB7 ${y.browser}`:""]}),u?.userId&&(0,$.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,$.jsx)(Ns,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,$.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:C?"\u2014":ne(f)}),m&&(S?(0,$.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,$.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",C?"\u2014":x.errors]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",C?"\u2014":x.netFail]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",C?"\u2014":x.rage]}),!C&&x.conversions>0&&(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:b,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!C&&w.map(M=>(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${M}`,children:["\u2756 ",M]},M))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,$.jsx)(eI,{sessionId:a,shareUrl:n,apiBaseUrl:o}),!m&&(0,$.jsx)(Zk,{sessionId:a,shareUrl:n,apiBaseUrl:o}),(0,$.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>p(!0),title:"Command palette (\u2318K)",children:[(0,$.jsx)(xs,{size:13}),(0,$.jsx)("span",{children:"K"})]}),(0,$.jsx)(Jk,{}),(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:i,title:"Shortcuts (?)",children:(0,$.jsx)(ws,{size:16})}),r&&(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,$.jsx)(en,{size:16}):(0,$.jsx)(Za,{size:16})})]})]})}var rI=8e3;function aI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function tm(e,t){if(!e.length)return[];let r=[...e].sort((s,l)=>s.t-l.t),a=new Set([0]),n=0;for(let s of r)s.t-n>rI&&a.add(s.t),(s.type==="custom"&&["navigation","pageview"].includes(s.name)||s.type==="perf"&&s.metric==="navigation")&&a.add(s.t),n=s.t;let o=[...a].sort((s,l)=>s-l);o.push(Math.max(t,n)+1);let i=[];for(let s=0;s<o.length-1;s++){let l=o[s],d=o[s+1],u=r.filter(x=>x.t>=l&&x.t<d),f={errors:0,network:0,rage:0,dead:0,conversion:0},c="",p=u.length===0;for(let x of u)if(x.type==="error")f.errors++;else if(x.type==="console"&&x.level==="error")f.errors++;else if(x.type==="network"){f.network++;let v=x;(v.status===0||v.status>=400)&&f.errors++,v.url&&(c=v.url)}else if(x.type==="custom"){let v=x;v.name==="rage_click"?f.rage++:v.name==="dead_click"&&f.dead++,v.props&&v.props.conversion===!0&&f.conversion++}let h,m;s===0?(h="start",m="Session start"):f.conversion>0?(h="conversion",m="Converted"):f.errors>0?(h="error",m="Hit an error"):f.rage>0||f.dead>0?(h="frustration",m="Got stuck"):p?(h="idle",m="Paused"):f.network>3?(h="load",m="Loaded data"):(h="browse",m=c?`Browsed ${aI(c)}`:"Browsing");let S=[];f.errors&&S.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&S.push(`${f.rage} rage`),f.network&&S.push(`${f.network} request${f.network>1?"s":""}`);let g=S.join(" \xB7 ")||`${Math.round((d-l)/1e3)}s`;i.push({id:`ch_${s}`,startT:l,endT:d,kind:h,title:m,subtitle:g,counts:f})}return i}function nI(){let e=_(h=>h.events),t=_(h=>h.markers),r=_(h=>h.durationMs),a=_(h=>h.offset),n=_(h=>h.summary),o=_(h=>h.seek),i=_(h=>h.select),s=_(h=>h.toRelative),[l,d]=(0,gu.useState)(!1),{text:u,clauses:f}=(0,gu.useMemo)(()=>{let h=n?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(L=>({text:L.text,t:L.t,ref:L.ref}))};if(!e.length)return{text:"",clauses:[]};let m=tm(e,r+a),S=[],g=t.find(L=>L.kind==="rage"),x=t.find(L=>L.kind==="error"),v=t.find(L=>L.kind==="network"),b=t.find(L=>L.kind==="conversion"),w=[];x&&(w.push("Hit an error"),S.push({text:`error @ ${ne(s(x.t))}`,t:s(x.t),ref:x.ref})),v&&(w.push("a failed request"),S.push({text:`request @ ${ne(s(v.t))}`,t:s(v.t),ref:v.ref})),g&&(w.push("rage-clicked while stuck"),S.push({text:`rage @ ${ne(s(g.t))}`,t:s(g.t),ref:g.ref})),b&&(w.push("then converted"),S.push({text:`conversion @ ${ne(s(b.t))}`,t:s(b.t),ref:b.ref}));let y;if(w.length?y=`This visitor ${w.join(", ")}.`:m.length>1?y=`Calm session: ${m.slice(0,3).map(C=>C.title.toLowerCase()).join(" \u2192 ")}.`:y="",S.length<2)for(let L of m.slice(1,4))S.push({text:`${L.title} ${ne(s(L.startT))}`,t:s(L.startT)});return{text:y,clauses:S}},[e,t,r,a,s,n]);if(!u&&!n)return(0,Dt.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Dt.jsx)(Zt,{size:13,"aria-hidden":!0})," ",(0,Dt.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",p=c.length>90;return(0,Dt.jsxs)("div",{className:`lum-st-synopsis ${l?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Dt.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Dt.jsx)(Zt,{size:13})}),(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:p?c:void 0,onClick:p?()=>d(h=>!h):void 0,"aria-expanded":p?l:void 0,children:c}),p&&(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":l?"Collapse summary":"Read full summary",title:l?"Collapse":"Read full summary",children:l?(0,Dt.jsx)(gs,{size:14}):(0,Dt.jsx)(Ka,{size:14})}),(0,Dt.jsx)("span",{className:"lum-st-synopsis__chips",children:f.map((h,m)=>(0,Dt.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?i(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var oI=(0,gS.forwardRef)(function({onRetry:t,overlay:r},a){let n=_(c=>c.status),o=_(c=>c.hasReplay),i=_(c=>c.error),s=_(c=>c.loadProgress),l=_(c=>!!c.controller),d=_(c=>c.isSkimming),u=_(c=>c.isSkipping),f=_(c=>c.lastSkipMs);return(0,Ne.jsxs)("div",{className:"lum-st-monitor",children:[(0,Ne.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Ne.jsx)("div",{ref:a,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Ne.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Ne.jsx)(an,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Ne.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Ne.jsx)(Ja,{size:13,"aria-hidden":!0})," Skipped idle (",Qk(f),")"]}),(0,Ne.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),n==="loading"&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsxs)("div",{className:"lum-pl-loading",children:[(0,Ne.jsx)(Wc,{width:"70%",height:18}),(0,Ne.jsx)(Wc,{width:"90%",height:120}),(0,Ne.jsx)("div",{className:"lum-pl-progress",children:(0,Ne.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(s*100)}%`}})}),(0,Ne.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),n==="buffering"&&o&&l&&(0,Ne.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Ne.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Ne.jsx)("span",{children:"Buffering\u2026"})]}),n==="error"&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsx)(Yx,{title:"We couldn't load this replay.",action:t?(0,Ne.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:i??"View the console and network logs instead."})}),n!=="loading"&&n!=="error"&&!o&&(0,Ne.jsx)("div",{className:"lum-pl-overlay",children:(0,Ne.jsx)(Jt,{title:"This session wasn't recorded for replay.",icon:(0,Ne.jsx)(bs,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function sI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",a=/scale\(([0-9.]+)\)/.exec(r),n=a?parseFloat(a[1]):1,o=parseFloat(t.style.left||"0")||0,i=parseFloat(t.style.top||"0")||0;return{scale:n,left:o,top:i}}catch{return{scale:1,left:0,top:0}}}function iI(e,t,r,a){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:n,left:o,top:i}=sI(e);return{x:o+r*n,y:i+a*n,ok:!0}}function lI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function uI({stageRef:e}){let t=_(u=>u.controller),r=_(u=>u.currentTime),a=_(u=>u.events),n=_(u=>u.offset),o=(0,xS.useMemo)(()=>{let u=r+n,f=null,c=700;for(let p of a){let h=Math.abs(p.t-u);h>c||(p.type==="custom"&&p.name==="rage_click"?(f={kind:"rage",props:p.props},c=h):p.type==="error"&&(f={kind:"error"},c=h))}return f},[a,r,n]);if(!o)return null;let i=lI(o.props),s=i?iI(t,e.current,i.x,i.y):null,d=s?.ok?{left:`${s.x}px`,top:`${s.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,lu.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,lu.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,lu.jsx)("span",{className:"lum-st-callout__ring"})})})}function dI(e){let t=_(a=>a.currentTime),r=-1;for(let a=0;a<e.length&&e[a]<=t+1;a++)r=a;return r}function cI(e,t){let r=(0,xu.useRef)(null);return(0,xu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function yS(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function wS(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function fI({n:e,relStart:t}){let[r,a]=(0,vS.useState)("headers"),n=["headers","payload","response","timing"];return(0,J.jsxs)("div",{className:"lum-pl-detail",children:[(0,J.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,J.jsx)(qn,{tone:yS(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,J.jsxs)("span",{className:"lum-muted",children:["@ ",ne(t)]}),(0,J.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,J.jsx)("div",{className:"lum-pl-tabs2",children:n.map(o=>(0,J.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>a(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,J.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,J.jsx)("h5",{children:"General"}),(0,J.jsx)(ou,{k:"URL",v:e.url}),(0,J.jsx)(ou,{k:"Method",v:e.method}),(0,J.jsx)(ou,{k:"Status",v:String(e.status)}),(0,J.jsx)(ou,{k:"Initiator",v:e.initiator}),(0,J.jsx)("h5",{children:"Request headers"}),Qw(e.requestHeaders),(0,J.jsx)("h5",{children:"Response headers"}),Qw(e.responseHeaders)]}),r==="payload"&&(0,J.jsx)(Yw,{label:"Request body",body:e.requestBody}),r==="response"&&(0,J.jsx)(Yw,{label:"Response",body:e.responseBody}),r==="timing"&&(0,J.jsx)(pI,{n:e})]})}function ou({k:e,v:t}){return(0,J.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:e}),(0,J.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function Qw(e){return!e||Object.keys(e).length===0?(0,J.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,J.jsx)(J.Fragment,{children:Object.entries(e).map(([t,r])=>(0,J.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:t}),(0,J.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,J.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function Yw({label:e,body:t}){return t?(0,J.jsxs)("div",{children:[(0,J.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),t.redacted&&(0,J.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,J.jsxs)("pre",{className:"lum-pl-json",children:[mI(t.preview),t.truncated?`
139
- \u2026 (truncated)`:""]})]}):(0,J.jsx)("div",{className:"lum-muted",children:"Bodies aren't captured by default (privacy). Enable captureNetworkBodies to see them."})}function pI({n:e}){let t=e.timing,r=[["DNS",t.dns],["TCP",t.tcp],["TLS",t.tls],["TTFB",t.ttfb],["Download",t.download]],a=t.duration||1;return(0,J.jsxs)("div",{className:"lum-pl-timing",children:[r.map(([n,o])=>(0,J.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:n}),(0,J.jsx)("div",{className:"lum-pl-timing__bar",children:(0,J.jsx)("span",{style:{width:`${Math.min(100,(o??0)/a*100)}%`}})}),(0,J.jsx)("span",{className:"lum-mono",children:cu(o)})]},n)),(0,J.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,J.jsx)("span",{className:"lum-muted",children:"Total"}),(0,J.jsx)("div",{}),(0,J.jsx)("span",{className:"lum-mono",children:cu(t.duration)})]})]})}function mI(e){if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function hI({ev:e}){let t=_(s=>s.events),r=_(s=>s.rewindToCause),a=_(s=>s.selectAndSeek),n=_(s=>s.toRelative),o=(0,SS.useMemo)(()=>{let s=null;for(let l of t)l.t>e.t||l.t<e.t-4e3||(l.type==="network"||l.type==="custom"&&["rage_click","dead_click","click"].includes(l.name??""))&&(!s||l.t>s.t)&&(s=l);return s},[t,e]),i=s=>{if(s.type==="network"){let d=s;return`${d.method} ${d.url} \xB7 ${d.status||"failed"}`}let l=s;return`${l.name??"interaction"} ${l.props?.selector??""}`};return(0,et.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,et.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,et.jsx)(qn,{tone:"error",children:e.name})," ",(0,et.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ne(n(e.t))]}),(0,et.jsx)("div",{className:"lum-st-err__msg lum-mono",children:e.message})]}),(0,et.jsxs)("div",{className:"lum-st-inspactions",children:[(0,et.jsxs)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:()=>r(e.id),children:[(0,et.jsx)(Is,{size:13})," Rewind 5s"]}),o&&(0,et.jsxs)("button",{className:"lum-btn lum-btn--ghost lum-btn--sm",onClick:()=>a(o.id),children:[(0,et.jsx)(ba,{size:13})," Likely cause"]})]}),o&&(0,et.jsxs)("div",{className:"lum-st-cause lum-mono",children:[(0,et.jsx)("span",{className:"lum-muted",children:"caused by \u2192"})," ",i(o)," ",(0,et.jsxs)("span",{className:"lum-muted",children:["@ ",ne(n(o.t))]})]}),(0,et.jsx)("h5",{className:"lum-st-detail__h",children:"Stack trace"}),e.stack?(0,et.jsx)("pre",{className:"lum-pl-stack",children:e.stack}):(0,et.jsx)("div",{className:"lum-muted",children:"No stack captured."}),e.source?.url&&(0,et.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}var gI={error:{color:"var(--lum-error)",glyph:"\u2715"},warn:{color:"var(--lum-warn)",glyph:"\u26A0"},info:{color:"var(--lum-info)",glyph:"\u2139"},log:{color:"var(--lum-muted)",glyph:"\u203A"},debug:{color:"var(--lum-muted)",glyph:"\xB7"}};function xI({ev:e}){let[t,r]=(0,bS.useState)(!1),a=gI[e.level];return(0,Xe.jsxs)("div",{className:`lum-pl-row lum-pl-row--console lum-pl-row--${e.level}`,style:{borderBottom:"none"},children:[(0,Xe.jsx)("span",{className:"lum-pl-row__lvl",style:{color:a.color},"aria-hidden":!0,children:a.glyph}),(0,Xe.jsx)("span",{}),(0,Xe.jsxs)("div",{className:"lum-pl-row__msg lum-mono",children:[e.args.map((n,o)=>(0,Xe.jsx)(vI,{arg:n,expanded:t,onToggle:()=>r(i=>!i),search:""},o)),e.level==="error"&&e.stack&&(0,Xe.jsx)("pre",{className:"lum-pl-stack",children:e.stack})]}),e.source?.url&&(0,Xe.jsxs)("span",{className:"lum-pl-row__src lum-muted",title:e.source.url,children:[wI(e.source.url),":",e.source.line]})]})}function vI({arg:e,expanded:t,onToggle:r,search:a}){switch(e.kind){case"primitive":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--prim",children:[String(e.value)," "]});case"string":return(0,Xe.jsxs)("span",{className:"lum-pl-arg",children:[SI(e.value,a),e.truncated?"\u2026":""," "]});case"error":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--err",children:[e.name,": ",e.message," "]});case"dom":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--dom",children:[e.selector," "]});case"object":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--obj",children:[(0,Xe.jsxs)("button",{className:"lum-pl-arg__toggle",onClick:r,children:[t?"\u25BE":"\u25B8"," ",e.preview]}),t&&e.json&&(0,Xe.jsx)("pre",{className:"lum-pl-json",children:yI(e.json)})," "]});default:return null}}function yI(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function wI(e){try{return new URL(e).pathname.split("/").pop()||e}catch{return e.split("/").pop()||e}}function SI(e,t){if(!t)return e;let r=e.toLowerCase().indexOf(t.toLowerCase());return r<0?e:(0,Xe.jsxs)(Xe.Fragment,{children:[e.slice(0,r),(0,Xe.jsx)("mark",{className:"lum-pl-mark",children:e.slice(r,r+t.length)}),e.slice(r+t.length)]})}function bI({ev:e}){let t=_(a=>a.toRelative),r=e.level==="error"?"error":e.level==="warn"?"warn":"info";return(0,Ca.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,Ca.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Ca.jsx)(qn,{tone:r,children:e.level})," ",(0,Ca.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ne(t(e.t))]})]}),(0,Ca.jsx)(xI,{ev:e}),e.source?.url&&(0,Ca.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}function CI(){let e=_(n=>n.controller),t=_(n=>n.currentTime),[r,a]=(0,vu.useState)("");return(0,vu.useEffect)(()=>{let o=e?.replayer.iframe?.contentDocument;if(!o?.body){a("");return}a(CS(o.body,0).slice(0,2e4))},[e,t]),e?(0,Fs.jsx)("div",{className:"lum-pl-panel lum-pl-rows",children:(0,Fs.jsx)("pre",{className:"lum-pl-inspector lum-mono",children:r||"Reading DOM\u2026"})}):(0,Fs.jsx)(Jt,{title:"No replay",children:"The DOM inspector needs replay data."})}function CS(e,t){if(t>6)return"";let r=" ".repeat(t),a=e.tagName.toLowerCase(),n=e.id?`#${e.id}`:"",o=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"",i=`${r}<${a}${n}${o}>
140
- `,s=Array.from(e.children).slice(0,30);for(let l of s)i+=CS(l,t+1);return i}function LI(){return(0,Fs.jsx)(Jt,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function kI(){return(0,Kp.jsx)("div",{className:"lum-st-inspbody",children:(0,Kp.jsx)(CI,{})})}function II(){return(0,Qp.jsx)("div",{className:"lum-st-inspbody",children:(0,Qp.jsx)(LI,{})})}var LS=/^(.+):(started|ended)$/;function MI(e){return LS.test(e)}function _I(e){let t=new Map,r=[];for(let a of e){if(a.type!=="custom")continue;let n=a,o=n.props??{};if(o.conversion===!0)continue;let i=LS.exec(n.name);if(!i)continue;let s=typeof o.task=="string"&&o.task?o.task:i[1],l=o.spanId!=null?String(o.spanId):`${s}@${a.t}`,d=t.get(l);d||(d={spanId:l,task:s},t.set(l,d),r.push(l)),i[2]==="started"?(d.startT=a.t,d.startEvent=n):(d.endT=a.t,d.endEvent=n)}return r.map(a=>t.get(a))}function RI(e){let t=e.startT!=null,r=e.endT!=null,a=t?e.startT:e.endT??0,n=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,i=n!=null?cu(n):t?"running\u2026":"ended (no start)";return{id:o.id,t:a,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:i,durationMs:n,spanId:e.spanId,running:t&&!r,raw:o}}function EI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Vp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var PI=new Set(["_tag","identify","metadata"]);function rm(e){let t=[];for(let r of _I(e))t.push(RI(r));for(let r of e)switch(r.type){case"console":{let a=r,n=a.level==="error"?"error":a.level==="warn"?"warn":a.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:n,title:EI(a),subtitle:a.source?.url?`${Vp(a.source.url)}:${a.source.line??""}`:void 0,raw:r});break}case"network":{let a=r,n=a.status===0||a.status>=400,o=a.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:n?"error":o?"warn":a.ok?"ok":"muted",title:`${a.method} ${Vp(a.url)}`,subtitle:`${a.status||a.error||"failed"} \xB7 ${Math.round(a.timing?.duration??0)}ms`,durationMs:a.timing?.duration,raw:r});break}case"error":{let a=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${a.name}: ${a.message}`,subtitle:a.source?.url?`${Vp(a.source.url)}:${a.source.line??""}`:void 0,raw:r});break}case"perf":{let a=r;if(a.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let a=r;if(!!!(a.props&&a.props.conversion===!0)&&(MI(a.name)||PI.has(a.name)))break;a.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:Jw(a),raw:r}):a.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:Jw(a),raw:r}):a.name==="navigation"||a.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):a.props&&a.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${a.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:a.name,raw:r});break}default:break}return t.sort((r,a)=>r.t-a.t)}function Jw(e){return e.props?.selector??""}function TI(e,t,r){let a=e[e.length-1];return a||[t,r]}function Yp(e,t,r){let[a,n]=t,o=n-a;return o<=0?0:(e-a)/o*r}function kS(e,t,r){let[a,n]=t,o=n-a;return r<=0?a:a+e/r*o}function fu(e,t){let[r,a]=t,n=a-r;return n<=0?0:Math.max(0,Math.min(1,(e-r)/n))}function NI(e,t,r,a,n,o=200){let[i,s]=e,l=s-i,d=Math.max(o,Math.min(n-a,l*r)),u=l>0?(t-i)/l:.5,f=t-u*d,c=f+d;return f<a&&(f=a,c=f+d),c>n&&(c=n,f=c-d),f=Math.max(a,f),c=Math.min(n,c),c-f>=n-a-1?null:[f,c]}function AI(){let e=(0,ka.useRef)(null),[t,r]=(0,ka.useState)(0);return(0,ka.useEffect)(()=>{let a=e.current;if(!a)return;let n=new ResizeObserver(()=>r(a.clientWidth));return n.observe(a),r(a.clientWidth),()=>n.disconnect()},[]),{ref:e,width:t}}function IS(){let e=_(a=>a.offset),t=_(a=>a.durationMs),r=_(a=>a.zoomStack);return(0,ka.useMemo)(()=>TI(r,e,e+t),[r,e,t])}var Zw=28,Gp=150,DI=6e4;function OI(e){let t=e.timing.duration||0,{dns:r=0,tcp:a=0,tls:n=0,ttfb:o=0,download:i=0}=e.timing,s=r+a+n+o+i;return t<=0||s<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-s)},{cls:"dns",ms:r},{cls:"connect",ms:a},{cls:"ssl",ms:n},{cls:"wait",ms:o},{cls:"download",ms:i}].filter(d=>d.ms>0)}function FI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),a=t/1e3/r;return(a>=5?5:a>=2?2:1)*r*1e3}function BI(){let e=_(C=>C.events),t=_(C=>C.offset),r=_(C=>C.toRelative),a=_(C=>C.selectAndSeek),n=_(C=>C.selectedEventId),o=_(C=>C.zoomStack),i=IS(),s=(0,Ke.useRef)(null),l=(0,Ke.useRef)(null),[d,u]=(0,Ke.useState)(600),f=(0,Ke.useCallback)(C=>{if(l.current?.disconnect(),l.current=null,s.current=C,!C)return;let M=()=>u(Math.max(120,C.clientWidth-Gp));M();let I=new ResizeObserver(M);I.observe(C),l.current=I},[]),c=(0,Ke.useMemo)(()=>e.filter(C=>C.type==="network").slice().sort((C,M)=>C.t-M.t),[e]),p=(0,Ke.useMemo)(()=>{if(!c.length)return null;let C=1/0,M=-1/0;for(let I of c){let D=r(I.t),A=D+(I.timing.duration||0);D<C&&(C=D),A>M&&(M=A)}return[C,Math.max(C+1,M)]},[c,r]),h=o.length>0,m=h?i[0]-t:p?.[0]??0,S=h?Math.max(1,i[1]-i[0]):Math.max(1,(p?.[1]??1)-(p?.[0]??0))*1.02,g=h?S:Math.min(S,DI),x=d/g,v=S*x,b=v>d+1,w=(0,Ke.useMemo)(()=>c.map(C=>{let M=r(C.t),I=M+(C.timing.duration||0);return{id:C.id,n:C,start:M,end:I,tone:yS(C),leftPx:(M-m)*x,widthPx:Math.max((I-M)*x,2)}}),[c,r,m,x]),y=c.filter(C=>C.status===0||C.status>=400).length,L=c.reduce((C,M)=>C+(M.responseSize??0),0);return c.length?(0,Me.jsxs)("div",{className:"lum-wf",children:[(0,Me.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests \xB7 ",Kk(L)," \xB7 ",y," failed",b&&(0,Me.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(g/1e3),"s window \xB7 scroll \u2192"]})]}),(0,Me.jsx)("div",{className:"lum-wf__scroll",ref:f,children:(0,Me.jsxs)("div",{className:"lum-wf__grid",style:{width:Gp+v},children:[(0,Me.jsx)(zI,{scrollRef:s,t0:m,pxPerMs:x,windowMs:g,vpTrackW:d,trackW:v}),(0,Me.jsxs)("div",{className:"lum-wf__rows",children:[w.map((C,M)=>(0,Me.jsxs)("div",{"data-row":M,className:`lum-wf__row lum-wf__row--${C.tone} ${C.id===n?"is-selected":""}`,style:{width:Gp+v},onClick:()=>a(C.id),title:C.n.url,children:[(0,Me.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,Me.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${C.tone}`,"aria-hidden":!0}),(0,Me.jsx)("span",{className:"lum-wf__name",children:wS(C.n.url)}),(0,Me.jsx)("span",{className:"lum-wf__method lum-muted",children:C.n.method}),(0,Me.jsx)("span",{className:"lum-wf__time lum-muted",children:cu(C.n.timing.duration)})]}),(0,Me.jsx)("div",{className:"lum-wf__track",style:{width:v},children:(0,Me.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${C.tone}`,style:{left:C.leftPx,width:C.widthPx},children:OI(C.n).map((I,D)=>(0,Me.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${I.cls}`,style:{flexGrow:I.ms}},D))})})]},C.id)),(0,Me.jsx)(UI,{bars:w,t0:m,pxPerMs:x,vpTrackW:d,scrollRef:s})]})]})})]}):(0,Me.jsx)(Jt,{title:"No network activity",children:"Nothing matched this filter."})}function zI({scrollRef:e,t0:t,pxPerMs:r,windowMs:a,vpTrackW:n,trackW:o}){let[i,s]=(0,Ke.useState)(0);(0,Ke.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>s(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let l=(0,Ke.useMemo)(()=>{let d=FI(a/6),u=i/r,f=(i+n)/r,c=[],p=Math.max(0,Math.floor(u/d)*d);for(let h=p;h<=f+d;h+=d)c.push({leftPx:h*r,label:ne(t+h)});return c},[a,i,r,n,t]);return(0,Me.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,Me.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,Me.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:l.map((d,u)=>(0,Me.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function UI({bars:e,t0:t,pxPerMs:r,vpTrackW:a,scrollRef:n}){let o=_(c=>c.currentTime),i=_(c=>c.status),s=(0,Ke.useRef)(-1),l=(0,Ke.useRef)(0);(0,Ke.useEffect)(()=>{let c=n.current;if(!c)return;let p=()=>{l.current=performance.now()+1500};return c.addEventListener("wheel",p,{passive:!0}),c.addEventListener("pointerdown",p,{passive:!0}),()=>{c.removeEventListener("wheel",p),c.removeEventListener("pointerdown",p)}},[n]);let d=(o-t)*r,u=[],f=-1;for(let c=0;c<e.length;c++){let p=e[c];p.start<=o+1&&(f=c),o>=p.start&&o<=p.end+1&&u.push(c)}return(0,Ke.useEffect)(()=>{i!=="playing"||f<0||f===s.current||(s.current=f,n.current?.querySelector(`[data-row="${f}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[f,i,n]),(0,Ke.useEffect)(()=>{let c=n.current;if(!c||i!=="playing"||performance.now()<l.current)return;let p=c.scrollLeft;if(d<p+.1*a||d>p+.9*a){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*a))}},[d,i,a,n]),(0,Me.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*Zw},"aria-hidden":!0,children:[u.map(c=>{let p=e[c];return(0,Me.jsx)("div",{className:"lum-wf__running",style:{top:c*Zw+7,height:14,left:p.leftPx,width:Math.max(2,p.widthPx)}},p.id)}),(0,Me.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function qI(){let e=_(f=>f.events),t=_(f=>f.summary),r=_(f=>f.selectedEventId),a=_(f=>f.selectAndSeek),n=_(f=>f.toRelative),[o,i]=(0,zs.useState)(""),s=(0,zs.useMemo)(()=>rm(e).filter(f=>f.kind==="task"),[e]),l=t?.tags??[],d=o.trim().toLowerCase(),u=(0,zs.useMemo)(()=>d?s.filter(f=>f.title.toLowerCase().includes(d)):s,[s,d]);return(0,xt.jsxs)("div",{className:"lum-st-spans",children:[l.length>0&&(0,xt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:l.map(f=>(0,xt.jsxs)("span",{className:"lum-st-tag",children:["#",f]},f))}),(0,xt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,xt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:f=>i(f.target.value),"aria-label":"Search task spans by name"}),s.length>0&&(0,xt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",s.length]})]}),s.length===0?(0,xt.jsx)(Jt,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,xt.jsx)(Jt,{title:"No tasks match that search"}):(0,xt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(f=>(0,xt.jsxs)("button",{className:`lum-st-spanrow ${f.id===r?"is-selected":""} ${f.running?"is-running":""}`,onClick:()=>a(f.id),"aria-label":`${f.title} (${f.subtitle??""}) @ ${ne(n(f.t))}`,children:[(0,xt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,xt.jsx)("span",{className:"lum-st-spanrow__time",children:ne(n(f.t))}),(0,xt.jsx)("span",{className:"lum-st-spanrow__title",children:f.title}),(0,xt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:f.subtitle})]},f.id))})]})}var $I={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},HI=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function WI(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function eS(){let e=_(p=>p.events),t=_(p=>p.feedFilter),r=_(p=>p.setFeedFilter),a=_(p=>p.selectedEventId),n=_(p=>p.selectionRange),o=_(p=>p.selectAndSeek),i=_(p=>p.toRelative),s=_(p=>p.status),l=(0,uu.useMemo)(()=>rm(e),[e]),d=(0,uu.useMemo)(()=>{let p=l.filter(h=>WI(h,t));return n&&(p=p.filter(h=>h.t>=n[0]&&h.t<=n[1])),p},[l,t,n]),u=(0,uu.useMemo)(()=>d.map(p=>i(p.t)),[d,i]),f=dI(u),c=cI(f,s==="playing");return(0,Nt.jsxs)("div",{className:"lum-st-feed",children:[(0,Nt.jsx)("div",{className:"lum-st-feed__chips",children:HI.map(p=>(0,Nt.jsx)("button",{className:`lum-pl-chip ${t===p.id?"is-active":""}`,onClick:()=>r(p.id),children:p.label},p.id))}),t==="network"?(0,Nt.jsx)(BI,{}):t==="task"?(0,Nt.jsx)(qI,{}):d.length===0?(0,Nt.jsx)(Jt,{title:"Nothing matched this filter"}):(0,Nt.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((p,h)=>(0,Nt.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${p.severity} ${h===f?"is-active":""} ${p.id===a?"is-selected":""}`,onClick:()=>o(p.id),"aria-label":`${p.title} @ ${ne(i(p.t))}`,children:[(0,Nt.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:$I[p.kind]}),(0,Nt.jsx)("span",{className:"lum-st-feedrow__time",children:ne(i(p.t))}),(0,Nt.jsx)("span",{className:"lum-st-feedrow__title",children:p.title}),p.subtitle&&(0,Nt.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:p.subtitle})]},p.id))})]})}function tS({feedFocusKey:e}){let t=_(u=>u.selectedEventId),r=_(u=>u.events),a=_(u=>u.select),[n,o]=(0,ar.useState)("feed"),i=(0,ar.useRef)(null),s=(0,ar.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,ar.useEffect)(()=>{t&&t!==i.current&&o("detail"),!t&&n==="detail"&&o("feed"),i.current=t},[t]);let l=n==="detail"&&!s?"feed":n,d=[{id:"feed",label:"Feed"},...s?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Z.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Z.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Z.jsx)("button",{className:`lum-pl-tab2 ${l===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),s&&(0,Z.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>a(null),children:(0,Z.jsx)(rn,{size:13})})]}),(0,Z.jsxs)("div",{className:"lum-st-inspector__body",children:[l==="feed"&&(0,Z.jsx)(eS,{}),l==="dom"&&(0,Z.jsx)(kI,{}),l==="state"&&(0,Z.jsx)(II,{}),l==="detail"&&s&&(0,Z.jsx)(jI,{ev:s}),l==="detail"&&!s&&(0,Z.jsx)(eS,{})]})]},e)}function jI({ev:e}){let t=_(r=>r.toRelative);if(e.type==="network"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Z.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:wS(r.url)}),(0,Z.jsx)(fI,{n:r,relStart:t(r.t)}),(0,Z.jsx)(Xp,{ev:e})]})}if(e.type==="error")return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(hI,{ev:e}),(0,Z.jsx)("div",{className:"lum-st-inspbody",children:(0,Z.jsx)(Xp,{ev:e})})]});if(e.type==="console")return(0,Z.jsx)(bI,{ev:e});if(e.type==="custom"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.name})," ",(0,Z.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ne(t(e.t))]})]}),r.props&&(0,Z.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(r.props,null,2).slice(0,1200)}),(0,Z.jsx)(Xp,{ev:e})]})}if(e.type==="perf"){let r=e;return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.metric})," ",(0,Z.jsx)("span",{className:"lum-mono",children:Math.round(r.value)})," ",(0,Z.jsx)("span",{className:"lum-muted",children:r.rating})]})})}return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function Xp({ev:e}){let t=Dk(),[r,a]=(0,ar.useState)(""),[n,o]=(0,ar.useState)("idle"),i=(0,ar.useRef)(null);if((0,ar.useEffect)(()=>(a(""),o("idle"),i.current?.abort(),()=>i.current?.abort()),[e.id]),!t)return null;let s=async()=>{i.current?.abort();let l=new AbortController;i.current=l,a(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let f of Ok(d,t,{ref:e.id},l.signal))if(f.kind==="token"&&f.text)u+=f.text,a(u);else if(f.kind==="error"){o("error"),a(f.message||"Explain failed.");return}o("done")}catch(d){if(l.signal.aborted)return;o("error"),a(d instanceof Error?d.message:"Explain failed.")}};return(0,Z.jsx)("div",{className:"lum-st-explain",children:n==="idle"?(0,Z.jsxs)("button",{className:"lum-st-explain__btn",onClick:s,children:[(0,Z.jsx)(Zt,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Z.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Z.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Z.jsx)(Zt,{size:12,"aria-hidden":!0})," Likely cause",n==="loading"&&(0,Z.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Z.jsx)("p",{className:`lum-st-explain__text ${n==="error"?"is-error":""}`,children:r||"\u2026"}),n!=="loading"&&(0,Z.jsx)("button",{className:"lum-st-explain__re",onClick:s,children:"Regenerate"})]})})}var eo={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function VI(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let a=r;a.status>=500||a.status===0?t.push({t:r.t,kind:"net5xx",rank:eo.net5xx,ref:r.id,label:`${a.method} ${a.url} \u2014 ${a.status||"failed"}`}):a.status>=400&&t.push({t:r.t,kind:"net4xx",rank:eo.net4xx,ref:r.id,label:`${a.method} ${a.url} \u2014 ${a.status}`})}else if(r.type==="custom"){let a=r;a.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:eo.rage,ref:r.id,label:"Rage click"}):a.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:eo.dead,ref:r.id,label:"Dead click"})}return t.sort((r,a)=>r.t-a.t)}function GI(e){let t=rm(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let a of t){let n={id:a.id,t:a.t,durationMs:a.durationMs,running:a.running,kind:a.kind,severity:a.severity,label:a.title,sub:a.subtitle};switch(a.lane){case"interaction":r.interaction.push(n);break;case"console":if(a.kind==="perf")break;r.console.push(n),a.kind==="console"&&a.severity==="error"&&r.error.push({...n,kind:"error"});break;case"network":r.network.push(n);break;case"error":r.error.push(n);break;case"task":r.task.push(n);break;case"nav":r.chapters.push({...n,kind:"nav"});break}}for(let a of e){if(a.type!=="perf")continue;let n=a;["LCP","CLS","INP","FCP"].includes(n.metric)&&r.vitals.push({id:a.id,t:a.t,kind:n.rating==="poor"?"perf-poor":"perf-good",severity:n.rating==="poor"?"error":"ok",label:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,sub:n.rating})}return r}var rS={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function XI(e){let t=[];for(let r of e)if(r.type==="error"){let a=r;t.push({id:r.id,label:`Error \xB7 ${a.name??"Error"}`,detail:a.message??"",t:r.t,ref:r.id,keywords:`error exception ${a.name??""} ${a.message??""}`})}else if(r.type==="network"){let a=r,n=a.status>=400||a.status===0,o=a.status>=500?"5xx":a.status>=400?"4xx":"ok";n&&t.push({id:r.id,label:`${a.method} ${KI(a.url)} \xB7 ${a.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${a.method} ${a.url} ${a.status}`})}else if(r.type==="custom"){let a=r;if(a.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(a.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(a.props&&a.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${a.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${a.name}`});else{let n=/^(.+):started$/.exec(a.name??"");if(n){let o=a.props?.task??n[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,a)=>r.t-a.t)}function KI(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function QI(e,t){if(!e.length)return null;let r=null,a=1/0;for(let n of e){let o=Math.abs(n.t-t);o<a&&(a=o,r=n)}return r&&a<1200?r.label:null}var su=60;function YI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var JI={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"};function ZI(){let e=_(w=>w.events),t=_(w=>w.offset),r=_(w=>w.durationMs),a=_(w=>w.bufferedMs),n=_(w=>w.zoomStack),o=_(w=>w.zoomTo),i=_(w=>w.zoomOutTo),s=_(w=>w.seek),l=_(w=>w.toRelative),d=(0,ao.useRef)(null),[u,f]=(0,ao.useState)(null),c=t,p=t+r,h=Math.max(1,p-c),m=(0,ao.useMemo)(()=>{let w=new Array(su).fill(0),y=Array.from({length:su},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let C of e){let M=(C.t-c)/h,I=Math.min(su-1,Math.max(0,Math.floor(M*su)));w[I]++,y[I][YI(C)]++}let L=Math.max(1,...w);return w.map((C,M)=>{let I=y[M],D="other",A=0;return Object.keys(I).forEach(k=>{let ke=k==="error"?100:k==="frustration"?50:k==="conversion"?40:1,Ie=I[k]*ke;I[k]>0&&Ie>A&&(A=Ie,D=k)}),{h:C/L,kind:D}})},[e,c,h]),S=w=>{let y=d.current;if(!y)return c;let L=y.getBoundingClientRect(),C=Math.min(1,Math.max(0,(w-L.left)/L.width));return c+C*h},g=w=>(w-c)/h*100,x=n[n.length-1],v=r>0?Math.min(100,a/r*100):100,b=[{label:"Full",index:0},...n.map((w,y)=>({label:`${ne(l(w[0]))}\u2013${ne(l(w[1]))}`,index:y+1}))];return(0,yr.jsxs)("div",{className:"lum-st-overview",children:[(0,yr.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,yr.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:w=>{w.target.setPointerCapture?.(w.pointerId);let y=S(w.clientX);f({a:y,b:y})},onPointerMove:w=>{u&&f(y=>y&&{...y,b:S(w.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>h*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):s(l(u.a))),f(null)},onPointerLeave:()=>f(null),children:[v<99.5&&(0,yr.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${v}%`},"aria-hidden":!0}),m.map((w,y)=>(0,yr.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,w.h*100)}%`,background:JI[w.kind]}},y)),x&&(0,yr.jsx)("div",{className:"lum-st-overview__window",style:{left:`${g(x[0])}%`,width:`${g(x[1])-g(x[0])}%`}}),u&&(0,yr.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${g(Math.min(u.a,u.b))}%`,width:`${Math.abs(g(u.b)-g(u.a))}%`}})]}),(0,yr.jsx)("div",{className:"lum-st-overview__crumbs",children:b.map((w,y)=>(0,yr.jsx)("button",{className:`lum-st-crumb ${y===b.length-1?"is-active":""}`,onClick:()=>i(w.index),children:w.label},y))})]})}function eM(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let a of t)if(a>=r)return a;return t[t.length-1]}function tM({win:e}){let t=(0,ro.useRef)(null),r=(0,ro.useRef)(!1),a=_(b=>b.currentTime),n=_(b=>b.durationMs),o=_(b=>b.offset),i=_(b=>b.events),s=_(b=>b.markers),l=_(b=>b.snap),d=_(b=>b.seek),u=_(b=>b.setHover),f=_(b=>b.toRelative),[c,p]=e,h=Math.max(1,p-c),m=(0,ro.useMemo)(()=>{let b=eM(h),w=[],y=c-o,L=Math.ceil(y/b)*b;for(let C=L;C<=p-o;C+=b){let M=C+o;w.push({tRel:C,pct:(M-c)/h*100})}return w},[h,c,p,o]),S=(0,ro.useMemo)(()=>tm(i,n+o),[i,n,o]),g=b=>{let w=t.current;if(!w)return c;let y=w.getBoundingClientRect();return kS(b-y.left,e,y.width)},x=b=>{if(!l)return b;let w=t.current;if(!w)return b;let y=w.getBoundingClientRect().width,L=Yp(b,e,y),C=b,M=8;for(let I of s){let D=Yp(I.t,e,y),A=Math.abs(D-L);A<M&&(M=A,C=I.t)}return C},v=b=>{let w=x(g(b));d(f(w))};return(0,La.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":Math.round(a),"aria-valuetext":`${ne(a)} of ${ne(n)}`,onPointerDown:b=>{r.current=!0,b.target.setPointerCapture?.(b.pointerId),v(b.clientX)},onPointerMove:b=>{let w=g(b.clientX);u(f(w)),r.current&&v(b.clientX)},onPointerUp:b=>{r.current=!1,b.target.releasePointerCapture?.(b.pointerId)},onPointerLeave:()=>u(null),onKeyDown:b=>{if(b.key==="ArrowRight")d(a+1e3);else if(b.key==="ArrowLeft")d(a-1e3);else if(b.key==="Home")d(0);else if(b.key==="End")d(n);else if(b.key==="PageUp")d(a+1e4);else if(b.key==="PageDown")d(a-1e4);else return;b.preventDefault()},children:[S.slice(1).map(b=>{let w=(b.startT-c)/h*100;return w<0||w>100?null:(0,La.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${w}%`},title:b.title},b.id)}),m.map((b,w)=>(0,La.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${b.pct}%`},children:(0,La.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:ne(b.tRel)})},w))]})}function rM({win:e}){let t=_(d=>d.hover),r=_(d=>d.offset),a=_(d=>d.markers);if(t==null)return null;let n=t.t+r,[o,i]=e,s=(n-o)/Math.max(1,i-o)*100;if(s<0||s>100)return null;let l=QI(a,n);return(0,La.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${s}%`},children:[ne(t.t),l&&(0,La.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",l.slice(0,48)]})]})}function aM({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let a=_(k=>k.status),n=_(k=>k.currentTime),o=_(k=>k.durationMs),i=_(k=>k.summary?.inactiveMs),s=_(k=>k.summary?.durationMs),l=_(k=>k.speed),d=_(k=>k.autoSkip),u=_(k=>k.isSkipping),f=_(k=>k.autoSkim),c=_(k=>k.isSkimming),p=_(k=>k.loop),h=_(k=>k.showCursor),m=_(k=>k.snap),S=_(k=>k.toggle),g=_(k=>k.restart),x=_(k=>k.seek),v=_(k=>k.step),b=_(k=>k.jumpEvent),w=_(k=>k.setSpeed),y=_(k=>k.setAutoSkip),L=_(k=>k.setAutoSkim),C=_(k=>k.setLoop),M=_(k=>k.setShowCursor),I=_(k=>k.toggleSnap),D=a==="playing";return(0,Q.jsxs)("div",{className:"lum-st-transport",children:[(0,Q.jsxs)("div",{className:"lum-st-transport__group",children:[(0,Q.jsx)("span",{className:"lum-pl-play",children:(0,Q.jsx)(ht,{label:D?"Pause (Space)":"Play (Space)",pressed:D,onClick:S,children:D?(0,Q.jsx)(Ls,{size:17}):(0,Q.jsx)(tn,{size:17})})}),(0,Q.jsx)(ht,{label:"Restart (R)",onClick:g,children:(0,Q.jsx)(Ms,{size:16})}),(0,Q.jsx)(ht,{label:"Back 10s (\u2190)",onClick:()=>x(n-1e4),children:(0,Q.jsx)(Rs,{size:16})}),(0,Q.jsx)(ht,{label:"Forward 10s (\u2192)",onClick:()=>x(n+1e4),children:(0,Q.jsx)(Es,{size:16})}),(0,Q.jsx)(ht,{label:"Previous event ([)",onClick:()=>b(-1),children:(0,Q.jsx)(Qa,{size:17})}),(0,Q.jsx)(ht,{label:"Next event (])",onClick:()=>b(1),children:(0,Q.jsx)(Ya,{size:17})}),(a==="paused"||a==="ended"||a==="idle")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ht,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,Q.jsx)(Ps,{size:15})}),(0,Q.jsx)(ht,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,Q.jsx)(Ts,{size:15})})]})]}),(0,Q.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,Q.jsx)(Qx,{trigger:(0,Q.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${l}\xD7`,title:"Playback speed (< / >)",children:[(0,Q.jsx)(ys,{size:15}),(0,Q.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[l,"\xD7"]})]}),options:lS.map(k=>({value:k,label:`${k}\xD7`})),value:l,onSelect:w,placement:"top"}),(0,Q.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>y(!d),children:(0,Q.jsx)(Ja,{size:16})})}),(0,Q.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${f?" \u2014 on":""}`,pressed:f,onClick:()=>L(!f),children:(0,Q.jsx)(an,{size:15})})}),(0,Q.jsx)(ht,{label:"Loop (L)",pressed:p,onClick:()=>C(!p),children:(0,Q.jsx)(ks,{size:15})}),(0,Q.jsx)(ht,{label:"Magnetic snap (X)",pressed:m,onClick:I,children:(0,Q.jsx)(Ss,{size:15})}),(0,Q.jsx)(ht,{label:"Cursor trail",pressed:h,onClick:()=>M(!h),children:(0,Q.jsx)(Cs,{size:15})}),r&&(0,Q.jsx)(ht,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,Q.jsx)(en,{size:16}):(0,Q.jsx)(Za,{size:16})}),(0,Q.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[ne(n)," ",(0,Q.jsxs)("span",{className:"lum-muted",children:["/ ",ne(o)]}),i!=null&&i>0&&s?(0,Q.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${ne(i)} of this recording (${Math.round(i/s*100)}%) had no interaction`,children:[" \xB7 ",Math.round(i/s*100),"% idle"]}):null]})]})]})}function nM(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function oM(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function sM(e,t,r){let a=[...e].sort((o,i)=>o.t-i.t),n=[];for(let o of a){if(o.t<t[0]-1||o.t>t[1]+1)continue;let i=Yp(o.t,t,r),s=n[n.length-1];s&&i-s.xPx<6?s.items.push(o):n.push({t:o.t,xPx:i,items:[o]})}return n}function iM({id:e,label:t,glyphs:r,win:a,width:n,collapsed:o}){let i=_(g=>g.offset),s=_(g=>g.durationMs),l=_(g=>g.events),d=_(g=>g.selectedEventId),u=_(g=>g.selectAndSeek),f=_(g=>g.zoomTo),c=_(g=>g.toRelative),p=Math.max(1,a[1]-a[0]),h=g=>(g-a[0])/p*100,m=(0,Jp.useMemo)(()=>e==="chapters"?tm(l,s+i):[],[e,l,s,i]),S=(0,Jp.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:sM(r,a,n||1),[e,r,a,n]);return o?(0,Ht.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Ht.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Ht.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Ht.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${ne(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>f(g.startT,g.endT),children:(0,Ht.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/p*100,b=Math.max(.4,v),w=d===g.id;return(0,Ht.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${w?"is-selected":""}`,style:{left:`${x}%`,width:`${b}%`},role:"option","aria-selected":w,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${ne(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/p*100,b=Math.max(.5,v),w=d===g.id,y=!!g.running;return(0,Ht.jsx)("button",{className:`lum-st-taskbar ${w?"is-selected":""} ${y?"is-running":""}`,style:{left:`${x}%`,width:`${b}%`},role:"option","aria-selected":w,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${ne(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&S.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let b=g.items[0],w=g.items.some(L=>L.id===d),y=g.items.length;return(0,Ht.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${w?"is-selected":""} ${b.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:oM(b)},role:"option","aria-selected":w,"aria-label":y>1?`${y} events @ ${ne(c(g.t))}`:`${b.label} @ ${ne(c(g.t))}`,title:y>1?`${y} events`:`${b.label}${b.sub?` \xB7 ${b.sub}`:""}`,onClick:()=>{y>1&&p>4e3?f(g.t-1500,g.t+1500):u(b.id)},children:[(0,Ht.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:nM(b)}),y>1&&(0,Ht.jsx)("span",{className:"lum-st-glyph__count",children:y})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Ht.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function lM({id:e,label:t,count:r}){let a=_(o=>o.laneState[e]),n=_(o=>o.toggleLane);return(0,At.jsxs)("div",{className:`lum-st-rail ${a.mute?"is-muted":""} ${a.solo?"is-solo":""}`,children:[(0,At.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${a.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>n(e,"collapsed"),children:a.collapsed?(0,At.jsx)(Ya,{size:13}):(0,At.jsx)(Ka,{size:13})}),(0,At.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,At.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,At.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,At.jsx)("button",{className:`lum-st-rail__btn ${a.solo?"is-on":""}`,"aria-pressed":a.solo,title:"Solo lane",onClick:()=>n(e,"solo"),children:(0,At.jsx)(vs,{size:11})}),(0,At.jsx)("button",{className:`lum-st-rail__btn ${a.mute?"is-on":""}`,"aria-pressed":a.mute,title:"Mute lane",onClick:()=>n(e,"mute"),children:a.mute?(0,At.jsx)(Ds,{size:11}):(0,At.jsx)(As,{size:11})})]})]})}function uM({win:e}){let t=_(s=>s.currentTime),r=_(s=>s.offset),a=t+r,n=fu(a,e),o=a<e[0],i=a>e[1];return(0,pu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${i?"is-offright":""}`,style:{left:`${n*100}%`},"aria-hidden":!0,children:(0,pu.jsx)("span",{className:"lum-st-playhead__cap"})})}function dM({win:e}){let t=_(o=>o.hover),r=_(o=>o.offset);if(t==null)return null;let a=t.t+r,n=fu(a,e);return a<e[0]||a>e[1]?null:(0,pu.jsx)("div",{className:"lum-st-ghost",style:{left:`${n*100}%`},"aria-hidden":!0})}var cM={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function fM({win:e}){let t=(0,Us.useRef)(null),r=(0,Us.useRef)(!1),a=_(m=>m.currentTime),n=_(m=>m.durationMs),o=_(m=>m.offset),i=_(m=>m.events),s=_(m=>m.seek),l=_(m=>m.selectAndSeek),d=_(m=>m.setHover),u=_(m=>m.toRelative),f=(0,Us.useMemo)(()=>VI(i),[i]),c=a+o,p=fu(c,e),h=m=>{let S=t.current;if(!S)return e[0];let g=S.getBoundingClientRect();return kS(m-g.left,e,g.width)};return(0,to.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(n),"aria-valuenow":Math.round(a),"aria-valuetext":`${ne(a)} of ${ne(n)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),s(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&s(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")s(a+1e3);else if(m.key==="ArrowLeft")s(a-1e3);else if(m.key==="Home")s(0);else if(m.key==="End")s(n);else return;m.preventDefault()},children:[(0,to.jsx)("div",{className:"lum-st-ribbon__track"}),f.map(m=>{let S=fu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,to.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${S*100}%`,color:cM[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${ne(u(m.t))}`,"aria-label":`${m.label} @ ${ne(u(m.t))}`,onClick:g=>{g.stopPropagation(),l(m.ref)},children:"\u25C6"},m.ref)}),(0,to.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${p*100}%`},"aria-hidden":!0})]})}function pM({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:a,onResizeStart:n,onResizeReset:o}){let i=_(y=>y.events),s=_(y=>y.laneState),l=_(y=>y.offset),d=_(y=>y.durationMs),u=_(y=>y.zoomStack),f=_(y=>y.zoomTo),c=_(y=>y.zoomOutTo),p=_(y=>y.focusMode),h=IS(),{ref:m,width:S}=AI(),g=(0,MS.useMemo)(()=>GI(i),[i]),x=e==="narrow"||e==="compact"||p==="stage",v=du.some(y=>s[y].solo),b=du.filter(y=>!(s[y].mute||v&&!s[y].solo));return(0,Ze.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[n&&(0,Ze.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:n,onDoubleClick:o}),(0,Ze.jsx)(ZI,{}),(0,Ze.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,Ze.jsx)(aM,{isFullscreen:t,onFullscreen:r,allowFullscreen:a}),(0,Ze.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,Ze.jsx)(tM,{win:h})})]}),x?(0,Ze.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,Ze.jsx)(fM,{win:h})}):(0,Ze.jsxs)("div",{className:"lum-st-lanes",onWheel:y=>{if(x||!y.ctrlKey&&!y.metaKey)return;y.preventDefault();let L=m.current;if(!L)return;let C=L.getBoundingClientRect(),M=Math.min(1,Math.max(0,(y.clientX-C.left)/C.width)),I=h[0]+M*(h[1]-h[0]),D=y.deltaY>0?1.2:.83,A=NI(h,I,D,l,l+d);A==null?u.length&&c(u.length-1):f(A[0],A[1])},children:[(0,Ze.jsx)("div",{className:"lum-st-lanes__rails",children:b.map(y=>(0,Ze.jsx)(lM,{id:y,label:rS[y],count:g[y].length},y))}),(0,Ze.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[b.map(y=>(0,Ze.jsx)(iM,{id:y,label:rS[y],glyphs:g[y],win:h,width:S,collapsed:s[y].collapsed},y)),(0,Ze.jsx)(uM,{win:h}),(0,Ze.jsx)(dM,{win:h}),(0,Ze.jsx)(rM,{win:h})]})]})]})}function mM(){let e=_(g=>g.paletteOpen),t=_(g=>g.openPalette),r=_(g=>g.events),a=_(g=>g.currentTime),n=_(g=>g.nextProblem),o=_(g=>g.selectAndSeek),i=_(g=>g.toRelative),[s,l]=(0,rr.useState)(""),[d,u]=(0,rr.useState)(0),f=(0,rr.useRef)(null),c=(0,rr.useMemo)(()=>XI(r),[r]),p=(0,rr.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>n(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>n(-1)});let x=c.find(L=>L.keywords.includes("error"));x&&g.push(y("first-error","First error",x));let v=c.find(L=>L.keywords.includes("network"));v&&g.push(y("next-5xx","Next failed request",v));let b=c.find(L=>L.keywords.includes("rage"));b&&g.push(y("next-rage","Next rage click",b));let w=c.find(L=>L.keywords.includes("conversion"));w&&g.push(y("the-conversion","The conversion",w));for(let L of c)g.push(y(`go-${L.id}`,`${L.label} \xB7 ${ne(i(L.t))}`,L));return g;function y(L,C,M){return{id:L,label:C,detail:M.detail,keywords:`${C} ${M.keywords}`.toLowerCase(),run:()=>o(M.ref)}}},[c,n,o,i]),h=(0,rr.useMemo)(()=>{let g=s.trim().toLowerCase();return g?p.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):p.slice(0,12)},[p,s]);if((0,rr.useEffect)(()=>{e&&(l(""),u(0),requestAnimationFrame(()=>f.current?.focus()))},[e]),(0,rr.useEffect)(()=>u(0),[s]),!e)return null;let m=()=>t(!1),S=g=>{g&&(g.run(),m())};return(0,tr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,tr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,tr.jsx)("input",{ref:f,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:s,onChange:g=>l(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),S(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,tr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,tr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,tr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,tr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>S(g),children:[(0,tr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,tr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,tr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var hM=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function gM({open:e,onClose:t}){return e?(0,er.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,er.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,er.jsxs)("div",{className:"lum-pl-help__head",children:[(0,er.jsx)("strong",{children:"Keyboard shortcuts"}),(0,er.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,er.jsx)("div",{className:"lum-pl-help__grid",children:hM.map(([r,a])=>(0,er.jsxs)("div",{className:"lum-pl-help__row",children:[(0,er.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,er.jsx)("span",{children:a})]},r))}),(0,er.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function xM(e){let[t,r]=(0,yu.useState)("wide");return(0,yu.useEffect)(()=>{let a=e.current;if(!a)return;let n=(i,s)=>i<480?"compact":i<720||s<400?"narrow":i<1100?"mid":"wide",o=new ResizeObserver(i=>{let s=i[0];if(!s)return;let{width:l,height:d}=s.contentRect;r(n(l,d))});return o.observe(a),r(n(a.clientWidth,a.clientHeight)),()=>o.disconnect()},[e]),t}function aS(e,t){let r=Zp(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var nS="obsrviq.player.inspectorW",oS="obsrviq.player.timelineH";function sS(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function iS(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function _S(e){let t=(0,G.useRef)();t.current||(t.current=Pk());let r=t.current;return(0,je.jsx)(Nk,{store:r,children:(0,je.jsx)(Ak,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,je.jsx)(Kx,{children:(0,je.jsx)(vM,{...e,store:r})})})})}function vM({sessionId:e,apiBaseUrl:t,token:r,apiKey:a,startAtMs:n,startMode:o,defaultMode:i,allowedModes:s,defaultSpeed:l,allowFullscreen:d,shareUrl:u,onEnded:f,onError:c,onSeek:p,onComment:h,onBack:m,backLabel:S,live:g,theme:x,embedded:v,className:b,topbarActions:w,focus:y,clip:L,store:C}){let M=(0,G.useRef)(null),I=(0,G.useRef)(null),D=(0,G.useRef)(null),A=(0,G.useRef)([]),k=(0,G.useRef)(-1),ke=(0,G.useRef)(0),Ie=(0,G.useRef)([]),ue=(0,G.useRef)(-1),j=(0,G.useRef)(new Set),Se=(0,G.useRef)(new Set),ze=(0,G.useRef)(0),be=(0,G.useRef)(!1),[we,wr]=(0,G.useState)(0),[E,vt]=(0,G.useState)(!1),[yt,Ia]=(0,G.useState)(!1),[Qe,it]=(0,G.useState)(!1),[Sr,br]=(0,G.useState)(0),[X,_e]=(0,G.useState)(!1),[se,Re]=(0,G.useState)(null),lt=(0,G.useRef)(null),[me,sn]=(0,G.useState)(()=>sS(nS)),[wu,nm]=(0,G.useState)(()=>sS(oS));(0,G.useEffect)(()=>{iS(nS,me)},[me]),(0,G.useEffect)(()=>{iS(oS,wu)},[wu]);let BS=(0,G.useCallback)(T=>{let H=lt.current;if(!H)return;T.preventDefault();let O=H.getBoundingClientRect(),ee=T.currentTarget;ee.setPointerCapture(T.pointerId),ee.classList.add("is-active");let N=te=>{let ut=Math.max(320,Math.min(820,O.width-360));sn(Math.min(ut,Math.max(300,Math.round(O.right-te.clientX))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",N),window.addEventListener("pointerup",ie)},[]),zS=(0,G.useCallback)(T=>{let H=M.current;if(!H)return;T.preventDefault();let O=H.getBoundingClientRect(),ee=T.currentTarget;ee.setPointerCapture(T.pointerId),ee.classList.add("is-active");let N=te=>{let ut=Math.max(140,O.height-240);nm(Math.min(ut,Math.max(120,Math.round(O.bottom-te.clientY))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",N),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",N),window.addEventListener("pointerup",ie)},[]),Er=xM(M),ln=_(T=>T.focusMode),un={apiBaseUrl:t,token:r,apiKey:a},$s=d??se?.allowFullscreen??!0,US=u??se?.shareUrl,om=(0,G.useRef)($s);om.current=$s;let sm=(0,G.useRef)(!1);(0,G.useEffect)(()=>{if(sm.current)return;let T=s!=null&&(i??o)!=null&&l!=null;if(se==null&&!T)return;sm.current=!0;let H=C.getState(),O=Zp(s??se?.allowedModes);H.setAllowedModes(O);let ee=i??o??se?.defaultMode;ee&&O.includes(ee)&&C.setState({focusMode:ee});let N=l??se?.defaultSpeed;if(N!=null){let ie=lS.reduce((te,ut)=>Math.abs(ut-N)<Math.abs(te-N)?ut:te);C.setState({speed:ie}),H.controller?.setSpeed(ie)}},[se]),(0,G.useEffect)(()=>{let T=!1;return vt(!1),Ie.current=[],ue.current=-1,j.current=new Set,Se.current=new Set,ze.current=0,be.current=!1,C.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:Y,events:ge,rrwebEvents:or}=await zk(e,un,(sr,K)=>!T&&C.setState({loadProgress:K?sr/K:1}));if(T)return;if(Re(Y.replaySettings??{}),A.current=or,k.current=Y.replayChunks.reduce((sr,K)=>Math.max(sr,K.seq),-1),ke.current=ge.reduce((sr,K)=>Math.max(sr,K.t),0),Y.summary.hasReplay&&or.length>0)C.setState({events:ge,markers:Os(ge),summary:Y.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let sr=ge.map(Ce=>Ce.t),K=sr.length?Math.min(...sr):0,V=sr.length?Math.max(...sr):0;C.setState({events:ge,markers:Os(ge),summary:Y.summary,hasReplay:!1,offset:K,durationMs:Math.max(0,V-K),currentTime:0,status:"paused",focusMode:aS(i??o??Y.replaySettings?.defaultMode,s??Y.replaySettings?.allowedModes)})}vt(!0);return}let{detail:O,events:ee}=await Fk(e,un);if(T)return;Re(O.replaySettings??{});let N=[...O.replayChunks].sort((Y,ge)=>Y.seq-ge.seq);if(Ie.current=N,N.forEach((Y,ge)=>{Y.hasSnapshot&&Se.current.add(ge)}),ke.current=ee.reduce((Y,ge)=>Math.max(Y,ge.t),0),!(O.summary.hasReplay&&N.length>0)){let Y=ee.map(no=>no.t),ge=Y.length?Math.min(...Y):0,or=Y.length?Math.max(...Y):0;C.setState({events:ee,markers:Os(ee),summary:O.summary,hasReplay:!1,offset:ge,durationMs:Math.max(0,or-ge),currentTime:0,status:"paused",focusMode:aS(i??o??O.replaySettings?.defaultMode,s??O.replaySettings?.allowedModes)}),vt(!0);return}let te=N.reduce((Y,ge)=>Math.min(Y,ge.firstT),N[0].firstT),ut=N.reduce((Y,ge)=>Math.max(Y,ge.lastT),0);ze.current=Math.max(0,ut-te),C.setState({events:ee,markers:Os(ee),summary:O.summary,hasReplay:!0,status:"loading",durationMs:ze.current,bufferedMs:0,live:!1,following:!1});let nr=Math.min(N.length,8),Wt=[],Ma=-1;for(let Y=0;Y<nr;Y++){let ge=await jp(N[Y].url,un).catch(()=>[]);if(T)return;if(Wt=Wt.concat(ge),Ma=Y,j.current.add(Y),ge.some(or=>or.type===2)&&Se.current.add(Y),Wt.some(or=>or.type===2))break}if(Wt.length<2||!Wt.some(Y=>Y.type===2)){C.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}A.current=Wt,ue.current=Ma,C.setState({loadProgress:N.length?(Ma+1)/N.length:1}),vt(!0)})().catch(O=>{T||(Re(ee=>ee??{}),C.setState({status:"error",error:O instanceof Error?O.message:"Load failed",errorNotFound:!!O?.notFound}))}),()=>{T=!0}},[e,we]),(0,G.useEffect)(()=>{if(!E)return;let T=C.getState();if(!T.hasReplay)return;let H=I.current;if(!H)return;H.innerHTML="";let O;try{O=new Xk(H,A.current,{speed:T.speed,showCursor:T.showCursor,autoSkim:T.autoSkim,autoSkip:T.autoSkip},{onTime:te=>C.getState()._onTime(te),onFinish:()=>C.getState()._onFinish(),onState:te=>C.setState({status:te}),onSkim:te=>C.setState({isSkimming:te}),onSkip:te=>C.getState()._onSkip(te)})}catch(te){C.setState({status:"error",error:te instanceof Error?te.message:"Replay initialization failed",errorNotFound:!1});return}C.getState()._attachController(O);let ee=O.meta.startTime-T.summary.startedAt;C.setState({offset:ee});let N=C.getState().events.map(te=>te.t-ee).filter(te=>te>=0);N.length&&O.setActivityTimes(N),g?(O.seek(O.meta.totalTime),C.setState({currentTime:O.meta.totalTime})):n!=null&&!y&&!L&&C.getState().seek(n-ee);let ie=new ResizeObserver(()=>O.fit());return ie.observe(H),()=>{ie.disconnect(),C.getState()._detachController()}},[E]),(0,G.useEffect)(()=>{if(!E||g||!y)return;let T=C.getState(),H;y.eventId&&T.events.some(O=>O.id===y.eventId)&&(H=y.eventId),!H&&y.kind&&y.selector&&(H=T.events.find(ee=>ee.type==="custom"&&ee.name===`${y.kind}_click`&&String(ee.props?.selector??"")===y.selector)?.id),!H&&y.kind&&(H=T.markers.find(O=>O.kind===y.kind&&O.ref)?.ref),H?T.select(H):n!=null&&T.seek(T.toRelative(n))},[E]),(0,G.useEffect)(()=>{if(!E||g)return;let T=C.getState();if(!L){T.setClip(null,null,!1);return}let H=Y=>Y.name,O=T.summary?.startedAt??null,ee=Y=>Y!=null&&O!=null?Y-O:void 0,N=L.fromMs??ee(L.fromUtc);if(N==null&&L.fromEvent){let Y=T.events.find(ge=>ge.type==="custom"&&H(ge)===L.fromEvent);Y&&(N=Y.t)}if(N==null){T.setClip(null,null,!1);return}let ie=L.toMs??ee(L.toUtc);if(ie==null&&L.toEvent){let Y=T.events.find(ge=>ge.type==="custom"&&H(ge)===L.toEvent&&ge.t>N);Y&&(ie=Y.t)}(L.toMs!=null||L.toUtc!=null||L.toEvent!=null)&&ie==null&&console.warn(`[obsrviq] clip end ${L.toEvent?`event "${L.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let te=T.toRelative(N),ut=ie!=null?T.toRelative(ie):null,nr=ut!=null&&ut>te?ut:null;T.setClip(te,nr,!!L.loop&&nr!=null),T.seek(te);let Wt=C.getState();(Wt._covers?Wt._covers(te):te<=Wt.bufferedMs+1)?T.play():be.current=!0},[E,L?.fromEvent,L?.toEvent,L?.fromMs,L?.toMs,L?.fromUtc,L?.toUtc,L?.loop]),(0,G.useEffect)(()=>C.subscribe(T=>{T.status==="playing"?be.current=!0:(T.status==="paused"||T.status==="ended")&&(be.current=!1)}),[C]),(0,G.useEffect)(()=>C.subscribe((T,H)=>{T.status==="ended"&&H.status!=="ended"&&f?.()}),[C,f]),(0,G.useEffect)(()=>C.subscribe((T,H)=>{T.status==="error"&&H.status!=="error"&&c?.({reason:T.errorNotFound?"not_found":"error",message:T.error??"Could not load the recording."})}),[C,c]),(0,G.useEffect)(()=>{if(g||!E||!C.getState().hasReplay)return;let T=!1,H=j.current,O=Se.current,ee=Ie.current.some(K=>K.hasSnapshot),N=K=>{let V=Ie.current,Ce=0;for(let xe=0;xe<V.length&&V[xe].firstT<=K;xe++)Ce=xe;return Ce},ie=K=>{let V=K+C.getState().offset,Ce=N(V);if(!H.has(Ce))return!1;for(let xe=Ce;xe>=0&&H.has(xe);xe--)if(O.has(xe))return!0;return!1},te=K=>{let V=N(K+C.getState().offset),Ce=Ie.current;for(let xe=V+1;xe<Ce.length;xe++)if(!H.has(xe))return!0;return!1};C.getState()._setLoaderProbes(ie,te);let ut=()=>{let K=Ie.current,V=-1;for(;H.has(V+1);)V++;let Ce=V>=0?Math.max(0,K[V].lastT-C.getState().offset):0;C.setState({bufferedMs:Math.max(C.getState().bufferedMs,Ce),loadProgress:K.length?H.size/K.length:1})},nr=()=>{let K=C.getState();if(K.controller){if(K.pendingSeek!=null){if(ie(K.pendingSeek)){let V=K.pendingSeek;K.controller.seek(V),be.current?(K.controller.play(V),C.setState({pendingSeek:null,currentTime:V,status:"playing"})):C.setState({pendingSeek:null,currentTime:V,status:"paused"})}return}if(K.status==="buffering"){let V=N(K.currentTime+K.offset);if(!H.has(V))return;no(V)>V?be.current?(K.controller.play(K.currentTime),C.setState({status:"playing"})):C.setState({status:"paused"}):V>=Ie.current.length-1&&C.setState({status:"ended",currentTime:C.getState().durationMs})}}},Wt=async K=>{try{return await jp(K,un)}catch{await new Promise(V=>setTimeout(V,250));try{return await jp(K,un)}catch{return null}}},Ma=6,Y=async(K,V)=>{let Ce=Ie.current,xe=Math.max(0,K),oo=Math.min(Ce.length-1,V),bu=[];for(let Pr=xe;Pr<=oo;Pr++)H.has(Pr)||bu.push(Pr);for(let Pr=0;Pr<bu.length&&!T;Pr+=Ma){let Cu=bu.slice(Pr,Pr+Ma),HS=await Promise.all(Cu.map(dn=>Wt(Ce[dn].url)));if(T)return;let um=C.getState().controller;if(!um)return;for(let dn=0;dn<Cu.length;dn++){let Lu=Cu[dn],js=HS[dn];js&&js.length?(um.appendEvents(js),js.some(WS=>WS.type===2)&&O.add(Lu)):console.warn(`[obsrviq] replay chunk seq ${Ce[Lu]?.seq} unavailable \u2014 skipping`),H.add(Lu)}ut(),nr()}},ge=8,or=async K=>{for(let Ce=K;Ce>=0;Ce--)if(O.has(Ce)){if(ee||K-Ce<=ge)return Ce;break}let V=K;for(;V>=0&&!T;){let Ce=Math.max(0,V-ge+1);await Y(Ce,V);for(let xe=V;xe>=Ce;xe--)if(O.has(xe))return xe;if(Ce===0)return 0;V=Ce-1}return 0},no=K=>{let V=K;for(;H.has(V+1);)V++;return V};return(async()=>{for(;!T&&!C.getState().controller;)await new Promise(K=>setTimeout(K,30));for(;!T;){let K=Ie.current;if(H.size>=K.length)break;let V=C.getState();if(V.pendingSeek!=null&&V.controller){if(!ie(V.pendingSeek)){let xe=N(V.pendingSeek+V.offset),oo=await or(xe);await Y(oo,xe)}nr();continue}if((V.status==="playing"||V.status==="buffering")&&!ie(V.currentTime)){let xe=N(V.currentTime+V.offset),oo=await or(xe);await Y(oo,xe),nr();continue}let Ce=N(V.currentTime+V.offset);if(H.has(Ce)){let xe=no(Ce);if(xe<K.length-1){await Y(xe+1,xe+1);continue}}await new Promise(xe=>setTimeout(xe,200))}T||nr()})(),()=>{T=!0,C.getState()._setLoaderProbes(null,null)}},[g,E]),(0,G.useEffect)(()=>{if(!g||!E)return;let T=!1,H=async()=>{let ee=C.getState().controller;if(!(!ee||T))try{let N=await Uk(e,un,k.current,ke.current);if(T)return;if(k.current=N.maxSeq,N.newRrwebEvents.length){let te=ee.appendEvents(N.newRrwebEvents);C.setState({durationMs:te,bufferedMs:te}),C.getState().following&&(ee.seek(te),C.setState({currentTime:te}))}if(N.newEvents.length){ke.current=N.newEvents.reduce((ut,nr)=>Math.max(ut,nr.t),ke.current);let te=[...C.getState().events,...N.newEvents];C.setState({events:te,markers:Os(te)})}let ie=N.summary.lastEventAt??0;ie&&Date.now()-ie>4e4&&(C.setState({live:!1,following:!1}),T=!0)}catch{}};H();let O=setInterval(()=>{H()},1e3);return()=>{T=!0,clearInterval(O)}},[g,E]),(0,G.useEffect)(()=>{let T=C.getState().controller;T&&requestAnimationFrame(()=>T.fit())},[ln,Er,C]),(0,G.useEffect)(()=>{let T=M.current;if(!T)return;let H=O=>{let ee=O.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let N=C.getState();if((O.metaKey||O.ctrlKey)&&(O.key==="k"||O.key==="K")){O.preventDefault(),N.openPalette(!N.paletteOpen);return}if(!(O.metaKey||O.ctrlKey))switch(O.key){case" ":case"k":O.preventDefault(),N.toggle();break;case"r":N.restart();break;case"ArrowLeft":O.preventDefault(),N.seek(N.currentTime-1e4);break;case"ArrowRight":O.preventDefault(),N.seek(N.currentTime+1e4);break;case"[":N.jumpEvent(-1);break;case"]":N.jumpEvent(1);break;case",":O.shiftKey?Hs(-1):N.step(-1);break;case".":O.shiftKey?Hs(1):N.step(1);break;case"s":case"S":O.shiftKey?N.setAutoSkim(!N.autoSkim):N.setAutoSkip(!N.autoSkip);break;case"l":case"L":N.setLoop(!N.loop);break;case"f":case"F":om.current&&Su();break;case"c":case"C":h?.(N.currentTime+N.offset);break;case"n":case"N":O.preventDefault(),N.nextProblem(O.shiftKey?-1:1);break;case"e":case"E":{let ie=["all","network","console","error","signal","task","nav"],te=ie.indexOf(N.feedFilter);N.setFeedFilter(ie[(te+1)%ie.length]);break}case"z":case"Z":O.shiftKey?N.zoomStack.length&&N.zoomOutTo(N.zoomStack.length-1):N.selectionRange&&N.zoomTo(N.selectionRange[0],N.selectionRange[1]);break;case"x":case"X":N.toggleSnap();break;case"t":case"T":N.setFocusMode(N.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":N.setFocusMode(N.focusMode==="debug"?"balanced":"debug");break;case"`":br(ie=>ie+1),Er==="mid"&&_e(ie=>!ie);break;case">":Hs(1);break;case"<":Hs(-1);break;case"?":it(ie=>!ie);break;case"Escape":N.paletteOpen?N.openPalette(!1):N.selectedEventId?N.select(null):N.zoomStack.length?N.zoomOutTo(N.zoomStack.length-1):Qe?it(!1):X&&_e(!1);break;default:break}};return T.addEventListener("keydown",H),()=>T.removeEventListener("keydown",H)},[Er,Qe,X]);let Hs=(0,G.useCallback)(T=>{let H=C.getState(),O=[.5,1,1.5,2,4,8],ee=O.indexOf(H.speed),N=O[Math.min(O.length-1,Math.max(0,ee+T))]??H.speed;H.setSpeed(N)},[C]),Su=(0,G.useCallback)(()=>{let T=M.current;T&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):T.requestFullscreen?.().catch(()=>{}))},[]);(0,G.useEffect)(()=>{let T=()=>Ia(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",T),()=>document.removeEventListener("fullscreenchange",T)},[]),(0,G.useEffect)(()=>{if(!p)return;let T=-1;return C.subscribe(H=>{H.currentTime!==T&&(T=H.currentTime,p(H.currentTime+H.offset))})},[p,C]),(0,G.useEffect)(()=>{if(Er!=="mid"){_e(!1);return}return C.subscribe((T,H)=>{T.selectedEventId&&T.selectedEventId!==H.selectedEventId&&_e(!0)})},[Er,C]);let im=x,Ws=Er==="wide"&&ln!=="stage",lm=ln==="stage"?null:wu,qS=lm!=null?{...im??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${lm}px`}:im,$S=Ws&&me!=null?{gridTemplateColumns:`minmax(0, 1fr) ${me}px`}:void 0;return(0,je.jsxs)("div",{ref:M,className:`lum-root lum lum-pl lum-strata lum-strata--${Er} lum-strata--${ln} ${v?"lum-pl--embedded":""} ${b??""}`,style:qS,"data-breakpoint":Er,"data-focus":ln,tabIndex:0,children:[(0,je.jsx)(tI,{isFullscreen:yt,onFullscreen:Su,allowFullscreen:$s,sessionId:e,shareUrl:US,apiBaseUrl:t,onHelp:()=>it(T=>!T),onBack:m,backLabel:S,topbarActions:w}),(0,je.jsx)(nI,{}),(0,je.jsxs)("div",{className:"lum-st-stagerow",ref:lt,style:$S,children:[(0,je.jsx)("div",{className:"lum-st-stagecol",ref:D,children:(0,je.jsx)(oI,{ref:I,onRetry:()=>wr(T=>T+1),overlay:(0,je.jsx)(uI,{stageRef:I})})}),Ws&&(0,je.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,je.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:BS,onDoubleClick:()=>sn(null)}),(0,je.jsx)(tS,{feedFocusKey:Sr})]})]}),(0,je.jsx)(pM,{breakpoint:Er,isFullscreen:yt,onFullscreen:Su,allowFullscreen:$s,onResizeStart:ln==="stage"?void 0:zS,onResizeReset:()=>nm(null)}),!Ws&&(0,je.jsx)(Xx,{open:X,onClose:()=>_e(!1),title:"Inspector",children:(0,je.jsx)(tS,{feedFocusKey:Sr})}),!Ws&&!X&&(0,je.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>_e(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,je.jsx)(mM,{}),(0,je.jsx)(gM,{open:Qe,onClose:()=>it(!1)})]})}var ES=F(le(),1);function am({theme:e,className:t,children:r}){let a=typeof e=="string"?e:void 0,n=e&&typeof e=="object"?e:void 0;return(0,ES.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":a,style:n,children:r})}var on=F(le(),1);function yM(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function wM(e,t){let{apiBaseUrl:r,token:a,apiKey:n,userId:o,siteId:i,clip:s}=t,[l,d]=(0,Qr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,i,s?.fromUtc,s?.toUtc,s?.fromEvent,s?.toEvent]);return(0,Qr.useEffect)(()=>{if(!e||!o)return;let f=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});i&&c.set("siteId",i),s?.fromUtc!=null&&s?.toUtc!=null?(c.set("fromUtc",String(s.fromUtc)),c.set("toUtc",String(s.toUtc))):s?.fromEvent&&(c.set("fromEvent",s.fromEvent),s.toEvent&&c.set("toEvent",s.toEvent));let p=r.replace(/\/$/,"");return fetch(`${p}/v1/sessions/locate?${c.toString()}`,{headers:yM(a,n),signal:f.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{f.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(f.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>f.abort()},[e,u,r]),l}var SM={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function PS({sessionId:e,userId:t,siteId:r,apiBaseUrl:a,apiKey:n,token:o,theme:i,startAtMs:s,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:f,allowFullscreen:c,shareUrl:p,onEnded:h,onError:m,fallback:S="message",height:g=560}){let x=!e&&!!t,v=wM(x,{apiBaseUrl:a,token:o,apiKey:n,userId:t,siteId:r,clip:l}),[b,w]=(0,Qr.useState)(null),y=e??v.sessionId;(0,Qr.useEffect)(()=>w(null),[y]);let L=(0,Qr.useRef)(null);if((0,Qr.useEffect)(()=>{let C=null;!e&&!t?C={reason:"error",message:"Provide a sessionId or a userId."}:v.error?C={reason:v.notFound?"not_found":"error",message:v.error}:b&&(C=b),C?L.current!==C.message&&(L.current=C.message,m?.(C)):L.current=null},[e,t,v.error,v.notFound,b]),!y){if(S==="hide")return null;let C=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,on.jsx)(am,{theme:i,className:"lum-widget--replay",children:(0,on.jsx)("div",{style:{height:g},children:(0,on.jsx)("div",{style:SM,children:C})})})}return b&&S==="hide"?null:(0,on.jsx)(am,{theme:i,className:"lum-widget--replay",children:(0,on.jsx)("div",{style:{height:g},children:(0,on.jsx)(_S,{sessionId:y,apiBaseUrl:a,apiKey:n,token:o,startAtMs:s,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:f,allowFullscreen:c,shareUrl:p,onEnded:h,onError:C=>w(C),embedded:!0})})})}var TS=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
138
+ `);l=p.pop()??"";for(let c of p){let f=c.trim();if(!f.startsWith("data:"))continue;let h=f.slice(5).trim();if(h==="[DONE]")return;try{yield JSON.parse(h)}catch{}}}}async function Bk(e,t){let r=t.apiBaseUrl.replace(/\/$/,""),n=await Kr(`${r}/v1/sessions/${e}`,t),a=await Kr(`${r}/v1/sessions/${e}/events`,t);return{detail:n,events:a.items}}async function Xp(e,t){return(await Kr(e,t)).slice().sort((n,a)=>n.timestamp-a.timestamp)}function zk(e){return e.token?{authorization:`Bearer ${e.token}`}:e.apiKey?{authorization:`Bearer ${e.apiKey}`,"x-obsrviq-key":e.apiKey}:{}}async function Kr(e,t){let r=await fetch(e,{headers:zk(t)});if(!r.ok)throw Object.assign(new Error(`${r.status} ${r.statusText} (${e})`),{notFound:r.status===404});return await r.json()}async function Uk(e,t,r){let n=t.apiBaseUrl.replace(/\/$/,""),a=await Kr(`${n}/v1/sessions/${e}`,t),o=await Kr(`${n}/v1/sessions/${e}/events`,t),s=[...a.replayChunks].sort((u,p)=>u.seq-p.seq),i=0,d=(await Promise.allSettled(s.map(async u=>{let p=await Kr(u.url,t);return r?.(++i,s.length),p}))).filter(u=>u.status==="fulfilled").flatMap(u=>u.value).sort((u,p)=>u.timestamp-p.timestamp);return{detail:a,events:o.items,rrwebEvents:d}}async function qk(e,t,r,n){let a=t.apiBaseUrl.replace(/\/$/,""),o=await Kr(`${a}/v1/sessions/${e}`,t),s=o.replayChunks.filter(c=>c.seq>r).sort((c,f)=>c.seq-f.seq),i=r,d=(await Promise.allSettled(s.map(async c=>{let f=await Kr(c.url,t);return c.seq>i&&(i=c.seq),f}))).filter(c=>c.status==="fulfilled").flatMap(c=>c.value).sort((c,f)=>c.timestamp-f.timestamp),p=(await Kr(`${a}/v1/sessions/${e}/events`,t)).items.filter(c=>c.t>n);return{summary:o.summary,newRrwebEvents:d,newEvents:p,maxSeq:i}}var $k=2e3;function Fs(e){let t=[];for(let r of e){let n=null,a="";switch(r.type){case"error":{n="error",a=`${r.name??"Error"}: ${r.message??""}`.slice(0,120);break}case"console":{let o=r;o.level==="error"&&(n="error",a=Hk(o));break}case"network":{let o=r;(o.status===0||o.status>=400||o.timing&&o.timing.duration>$k)&&(n="network",a=`${o.method} ${o.url} \u2014 ${o.status||"failed"}`.slice(0,120));break}case"custom":{let o=r;if(o.name==="rage_click")n="rage",a=`Rage click ${Qw(o)}`;else if(o.name==="dead_click")n="dead",a=`Dead click ${Qw(o)}`;else if(o.props&&o.props.conversion===!0)n="conversion",a=`Conversion: ${o.name}`;else if(o.name==="navigation"||o.name==="pageview")n="nav",a="Page change";else{let s=/^(.+):started$/.exec(o.name??""),i=/^(.+):ended$/.exec(o.name??"");s?(n="task",a=`Task: ${o.props?.task??s[1]}`):i&&(n="task",a=`Task ended: ${o.props?.task??i[1]}`)}break}case"ai":{n="ai",a="AI step";break}}n&&t.push({kind:n,t:r.t,label:a,ref:r.id})}return t.sort((r,n)=>r.t-n.t)}function Hk(e){let t=e.args[0];return t?t.kind==="string"?t.value.slice(0,120):t.kind==="error"?`${t.name}: ${t.message}`.slice(0,120):t.kind==="object"?t.preview.slice(0,120):t.kind==="primitive"?String(t.value):"console.error":"console.error"}function Qw(e){return e.props?.selector??""}var Yw="#6e76f1",Wk=8,jk=2500,Vk=1200,Gk=600,Xk=400,Jw=250,Kk=class{constructor(e,t,r,n){this.root=e,this.cb=n,this.playing=!1,this.raf=0,this.destroyed=!1,this.activityTimes=[],this.extraActivity=[],this.idleGaps=[],this.autoSkim=!1,this.autoSkip=!1,this.skimming=!1,this.replayer=new jl(t,{root:e,speed:r.speed,skipInactive:!1,showWarning:!1,showDebug:!1,mouseTail:r.showCursor?{strokeStyle:Yw}:!1,UNSAFE_replayCanvas:!1});let a=this.replayer.getMetaData();this.meta={startTime:a.startTime,endTime:a.endTime,totalTime:a.totalTime},this.mutationTimes=t.filter(o=>o.type===3).map(o=>o.timestamp-a.startTime).filter(o=>o>=0).sort((o,s)=>o-s),this.userSpeed=r.speed,this.autoSkim=!!r.autoSkim,this.autoSkip=!!r.autoSkip,this.rebuildActivity(),this.replayer.on("finish",()=>{this.playing=!1,this.stopLoop(),this.cb.onFinish()}),this.replayer.on("resize",()=>this.fit()),requestAnimationFrame(()=>this.fit())}appendEvents(e){let t=!1;for(let r of e){try{this.replayer.addEvent(r)}catch{}if(r.timestamp>this.meta.endTime&&(this.meta.endTime=r.timestamp),r.type===3){let n=r.timestamp-this.meta.startTime;n>=0&&(this.mutationTimes.push(n),t=!0)}}return t&&(this.mutationTimes.sort((r,n)=>r-n),this.rebuildActivity()),this.meta.totalTime=Math.max(this.meta.totalTime,this.meta.endTime-this.meta.startTime),this.meta.totalTime}setActivityTimes(e){this.extraActivity=e.filter(t=>t>=0),this.rebuildActivity()}setAutoSkim(e){this.autoSkim=e,e||this.exitSkim()}setAutoSkip(e){this.autoSkip=e}rebuildActivity(){let e=new Set(this.mutationTimes);for(let t of this.extraActivity)e.add(t);this.activityTimes=Array.from(e).sort((t,r)=>t-r),this.recomputeGaps()}recomputeGaps(){let e=this.activityTimes,t=[];for(let r=0;r<e.length-1;r++){let n=e[r],a=e[r+1];a-n>=jk&&t.push({start:n,end:a})}this.idleGaps=t}idleGapAt(e){for(let t of this.idleGaps)if(e>=t.start&&e<t.end)return t;return null}evaluateSkim(e){if(!this.autoSkim||!this.playing){this.skimming&&this.exitSkim();return}let t=this.idleGapAt(e),r=t!=null&&e-t.start>=Vk&&t.end-e>Gk;r&&!this.skimming?this.enterSkim():!r&&this.skimming&&this.exitSkim()}evaluateSkip(e){if(!this.autoSkip||!this.playing)return;let t=this.idleGapAt(e);if(t==null||e-t.start<Xk||t.end-e<=Jw+50||t.end>this.meta.totalTime)return;let r=t.end-Jw,n=Math.max(0,r-e);this.seek(r),this.cb.onSkip?.(n)}enterSkim(){this.skimming=!0,this.replayer.setConfig({speed:Wk}),this.cb.onSkim?.(!0)}exitSkim(){this.skimming&&(this.skimming=!1,this.replayer.setConfig({speed:this.userSpeed}),this.cb.onSkim?.(!1))}fit(){try{let e=this.replayer.iframe,t=this.replayer.wrapper;if(!e||!t)return;let r=Number(e.getAttribute("width"))||e.offsetWidth,n=Number(e.getAttribute("height"))||e.offsetHeight,a=this.root.clientWidth,o=this.root.clientHeight;if(!r||!n||!a||!o)return;let s=Math.min(a/r,o/n,1);t.style.position="absolute",t.style.transformOrigin="top left",t.style.transform=`scale(${s})`,t.style.left=`${Math.max(0,(a-r*s)/2)}px`,t.style.top=`${Math.max(0,(o-n*s)/2)}px`}catch{}}play(e){this.destroyed||(this.replayer.play(e),this.playing=!0,this.cb.onState("playing"),this.startLoop())}pause(e){this.destroyed||(this.exitSkim(),this.replayer.pause(e),this.playing=!1,this.stopLoop(),this.cb.onState("paused"),this.cb.onTime(e??this.currentTime()))}seek(e){this.exitSkim();let t=Math.max(0,Math.min(this.meta.totalTime,e));this.playing?this.replayer.play(t):this.replayer.pause(t),this.cb.onTime(t)}currentTime(){try{return this.replayer.getCurrentTime()}catch{return 0}}setSpeed(e){this.userSpeed=e,this.skimming||this.replayer.setConfig({speed:e})}setShowCursor(e){this.replayer.setConfig({mouseTail:e?{strokeStyle:Yw}:!1})}isPlaying(){return this.playing}startLoop(){this.stopLoop();let e=()=>{if(!this.playing||this.destroyed)return;let t=this.currentTime();this.evaluateSkim(t),this.evaluateSkip(t),this.cb.onTime(this.currentTime()),this.raf=requestAnimationFrame(e)};this.raf=requestAnimationFrame(e)}stopLoop(){this.raf&&cancelAnimationFrame(this.raf),this.raf=0}destroy(){this.destroyed=!0,this.exitSkim(),this.stopLoop();try{this.replayer.pause()}catch{}try{let e=this.replayer.wrapper;e?.parentElement?.removeChild(e)}catch{}}};function ae(e){let t=Math.max(0,Math.floor(e/1e3)),r=t%60,n=Math.floor(t/60)%60,a=Math.floor(t/3600),o=s=>String(s).padStart(2,"0");return a>0?`${a}:${o(n)}:${o(r)}`:`${n}:${o(r)}`}function Qk(e){return e==null?"\u2014":e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:`${(e/(1024*1024)).toFixed(1)} MB`}function fu(e){return e==null?"\u2014":e<1e3?`${Math.round(e)} ms`:`${(e/1e3).toFixed(2)} s`}function Yk(e){let t=Math.max(0,e);if(t<1e3)return`${(t/1e3).toFixed(1)}s`;let r=Math.round(t/1e3);if(r<60)return`${r}s`;let n=Math.floor(r/60),a=r%60;return a?`${n}m ${a}s`:`${n}m`}var Jk=[{id:"stage",label:"Watch",key:"T",hint:"Just play and watch \u2014 full-screen replay, slim scrubber"},{id:"balanced",label:"Balanced",key:"",hint:"Replay + timeline + inspector together"},{id:"debug",label:"Debug",key:"D",hint:"Maximize the timeline + inspector for deep debugging"}];function Zk(){let e=M(a=>a.focusMode),t=M(a=>a.setFocusMode),r=M(a=>a.allowedModes),n=Jk.filter(a=>r.includes(a.id));return n.length<=1?null:(0,zs.jsx)("div",{className:"lum-st-focus",role:"group","aria-label":"Focus mode",children:n.map(a=>(0,zs.jsxs)("button",{className:`lum-st-focus__pill ${e===a.id?"is-active":""}`,"aria-pressed":e===a.id,title:a.key?`${a.hint} (${a.key})`:a.hint,onClick:()=>t(a.id),children:[a.label,a.key&&(0,zs.jsx)("kbd",{className:"lum-st-focus__key",children:a.key})]},a.id))})}async function g0(e){try{if(navigator.clipboard?.writeText)return await navigator.clipboard.writeText(e),!0}catch{}try{let t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.top="-1000px",t.style.opacity="0",document.body.appendChild(t),t.focus(),t.select();let r=document.execCommand("copy");return document.body.removeChild(t),r}catch{return!1}}var x0=["clipFrom","clipTo","clipFromMs","clipToMs","clipFromUtc","clipToUtc","clipLoop"];function v0(e){let{sessionId:t,shareUrl:r,apiBaseUrl:n}=e,a=typeof window<"u"?window.location.href:void 0;if(r)try{if(r.includes(":id"))return new URL(r.replace(":id",encodeURIComponent(t)),a);let s=new URL(r,a);return s.pathname=`${s.pathname.replace(/\/+$/,"")}/sessions/${t}`,s}catch{}try{let s=new URL(window.location.href);if(t&&s.pathname.includes(t))return s}catch{}let o;try{o=new URL(n,window.location.href).origin}catch{o=window.location.origin}return new URL(`/sessions/${t}`,o)}function eI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=nm(),a=M(d=>d.status),[o,s]=(0,It.useState)(null),i=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(i.current),[]);async function l(){let d=n.getState(),u=Math.max(0,Math.round(d.currentTime+d.offset)),p;try{let c=v0({sessionId:e,shareUrl:t,apiBaseUrl:r});c.searchParams.set("t",String(u)),d.selectedEventId?c.searchParams.set("event",d.selectedEventId):c.searchParams.delete("event");for(let f of["focus","sel","live",...x0])c.searchParams.delete(f);p=c.toString()}catch{return}await g0(p)&&(s(ae(u)),clearTimeout(i.current),i.current=setTimeout(()=>s(null),2e3))}return(0,$.jsxs)("button",{className:`lum-st-share ${o?"is-copied":""}`,onClick:l,disabled:a==="loading","aria-label":"Copy a link to this exact moment",title:"Copy a link to this exact moment",children:[o?(0,$.jsx)(Za,{size:13,"aria-hidden":!0}):(0,$.jsx)(Cn,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:o?`Copied @ ${o}`:"Copy link"})]})}function tI({sessionId:e,shareUrl:t,apiBaseUrl:r}){let n=nm(),a=M(y=>y.status),[o,s]=(0,It.useState)(!1),[i,l]=(0,It.useState)(null),[d,u]=(0,It.useState)(null),[p,c]=(0,It.useState)(!1),[f,h]=(0,It.useState)(!1),m=(0,It.useRef)(void 0);(0,It.useEffect)(()=>()=>clearTimeout(m.current),[]);let b=()=>{let y=n.getState();return Math.max(0,Math.round(y.currentTime+y.offset))},g=i!=null&&d!=null&&d>i;function x(){let y=i,w=d;if(y==null||w==null||w<=y)return;let L=n.getState(),C=L.toRelative(y),_=L.toRelative(w);_<=C||(L.setClip(C,_,p),L.seek(C),L.play())}async function v(){let y=i,w=d;if(y==null||w==null||w<=y)return;let L;try{let C=v0({sessionId:e,shareUrl:t,apiBaseUrl:r});for(let _ of["event","t","focus","sel","live",...x0])C.searchParams.delete(_);C.searchParams.set("clipFromMs",String(y)),C.searchParams.set("clipToMs",String(w)),p&&C.searchParams.set("clipLoop","1"),L=C.toString()}catch{return}await g0(L)&&(h(!0),clearTimeout(m.current),m.current=setTimeout(()=>h(!1),2e3))}function S(){l(null),u(null),n.getState().setClip(null,null)}return(0,$.jsxs)("div",{className:"lum-st-clipwrap",children:[(0,$.jsxs)("button",{className:`lum-st-clip ${o?"is-open":""}`,onClick:()=>s(y=>!y),disabled:a==="loading","aria-label":"Clip a segment","aria-expanded":o,title:"Clip a segment to play or share",children:[(0,$.jsx)(Rs,{size:13,"aria-hidden":!0}),(0,$.jsx)("span",{children:"Clip"})]}),o&&(0,$.jsxs)("div",{className:"lum-st-clippop",role:"dialog","aria-label":"Clip a segment",children:[(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"Start"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:i!=null?ae(i):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>l(b()),children:"Set to playhead"})]}),(0,$.jsxs)("div",{className:"lum-st-clippop__row",children:[(0,$.jsx)("span",{className:"lum-st-clippop__lbl",children:"End"}),(0,$.jsx)("span",{className:"lum-st-clippop__val",children:d!=null?ae(d):"\u2014"}),(0,$.jsx)("button",{className:"lum-st-clippop__set",onClick:()=>u(b()),children:"Set to playhead"})]}),(0,$.jsxs)("label",{className:"lum-st-clippop__loop",children:[(0,$.jsx)("input",{type:"checkbox",checked:p,onChange:y=>c(y.target.checked)}),"Loop the clip"]}),(0,$.jsx)("p",{className:"lum-st-clippop__hint",children:"Click a marker (or scrub) to a moment, then capture it."}),(0,$.jsxs)("div",{className:"lum-st-clippop__actions",children:[(0,$.jsxs)("button",{className:"lum-st-clippop__play",disabled:!g,onClick:x,children:[(0,$.jsx)(na,{size:12,"aria-hidden":!0})," Play clip"]}),(0,$.jsxs)("button",{className:"lum-st-clippop__copy",disabled:!g,onClick:v,children:[f?(0,$.jsx)(Za,{size:12,"aria-hidden":!0}):(0,$.jsx)(Cn,{size:12,"aria-hidden":!0}),f?"Copied":"Copy clip link"]}),(0,$.jsx)("button",{className:"lum-st-clippop__clear",onClick:S,"aria-label":"Clear clip",children:(0,$.jsx)(aa,{size:12,"aria-hidden":!0})})]})]})]})}function rI({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0,sessionId:n,shareUrl:a,apiBaseUrl:o,onHelp:s,onBack:i,backLabel:l,topbarActions:d}){let u=M(_=>_.summary),p=M(_=>_.durationMs),c=M(_=>_.events),f=M(_=>_.openPalette),h=M(_=>_.status),m=M(_=>_.live),b=M(_=>_.following),g=M(_=>_.setFollowing),x=(0,It.useMemo)(()=>{let _=0,I=0,D=0,A=0;for(let k of c)if(k.type==="error")_++;else if(k.type==="console"&&k.level==="error")_++;else if(k.type==="network"){let ke=k;(ke.status>=400||ke.status===0)&&I++}else if(k.type==="custom"){let ke=k;ke.name==="rage_click"&&D++,ke.props&&ke.props.conversion===!0&&A++}return{errors:_,netFail:I,rage:D,conversions:A}},[c]),v=u?.conversionNames??[],S=v.length?`Conversions: ${v.join(", ")}`:`${x.conversions} conversions`,y=u?.customSignals??[],w=u?.device,L=u?.id??"\u2014",C=h==="loading";return(0,$.jsxs)("header",{className:"lum-st-topbar",children:[(0,$.jsxs)("div",{className:"lum-st-topbar__left",children:[i&&(0,$.jsx)("button",{className:"lum-st-topbar__back lum-iconbtn",onClick:i,"aria-label":l??"Back",title:l??"Back",children:(0,$.jsx)(Jn,{size:17})}),(0,$.jsx)("span",{className:"lum-st-logo","aria-hidden":!0,children:"\u25C6"}),(0,$.jsx)("strong",{className:"lum-st-topbar__title",children:"Strata"}),(0,$.jsx)("span",{className:"lum-st-topbar__sep",children:"\xB7"}),(0,$.jsx)("span",{className:"lum-st-topbar__sid lum-mono",title:String(L),children:String(L).slice(0,8)}),w&&(0,$.jsxs)("span",{className:"lum-st-topbar__device lum-muted",children:[w.type,w.browser?` \xB7 ${w.browser}`:""]}),u?.userId&&(0,$.jsxs)("span",{className:"lum-st-topbar__user lum-mono",title:`User: ${u.userId}`,children:[(0,$.jsx)(As,{size:12,"aria-hidden":!0})," ",u.userId]}),(0,$.jsx)("span",{className:"lum-st-topbar__clock lum-mono",children:C?"\u2014":ae(p)}),m&&(b?(0,$.jsxs)("span",{className:"lum-st-livebadge",title:"Watching live",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," LIVE"]}):(0,$.jsxs)("button",{className:"lum-st-livebadge lum-st-livebadge--paused",onClick:()=>g(!0),title:"Jump back to the live edge",children:[(0,$.jsx)("span",{className:"lum-st-livebadge__dot","aria-hidden":!0})," GO LIVE"]}))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__badges","aria-label":"Session triage badges",children:[(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--error ${x.errors?"":"is-zero"}`,title:`${x.errors} errors`,children:["\u26A0 ",C?"\u2014":x.errors]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--net ${x.netFail?"":"is-zero"}`,title:`${x.netFail} failed requests`,children:["\u25C6 ",C?"\u2014":x.netFail]}),(0,$.jsxs)("span",{className:`lum-st-badge lum-st-badge--rage ${x.rage?"":"is-zero"}`,title:`${x.rage} rage clicks`,children:["\u21AF ",C?"\u2014":x.rage]}),!C&&x.conversions>0&&(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--conv",title:S,children:["\u2726 ",v.length===1?v[0]:x.conversions]}),!C&&y.map(_=>(0,$.jsxs)("span",{className:"lum-st-badge lum-st-badge--signal",title:`Custom signal: ${_}`,children:["\u2756 ",_]},_))]}),(0,$.jsxs)("div",{className:"lum-st-topbar__right",children:[d,!m&&(0,$.jsx)(tI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),!m&&(0,$.jsx)(eI,{sessionId:n,shareUrl:a,apiBaseUrl:o}),(0,$.jsxs)("button",{className:"lum-st-cmdk",onClick:()=>f(!0),title:"Command palette (\u2318K)",children:[(0,$.jsx)(xs,{size:13}),(0,$.jsx)("span",{children:"K"})]}),(0,$.jsx)(Zk,{}),(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":"Keyboard shortcuts (?)",onClick:s,title:"Shortcuts (?)",children:(0,$.jsx)(bs,{size:16})}),r&&(0,$.jsx)("button",{className:"lum-iconbtn","aria-label":e?"Exit fullscreen":"Fullscreen",onClick:t,title:"Fullscreen (F)",children:e?(0,$.jsx)(ra,{size:16}):(0,$.jsx)(ta,{size:16})})]})]})}var nI=8e3,aI=2e3;function oI(e){if(!e)return"";try{return new URL(e).pathname||"/"}catch{return e.split("?")[0]??e}}function sI(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return!0;if(e.type==="network"){let t=e;return t.status===0||t.status>=400}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click"||t.props&&t.props.conversion===!0)return!0}return!1}function am(e,t){if(!e.length)return[];let r=[...e].sort((d,u)=>d.t-u.t),n=new Set([0]),a=0;for(let d of r)d.t-a>nI&&n.add(d.t),(d.type==="custom"&&["navigation","pageview"].includes(d.name)||d.type==="perf"&&d.metric==="navigation")&&n.add(d.t),a=d.t;let o=[...n].sort((d,u)=>d-u),s=[...o.slice(1),Math.max(t,a)+1];for(let d=0;d<o.length;d++){let u=o[d],p=s[d],c=r.find(f=>f.t>=u&&f.t<p&&sI(f));c&&c.t-u>aI&&n.add(c.t)}let i=[...n].sort((d,u)=>d-u);i.push(Math.max(t,a)+1);let l=[];for(let d=0;d<i.length-1;d++){let u=i[d],p=i[d+1],c=r.filter(S=>S.t>=u&&S.t<p),f={errors:0,network:0,rage:0,dead:0,conversion:0},h="",m=c.length===0;for(let S of c)if(S.type==="error")f.errors++;else if(S.type==="console"&&S.level==="error")f.errors++;else if(S.type==="network"){f.network++;let y=S;(y.status===0||y.status>=400)&&f.errors++,y.url&&(h=y.url)}else if(S.type==="custom"){let y=S;y.name==="rage_click"?f.rage++:y.name==="dead_click"&&f.dead++,y.props&&y.props.conversion===!0&&f.conversion++}let b,g;d===0?(b="start",g="Session start"):f.conversion>0?(b="conversion",g="Converted"):f.errors>0?(b="error",g="Hit an error"):f.rage>0||f.dead>0?(b="frustration",g="Got stuck"):m?(b="idle",g="Paused"):f.network>3?(b="load",g="Loaded data"):(b="browse",g=h?`Browsed ${oI(h)}`:"Browsing");let x=[];f.errors&&x.push(`${f.errors} error${f.errors>1?"s":""}`),f.rage&&x.push(`${f.rage} rage`),f.network&&x.push(`${f.network} request${f.network>1?"s":""}`);let v=x.join(" \xB7 ")||`${Math.round((p-u)/1e3)}s`;l.push({id:`ch_${d}`,startT:u,endT:p,kind:b,title:g,subtitle:v,counts:f})}return l}function iI(){let e=M(h=>h.events),t=M(h=>h.markers),r=M(h=>h.durationMs),n=M(h=>h.offset),a=M(h=>h.summary),o=M(h=>h.seek),s=M(h=>h.select),i=M(h=>h.toRelative),[l,d]=(0,xu.useState)(!1),{text:u,clauses:p}=(0,xu.useMemo)(()=>{let h=a?.aiStory;if(h&&h.summary)return{text:h.summary,clauses:h.clauses.map(L=>({text:L.text,t:L.t,ref:L.ref}))};if(!e.length)return{text:"",clauses:[]};let m=am(e,r+n),b=[],g=t.find(L=>L.kind==="rage"),x=t.find(L=>L.kind==="error"),v=t.find(L=>L.kind==="network"),S=t.find(L=>L.kind==="conversion"),y=[];x&&(y.push("Hit an error"),b.push({text:`error @ ${ae(i(x.t))}`,t:i(x.t),ref:x.ref})),v&&(y.push("a failed request"),b.push({text:`request @ ${ae(i(v.t))}`,t:i(v.t),ref:v.ref})),g&&(y.push("rage-clicked while stuck"),b.push({text:`rage @ ${ae(i(g.t))}`,t:i(g.t),ref:g.ref})),S&&(y.push("then converted"),b.push({text:`conversion @ ${ae(i(S.t))}`,t:i(S.t),ref:S.ref}));let w;if(y.length?w=`This visitor ${y.join(", ")}.`:m.length>1?w=`Calm session: ${m.slice(0,3).map(C=>C.title.toLowerCase()).join(" \u2192 ")}.`:w="",b.length<2)for(let L of m.slice(1,4))b.push({text:`${L.title} ${ae(i(L.startT))}`,t:i(L.startT)});return{text:w,clauses:b}},[e,t,r,n,i,a]);if(!u&&!a)return(0,Dt.jsxs)("div",{className:"lum-st-synopsis lum-st-synopsis--empty",children:[(0,Dt.jsx)(Zt,{size:13,"aria-hidden":!0})," ",(0,Dt.jsx)("span",{className:"lum-muted",children:"No AI summary for this session."})]});let c=u||"A quiet, uneventful session.",f=c.length>90;return(0,Dt.jsxs)("div",{className:`lum-st-synopsis ${l?"is-expanded":""}`,role:"note","aria-label":"Session synopsis",children:[(0,Dt.jsx)("span",{className:"lum-st-synopsis__icon","aria-hidden":!0,children:(0,Dt.jsx)(Zt,{size:13})}),(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__text",title:f?c:void 0,onClick:f?()=>d(h=>!h):void 0,"aria-expanded":f?l:void 0,children:c}),f&&(0,Dt.jsx)("button",{type:"button",className:"lum-st-synopsis__more",onClick:()=>d(h=>!h),"aria-label":l?"Collapse summary":"Read full summary",title:l?"Collapse":"Read full summary",children:l?(0,Dt.jsx)(gs,{size:14}):(0,Dt.jsx)(Yn,{size:14})}),(0,Dt.jsx)("span",{className:"lum-st-synopsis__chips",children:p.map((h,m)=>(0,Dt.jsxs)("button",{className:"lum-st-chip",onClick:()=>{h.ref?s(h.ref):o(h.t)},children:["\u27F6 ",h.text]},m))})]})}var lI=(0,y0.forwardRef)(function({onRetry:t,overlay:r},n){let a=M(c=>c.status),o=M(c=>c.hasReplay),s=M(c=>c.error),i=M(c=>c.loadProgress),l=M(c=>!!c.controller),d=M(c=>c.isSkimming),u=M(c=>c.isSkipping),p=M(c=>c.lastSkipMs);return(0,Te.jsxs)("div",{className:"lum-st-monitor",children:[(0,Te.jsxs)("div",{className:"lum-st-monitor__frame",children:[(0,Te.jsx)("div",{ref:n,className:"lum-pl-mount lum-st-mount","aria-label":"Session replay",role:"img"}),r,d&&(0,Te.jsxs)("div",{className:"lum-st-skimbadge","aria-live":"polite",children:[(0,Te.jsx)(oa,{size:13,"aria-hidden":!0})," Skimming idle \xB7 8\xD7"]}),u&&!d&&(0,Te.jsxs)("div",{className:"lum-st-skimbadge lum-st-skimbadge--skip","aria-live":"polite",children:[(0,Te.jsx)(ea,{size:13,"aria-hidden":!0})," Skipped idle (",Yk(p),")"]}),(0,Te.jsx)("div",{className:"lum-st-monitor__edge","aria-hidden":!0})]}),a==="loading"&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsxs)("div",{className:"lum-pl-loading",children:[(0,Te.jsx)(Gc,{width:"70%",height:18}),(0,Te.jsx)(Gc,{width:"90%",height:120}),(0,Te.jsx)("div",{className:"lum-pl-progress",children:(0,Te.jsx)("div",{className:"lum-pl-progress__bar",style:{width:`${Math.round(i*100)}%`}})}),(0,Te.jsx)("span",{className:"lum-muted",children:"Loading replay\u2026"})]})}),a==="buffering"&&o&&l&&(0,Te.jsxs)("div",{className:"lum-st-buffering","aria-live":"polite",children:[(0,Te.jsx)("span",{className:"lum-st-buffering__spinner","aria-hidden":!0}),(0,Te.jsx)("span",{children:"Buffering\u2026"})]}),a==="error"&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsx)(ev,{title:"We couldn't load this replay.",action:t?(0,Te.jsx)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:t,children:"Retry"}):void 0,children:s??"View the console and network logs instead."})}),a!=="loading"&&a!=="error"&&!o&&(0,Te.jsx)("div",{className:"lum-pl-overlay",children:(0,Te.jsx)(Jt,{title:"This session wasn't recorded for replay.",icon:(0,Te.jsx)(Cs,{size:28}),children:"You can still review its console and network activity on the timeline."})})]})});function uI(e){try{let t=e.replayer.wrapper;if(!t)return{scale:1,left:0,top:0};let r=t.style.transform||"",n=/scale\(([0-9.]+)\)/.exec(r),a=n?parseFloat(n[1]):1,o=parseFloat(t.style.left||"0")||0,s=parseFloat(t.style.top||"0")||0;return{scale:a,left:o,top:s}}catch{return{scale:1,left:0,top:0}}}function dI(e,t,r,n){if(!e||!t)return{x:0,y:0,ok:!1};let{scale:a,left:o,top:s}=uI(e);return{x:o+r*a,y:s+n*a,ok:!0}}function cI(e){if(!e)return null;let t=e.x??e.clientX??e.pageX,r=e.y??e.clientY??e.pageY;return typeof t=="number"&&typeof r=="number"?{x:t,y:r}:null}function fI({stageRef:e}){let t=M(u=>u.controller),r=M(u=>u.currentTime),n=M(u=>u.events),a=M(u=>u.offset),o=(0,w0.useMemo)(()=>{let u=r+a,p=null,c=700;for(let f of n){let h=Math.abs(f.t-u);h>c||(f.type==="custom"&&f.name==="rage_click"?(p={kind:"rage",props:f.props},c=h):f.type==="error"&&(p={kind:"error"},c=h))}return p},[n,r,a]);if(!o)return null;let s=cI(o.props),i=s?dI(t,e.current,s.x,s.y):null,d=i?.ok?{left:`${i.x}px`,top:`${i.y}px`}:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"};return(0,uu.jsx)("div",{className:"lum-st-overlay","aria-hidden":!0,children:(0,uu.jsx)("div",{className:`lum-st-callout lum-st-callout--${o.kind}`,style:d,children:(0,uu.jsx)("span",{className:"lum-st-callout__ring"})})})}function pI(e){let t=M(n=>n.currentTime),r=-1;for(let n=0;n<e.length&&e[n]<=t+1;n++)r=n;return r}function mI(e,t){let r=(0,vu.useRef)(null);return(0,vu.useEffect)(()=>{if(!t||e<0)return;r.current?.querySelector(`[data-row="${e}"]`)?.scrollIntoView({block:"nearest"})},[e,t]),r}function S0(e){return e.status===0||e.status>=500?"error":e.status>=400?"warn":e.status>=300?"info":"default"}function C0(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function hI({n:e,relStart:t}){let[r,n]=(0,b0.useState)("headers"),a=["headers","payload","response","timing"];return(0,Y.jsxs)("div",{className:"lum-pl-detail",children:[(0,Y.jsxs)("div",{className:"lum-pl-detail__head lum-mono",children:[(0,Y.jsx)(Wn,{tone:S0(e),children:e.status||(e.error??"ERR")})," ",e.method," ",(0,Y.jsxs)("span",{className:"lum-muted",children:["@ ",ae(t)]}),(0,Y.jsx)("div",{className:"lum-pl-detail__url",children:e.url})]}),(0,Y.jsx)("div",{className:"lum-pl-tabs2",children:a.map(o=>(0,Y.jsx)("button",{className:`lum-pl-tab2 ${r===o?"is-active":""}`,onClick:()=>n(o),children:o[0].toUpperCase()+o.slice(1)},o))}),r==="headers"&&(0,Y.jsxs)("div",{className:"lum-pl-kv lum-mono",children:[(0,Y.jsx)("h5",{children:"General"}),(0,Y.jsx)(su,{k:"URL",v:e.url}),(0,Y.jsx)(su,{k:"Method",v:e.method}),(0,Y.jsx)(su,{k:"Status",v:String(e.status)}),(0,Y.jsx)(su,{k:"Initiator",v:e.initiator}),(0,Y.jsx)("h5",{children:"Request headers"}),Zw(e.requestHeaders),(0,Y.jsx)("h5",{children:"Response headers"}),Zw(e.responseHeaders)]}),r==="payload"&&(0,Y.jsx)(e0,{label:"Request body",body:e.requestBody}),r==="response"&&(0,Y.jsx)(e0,{label:"Response",body:e.responseBody}),r==="timing"&&(0,Y.jsx)(gI,{n:e})]})}function su({k:e,v:t}){return(0,Y.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,Y.jsx)("span",{className:"lum-muted",children:e}),(0,Y.jsx)("span",{className:"lum-pl-kv__val",children:t})]})}function Zw(e){return!e||Object.keys(e).length===0?(0,Y.jsx)("div",{className:"lum-muted",children:"None captured."}):(0,Y.jsx)(Y.Fragment,{children:Object.entries(e).map(([t,r])=>(0,Y.jsxs)("div",{className:"lum-pl-kv__row",children:[(0,Y.jsx)("span",{className:"lum-muted",children:t}),(0,Y.jsx)("span",{className:"lum-pl-kv__val",children:r==="redacted"?(0,Y.jsx)("em",{className:"lum-pl-redacted",children:"redacted"}):r})]},t))})}function e0({label:e,body:t}){return t?(0,Y.jsxs)("div",{children:[(0,Y.jsxs)("h5",{children:[e,t.contentType?` \xB7 ${t.contentType}`:""]}),t.redacted&&(0,Y.jsx)("div",{className:"lum-pl-redacted",children:"Contains redacted fields."}),(0,Y.jsxs)("pre",{className:"lum-pl-json",children:[xI(t.preview),t.truncated?`
139
+ \u2026 (truncated)`:""]})]}):(0,Y.jsx)("div",{className:"lum-muted",children:"Bodies aren't captured by default (privacy). Enable captureNetworkBodies to see them."})}function gI({n:e}){let t=e.timing,r=[["DNS",t.dns,"DNS lookup \u2014 resolving the hostname to an IP address. Happens only on the first request to a host; shows \u201C\u2014\u201D when the connection is reused (keep-alive)."],["TCP",t.tcp,"TCP handshake \u2014 opening the network connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TLS",t.tls,"TLS handshake \u2014 negotiating the secure HTTPS connection. Happens only on the first request to a host; \u201C\u2014\u201D when the connection is reused."],["TTFB",t.ttfb,"Time to First Byte \u2014 from the request being sent to the first response byte arriving (server processing + network round-trip)."],["Download",t.download,"Download \u2014 receiving the response body, from the first byte to the last."]],n=t.duration||1;return(0,Y.jsxs)("div",{className:"lum-pl-timing",children:[r.map(([a,o,s])=>(0,Y.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,Y.jsxs)("span",{className:"lum-muted lum-pl-timing__label",children:[(0,Y.jsx)(jc,{content:s,children:(0,Y.jsx)(ws,{size:12,className:"lum-pl-timing__i","aria-label":`${a}: ${s}`})}),a]}),(0,Y.jsx)("div",{className:"lum-pl-timing__bar",children:(0,Y.jsx)("span",{style:{width:`${Math.min(100,(o??0)/n*100)}%`}})}),(0,Y.jsx)("span",{className:"lum-mono",children:fu(o)})]},a)),(0,Y.jsxs)("div",{className:"lum-pl-timing__row",children:[(0,Y.jsx)("span",{className:"lum-muted",children:"Total"}),(0,Y.jsx)("div",{}),(0,Y.jsx)("span",{className:"lum-mono",children:fu(t.duration)})]})]})}function xI(e){if(!e)return"";try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function vI({ev:e}){let t=M(i=>i.events),r=M(i=>i.rewindToCause),n=M(i=>i.selectAndSeek),a=M(i=>i.toRelative),o=(0,L0.useMemo)(()=>{let i=null;for(let l of t)l.t>e.t||l.t<e.t-4e3||(l.type==="network"||l.type==="custom"&&["rage_click","dead_click","click"].includes(l.name??""))&&(!i||l.t>i.t)&&(i=l);return i},[t,e]),s=i=>{if(i.type==="network"){let d=i;return`${d.method} ${d.url} \xB7 ${d.status||"failed"}`}let l=i;return`${l.name??"interaction"} ${l.props?.selector??""}`};return(0,et.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,et.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,et.jsx)(Wn,{tone:"error",children:e.name})," ",(0,et.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ae(a(e.t))]}),(0,et.jsx)("div",{className:"lum-st-err__msg lum-mono",children:e.message})]}),(0,et.jsxs)("div",{className:"lum-st-inspactions",children:[(0,et.jsxs)("button",{className:"lum-btn lum-btn--primary lum-btn--sm",onClick:()=>r(e.id),children:[(0,et.jsx)(_s,{size:13})," Rewind 5s"]}),o&&(0,et.jsxs)("button",{className:"lum-btn lum-btn--ghost lum-btn--sm",onClick:()=>n(o.id),children:[(0,et.jsx)(Cn,{size:13})," Likely cause"]})]}),o&&(0,et.jsxs)("div",{className:"lum-st-cause lum-mono",children:[(0,et.jsx)("span",{className:"lum-muted",children:"caused by \u2192"})," ",s(o)," ",(0,et.jsxs)("span",{className:"lum-muted",children:["@ ",ae(a(o.t))]})]}),(0,et.jsx)("h5",{className:"lum-st-detail__h",children:"Stack trace"}),e.stack?(0,et.jsx)("pre",{className:"lum-pl-stack",children:e.stack}):(0,et.jsx)("div",{className:"lum-muted",children:"No stack captured."}),e.source?.url&&(0,et.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}var yI={error:{color:"var(--lum-error)",glyph:"\u2715"},warn:{color:"var(--lum-warn)",glyph:"\u26A0"},info:{color:"var(--lum-info)",glyph:"\u2139"},log:{color:"var(--lum-muted)",glyph:"\u203A"},debug:{color:"var(--lum-muted)",glyph:"\xB7"}};function wI({ev:e}){let[t,r]=(0,k0.useState)(!1),n=yI[e.level];return(0,Xe.jsxs)("div",{className:`lum-pl-row lum-pl-row--console lum-pl-row--${e.level}`,style:{borderBottom:"none"},children:[(0,Xe.jsx)("span",{className:"lum-pl-row__lvl",style:{color:n.color},"aria-hidden":!0,children:n.glyph}),(0,Xe.jsx)("span",{}),(0,Xe.jsxs)("div",{className:"lum-pl-row__msg lum-mono",children:[e.args.map((a,o)=>(0,Xe.jsx)(bI,{arg:a,expanded:t,onToggle:()=>r(s=>!s),search:""},o)),e.level==="error"&&e.stack&&(0,Xe.jsx)("pre",{className:"lum-pl-stack",children:e.stack})]}),e.source?.url&&(0,Xe.jsxs)("span",{className:"lum-pl-row__src lum-muted",title:e.source.url,children:[CI(e.source.url),":",e.source.line]})]})}function bI({arg:e,expanded:t,onToggle:r,search:n}){switch(e.kind){case"primitive":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--prim",children:[String(e.value)," "]});case"string":return(0,Xe.jsxs)("span",{className:"lum-pl-arg",children:[LI(e.value,n),e.truncated?"\u2026":""," "]});case"error":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--err",children:[e.name,": ",e.message," "]});case"dom":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--dom",children:[e.selector," "]});case"object":return(0,Xe.jsxs)("span",{className:"lum-pl-arg lum-pl-arg--obj",children:[(0,Xe.jsxs)("button",{className:"lum-pl-arg__toggle",onClick:r,children:[t?"\u25BE":"\u25B8"," ",e.preview]}),t&&e.json&&(0,Xe.jsx)("pre",{className:"lum-pl-json",children:SI(e.json)})," "]});default:return null}}function SI(e){try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}}function CI(e){try{return new URL(e).pathname.split("/").pop()||e}catch{return e.split("/").pop()||e}}function LI(e,t){if(!t)return e;let r=e.toLowerCase().indexOf(t.toLowerCase());return r<0?e:(0,Xe.jsxs)(Xe.Fragment,{children:[e.slice(0,r),(0,Xe.jsx)("mark",{className:"lum-pl-mark",children:e.slice(r,r+t.length)}),e.slice(r+t.length)]})}function kI({ev:e}){let t=M(n=>n.toRelative),r=e.level==="error"?"error":e.level==="warn"?"warn":"info";return(0,Ln.jsxs)("div",{className:"lum-pl-detail lum-st-inspbody",children:[(0,Ln.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Ln.jsx)(Wn,{tone:r,children:e.level})," ",(0,Ln.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ae(t(e.t))]})]}),(0,Ln.jsx)(wI,{ev:e}),e.source?.url&&(0,Ln.jsxs)("div",{className:"lum-st-err__src lum-muted lum-mono",children:[e.source.url,":",e.source.line??""]})]})}function II(){let e=M(a=>a.controller),t=M(a=>a.currentTime),[r,n]=(0,yu.useState)("");return(0,yu.useEffect)(()=>{let o=e?.replayer.iframe?.contentDocument;if(!o?.body){n("");return}n(I0(o.body,0).slice(0,2e4))},[e,t]),e?(0,Bs.jsx)("div",{className:"lum-pl-panel lum-pl-rows",children:(0,Bs.jsx)("pre",{className:"lum-pl-inspector lum-mono",children:r||"Reading DOM\u2026"})}):(0,Bs.jsx)(Jt,{title:"No replay",children:"The DOM inspector needs replay data."})}function I0(e,t){if(t>6)return"";let r=" ".repeat(t),n=e.tagName.toLowerCase(),a=e.id?`#${e.id}`:"",o=e.className&&typeof e.className=="string"?"."+e.className.trim().split(/\s+/).slice(0,2).join("."):"",s=`${r}<${n}${a}${o}>
140
+ `,i=Array.from(e.children).slice(0,30);for(let l of i)s+=I0(l,t+1);return s}function _I(){return(0,Bs.jsx)(Jt,{title:"State capture is off for this site",children:"Enable the framework-state plugin (Redux / Zustand / Pinia) to see state snapshots on the same clock."})}function MI(){return(0,Jp.jsx)("div",{className:"lum-st-inspbody",children:(0,Jp.jsx)(II,{})})}function RI(){return(0,Zp.jsx)("div",{className:"lum-st-inspbody",children:(0,Zp.jsx)(_I,{})})}var _0=/^(.+):(started|ended)$/;function EI(e){return _0.test(e)}function PI(e){let t=new Map,r=[];for(let n of e){if(n.type!=="custom")continue;let a=n,o=a.props??{};if(o.conversion===!0)continue;let s=_0.exec(a.name);if(!s)continue;let i=typeof o.task=="string"&&o.task?o.task:s[1],l=o.spanId!=null?String(o.spanId):`${i}@${n.t}`,d=t.get(l);d||(d={spanId:l,task:i},t.set(l,d),r.push(l)),s[2]==="started"?(d.startT=n.t,d.startEvent=a):(d.endT=n.t,d.endEvent=a)}return r.map(n=>t.get(n))}function NI(e){let t=e.startT!=null,r=e.endT!=null,n=t?e.startT:e.endT??0,a=t&&r?Math.max(0,e.endT-e.startT):void 0,o=e.startEvent??e.endEvent,s=a!=null?fu(a):t?"running\u2026":"ended (no start)";return{id:o.id,t:n,kind:"task",lane:"task",severity:"info",title:e.task,subtitle:s,durationMs:a,spanId:e.spanId,running:t&&!r,raw:o}}function TI(e){let t=e.args[0];return t?t.kind==="string"?t.value:t.kind==="error"?`${t.name}: ${t.message}`:t.kind==="object"?t.preview:t.kind==="primitive"?String(t.value):t.kind==="dom"?t.selector:`console.${e.level}`:`console.${e.level}`}function Kp(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}var AI=new Set(["_tag","identify","metadata","_click","_scroll"]);function om(e){let t=[];for(let r of PI(e))t.push(NI(r));for(let r of e)switch(r.type){case"console":{let n=r,a=n.level==="error"?"error":n.level==="warn"?"warn":n.level==="info"?"info":"muted";t.push({id:r.id,t:r.t,kind:"console",lane:"console",severity:a,title:TI(n),subtitle:n.source?.url?`${Kp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"network":{let n=r,a=n.status===0||n.status>=400,o=n.timing?.duration>2e3;t.push({id:r.id,t:r.t,kind:"network",lane:"network",severity:a?"error":o?"warn":n.ok?"ok":"muted",title:`${n.method} ${Kp(n.url)}`,subtitle:`${n.status||n.error||"failed"} \xB7 ${Math.round(n.timing?.duration??0)}ms`,durationMs:n.timing?.duration,raw:r});break}case"error":{let n=r;t.push({id:r.id,t:r.t,kind:"error",lane:"error",severity:"error",title:`${n.name}: ${n.message}`,subtitle:n.source?.url?`${Kp(n.source.url)}:${n.source.line??""}`:void 0,raw:r});break}case"perf":{let n=r;if(n.rating!=="poor")break;t.push({id:r.id,t:r.t,kind:"perf",lane:"console",severity:"warn",title:`${n.metric} ${Math.round(n.value)}${n.metric==="CLS"?"":"ms"}`,subtitle:"poor",raw:r});break}case"custom":{let n=r;if(!!!(n.props&&n.props.conversion===!0)&&(EI(n.name)||AI.has(n.name)))break;n.name==="rage_click"?t.push({id:r.id,t:r.t,kind:"rage",lane:"interaction",severity:"warn",title:"Rage click",subtitle:t0(n),raw:r}):n.name==="dead_click"?t.push({id:r.id,t:r.t,kind:"dead",lane:"interaction",severity:"muted",title:"Dead click",subtitle:t0(n),raw:r}):n.name==="navigation"||n.name==="pageview"?t.push({id:r.id,t:r.t,kind:"nav",lane:"nav",severity:"info",title:"Page change",raw:r}):n.props&&n.props.conversion===!0?t.push({id:r.id,t:r.t,kind:"conversion",lane:"interaction",severity:"ok",title:`Conversion: ${n.name}`,raw:r}):t.push({id:r.id,t:r.t,kind:"custom",lane:"interaction",severity:"muted",title:n.name,raw:r});break}default:break}return t.sort((r,n)=>r.t-n.t)}function t0(e){return e.props?.selector??""}function DI(e,t,r){let n=e[e.length-1];return n||[t,r]}function em(e,t,r){let[n,a]=t,o=a-n;return o<=0?0:(e-n)/o*r}function M0(e,t,r){let[n,a]=t,o=a-n;return r<=0?n:n+e/r*o}function pu(e,t){let[r,n]=t,a=n-r;return a<=0?0:Math.max(0,Math.min(1,(e-r)/a))}function OI(e,t,r,n,a,o=200){let[s,i]=e,l=i-s,d=Math.max(o,Math.min(a-n,l*r)),u=l>0?(t-s)/l:.5,p=t-u*d,c=p+d;return p<n&&(p=n,c=p+d),c>a&&(c=a,p=c-d),p=Math.max(n,p),c=Math.min(a,c),c-p>=a-n-1?null:[p,c]}function FI(){let e=(0,In.useRef)(null),[t,r]=(0,In.useState)(0);return(0,In.useEffect)(()=>{let n=e.current;if(!n)return;let a=new ResizeObserver(()=>r(n.clientWidth));return a.observe(n),r(n.clientWidth),()=>a.disconnect()},[]),{ref:e,width:t}}function R0(){let e=M(n=>n.offset),t=M(n=>n.durationMs),r=M(n=>n.zoomStack);return(0,In.useMemo)(()=>DI(r,e,e+t),[r,e,t])}var r0=28,Qp=150,BI=6e4;function zI(e){let t=e.timing.duration||0,{dns:r=0,tcp:n=0,tls:a=0,ttfb:o=0,download:s=0}=e.timing,i=r+n+a+o+s;return t<=0||i<=0?[{cls:"tone",ms:Math.max(t,1)}]:[{cls:"blocked",ms:Math.max(0,t-i)},{cls:"dns",ms:r},{cls:"connect",ms:n},{cls:"ssl",ms:a},{cls:"wait",ms:o},{cls:"download",ms:s}].filter(d=>d.ms>0)}function UI(e){let t=Math.max(1e3,e),r=Math.pow(10,Math.floor(Math.log10(t/1e3))),n=t/1e3/r;return(n>=5?5:n>=2?2:1)*r*1e3}function qI(){let e=M(C=>C.events),t=M(C=>C.offset),r=M(C=>C.toRelative),n=M(C=>C.selectAndSeek),a=M(C=>C.selectedEventId),o=M(C=>C.zoomStack),s=R0(),i=(0,Ke.useRef)(null),l=(0,Ke.useRef)(null),[d,u]=(0,Ke.useState)(600),p=(0,Ke.useCallback)(C=>{if(l.current?.disconnect(),l.current=null,i.current=C,!C)return;let _=()=>u(Math.max(120,C.clientWidth-Qp));_();let I=new ResizeObserver(_);I.observe(C),l.current=I},[]),c=(0,Ke.useMemo)(()=>e.filter(C=>C.type==="network").slice().sort((C,_)=>C.t-_.t),[e]),f=(0,Ke.useMemo)(()=>{if(!c.length)return null;let C=1/0,_=-1/0;for(let I of c){let D=r(I.t),A=D+(I.timing.duration||0);D<C&&(C=D),A>_&&(_=A)}return[C,Math.max(C+1,_)]},[c,r]),h=o.length>0,m=h?s[0]-t:f?.[0]??0,b=h?Math.max(1,s[1]-s[0]):Math.max(1,(f?.[1]??1)-(f?.[0]??0))*1.02,g=h?b:Math.min(b,BI),x=d/g,v=b*x,S=v>d+1,y=(0,Ke.useMemo)(()=>c.map(C=>{let _=r(C.t),I=_+(C.timing.duration||0);return{id:C.id,n:C,start:_,end:I,tone:S0(C),leftPx:(_-m)*x,widthPx:Math.max((I-_)*x,2)}}),[c,r,m,x]),w=c.filter(C=>C.status===0||C.status>=400).length,L=c.reduce((C,_)=>C+(_.responseSize??0),0);return c.length?(0,_e.jsxs)("div",{className:"lum-wf",children:[(0,_e.jsxs)("div",{className:"lum-wf__toolbar lum-mono lum-muted",children:[c.length," requests \xB7 ",Qk(L)," \xB7 ",w," failed",S&&(0,_e.jsxs)("span",{className:"lum-wf__hint",children:[" \xB7 ",Math.round(g/1e3),"s window \xB7 scroll \u2192"]})]}),(0,_e.jsx)("div",{className:"lum-wf__scroll",ref:p,children:(0,_e.jsxs)("div",{className:"lum-wf__grid",style:{width:Qp+v},children:[(0,_e.jsx)($I,{scrollRef:i,t0:m,pxPerMs:x,windowMs:g,vpTrackW:d,trackW:v}),(0,_e.jsxs)("div",{className:"lum-wf__rows",children:[y.map((C,_)=>(0,_e.jsxs)("div",{"data-row":_,className:`lum-wf__row lum-wf__row--${C.tone} ${C.id===a?"is-selected":""}`,style:{width:Qp+v},onClick:()=>n(C.id),title:C.n.url,children:[(0,_e.jsxs)("div",{className:"lum-wf__label lum-mono",children:[(0,_e.jsx)("span",{className:`lum-wf__dot lum-wf__dot--${C.tone}`,"aria-hidden":!0}),(0,_e.jsx)("span",{className:"lum-wf__name",children:C0(C.n.url)}),(0,_e.jsx)("span",{className:"lum-wf__method lum-muted",children:C.n.method}),(0,_e.jsx)("span",{className:"lum-wf__time lum-muted",children:fu(C.n.timing.duration)})]}),(0,_e.jsx)("div",{className:"lum-wf__track",style:{width:v},children:(0,_e.jsx)("span",{className:`lum-wf__bar lum-wf__bar--${C.tone}`,style:{left:C.leftPx,width:C.widthPx},children:zI(C.n).map((I,D)=>(0,_e.jsx)("span",{className:`lum-wf__seg lum-wf__seg--${I.cls}`,style:{flexGrow:I.ms}},D))})})]},C.id)),(0,_e.jsx)(HI,{bars:y,t0:m,pxPerMs:x,vpTrackW:d,scrollRef:i})]})]})})]}):(0,_e.jsx)(Jt,{title:"No network activity",children:"Nothing matched this filter."})}function $I({scrollRef:e,t0:t,pxPerMs:r,windowMs:n,vpTrackW:a,trackW:o}){let[s,i]=(0,Ke.useState)(0);(0,Ke.useEffect)(()=>{let d=e.current;if(!d)return;let u=()=>i(d.scrollLeft);return d.addEventListener("scroll",u,{passive:!0}),u(),()=>d.removeEventListener("scroll",u)},[e]);let l=(0,Ke.useMemo)(()=>{let d=UI(n/6),u=s/r,p=(s+a)/r,c=[],f=Math.max(0,Math.floor(u/d)*d);for(let h=f;h<=p+d;h+=d)c.push({leftPx:h*r,label:ae(t+h)});return c},[n,s,r,a,t]);return(0,_e.jsxs)("div",{className:"lum-wf__ruler","aria-hidden":!0,children:[(0,_e.jsx)("div",{className:"lum-wf__rulerspacer"}),(0,_e.jsx)("div",{className:"lum-wf__rulertrack",style:{width:o},children:l.map((d,u)=>(0,_e.jsx)("span",{className:"lum-wf__tick",style:{left:d.leftPx},children:d.label},u))})]})}function HI({bars:e,t0:t,pxPerMs:r,vpTrackW:n,scrollRef:a}){let o=M(c=>c.currentTime),s=M(c=>c.status),i=(0,Ke.useRef)(-1),l=(0,Ke.useRef)(0);(0,Ke.useEffect)(()=>{let c=a.current;if(!c)return;let f=()=>{l.current=performance.now()+1500};return c.addEventListener("wheel",f,{passive:!0}),c.addEventListener("pointerdown",f,{passive:!0}),()=>{c.removeEventListener("wheel",f),c.removeEventListener("pointerdown",f)}},[a]);let d=(o-t)*r,u=[],p=-1;for(let c=0;c<e.length;c++){let f=e[c];f.start<=o+1&&(p=c),o>=f.start&&o<=f.end+1&&u.push(c)}return(0,Ke.useEffect)(()=>{s!=="playing"||p<0||p===i.current||(i.current=p,a.current?.querySelector(`[data-row="${p}"]`)?.scrollIntoView({block:"nearest",inline:"nearest"}))},[p,s,a]),(0,Ke.useEffect)(()=>{let c=a.current;if(!c||s!=="playing"||performance.now()<l.current)return;let f=c.scrollLeft;if(d<f+.1*n||d>f+.9*n){let h=Math.max(0,c.scrollWidth-c.clientWidth);c.scrollLeft=Math.max(0,Math.min(h,d-.25*n))}},[d,s,n,a]),(0,_e.jsxs)("div",{className:"lum-wf__cursor",style:{height:e.length*r0},"aria-hidden":!0,children:[u.map(c=>{let f=e[c];return(0,_e.jsx)("div",{className:"lum-wf__running",style:{top:c*r0+7,height:14,left:f.leftPx,width:Math.max(2,f.widthPx)}},f.id)}),(0,_e.jsx)("div",{className:"lum-wf__playhead",style:{left:d}})]})}function WI(){let e=M(p=>p.events),t=M(p=>p.summary),r=M(p=>p.selectedEventId),n=M(p=>p.selectAndSeek),a=M(p=>p.toRelative),[o,s]=(0,Us.useState)(""),i=(0,Us.useMemo)(()=>om(e).filter(p=>p.kind==="task"),[e]),l=t?.tags??[],d=o.trim().toLowerCase(),u=(0,Us.useMemo)(()=>d?i.filter(p=>p.title.toLowerCase().includes(d)):i,[i,d]);return(0,xt.jsxs)("div",{className:"lum-st-spans",children:[l.length>0&&(0,xt.jsx)("div",{className:"lum-st-spans__tags","aria-label":"Session tags",children:l.map(p=>(0,xt.jsxs)("span",{className:"lum-st-tag",children:["#",p]},p))}),(0,xt.jsxs)("div",{className:"lum-st-spans__search",children:[(0,xt.jsx)("input",{className:"lum-st-spans__input lum-mono",placeholder:"Search tasks\u2026",value:o,onChange:p=>s(p.target.value),"aria-label":"Search task spans by name"}),i.length>0&&(0,xt.jsxs)("span",{className:"lum-st-spans__count lum-muted",children:[u.length,"/",i.length]})]}),i.length===0?(0,xt.jsx)(Jt,{title:"No tasks tracked",children:"Call Obsrviq.startTask('name') / endTask('name') to record searchable sub-events on the session."}):u.length===0?(0,xt.jsx)(Jt,{title:"No tasks match that search"}):(0,xt.jsx)("div",{className:"lum-st-spans__rows lum-mono",role:"list","aria-label":"Task spans",children:u.map(p=>(0,xt.jsxs)("button",{className:`lum-st-spanrow ${p.id===r?"is-selected":""} ${p.running?"is-running":""}`,onClick:()=>n(p.id),"aria-label":`${p.title} (${p.subtitle??""}) @ ${ae(a(p.t))}`,children:[(0,xt.jsx)("span",{className:"lum-st-spanrow__glyph","aria-hidden":!0,children:"\u25B0"}),(0,xt.jsx)("span",{className:"lum-st-spanrow__time",children:ae(a(p.t))}),(0,xt.jsx)("span",{className:"lum-st-spanrow__title",children:p.title}),(0,xt.jsx)("span",{className:"lum-st-spanrow__dur lum-muted",children:p.subtitle})]},p.id))})]})}var jI={console:"\u203A",network:"\u25AD",error:"\u25CF",rage:"\u25C6",dead:"\u25CB",conversion:"\u2726",nav:"\u258E",perf:"\u25C7",task:"\u25B0",custom:"\xB7"},VI=[{id:"all",label:"All"},{id:"network",label:"Network"},{id:"console",label:"Console"},{id:"error",label:"Errors"},{id:"signal",label:"Signals"},{id:"task",label:"Tasks"},{id:"nav",label:"Nav"}];function GI(e,t){switch(t){case"all":return!0;case"network":return e.kind==="network";case"console":return e.kind==="console"||e.kind==="perf";case"error":return e.kind==="error"||e.severity==="error";case"signal":return e.kind==="rage"||e.kind==="dead"||e.kind==="conversion";case"task":return e.kind==="task";case"nav":return e.kind==="nav";default:return!0}}function n0(){let e=M(f=>f.events),t=M(f=>f.feedFilter),r=M(f=>f.setFeedFilter),n=M(f=>f.selectedEventId),a=M(f=>f.selectionRange),o=M(f=>f.selectAndSeek),s=M(f=>f.toRelative),i=M(f=>f.status),l=(0,du.useMemo)(()=>om(e),[e]),d=(0,du.useMemo)(()=>{let f=l.filter(h=>GI(h,t));return a&&(f=f.filter(h=>h.t>=a[0]&&h.t<=a[1])),f},[l,t,a]),u=(0,du.useMemo)(()=>d.map(f=>s(f.t)),[d,s]),p=pI(u),c=mI(p,i==="playing");return(0,Tt.jsxs)("div",{className:"lum-st-feed",children:[(0,Tt.jsx)("div",{className:"lum-st-feed__chips",children:VI.map(f=>(0,Tt.jsx)("button",{className:`lum-pl-chip ${t===f.id?"is-active":""}`,onClick:()=>r(f.id),children:f.label},f.id))}),t==="network"?(0,Tt.jsx)(qI,{}):t==="task"?(0,Tt.jsx)(WI,{}):d.length===0?(0,Tt.jsx)(Jt,{title:"Nothing matched this filter"}):(0,Tt.jsx)("div",{className:"lum-st-feed__rows lum-mono",ref:c,role:"log","aria-label":"Unified activity feed",children:d.map((f,h)=>(0,Tt.jsxs)("button",{"data-row":h,className:`lum-st-feedrow lum-st-feedrow--${f.severity} ${h===p?"is-active":""} ${f.id===n?"is-selected":""}`,onClick:()=>o(f.id),"aria-label":`${f.title} @ ${ae(s(f.t))}`,children:[(0,Tt.jsx)("span",{className:"lum-st-feedrow__glyph","aria-hidden":!0,children:jI[f.kind]}),(0,Tt.jsx)("span",{className:"lum-st-feedrow__time",children:ae(s(f.t))}),(0,Tt.jsx)("span",{className:"lum-st-feedrow__title",children:f.title}),f.subtitle&&(0,Tt.jsx)("span",{className:"lum-st-feedrow__sub lum-muted",children:f.subtitle})]},f.id))})]})}function a0({feedFocusKey:e}){let t=M(u=>u.selectedEventId),r=M(u=>u.events),n=M(u=>u.select),[a,o]=(0,nr.useState)("feed"),s=(0,nr.useRef)(null),i=(0,nr.useMemo)(()=>r.find(u=>u.id===t)??null,[r,t]);(0,nr.useEffect)(()=>{t&&t!==s.current&&o("detail"),!t&&a==="detail"&&o("feed"),s.current=t},[t]);let l=a==="detail"&&!i?"feed":a,d=[{id:"feed",label:"Feed"},...i?[{id:"detail",label:"Detail"}]:[],{id:"dom",label:"DOM"},{id:"state",label:"State"}];return(0,Z.jsxs)("aside",{className:"lum-st-inspector","aria-label":"Inspector",children:[(0,Z.jsxs)("div",{className:"lum-st-inspector__tabs",children:[d.map(u=>(0,Z.jsx)("button",{className:`lum-pl-tab2 ${l===u.id?"is-active":""}`,onClick:()=>o(u.id),children:u.label},u.id)),i&&(0,Z.jsx)("button",{className:"lum-st-inspector__clear","aria-label":"Clear selection (Esc)",onClick:()=>n(null),children:(0,Z.jsx)(aa,{size:13})})]}),(0,Z.jsxs)("div",{className:"lum-st-inspector__body",children:[l==="feed"&&(0,Z.jsx)(n0,{}),l==="dom"&&(0,Z.jsx)(MI,{}),l==="state"&&(0,Z.jsx)(RI,{}),l==="detail"&&i&&(0,Z.jsx)(XI,{ev:i}),l==="detail"&&!i&&(0,Z.jsx)(n0,{})]})]},e)}function XI({ev:e}){let t=M(r=>r.toRelative);if(e.type==="network"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody",children:[(0,Z.jsx)("div",{className:"lum-st-inspector__crumb lum-mono",children:C0(r.url)}),(0,Z.jsx)(hI,{n:r,relStart:t(r.t)}),(0,Z.jsx)(Yp,{ev:e})]})}if(e.type==="error")return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsx)(vI,{ev:e}),(0,Z.jsx)("div",{className:"lum-st-inspbody",children:(0,Z.jsx)(Yp,{ev:e})})]});if(e.type==="console")return(0,Z.jsx)(kI,{ev:e});if(e.type==="custom"){let r=e;return(0,Z.jsxs)("div",{className:"lum-st-inspbody lum-pl-detail",children:[(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.name})," ",(0,Z.jsxs)("span",{className:"lum-muted lum-mono",children:["@ ",ae(t(e.t))]})]}),r.props&&(0,Z.jsx)("pre",{className:"lum-pl-json",children:JSON.stringify(r.props,null,2).slice(0,1200)}),(0,Z.jsx)(Yp,{ev:e})]})}if(e.type==="perf"){let r=e;return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-pl-detail",children:(0,Z.jsxs)("div",{className:"lum-pl-detail__head",children:[(0,Z.jsx)("strong",{children:r.metric})," ",(0,Z.jsx)("span",{className:"lum-mono",children:Math.round(r.value)})," ",(0,Z.jsx)("span",{className:"lum-muted",children:r.rating})]})})}return(0,Z.jsx)("div",{className:"lum-st-inspbody lum-muted",children:"No detail view for this event."})}function Yp({ev:e}){let t=Ok(),[r,n]=(0,nr.useState)(""),[a,o]=(0,nr.useState)("idle"),s=(0,nr.useRef)(null);if((0,nr.useEffect)(()=>(n(""),o("idle"),s.current?.abort(),()=>s.current?.abort()),[e.id]),!t)return null;let i=async()=>{s.current?.abort();let l=new AbortController;s.current=l,n(""),o("loading");try{let d=`${t.apiBaseUrl.replace(/\/$/,"")}/v1/sessions/${t.sessionId}/explain`,u="";for await(let p of Fk(d,t,{ref:e.id},l.signal))if(p.kind==="token"&&p.text)u+=p.text,n(u);else if(p.kind==="error"){o("error"),n(p.message||"Explain failed.");return}o("done")}catch(d){if(l.signal.aborted)return;o("error"),n(d instanceof Error?d.message:"Explain failed.")}};return(0,Z.jsx)("div",{className:"lum-st-explain",children:a==="idle"?(0,Z.jsxs)("button",{className:"lum-st-explain__btn",onClick:i,children:[(0,Z.jsx)(Zt,{size:13,"aria-hidden":!0})," Explain with AI"]}):(0,Z.jsxs)("div",{className:"lum-st-explain__out",role:"status","aria-live":"polite",children:[(0,Z.jsxs)("span",{className:"lum-st-explain__label",children:[(0,Z.jsx)(Zt,{size:12,"aria-hidden":!0})," Likely cause",a==="loading"&&(0,Z.jsx)("span",{className:"lum-st-explain__dots","aria-hidden":!0,children:" \u2026"})]}),(0,Z.jsx)("p",{className:`lum-st-explain__text ${a==="error"?"is-error":""}`,children:r||"\u2026"}),a!=="loading"&&(0,Z.jsx)("button",{className:"lum-st-explain__re",onClick:i,children:"Regenerate"})]})})}var eo={error:6,net5xx:5,net4xx:4,rage:3,dead:2,nav:1};function KI(e){let t=[];for(let r of e)if(r.type==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:`${r.name??"Error"}: ${r.message??""}`});else if(r.type==="console"&&r.level==="error")t.push({t:r.t,kind:"error",rank:eo.error,ref:r.id,label:"console.error"});else if(r.type==="network"){let n=r;n.status>=500||n.status===0?t.push({t:r.t,kind:"net5xx",rank:eo.net5xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status||"failed"}`}):n.status>=400&&t.push({t:r.t,kind:"net4xx",rank:eo.net4xx,ref:r.id,label:`${n.method} ${n.url} \u2014 ${n.status}`})}else if(r.type==="custom"){let n=r;n.name==="rage_click"?t.push({t:r.t,kind:"rage",rank:eo.rage,ref:r.id,label:"Rage click"}):n.name==="dead_click"&&t.push({t:r.t,kind:"dead",rank:eo.dead,ref:r.id,label:"Dead click"})}return t.sort((r,n)=>r.t-n.t)}function QI(e){let t=om(e),r={chapters:[],interaction:[],console:[],network:[],error:[],task:[],vitals:[]};for(let n of t){let a={id:n.id,t:n.t,durationMs:n.durationMs,running:n.running,kind:n.kind,severity:n.severity,label:n.title,sub:n.subtitle};switch(n.lane){case"interaction":r.interaction.push(a);break;case"console":if(n.kind==="perf")break;r.console.push(a),n.kind==="console"&&n.severity==="error"&&r.error.push({...a,kind:"error"});break;case"network":r.network.push(a);break;case"error":r.error.push(a);break;case"task":r.task.push(a);break;case"nav":r.chapters.push({...a,kind:"nav"});break}}for(let n of e){if(n.type!=="perf")continue;let a=n;["LCP","CLS","INP","FCP"].includes(a.metric)&&r.vitals.push({id:n.id,t:n.t,kind:a.rating==="poor"?"perf-poor":"perf-good",severity:a.rating==="poor"?"error":"ok",label:`${a.metric} ${Math.round(a.value)}${a.metric==="CLS"?"":"ms"}`,sub:a.rating})}return r}var o0={chapters:"Chapters",interaction:"Interactions",console:"Console",network:"Network",error:"Errors",task:"Tasks",vitals:"Vitals"};function YI(e){let t=[];for(let r of e)if(r.type==="error"){let n=r;t.push({id:r.id,label:`Error \xB7 ${n.name??"Error"}`,detail:n.message??"",t:r.t,ref:r.id,keywords:`error exception ${n.name??""} ${n.message??""}`})}else if(r.type==="network"){let n=r,a=n.status>=400||n.status===0,o=n.status>=500?"5xx":n.status>=400?"4xx":"ok";a&&t.push({id:r.id,label:`${n.method} ${JI(n.url)} \xB7 ${n.status||"failed"}`,detail:`${o} network failure`,t:r.t,ref:r.id,keywords:`network request ${o} fail failed error ${n.method} ${n.url} ${n.status}`})}else if(r.type==="custom"){let n=r;if(n.name==="rage_click")t.push({id:r.id,label:"Rage click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"rage frustration click stuck"});else if(n.name==="dead_click")t.push({id:r.id,label:"Dead click",detail:"frustration signal",t:r.t,ref:r.id,keywords:"dead click frustration stuck"});else if(n.props&&n.props.conversion===!0)t.push({id:r.id,label:`Conversion \xB7 ${n.name}`,detail:"the conversion",t:r.t,ref:r.id,keywords:`conversion convert success goal ${n.name}`});else{let a=/^(.+):started$/.exec(n.name??"");if(a){let o=n.props?.task??a[1];t.push({id:r.id,label:`Task \xB7 ${o}`,detail:"sub-event span",t:r.t,ref:r.id,keywords:`task span sub-event ${o}`})}}}return t.sort((r,n)=>r.t-n.t)}function JI(e){try{let t=new URL(e);return(t.pathname.split("/").pop()||t.hostname)+(t.search?t.search:"")}catch{return e.split("/").pop()||e}}function ZI(e,t){if(!e.length)return null;let r=null,n=1/0;for(let a of e){let o=Math.abs(a.t-t);o<n&&(n=o,r=a)}return r&&n<1200?r.label:null}var iu=60;function e_(e){if(e.type==="error"||e.type==="console"&&e.level==="error")return"error";if(e.type==="network"){let t=e;return t.status>=400||t.status===0?"error":"network"}if(e.type==="custom"){let t=e;if(t.name==="rage_click"||t.name==="dead_click")return"frustration";if(t.props&&t.props.conversion===!0)return"conversion";if(t.name==="navigation"||t.name==="pageview")return"nav"}return"other"}var t_={error:"var(--lum-error)",frustration:"var(--lum-warn)",conversion:"var(--lum-ok)",network:"#a06bff",nav:"var(--lum-info)",other:"var(--lum-faint)"};function r_(){let e=M(y=>y.events),t=M(y=>y.offset),r=M(y=>y.durationMs),n=M(y=>y.bufferedMs),a=M(y=>y.zoomStack),o=M(y=>y.zoomTo),s=M(y=>y.zoomOutTo),i=M(y=>y.seek),l=M(y=>y.toRelative),d=(0,no.useRef)(null),[u,p]=(0,no.useState)(null),c=t,f=t+r,h=Math.max(1,f-c),m=(0,no.useMemo)(()=>{let y=new Array(iu).fill(0),w=Array.from({length:iu},()=>({error:0,frustration:0,conversion:0,network:0,nav:0,other:0}));for(let C of e){let _=(C.t-c)/h,I=Math.min(iu-1,Math.max(0,Math.floor(_*iu)));y[I]++,w[I][e_(C)]++}let L=Math.max(1,...y);return y.map((C,_)=>{let I=w[_],D="other",A=0;return Object.keys(I).forEach(k=>{let ke=k==="error"?100:k==="frustration"?50:k==="conversion"?40:1,Ie=I[k]*ke;I[k]>0&&Ie>A&&(A=Ie,D=k)}),{h:C/L,kind:D}})},[e,c,h]),b=y=>{let w=d.current;if(!w)return c;let L=w.getBoundingClientRect(),C=Math.min(1,Math.max(0,(y-L.left)/L.width));return c+C*h},g=y=>(y-c)/h*100,x=a[a.length-1],v=r>0?Math.min(100,n/r*100):100,S=[{label:"Full",index:0},...a.map((y,w)=>({label:`${ae(l(y[0]))}\u2013${ae(l(y[1]))}`,index:w+1}))];return(0,yr.jsxs)("div",{className:"lum-st-overview",children:[(0,yr.jsx)("span",{className:"lum-st-overview__label lum-muted",children:"OVERVIEW"}),(0,yr.jsxs)("div",{ref:d,className:"lum-st-overview__spark",onPointerDown:y=>{y.target.setPointerCapture?.(y.pointerId);let w=b(y.clientX);p({a:w,b:w})},onPointerMove:y=>{u&&p(w=>w&&{...w,b:b(y.clientX)})},onPointerUp:()=>{u&&(Math.abs(u.b-u.a)>h*.01?o(Math.min(u.a,u.b),Math.max(u.a,u.b)):i(l(u.a))),p(null)},onPointerLeave:()=>p(null),children:[v<99.5&&(0,yr.jsx)("div",{className:"lum-st-overview__buffered",style:{width:`${v}%`},"aria-hidden":!0}),m.map((y,w)=>(0,yr.jsx)("div",{className:"lum-st-overview__bar",style:{height:`${Math.max(8,y.h*100)}%`,background:t_[y.kind]}},w)),x&&(0,yr.jsx)("div",{className:"lum-st-overview__window",style:{left:`${g(x[0])}%`,width:`${g(x[1])-g(x[0])}%`}}),u&&(0,yr.jsx)("div",{className:"lum-st-overview__brush",style:{left:`${g(Math.min(u.a,u.b))}%`,width:`${Math.abs(g(u.b)-g(u.a))}%`}})]}),(0,yr.jsx)("div",{className:"lum-st-overview__crumbs",children:S.map((y,w)=>(0,yr.jsx)("button",{className:`lum-st-crumb ${w===S.length-1?"is-active":""}`,onClick:()=>s(y.index),children:y.label},w))})]})}function n_(e){let t=[1e3,2e3,5e3,1e4,15e3,3e4,6e4,12e4,3e5,6e5],r=e/8;for(let n of t)if(n>=r)return n;return t[t.length-1]}function a_({win:e}){let t=(0,ro.useRef)(null),r=(0,ro.useRef)(!1),n=M(S=>S.currentTime),a=M(S=>S.durationMs),o=M(S=>S.offset),s=M(S=>S.events),i=M(S=>S.markers),l=M(S=>S.snap),d=M(S=>S.seek),u=M(S=>S.setHover),p=M(S=>S.toRelative),[c,f]=e,h=Math.max(1,f-c),m=(0,ro.useMemo)(()=>{let S=n_(h),y=[],w=c-o,L=Math.ceil(w/S)*S;for(let C=L;C<=f-o;C+=S){let _=C+o;y.push({tRel:C,pct:(_-c)/h*100})}return y},[h,c,f,o]),b=(0,ro.useMemo)(()=>am(s,a+o),[s,a,o]),g=S=>{let y=t.current;if(!y)return c;let w=y.getBoundingClientRect();return M0(S-w.left,e,w.width)},x=S=>{if(!l)return S;let y=t.current;if(!y)return S;let w=y.getBoundingClientRect().width,L=em(S,e,w),C=S,_=8;for(let I of i){let D=em(I.t,e,w),A=Math.abs(D-L);A<_&&(_=A,C=I.t)}return C},v=S=>{let y=x(g(S));d(p(y))};return(0,kn.jsxs)("div",{ref:t,className:"lum-st-ruler",role:"slider",tabIndex:0,"aria-label":"Timeline scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${ae(n)} of ${ae(a)}`,onPointerDown:S=>{r.current=!0,S.target.setPointerCapture?.(S.pointerId),v(S.clientX)},onPointerMove:S=>{let y=g(S.clientX);u(p(y)),r.current&&v(S.clientX)},onPointerUp:S=>{r.current=!1,S.target.releasePointerCapture?.(S.pointerId)},onPointerLeave:()=>u(null),onKeyDown:S=>{if(S.key==="ArrowRight")d(n+1e3);else if(S.key==="ArrowLeft")d(n-1e3);else if(S.key==="Home")d(0);else if(S.key==="End")d(a);else if(S.key==="PageUp")d(n+1e4);else if(S.key==="PageDown")d(n-1e4);else return;S.preventDefault()},children:[b.slice(1).map(S=>{let y=(S.startT-c)/h*100;return y<0||y>100?null:(0,kn.jsx)("span",{className:"lum-st-ruler__chdiv",style:{left:`${y}%`},title:S.title},S.id)}),m.map((S,y)=>(0,kn.jsx)("span",{className:"lum-st-ruler__tick",style:{left:`${S.pct}%`},children:(0,kn.jsx)("span",{className:"lum-st-ruler__ticklabel lum-mono",children:ae(S.tRel)})},y))]})}function o_({win:e}){let t=M(d=>d.hover),r=M(d=>d.offset),n=M(d=>d.markers);if(t==null)return null;let a=t.t+r,[o,s]=e,i=(a-o)/Math.max(1,s-o)*100;if(i<0||i>100)return null;let l=ZI(n,a);return(0,kn.jsxs)("div",{className:"lum-st-ghosttip lum-mono",style:{left:`${i}%`},children:[ae(t.t),l&&(0,kn.jsxs)("span",{className:"lum-st-ghosttip__lbl",children:[" \xB7 ",l.slice(0,48)]})]})}function s_({isFullscreen:e,onFullscreen:t,allowFullscreen:r=!0}){let n=M(k=>k.status),a=M(k=>k.currentTime),o=M(k=>k.durationMs),s=M(k=>k.summary?.inactiveMs),i=M(k=>k.summary?.durationMs),l=M(k=>k.speed),d=M(k=>k.autoSkip),u=M(k=>k.isSkipping),p=M(k=>k.autoSkim),c=M(k=>k.isSkimming),f=M(k=>k.loop),h=M(k=>k.showCursor),m=M(k=>k.snap),b=M(k=>k.toggle),g=M(k=>k.restart),x=M(k=>k.seek),v=M(k=>k.step),S=M(k=>k.jumpEvent),y=M(k=>k.setSpeed),w=M(k=>k.setAutoSkip),L=M(k=>k.setAutoSkim),C=M(k=>k.setLoop),_=M(k=>k.setShowCursor),I=M(k=>k.toggleSnap),D=n==="playing";return(0,Q.jsxs)("div",{className:"lum-st-transport",children:[(0,Q.jsxs)("div",{className:"lum-st-transport__group",children:[(0,Q.jsx)("span",{className:"lum-pl-play",children:(0,Q.jsx)(ht,{label:D?"Pause (Space)":"Play (Space)",pressed:D,onClick:b,children:D?(0,Q.jsx)(ks,{size:17}):(0,Q.jsx)(na,{size:17})})}),(0,Q.jsx)(ht,{label:"Restart (R)",onClick:g,children:(0,Q.jsx)(Ms,{size:16})}),(0,Q.jsx)(ht,{label:"Back 10s (\u2190)",onClick:()=>x(a-1e4),children:(0,Q.jsx)(Es,{size:16})}),(0,Q.jsx)(ht,{label:"Forward 10s (\u2192)",onClick:()=>x(a+1e4),children:(0,Q.jsx)(Ps,{size:16})}),(0,Q.jsx)(ht,{label:"Previous event ([)",onClick:()=>S(-1),children:(0,Q.jsx)(Jn,{size:17})}),(0,Q.jsx)(ht,{label:"Next event (])",onClick:()=>S(1),children:(0,Q.jsx)(Zn,{size:17})}),(n==="paused"||n==="ended"||n==="idle")&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ht,{label:"Frame back (,)",onClick:()=>v(-1),children:(0,Q.jsx)(Ns,{size:15})}),(0,Q.jsx)(ht,{label:"Frame forward (.)",onClick:()=>v(1),children:(0,Q.jsx)(Ts,{size:15})})]})]}),(0,Q.jsxs)("div",{className:"lum-st-transport__group lum-st-transport__group--right",children:[(0,Q.jsx)(Zx,{trigger:(0,Q.jsxs)("span",{className:"lum-iconbtn","aria-label":`Speed ${l}\xD7`,title:"Playback speed (< / >)",children:[(0,Q.jsx)(ys,{size:15}),(0,Q.jsxs)("span",{className:"lum-mono lum-pl-speed",children:[l,"\xD7"]})]}),options:c0.map(k=>({value:k,label:`${k}\xD7`})),value:l,onSelect:y,placement:"top"}),(0,Q.jsx)("span",{className:`lum-st-skim${u?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skip idle \u2014 jump to next activity (S)${d?" \u2014 on":""}`,pressed:d,onClick:()=>w(!d),children:(0,Q.jsx)(ea,{size:16})})}),(0,Q.jsx)("span",{className:`lum-st-skim${c?" is-skimming":""}`,children:(0,Q.jsx)(ht,{label:`Auto-skim idle at 8\xD7 (\u21E7S)${p?" \u2014 on":""}`,pressed:p,onClick:()=>L(!p),children:(0,Q.jsx)(oa,{size:15})})}),(0,Q.jsx)(ht,{label:"Loop (L)",pressed:f,onClick:()=>C(!f),children:(0,Q.jsx)(Is,{size:15})}),(0,Q.jsx)(ht,{label:"Magnetic snap (X)",pressed:m,onClick:I,children:(0,Q.jsx)(Ss,{size:15})}),(0,Q.jsx)(ht,{label:"Cursor trail",pressed:h,onClick:()=>_(!h),children:(0,Q.jsx)(Ls,{size:15})}),r&&(0,Q.jsx)(ht,{label:e?"Exit fullscreen (F)":"Fullscreen (F)",pressed:e,onClick:t,children:e?(0,Q.jsx)(ra,{size:16}):(0,Q.jsx)(ta,{size:16})}),(0,Q.jsxs)("span",{className:"lum-st-transport__time lum-mono",children:[ae(a)," ",(0,Q.jsxs)("span",{className:"lum-muted",children:["/ ",ae(o)]}),s!=null&&s>0&&i?(0,Q.jsxs)("span",{className:"lum-st-transport__idle lum-muted",title:`${ae(s)} of this recording (${Math.round(s/i*100)}%) had no interaction`,children:[" \xB7 ",Math.round(s/i*100),"% idle"]}):null]})]})]})}function i_(e){switch(e.kind){case"rage":return"\u25C6";case"dead":return"\u25CB";case"conversion":return"\u2726";case"error":return"\u25CF";case"network":return"\u25AD";case"task":return"\u25B0";case"nav":return"\u258E";case"perf-poor":return"\u25C7";case"perf-good":return"\u25C7";case"console":return e.severity==="error"?"\u25CF":"\xB7";default:return"\xB7"}}function l_(e){switch(e.severity){case"error":return"var(--lum-error)";case"warn":return"var(--lum-warn)";case"ok":return"var(--lum-ok)";case"info":return"var(--lum-info)";default:return"var(--lum-faint)"}}function u_(e,t,r){let n=[...e].sort((o,s)=>o.t-s.t),a=[];for(let o of n){if(o.t<t[0]-1||o.t>t[1]+1)continue;let s=em(o.t,t,r),i=a[a.length-1];i&&s-i.xPx<6?i.items.push(o):a.push({t:o.t,xPx:s,items:[o]})}return a}function d_({id:e,label:t,glyphs:r,win:n,width:a,collapsed:o}){let s=M(g=>g.offset),i=M(g=>g.durationMs),l=M(g=>g.events),d=M(g=>g.selectedEventId),u=M(g=>g.selectAndSeek),p=M(g=>g.zoomTo),c=M(g=>g.toRelative),f=Math.max(1,n[1]-n[0]),h=g=>(g-n[0])/f*100,m=(0,tm.useMemo)(()=>e==="chapters"?am(l,i+s):[],[e,l,i,s]),b=(0,tm.useMemo)(()=>e==="network"||e==="chapters"||e==="task"?[]:u_(r,n,a||1),[e,r,n,a]);return o?(0,Ht.jsx)("div",{className:"lum-st-lane lum-st-lane--collapsed",role:"listbox","aria-label":`${t} lane (collapsed)`,tabIndex:0,children:(0,Ht.jsx)("span",{className:"lum-st-lane__count lum-mono",children:r.length||m.length||"\u2014"})}):(0,Ht.jsxs)("div",{className:`lum-st-lane lum-st-lane--${e}`,role:"listbox","aria-label":`${t} lane`,tabIndex:0,"data-lane":e,children:[e==="chapters"&&m.map(g=>{let x=h(g.startT),v=h(g.endT)-x;return x>100||x+v<0?null:(0,Ht.jsx)("button",{className:`lum-st-chapter lum-st-chapter--${g.kind} ${g.kind==="idle"?"is-idle":""}`,style:{left:`${x}%`,width:`${Math.max(.5,v)}%`},role:"option","aria-selected":!1,"aria-label":`${g.title} \xB7 ${g.subtitle} @ ${ae(c(g.startT))}`,title:`${g.title} \u2014 ${g.subtitle}`,onClick:()=>p(g.startT,g.endT),children:(0,Ht.jsx)("span",{className:"lum-st-chapter__label",children:g.title})},g.id)}),e==="network"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.4,v),y=d===g.id;return(0,Ht.jsx)("button",{className:`lum-st-netbar lum-st-netbar--${g.severity} ${y?"is-selected":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":y,"aria-label":`${g.label} \xB7 ${g.sub??""} @ ${ae(c(g.t))}`,title:`${g.label} \u2014 ${g.sub??""}`,onClick:()=>u(g.id)},g.id)}),e==="task"&&r.map(g=>{let x=h(g.t);if(x>101||x<-1)return null;let v=(g.durationMs??0)/f*100,S=Math.max(.5,v),y=d===g.id,w=!!g.running;return(0,Ht.jsx)("button",{className:`lum-st-taskbar ${y?"is-selected":""} ${w?"is-running":""}`,style:{left:`${x}%`,width:`${S}%`},role:"option","aria-selected":y,"aria-label":`Task ${g.label} \xB7 ${g.sub??""} @ ${ae(c(g.t))}`,title:`${g.label}${g.sub?` \u2014 ${g.sub}`:""}`,onClick:()=>u(g.id)},g.id)}),e!=="network"&&e!=="chapters"&&e!=="task"&&b.map((g,x)=>{let v=h(g.t);if(v>101||v<-1)return null;let S=g.items[0],y=g.items.some(L=>L.id===d),w=g.items.length;return(0,Ht.jsxs)("button",{className:`lum-st-glyph lum-st-glyph--${e} ${y?"is-selected":""} ${S.kind==="rage"?"lum-st-glyph--pulse":""}`,style:{left:`${v}%`,color:l_(S)},role:"option","aria-selected":y,"aria-label":w>1?`${w} events @ ${ae(c(g.t))}`:`${S.label} @ ${ae(c(g.t))}`,title:w>1?`${w} events`:`${S.label}${S.sub?` \xB7 ${S.sub}`:""}`,onClick:()=>{w>1&&f>4e3?p(g.t-1500,g.t+1500):u(S.id)},children:[(0,Ht.jsx)("span",{className:"lum-st-glyph__char","aria-hidden":!0,children:i_(S)}),w>1&&(0,Ht.jsx)("span",{className:"lum-st-glyph__count",children:w})]},`${g.t}-${x}`)}),r.length===0&&m.length===0&&(0,Ht.jsx)("span",{className:"lum-st-lane__empty",children:"\u2014"})]})}function c_({id:e,label:t,count:r}){let n=M(o=>o.laneState[e]),a=M(o=>o.toggleLane);return(0,At.jsxs)("div",{className:`lum-st-rail ${n.mute?"is-muted":""} ${n.solo?"is-solo":""}`,children:[(0,At.jsx)("button",{className:"lum-st-rail__collapse","aria-label":`${n.collapsed?"Expand":"Collapse"} ${t}`,onClick:()=>a(e,"collapsed"),children:n.collapsed?(0,At.jsx)(Zn,{size:13}):(0,At.jsx)(Yn,{size:13})}),(0,At.jsx)("span",{className:"lum-st-rail__label",children:t}),(0,At.jsx)("span",{className:"lum-st-rail__count lum-mono",children:r}),(0,At.jsxs)("span",{className:"lum-st-rail__ctrls",children:[(0,At.jsx)("button",{className:`lum-st-rail__btn ${n.solo?"is-on":""}`,"aria-pressed":n.solo,title:"Solo lane",onClick:()=>a(e,"solo"),children:(0,At.jsx)(vs,{size:11})}),(0,At.jsx)("button",{className:`lum-st-rail__btn ${n.mute?"is-on":""}`,"aria-pressed":n.mute,title:"Mute lane",onClick:()=>a(e,"mute"),children:n.mute?(0,At.jsx)(Os,{size:11}):(0,At.jsx)(Ds,{size:11})})]})]})}function f_({win:e}){let t=M(i=>i.currentTime),r=M(i=>i.offset),n=t+r,a=pu(n,e),o=n<e[0],s=n>e[1];return(0,mu.jsx)("div",{className:`lum-st-playhead ${o?"is-offleft":""} ${s?"is-offright":""}`,style:{left:`${a*100}%`},"aria-hidden":!0,children:(0,mu.jsx)("span",{className:"lum-st-playhead__cap"})})}function p_({win:e}){let t=M(o=>o.hover),r=M(o=>o.offset);if(t==null)return null;let n=t.t+r,a=pu(n,e);return n<e[0]||n>e[1]?null:(0,mu.jsx)("div",{className:"lum-st-ghost",style:{left:`${a*100}%`},"aria-hidden":!0})}var m_={error:"var(--lum-error)",net5xx:"#a06bff",net4xx:"var(--lum-warn)",rage:"var(--lum-warn)",dead:"var(--lum-faint)",nav:"var(--lum-info)"};function h_({win:e}){let t=(0,qs.useRef)(null),r=(0,qs.useRef)(!1),n=M(m=>m.currentTime),a=M(m=>m.durationMs),o=M(m=>m.offset),s=M(m=>m.events),i=M(m=>m.seek),l=M(m=>m.selectAndSeek),d=M(m=>m.setHover),u=M(m=>m.toRelative),p=(0,qs.useMemo)(()=>KI(s),[s]),c=n+o,f=pu(c,e),h=m=>{let b=t.current;if(!b)return e[0];let g=b.getBoundingClientRect();return M0(m-g.left,e,g.width)};return(0,to.jsxs)("div",{ref:t,className:"lum-st-ribbon",role:"slider",tabIndex:0,"aria-label":"Signal ribbon scrubber","aria-valuemin":0,"aria-valuemax":Math.round(a),"aria-valuenow":Math.round(n),"aria-valuetext":`${ae(n)} of ${ae(a)}`,onPointerDown:m=>{r.current=!0,m.target.setPointerCapture?.(m.pointerId),i(u(h(m.clientX)))},onPointerMove:m=>{d(u(h(m.clientX))),r.current&&i(u(h(m.clientX)))},onPointerUp:()=>r.current=!1,onPointerLeave:()=>d(null),onKeyDown:m=>{if(m.key==="ArrowRight")i(n+1e3);else if(m.key==="ArrowLeft")i(n-1e3);else if(m.key==="Home")i(0);else if(m.key==="End")i(a);else return;m.preventDefault()},children:[(0,to.jsx)("div",{className:"lum-st-ribbon__track"}),p.map(m=>{let b=pu(m.t,e);return m.t<e[0]||m.t>e[1]?null:(0,to.jsx)("button",{className:"lum-st-ribbon__glyph",style:{left:`${b*100}%`,color:m_[m.kind]??"var(--lum-faint)"},title:`${m.label} @ ${ae(u(m.t))}`,"aria-label":`${m.label} @ ${ae(u(m.t))}`,onClick:g=>{g.stopPropagation(),l(m.ref)},children:"\u25C6"},m.ref)}),(0,to.jsx)("div",{className:"lum-st-ribbon__head",style:{left:`${f*100}%`},"aria-hidden":!0})]})}function g_({breakpoint:e,isFullscreen:t,onFullscreen:r,allowFullscreen:n,onResizeStart:a,onResizeReset:o}){let s=M(w=>w.events),i=M(w=>w.laneState),l=M(w=>w.offset),d=M(w=>w.durationMs),u=M(w=>w.zoomStack),p=M(w=>w.zoomTo),c=M(w=>w.zoomOutTo),f=M(w=>w.focusMode),h=R0(),{ref:m,width:b}=FI(),g=(0,E0.useMemo)(()=>QI(s),[s]),x=e==="narrow"||e==="compact"||f==="stage",v=cu.some(w=>i[w].solo),S=cu.filter(w=>!(i[w].mute||v&&!i[w].solo));return(0,Ze.jsxs)("section",{className:"lum-st-timeline","aria-label":"Timeline",children:[a&&(0,Ze.jsx)("div",{className:"lum-st-resize lum-st-resize--y",role:"separator","aria-orientation":"horizontal","aria-label":"Resize timeline height",title:"Drag to resize \xB7 double-click to reset",onPointerDown:a,onDoubleClick:o}),(0,Ze.jsx)(r_,{}),(0,Ze.jsxs)("div",{className:"lum-st-rulerrow",children:[(0,Ze.jsx)(s_,{isFullscreen:t,onFullscreen:r,allowFullscreen:n}),(0,Ze.jsx)("div",{className:"lum-st-rulerrow__ruler",children:(0,Ze.jsx)(a_,{win:h})})]}),x?(0,Ze.jsx)("div",{className:"lum-st-ribbonwrap",children:(0,Ze.jsx)(h_,{win:h})}):(0,Ze.jsxs)("div",{className:"lum-st-lanes",onWheel:w=>{if(x||!w.ctrlKey&&!w.metaKey)return;w.preventDefault();let L=m.current;if(!L)return;let C=L.getBoundingClientRect(),_=Math.min(1,Math.max(0,(w.clientX-C.left)/C.width)),I=h[0]+_*(h[1]-h[0]),D=w.deltaY>0?1.2:.83,A=OI(h,I,D,l,l+d);A==null?u.length&&c(u.length-1):p(A[0],A[1])},children:[(0,Ze.jsx)("div",{className:"lum-st-lanes__rails",children:S.map(w=>(0,Ze.jsx)(c_,{id:w,label:o0[w],count:g[w].length},w))}),(0,Ze.jsxs)("div",{className:"lum-st-lanes__tracks",ref:m,children:[S.map(w=>(0,Ze.jsx)(d_,{id:w,label:o0[w],glyphs:g[w],win:h,width:b,collapsed:i[w].collapsed},w)),(0,Ze.jsx)(f_,{win:h}),(0,Ze.jsx)(p_,{win:h}),(0,Ze.jsx)(o_,{win:h})]})]})]})}function x_(){let e=M(g=>g.paletteOpen),t=M(g=>g.openPalette),r=M(g=>g.events),n=M(g=>g.currentTime),a=M(g=>g.nextProblem),o=M(g=>g.selectAndSeek),s=M(g=>g.toRelative),[i,l]=(0,rr.useState)(""),[d,u]=(0,rr.useState)(0),p=(0,rr.useRef)(null),c=(0,rr.useMemo)(()=>YI(r),[r]),f=(0,rr.useMemo)(()=>{let g=[];g.push({id:"next-problem",label:"Next problem",detail:"jump to the next error / failure / rage",keywords:"next problem error fail rage",run:()=>a(1)}),g.push({id:"prev-problem",label:"Previous problem",detail:"jump backward",keywords:"previous prev problem back",run:()=>a(-1)});let x=c.find(L=>L.keywords.includes("error"));x&&g.push(w("first-error","First error",x));let v=c.find(L=>L.keywords.includes("network"));v&&g.push(w("next-5xx","Next failed request",v));let S=c.find(L=>L.keywords.includes("rage"));S&&g.push(w("next-rage","Next rage click",S));let y=c.find(L=>L.keywords.includes("conversion"));y&&g.push(w("the-conversion","The conversion",y));for(let L of c)g.push(w(`go-${L.id}`,`${L.label} \xB7 ${ae(s(L.t))}`,L));return g;function w(L,C,_){return{id:L,label:C,detail:_.detail,keywords:`${C} ${_.keywords}`.toLowerCase(),run:()=>o(_.ref)}}},[c,a,o,s]),h=(0,rr.useMemo)(()=>{let g=i.trim().toLowerCase();return g?f.filter(x=>x.keywords.includes(g)||x.label.toLowerCase().includes(g)).slice(0,20):f.slice(0,12)},[f,i]);if((0,rr.useEffect)(()=>{e&&(l(""),u(0),requestAnimationFrame(()=>p.current?.focus()))},[e]),(0,rr.useEffect)(()=>u(0),[i]),!e)return null;let m=()=>t(!1),b=g=>{g&&(g.run(),m())};return(0,tr.jsx)("div",{className:"lum-st-palette",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:m,children:(0,tr.jsxs)("div",{className:"lum-st-palette__card",onClick:g=>g.stopPropagation(),children:[(0,tr.jsx)("input",{ref:p,className:"lum-st-palette__input lum-mono",placeholder:"Jump to\u2026 (next 5xx, next rage, first error, the conversion)",value:i,onChange:g=>l(g.target.value),"aria-label":"Command query",onKeyDown:g=>{g.key==="ArrowDown"?(g.preventDefault(),u(x=>Math.min(h.length-1,x+1))):g.key==="ArrowUp"?(g.preventDefault(),u(x=>Math.max(0,x-1))):g.key==="Enter"?(g.preventDefault(),b(h[d])):g.key==="Escape"&&(g.preventDefault(),m())}}),(0,tr.jsxs)("div",{className:"lum-st-palette__hint lum-muted",children:[h.length," match",h.length===1?"":"es"]}),(0,tr.jsxs)("ul",{className:"lum-st-palette__list",role:"listbox",children:[h.map((g,x)=>(0,tr.jsx)("li",{role:"option","aria-selected":x===d,children:(0,tr.jsxs)("button",{className:`lum-st-palette__item ${x===d?"is-active":""}`,onMouseEnter:()=>u(x),onClick:()=>b(g),children:[(0,tr.jsx)("span",{className:"lum-st-palette__label",children:g.label}),(0,tr.jsx)("span",{className:"lum-st-palette__detail lum-muted",children:g.detail})]})},g.id)),h.length===0&&(0,tr.jsx)("li",{className:"lum-st-palette__empty lum-muted",children:"No matches"})]})]})})}var v_=[["Space / K","Play / pause"],["R","Restart"],["\u2190 / \u2192","Seek \u221310s (\u22131s on ruler)"],["[ / ]","Walk prev / next event in lane"],[", / .","Frame step (paused)"],["< / >","Slower / faster"],["N / \u21E7N","Next / previous problem"],["\u2318K / Ctrl K","Command palette"],["E","Cycle feed type filter"],["Z / \u21E7Z","Zoom to selection / out"],["X","Toggle magnetic snap"],["T / D","Stage / Debug focus"],["`","Toggle feed focus"],["S","Auto-skip idle (jump)"],["\u21E7S","Auto-skim idle (8\xD7)"],["L","Loop"],["F","Fullscreen"],["C","Comment at playhead"],["Home / End","Start / end (ruler)"],["Esc","Clear selection / close"],["?","This help"]];function y_({open:e,onClose:t}){return e?(0,er.jsx)("div",{className:"lum-pl-help",role:"dialog","aria-modal":"true","aria-label":"Keyboard shortcuts",onClick:t,children:(0,er.jsxs)("div",{className:"lum-pl-help__card",onClick:r=>r.stopPropagation(),children:[(0,er.jsxs)("div",{className:"lum-pl-help__head",children:[(0,er.jsx)("strong",{children:"Keyboard shortcuts"}),(0,er.jsx)("button",{className:"lum-iconbtn","aria-label":"Close",onClick:t,children:"\u2715"})]}),(0,er.jsx)("div",{className:"lum-pl-help__grid",children:v_.map(([r,n])=>(0,er.jsxs)("div",{className:"lum-pl-help__row",children:[(0,er.jsx)("kbd",{className:"lum-pl-kbd lum-mono",children:r}),(0,er.jsx)("span",{children:n})]},r))}),(0,er.jsx)("p",{className:"lum-muted",children:"Shortcuts are disabled while typing in a text field."})]})}):null}function w_(e){let[t,r]=(0,wu.useState)("wide");return(0,wu.useEffect)(()=>{let n=e.current;if(!n)return;let a=(s,i)=>s<480?"compact":s<720||i<400?"narrow":s<1100?"mid":"wide",o=new ResizeObserver(s=>{let i=s[0];if(!i)return;let{width:l,height:d}=i.contentRect;r(a(l,d))});return o.observe(n),r(a(n.clientWidth,n.clientHeight)),()=>o.disconnect()},[e]),t}function s0(e,t){let r=rm(t);return e&&r.includes(e)?e:r.includes("debug")?"debug":r[0]}var i0="obsrviq.player.inspectorW",l0="obsrviq.player.timelineH";function u0(e){try{let t=Number(localStorage.getItem(e));return Number.isFinite(t)&&t>0?t:null}catch{return null}}function d0(e,t){try{t!=null?localStorage.setItem(e,String(t)):localStorage.removeItem(e)}catch{}}function P0(e){let t=(0,G.useRef)();t.current||(t.current=Nk());let r=t.current;return(0,je.jsx)(Ak,{store:r,children:(0,je.jsx)(Dk,{value:{apiBaseUrl:e.apiBaseUrl,token:e.token,apiKey:e.apiKey,sessionId:e.sessionId},children:(0,je.jsx)(Jx,{children:(0,je.jsx)(b_,{...e,store:r})})})})}function b_({sessionId:e,apiBaseUrl:t,token:r,apiKey:n,startAtMs:a,startMode:o,defaultMode:s,allowedModes:i,defaultSpeed:l,allowFullscreen:d,shareUrl:u,onEnded:p,onError:c,onSeek:f,onComment:h,onBack:m,backLabel:b,live:g,theme:x,embedded:v,className:S,topbarActions:y,focus:w,clip:L,store:C}){let _=(0,G.useRef)(null),I=(0,G.useRef)(null),D=(0,G.useRef)(null),A=(0,G.useRef)([]),k=(0,G.useRef)(-1),ke=(0,G.useRef)(0),Ie=(0,G.useRef)([]),ue=(0,G.useRef)(-1),j=(0,G.useRef)(new Set),be=(0,G.useRef)(new Set),ze=(0,G.useRef)(0),Se=(0,G.useRef)(!1),[we,wr]=(0,G.useState)(0),[E,vt]=(0,G.useState)(!1),[yt,_n]=(0,G.useState)(!1),[Qe,it]=(0,G.useState)(!1),[br,Sr]=(0,G.useState)(0),[X,Me]=(0,G.useState)(!1),[se,Re]=(0,G.useState)(null),lt=(0,G.useRef)(null),[me,la]=(0,G.useState)(()=>u0(i0)),[bu,lm]=(0,G.useState)(()=>u0(l0));(0,G.useEffect)(()=>{d0(i0,me)},[me]),(0,G.useEffect)(()=>{d0(l0,bu)},[bu]);let U0=(0,G.useCallback)(N=>{let H=lt.current;if(!H)return;N.preventDefault();let O=H.getBoundingClientRect(),ee=N.currentTarget;ee.setPointerCapture(N.pointerId),ee.classList.add("is-active");let T=te=>{let ut=Math.max(320,Math.min(820,O.width-360));la(Math.min(ut,Math.max(300,Math.round(O.right-te.clientX))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",T),window.addEventListener("pointerup",ie)},[]),q0=(0,G.useCallback)(N=>{let H=_.current;if(!H)return;N.preventDefault();let O=H.getBoundingClientRect(),ee=N.currentTarget;ee.setPointerCapture(N.pointerId),ee.classList.add("is-active");let T=te=>{let ut=Math.max(140,O.height-240);lm(Math.min(ut,Math.max(120,Math.round(O.bottom-te.clientY))))},ie=()=>{ee.classList.remove("is-active"),window.removeEventListener("pointermove",T),window.removeEventListener("pointerup",ie)};window.addEventListener("pointermove",T),window.addEventListener("pointerup",ie)},[]),Er=w_(_),ua=M(N=>N.focusMode),da={apiBaseUrl:t,token:r,apiKey:n},Hs=d??se?.allowFullscreen??!0,$0=u??se?.shareUrl,um=(0,G.useRef)(Hs);um.current=Hs;let dm=(0,G.useRef)(!1);(0,G.useEffect)(()=>{if(dm.current)return;let N=i!=null&&(s??o)!=null&&l!=null;if(se==null&&!N)return;dm.current=!0;let H=C.getState(),O=rm(i??se?.allowedModes);H.setAllowedModes(O);let ee=s??o??se?.defaultMode;ee&&O.includes(ee)&&C.setState({focusMode:ee});let T=l??se?.defaultSpeed;if(T!=null){let ie=c0.reduce((te,ut)=>Math.abs(ut-T)<Math.abs(te-T)?ut:te);C.setState({speed:ie}),H.controller?.setSpeed(ie)}},[se]),(0,G.useEffect)(()=>{let N=!1;return vt(!1),Ie.current=[],ue.current=-1,j.current=new Set,be.current=new Set,ze.current=0,Se.current=!1,C.setState({status:"loading",error:null,loadProgress:0,controller:null,pendingSeek:null}),(async()=>{if(g){let{detail:J,events:ge,rrwebEvents:or}=await Uk(e,da,(sr,K)=>!N&&C.setState({loadProgress:K?sr/K:1}));if(N)return;if(Re(J.replaySettings??{}),A.current=or,k.current=J.replayChunks.reduce((sr,K)=>Math.max(sr,K.seq),-1),ke.current=ge.reduce((sr,K)=>Math.max(sr,K.t),0),J.summary.hasReplay&&or.length>0)C.setState({events:ge,markers:Fs(ge),summary:J.summary,hasReplay:!0,status:"buffering",live:!0,following:!0});else{let sr=ge.map(Ce=>Ce.t),K=sr.length?Math.min(...sr):0,V=sr.length?Math.max(...sr):0;C.setState({events:ge,markers:Fs(ge),summary:J.summary,hasReplay:!1,offset:K,durationMs:Math.max(0,V-K),currentTime:0,status:"paused",focusMode:s0(s??o??J.replaySettings?.defaultMode,i??J.replaySettings?.allowedModes)})}vt(!0);return}let{detail:O,events:ee}=await Bk(e,da);if(N)return;Re(O.replaySettings??{});let T=[...O.replayChunks].sort((J,ge)=>J.seq-ge.seq);if(Ie.current=T,T.forEach((J,ge)=>{J.hasSnapshot&&be.current.add(ge)}),ke.current=ee.reduce((J,ge)=>Math.max(J,ge.t),0),!(O.summary.hasReplay&&T.length>0)){let J=ee.map(ao=>ao.t),ge=J.length?Math.min(...J):0,or=J.length?Math.max(...J):0;C.setState({events:ee,markers:Fs(ee),summary:O.summary,hasReplay:!1,offset:ge,durationMs:Math.max(0,or-ge),currentTime:0,status:"paused",focusMode:s0(s??o??O.replaySettings?.defaultMode,i??O.replaySettings?.allowedModes)}),vt(!0);return}let te=T.reduce((J,ge)=>Math.min(J,ge.firstT),T[0].firstT),ut=T.reduce((J,ge)=>Math.max(J,ge.lastT),0);ze.current=Math.max(0,ut-te),C.setState({events:ee,markers:Fs(ee),summary:O.summary,hasReplay:!0,status:"loading",durationMs:ze.current,bufferedMs:0,live:!1,following:!1});let ar=Math.min(T.length,8),Wt=[],Mn=-1;for(let J=0;J<ar;J++){let ge=await Xp(T[J].url,da).catch(()=>[]);if(N)return;if(Wt=Wt.concat(ge),Mn=J,j.current.add(J),ge.some(or=>or.type===2)&&be.current.add(J),Wt.some(or=>or.type===2))break}if(Wt.length<2||!Wt.some(J=>J.type===2)){C.setState({status:"error",error:"Replay data unavailable.",errorNotFound:!1});return}A.current=Wt,ue.current=Mn,C.setState({loadProgress:T.length?(Mn+1)/T.length:1}),vt(!0)})().catch(O=>{N||(Re(ee=>ee??{}),C.setState({status:"error",error:O instanceof Error?O.message:"Load failed",errorNotFound:!!O?.notFound}))}),()=>{N=!0}},[e,we]),(0,G.useEffect)(()=>{if(!E)return;let N=C.getState();if(!N.hasReplay)return;let H=I.current;if(!H)return;H.innerHTML="";let O;try{O=new Kk(H,A.current,{speed:N.speed,showCursor:N.showCursor,autoSkim:N.autoSkim,autoSkip:N.autoSkip},{onTime:te=>C.getState()._onTime(te),onFinish:()=>C.getState()._onFinish(),onState:te=>C.setState({status:te}),onSkim:te=>C.setState({isSkimming:te}),onSkip:te=>C.getState()._onSkip(te)})}catch(te){C.setState({status:"error",error:te instanceof Error?te.message:"Replay initialization failed",errorNotFound:!1});return}C.getState()._attachController(O);let ee=O.meta.startTime-N.summary.startedAt;C.setState({offset:ee});let T=C.getState().events.map(te=>te.t-ee).filter(te=>te>=0);T.length&&O.setActivityTimes(T),g?(O.seek(O.meta.totalTime),C.setState({currentTime:O.meta.totalTime})):a!=null&&!w&&!L&&C.getState().seek(a-ee);let ie=new ResizeObserver(()=>O.fit());return ie.observe(H),()=>{ie.disconnect(),C.getState()._detachController()}},[E]),(0,G.useEffect)(()=>{if(!E||g||!w)return;let N=C.getState(),H;w.eventId&&N.events.some(O=>O.id===w.eventId)&&(H=w.eventId),!H&&w.kind&&w.selector&&(H=N.events.find(ee=>ee.type==="custom"&&ee.name===`${w.kind}_click`&&String(ee.props?.selector??"")===w.selector)?.id),!H&&w.kind&&(H=N.markers.find(O=>O.kind===w.kind&&O.ref)?.ref),H?N.select(H):a!=null&&N.seek(N.toRelative(a))},[E]),(0,G.useEffect)(()=>{if(!E||g)return;let N=C.getState();if(!L){N.setClip(null,null,!1);return}let H=J=>J.name,O=N.summary?.startedAt??null,ee=J=>J!=null&&O!=null?J-O:void 0,T=L.fromMs??ee(L.fromUtc);if(T==null&&L.fromEvent){let J=N.events.find(ge=>ge.type==="custom"&&H(ge)===L.fromEvent);J&&(T=J.t)}if(T==null){N.setClip(null,null,!1);return}let ie=L.toMs??ee(L.toUtc);if(ie==null&&L.toEvent){let J=N.events.find(ge=>ge.type==="custom"&&H(ge)===L.toEvent&&ge.t>T);J&&(ie=J.t)}(L.toMs!=null||L.toUtc!=null||L.toEvent!=null)&&ie==null&&console.warn(`[obsrviq] clip end ${L.toEvent?`event "${L.toEvent}"`:"time"} did not resolve \u2014 playing from the start, unbounded.`);let te=N.toRelative(T),ut=ie!=null?N.toRelative(ie):null,ar=ut!=null&&ut>te?ut:null;N.setClip(te,ar,!!L.loop&&ar!=null),N.seek(te);let Wt=C.getState();(Wt._covers?Wt._covers(te):te<=Wt.bufferedMs+1)?N.play():Se.current=!0},[E,L?.fromEvent,L?.toEvent,L?.fromMs,L?.toMs,L?.fromUtc,L?.toUtc,L?.loop]),(0,G.useEffect)(()=>C.subscribe(N=>{N.status==="playing"?Se.current=!0:(N.status==="paused"||N.status==="ended")&&(Se.current=!1)}),[C]),(0,G.useEffect)(()=>C.subscribe((N,H)=>{N.status==="ended"&&H.status!=="ended"&&p?.()}),[C,p]),(0,G.useEffect)(()=>C.subscribe((N,H)=>{N.status==="error"&&H.status!=="error"&&c?.({reason:N.errorNotFound?"not_found":"error",message:N.error??"Could not load the recording."})}),[C,c]),(0,G.useEffect)(()=>{if(g||!E||!C.getState().hasReplay)return;let N=!1,H=j.current,O=be.current,ee=Ie.current.some(K=>K.hasSnapshot),T=K=>{let V=Ie.current,Ce=0;for(let xe=0;xe<V.length&&V[xe].firstT<=K;xe++)Ce=xe;return Ce},ie=K=>{let V=K+C.getState().offset,Ce=T(V);if(!H.has(Ce))return!1;for(let xe=Ce;xe>=0&&H.has(xe);xe--)if(O.has(xe))return!0;return!1},te=K=>{let V=T(K+C.getState().offset),Ce=Ie.current;for(let xe=V+1;xe<Ce.length;xe++)if(!H.has(xe))return!0;return!1};C.getState()._setLoaderProbes(ie,te);let ut=()=>{let K=Ie.current,V=-1;for(;H.has(V+1);)V++;let Ce=V>=0?Math.max(0,K[V].lastT-C.getState().offset):0;C.setState({bufferedMs:Math.max(C.getState().bufferedMs,Ce),loadProgress:K.length?H.size/K.length:1})},ar=()=>{let K=C.getState();if(K.controller){if(K.pendingSeek!=null){if(ie(K.pendingSeek)){let V=K.pendingSeek;K.controller.seek(V),Se.current?(K.controller.play(V),C.setState({pendingSeek:null,currentTime:V,status:"playing"})):C.setState({pendingSeek:null,currentTime:V,status:"paused"})}return}if(K.status==="buffering"){let V=T(K.currentTime+K.offset);if(!H.has(V))return;ao(V)>V?Se.current?(K.controller.play(K.currentTime),C.setState({status:"playing"})):C.setState({status:"paused"}):V>=Ie.current.length-1&&C.setState({status:"ended",currentTime:C.getState().durationMs})}}},Wt=async K=>{try{return await Xp(K,da)}catch{await new Promise(V=>setTimeout(V,250));try{return await Xp(K,da)}catch{return null}}},Mn=6,J=async(K,V)=>{let Ce=Ie.current,xe=Math.max(0,K),oo=Math.min(Ce.length-1,V),Cu=[];for(let Pr=xe;Pr<=oo;Pr++)H.has(Pr)||Cu.push(Pr);for(let Pr=0;Pr<Cu.length&&!N;Pr+=Mn){let Lu=Cu.slice(Pr,Pr+Mn),j0=await Promise.all(Lu.map(ca=>Wt(Ce[ca].url)));if(N)return;let pm=C.getState().controller;if(!pm)return;for(let ca=0;ca<Lu.length;ca++){let ku=Lu[ca],Vs=j0[ca];Vs&&Vs.length?(pm.appendEvents(Vs),Vs.some(V0=>V0.type===2)&&O.add(ku)):console.warn(`[obsrviq] replay chunk seq ${Ce[ku]?.seq} unavailable \u2014 skipping`),H.add(ku)}ut(),ar()}},ge=8,or=async K=>{for(let Ce=K;Ce>=0;Ce--)if(O.has(Ce)){if(ee||K-Ce<=ge)return Ce;break}let V=K;for(;V>=0&&!N;){let Ce=Math.max(0,V-ge+1);await J(Ce,V);for(let xe=V;xe>=Ce;xe--)if(O.has(xe))return xe;if(Ce===0)return 0;V=Ce-1}return 0},ao=K=>{let V=K;for(;H.has(V+1);)V++;return V};return(async()=>{for(;!N&&!C.getState().controller;)await new Promise(K=>setTimeout(K,30));for(;!N;){let K=Ie.current;if(H.size>=K.length)break;let V=C.getState();if(V.pendingSeek!=null&&V.controller){if(!ie(V.pendingSeek)){let xe=T(V.pendingSeek+V.offset),oo=await or(xe);await J(oo,xe)}ar();continue}if((V.status==="playing"||V.status==="buffering")&&!ie(V.currentTime)){let xe=T(V.currentTime+V.offset),oo=await or(xe);await J(oo,xe),ar();continue}let Ce=T(V.currentTime+V.offset);if(H.has(Ce)){let xe=ao(Ce);if(xe<K.length-1){await J(xe+1,xe+1);continue}}await new Promise(xe=>setTimeout(xe,200))}N||ar()})(),()=>{N=!0,C.getState()._setLoaderProbes(null,null)}},[g,E]),(0,G.useEffect)(()=>{if(!g||!E)return;let N=!1,H=async()=>{let ee=C.getState().controller;if(!(!ee||N))try{let T=await qk(e,da,k.current,ke.current);if(N)return;if(k.current=T.maxSeq,T.newRrwebEvents.length){let te=ee.appendEvents(T.newRrwebEvents);C.setState({durationMs:te,bufferedMs:te}),C.getState().following&&(ee.seek(te),C.setState({currentTime:te}))}if(T.newEvents.length){ke.current=T.newEvents.reduce((ut,ar)=>Math.max(ut,ar.t),ke.current);let te=[...C.getState().events,...T.newEvents];C.setState({events:te,markers:Fs(te)})}let ie=T.summary.lastEventAt??0;ie&&Date.now()-ie>4e4&&(C.setState({live:!1,following:!1}),N=!0)}catch{}};H();let O=setInterval(()=>{H()},1e3);return()=>{N=!0,clearInterval(O)}},[g,E]),(0,G.useEffect)(()=>{let N=C.getState().controller;N&&requestAnimationFrame(()=>N.fit())},[ua,Er,C]),(0,G.useEffect)(()=>{let N=_.current;if(!N)return;let H=O=>{let ee=O.target;if(ee&&(ee.tagName==="INPUT"||ee.tagName==="TEXTAREA"||ee.isContentEditable))return;let T=C.getState();if((O.metaKey||O.ctrlKey)&&(O.key==="k"||O.key==="K")){O.preventDefault(),T.openPalette(!T.paletteOpen);return}if(!(O.metaKey||O.ctrlKey))switch(O.key){case" ":case"k":O.preventDefault(),T.toggle();break;case"r":T.restart();break;case"ArrowLeft":O.preventDefault(),T.seek(T.currentTime-1e4);break;case"ArrowRight":O.preventDefault(),T.seek(T.currentTime+1e4);break;case"[":T.jumpEvent(-1);break;case"]":T.jumpEvent(1);break;case",":O.shiftKey?Ws(-1):T.step(-1);break;case".":O.shiftKey?Ws(1):T.step(1);break;case"s":case"S":O.shiftKey?T.setAutoSkim(!T.autoSkim):T.setAutoSkip(!T.autoSkip);break;case"l":case"L":T.setLoop(!T.loop);break;case"f":case"F":um.current&&Su();break;case"c":case"C":h?.(T.currentTime+T.offset);break;case"n":case"N":O.preventDefault(),T.nextProblem(O.shiftKey?-1:1);break;case"e":case"E":{let ie=["all","network","console","error","signal","task","nav"],te=ie.indexOf(T.feedFilter);T.setFeedFilter(ie[(te+1)%ie.length]);break}case"z":case"Z":O.shiftKey?T.zoomStack.length&&T.zoomOutTo(T.zoomStack.length-1):T.selectionRange&&T.zoomTo(T.selectionRange[0],T.selectionRange[1]);break;case"x":case"X":T.toggleSnap();break;case"t":case"T":T.setFocusMode(T.focusMode==="stage"?"balanced":"stage");break;case"d":case"D":T.setFocusMode(T.focusMode==="debug"?"balanced":"debug");break;case"`":Sr(ie=>ie+1),Er==="mid"&&Me(ie=>!ie);break;case">":Ws(1);break;case"<":Ws(-1);break;case"?":it(ie=>!ie);break;case"Escape":T.paletteOpen?T.openPalette(!1):T.selectedEventId?T.select(null):T.zoomStack.length?T.zoomOutTo(T.zoomStack.length-1):Qe?it(!1):X&&Me(!1);break;default:break}};return N.addEventListener("keydown",H),()=>N.removeEventListener("keydown",H)},[Er,Qe,X]);let Ws=(0,G.useCallback)(N=>{let H=C.getState(),O=[.5,1,1.5,2,4,8],ee=O.indexOf(H.speed),T=O[Math.min(O.length-1,Math.max(0,ee+N))]??H.speed;H.setSpeed(T)},[C]),Su=(0,G.useCallback)(()=>{let N=_.current;N&&(document.fullscreenElement?document.exitFullscreen?.().catch(()=>{}):N.requestFullscreen?.().catch(()=>{}))},[]);(0,G.useEffect)(()=>{let N=()=>_n(!!document.fullscreenElement);return document.addEventListener("fullscreenchange",N),()=>document.removeEventListener("fullscreenchange",N)},[]),(0,G.useEffect)(()=>{if(!f)return;let N=-1;return C.subscribe(H=>{H.currentTime!==N&&(N=H.currentTime,f(H.currentTime+H.offset))})},[f,C]),(0,G.useEffect)(()=>{if(Er!=="mid"){Me(!1);return}return C.subscribe((N,H)=>{N.selectedEventId&&N.selectedEventId!==H.selectedEventId&&Me(!0)})},[Er,C]);let cm=x,js=Er==="wide"&&ua!=="stage",fm=ua==="stage"?null:bu,H0=fm!=null?{...cm??{},gridTemplateRows:`48px auto minmax(0, 1fr) ${fm}px`}:cm,W0=js&&me!=null?{gridTemplateColumns:`minmax(0, 1fr) ${me}px`}:void 0;return(0,je.jsxs)("div",{ref:_,className:`lum-root lum lum-pl lum-strata lum-strata--${Er} lum-strata--${ua} ${v?"lum-pl--embedded":""} ${S??""}`,style:H0,"data-breakpoint":Er,"data-focus":ua,tabIndex:0,children:[(0,je.jsx)(rI,{isFullscreen:yt,onFullscreen:Su,allowFullscreen:Hs,sessionId:e,shareUrl:$0,apiBaseUrl:t,onHelp:()=>it(N=>!N),onBack:m,backLabel:b,topbarActions:y}),(0,je.jsx)(iI,{}),(0,je.jsxs)("div",{className:"lum-st-stagerow",ref:lt,style:W0,children:[(0,je.jsx)("div",{className:"lum-st-stagecol",ref:D,children:(0,je.jsx)(lI,{ref:I,onRetry:()=>wr(N=>N+1),overlay:(0,je.jsx)(fI,{stageRef:I})})}),js&&(0,je.jsxs)("div",{className:"lum-st-inspectorcol",children:[(0,je.jsx)("div",{className:"lum-st-resize lum-st-resize--x",role:"separator","aria-orientation":"vertical","aria-label":"Resize inspector width",title:"Drag to resize \xB7 double-click to reset",onPointerDown:U0,onDoubleClick:()=>la(null)}),(0,je.jsx)(a0,{feedFocusKey:br})]})]}),(0,je.jsx)(g_,{breakpoint:Er,isFullscreen:yt,onFullscreen:Su,allowFullscreen:Hs,onResizeStart:ua==="stage"?void 0:q0,onResizeReset:()=>lm(null)}),!js&&(0,je.jsx)(Vc,{open:X,onClose:()=>Me(!1),title:"Inspector",children:(0,je.jsx)(a0,{feedFocusKey:br})}),!js&&!X&&(0,je.jsx)("button",{className:"lum-st-inspectortab",onClick:()=>Me(!0),"aria-label":"Open inspector (`)",children:"Inspector"}),(0,je.jsx)(x_,{}),(0,je.jsx)(y_,{open:Qe,onClose:()=>it(!1)})]})}var N0=F(le(),1);function im({theme:e,className:t,children:r}){let n=typeof e=="string"?e:void 0,a=e&&typeof e=="object"?e:void 0;return(0,N0.jsx)("div",{className:`lum-root lum lum-widget ${t??""}`,"data-lum-theme":n,style:a,children:r})}var ia=F(le(),1);function S_(e,t){return e?{authorization:`Bearer ${e}`}:t?{authorization:`Bearer ${t}`,"x-obsrviq-key":t}:{}}function C_(e,t){let{apiBaseUrl:r,token:n,apiKey:a,userId:o,siteId:s,clip:i}=t,[l,d]=(0,Qr.useState)({sessionId:null,loading:e,error:null,notFound:!1}),u=JSON.stringify([o,s,i?.fromUtc,i?.toUtc,i?.fromEvent,i?.toEvent]);return(0,Qr.useEffect)(()=>{if(!e||!o)return;let p=new AbortController;d({sessionId:null,loading:!0,error:null,notFound:!1});let c=new URLSearchParams({userId:o});s&&c.set("siteId",s),i?.fromUtc!=null&&i?.toUtc!=null?(c.set("fromUtc",String(i.fromUtc)),c.set("toUtc",String(i.toUtc))):i?.fromEvent&&(c.set("fromEvent",i.fromEvent),i.toEvent&&c.set("toEvent",i.toEvent));let f=r.replace(/\/$/,"");return fetch(`${f}/v1/sessions/locate?${c.toString()}`,{headers:S_(n,a),signal:p.signal}).then(async h=>{if(!h.ok){let m=h.status===404;throw Object.assign(new Error(m?"No matching recording for that user.":`Lookup failed (${h.status}).`),{notFound:m})}return h.json()}).then(h=>{p.signal.aborted||d({sessionId:h.sessionId,loading:!1,error:null,notFound:!1})}).catch(h=>{if(p.signal.aborted)return;let m=!!h?.notFound;d({sessionId:null,loading:!1,error:h instanceof Error?h.message:"Lookup failed.",notFound:m})}),()=>p.abort()},[e,u,r]),l}var L_={display:"flex",alignItems:"center",justifyContent:"center",height:"100%",padding:16,textAlign:"center",color:"var(--lum-muted)",fontSize:14};function T0({sessionId:e,userId:t,siteId:r,apiBaseUrl:n,apiKey:a,token:o,theme:s,startAtMs:i,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:m,fallback:b="message",height:g=560}){let x=!e&&!!t,v=C_(x,{apiBaseUrl:n,token:o,apiKey:a,userId:t,siteId:r,clip:l}),[S,y]=(0,Qr.useState)(null),w=e??v.sessionId;(0,Qr.useEffect)(()=>y(null),[w]);let L=(0,Qr.useRef)(null);if((0,Qr.useEffect)(()=>{let C=null;!e&&!t?C={reason:"error",message:"Provide a sessionId or a userId."}:v.error?C={reason:v.notFound?"not_found":"error",message:v.error}:S&&(C=S),C?L.current!==C.message&&(L.current=C.message,m?.(C)):L.current=null},[e,t,v.error,v.notFound,S]),!w){if(b==="hide")return null;let C=!e&&!t?"Provide a sessionId or a userId to play a recording.":x&&v.loading?"Finding the recording\u2026":v.error??"Recording unavailable.";return(0,ia.jsx)(im,{theme:s,className:"lum-widget--replay",children:(0,ia.jsx)("div",{style:{height:g},children:(0,ia.jsx)("div",{style:L_,children:C})})})}return S&&b==="hide"?null:(0,ia.jsx)(im,{theme:s,className:"lum-widget--replay",children:(0,ia.jsx)("div",{style:{height:g},children:(0,ia.jsx)(P0,{sessionId:w,apiBaseUrl:n,apiKey:a,token:o,startAtMs:i,clip:l,defaultMode:d,allowedModes:u,defaultSpeed:p,allowFullscreen:c,shareUrl:f,onEnded:h,onError:C=>y(C),embedded:!0})})})}var A0=`/* Obsrviq design tokens (\xA716) \u2014 refined. Override any --lum-* var to white-label.
141
141
  All neutrals carry a faint cool-blue hue (~232\xB0) for identity; the accent is a
142
142
  confident iris reserved for live / now / active + primary CTA. */
143
143
  :root,
@@ -3002,12 +3002,26 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
3002
3002
  }
3003
3003
  .lum-pl-timing__row {
3004
3004
  display: grid;
3005
- grid-template-columns: 80px 1fr 64px;
3005
+ grid-template-columns: 92px 1fr 64px;
3006
3006
  gap: 8px;
3007
3007
  align-items: center;
3008
3008
  padding: 3px 0;
3009
3009
  font-size: 12px;
3010
3010
  }
3011
+ .lum-pl-timing__label {
3012
+ display: inline-flex;
3013
+ align-items: center;
3014
+ gap: 4px;
3015
+ }
3016
+ .lum-pl-timing__i {
3017
+ flex: none;
3018
+ opacity: 0.45;
3019
+ cursor: help;
3020
+ vertical-align: middle;
3021
+ }
3022
+ .lum-pl-timing__i:hover {
3023
+ opacity: 0.85;
3024
+ }
3011
3025
  .lum-pl-timing__bar {
3012
3026
  background: var(--lum-surface-2);
3013
3027
  height: 8px;
@@ -3292,21 +3306,43 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
3292
3306
  width: 240px;
3293
3307
  height: 100%;
3294
3308
  }
3295
- /* Tap ripple overlay. */
3296
- .lum-mob-touch {
3309
+ /* Tap ripple \u2014 small + quick, so it reads as a precise touch, not a blob. */
3310
+ .lum-mob-tap {
3297
3311
  position: absolute;
3298
- width: 34px;
3299
- height: 34px;
3300
- margin: -17px 0 0 -17px;
3312
+ width: 18px;
3313
+ height: 18px;
3314
+ margin: -9px 0 0 -9px;
3301
3315
  border-radius: 50%;
3302
- background: rgba(99, 102, 241, 0.35);
3303
- box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.7) inset;
3316
+ background: rgba(129, 140, 248, 0.26);
3317
+ box-shadow: 0 0 0 1.5px rgba(129, 140, 248, 0.9) inset, 0 0 10px rgba(129, 140, 248, 0.5);
3304
3318
  pointer-events: none;
3305
- animation: lum-mob-ripple 0.5s ease-out;
3319
+ animation: lum-mob-tap 0.42s ease-out forwards;
3306
3320
  }
3307
- @keyframes lum-mob-ripple {
3308
- from { transform: scale(0.4); opacity: 0.9; }
3309
- to { transform: scale(1); opacity: 0.5; }
3321
+ @keyframes lum-mob-tap {
3322
+ from { transform: scale(0.35); opacity: 0.95; }
3323
+ 60% { opacity: 0.7; }
3324
+ to { transform: scale(1.15); opacity: 0; }
3325
+ }
3326
+ /* Swipe streak \u2014 a soft glowing comet tracing the finger's recent path (per-segment fade
3327
+ set inline). Non-scaling strokes keep a constant visual weight across device sizes. */
3328
+ .lum-mob-swipe {
3329
+ position: absolute;
3330
+ inset: 0;
3331
+ width: 100%;
3332
+ height: 100%;
3333
+ pointer-events: none;
3334
+ overflow: visible;
3335
+ }
3336
+ .lum-mob-swipe__seg {
3337
+ stroke: rgba(129, 140, 248, 0.95);
3338
+ stroke-width: 3.5;
3339
+ stroke-linecap: round;
3340
+ filter: drop-shadow(0 0 3px rgba(129, 140, 248, 0.65));
3341
+ }
3342
+ .lum-mob-swipe__head {
3343
+ fill: #c7d2fe;
3344
+ stroke: rgba(129, 140, 248, 0.95);
3345
+ filter: drop-shadow(0 0 5px rgba(129, 140, 248, 0.9));
3310
3346
  }
3311
3347
 
3312
3348
  /* Synced structured-event feed. */
@@ -3328,6 +3364,116 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
3328
3364
  color: var(--lum-muted);
3329
3365
  border-bottom: 1px solid var(--lum-border);
3330
3366
  }
3367
+ /* Feed / Network tabs */
3368
+ .lum-mob-feed__tabs { display: flex; border-bottom: 1px solid var(--lum-border); flex: none; }
3369
+ .lum-mob-feed__tab {
3370
+ flex: 1; padding: 9px 0; background: none; border: 0; cursor: pointer;
3371
+ font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
3372
+ color: var(--lum-muted); border-bottom: 2px solid transparent;
3373
+ }
3374
+ .lum-mob-feed__tab:hover { color: var(--lum-text-2); }
3375
+ .lum-mob-feed__tab.is-active { color: var(--lum-text); border-bottom-color: var(--lum-accent); }
3376
+
3377
+ /* Network waterfall + inspector \u2014 modelled on the web NetworkPanel. */
3378
+ .lum-mob-net { display: flex; flex-direction: column; flex: 1; min-height: 0; font-size: 12px; }
3379
+ .lum-mob-net__empty { padding: 18px 14px; color: var(--lum-muted); font-size: 12.5px; }
3380
+
3381
+ .lum-mob-net__toolbar {
3382
+ display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; flex: none;
3383
+ border-bottom: 1px solid var(--lum-border);
3384
+ }
3385
+ .lum-mob-net__chips { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
3386
+ .lum-mob-net__chip {
3387
+ padding: 2px 9px; border-radius: 999px; cursor: pointer; font-size: 11px; font-weight: 600;
3388
+ color: var(--lum-muted); background: var(--lum-raised); border: 1px solid transparent;
3389
+ }
3390
+ .lum-mob-net__chip:hover { color: var(--lum-text-2); }
3391
+ .lum-mob-net__chip.is-active { color: var(--lum-text); background: var(--lum-surface); border-color: var(--lum-accent); }
3392
+ .lum-mob-net__follow {
3393
+ margin-left: auto; display: inline-flex; align-items: center; gap: 4px;
3394
+ font-size: 11px; color: var(--lum-muted); cursor: pointer;
3395
+ }
3396
+ .lum-mob-net__search {
3397
+ width: 100%; padding: 4px 8px; border-radius: 6px; font-size: 12px;
3398
+ background: var(--lum-bg); border: 1px solid var(--lum-border); color: var(--lum-text);
3399
+ }
3400
+
3401
+ .lum-mob-net__rows { overflow-y: auto; flex: 1; min-height: 0; padding: 2px 0; }
3402
+ .lum-mob-net__row {
3403
+ display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left;
3404
+ padding: 7px 10px 8px; background: none; border: 0; border-bottom: 1px solid var(--lum-border);
3405
+ cursor: pointer; color: var(--lum-text); border-left: 2px solid transparent;
3406
+ }
3407
+ .lum-mob-net__row:hover { background: var(--lum-raised); }
3408
+ .lum-mob-net__row.is-active { background: var(--lum-raised); border-left-color: var(--lum-accent); }
3409
+ .lum-mob-net__rowtop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 7px; align-items: center; }
3410
+ .lum-mob-net__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--lum-text); }
3411
+ .lum-mob-net__method { font-size: 10.5px; font-weight: 700; color: var(--lum-muted); }
3412
+ .lum-mob-net__time { font-size: 11px; color: var(--lum-muted); font-variant-numeric: tabular-nums; }
3413
+ /* Timeline-positioned waterfall bar (start offset + duration over the whole session). */
3414
+ .lum-mob-net__wf { position: relative; display: block; height: 4px; border-radius: 2px; background: var(--lum-raised); }
3415
+ .lum-mob-net__bar { position: absolute; top: 0; height: 100%; min-width: 2px; border-radius: 2px; background: var(--lum-accent); }
3416
+ .lum-mob-net__bar--error { background: var(--lum-error); }
3417
+ .lum-mob-net__bar--warn { background: #d97706; }
3418
+ .lum-mob-net__bar--info { background: #3b82f6; }
3419
+ .lum-mob-net__bar--default { background: #1f9d55; }
3420
+
3421
+ .lum-mob-net__footer {
3422
+ flex: none; padding: 6px 10px; font-size: 11px; color: var(--lum-muted);
3423
+ border-top: 1px solid var(--lum-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
3424
+ }
3425
+
3426
+ /* Console rows \u2014 reuse the web ConsoleArgs renderer, with a compact time/jump header. */
3427
+ .lum-mob-crow { padding: 5px 10px 6px; border-bottom: 1px solid var(--lum-border); border-left: 2px solid transparent; }
3428
+ .lum-mob-crow.is-active { background: var(--lum-raised); border-left-color: var(--lum-accent); }
3429
+ .lum-mob-crow__t { display: inline-block; margin-bottom: 2px; padding: 0; background: none; border: 0; cursor: pointer; font-size: 10.5px; color: var(--lum-muted); }
3430
+ .lum-mob-crow__t:hover { color: var(--lum-accent); }
3431
+
3432
+ /* Mobile AI panel \u2014 vision-grounded narrative + seekable findings. */
3433
+ .lum-mob-ai { overflow-y: auto; flex: 1; min-height: 0; padding: 10px 12px 14px; font-size: 12.5px; }
3434
+ .lum-mob-ai__msg { padding: 18px 14px; color: var(--lum-muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
3435
+ .lum-mob-ai__cta { padding: 26px 18px; text-align: center; color: var(--lum-muted); display: flex; flex-direction: column; align-items: center; gap: 6px; }
3436
+ .lum-mob-ai__ctatitle { margin: 4px 0 0; font-size: 14px; font-weight: 650; color: var(--lum-text); }
3437
+ .lum-mob-ai__ctasub { margin: 0; font-size: 12px; line-height: 1.5; max-width: 280px; }
3438
+ .lum-mob-ai__ctabtn { margin-top: 8px; padding: 7px 18px; border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 650; color: #fff; background: var(--lum-accent); border: 0; }
3439
+ .lum-mob-ai__ctabtn:hover { filter: brightness(1.06); }
3440
+ .lum-mob-ai__cap { margin-bottom: 8px; padding: 6px 9px; border-radius: 6px; font-size: 11px; color: var(--lum-warn); background: var(--lum-raised); border: 1px solid var(--lum-border); }
3441
+ .lum-mob-ai__retry { padding: 2px 9px; border-radius: 6px; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--lum-accent); background: var(--lum-raised); border: 1px solid var(--lum-border); }
3442
+ .lum-mob-ai__head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
3443
+ .lum-mob-ai__headline { font-size: 13px; font-weight: 650; color: var(--lum-text); flex: 1; min-width: 0; }
3444
+ .lum-mob-ai__refresh { flex: none; padding: 3px; border-radius: 5px; cursor: pointer; color: var(--lum-muted); background: none; border: 1px solid var(--lum-border); display: inline-flex; }
3445
+ .lum-mob-ai__refresh:hover { color: var(--lum-text); }
3446
+ .lum-mob-ai__narrative { margin: 0 0 12px; color: var(--lum-text-2); line-height: 1.5; }
3447
+ .lum-mob-ai__sec { margin-bottom: 12px; }
3448
+ .lum-mob-ai__sectitle { font-size: 10.5px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.04em; color: var(--lum-muted); margin-bottom: 5px; }
3449
+ .lum-mob-ai__findings { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
3450
+ .lum-mob-ai__finding { display: flex; gap: 8px; padding: 6px; border-radius: 7px; cursor: pointer; }
3451
+ .lum-mob-ai__finding:hover { background: var(--lum-raised); }
3452
+ .lum-mob-ai__dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--lum-muted); }
3453
+ .lum-mob-ai__dot--err { background: var(--lum-error); }
3454
+ .lum-mob-ai__dot--warn { background: #d97706; }
3455
+ .lum-mob-ai__dot--info { background: #3b82f6; }
3456
+ .lum-mob-ai__fbody { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
3457
+ .lum-mob-ai__ftitle { font-weight: 600; color: var(--lum-text); }
3458
+ .lum-mob-ai__ft { font-weight: 400; font-size: 10.5px; color: var(--lum-muted); }
3459
+ .lum-mob-ai__fdetail { font-size: 11.5px; color: var(--lum-text-2); line-height: 1.4; }
3460
+ .lum-mob-ai__screens { display: flex; flex-wrap: wrap; gap: 5px; }
3461
+ .lum-mob-ai__screen { padding: 3px 8px; border-radius: 999px; cursor: pointer; font-size: 11px; color: var(--lum-text-2); background: var(--lum-raised); border: 1px solid var(--lum-border); }
3462
+ .lum-mob-ai__screen:hover { color: var(--lum-text); border-color: var(--lum-accent); }
3463
+ .lum-mob-ai__st { color: var(--lum-muted); }
3464
+ .lum-mob-ai__foot { font-size: 10.5px; color: var(--lum-muted); padding-top: 4px; border-top: 1px solid var(--lum-border); }
3465
+
3466
+ /* Error groups \u2014 compact mirror of the web ErrorsPanel. */
3467
+ .lum-mob-errgrp { padding: 9px 10px; border-bottom: 1px solid var(--lum-border); }
3468
+ .lum-mob-errgrp__head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
3469
+ .lum-mob-errgrp__name { font-size: 12px; color: var(--lum-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
3470
+ .lum-mob-errgrp__jump { margin-left: auto; padding: 0; background: none; border: 0; cursor: pointer; font-size: 10.5px; color: var(--lum-accent); white-space: nowrap; }
3471
+ .lum-mob-errgrp__msg { font-size: 11.5px; color: var(--lum-text-2); word-break: break-word; }
3472
+ .lum-mob-errgrp__stack {
3473
+ margin: 5px 0 0; padding: 7px; border-radius: 6px; max-height: 180px; overflow: auto;
3474
+ font-size: 10.5px; line-height: 1.4; white-space: pre-wrap; word-break: break-all;
3475
+ background: var(--lum-bg); border: 1px solid var(--lum-border); color: var(--lum-muted);
3476
+ }
3331
3477
  .lum-mob-feed__list {
3332
3478
  list-style: none;
3333
3479
  margin: 0;
@@ -3711,7 +3857,7 @@ or you can use record.mirror to access the mirror instance during recording.`,wy
3711
3857
  .lum-w-copilot__bar .lum-pl-search {
3712
3858
  flex: 1;
3713
3859
  }
3714
- `;var NS="obsrviq-embed-styles";function bM(){if(typeof document>"u"||document.getElementById(NS))return;let e=document.createElement("style");e.id=NS,e.textContent=TS,document.head.appendChild(e)}function CM(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error(`ObsrviqReplay.mount: no element matched "${String(e)}"`);return t}function OS(e,t){let r=CM(e);bM();let a=(0,DS.createRoot)(r);return a.render((0,AS.createElement)(PS,t)),{unmount:()=>a.unmount()}}var FS={mount:OS};typeof window<"u"&&(window.ObsrviqReplay=FS);var LM=FS;return YS(kM);})();
3860
+ `;var D0="obsrviq-embed-styles";function k_(){if(typeof document>"u"||document.getElementById(D0))return;let e=document.createElement("style");e.id=D0,e.textContent=A0,document.head.appendChild(e)}function I_(e){let t=typeof e=="string"?document.querySelector(e):e;if(!t)throw new Error(`ObsrviqReplay.mount: no element matched "${String(e)}"`);return t}function B0(e,t){let r=I_(e);k_();let n=(0,F0.createRoot)(r);return n.render((0,O0.createElement)(T0,t)),{unmount:()=>n.unmount()}}var z0={mount:B0};typeof window<"u"&&(window.ObsrviqReplay=z0);var __=z0;return Z0(M_);})();
3715
3861
  /*! Bundled license information:
3716
3862
 
3717
3863
  react/cjs/react.production.min.js:
@@ -3787,6 +3933,7 @@ lucide-react/dist/esm/icons/command.js:
3787
3933
  lucide-react/dist/esm/icons/disc.js:
3788
3934
  lucide-react/dist/esm/icons/fast-forward.js:
3789
3935
  lucide-react/dist/esm/icons/gauge.js:
3936
+ lucide-react/dist/esm/icons/info.js:
3790
3937
  lucide-react/dist/esm/icons/keyboard.js:
3791
3938
  lucide-react/dist/esm/icons/link-2.js:
3792
3939
  lucide-react/dist/esm/icons/magnet.js: