224 lines
381 KiB
JavaScript
224 lines
381 KiB
JavaScript
var K0=Object.create;var Tc=Object.defineProperty;var b0=Object.getOwnPropertyDescriptor;var O0=Object.getOwnPropertyNames;var L0=Object.getPrototypeOf,Y0=Object.prototype.hasOwnProperty;var Qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),P0=(e,t)=>{for(var A in t)Tc(e,A,{get:t[A],enumerable:!0})},V0=(e,t,A,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of O0(t))!Y0.call(e,n)&&n!==A&&Tc(e,n,{get:()=>t[n],enumerable:!(i=b0(t,n))||i.enumerable});return e};var K=(e,t,A)=>(A=e!=null?K0(L0(e)):{},V0(t||!e||!e.__esModule?Tc(A,"default",{value:e,enumerable:!0}):A,e));var ed=Qe($=>{"use strict";var Lr=Symbol.for("react.element"),z0=Symbol.for("react.portal"),_0=Symbol.for("react.fragment"),T0=Symbol.for("react.strict_mode"),X0=Symbol.for("react.profiler"),Z0=Symbol.for("react.provider"),W0=Symbol.for("react.context"),j0=Symbol.for("react.forward_ref"),$0=Symbol.for("react.suspense"),eF=Symbol.for("react.memo"),tF=Symbol.for("react.lazy"),PB=Symbol.iterator;function AF(e){return e===null||typeof e!="object"?null:(e=PB&&e[PB]||e["@@iterator"],typeof e=="function"?e:null)}var _B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},TB=Object.assign,XB={};function Un(e,t,A){this.props=e,this.context=t,this.refs=XB,this.updater=A||_B}Un.prototype.isReactComponent={};Un.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")};Un.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ZB(){}ZB.prototype=Un.prototype;function Zc(e,t,A){this.props=e,this.context=t,this.refs=XB,this.updater=A||_B}var Wc=Zc.prototype=new ZB;Wc.constructor=Zc;TB(Wc,Un.prototype);Wc.isPureReactComponent=!0;var VB=Array.isArray,WB=Object.prototype.hasOwnProperty,jc={current:null},jB={key:!0,ref:!0,__self:!0,__source:!0};function $B(e,t,A){var i,n={},r=null,o=null;if(t!=null)for(i in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(r=""+t.key),t)WB.call(t,i)&&!jB.hasOwnProperty(i)&&(n[i]=t[i]);var s=arguments.length-2;if(s===1)n.children=A;else if(1<s){for(var a=Array(s),c=0;c<s;c++)a[c]=arguments[c+2];n.children=a}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)n[i]===void 0&&(n[i]=s[i]);return{$$typeof:Lr,type:e,key:r,ref:o,props:n,_owner:jc.current}}function iF(e,t){return{$$typeof:Lr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function $c(e){return typeof e=="object"&&e!==null&&e.$$typeof===Lr}function nF(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(A){return t[A]})}var zB=/\/+/g;function Xc(e,t){return typeof e=="object"&&e!==null&&e.key!=null?nF(""+e.key):t.toString(36)}function Ks(e,t,A,i,n){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(r){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case Lr:case z0:o=!0}}if(o)return o=e,n=n(o),e=i===""?"."+Xc(o,0):i,VB(n)?(A="",e!=null&&(A=e.replace(zB,"$&/")+"/"),Ks(n,t,A,"",function(c){return c})):n!=null&&($c(n)&&(n=iF(n,A+(!n.key||o&&o.key===n.key?"":(""+n.key).replace(zB,"$&/")+"/")+e)),t.push(n)),1;if(o=0,i=i===""?".":i+":",VB(e))for(var s=0;s<e.length;s++){r=e[s];var a=i+Xc(r,s);o+=Ks(r,t,A,a,n)}else if(a=AF(e),typeof a=="function")for(e=a.call(e),s=0;!(r=e.next()).done;)r=r.value,a=i+Xc(r,s++),o+=Ks(r,t,A,a,n);else if(r==="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 o}function qs(e,t,A){if(e==null)return e;var i=[],n=0;return Ks(e,i,"","",function(r){return t.call(A,r,n++)}),i}function rF(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(A){(e._status===0||e._status===-1)&&(e._status=1,e._result=A)},function(A){(e._status===0||e._status===-1)&&(e._status=2,e._result=A)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var rt={current:null},bs={transition:null},oF={ReactCurrentDispatcher:rt,ReactCurrentBatchConfig:bs,ReactCurrentOwner:jc};$.Children={map:qs,forEach:function(e,t,A){qs(e,function(){t.apply(this,arguments)},A)},count:function(e){var t=0;return qs(e,function(){t++}),t},toArray:function(e){return qs(e,function(t){return t})||[]},only:function(e){if(!$c(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};$.Component=Un;$.Fragment=_0;$.Profiler=X0;$.PureComponent=Zc;$.StrictMode=T0;$.Suspense=$0;$.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oF;$.cloneElement=function(e,t,A){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=TB({},e.props),n=e.key,r=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(r=t.ref,o=jc.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(a in t)WB.call(t,a)&&!jB.hasOwnProperty(a)&&(i[a]=t[a]===void 0&&s!==void 0?s[a]:t[a])}var a=arguments.length-2;if(a===1)i.children=A;else if(1<a){s=Array(a);for(var c=0;c<a;c++)s[c]=arguments[c+2];i.children=s}return{$$typeof:Lr,type:e.type,key:n,ref:r,props:i,_owner:o}};$.createContext=function(e){return e={$$typeof:W0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:Z0,_context:e},e.Consumer=e};$.createElement=$B;$.createFactory=function(e){var t=$B.bind(null,e);return t.type=e,t};$.createRef=function(){return{current:null}};$.forwardRef=function(e){return{$$typeof:j0,render:e}};$.isValidElement=$c;$.lazy=function(e){return{$$typeof:tF,_payload:{_status:-1,_result:e},_init:rF}};$.memo=function(e,t){return{$$typeof:eF,type:e,compare:t===void 0?null:t}};$.startTransition=function(e){var t=bs.transition;bs.transition={};try{e()}finally{bs.transition=t}};$.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};$.useCallback=function(e,t){return rt.current.useCallback(e,t)};$.useContext=function(e){return rt.current.useContext(e)};$.useDebugValue=function(){};$.useDeferredValue=function(e){return rt.current.useDeferredValue(e)};$.useEffect=function(e,t){return rt.current.useEffect(e,t)};$.useId=function(){return rt.current.useId()};$.useImperativeHandle=function(e,t,A){return rt.current.useImperativeHandle(e,t,A)};$.useInsertionEffect=function(e,t){return rt.current.useInsertionEffect(e,t)};$.useLayoutEffect=function(e,t){return rt.current.useLayoutEffect(e,t)};$.useMemo=function(e,t){return rt.current.useMemo(e,t)};$.useReducer=function(e,t,A){return rt.current.useReducer(e,t,A)};$.useRef=function(e){return rt.current.useRef(e)};$.useState=function(e){return rt.current.useState(e)};$.useSyncExternalStore=function(e,t,A){return rt.current.useSyncExternalStore(e,t,A)};$.useTransition=function(){return rt.current.useTransition()};$.version="18.2.0"});var ze=Qe((EH,td)=>{"use strict";td.exports=ed()});var ld=Qe(ue=>{"use strict";function il(e,t){var A=e.length;e.push(t);e:for(;0<A;){var i=A-1>>>1,n=e[i];if(0<Os(n,t))e[i]=t,e[A]=n,A=i;else break e}}function Wt(e){return e.length===0?null:e[0]}function Ys(e){if(e.length===0)return null;var t=e[0],A=e.pop();if(A!==t){e[0]=A;e:for(var i=0,n=e.length,r=n>>>1;i<r;){var o=2*(i+1)-1,s=e[o],a=o+1,c=e[a];if(0>Os(s,A))a<n&&0>Os(c,s)?(e[i]=c,e[a]=A,i=a):(e[i]=s,e[o]=A,i=o);else if(a<n&&0>Os(c,A))e[i]=c,e[a]=A,i=a;else break e}}return t}function Os(e,t){var A=e.sortIndex-t.sortIndex;return A!==0?A:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(Ad=performance,ue.unstable_now=function(){return Ad.now()}):(el=Date,id=el.now(),ue.unstable_now=function(){return el.now()-id});var Ad,el,id,gA=[],ti=[],sF=1,Rt=null,je=3,Ps=!1,bi=!1,Pr=!1,od=typeof setTimeout=="function"?setTimeout:null,sd=typeof clearTimeout=="function"?clearTimeout:null,nd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function nl(e){for(var t=Wt(ti);t!==null;){if(t.callback===null)Ys(ti);else if(t.startTime<=e)Ys(ti),t.sortIndex=t.expirationTime,il(gA,t);else break;t=Wt(ti)}}function rl(e){if(Pr=!1,nl(e),!bi)if(Wt(gA)!==null)bi=!0,sl(ol);else{var t=Wt(ti);t!==null&&al(rl,t.startTime-e)}}function ol(e,t){bi=!1,Pr&&(Pr=!1,sd(Vr),Vr=-1),Ps=!0;var A=je;try{for(nl(t),Rt=Wt(gA);Rt!==null&&(!(Rt.expirationTime>t)||e&&!cd());){var i=Rt.callback;if(typeof i=="function"){Rt.callback=null,je=Rt.priorityLevel;var n=i(Rt.expirationTime<=t);t=ue.unstable_now(),typeof n=="function"?Rt.callback=n:Rt===Wt(gA)&&Ys(gA),nl(t)}else Ys(gA);Rt=Wt(gA)}if(Rt!==null)var r=!0;else{var o=Wt(ti);o!==null&&al(rl,o.startTime-t),r=!1}return r}finally{Rt=null,je=A,Ps=!1}}var Vs=!1,Ls=null,Vr=-1,ad=5,Id=-1;function cd(){return!(ue.unstable_now()-Id<ad)}function tl(){if(Ls!==null){var e=ue.unstable_now();Id=e;var t=!0;try{t=Ls(!0,e)}finally{t?Yr():(Vs=!1,Ls=null)}}else Vs=!1}var Yr;typeof nd=="function"?Yr=function(){nd(tl)}:typeof MessageChannel<"u"?(Al=new MessageChannel,rd=Al.port2,Al.port1.onmessage=tl,Yr=function(){rd.postMessage(null)}):Yr=function(){od(tl,0)};var Al,rd;function sl(e){Ls=e,Vs||(Vs=!0,Yr())}function al(e,t){Vr=od(function(){e(ue.unstable_now())},t)}ue.unstable_IdlePriority=5;ue.unstable_ImmediatePriority=1;ue.unstable_LowPriority=4;ue.unstable_NormalPriority=3;ue.unstable_Profiling=null;ue.unstable_UserBlockingPriority=2;ue.unstable_cancelCallback=function(e){e.callback=null};ue.unstable_continueExecution=function(){bi||Ps||(bi=!0,sl(ol))};ue.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"):ad=0<e?Math.floor(1e3/e):5};ue.unstable_getCurrentPriorityLevel=function(){return je};ue.unstable_getFirstCallbackNode=function(){return Wt(gA)};ue.unstable_next=function(e){switch(je){case 1:case 2:case 3:var t=3;break;default:t=je}var A=je;je=t;try{return e()}finally{je=A}};ue.unstable_pauseExecution=function(){};ue.unstable_requestPaint=function(){};ue.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var A=je;je=e;try{return t()}finally{je=A}};ue.unstable_scheduleCallback=function(e,t,A){var i=ue.unstable_now();switch(typeof A=="object"&&A!==null?(A=A.delay,A=typeof A=="number"&&0<A?i+A:i):A=i,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=A+n,e={id:sF++,callback:t,priorityLevel:e,startTime:A,expirationTime:n,sortIndex:-1},A>i?(e.sortIndex=A,il(ti,e),Wt(gA)===null&&e===Wt(ti)&&(Pr?(sd(Vr),Vr=-1):Pr=!0,al(rl,A-i))):(e.sortIndex=n,il(gA,e),bi||Ps||(bi=!0,sl(ol))),e};ue.unstable_shouldYield=cd;ue.unstable_wrapCallback=function(e){var t=je;return function(){var A=je;je=t;try{return e.apply(this,arguments)}finally{je=A}}}});var ud=Qe((yH,gd)=>{"use strict";gd.exports=ld()});var hh=Qe(Mt=>{"use strict";var pC=ze(),Gt=ud();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,A=1;A<arguments.length;A++)t+="&args[]="+encodeURIComponent(arguments[A]);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 EC=new Set,uo={};function $i(e,t){Zn(e,t),Zn(e+"Capture",t)}function Zn(e,t){for(uo[e]=t,e=0;e<t.length;e++)EC.add(t[e])}var JA=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xl=Object.prototype.hasOwnProperty,aF=/^[: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]*$/,fd={},Bd={};function IF(e){return xl.call(Bd,e)?!0:xl.call(fd,e)?!1:aF.test(e)?Bd[e]=!0:(fd[e]=!0,!1)}function cF(e,t,A,i){if(A!==null&&A.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:A!==null?!A.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function lF(e,t,A,i){if(t===null||typeof t>"u"||cF(e,t,A,i))return!0;if(i)return!1;if(A!==null)switch(A.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 at(e,t,A,i,n,r,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=A,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new at(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){Xe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var yg=/[\-:]([a-z])/g;function wg(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(yg,wg);Xe[t]=new at(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(yg,wg);Xe[t]=new at(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(yg,wg);Xe[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function Fg(e,t,A,i){var n=Xe.hasOwnProperty(t)?Xe[t]:null;(n!==null?n.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(lF(t,A,n,i)&&(A=null),i||n===null?IF(t)&&(A===null?e.removeAttribute(t):e.setAttribute(t,""+A)):n.mustUseProperty?e[n.propertyName]=A===null?n.type===3?!1:"":A:(t=n.attributeName,i=n.attributeNamespace,A===null?e.removeAttribute(t):(n=n.type,A=n===3||n===4&&A===!0?"":""+A,i?e.setAttributeNS(i,t,A):e.setAttribute(t,A))))}var OA=pC.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,zs=Symbol.for("react.element"),Gn=Symbol.for("react.portal"),Hn=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),Gl=Symbol.for("react.profiler"),mC=Symbol.for("react.provider"),yC=Symbol.for("react.context"),kg=Symbol.for("react.forward_ref"),Hl=Symbol.for("react.suspense"),Ml=Symbol.for("react.suspense_list"),Sg=Symbol.for("react.memo"),ii=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var wC=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var dd=Symbol.iterator;function zr(e){return e===null||typeof e!="object"?null:(e=dd&&e[dd]||e["@@iterator"],typeof e=="function"?e:null)}var De=Object.assign,Il;function eo(e){if(Il===void 0)try{throw Error()}catch(A){var t=A.stack.trim().match(/\n( *(at )?)/);Il=t&&t[1]||""}return`
|
|
`+Il+e}var cl=!1;function ll(e,t){if(!e||cl)return"";cl=!0;var A=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(c){var i=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){i=c}e.call(t.prototype)}else{try{throw Error()}catch(c){i=c}e()}}catch(c){if(c&&i&&typeof c.stack=="string"){for(var n=c.stack.split(`
|
|
`),r=i.stack.split(`
|
|
`),o=n.length-1,s=r.length-1;1<=o&&0<=s&&n[o]!==r[s];)s--;for(;1<=o&&0<=s;o--,s--)if(n[o]!==r[s]){if(o!==1||s!==1)do if(o--,s--,0>s||n[o]!==r[s]){var a=`
|
|
`+n[o].replace(" at new "," at ");return e.displayName&&a.includes("<anonymous>")&&(a=a.replace("<anonymous>",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{cl=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?eo(e):""}function gF(e){switch(e.tag){case 5:return eo(e.type);case 16:return eo("Lazy");case 13:return eo("Suspense");case 19:return eo("SuspenseList");case 0:case 2:case 15:return e=ll(e.type,!1),e;case 11:return e=ll(e.type.render,!1),e;case 1:return e=ll(e.type,!0),e;default:return""}}function vl(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 Gn:return"Portal";case Gl:return"Profiler";case Dg:return"StrictMode";case Hl:return"Suspense";case Ml:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case yC:return(e.displayName||"Context")+".Consumer";case mC:return(e._context.displayName||"Context")+".Provider";case kg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Sg:return t=e.displayName||null,t!==null?t:vl(e.type)||"Memo";case ii:t=e._payload,e=e._init;try{return vl(e(t))}catch{}}return null}function uF(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 vl(t);case 8:return t===Dg?"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 Ci(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function FC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fF(e){var t=FC(e)?"checked":"value",A=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof A<"u"&&typeof A.get=="function"&&typeof A.set=="function"){var n=A.get,r=A.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(o){i=""+o,r.call(this,o)}}),Object.defineProperty(e,t,{enumerable:A.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _s(e){e._valueTracker||(e._valueTracker=fF(e))}function DC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),i="";return e&&(i=FC(e)?e.checked?"true":"false":e.value),e=i,e!==A?(t.setValue(e),!0):!1}function Ea(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 Rl(e,t){var A=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function Cd(e,t){var A=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;A=Ci(t.value!=null?t.value:A),e._wrapperState={initialChecked:i,initialValue:A,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kC(e,t){t=t.checked,t!=null&&Fg(e,"checked",t,!1)}function Jl(e,t){kC(e,t);var A=Ci(t.value),i=t.type;if(A!=null)i==="number"?(A===0&&e.value===""||e.value!=A)&&(e.value=""+A):e.value!==""+A&&(e.value=""+A);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ql(e,t.type,A):t.hasOwnProperty("defaultValue")&&ql(e,t.type,Ci(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Qd(e,t,A){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,A||t===e.value||(e.value=t),e.defaultValue=t}A=e.name,A!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,A!==""&&(e.name=A)}function ql(e,t,A){(t!=="number"||Ea(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var to=Array.isArray;function Pn(e,t,A,i){if(e=e.options,t){t={};for(var n=0;n<A.length;n++)t["$"+A[n]]=!0;for(A=0;A<e.length;A++)n=t.hasOwnProperty("$"+e[A].value),e[A].selected!==n&&(e[A].selected=n),n&&i&&(e[A].defaultSelected=!0)}else{for(A=""+Ci(A),t=null,n=0;n<e.length;n++){if(e[n].value===A){e[n].selected=!0,i&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function Kl(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(x(91));return De({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function hd(e,t){var A=t.value;if(A==null){if(A=t.children,t=t.defaultValue,A!=null){if(t!=null)throw Error(x(92));if(to(A)){if(1<A.length)throw Error(x(93));A=A[0]}t=A}t==null&&(t=""),A=t}e._wrapperState={initialValue:Ci(A)}}function SC(e,t){var A=Ci(t.value),i=Ci(t.defaultValue);A!=null&&(A=""+A,A!==e.value&&(e.value=A),t.defaultValue==null&&e.defaultValue!==A&&(e.defaultValue=A)),i!=null&&(e.defaultValue=""+i)}function pd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function UC(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 bl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?UC(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ts,NC=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,A,i,n){MSApp.execUnsafeLocalFunction(function(){return e(t,A,i,n)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(Ts=Ts||document.createElement("div"),Ts.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ts.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function fo(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var no={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},BF=["Webkit","ms","Moz","O"];Object.keys(no).forEach(function(e){BF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),no[t]=no[e]})});function xC(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||no.hasOwnProperty(e)&&no[e]?(""+t).trim():t+"px"}function GC(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var i=A.indexOf("--")===0,n=xC(A,t[A],i);A==="float"&&(A="cssFloat"),i?e.setProperty(A,n):e[A]=n}}var dF=De({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 Ol(e,t){if(t){if(dF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Ll(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 Yl=null;function Ug(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pl=null,Vn=null,zn=null;function Ed(e){if(e=Ho(e)){if(typeof Pl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Xa(t),Pl(e.stateNode,e.type,t))}}function HC(e){Vn?zn?zn.push(e):zn=[e]:Vn=e}function MC(){if(Vn){var e=Vn,t=zn;if(zn=Vn=null,Ed(e),t)for(e=0;e<t.length;e++)Ed(t[e])}}function vC(e,t){return e(t)}function RC(){}var gl=!1;function JC(e,t,A){if(gl)return e(t,A);gl=!0;try{return vC(e,t,A)}finally{gl=!1,(Vn!==null||zn!==null)&&(RC(),MC())}}function Bo(e,t){var A=e.stateNode;if(A===null)return null;var i=Xa(A);if(i===null)return null;A=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(A&&typeof A!="function")throw Error(x(231,t,typeof A));return A}var Vl=!1;if(JA)try{Nn={},Object.defineProperty(Nn,"passive",{get:function(){Vl=!0}}),window.addEventListener("test",Nn,Nn),window.removeEventListener("test",Nn,Nn)}catch{Vl=!1}var Nn;function CF(e,t,A,i,n,r,o,s,a){var c=Array.prototype.slice.call(arguments,3);try{t.apply(A,c)}catch(I){this.onError(I)}}var ro=!1,ma=null,ya=!1,zl=null,QF={onError:function(e){ro=!0,ma=e}};function hF(e,t,A,i,n,r,o,s,a){ro=!1,ma=null,CF.apply(QF,arguments)}function pF(e,t,A,i,n,r,o,s,a){if(hF.apply(this,arguments),ro){if(ro){var c=ma;ro=!1,ma=null}else throw Error(x(198));ya||(ya=!0,zl=c)}}function en(e){var t=e,A=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(A=t.return),e=t.return;while(e)}return t.tag===3?A:null}function qC(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 md(e){if(en(e)!==e)throw Error(x(188))}function EF(e){var t=e.alternate;if(!t){if(t=en(e),t===null)throw Error(x(188));return t!==e?null:e}for(var A=e,i=t;;){var n=A.return;if(n===null)break;var r=n.alternate;if(r===null){if(i=n.return,i!==null){A=i;continue}break}if(n.child===r.child){for(r=n.child;r;){if(r===A)return md(n),e;if(r===i)return md(n),t;r=r.sibling}throw Error(x(188))}if(A.return!==i.return)A=n,i=r;else{for(var o=!1,s=n.child;s;){if(s===A){o=!0,A=n,i=r;break}if(s===i){o=!0,i=n,A=r;break}s=s.sibling}if(!o){for(s=r.child;s;){if(s===A){o=!0,A=r,i=n;break}if(s===i){o=!0,i=r,A=n;break}s=s.sibling}if(!o)throw Error(x(189))}}if(A.alternate!==i)throw Error(x(190))}if(A.tag!==3)throw Error(x(188));return A.stateNode.current===A?e:t}function KC(e){return e=EF(e),e!==null?bC(e):null}function bC(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=bC(e);if(t!==null)return t;e=e.sibling}return null}var OC=Gt.unstable_scheduleCallback,yd=Gt.unstable_cancelCallback,mF=Gt.unstable_shouldYield,yF=Gt.unstable_requestPaint,Ue=Gt.unstable_now,wF=Gt.unstable_getCurrentPriorityLevel,Ng=Gt.unstable_ImmediatePriority,LC=Gt.unstable_UserBlockingPriority,wa=Gt.unstable_NormalPriority,FF=Gt.unstable_LowPriority,YC=Gt.unstable_IdlePriority,Va=null,dA=null;function DF(e){if(dA&&typeof dA.onCommitFiberRoot=="function")try{dA.onCommitFiberRoot(Va,e,void 0,(e.current.flags&128)===128)}catch{}}var AA=Math.clz32?Math.clz32:UF,kF=Math.log,SF=Math.LN2;function UF(e){return e>>>=0,e===0?32:31-(kF(e)/SF|0)|0}var Xs=64,Zs=4194304;function Ao(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 Fa(e,t){var A=e.pendingLanes;if(A===0)return 0;var i=0,n=e.suspendedLanes,r=e.pingedLanes,o=A&268435455;if(o!==0){var s=o&~n;s!==0?i=Ao(s):(r&=o,r!==0&&(i=Ao(r)))}else o=A&~n,o!==0?i=Ao(o):r!==0&&(i=Ao(r));if(i===0)return 0;if(t!==0&&t!==i&&!(t&n)&&(n=i&-i,r=t&-t,n>=r||n===16&&(r&4194240)!==0))return t;if(i&4&&(i|=A&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0<t;)A=31-AA(t),n=1<<A,i|=e[A],t&=~n;return i}function NF(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 xF(e,t){for(var A=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,r=e.pendingLanes;0<r;){var o=31-AA(r),s=1<<o,a=n[o];a===-1?(!(s&A)||s&i)&&(n[o]=NF(s,t)):a<=t&&(e.expiredLanes|=s),r&=~s}}function _l(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function PC(){var e=Xs;return Xs<<=1,!(Xs&4194240)&&(Xs=64),e}function ul(e){for(var t=[],A=0;31>A;A++)t.push(e);return t}function xo(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-AA(t),e[t]=A}function GF(e,t){var A=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 i=e.eventTimes;for(e=e.expirationTimes;0<A;){var n=31-AA(A),r=1<<n;t[n]=0,i[n]=-1,e[n]=-1,A&=~r}}function xg(e,t){var A=e.entangledLanes|=t;for(e=e.entanglements;A;){var i=31-AA(A),n=1<<i;n&t|e[i]&t&&(e[i]|=t),A&=~n}}var ce=0;function VC(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var zC,Gg,_C,TC,XC,Tl=!1,Ws=[],Ii=null,ci=null,li=null,Co=new Map,Qo=new Map,ri=[],HF="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 wd(e,t){switch(e){case"focusin":case"focusout":Ii=null;break;case"dragenter":case"dragleave":ci=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":Co.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Qo.delete(t.pointerId)}}function _r(e,t,A,i,n,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:A,eventSystemFlags:i,nativeEvent:r,targetContainers:[n]},t!==null&&(t=Ho(t),t!==null&&Gg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function MF(e,t,A,i,n){switch(t){case"focusin":return Ii=_r(Ii,e,t,A,i,n),!0;case"dragenter":return ci=_r(ci,e,t,A,i,n),!0;case"mouseover":return li=_r(li,e,t,A,i,n),!0;case"pointerover":var r=n.pointerId;return Co.set(r,_r(Co.get(r)||null,e,t,A,i,n)),!0;case"gotpointercapture":return r=n.pointerId,Qo.set(r,_r(Qo.get(r)||null,e,t,A,i,n)),!0}return!1}function ZC(e){var t=Yi(e.target);if(t!==null){var A=en(t);if(A!==null){if(t=A.tag,t===13){if(t=qC(A),t!==null){e.blockedOn=t,XC(e.priority,function(){_C(A)});return}}else if(t===3&&A.stateNode.current.memoizedState.isDehydrated){e.blockedOn=A.tag===3?A.stateNode.containerInfo:null;return}}}e.blockedOn=null}function la(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var A=Xl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(A===null){A=e.nativeEvent;var i=new A.constructor(A.type,A);Yl=i,A.target.dispatchEvent(i),Yl=null}else return t=Ho(A),t!==null&&Gg(t),e.blockedOn=A,!1;t.shift()}return!0}function Fd(e,t,A){la(e)&&A.delete(t)}function vF(){Tl=!1,Ii!==null&&la(Ii)&&(Ii=null),ci!==null&&la(ci)&&(ci=null),li!==null&&la(li)&&(li=null),Co.forEach(Fd),Qo.forEach(Fd)}function Tr(e,t){e.blockedOn===t&&(e.blockedOn=null,Tl||(Tl=!0,Gt.unstable_scheduleCallback(Gt.unstable_NormalPriority,vF)))}function ho(e){function t(n){return Tr(n,e)}if(0<Ws.length){Tr(Ws[0],e);for(var A=1;A<Ws.length;A++){var i=Ws[A];i.blockedOn===e&&(i.blockedOn=null)}}for(Ii!==null&&Tr(Ii,e),ci!==null&&Tr(ci,e),li!==null&&Tr(li,e),Co.forEach(t),Qo.forEach(t),A=0;A<ri.length;A++)i=ri[A],i.blockedOn===e&&(i.blockedOn=null);for(;0<ri.length&&(A=ri[0],A.blockedOn===null);)ZC(A),A.blockedOn===null&&ri.shift()}var _n=OA.ReactCurrentBatchConfig,Da=!0;function RF(e,t,A,i){var n=ce,r=_n.transition;_n.transition=null;try{ce=1,Hg(e,t,A,i)}finally{ce=n,_n.transition=r}}function JF(e,t,A,i){var n=ce,r=_n.transition;_n.transition=null;try{ce=4,Hg(e,t,A,i)}finally{ce=n,_n.transition=r}}function Hg(e,t,A,i){if(Da){var n=Xl(e,t,A,i);if(n===null)pl(e,t,i,ka,A),wd(e,i);else if(MF(n,e,t,A,i))i.stopPropagation();else if(wd(e,i),t&4&&-1<HF.indexOf(e)){for(;n!==null;){var r=Ho(n);if(r!==null&&zC(r),r=Xl(e,t,A,i),r===null&&pl(e,t,i,ka,A),r===n)break;n=r}n!==null&&i.stopPropagation()}else pl(e,t,i,null,A)}}var ka=null;function Xl(e,t,A,i){if(ka=null,e=Ug(i),e=Yi(e),e!==null)if(t=en(e),t===null)e=null;else if(A=t.tag,A===13){if(e=qC(t),e!==null)return e;e=null}else if(A===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ka=e,null}function WC(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(wF()){case Ng:return 1;case LC:return 4;case wa:case FF:return 16;case YC:return 536870912;default:return 16}default:return 16}}var si=null,Mg=null,ga=null;function jC(){if(ga)return ga;var e,t=Mg,A=t.length,i,n="value"in si?si.value:si.textContent,r=n.length;for(e=0;e<A&&t[e]===n[e];e++);var o=A-e;for(i=1;i<=o&&t[A-i]===n[r-i];i++);return ga=n.slice(e,1<i?1-i:void 0)}function ua(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 js(){return!0}function Dd(){return!1}function Ht(e){function t(A,i,n,r,o){this._reactName=A,this._targetInst=n,this.type=i,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(A=e[s],this[s]=A?A(r):r[s]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?js:Dd,this.isPropagationStopped=Dd,this}return De(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var A=this.nativeEvent;A&&(A.preventDefault?A.preventDefault():typeof A.returnValue!="unknown"&&(A.returnValue=!1),this.isDefaultPrevented=js)},stopPropagation:function(){var A=this.nativeEvent;A&&(A.stopPropagation?A.stopPropagation():typeof A.cancelBubble!="unknown"&&(A.cancelBubble=!0),this.isPropagationStopped=js)},persist:function(){},isPersistent:js}),t}var ir={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vg=Ht(ir),Go=De({},ir,{view:0,detail:0}),qF=Ht(Go),fl,Bl,Xr,za=De({},Go,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rg,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!==Xr&&(Xr&&e.type==="mousemove"?(fl=e.screenX-Xr.screenX,Bl=e.screenY-Xr.screenY):Bl=fl=0,Xr=e),fl)},movementY:function(e){return"movementY"in e?e.movementY:Bl}}),kd=Ht(za),KF=De({},za,{dataTransfer:0}),bF=Ht(KF),OF=De({},Go,{relatedTarget:0}),dl=Ht(OF),LF=De({},ir,{animationName:0,elapsedTime:0,pseudoElement:0}),YF=Ht(LF),PF=De({},ir,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),VF=Ht(PF),zF=De({},ir,{data:0}),Sd=Ht(zF),_F={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},TF={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"},XF={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ZF(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=XF[e])?!!t[e]:!1}function Rg(){return ZF}var WF=De({},Go,{key:function(e){if(e.key){var t=_F[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ua(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?TF[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rg,charCode:function(e){return e.type==="keypress"?ua(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ua(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),jF=Ht(WF),$F=De({},za,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ud=Ht($F),eD=De({},Go,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rg}),tD=Ht(eD),AD=De({},ir,{propertyName:0,elapsedTime:0,pseudoElement:0}),iD=Ht(AD),nD=De({},za,{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}),rD=Ht(nD),oD=[9,13,27,32],Jg=JA&&"CompositionEvent"in window,oo=null;JA&&"documentMode"in document&&(oo=document.documentMode);var sD=JA&&"TextEvent"in window&&!oo,$C=JA&&(!Jg||oo&&8<oo&&11>=oo),Nd=" ",xd=!1;function eQ(e,t){switch(e){case"keyup":return oD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function tQ(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function aD(e,t){switch(e){case"compositionend":return tQ(t);case"keypress":return t.which!==32?null:(xd=!0,Nd);case"textInput":return e=t.data,e===Nd&&xd?null:e;default:return null}}function ID(e,t){if(Mn)return e==="compositionend"||!Jg&&eQ(e,t)?(e=jC(),ga=Mg=si=null,Mn=!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 $C&&t.locale!=="ko"?null:t.data;default:return null}}var cD={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 Gd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cD[e.type]:t==="textarea"}function AQ(e,t,A,i){HC(i),t=Sa(t,"onChange"),0<t.length&&(A=new vg("onChange","change",null,A,i),e.push({event:A,listeners:t}))}var so=null,po=null;function lD(e){uQ(e,0)}function _a(e){var t=Jn(e);if(DC(t))return e}function gD(e,t){if(e==="change")return t}var iQ=!1;JA&&(JA?(ea="oninput"in document,ea||(Cl=document.createElement("div"),Cl.setAttribute("oninput","return;"),ea=typeof Cl.oninput=="function"),$s=ea):$s=!1,iQ=$s&&(!document.documentMode||9<document.documentMode));var $s,ea,Cl;function Hd(){so&&(so.detachEvent("onpropertychange",nQ),po=so=null)}function nQ(e){if(e.propertyName==="value"&&_a(po)){var t=[];AQ(t,po,e,Ug(e)),JC(lD,t)}}function uD(e,t,A){e==="focusin"?(Hd(),so=t,po=A,so.attachEvent("onpropertychange",nQ)):e==="focusout"&&Hd()}function fD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return _a(po)}function BD(e,t){if(e==="click")return _a(t)}function dD(e,t){if(e==="input"||e==="change")return _a(t)}function CD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var nA=typeof Object.is=="function"?Object.is:CD;function Eo(e,t){if(nA(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var A=Object.keys(e),i=Object.keys(t);if(A.length!==i.length)return!1;for(i=0;i<A.length;i++){var n=A[i];if(!xl.call(t,n)||!nA(e[n],t[n]))return!1}return!0}function Md(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function vd(e,t){var A=Md(e);e=0;for(var i;A;){if(A.nodeType===3){if(i=e+A.textContent.length,e<=t&&i>=t)return{node:A,offset:t-e};e=i}e:{for(;A;){if(A.nextSibling){A=A.nextSibling;break e}A=A.parentNode}A=void 0}A=Md(A)}}function rQ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?rQ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function oQ(){for(var e=window,t=Ea();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=Ea(e.document)}return t}function qg(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 QD(e){var t=oQ(),A=e.focusedElem,i=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&rQ(A.ownerDocument.documentElement,A)){if(i!==null&&qg(A)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in A)A.selectionStart=t,A.selectionEnd=Math.min(e,A.value.length);else if(e=(t=A.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var n=A.textContent.length,r=Math.min(i.start,n);i=i.end===void 0?r:Math.min(i.end,n),!e.extend&&r>i&&(n=i,i=r,r=n),n=vd(A,r);var o=vd(A,i);n&&o&&(e.rangeCount!==1||e.anchorNode!==n.node||e.anchorOffset!==n.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(n.node,n.offset),e.removeAllRanges(),r>i?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=A;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof A.focus=="function"&&A.focus(),A=0;A<t.length;A++)e=t[A],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hD=JA&&"documentMode"in document&&11>=document.documentMode,vn=null,Zl=null,ao=null,Wl=!1;function Rd(e,t,A){var i=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;Wl||vn==null||vn!==Ea(i)||(i=vn,"selectionStart"in i&&qg(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),ao&&Eo(ao,i)||(ao=i,i=Sa(Zl,"onSelect"),0<i.length&&(t=new vg("onSelect","select",null,t,A),e.push({event:t,listeners:i}),t.target=vn)))}function ta(e,t){var A={};return A[e.toLowerCase()]=t.toLowerCase(),A["Webkit"+e]="webkit"+t,A["Moz"+e]="moz"+t,A}var Rn={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionend:ta("Transition","TransitionEnd")},Ql={},sQ={};JA&&(sQ=document.createElement("div").style,"AnimationEvent"in window||(delete Rn.animationend.animation,delete Rn.animationiteration.animation,delete Rn.animationstart.animation),"TransitionEvent"in window||delete Rn.transitionend.transition);function Ta(e){if(Ql[e])return Ql[e];if(!Rn[e])return e;var t=Rn[e],A;for(A in t)if(t.hasOwnProperty(A)&&A in sQ)return Ql[e]=t[A];return e}var aQ=Ta("animationend"),IQ=Ta("animationiteration"),cQ=Ta("animationstart"),lQ=Ta("transitionend"),gQ=new Map,Jd="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 hi(e,t){gQ.set(e,t),$i(t,[e])}for(Aa=0;Aa<Jd.length;Aa++)ia=Jd[Aa],qd=ia.toLowerCase(),Kd=ia[0].toUpperCase()+ia.slice(1),hi(qd,"on"+Kd);var ia,qd,Kd,Aa;hi(aQ,"onAnimationEnd");hi(IQ,"onAnimationIteration");hi(cQ,"onAnimationStart");hi("dblclick","onDoubleClick");hi("focusin","onFocus");hi("focusout","onBlur");hi(lQ,"onTransitionEnd");Zn("onMouseEnter",["mouseout","mouseover"]);Zn("onMouseLeave",["mouseout","mouseover"]);Zn("onPointerEnter",["pointerout","pointerover"]);Zn("onPointerLeave",["pointerout","pointerover"]);$i("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));$i("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));$i("onBeforeInput",["compositionend","keypress","textInput","paste"]);$i("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));$i("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var io="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(" "),pD=new Set("cancel close invalid load scroll toggle".split(" ").concat(io));function bd(e,t,A){var i=e.type||"unknown-event";e.currentTarget=A,pF(i,t,void 0,e),e.currentTarget=null}function uQ(e,t){t=(t&4)!==0;for(var A=0;A<e.length;A++){var i=e[A],n=i.event;i=i.listeners;e:{var r=void 0;if(t)for(var o=i.length-1;0<=o;o--){var s=i[o],a=s.instance,c=s.currentTarget;if(s=s.listener,a!==r&&n.isPropagationStopped())break e;bd(n,s,c),r=a}else for(o=0;o<i.length;o++){if(s=i[o],a=s.instance,c=s.currentTarget,s=s.listener,a!==r&&n.isPropagationStopped())break e;bd(n,s,c),r=a}}}if(ya)throw e=zl,ya=!1,zl=null,e}function he(e,t){var A=t[Ag];A===void 0&&(A=t[Ag]=new Set);var i=e+"__bubble";A.has(i)||(fQ(t,e,2,!1),A.add(i))}function hl(e,t,A){var i=0;t&&(i|=4),fQ(A,e,i,t)}var na="_reactListening"+Math.random().toString(36).slice(2);function mo(e){if(!e[na]){e[na]=!0,EC.forEach(function(A){A!=="selectionchange"&&(pD.has(A)||hl(A,!1,e),hl(A,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[na]||(t[na]=!0,hl("selectionchange",!1,t))}}function fQ(e,t,A,i){switch(WC(t)){case 1:var n=RF;break;case 4:n=JF;break;default:n=Hg}A=n.bind(null,t,A,e),n=void 0,!Vl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),i?n!==void 0?e.addEventListener(t,A,{capture:!0,passive:n}):e.addEventListener(t,A,!0):n!==void 0?e.addEventListener(t,A,{passive:n}):e.addEventListener(t,A,!1)}function pl(e,t,A,i,n){var r=i;if(!(t&1)&&!(t&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var s=i.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(o===4)for(o=i.return;o!==null;){var a=o.tag;if((a===3||a===4)&&(a=o.stateNode.containerInfo,a===n||a.nodeType===8&&a.parentNode===n))return;o=o.return}for(;s!==null;){if(o=Yi(s),o===null)return;if(a=o.tag,a===5||a===6){i=r=o;continue e}s=s.parentNode}}i=i.return}JC(function(){var c=r,I=Ug(A),l=[];e:{var g=gQ.get(e);if(g!==void 0){var u=vg,f=e;switch(e){case"keypress":if(ua(A)===0)break e;case"keydown":case"keyup":u=jF;break;case"focusin":f="focus",u=dl;break;case"focusout":f="blur",u=dl;break;case"beforeblur":case"afterblur":u=dl;break;case"click":if(A.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=kd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=bF;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=tD;break;case aQ:case IQ:case cQ:u=YF;break;case lQ:u=iD;break;case"scroll":u=qF;break;case"wheel":u=rD;break;case"copy":case"cut":case"paste":u=VF;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Ud}var C=(t&4)!==0,F=!C&&e==="scroll",d=C?g!==null?g+"Capture":null:g;C=[];for(var B=c,Q;B!==null;){Q=B;var y=Q.stateNode;if(Q.tag===5&&y!==null&&(Q=y,d!==null&&(y=Bo(B,d),y!=null&&C.push(yo(B,y,Q)))),F)break;B=B.return}0<C.length&&(g=new u(g,f,null,A,I),l.push({event:g,listeners:C}))}}if(!(t&7)){e:{if(g=e==="mouseover"||e==="pointerover",u=e==="mouseout"||e==="pointerout",g&&A!==Yl&&(f=A.relatedTarget||A.fromElement)&&(Yi(f)||f[qA]))break e;if((u||g)&&(g=I.window===I?I:(g=I.ownerDocument)?g.defaultView||g.parentWindow:window,u?(f=A.relatedTarget||A.toElement,u=c,f=f?Yi(f):null,f!==null&&(F=en(f),f!==F||f.tag!==5&&f.tag!==6)&&(f=null)):(u=null,f=c),u!==f)){if(C=kd,y="onMouseLeave",d="onMouseEnter",B="mouse",(e==="pointerout"||e==="pointerover")&&(C=Ud,y="onPointerLeave",d="onPointerEnter",B="pointer"),F=u==null?g:Jn(u),Q=f==null?g:Jn(f),g=new C(y,B+"leave",u,A,I),g.target=F,g.relatedTarget=Q,y=null,Yi(I)===c&&(C=new C(d,B+"enter",f,A,I),C.target=Q,C.relatedTarget=F,y=C),F=y,u&&f)t:{for(C=u,d=f,B=0,Q=C;Q;Q=xn(Q))B++;for(Q=0,y=d;y;y=xn(y))Q++;for(;0<B-Q;)C=xn(C),B--;for(;0<Q-B;)d=xn(d),Q--;for(;B--;){if(C===d||d!==null&&C===d.alternate)break t;C=xn(C),d=xn(d)}C=null}else C=null;u!==null&&Od(l,g,u,C,!1),f!==null&&F!==null&&Od(l,F,f,C,!0)}}e:{if(g=c?Jn(c):window,u=g.nodeName&&g.nodeName.toLowerCase(),u==="select"||u==="input"&&g.type==="file")var k=gD;else if(Gd(g))if(iQ)k=dD;else{k=fD;var D=uD}else(u=g.nodeName)&&u.toLowerCase()==="input"&&(g.type==="checkbox"||g.type==="radio")&&(k=BD);if(k&&(k=k(e,c))){AQ(l,k,A,I);break e}D&&D(e,g,c),e==="focusout"&&(D=g._wrapperState)&&D.controlled&&g.type==="number"&&ql(g,"number",g.value)}switch(D=c?Jn(c):window,e){case"focusin":(Gd(D)||D.contentEditable==="true")&&(vn=D,Zl=c,ao=null);break;case"focusout":ao=Zl=vn=null;break;case"mousedown":Wl=!0;break;case"contextmenu":case"mouseup":case"dragend":Wl=!1,Rd(l,A,I);break;case"selectionchange":if(hD)break;case"keydown":case"keyup":Rd(l,A,I)}var S;if(Jg)e:{switch(e){case"compositionstart":var N="onCompositionStart";break e;case"compositionend":N="onCompositionEnd";break e;case"compositionupdate":N="onCompositionUpdate";break e}N=void 0}else Mn?eQ(e,A)&&(N="onCompositionEnd"):e==="keydown"&&A.keyCode===229&&(N="onCompositionStart");N&&($C&&A.locale!=="ko"&&(Mn||N!=="onCompositionStart"?N==="onCompositionEnd"&&Mn&&(S=jC()):(si=I,Mg="value"in si?si.value:si.textContent,Mn=!0)),D=Sa(c,N),0<D.length&&(N=new Sd(N,e,null,A,I),l.push({event:N,listeners:D}),S?N.data=S:(S=tQ(A),S!==null&&(N.data=S)))),(S=sD?aD(e,A):ID(e,A))&&(c=Sa(c,"onBeforeInput"),0<c.length&&(I=new Sd("onBeforeInput","beforeinput",null,A,I),l.push({event:I,listeners:c}),I.data=S))}uQ(l,t)})}function yo(e,t,A){return{instance:e,listener:t,currentTarget:A}}function Sa(e,t){for(var A=t+"Capture",i=[];e!==null;){var n=e,r=n.stateNode;n.tag===5&&r!==null&&(n=r,r=Bo(e,A),r!=null&&i.unshift(yo(e,r,n)),r=Bo(e,t),r!=null&&i.push(yo(e,r,n))),e=e.return}return i}function xn(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Od(e,t,A,i,n){for(var r=t._reactName,o=[];A!==null&&A!==i;){var s=A,a=s.alternate,c=s.stateNode;if(a!==null&&a===i)break;s.tag===5&&c!==null&&(s=c,n?(a=Bo(A,r),a!=null&&o.unshift(yo(A,a,s))):n||(a=Bo(A,r),a!=null&&o.push(yo(A,a,s)))),A=A.return}o.length!==0&&e.push({event:t,listeners:o})}var ED=/\r\n?/g,mD=/\u0000|\uFFFD/g;function Ld(e){return(typeof e=="string"?e:""+e).replace(ED,`
|
|
`).replace(mD,"")}function ra(e,t,A){if(t=Ld(t),Ld(e)!==t&&A)throw Error(x(425))}function Ua(){}var jl=null,$l=null;function eg(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 tg=typeof setTimeout=="function"?setTimeout:void 0,yD=typeof clearTimeout=="function"?clearTimeout:void 0,Yd=typeof Promise=="function"?Promise:void 0,wD=typeof queueMicrotask=="function"?queueMicrotask:typeof Yd<"u"?function(e){return Yd.resolve(null).then(e).catch(FD)}:tg;function FD(e){setTimeout(function(){throw e})}function El(e,t){var A=t,i=0;do{var n=A.nextSibling;if(e.removeChild(A),n&&n.nodeType===8)if(A=n.data,A==="/$"){if(i===0){e.removeChild(n),ho(t);return}i--}else A!=="$"&&A!=="$?"&&A!=="$!"||i++;A=n}while(A);ho(t)}function gi(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 Pd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var A=e.data;if(A==="$"||A==="$!"||A==="$?"){if(t===0)return e;t--}else A==="/$"&&t++}e=e.previousSibling}return null}var nr=Math.random().toString(36).slice(2),BA="__reactFiber$"+nr,wo="__reactProps$"+nr,qA="__reactContainer$"+nr,Ag="__reactEvents$"+nr,DD="__reactListeners$"+nr,kD="__reactHandles$"+nr;function Yi(e){var t=e[BA];if(t)return t;for(var A=e.parentNode;A;){if(t=A[qA]||A[BA]){if(A=t.alternate,t.child!==null||A!==null&&A.child!==null)for(e=Pd(e);e!==null;){if(A=e[BA])return A;e=Pd(e)}return t}e=A,A=e.parentNode}return null}function Ho(e){return e=e[BA]||e[qA],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Jn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(x(33))}function Xa(e){return e[wo]||null}var ig=[],qn=-1;function pi(e){return{current:e}}function pe(e){0>qn||(e.current=ig[qn],ig[qn]=null,qn--)}function fe(e,t){qn++,ig[qn]=e.current,e.current=t}var Qi={},At=pi(Qi),Qt=pi(!1),Ti=Qi;function Wn(e,t){var A=e.type.contextTypes;if(!A)return Qi;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},r;for(r in A)n[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function ht(e){return e=e.childContextTypes,e!=null}function Na(){pe(Qt),pe(At)}function Vd(e,t,A){if(At.current!==Qi)throw Error(x(168));fe(At,t),fe(Qt,A)}function BQ(e,t,A){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return A;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(x(108,uF(e)||"Unknown",n));return De({},A,i)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qi,Ti=At.current,fe(At,e),fe(Qt,Qt.current),!0}function zd(e,t,A){var i=e.stateNode;if(!i)throw Error(x(169));A?(e=BQ(e,t,Ti),i.__reactInternalMemoizedMergedChildContext=e,pe(Qt),pe(At),fe(At,e)):pe(Qt),fe(Qt,A)}var HA=null,Za=!1,ml=!1;function dQ(e){HA===null?HA=[e]:HA.push(e)}function SD(e){Za=!0,dQ(e)}function Ei(){if(!ml&&HA!==null){ml=!0;var e=0,t=ce;try{var A=HA;for(ce=1;e<A.length;e++){var i=A[e];do i=i(!0);while(i!==null)}HA=null,Za=!1}catch(n){throw HA!==null&&(HA=HA.slice(e+1)),OC(Ng,Ei),n}finally{ce=t,ml=!1}}return null}var Kn=[],bn=0,Ga=null,Ha=0,Jt=[],qt=0,Xi=null,MA=1,vA="";function Oi(e,t){Kn[bn++]=Ha,Kn[bn++]=Ga,Ga=e,Ha=t}function CQ(e,t,A){Jt[qt++]=MA,Jt[qt++]=vA,Jt[qt++]=Xi,Xi=e;var i=MA;e=vA;var n=32-AA(i)-1;i&=~(1<<n),A+=1;var r=32-AA(t)+n;if(30<r){var o=n-n%5;r=(i&(1<<o)-1).toString(32),i>>=o,n-=o,MA=1<<32-AA(t)+n|A<<n|i,vA=r+e}else MA=1<<r|A<<n|i,vA=e}function Kg(e){e.return!==null&&(Oi(e,1),CQ(e,1,0))}function bg(e){for(;e===Ga;)Ga=Kn[--bn],Kn[bn]=null,Ha=Kn[--bn],Kn[bn]=null;for(;e===Xi;)Xi=Jt[--qt],Jt[qt]=null,vA=Jt[--qt],Jt[qt]=null,MA=Jt[--qt],Jt[qt]=null}var xt=null,Nt=null,me=!1,tA=null;function QQ(e,t){var A=Kt(5,null,null,0);A.elementType="DELETED",A.stateNode=t,A.return=e,t=e.deletions,t===null?(e.deletions=[A],e.flags|=16):t.push(A)}function _d(e,t){switch(e.tag){case 5:var A=e.type;return t=t.nodeType!==1||A.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,xt=e,Nt=gi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,xt=e,Nt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(A=Xi!==null?{id:MA,overflow:vA}:null,e.memoizedState={dehydrated:t,treeContext:A,retryLane:1073741824},A=Kt(18,null,null,0),A.stateNode=t,A.return=e,e.child=A,xt=e,Nt=null,!0):!1;default:return!1}}function ng(e){return(e.mode&1)!==0&&(e.flags&128)===0}function rg(e){if(me){var t=Nt;if(t){var A=t;if(!_d(e,t)){if(ng(e))throw Error(x(418));t=gi(A.nextSibling);var i=xt;t&&_d(e,t)?QQ(i,A):(e.flags=e.flags&-4097|2,me=!1,xt=e)}}else{if(ng(e))throw Error(x(418));e.flags=e.flags&-4097|2,me=!1,xt=e}}}function Td(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;xt=e}function oa(e){if(e!==xt)return!1;if(!me)return Td(e),me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!eg(e.type,e.memoizedProps)),t&&(t=Nt)){if(ng(e))throw hQ(),Error(x(418));for(;t;)QQ(e,t),t=gi(t.nextSibling)}if(Td(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var A=e.data;if(A==="/$"){if(t===0){Nt=gi(e.nextSibling);break e}t--}else A!=="$"&&A!=="$!"&&A!=="$?"||t++}e=e.nextSibling}Nt=null}}else Nt=xt?gi(e.stateNode.nextSibling):null;return!0}function hQ(){for(var e=Nt;e;)e=gi(e.nextSibling)}function jn(){Nt=xt=null,me=!1}function Og(e){tA===null?tA=[e]:tA.push(e)}var UD=OA.ReactCurrentBatchConfig;function $t(e,t){if(e&&e.defaultProps){t=De({},t),e=e.defaultProps;for(var A in e)t[A]===void 0&&(t[A]=e[A]);return t}return t}var Ma=pi(null),va=null,On=null,Lg=null;function Yg(){Lg=On=va=null}function Pg(e){var t=Ma.current;pe(Ma),e._currentValue=t}function og(e,t,A){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===A)break;e=e.return}}function Tn(e,t){va=e,Lg=On=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ct=!0),e.firstContext=null)}function Ot(e){var t=e._currentValue;if(Lg!==e)if(e={context:e,memoizedValue:t,next:null},On===null){if(va===null)throw Error(x(308));On=e,va.dependencies={lanes:0,firstContext:e}}else On=On.next=e;return t}var Pi=null;function Vg(e){Pi===null?Pi=[e]:Pi.push(e)}function pQ(e,t,A,i){var n=t.interleaved;return n===null?(A.next=A,Vg(t)):(A.next=n.next,n.next=A),t.interleaved=A,KA(e,i)}function KA(e,t){e.lanes|=t;var A=e.alternate;for(A!==null&&(A.lanes|=t),A=e,e=e.return;e!==null;)e.childLanes|=t,A=e.alternate,A!==null&&(A.childLanes|=t),A=e,e=e.return;return A.tag===3?A.stateNode:null}var ni=!1;function zg(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function EQ(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 RA(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function ui(e,t,A){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,re&2){var n=i.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),i.pending=t,KA(e,A)}return n=i.interleaved,n===null?(t.next=t,Vg(i)):(t.next=n.next,n.next=t),i.interleaved=t,KA(e,A)}function fa(e,t,A){if(t=t.updateQueue,t!==null&&(t=t.shared,(A&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,A|=i,t.lanes=A,xg(e,A)}}function Xd(e,t){var A=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,A===i)){var n=null,r=null;if(A=A.firstBaseUpdate,A!==null){do{var o={eventTime:A.eventTime,lane:A.lane,tag:A.tag,payload:A.payload,callback:A.callback,next:null};r===null?n=r=o:r=r.next=o,A=A.next}while(A!==null);r===null?n=r=t:r=r.next=t}else n=r=t;A={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:r,shared:i.shared,effects:i.effects},e.updateQueue=A;return}e=A.lastBaseUpdate,e===null?A.firstBaseUpdate=t:e.next=t,A.lastBaseUpdate=t}function Ra(e,t,A,i){var n=e.updateQueue;ni=!1;var r=n.firstBaseUpdate,o=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var a=s,c=a.next;a.next=null,o===null?r=c:o.next=c,o=a;var I=e.alternate;I!==null&&(I=I.updateQueue,s=I.lastBaseUpdate,s!==o&&(s===null?I.firstBaseUpdate=c:s.next=c,I.lastBaseUpdate=a))}if(r!==null){var l=n.baseState;o=0,I=c=a=null,s=r;do{var g=s.lane,u=s.eventTime;if((i&g)===g){I!==null&&(I=I.next={eventTime:u,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var f=e,C=s;switch(g=t,u=A,C.tag){case 1:if(f=C.payload,typeof f=="function"){l=f.call(u,l,g);break e}l=f;break e;case 3:f.flags=f.flags&-65537|128;case 0:if(f=C.payload,g=typeof f=="function"?f.call(u,l,g):f,g==null)break e;l=De({},l,g);break e;case 2:ni=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,g=n.effects,g===null?n.effects=[s]:g.push(s))}else u={eventTime:u,lane:g,tag:s.tag,payload:s.payload,callback:s.callback,next:null},I===null?(c=I=u,a=l):I=I.next=u,o|=g;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;g=s,s=g.next,g.next=null,n.lastBaseUpdate=g,n.shared.pending=null}}while(!0);if(I===null&&(a=l),n.baseState=a,n.firstBaseUpdate=c,n.lastBaseUpdate=I,t=n.shared.interleaved,t!==null){n=t;do o|=n.lane,n=n.next;while(n!==t)}else r===null&&(n.shared.lanes=0);Wi|=o,e.lanes=o,e.memoizedState=l}}function Zd(e,t,A){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],n=i.callback;if(n!==null){if(i.callback=null,i=A,typeof n!="function")throw Error(x(191,n));n.call(i)}}}var mQ=new pC.Component().refs;function sg(e,t,A,i){t=e.memoizedState,A=A(i,t),A=A==null?t:De({},t,A),e.memoizedState=A,e.lanes===0&&(e.updateQueue.baseState=A)}var Wa={isMounted:function(e){return(e=e._reactInternals)?en(e)===e:!1},enqueueSetState:function(e,t,A){e=e._reactInternals;var i=st(),n=Bi(e),r=RA(i,n);r.payload=t,A!=null&&(r.callback=A),t=ui(e,r,n),t!==null&&(iA(t,e,n,i),fa(t,e,n))},enqueueReplaceState:function(e,t,A){e=e._reactInternals;var i=st(),n=Bi(e),r=RA(i,n);r.tag=1,r.payload=t,A!=null&&(r.callback=A),t=ui(e,r,n),t!==null&&(iA(t,e,n,i),fa(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var A=st(),i=Bi(e),n=RA(A,i);n.tag=2,t!=null&&(n.callback=t),t=ui(e,n,i),t!==null&&(iA(t,e,i,A),fa(t,e,i))}};function Wd(e,t,A,i,n,r,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,r,o):t.prototype&&t.prototype.isPureReactComponent?!Eo(A,i)||!Eo(n,r):!0}function yQ(e,t,A){var i=!1,n=Qi,r=t.contextType;return typeof r=="object"&&r!==null?r=Ot(r):(n=ht(t)?Ti:At.current,i=t.contextTypes,r=(i=i!=null)?Wn(e,n):Qi),t=new t(A,r),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Wa,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=r),t}function jd(e,t,A,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(A,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(A,i),t.state!==e&&Wa.enqueueReplaceState(t,t.state,null)}function ag(e,t,A,i){var n=e.stateNode;n.props=A,n.state=e.memoizedState,n.refs=mQ,zg(e);var r=t.contextType;typeof r=="object"&&r!==null?n.context=Ot(r):(r=ht(t)?Ti:At.current,n.context=Wn(e,r)),n.state=e.memoizedState,r=t.getDerivedStateFromProps,typeof r=="function"&&(sg(e,t,r,A),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&&Wa.enqueueReplaceState(n,n.state,null),Ra(e,A,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function Zr(e,t,A){if(e=A.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(A._owner){if(A=A._owner,A){if(A.tag!==1)throw Error(x(309));var i=A.stateNode}if(!i)throw Error(x(147,e));var n=i,r=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===r?t.ref:(t=function(o){var s=n.refs;s===mQ&&(s=n.refs={}),o===null?delete s[r]:s[r]=o},t._stringRef=r,t)}if(typeof e!="string")throw Error(x(284));if(!A._owner)throw Error(x(290,e))}return e}function sa(e,t){throw e=Object.prototype.toString.call(t),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function $d(e){var t=e._init;return t(e._payload)}function wQ(e){function t(d,B){if(e){var Q=d.deletions;Q===null?(d.deletions=[B],d.flags|=16):Q.push(B)}}function A(d,B){if(!e)return null;for(;B!==null;)t(d,B),B=B.sibling;return null}function i(d,B){for(d=new Map;B!==null;)B.key!==null?d.set(B.key,B):d.set(B.index,B),B=B.sibling;return d}function n(d,B){return d=di(d,B),d.index=0,d.sibling=null,d}function r(d,B,Q){return d.index=Q,e?(Q=d.alternate,Q!==null?(Q=Q.index,Q<B?(d.flags|=2,B):Q):(d.flags|=2,B)):(d.flags|=1048576,B)}function o(d){return e&&d.alternate===null&&(d.flags|=2),d}function s(d,B,Q,y){return B===null||B.tag!==6?(B=Ul(Q,d.mode,y),B.return=d,B):(B=n(B,Q),B.return=d,B)}function a(d,B,Q,y){var k=Q.type;return k===Hn?I(d,B,Q.props.children,y,Q.key):B!==null&&(B.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ii&&$d(k)===B.type)?(y=n(B,Q.props),y.ref=Zr(d,B,Q),y.return=d,y):(y=pa(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=Zr(d,B,Q),y.return=d,y)}function c(d,B,Q,y){return B===null||B.tag!==4||B.stateNode.containerInfo!==Q.containerInfo||B.stateNode.implementation!==Q.implementation?(B=Nl(Q,d.mode,y),B.return=d,B):(B=n(B,Q.children||[]),B.return=d,B)}function I(d,B,Q,y,k){return B===null||B.tag!==7?(B=_i(Q,d.mode,y,k),B.return=d,B):(B=n(B,Q),B.return=d,B)}function l(d,B,Q){if(typeof B=="string"&&B!==""||typeof B=="number")return B=Ul(""+B,d.mode,Q),B.return=d,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case zs:return Q=pa(B.type,B.key,B.props,null,d.mode,Q),Q.ref=Zr(d,null,B),Q.return=d,Q;case Gn:return B=Nl(B,d.mode,Q),B.return=d,B;case ii:var y=B._init;return l(d,y(B._payload),Q)}if(to(B)||zr(B))return B=_i(B,d.mode,Q,null),B.return=d,B;sa(d,B)}return null}function g(d,B,Q,y){var k=B!==null?B.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return k!==null?null:s(d,B,""+Q,y);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zs:return Q.key===k?a(d,B,Q,y):null;case Gn:return Q.key===k?c(d,B,Q,y):null;case ii:return k=Q._init,g(d,B,k(Q._payload),y)}if(to(Q)||zr(Q))return k!==null?null:I(d,B,Q,y,null);sa(d,Q)}return null}function u(d,B,Q,y,k){if(typeof y=="string"&&y!==""||typeof y=="number")return d=d.get(Q)||null,s(B,d,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case zs:return d=d.get(y.key===null?Q:y.key)||null,a(B,d,y,k);case Gn:return d=d.get(y.key===null?Q:y.key)||null,c(B,d,y,k);case ii:var D=y._init;return u(d,B,Q,D(y._payload),k)}if(to(y)||zr(y))return d=d.get(Q)||null,I(B,d,y,k,null);sa(B,y)}return null}function f(d,B,Q,y){for(var k=null,D=null,S=B,N=B=0,b=null;S!==null&&N<Q.length;N++){S.index>N?(b=S,S=null):b=S.sibling;var q=g(d,S,Q[N],y);if(q===null){S===null&&(S=b);break}e&&S&&q.alternate===null&&t(d,S),B=r(q,B,N),D===null?k=q:D.sibling=q,D=q,S=b}if(N===Q.length)return A(d,S),me&&Oi(d,N),k;if(S===null){for(;N<Q.length;N++)S=l(d,Q[N],y),S!==null&&(B=r(S,B,N),D===null?k=S:D.sibling=S,D=S);return me&&Oi(d,N),k}for(S=i(d,S);N<Q.length;N++)b=u(S,d,N,Q[N],y),b!==null&&(e&&b.alternate!==null&&S.delete(b.key===null?N:b.key),B=r(b,B,N),D===null?k=b:D.sibling=b,D=b);return e&&S.forEach(function(Z){return t(d,Z)}),me&&Oi(d,N),k}function C(d,B,Q,y){var k=zr(Q);if(typeof k!="function")throw Error(x(150));if(Q=k.call(Q),Q==null)throw Error(x(151));for(var D=k=null,S=B,N=B=0,b=null,q=Q.next();S!==null&&!q.done;N++,q=Q.next()){S.index>N?(b=S,S=null):b=S.sibling;var Z=g(d,S,q.value,y);if(Z===null){S===null&&(S=b);break}e&&S&&Z.alternate===null&&t(d,S),B=r(Z,B,N),D===null?k=Z:D.sibling=Z,D=Z,S=b}if(q.done)return A(d,S),me&&Oi(d,N),k;if(S===null){for(;!q.done;N++,q=Q.next())q=l(d,q.value,y),q!==null&&(B=r(q,B,N),D===null?k=q:D.sibling=q,D=q);return me&&Oi(d,N),k}for(S=i(d,S);!q.done;N++,q=Q.next())q=u(S,d,N,q.value,y),q!==null&&(e&&q.alternate!==null&&S.delete(q.key===null?N:q.key),B=r(q,B,N),D===null?k=q:D.sibling=q,D=q);return e&&S.forEach(function(xe){return t(d,xe)}),me&&Oi(d,N),k}function F(d,B,Q,y){if(typeof Q=="object"&&Q!==null&&Q.type===Hn&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zs:e:{for(var k=Q.key,D=B;D!==null;){if(D.key===k){if(k=Q.type,k===Hn){if(D.tag===7){A(d,D.sibling),B=n(D,Q.props.children),B.return=d,d=B;break e}}else if(D.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===ii&&$d(k)===D.type){A(d,D.sibling),B=n(D,Q.props),B.ref=Zr(d,D,Q),B.return=d,d=B;break e}A(d,D);break}else t(d,D);D=D.sibling}Q.type===Hn?(B=_i(Q.props.children,d.mode,y,Q.key),B.return=d,d=B):(y=pa(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=Zr(d,B,Q),y.return=d,d=y)}return o(d);case Gn:e:{for(D=Q.key;B!==null;){if(B.key===D)if(B.tag===4&&B.stateNode.containerInfo===Q.containerInfo&&B.stateNode.implementation===Q.implementation){A(d,B.sibling),B=n(B,Q.children||[]),B.return=d,d=B;break e}else{A(d,B);break}else t(d,B);B=B.sibling}B=Nl(Q,d.mode,y),B.return=d,d=B}return o(d);case ii:return D=Q._init,F(d,B,D(Q._payload),y)}if(to(Q))return f(d,B,Q,y);if(zr(Q))return C(d,B,Q,y);sa(d,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,B!==null&&B.tag===6?(A(d,B.sibling),B=n(B,Q),B.return=d,d=B):(A(d,B),B=Ul(Q,d.mode,y),B.return=d,d=B),o(d)):A(d,B)}return F}var $n=wQ(!0),FQ=wQ(!1),Mo={},CA=pi(Mo),Fo=pi(Mo),Do=pi(Mo);function Vi(e){if(e===Mo)throw Error(x(174));return e}function _g(e,t){switch(fe(Do,t),fe(Fo,e),fe(CA,Mo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bl(t,e)}pe(CA),fe(CA,t)}function er(){pe(CA),pe(Fo),pe(Do)}function DQ(e){Vi(Do.current);var t=Vi(CA.current),A=bl(t,e.type);t!==A&&(fe(Fo,e),fe(CA,A))}function Tg(e){Fo.current===e&&(pe(CA),pe(Fo))}var we=pi(0);function Ja(e){for(var t=e;t!==null;){if(t.tag===13){var A=t.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||A.data==="$?"||A.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)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 yl=[];function Xg(){for(var e=0;e<yl.length;e++)yl[e]._workInProgressVersionPrimary=null;yl.length=0}var Ba=OA.ReactCurrentDispatcher,wl=OA.ReactCurrentBatchConfig,Zi=0,Fe=null,Me=null,Ke=null,qa=!1,Io=!1,ko=0,ND=0;function $e(){throw Error(x(321))}function Zg(e,t){if(t===null)return!1;for(var A=0;A<t.length&&A<e.length;A++)if(!nA(e[A],t[A]))return!1;return!0}function Wg(e,t,A,i,n,r){if(Zi=r,Fe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ba.current=e===null||e.memoizedState===null?MD:vD,e=A(i,n),Io){r=0;do{if(Io=!1,ko=0,25<=r)throw Error(x(301));r+=1,Ke=Me=null,t.updateQueue=null,Ba.current=RD,e=A(i,n)}while(Io)}if(Ba.current=Ka,t=Me!==null&&Me.next!==null,Zi=0,Ke=Me=Fe=null,qa=!1,t)throw Error(x(300));return e}function jg(){var e=ko!==0;return ko=0,e}function fA(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Fe.memoizedState=Ke=e:Ke=Ke.next=e,Ke}function Lt(){if(Me===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Me.next;var t=Ke===null?Fe.memoizedState:Ke.next;if(t!==null)Ke=t,Me=e;else{if(e===null)throw Error(x(310));Me=e,e={memoizedState:Me.memoizedState,baseState:Me.baseState,baseQueue:Me.baseQueue,queue:Me.queue,next:null},Ke===null?Fe.memoizedState=Ke=e:Ke=Ke.next=e}return Ke}function So(e,t){return typeof t=="function"?t(e):t}function Fl(e){var t=Lt(),A=t.queue;if(A===null)throw Error(x(311));A.lastRenderedReducer=e;var i=Me,n=i.baseQueue,r=A.pending;if(r!==null){if(n!==null){var o=n.next;n.next=r.next,r.next=o}i.baseQueue=n=r,A.pending=null}if(n!==null){r=n.next,i=i.baseState;var s=o=null,a=null,c=r;do{var I=c.lane;if((Zi&I)===I)a!==null&&(a=a.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),i=c.hasEagerState?c.eagerState:e(i,c.action);else{var l={lane:I,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};a===null?(s=a=l,o=i):a=a.next=l,Fe.lanes|=I,Wi|=I}c=c.next}while(c!==null&&c!==r);a===null?o=i:a.next=s,nA(i,t.memoizedState)||(Ct=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=a,A.lastRenderedState=i}if(e=A.interleaved,e!==null){n=e;do r=n.lane,Fe.lanes|=r,Wi|=r,n=n.next;while(n!==e)}else n===null&&(A.lanes=0);return[t.memoizedState,A.dispatch]}function Dl(e){var t=Lt(),A=t.queue;if(A===null)throw Error(x(311));A.lastRenderedReducer=e;var i=A.dispatch,n=A.pending,r=t.memoizedState;if(n!==null){A.pending=null;var o=n=n.next;do r=e(r,o.action),o=o.next;while(o!==n);nA(r,t.memoizedState)||(Ct=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),A.lastRenderedState=r}return[r,i]}function kQ(){}function SQ(e,t){var A=Fe,i=Lt(),n=t(),r=!nA(i.memoizedState,n);if(r&&(i.memoizedState=n,Ct=!0),i=i.queue,$g(xQ.bind(null,A,i,e),[e]),i.getSnapshot!==t||r||Ke!==null&&Ke.memoizedState.tag&1){if(A.flags|=2048,Uo(9,NQ.bind(null,A,i,n,t),void 0,null),be===null)throw Error(x(349));Zi&30||UQ(A,t,n)}return n}function UQ(e,t,A){e.flags|=16384,e={getSnapshot:t,value:A},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.stores=[e]):(A=t.stores,A===null?t.stores=[e]:A.push(e))}function NQ(e,t,A,i){t.value=A,t.getSnapshot=i,GQ(t)&&HQ(e)}function xQ(e,t,A){return A(function(){GQ(t)&&HQ(e)})}function GQ(e){var t=e.getSnapshot;e=e.value;try{var A=t();return!nA(e,A)}catch{return!0}}function HQ(e){var t=KA(e,1);t!==null&&iA(t,e,1,-1)}function eC(e){var t=fA();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:So,lastRenderedState:e},t.queue=e,e=e.dispatch=HD.bind(null,Fe,e),[t.memoizedState,e]}function Uo(e,t,A,i){return e={tag:e,create:t,destroy:A,deps:i,next:null},t=Fe.updateQueue,t===null?(t={lastEffect:null,stores:null},Fe.updateQueue=t,t.lastEffect=e.next=e):(A=t.lastEffect,A===null?t.lastEffect=e.next=e:(i=A.next,A.next=e,e.next=i,t.lastEffect=e)),e}function MQ(){return Lt().memoizedState}function da(e,t,A,i){var n=fA();Fe.flags|=e,n.memoizedState=Uo(1|t,A,void 0,i===void 0?null:i)}function ja(e,t,A,i){var n=Lt();i=i===void 0?null:i;var r=void 0;if(Me!==null){var o=Me.memoizedState;if(r=o.destroy,i!==null&&Zg(i,o.deps)){n.memoizedState=Uo(t,A,r,i);return}}Fe.flags|=e,n.memoizedState=Uo(1|t,A,r,i)}function tC(e,t){return da(8390656,8,e,t)}function $g(e,t){return ja(2048,8,e,t)}function vQ(e,t){return ja(4,2,e,t)}function RQ(e,t){return ja(4,4,e,t)}function JQ(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 qQ(e,t,A){return A=A!=null?A.concat([e]):null,ja(4,4,JQ.bind(null,t,e),A)}function eu(){}function KQ(e,t){var A=Lt();t=t===void 0?null:t;var i=A.memoizedState;return i!==null&&t!==null&&Zg(t,i[1])?i[0]:(A.memoizedState=[e,t],e)}function bQ(e,t){var A=Lt();t=t===void 0?null:t;var i=A.memoizedState;return i!==null&&t!==null&&Zg(t,i[1])?i[0]:(e=e(),A.memoizedState=[e,t],e)}function OQ(e,t,A){return Zi&21?(nA(A,t)||(A=PC(),Fe.lanes|=A,Wi|=A,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ct=!0),e.memoizedState=A)}function xD(e,t){var A=ce;ce=A!==0&&4>A?A:4,e(!0);var i=wl.transition;wl.transition={};try{e(!1),t()}finally{ce=A,wl.transition=i}}function LQ(){return Lt().memoizedState}function GD(e,t,A){var i=Bi(e);if(A={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null},YQ(e))PQ(t,A);else if(A=pQ(e,t,A,i),A!==null){var n=st();iA(A,e,i,n),VQ(A,t,i)}}function HD(e,t,A){var i=Bi(e),n={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null};if(YQ(e))PQ(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var o=t.lastRenderedState,s=r(o,A);if(n.hasEagerState=!0,n.eagerState=s,nA(s,o)){var a=t.interleaved;a===null?(n.next=n,Vg(t)):(n.next=a.next,a.next=n),t.interleaved=n;return}}catch{}finally{}A=pQ(e,t,n,i),A!==null&&(n=st(),iA(A,e,i,n),VQ(A,t,i))}}function YQ(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function PQ(e,t){Io=qa=!0;var A=e.pending;A===null?t.next=t:(t.next=A.next,A.next=t),e.pending=t}function VQ(e,t,A){if(A&4194240){var i=t.lanes;i&=e.pendingLanes,A|=i,t.lanes=A,xg(e,A)}}var Ka={readContext:Ot,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},MD={readContext:Ot,useCallback:function(e,t){return fA().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:tC,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,da(4194308,4,JQ.bind(null,t,e),A)},useLayoutEffect:function(e,t){return da(4194308,4,e,t)},useInsertionEffect:function(e,t){return da(4,2,e,t)},useMemo:function(e,t){var A=fA();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var i=fA();return t=A!==void 0?A(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=GD.bind(null,Fe,e),[i.memoizedState,e]},useRef:function(e){var t=fA();return e={current:e},t.memoizedState=e},useState:eC,useDebugValue:eu,useDeferredValue:function(e){return fA().memoizedState=e},useTransition:function(){var e=eC(!1),t=e[0];return e=xD.bind(null,e[1]),fA().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var i=Fe,n=fA();if(me){if(A===void 0)throw Error(x(407));A=A()}else{if(A=t(),be===null)throw Error(x(349));Zi&30||UQ(i,t,A)}n.memoizedState=A;var r={value:A,getSnapshot:t};return n.queue=r,tC(xQ.bind(null,i,r,e),[e]),i.flags|=2048,Uo(9,NQ.bind(null,i,r,A,t),void 0,null),A},useId:function(){var e=fA(),t=be.identifierPrefix;if(me){var A=vA,i=MA;A=(i&~(1<<32-AA(i)-1)).toString(32)+A,t=":"+t+"R"+A,A=ko++,0<A&&(t+="H"+A.toString(32)),t+=":"}else A=ND++,t=":"+t+"r"+A.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},vD={readContext:Ot,useCallback:KQ,useContext:Ot,useEffect:$g,useImperativeHandle:qQ,useInsertionEffect:vQ,useLayoutEffect:RQ,useMemo:bQ,useReducer:Fl,useRef:MQ,useState:function(){return Fl(So)},useDebugValue:eu,useDeferredValue:function(e){var t=Lt();return OQ(t,Me.memoizedState,e)},useTransition:function(){var e=Fl(So)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:kQ,useSyncExternalStore:SQ,useId:LQ,unstable_isNewReconciler:!1},RD={readContext:Ot,useCallback:KQ,useContext:Ot,useEffect:$g,useImperativeHandle:qQ,useInsertionEffect:vQ,useLayoutEffect:RQ,useMemo:bQ,useReducer:Dl,useRef:MQ,useState:function(){return Dl(So)},useDebugValue:eu,useDeferredValue:function(e){var t=Lt();return Me===null?t.memoizedState=e:OQ(t,Me.memoizedState,e)},useTransition:function(){var e=Dl(So)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:kQ,useSyncExternalStore:SQ,useId:LQ,unstable_isNewReconciler:!1};function tr(e,t){try{var A="",i=t;do A+=gF(i),i=i.return;while(i);var n=A}catch(r){n=`
|
|
Error generating stack: `+r.message+`
|
|
`+r.stack}return{value:e,source:t,stack:n,digest:null}}function kl(e,t,A){return{value:e,source:null,stack:A??null,digest:t??null}}function Ig(e,t){try{console.error(t.value)}catch(A){setTimeout(function(){throw A})}}var JD=typeof WeakMap=="function"?WeakMap:Map;function zQ(e,t,A){A=RA(-1,A),A.tag=3,A.payload={element:null};var i=t.value;return A.callback=function(){Oa||(Oa=!0,hg=i),Ig(e,t)},A}function _Q(e,t,A){A=RA(-1,A),A.tag=3;var i=e.type.getDerivedStateFromError;if(typeof i=="function"){var n=t.value;A.payload=function(){return i(n)},A.callback=function(){Ig(e,t)}}var r=e.stateNode;return r!==null&&typeof r.componentDidCatch=="function"&&(A.callback=function(){Ig(e,t),typeof i!="function"&&(fi===null?fi=new Set([this]):fi.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),A}function AC(e,t,A){var i=e.pingCache;if(i===null){i=e.pingCache=new JD;var n=new Set;i.set(t,n)}else n=i.get(t),n===void 0&&(n=new Set,i.set(t,n));n.has(A)||(n.add(A),e=WD.bind(null,e,t,A),t.then(e,e))}function iC(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 nC(e,t,A,i,n){return e.mode&1?(e.flags|=65536,e.lanes=n,e):(e===t?e.flags|=65536:(e.flags|=128,A.flags|=131072,A.flags&=-52805,A.tag===1&&(A.alternate===null?A.tag=17:(t=RA(-1,1),t.tag=2,ui(A,t,1))),A.lanes|=1),e)}var qD=OA.ReactCurrentOwner,Ct=!1;function ot(e,t,A,i){t.child=e===null?FQ(t,null,A,i):$n(t,e.child,A,i)}function rC(e,t,A,i,n){A=A.render;var r=t.ref;return Tn(t,n),i=Wg(e,t,A,i,r,n),A=jg(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,bA(e,t,n)):(me&&A&&Kg(t),t.flags|=1,ot(e,t,i,n),t.child)}function oC(e,t,A,i,n){if(e===null){var r=A.type;return typeof r=="function"&&!au(r)&&r.defaultProps===void 0&&A.compare===null&&A.defaultProps===void 0?(t.tag=15,t.type=r,TQ(e,t,r,i,n)):(e=pa(A.type,null,i,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!(e.lanes&n)){var o=r.memoizedProps;if(A=A.compare,A=A!==null?A:Eo,A(o,i)&&e.ref===t.ref)return bA(e,t,n)}return t.flags|=1,e=di(r,i),e.ref=t.ref,e.return=t,t.child=e}function TQ(e,t,A,i,n){if(e!==null){var r=e.memoizedProps;if(Eo(r,i)&&e.ref===t.ref)if(Ct=!1,t.pendingProps=i=r,(e.lanes&n)!==0)e.flags&131072&&(Ct=!0);else return t.lanes=e.lanes,bA(e,t,n)}return cg(e,t,A,i,n)}function XQ(e,t,A){var i=t.pendingProps,n=i.children,r=e!==null?e.memoizedState:null;if(i.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fe(Yn,Ut),Ut|=A;else{if(!(A&1073741824))return e=r!==null?r.baseLanes|A:A,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fe(Yn,Ut),Ut|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=r!==null?r.baseLanes:A,fe(Yn,Ut),Ut|=i}else r!==null?(i=r.baseLanes|A,t.memoizedState=null):i=A,fe(Yn,Ut),Ut|=i;return ot(e,t,n,A),t.child}function ZQ(e,t){var A=t.ref;(e===null&&A!==null||e!==null&&e.ref!==A)&&(t.flags|=512,t.flags|=2097152)}function cg(e,t,A,i,n){var r=ht(A)?Ti:At.current;return r=Wn(t,r),Tn(t,n),A=Wg(e,t,A,i,r,n),i=jg(),e!==null&&!Ct?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,bA(e,t,n)):(me&&i&&Kg(t),t.flags|=1,ot(e,t,A,n),t.child)}function sC(e,t,A,i,n){if(ht(A)){var r=!0;xa(t)}else r=!1;if(Tn(t,n),t.stateNode===null)Ca(e,t),yQ(t,A,i),ag(t,A,i,n),i=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var a=o.context,c=A.contextType;typeof c=="object"&&c!==null?c=Ot(c):(c=ht(A)?Ti:At.current,c=Wn(t,c));var I=A.getDerivedStateFromProps,l=typeof I=="function"||typeof o.getSnapshotBeforeUpdate=="function";l||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==i||a!==c)&&jd(t,o,i,c),ni=!1;var g=t.memoizedState;o.state=g,Ra(t,i,o,n),a=t.memoizedState,s!==i||g!==a||Qt.current||ni?(typeof I=="function"&&(sg(t,A,I,i),a=t.memoizedState),(s=ni||Wd(t,A,s,i,g,a,c))?(l||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=a),o.props=i,o.state=a,o.context=c,i=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,EQ(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:$t(t.type,s),o.props=c,l=t.pendingProps,g=o.context,a=A.contextType,typeof a=="object"&&a!==null?a=Ot(a):(a=ht(A)?Ti:At.current,a=Wn(t,a));var u=A.getDerivedStateFromProps;(I=typeof u=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==l||g!==a)&&jd(t,o,i,a),ni=!1,g=t.memoizedState,o.state=g,Ra(t,i,o,n);var f=t.memoizedState;s!==l||g!==f||Qt.current||ni?(typeof u=="function"&&(sg(t,A,u,i),f=t.memoizedState),(c=ni||Wd(t,A,c,i,g,f,a)||!1)?(I||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,f,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,f,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=f),o.props=i,o.state=f,o.context=a,i=c):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&g===e.memoizedState||(t.flags|=1024),i=!1)}return lg(e,t,A,i,r,n)}function lg(e,t,A,i,n,r){ZQ(e,t);var o=(t.flags&128)!==0;if(!i&&!o)return n&&zd(t,A,!1),bA(e,t,r);i=t.stateNode,qD.current=t;var s=o&&typeof A.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&o?(t.child=$n(t,e.child,null,r),t.child=$n(t,null,s,r)):ot(e,t,s,r),t.memoizedState=i.state,n&&zd(t,A,!0),t.child}function WQ(e){var t=e.stateNode;t.pendingContext?Vd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Vd(e,t.context,!1),_g(e,t.containerInfo)}function aC(e,t,A,i,n){return jn(),Og(n),t.flags|=256,ot(e,t,A,i),t.child}var gg={dehydrated:null,treeContext:null,retryLane:0};function ug(e){return{baseLanes:e,cachePool:null,transitions:null}}function jQ(e,t,A){var i=t.pendingProps,n=we.current,r=!1,o=(t.flags&128)!==0,s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:(n&2)!==0),s?(r=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(n|=1),fe(we,n&1),e===null)return rg(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(o=i.children,e=i.fallback,r?(i=t.mode,r=t.child,o={mode:"hidden",children:o},!(i&1)&&r!==null?(r.childLanes=0,r.pendingProps=o):r=tI(o,i,0,null),e=_i(e,i,A,null),r.return=t,e.return=t,r.sibling=e,t.child=r,t.child.memoizedState=ug(A),t.memoizedState=gg,e):tu(t,o));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return KD(e,t,o,i,s,n,A);if(r){r=i.fallback,o=t.mode,n=e.child,s=n.sibling;var a={mode:"hidden",children:i.children};return!(o&1)&&t.child!==n?(i=t.child,i.childLanes=0,i.pendingProps=a,t.deletions=null):(i=di(n,a),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?r=di(s,r):(r=_i(r,o,A,null),r.flags|=2),r.return=t,i.return=t,i.sibling=r,t.child=i,i=r,r=t.child,o=e.child.memoizedState,o=o===null?ug(A):{baseLanes:o.baseLanes|A,cachePool:null,transitions:o.transitions},r.memoizedState=o,r.childLanes=e.childLanes&~A,t.memoizedState=gg,i}return r=e.child,e=r.sibling,i=di(r,{mode:"visible",children:i.children}),!(t.mode&1)&&(i.lanes=A),i.return=t,i.sibling=null,e!==null&&(A=t.deletions,A===null?(t.deletions=[e],t.flags|=16):A.push(e)),t.child=i,t.memoizedState=null,i}function tu(e,t){return t=tI({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function aa(e,t,A,i){return i!==null&&Og(i),$n(t,e.child,null,A),e=tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function KD(e,t,A,i,n,r,o){if(A)return t.flags&256?(t.flags&=-257,i=kl(Error(x(422))),aa(e,t,o,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(r=i.fallback,n=t.mode,i=tI({mode:"visible",children:i.children},n,0,null),r=_i(r,n,o,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,t.mode&1&&$n(t,e.child,null,o),t.child.memoizedState=ug(o),t.memoizedState=gg,r);if(!(t.mode&1))return aa(e,t,o,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,r=Error(x(419)),i=kl(r,i,void 0),aa(e,t,o,i)}if(s=(o&e.childLanes)!==0,Ct||s){if(i=be,i!==null){switch(o&-o){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&(i.suspendedLanes|o)?0:n,n!==0&&n!==r.retryLane&&(r.retryLane=n,KA(e,n),iA(i,e,n,-1))}return su(),i=kl(Error(x(421))),aa(e,t,o,i)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=jD.bind(null,e),n._reactRetry=t,null):(e=r.treeContext,Nt=gi(n.nextSibling),xt=t,me=!0,tA=null,e!==null&&(Jt[qt++]=MA,Jt[qt++]=vA,Jt[qt++]=Xi,MA=e.id,vA=e.overflow,Xi=t),t=tu(t,i.children),t.flags|=4096,t)}function IC(e,t,A){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),og(e.return,t,A)}function Sl(e,t,A,i,n){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:A,tailMode:n}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=i,r.tail=A,r.tailMode=n)}function $Q(e,t,A){var i=t.pendingProps,n=i.revealOrder,r=i.tail;if(ot(e,t,i.children,A),i=we.current,i&2)i=i&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&IC(e,A,t);else if(e.tag===19)IC(e,A,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}i&=1}if(fe(we,i),!(t.mode&1))t.memoizedState=null;else switch(n){case"forwards":for(A=t.child,n=null;A!==null;)e=A.alternate,e!==null&&Ja(e)===null&&(n=A),A=A.sibling;A=n,A===null?(n=t.child,t.child=null):(n=A.sibling,A.sibling=null),Sl(t,!1,n,A,r);break;case"backwards":for(A=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Ja(e)===null){t.child=n;break}e=n.sibling,n.sibling=A,A=n,n=e}Sl(t,!0,A,null,r);break;case"together":Sl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ca(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function bA(e,t,A){if(e!==null&&(t.dependencies=e.dependencies),Wi|=t.lanes,!(A&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(x(153));if(t.child!==null){for(e=t.child,A=di(e,e.pendingProps),t.child=A,A.return=t;e.sibling!==null;)e=e.sibling,A=A.sibling=di(e,e.pendingProps),A.return=t;A.sibling=null}return t.child}function bD(e,t,A){switch(t.tag){case 3:WQ(t),jn();break;case 5:DQ(t);break;case 1:ht(t.type)&&xa(t);break;case 4:_g(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,n=t.memoizedProps.value;fe(Ma,i._currentValue),i._currentValue=n;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(fe(we,we.current&1),t.flags|=128,null):A&t.child.childLanes?jQ(e,t,A):(fe(we,we.current&1),e=bA(e,t,A),e!==null?e.sibling:null);fe(we,we.current&1);break;case 19:if(i=(A&t.childLanes)!==0,e.flags&128){if(i)return $Q(e,t,A);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),fe(we,we.current),i)break;return null;case 22:case 23:return t.lanes=0,XQ(e,t,A)}return bA(e,t,A)}var eh,fg,th,Ah;eh=function(e,t){for(var A=t.child;A!==null;){if(A.tag===5||A.tag===6)e.appendChild(A.stateNode);else if(A.tag!==4&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===t)break;for(;A.sibling===null;){if(A.return===null||A.return===t)return;A=A.return}A.sibling.return=A.return,A=A.sibling}};fg=function(){};th=function(e,t,A,i){var n=e.memoizedProps;if(n!==i){e=t.stateNode,Vi(CA.current);var r=null;switch(A){case"input":n=Rl(e,n),i=Rl(e,i),r=[];break;case"select":n=De({},n,{value:void 0}),i=De({},i,{value:void 0}),r=[];break;case"textarea":n=Kl(e,n),i=Kl(e,i),r=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=Ua)}Ol(A,i);var o;A=null;for(c in n)if(!i.hasOwnProperty(c)&&n.hasOwnProperty(c)&&n[c]!=null)if(c==="style"){var s=n[c];for(o in s)s.hasOwnProperty(o)&&(A||(A={}),A[o]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(uo.hasOwnProperty(c)?r||(r=[]):(r=r||[]).push(c,null));for(c in i){var a=i[c];if(s=n?.[c],i.hasOwnProperty(c)&&a!==s&&(a!=null||s!=null))if(c==="style")if(s){for(o in s)!s.hasOwnProperty(o)||a&&a.hasOwnProperty(o)||(A||(A={}),A[o]="");for(o in a)a.hasOwnProperty(o)&&s[o]!==a[o]&&(A||(A={}),A[o]=a[o])}else A||(r||(r=[]),r.push(c,A)),A=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(r=r||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(r=r||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(uo.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&he("scroll",e),r||s===a||(r=[])):(r=r||[]).push(c,a))}A&&(r=r||[]).push("style",A);var c=r;(t.updateQueue=c)&&(t.flags|=4)}};Ah=function(e,t,A,i){A!==i&&(t.flags|=4)};function Wr(e,t){if(!me)switch(e.tailMode){case"hidden":t=e.tail;for(var A=null;t!==null;)t.alternate!==null&&(A=t),t=t.sibling;A===null?e.tail=null:A.sibling=null;break;case"collapsed":A=e.tail;for(var i=null;A!==null;)A.alternate!==null&&(i=A),A=A.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function et(e){var t=e.alternate!==null&&e.alternate.child===e.child,A=0,i=0;if(t)for(var n=e.child;n!==null;)A|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)A|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=i,e.childLanes=A,t}function OD(e,t,A){var i=t.pendingProps;switch(bg(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return et(t),null;case 1:return ht(t.type)&&Na(),et(t),null;case 3:return i=t.stateNode,er(),pe(Qt),pe(At),Xg(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(oa(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,tA!==null&&(mg(tA),tA=null))),fg(e,t),et(t),null;case 5:Tg(t);var n=Vi(Do.current);if(A=t.type,e!==null&&t.stateNode!=null)th(e,t,A,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(x(166));return et(t),null}if(e=Vi(CA.current),oa(t)){i=t.stateNode,A=t.type;var r=t.memoizedProps;switch(i[BA]=t,i[wo]=r,e=(t.mode&1)!==0,A){case"dialog":he("cancel",i),he("close",i);break;case"iframe":case"object":case"embed":he("load",i);break;case"video":case"audio":for(n=0;n<io.length;n++)he(io[n],i);break;case"source":he("error",i);break;case"img":case"image":case"link":he("error",i),he("load",i);break;case"details":he("toggle",i);break;case"input":Cd(i,r),he("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!r.multiple},he("invalid",i);break;case"textarea":hd(i,r),he("invalid",i)}Ol(A,r),n=null;for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];o==="children"?typeof s=="string"?i.textContent!==s&&(r.suppressHydrationWarning!==!0&&ra(i.textContent,s,e),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(r.suppressHydrationWarning!==!0&&ra(i.textContent,s,e),n=["children",""+s]):uo.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&he("scroll",i)}switch(A){case"input":_s(i),Qd(i,r,!0);break;case"textarea":_s(i),pd(i);break;case"select":case"option":break;default:typeof r.onClick=="function"&&(i.onclick=Ua)}i=n,t.updateQueue=i,i!==null&&(t.flags|=4)}else{o=n.nodeType===9?n:n.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=UC(A)),e==="http://www.w3.org/1999/xhtml"?A==="script"?(e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(A,{is:i.is}):(e=o.createElement(A),A==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,A),e[BA]=t,e[wo]=i,eh(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ll(A,i),A){case"dialog":he("cancel",e),he("close",e),n=i;break;case"iframe":case"object":case"embed":he("load",e),n=i;break;case"video":case"audio":for(n=0;n<io.length;n++)he(io[n],e);n=i;break;case"source":he("error",e),n=i;break;case"img":case"image":case"link":he("error",e),he("load",e),n=i;break;case"details":he("toggle",e),n=i;break;case"input":Cd(e,i),n=Rl(e,i),he("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=De({},i,{value:void 0}),he("invalid",e);break;case"textarea":hd(e,i),n=Kl(e,i),he("invalid",e);break;default:n=i}Ol(A,n),s=n;for(r in s)if(s.hasOwnProperty(r)){var a=s[r];r==="style"?GC(e,a):r==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,a!=null&&NC(e,a)):r==="children"?typeof a=="string"?(A!=="textarea"||a!=="")&&fo(e,a):typeof a=="number"&&fo(e,""+a):r!=="suppressContentEditableWarning"&&r!=="suppressHydrationWarning"&&r!=="autoFocus"&&(uo.hasOwnProperty(r)?a!=null&&r==="onScroll"&&he("scroll",e):a!=null&&Fg(e,r,a,o))}switch(A){case"input":_s(e),Qd(e,i,!1);break;case"textarea":_s(e),pd(e);break;case"option":i.value!=null&&e.setAttribute("value",""+Ci(i.value));break;case"select":e.multiple=!!i.multiple,r=i.value,r!=null?Pn(e,!!i.multiple,r,!1):i.defaultValue!=null&&Pn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=Ua)}switch(A){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return et(t),null;case 6:if(e&&t.stateNode!=null)Ah(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(x(166));if(A=Vi(Do.current),Vi(CA.current),oa(t)){if(i=t.stateNode,A=t.memoizedProps,i[BA]=t,(r=i.nodeValue!==A)&&(e=xt,e!==null))switch(e.tag){case 3:ra(i.nodeValue,A,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ra(i.nodeValue,A,(e.mode&1)!==0)}r&&(t.flags|=4)}else i=(A.nodeType===9?A:A.ownerDocument).createTextNode(i),i[BA]=t,t.stateNode=i}return et(t),null;case 13:if(pe(we),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(me&&Nt!==null&&t.mode&1&&!(t.flags&128))hQ(),jn(),t.flags|=98560,r=!1;else if(r=oa(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(x(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(x(317));r[BA]=t}else jn(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;et(t),r=!1}else tA!==null&&(mg(tA),tA=null),r=!0;if(!r)return t.flags&65536?t:null}return t.flags&128?(t.lanes=A,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||we.current&1?ve===0&&(ve=3):su())),t.updateQueue!==null&&(t.flags|=4),et(t),null);case 4:return er(),fg(e,t),e===null&&mo(t.stateNode.containerInfo),et(t),null;case 10:return Pg(t.type._context),et(t),null;case 17:return ht(t.type)&&Na(),et(t),null;case 19:if(pe(we),r=t.memoizedState,r===null)return et(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Wr(r,!1);else{if(ve!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Ja(e),o!==null){for(t.flags|=128,Wr(r,!1),i=o.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=A,A=t.child;A!==null;)r=A,e=i,r.flags&=14680066,o=r.alternate,o===null?(r.childLanes=0,r.lanes=e,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=o.childLanes,r.lanes=o.lanes,r.child=o.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=o.memoizedProps,r.memoizedState=o.memoizedState,r.updateQueue=o.updateQueue,r.type=o.type,e=o.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),A=A.sibling;return fe(we,we.current&1|2),t.child}e=e.sibling}r.tail!==null&&Ue()>Ar&&(t.flags|=128,i=!0,Wr(r,!1),t.lanes=4194304)}else{if(!i)if(e=Ja(o),e!==null){if(t.flags|=128,i=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),Wr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!me)return et(t),null}else 2*Ue()-r.renderingStartTime>Ar&&A!==1073741824&&(t.flags|=128,i=!0,Wr(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(A=r.last,A!==null?A.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Ue(),t.sibling=null,A=we.current,fe(we,i?A&1|2:A&1),t):(et(t),null);case 22:case 23:return ou(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Ut&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function LD(e,t){switch(bg(t),t.tag){case 1:return ht(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(),pe(Qt),pe(At),Xg(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tg(t),null;case 13:if(pe(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(we),null;case 4:return er(),null;case 10:return Pg(t.type._context),null;case 22:case 23:return ou(),null;case 24:return null;default:return null}}var Ia=!1,tt=!1,YD=typeof WeakSet=="function"?WeakSet:Set,R=null;function Ln(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(i){Se(e,t,i)}else A.current=null}function Bg(e,t,A){try{A()}catch(i){Se(e,t,i)}}var cC=!1;function PD(e,t){if(jl=Da,e=oQ(),qg(e)){if("selectionStart"in e)var A={start:e.selectionStart,end:e.selectionEnd};else e:{A=(A=e.ownerDocument)&&A.defaultView||window;var i=A.getSelection&&A.getSelection();if(i&&i.rangeCount!==0){A=i.anchorNode;var n=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{A.nodeType,r.nodeType}catch{A=null;break e}var o=0,s=-1,a=-1,c=0,I=0,l=e,g=null;t:for(;;){for(var u;l!==A||n!==0&&l.nodeType!==3||(s=o+n),l!==r||i!==0&&l.nodeType!==3||(a=o+i),l.nodeType===3&&(o+=l.nodeValue.length),(u=l.firstChild)!==null;)g=l,l=u;for(;;){if(l===e)break t;if(g===A&&++c===n&&(s=o),g===r&&++I===i&&(a=o),(u=l.nextSibling)!==null)break;l=g,g=l.parentNode}l=u}A=s===-1||a===-1?null:{start:s,end:a}}else A=null}A=A||{start:0,end:0}}else A=null;for($l={focusedElem:e,selectionRange:A},Da=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var C=f.memoizedProps,F=f.memoizedState,d=t.stateNode,B=d.getSnapshotBeforeUpdate(t.elementType===t.type?C:$t(t.type,C),F);d.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var Q=t.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){Se(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return f=cC,cC=!1,f}function co(e,t,A){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,r!==void 0&&Bg(t,A,r)}n=n.next}while(n!==i)}}function $a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var A=t=t.next;do{if((A.tag&e)===e){var i=A.create;A.destroy=i()}A=A.next}while(A!==t)}}function dg(e){var t=e.ref;if(t!==null){var A=e.stateNode;switch(e.tag){case 5:e=A;break;default:e=A}typeof t=="function"?t(e):t.current=e}}function ih(e){var t=e.alternate;t!==null&&(e.alternate=null,ih(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[BA],delete t[wo],delete t[Ag],delete t[DD],delete t[kD])),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 nh(e){return e.tag===5||e.tag===3||e.tag===4}function lC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||nh(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 Cg(e,t,A){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?A.nodeType===8?A.parentNode.insertBefore(e,t):A.insertBefore(e,t):(A.nodeType===8?(t=A.parentNode,t.insertBefore(e,A)):(t=A,t.appendChild(e)),A=A._reactRootContainer,A!=null||t.onclick!==null||(t.onclick=Ua));else if(i!==4&&(e=e.child,e!==null))for(Cg(e,t,A),e=e.sibling;e!==null;)Cg(e,t,A),e=e.sibling}function Qg(e,t,A){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?A.insertBefore(e,t):A.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Qg(e,t,A),e=e.sibling;e!==null;)Qg(e,t,A),e=e.sibling}var _e=null,eA=!1;function Ai(e,t,A){for(A=A.child;A!==null;)rh(e,t,A),A=A.sibling}function rh(e,t,A){if(dA&&typeof dA.onCommitFiberUnmount=="function")try{dA.onCommitFiberUnmount(Va,A)}catch{}switch(A.tag){case 5:tt||Ln(A,t);case 6:var i=_e,n=eA;_e=null,Ai(e,t,A),_e=i,eA=n,_e!==null&&(eA?(e=_e,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):_e.removeChild(A.stateNode));break;case 18:_e!==null&&(eA?(e=_e,A=A.stateNode,e.nodeType===8?El(e.parentNode,A):e.nodeType===1&&El(e,A),ho(e)):El(_e,A.stateNode));break;case 4:i=_e,n=eA,_e=A.stateNode.containerInfo,eA=!0,Ai(e,t,A),_e=i,eA=n;break;case 0:case 11:case 14:case 15:if(!tt&&(i=A.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var r=n,o=r.destroy;r=r.tag,o!==void 0&&(r&2||r&4)&&Bg(A,t,o),n=n.next}while(n!==i)}Ai(e,t,A);break;case 1:if(!tt&&(Ln(A,t),i=A.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=A.memoizedProps,i.state=A.memoizedState,i.componentWillUnmount()}catch(s){Se(A,t,s)}Ai(e,t,A);break;case 21:Ai(e,t,A);break;case 22:A.mode&1?(tt=(i=tt)||A.memoizedState!==null,Ai(e,t,A),tt=i):Ai(e,t,A);break;default:Ai(e,t,A)}}function gC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new YD),t.forEach(function(i){var n=$D.bind(null,e,i);A.has(i)||(A.add(i),i.then(n,n))})}}function jt(e,t){var A=t.deletions;if(A!==null)for(var i=0;i<A.length;i++){var n=A[i];try{var r=e,o=t,s=o;e:for(;s!==null;){switch(s.tag){case 5:_e=s.stateNode,eA=!1;break e;case 3:_e=s.stateNode.containerInfo,eA=!0;break e;case 4:_e=s.stateNode.containerInfo,eA=!0;break e}s=s.return}if(_e===null)throw Error(x(160));rh(r,o,n),_e=null,eA=!1;var a=n.alternate;a!==null&&(a.return=null),n.return=null}catch(c){Se(n,t,c)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)oh(t,e),t=t.sibling}function oh(e,t){var A=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(jt(t,e),uA(e),i&4){try{co(3,e,e.return),$a(3,e)}catch(C){Se(e,e.return,C)}try{co(5,e,e.return)}catch(C){Se(e,e.return,C)}}break;case 1:jt(t,e),uA(e),i&512&&A!==null&&Ln(A,A.return);break;case 5:if(jt(t,e),uA(e),i&512&&A!==null&&Ln(A,A.return),e.flags&32){var n=e.stateNode;try{fo(n,"")}catch(C){Se(e,e.return,C)}}if(i&4&&(n=e.stateNode,n!=null)){var r=e.memoizedProps,o=A!==null?A.memoizedProps:r,s=e.type,a=e.updateQueue;if(e.updateQueue=null,a!==null)try{s==="input"&&r.type==="radio"&&r.name!=null&&kC(n,r),Ll(s,o);var c=Ll(s,r);for(o=0;o<a.length;o+=2){var I=a[o],l=a[o+1];I==="style"?GC(n,l):I==="dangerouslySetInnerHTML"?NC(n,l):I==="children"?fo(n,l):Fg(n,I,l,c)}switch(s){case"input":Jl(n,r);break;case"textarea":SC(n,r);break;case"select":var g=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!r.multiple;var u=r.value;u!=null?Pn(n,!!r.multiple,u,!1):g!==!!r.multiple&&(r.defaultValue!=null?Pn(n,!!r.multiple,r.defaultValue,!0):Pn(n,!!r.multiple,r.multiple?[]:"",!1))}n[wo]=r}catch(C){Se(e,e.return,C)}}break;case 6:if(jt(t,e),uA(e),i&4){if(e.stateNode===null)throw Error(x(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(C){Se(e,e.return,C)}}break;case 3:if(jt(t,e),uA(e),i&4&&A!==null&&A.memoizedState.isDehydrated)try{ho(t.containerInfo)}catch(C){Se(e,e.return,C)}break;case 4:jt(t,e),uA(e);break;case 13:jt(t,e),uA(e),n=e.child,n.flags&8192&&(r=n.memoizedState!==null,n.stateNode.isHidden=r,!r||n.alternate!==null&&n.alternate.memoizedState!==null||(nu=Ue())),i&4&&gC(e);break;case 22:if(I=A!==null&&A.memoizedState!==null,e.mode&1?(tt=(c=tt)||I,jt(t,e),tt=c):jt(t,e),uA(e),i&8192){if(c=e.memoizedState!==null,(e.stateNode.isHidden=c)&&!I&&e.mode&1)for(R=e,I=e.child;I!==null;){for(l=R=I;R!==null;){switch(g=R,u=g.child,g.tag){case 0:case 11:case 14:case 15:co(4,g,g.return);break;case 1:Ln(g,g.return);var f=g.stateNode;if(typeof f.componentWillUnmount=="function"){i=g,A=g.return;try{t=i,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(C){Se(i,A,C)}}break;case 5:Ln(g,g.return);break;case 22:if(g.memoizedState!==null){fC(l);continue}}u!==null?(u.return=g,R=u):fC(l)}I=I.sibling}e:for(I=null,l=e;;){if(l.tag===5){if(I===null){I=l;try{n=l.stateNode,c?(r=n.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"):(s=l.stateNode,a=l.memoizedProps.style,o=a!=null&&a.hasOwnProperty("display")?a.display:null,s.style.display=xC("display",o))}catch(C){Se(e,e.return,C)}}}else if(l.tag===6){if(I===null)try{l.stateNode.nodeValue=c?"":l.memoizedProps}catch(C){Se(e,e.return,C)}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===e)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===e)break e;for(;l.sibling===null;){if(l.return===null||l.return===e)break e;I===l&&(I=null),l=l.return}I===l&&(I=null),l.sibling.return=l.return,l=l.sibling}}break;case 19:jt(t,e),uA(e),i&4&&gC(e);break;case 21:break;default:jt(t,e),uA(e)}}function uA(e){var t=e.flags;if(t&2){try{e:{for(var A=e.return;A!==null;){if(nh(A)){var i=A;break e}A=A.return}throw Error(x(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(fo(n,""),i.flags&=-33);var r=lC(e);Qg(e,r,n);break;case 3:case 4:var o=i.stateNode.containerInfo,s=lC(e);Cg(e,s,o);break;default:throw Error(x(161))}}catch(a){Se(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function VD(e,t,A){R=e,sh(e,t,A)}function sh(e,t,A){for(var i=(e.mode&1)!==0;R!==null;){var n=R,r=n.child;if(n.tag===22&&i){var o=n.memoizedState!==null||Ia;if(!o){var s=n.alternate,a=s!==null&&s.memoizedState!==null||tt;s=Ia;var c=tt;if(Ia=o,(tt=a)&&!c)for(R=n;R!==null;)o=R,a=o.child,o.tag===22&&o.memoizedState!==null?BC(n):a!==null?(a.return=o,R=a):BC(n);for(;r!==null;)R=r,sh(r,t,A),r=r.sibling;R=n,Ia=s,tt=c}uC(e,t,A)}else n.subtreeFlags&8772&&r!==null?(r.return=n,R=r):uC(e,t,A)}}function uC(e){for(;R!==null;){var t=R;if(t.flags&8772){var A=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:tt||$a(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!tt)if(A===null)i.componentDidMount();else{var n=t.elementType===t.type?A.memoizedProps:$t(t.type,A.memoizedProps);i.componentDidUpdate(n,A.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var r=t.updateQueue;r!==null&&Zd(t,r,i);break;case 3:var o=t.updateQueue;if(o!==null){if(A=null,t.child!==null)switch(t.child.tag){case 5:A=t.child.stateNode;break;case 1:A=t.child.stateNode}Zd(t,o,A)}break;case 5:var s=t.stateNode;if(A===null&&t.flags&4){A=s;var a=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":a.autoFocus&&A.focus();break;case"img":a.src&&(A.src=a.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var c=t.alternate;if(c!==null){var I=c.memoizedState;if(I!==null){var l=I.dehydrated;l!==null&&ho(l)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}tt||t.flags&512&&dg(t)}catch(g){Se(t,t.return,g)}}if(t===e){R=null;break}if(A=t.sibling,A!==null){A.return=t.return,R=A;break}R=t.return}}function fC(e){for(;R!==null;){var t=R;if(t===e){R=null;break}var A=t.sibling;if(A!==null){A.return=t.return,R=A;break}R=t.return}}function BC(e){for(;R!==null;){var t=R;try{switch(t.tag){case 0:case 11:case 15:var A=t.return;try{$a(4,t)}catch(a){Se(t,A,a)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var n=t.return;try{i.componentDidMount()}catch(a){Se(t,n,a)}}var r=t.return;try{dg(t)}catch(a){Se(t,r,a)}break;case 5:var o=t.return;try{dg(t)}catch(a){Se(t,o,a)}}}catch(a){Se(t,t.return,a)}if(t===e){R=null;break}var s=t.sibling;if(s!==null){s.return=t.return,R=s;break}R=t.return}}var zD=Math.ceil,ba=OA.ReactCurrentDispatcher,Au=OA.ReactCurrentOwner,bt=OA.ReactCurrentBatchConfig,re=0,be=null,Ge=null,Te=0,Ut=0,Yn=pi(0),ve=0,No=null,Wi=0,eI=0,iu=0,lo=null,dt=null,nu=0,Ar=1/0,GA=null,Oa=!1,hg=null,fi=null,ca=!1,ai=null,La=0,go=0,pg=null,Qa=-1,ha=0;function st(){return re&6?Ue():Qa!==-1?Qa:Qa=Ue()}function Bi(e){return e.mode&1?re&2&&Te!==0?Te&-Te:UD.transition!==null?(ha===0&&(ha=PC()),ha):(e=ce,e!==0||(e=window.event,e=e===void 0?16:WC(e.type)),e):1}function iA(e,t,A,i){if(50<go)throw go=0,pg=null,Error(x(185));xo(e,A,i),(!(re&2)||e!==be)&&(e===be&&(!(re&2)&&(eI|=A),ve===4&&oi(e,Te)),pt(e,i),A===1&&re===0&&!(t.mode&1)&&(Ar=Ue()+500,Za&&Ei()))}function pt(e,t){var A=e.callbackNode;xF(e,t);var i=Fa(e,e===be?Te:0);if(i===0)A!==null&&yd(A),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(A!=null&&yd(A),t===1)e.tag===0?SD(dC.bind(null,e)):dQ(dC.bind(null,e)),wD(function(){!(re&6)&&Ei()}),A=null;else{switch(VC(i)){case 1:A=Ng;break;case 4:A=LC;break;case 16:A=wa;break;case 536870912:A=YC;break;default:A=wa}A=Bh(A,ah.bind(null,e))}e.callbackPriority=t,e.callbackNode=A}}function ah(e,t){if(Qa=-1,ha=0,re&6)throw Error(x(327));var A=e.callbackNode;if(Xn()&&e.callbackNode!==A)return null;var i=Fa(e,e===be?Te:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=Ya(e,i);else{t=i;var n=re;re|=2;var r=ch();(be!==e||Te!==t)&&(GA=null,Ar=Ue()+500,zi(e,t));do try{XD();break}catch(s){Ih(e,s)}while(!0);Yg(),ba.current=r,re=n,Ge!==null?t=0:(be=null,Te=0,t=ve)}if(t!==0){if(t===2&&(n=_l(e),n!==0&&(i=n,t=Eg(e,n))),t===1)throw A=No,zi(e,0),oi(e,i),pt(e,Ue()),A;if(t===6)oi(e,i);else{if(n=e.current.alternate,!(i&30)&&!_D(n)&&(t=Ya(e,i),t===2&&(r=_l(e),r!==0&&(i=r,t=Eg(e,r))),t===1))throw A=No,zi(e,0),oi(e,i),pt(e,Ue()),A;switch(e.finishedWork=n,e.finishedLanes=i,t){case 0:case 1:throw Error(x(345));case 2:Li(e,dt,GA);break;case 3:if(oi(e,i),(i&130023424)===i&&(t=nu+500-Ue(),10<t)){if(Fa(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){st(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=tg(Li.bind(null,e,dt,GA),t);break}Li(e,dt,GA);break;case 4:if(oi(e,i),(i&4194240)===i)break;for(t=e.eventTimes,n=-1;0<i;){var o=31-AA(i);r=1<<o,o=t[o],o>n&&(n=o),i&=~r}if(i=n,i=Ue()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*zD(i/1960))-i,10<i){e.timeoutHandle=tg(Li.bind(null,e,dt,GA),i);break}Li(e,dt,GA);break;case 5:Li(e,dt,GA);break;default:throw Error(x(329))}}}return pt(e,Ue()),e.callbackNode===A?ah.bind(null,e):null}function Eg(e,t){var A=lo;return e.current.memoizedState.isDehydrated&&(zi(e,t).flags|=256),e=Ya(e,t),e!==2&&(t=dt,dt=A,t!==null&&mg(t)),e}function mg(e){dt===null?dt=e:dt.push.apply(dt,e)}function _D(e){for(var t=e;;){if(t.flags&16384){var A=t.updateQueue;if(A!==null&&(A=A.stores,A!==null))for(var i=0;i<A.length;i++){var n=A[i],r=n.getSnapshot;n=n.value;try{if(!nA(r(),n))return!1}catch{return!1}}}if(A=t.child,t.subtreeFlags&16384&&A!==null)A.return=t,t=A;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 oi(e,t){for(t&=~iu,t&=~eI,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var A=31-AA(t),i=1<<A;e[A]=-1,t&=~i}}function dC(e){if(re&6)throw Error(x(327));Xn();var t=Fa(e,0);if(!(t&1))return pt(e,Ue()),null;var A=Ya(e,t);if(e.tag!==0&&A===2){var i=_l(e);i!==0&&(t=i,A=Eg(e,i))}if(A===1)throw A=No,zi(e,0),oi(e,t),pt(e,Ue()),A;if(A===6)throw Error(x(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Li(e,dt,GA),pt(e,Ue()),null}function ru(e,t){var A=re;re|=1;try{return e(t)}finally{re=A,re===0&&(Ar=Ue()+500,Za&&Ei())}}function ji(e){ai!==null&&ai.tag===0&&!(re&6)&&Xn();var t=re;re|=1;var A=bt.transition,i=ce;try{if(bt.transition=null,ce=1,e)return e()}finally{ce=i,bt.transition=A,re=t,!(re&6)&&Ei()}}function ou(){Ut=Yn.current,pe(Yn)}function zi(e,t){e.finishedWork=null,e.finishedLanes=0;var A=e.timeoutHandle;if(A!==-1&&(e.timeoutHandle=-1,yD(A)),Ge!==null)for(A=Ge.return;A!==null;){var i=A;switch(bg(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Na();break;case 3:er(),pe(Qt),pe(At),Xg();break;case 5:Tg(i);break;case 4:er();break;case 13:pe(we);break;case 19:pe(we);break;case 10:Pg(i.type._context);break;case 22:case 23:ou()}A=A.return}if(be=e,Ge=e=di(e.current,null),Te=Ut=t,ve=0,No=null,iu=eI=Wi=0,dt=lo=null,Pi!==null){for(t=0;t<Pi.length;t++)if(A=Pi[t],i=A.interleaved,i!==null){A.interleaved=null;var n=i.next,r=A.pending;if(r!==null){var o=r.next;r.next=n,i.next=o}A.pending=i}Pi=null}return e}function Ih(e,t){do{var A=Ge;try{if(Yg(),Ba.current=Ka,qa){for(var i=Fe.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}qa=!1}if(Zi=0,Ke=Me=Fe=null,Io=!1,ko=0,Au.current=null,A===null||A.return===null){ve=1,No=t,Ge=null;break}e:{var r=e,o=A.return,s=A,a=t;if(t=Te,s.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=a,I=s,l=I.tag;if(!(I.mode&1)&&(l===0||l===11||l===15)){var g=I.alternate;g?(I.updateQueue=g.updateQueue,I.memoizedState=g.memoizedState,I.lanes=g.lanes):(I.updateQueue=null,I.memoizedState=null)}var u=iC(o);if(u!==null){u.flags&=-257,nC(u,o,s,r,t),u.mode&1&&AC(r,c,t),t=u,a=c;var f=t.updateQueue;if(f===null){var C=new Set;C.add(a),t.updateQueue=C}else f.add(a);break e}else{if(!(t&1)){AC(r,c,t),su();break e}a=Error(x(426))}}else if(me&&s.mode&1){var F=iC(o);if(F!==null){!(F.flags&65536)&&(F.flags|=256),nC(F,o,s,r,t),Og(tr(a,s));break e}}r=a=tr(a,s),ve!==4&&(ve=2),lo===null?lo=[r]:lo.push(r),r=o;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t;var d=zQ(r,a,t);Xd(r,d);break e;case 1:s=a;var B=r.type,Q=r.stateNode;if(!(r.flags&128)&&(typeof B.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(fi===null||!fi.has(Q)))){r.flags|=65536,t&=-t,r.lanes|=t;var y=_Q(r,s,t);Xd(r,y);break e}}r=r.return}while(r!==null)}gh(A)}catch(k){t=k,Ge===A&&A!==null&&(Ge=A=A.return);continue}break}while(!0)}function ch(){var e=ba.current;return ba.current=Ka,e===null?Ka:e}function su(){(ve===0||ve===3||ve===2)&&(ve=4),be===null||!(Wi&268435455)&&!(eI&268435455)||oi(be,Te)}function Ya(e,t){var A=re;re|=2;var i=ch();(be!==e||Te!==t)&&(GA=null,zi(e,t));do try{TD();break}catch(n){Ih(e,n)}while(!0);if(Yg(),re=A,ba.current=i,Ge!==null)throw Error(x(261));return be=null,Te=0,ve}function TD(){for(;Ge!==null;)lh(Ge)}function XD(){for(;Ge!==null&&!mF();)lh(Ge)}function lh(e){var t=fh(e.alternate,e,Ut);e.memoizedProps=e.pendingProps,t===null?gh(e):Ge=t,Au.current=null}function gh(e){var t=e;do{var A=t.alternate;if(e=t.return,t.flags&32768){if(A=LD(A,t),A!==null){A.flags&=32767,Ge=A;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{ve=6,Ge=null;return}}else if(A=OD(A,t,Ut),A!==null){Ge=A;return}if(t=t.sibling,t!==null){Ge=t;return}Ge=t=e}while(t!==null);ve===0&&(ve=5)}function Li(e,t,A){var i=ce,n=bt.transition;try{bt.transition=null,ce=1,ZD(e,t,A,i)}finally{bt.transition=n,ce=i}return null}function ZD(e,t,A,i){do Xn();while(ai!==null);if(re&6)throw Error(x(327));A=e.finishedWork;var n=e.finishedLanes;if(A===null)return null;if(e.finishedWork=null,e.finishedLanes=0,A===e.current)throw Error(x(177));e.callbackNode=null,e.callbackPriority=0;var r=A.lanes|A.childLanes;if(GF(e,r),e===be&&(Ge=be=null,Te=0),!(A.subtreeFlags&2064)&&!(A.flags&2064)||ca||(ca=!0,Bh(wa,function(){return Xn(),null})),r=(A.flags&15990)!==0,A.subtreeFlags&15990||r){r=bt.transition,bt.transition=null;var o=ce;ce=1;var s=re;re|=4,Au.current=null,PD(e,A),oh(A,e),QD($l),Da=!!jl,$l=jl=null,e.current=A,VD(A,e,n),yF(),re=s,ce=o,bt.transition=r}else e.current=A;if(ca&&(ca=!1,ai=e,La=n),r=e.pendingLanes,r===0&&(fi=null),DF(A.stateNode,i),pt(e,Ue()),t!==null)for(i=e.onRecoverableError,A=0;A<t.length;A++)n=t[A],i(n.value,{componentStack:n.stack,digest:n.digest});if(Oa)throw Oa=!1,e=hg,hg=null,e;return La&1&&e.tag!==0&&Xn(),r=e.pendingLanes,r&1?e===pg?go++:(go=0,pg=e):go=0,Ei(),null}function Xn(){if(ai!==null){var e=VC(La),t=bt.transition,A=ce;try{if(bt.transition=null,ce=16>e?16:e,ai===null)var i=!1;else{if(e=ai,ai=null,La=0,re&6)throw Error(x(331));var n=re;for(re|=4,R=e.current;R!==null;){var r=R,o=r.child;if(R.flags&16){var s=r.deletions;if(s!==null){for(var a=0;a<s.length;a++){var c=s[a];for(R=c;R!==null;){var I=R;switch(I.tag){case 0:case 11:case 15:co(8,I,r)}var l=I.child;if(l!==null)l.return=I,R=l;else for(;R!==null;){I=R;var g=I.sibling,u=I.return;if(ih(I),I===c){R=null;break}if(g!==null){g.return=u,R=g;break}R=u}}}var f=r.alternate;if(f!==null){var C=f.child;if(C!==null){f.child=null;do{var F=C.sibling;C.sibling=null,C=F}while(C!==null)}}R=r}}if(r.subtreeFlags&2064&&o!==null)o.return=r,R=o;else e:for(;R!==null;){if(r=R,r.flags&2048)switch(r.tag){case 0:case 11:case 15:co(9,r,r.return)}var d=r.sibling;if(d!==null){d.return=r.return,R=d;break e}R=r.return}}var B=e.current;for(R=B;R!==null;){o=R;var Q=o.child;if(o.subtreeFlags&2064&&Q!==null)Q.return=o,R=Q;else e:for(o=B;R!==null;){if(s=R,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:$a(9,s)}}catch(k){Se(s,s.return,k)}if(s===o){R=null;break e}var y=s.sibling;if(y!==null){y.return=s.return,R=y;break e}R=s.return}}if(re=n,Ei(),dA&&typeof dA.onPostCommitFiberRoot=="function")try{dA.onPostCommitFiberRoot(Va,e)}catch{}i=!0}return i}finally{ce=A,bt.transition=t}}return!1}function CC(e,t,A){t=tr(A,t),t=zQ(e,t,1),e=ui(e,t,1),t=st(),e!==null&&(xo(e,1,t),pt(e,t))}function Se(e,t,A){if(e.tag===3)CC(e,e,A);else for(;t!==null;){if(t.tag===3){CC(t,e,A);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(fi===null||!fi.has(i))){e=tr(A,e),e=_Q(t,e,1),t=ui(t,e,1),e=st(),t!==null&&(xo(t,1,e),pt(t,e));break}}t=t.return}}function WD(e,t,A){var i=e.pingCache;i!==null&&i.delete(t),t=st(),e.pingedLanes|=e.suspendedLanes&A,be===e&&(Te&A)===A&&(ve===4||ve===3&&(Te&130023424)===Te&&500>Ue()-nu?zi(e,0):iu|=A),pt(e,t)}function uh(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var A=st();e=KA(e,t),e!==null&&(xo(e,t,A),pt(e,A))}function jD(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),uh(e,A)}function $D(e,t){var A=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(A=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(x(314))}i!==null&&i.delete(t),uh(e,A)}var fh;fh=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Ct=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return Ct=!1,bD(e,t,A);Ct=!!(e.flags&131072)}else Ct=!1,me&&t.flags&1048576&&CQ(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ca(e,t),e=t.pendingProps;var n=Wn(t,At.current);Tn(t,A),n=Wg(null,t,i,e,n,A);var r=jg();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,ht(i)?(r=!0,xa(t)):r=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,zg(t),n.updater=Wa,t.stateNode=n,n._reactInternals=t,ag(t,i,e,A),t=lg(null,t,i,!0,r,A)):(t.tag=0,me&&r&&Kg(t),ot(null,t,n,A),t=t.child),t;case 16:i=t.elementType;e:{switch(Ca(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=tk(i),e=$t(i,e),n){case 0:t=cg(null,t,i,e,A);break e;case 1:t=sC(null,t,i,e,A);break e;case 11:t=rC(null,t,i,e,A);break e;case 14:t=oC(null,t,i,$t(i.type,e),A);break e}throw Error(x(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),cg(e,t,i,n,A);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),sC(e,t,i,n,A);case 3:e:{if(WQ(t),e===null)throw Error(x(387));i=t.pendingProps,r=t.memoizedState,n=r.element,EQ(e,t),Ra(t,i,null,A);var o=t.memoizedState;if(i=o.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){n=tr(Error(x(423)),t),t=aC(e,t,i,A,n);break e}else if(i!==n){n=tr(Error(x(424)),t),t=aC(e,t,i,A,n);break e}else for(Nt=gi(t.stateNode.containerInfo.firstChild),xt=t,me=!0,tA=null,A=FQ(t,null,i,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(jn(),i===n){t=bA(e,t,A);break e}ot(e,t,i,A)}t=t.child}return t;case 5:return DQ(t),e===null&&rg(t),i=t.type,n=t.pendingProps,r=e!==null?e.memoizedProps:null,o=n.children,eg(i,n)?o=null:r!==null&&eg(i,r)&&(t.flags|=32),ZQ(e,t),ot(e,t,o,A),t.child;case 6:return e===null&&rg(t),null;case 13:return jQ(e,t,A);case 4:return _g(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=$n(t,null,i,A):ot(e,t,i,A),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),rC(e,t,i,n,A);case 7:return ot(e,t,t.pendingProps,A),t.child;case 8:return ot(e,t,t.pendingProps.children,A),t.child;case 12:return ot(e,t,t.pendingProps.children,A),t.child;case 10:e:{if(i=t.type._context,n=t.pendingProps,r=t.memoizedProps,o=n.value,fe(Ma,i._currentValue),i._currentValue=o,r!==null)if(nA(r.value,o)){if(r.children===n.children&&!Qt.current){t=bA(e,t,A);break e}}else for(r=t.child,r!==null&&(r.return=t);r!==null;){var s=r.dependencies;if(s!==null){o=r.child;for(var a=s.firstContext;a!==null;){if(a.context===i){if(r.tag===1){a=RA(-1,A&-A),a.tag=2;var c=r.updateQueue;if(c!==null){c=c.shared;var I=c.pending;I===null?a.next=a:(a.next=I.next,I.next=a),c.pending=a}}r.lanes|=A,a=r.alternate,a!==null&&(a.lanes|=A),og(r.return,A,t),s.lanes|=A;break}a=a.next}}else if(r.tag===10)o=r.type===t.type?null:r.child;else if(r.tag===18){if(o=r.return,o===null)throw Error(x(341));o.lanes|=A,s=o.alternate,s!==null&&(s.lanes|=A),og(o,A,t),o=r.sibling}else o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===t){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}ot(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,Tn(t,A),n=Ot(n),i=i(n),t.flags|=1,ot(e,t,i,A),t.child;case 14:return i=t.type,n=$t(i,t.pendingProps),n=$t(i.type,n),oC(e,t,i,n,A);case 15:return TQ(e,t,t.type,t.pendingProps,A);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),Ca(e,t),t.tag=1,ht(i)?(e=!0,xa(t)):e=!1,Tn(t,A),yQ(t,i,n),ag(t,i,n,A),lg(null,t,i,!0,e,A);case 19:return $Q(e,t,A);case 22:return XQ(e,t,A)}throw Error(x(156,t.tag))};function Bh(e,t){return OC(e,t)}function ek(e,t,A,i){this.tag=e,this.key=A,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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,A,i){return new ek(e,t,A,i)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function tk(e){if(typeof e=="function")return au(e)?1:0;if(e!=null){if(e=e.$$typeof,e===kg)return 11;if(e===Sg)return 14}return 2}function di(e,t){var A=e.alternate;return A===null?(A=Kt(e.tag,t,e.key,e.mode),A.elementType=e.elementType,A.type=e.type,A.stateNode=e.stateNode,A.alternate=e,e.alternate=A):(A.pendingProps=t,A.type=e.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=e.flags&14680064,A.childLanes=e.childLanes,A.lanes=e.lanes,A.child=e.child,A.memoizedProps=e.memoizedProps,A.memoizedState=e.memoizedState,A.updateQueue=e.updateQueue,t=e.dependencies,A.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},A.sibling=e.sibling,A.index=e.index,A.ref=e.ref,A}function pa(e,t,A,i,n,r){var o=2;if(i=e,typeof e=="function")au(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hn:return _i(A.children,n,r,t);case Dg:o=8,n|=8;break;case Gl:return e=Kt(12,A,t,n|2),e.elementType=Gl,e.lanes=r,e;case Hl:return e=Kt(13,A,t,n),e.elementType=Hl,e.lanes=r,e;case Ml:return e=Kt(19,A,t,n),e.elementType=Ml,e.lanes=r,e;case wC:return tI(A,n,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case mC:o=10;break e;case yC:o=9;break e;case kg:o=11;break e;case Sg:o=14;break e;case ii:o=16,i=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Kt(o,A,t,n),t.elementType=e,t.type=i,t.lanes=r,t}function _i(e,t,A,i){return e=Kt(7,e,i,t),e.lanes=A,e}function tI(e,t,A,i){return e=Kt(22,e,i,t),e.elementType=wC,e.lanes=A,e.stateNode={isHidden:!1},e}function Ul(e,t,A){return e=Kt(6,e,null,t),e.lanes=A,e}function Nl(e,t,A){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ak(e,t,A,i,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=ul(0),this.expirationTimes=ul(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ul(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function Iu(e,t,A,i,n,r,o,s,a){return e=new Ak(e,t,A,s,a),t===1?(t=1,r===!0&&(t|=8)):t=0,r=Kt(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},zg(r),e}function ik(e,t,A){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Gn,key:i==null?null:""+i,children:e,containerInfo:t,implementation:A}}function dh(e){if(!e)return Qi;e=e._reactInternals;e:{if(en(e)!==e||e.tag!==1)throw Error(x(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ht(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(x(171))}if(e.tag===1){var A=e.type;if(ht(A))return BQ(e,A,t)}return t}function Ch(e,t,A,i,n,r,o,s,a){return e=Iu(A,i,!0,e,n,r,o,s,a),e.context=dh(null),A=e.current,i=st(),n=Bi(A),r=RA(i,n),r.callback=t??null,ui(A,r,n),e.current.lanes=n,xo(e,n,i),pt(e,i),e}function AI(e,t,A,i){var n=t.current,r=st(),o=Bi(n);return A=dh(A),t.context===null?t.context=A:t.pendingContext=A,t=RA(r,o),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=ui(n,t,o),e!==null&&(iA(e,n,o,r),fa(e,n,o)),o}function Pa(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function QC(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var A=e.retryLane;e.retryLane=A!==0&&A<t?A:t}}function cu(e,t){QC(e,t),(e=e.alternate)&&QC(e,t)}function nk(){return null}var Qh=typeof reportError=="function"?reportError:function(e){console.error(e)};function lu(e){this._internalRoot=e}iI.prototype.render=lu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(x(409));AI(e,t,null,null)};iI.prototype.unmount=lu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ji(function(){AI(null,e,null,null)}),t[qA]=null}};function iI(e){this._internalRoot=e}iI.prototype.unstable_scheduleHydration=function(e){if(e){var t=TC();e={blockedOn:null,target:e,priority:t};for(var A=0;A<ri.length&&t!==0&&t<ri[A].priority;A++);ri.splice(A,0,e),A===0&&ZC(e)}};function gu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function nI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function hC(){}function rk(e,t,A,i,n){if(n){if(typeof i=="function"){var r=i;i=function(){var c=Pa(o);r.call(c)}}var o=Ch(t,i,e,0,null,!1,!1,"",hC);return e._reactRootContainer=o,e[qA]=o.current,mo(e.nodeType===8?e.parentNode:e),ji(),o}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var c=Pa(a);s.call(c)}}var a=Iu(e,0,!1,null,null,!1,!1,"",hC);return e._reactRootContainer=a,e[qA]=a.current,mo(e.nodeType===8?e.parentNode:e),ji(function(){AI(t,a,A,i)}),a}function rI(e,t,A,i,n){var r=A._reactRootContainer;if(r){var o=r;if(typeof n=="function"){var s=n;n=function(){var a=Pa(o);s.call(a)}}AI(t,o,e,n)}else o=rk(A,t,e,n,i);return Pa(o)}zC=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var A=Ao(t.pendingLanes);A!==0&&(xg(t,A|1),pt(t,Ue()),!(re&6)&&(Ar=Ue()+500,Ei()))}break;case 13:ji(function(){var i=KA(e,1);if(i!==null){var n=st();iA(i,e,1,n)}}),cu(e,1)}};Gg=function(e){if(e.tag===13){var t=KA(e,134217728);if(t!==null){var A=st();iA(t,e,134217728,A)}cu(e,134217728)}};_C=function(e){if(e.tag===13){var t=Bi(e),A=KA(e,t);if(A!==null){var i=st();iA(A,e,t,i)}cu(e,t)}};TC=function(){return ce};XC=function(e,t){var A=ce;try{return ce=e,t()}finally{ce=A}};Pl=function(e,t,A){switch(t){case"input":if(Jl(e,A),t=A.name,A.type==="radio"&&t!=null){for(A=e;A.parentNode;)A=A.parentNode;for(A=A.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<A.length;t++){var i=A[t];if(i!==e&&i.form===e.form){var n=Xa(i);if(!n)throw Error(x(90));DC(i),Jl(i,n)}}}break;case"textarea":SC(e,A);break;case"select":t=A.value,t!=null&&Pn(e,!!A.multiple,t,!1)}};vC=ru;RC=ji;var ok={usingClientEntryPoint:!1,Events:[Ho,Jn,Xa,HC,MC,ru]},jr={findFiberByHostInstance:Yi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},sk={bundleType:jr.bundleType,version:jr.version,rendererPackageName:jr.rendererPackageName,rendererConfig:jr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:OA.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=KC(e),e===null?null:e.stateNode},findFiberByHostInstance:jr.findFiberByHostInstance||nk,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&($r=__REACT_DEVTOOLS_GLOBAL_HOOK__,!$r.isDisabled&&$r.supportsFiber))try{Va=$r.inject(sk),dA=$r}catch{}var $r;Mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ok;Mt.createPortal=function(e,t){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!gu(t))throw Error(x(200));return ik(e,t,null,A)};Mt.createRoot=function(e,t){if(!gu(e))throw Error(x(299));var A=!1,i="",n=Qh;return t!=null&&(t.unstable_strictMode===!0&&(A=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=Iu(e,1,!1,null,null,A,!1,i,n),e[qA]=t.current,mo(e.nodeType===8?e.parentNode:e),new lu(t)};Mt.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(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=KC(t),e=e===null?null:e.stateNode,e};Mt.flushSync=function(e){return ji(e)};Mt.hydrate=function(e,t,A){if(!nI(t))throw Error(x(200));return rI(null,e,t,!0,A)};Mt.hydrateRoot=function(e,t,A){if(!gu(e))throw Error(x(405));var i=A!=null&&A.hydratedSources||null,n=!1,r="",o=Qh;if(A!=null&&(A.unstable_strictMode===!0&&(n=!0),A.identifierPrefix!==void 0&&(r=A.identifierPrefix),A.onRecoverableError!==void 0&&(o=A.onRecoverableError)),t=Ch(t,null,e,1,A??null,n,!1,r,o),e[qA]=t.current,mo(e),i)for(e=0;e<i.length;e++)A=i[e],n=A._getVersion,n=n(A._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[A,n]:t.mutableSourceEagerHydrationData.push(A,n);return new iI(t)};Mt.render=function(e,t,A){if(!nI(t))throw Error(x(200));return rI(null,e,t,!1,A)};Mt.unmountComponentAtNode=function(e){if(!nI(e))throw Error(x(40));return e._reactRootContainer?(ji(function(){rI(null,null,e,!1,function(){e._reactRootContainer=null,e[qA]=null})}),!0):!1};Mt.unstable_batchedUpdates=ru;Mt.unstable_renderSubtreeIntoContainer=function(e,t,A,i){if(!nI(A))throw Error(x(200));if(e==null||e._reactInternals===void 0)throw Error(x(38));return rI(e,t,A,!1,i)};Mt.version="18.2.0-next-9e3b772b8-20220608"});var uu=Qe((FH,Eh)=>{"use strict";function ph(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ph)}catch(e){console.error(e)}}ph(),Eh.exports=hh()});var yh=Qe(fu=>{"use strict";var mh=uu();fu.createRoot=mh.createRoot,fu.hydrateRoot=mh.hydrateRoot;var DH});var Uh=Qe(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.output=It.exists=It.hash=It.bytes=It.bool=It.number=void 0;function oI(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}It.number=oI;function Fh(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}It.bool=Fh;function Ik(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Bu(e,...t){if(!Ik(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}It.bytes=Bu;function Dh(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");oI(e.outputLen),oI(e.blockLen)}It.hash=Dh;function kh(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}It.exists=kh;function Sh(e,t){Bu(e);let A=t.outputLen;if(e.length<A)throw new Error(`digestInto() expects output buffer of length at least ${A}`)}It.output=Sh;var ck={number:oI,bool:Fh,bytes:Bu,hash:Dh,exists:kh,output:Sh};It.default=ck});var Wh=Qe(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.add5L=P.add5H=P.add4H=P.add4L=P.add3H=P.add3L=P.add=P.rotlBL=P.rotlBH=P.rotlSL=P.rotlSH=P.rotr32L=P.rotr32H=P.rotrBL=P.rotrBH=P.rotrSL=P.rotrSH=P.shrSL=P.shrSH=P.toBig=P.split=P.fromBig=void 0;var sI=BigInt(2**32-1),du=BigInt(32);function Cu(e,t=!1){return t?{h:Number(e&sI),l:Number(e>>du&sI)}:{h:Number(e>>du&sI)|0,l:Number(e&sI)|0}}P.fromBig=Cu;function Nh(e,t=!1){let A=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let n=0;n<e.length;n++){let{h:r,l:o}=Cu(e[n],t);[A[n],i[n]]=[r,o]}return[A,i]}P.split=Nh;var xh=(e,t)=>BigInt(e>>>0)<<du|BigInt(t>>>0);P.toBig=xh;var Gh=(e,t,A)=>e>>>A;P.shrSH=Gh;var Hh=(e,t,A)=>e<<32-A|t>>>A;P.shrSL=Hh;var Mh=(e,t,A)=>e>>>A|t<<32-A;P.rotrSH=Mh;var vh=(e,t,A)=>e<<32-A|t>>>A;P.rotrSL=vh;var Rh=(e,t,A)=>e<<64-A|t>>>A-32;P.rotrBH=Rh;var Jh=(e,t,A)=>e>>>A-32|t<<64-A;P.rotrBL=Jh;var qh=(e,t)=>t;P.rotr32H=qh;var Kh=(e,t)=>e;P.rotr32L=Kh;var bh=(e,t,A)=>e<<A|t>>>32-A;P.rotlSH=bh;var Oh=(e,t,A)=>t<<A|e>>>32-A;P.rotlSL=Oh;var Lh=(e,t,A)=>t<<A-32|e>>>64-A;P.rotlBH=Lh;var Yh=(e,t,A)=>e<<A-32|t>>>64-A;P.rotlBL=Yh;function Ph(e,t,A,i){let n=(t>>>0)+(i>>>0);return{h:e+A+(n/2**32|0)|0,l:n|0}}P.add=Ph;var Vh=(e,t,A)=>(e>>>0)+(t>>>0)+(A>>>0);P.add3L=Vh;var zh=(e,t,A,i)=>t+A+i+(e/2**32|0)|0;P.add3H=zh;var _h=(e,t,A,i)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0);P.add4L=_h;var Th=(e,t,A,i,n)=>t+A+i+n+(e/2**32|0)|0;P.add4H=Th;var Xh=(e,t,A,i,n)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0)+(n>>>0);P.add5L=Xh;var Zh=(e,t,A,i,n,r)=>t+A+i+n+r+(e/2**32|0)|0;P.add5H=Zh;var lk={fromBig:Cu,split:Nh,toBig:xh,shrSH:Gh,shrSL:Hh,rotrSH:Mh,rotrSL:vh,rotrBH:Rh,rotrBL:Jh,rotr32H:qh,rotr32L:Kh,rotlSH:bh,rotlSL:Oh,rotlBH:Lh,rotlBL:Yh,add:Ph,add3L:Vh,add3H:zh,add4L:_h,add4H:Th,add5H:Zh,add5L:Xh};P.default=lk});var jh=Qe(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.crypto=void 0;aI.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var tp=Qe(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.randomBytes=T.wrapXOFConstructorWithOpts=T.wrapConstructorWithOpts=T.wrapConstructor=T.checkOpts=T.Hash=T.concatBytes=T.toBytes=T.utf8ToBytes=T.asyncLoop=T.nextTick=T.hexToBytes=T.bytesToHex=T.isLE=T.rotr=T.createView=T.u32=T.u8=void 0;var Qu=jh(),gk=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);T.u8=gk;var uk=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));T.u32=uk;function pu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var fk=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);T.createView=fk;var Bk=(e,t)=>e<<32-t|e>>>t;T.rotr=Bk;T.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!T.isLE)throw new Error("Non little-endian hardware is not supported");var dk=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Ck(e){if(!pu(e))throw new Error("Uint8Array expected");let t="";for(let A=0;A<e.length;A++)t+=dk[e[A]];return t}T.bytesToHex=Ck;var LA={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function $h(e){if(e>=LA._0&&e<=LA._9)return e-LA._0;if(e>=LA._A&&e<=LA._F)return e-(LA._A-10);if(e>=LA._a&&e<=LA._f)return e-(LA._a-10)}function Qk(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,A=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let i=new Uint8Array(A);for(let n=0,r=0;n<A;n++,r+=2){let o=$h(e.charCodeAt(r)),s=$h(e.charCodeAt(r+1));if(o===void 0||s===void 0){let a=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+a+'" at index '+r)}i[n]=o*16+s}return i}T.hexToBytes=Qk;var hk=async()=>{};T.nextTick=hk;async function pk(e,t,A){let i=Date.now();for(let n=0;n<e;n++){A(n);let r=Date.now()-i;r>=0&&r<t||(await(0,T.nextTick)(),i+=r)}}T.asyncLoop=pk;function ep(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}T.utf8ToBytes=ep;function II(e){if(typeof e=="string"&&(e=ep(e)),!pu(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}T.toBytes=II;function Ek(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];if(!pu(n))throw new Error("Uint8Array expected");t+=n.length}let A=new Uint8Array(t);for(let i=0,n=0;i<e.length;i++){let r=e[i];A.set(r,n),n+=r.length}return A}T.concatBytes=Ek;var hu=class{clone(){return this._cloneInto()}};T.Hash=hu;var mk={}.toString;function yk(e,t){if(t!==void 0&&mk.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}T.checkOpts=yk;function wk(e){let t=i=>e().update(II(i)).digest(),A=e();return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=()=>e(),t}T.wrapConstructor=wk;function Fk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}T.wrapConstructorWithOpts=Fk;function Dk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}T.wrapXOFConstructorWithOpts=Dk;function kk(e=32){if(Qu.crypto&&typeof Qu.crypto.getRandomValues=="function")return Qu.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}T.randomBytes=kk});var Eu=Qe(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.shake256=Be.shake128=Be.keccak_512=Be.keccak_384=Be.keccak_256=Be.keccak_224=Be.sha3_512=Be.sha3_384=Be.sha3_256=Be.sha3_224=Be.Keccak=Be.keccakP=void 0;var or=Uh(),Jo=Wh(),Ro=tp(),[np,rp,op]=[[],[],[]],Sk=BigInt(0),vo=BigInt(1),Uk=BigInt(2),Nk=BigInt(7),xk=BigInt(256),Gk=BigInt(113);for(let e=0,t=vo,A=1,i=0;e<24;e++){[A,i]=[i,(2*A+3*i)%5],np.push(2*(5*i+A)),rp.push((e+1)*(e+2)/2%64);let n=Sk;for(let r=0;r<7;r++)t=(t<<vo^(t>>Nk)*Gk)%xk,t&Uk&&(n^=vo<<(vo<<BigInt(r))-vo);op.push(n)}var[Hk,Mk]=(0,Jo.split)(op,!0),Ap=(e,t,A)=>A>32?(0,Jo.rotlBH)(e,t,A):(0,Jo.rotlSH)(e,t,A),ip=(e,t,A)=>A>32?(0,Jo.rotlBL)(e,t,A):(0,Jo.rotlSL)(e,t,A);function sp(e,t=24){let A=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let o=0;o<10;o++)A[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){let s=(o+8)%10,a=(o+2)%10,c=A[a],I=A[a+1],l=Ap(c,I,1)^A[s],g=ip(c,I,1)^A[s+1];for(let u=0;u<50;u+=10)e[o+u]^=l,e[o+u+1]^=g}let n=e[2],r=e[3];for(let o=0;o<24;o++){let s=rp[o],a=Ap(n,r,s),c=ip(n,r,s),I=np[o];n=e[I],r=e[I+1],e[I]=a,e[I+1]=c}for(let o=0;o<50;o+=10){for(let s=0;s<10;s++)A[s]=e[o+s];for(let s=0;s<10;s++)e[o+s]^=~A[(s+2)%10]&A[(s+4)%10]}e[0]^=Hk[i],e[1]^=Mk[i]}A.fill(0)}Be.keccakP=sp;var qo=class e extends Ro.Hash{constructor(t,A,i,n=!1,r=24){if(super(),this.blockLen=t,this.suffix=A,this.outputLen=i,this.enableXOF=n,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,or.number)(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,Ro.u32)(this.state)}keccak(){sp(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,or.exists)(this);let{blockLen:A,state:i}=this;t=(0,Ro.toBytes)(t);let n=t.length;for(let r=0;r<n;){let o=Math.min(A-this.pos,n-r);for(let s=0;s<o;s++)i[this.pos++]^=t[r++];this.pos===A&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:A,pos:i,blockLen:n}=this;t[i]^=A,A&128&&i===n-1&&this.keccak(),t[n-1]^=128,this.keccak()}writeInto(t){(0,or.exists)(this,!1),(0,or.bytes)(t),this.finish();let A=this.state,{blockLen:i}=this;for(let n=0,r=t.length;n<r;){this.posOut>=i&&this.keccak();let o=Math.min(i-this.posOut,r-n);t.set(A.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,or.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,or.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:A,suffix:i,outputLen:n,rounds:r,enableXOF:o}=this;return t||(t=new e(A,i,n,o,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=n,t.enableXOF=o,t.destroyed=this.destroyed,t}};Be.Keccak=qo;var yi=(e,t,A)=>(0,Ro.wrapConstructor)(()=>new qo(t,e,A));Be.sha3_224=yi(6,144,224/8);Be.sha3_256=yi(6,136,256/8);Be.sha3_384=yi(6,104,384/8);Be.sha3_512=yi(6,72,512/8);Be.keccak_224=yi(1,144,224/8);Be.keccak_256=yi(1,136,256/8);Be.keccak_384=yi(1,104,384/8);Be.keccak_512=yi(1,72,512/8);var ap=(e,t,A)=>(0,Ro.wrapXOFConstructorWithOpts)((i={})=>new qo(t,e,i.dkLen===void 0?A:i.dkLen,!0));Be.shake128=ap(31,168,128/8);Be.shake256=ap(31,136,256/8)});var dp=Qe((JH,wi)=>{var{sha3_512:vk}=Eu(),cp=24,Ko=32,mu=(e=4,t=Math.random)=>{let A="";for(;A.length<e;)A=A+Math.floor(t()*36).toString(36);return A};function lp(e){let t=8n,A=0n;for(let i of e.values()){let n=BigInt(i);A=(A<<t)+n}return A}var gp=(e="")=>lp(vk(e)).toString(36).slice(1),Ip=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Rk=e=>Ip[Math.floor(e()*Ip.length)],up=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),A=t.length?t+mu(Ko):mu(Ko);return gp(A).substring(0,Ko)},fp=e=>()=>e++,Jk=476782367,Bp=({random:e=Math.random,counter:t=fp(Math.floor(e()*Jk)),length:A=cp,fingerprint:i=up()}={})=>function(){let r=Rk(e),o=Date.now().toString(36),s=t().toString(36),a=mu(A,e),c=`${o+a+s+i}`;return`${r+gp(c).substring(1,A)}`},qk=Bp(),Kk=(e,{minLength:t=2,maxLength:A=Ko}={})=>{let i=e.length,n=/^[0-9a-z]+$/;try{if(typeof e=="string"&&i>=t&&i<=A&&n.test(e))return!0}finally{}return!1};wi.exports.getConstants=()=>({defaultLength:cp,bigLength:Ko});wi.exports.init=Bp;wi.exports.createId=qk;wi.exports.bufToBigInt=lp;wi.exports.createCounter=fp;wi.exports.createFingerprint=up;wi.exports.isCuid=Kk});var Cp=Qe((qH,bo)=>{var{createId:bk,init:Ok,getConstants:Lk,isCuid:Yk}=dp();bo.exports.createId=bk;bo.exports.init=Ok;bo.exports.getConstants=Lk;bo.exports.isCuid=Yk});var hp=Qe(wu=>{"use strict";var Pk=Symbol.for("react.fragment");wu.Fragment=Pk;wu.jsxDEV=void 0});var Ep=Qe((LH,pp)=>{"use strict";pp.exports=hp()});var yp=Qe(cI=>{"use strict";var Vk=ze(),zk=Symbol.for("react.element"),_k=Symbol.for("react.fragment"),Tk=Object.prototype.hasOwnProperty,Xk=Vk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Zk={key:!0,ref:!0,__self:!0,__source:!0};function mp(e,t,A){var i,n={},r=null,o=null;A!==void 0&&(r=""+A),t.key!==void 0&&(r=""+t.key),t.ref!==void 0&&(o=t.ref);for(i in t)Tk.call(t,i)&&!Zk.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps,t)n[i]===void 0&&(n[i]=t[i]);return{$$typeof:zk,type:e,key:r,ref:o,props:n,_owner:Xk.current}}cI.Fragment=_k;cI.jsx=mp;cI.jsxs=mp});var se=Qe((PH,wp)=>{"use strict";wp.exports=yp()});var ty=Qe((Lf,ey)=>{"use strict";var{hasOwnProperty:nc}=Object.prototype,pn=Of();pn.configure=Of;pn.stringify=pn;pn.default=pn;Lf.stringify=pn;Lf.configure=Of;ey.exports=pn;var r3=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Mi(e){return e.length<5e3&&!r3.test(e)?`"${e}"`:JSON.stringify(e)}function Kf(e){if(e.length>200)return e.sort();for(let t=1;t<e.length;t++){let A=e[t],i=t;for(;i!==0&&e[i-1]>A;)e[i]=e[i-1],i--;e[i]=A}return e}var o3=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function bf(e){return o3.call(e)!==void 0&&e.length!==0}function Wm(e,t,A){e.length<A&&(A=e.length);let i=t===","?"":" ",n=`"0":${i}${e[0]}`;for(let r=1;r<A;r++)n+=`${t}"${r}":${i}${e[r]}`;return n}function s3(e){if(nc.call(e,"circularValue")){let t=e.circularValue;if(typeof t=="string")return`"${t}"`;if(t==null)return t;if(t===Error||t===TypeError)return{toString(){throw new TypeError("Converting circular structure to JSON")}};throw new TypeError('The "circularValue" argument must be of type string or the value null or undefined')}return'"[Circular]"'}function jm(e,t){let A;if(nc.call(e,t)&&(A=e[t],typeof A!="boolean"))throw new TypeError(`The "${t}" argument must be of type boolean`);return A===void 0?!0:A}function $m(e,t){let A;if(nc.call(e,t)){if(A=e[t],typeof A!="number")throw new TypeError(`The "${t}" argument must be of type number`);if(!Number.isInteger(A))throw new TypeError(`The "${t}" argument must be an integer`);if(A<1)throw new RangeError(`The "${t}" argument must be >= 1`)}return A===void 0?1/0:A}function hn(e){return e===1?"1 item":`${e} items`}function a3(e){let t=new Set;for(let A of e)(typeof A=="string"||typeof A=="number")&&t.add(String(A));return t}function I3(e){if(nc.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return A=>{let i=`Object can not safely be stringified. Received type ${typeof A}`;throw typeof A!="function"&&(i+=` (${A.toString()})`),new Error(i)}}}function Of(e){e={...e};let t=I3(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let A=s3(e),i=jm(e,"bigint"),n=jm(e,"deterministic"),r=$m(e,"maximumDepth"),o=$m(e,"maximumBreadth");function s(g,u,f,C,F,d){let B=u[g];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(g)),B=C.call(u,g,B),typeof B){case"string":return Mi(B);case"object":{if(B===null)return"null";if(f.indexOf(B)!==-1)return A;let Q="",y=",",k=d;if(Array.isArray(B)){if(B.length===0)return"[]";if(r<f.length+1)return'"[Array]"';f.push(B),F!==""&&(d+=F,Q+=`
|
|
${d}`,y=`,
|
|
${d}`);let Z=Math.min(B.length,o),xe=0;for(;xe<Z-1;xe++){let m=s(String(xe),B,f,C,F,d);Q+=m!==void 0?m:"null",Q+=y}let Bt=s(String(xe),B,f,C,F,d);if(Q+=Bt!==void 0?Bt:"null",B.length-1>o){let m=B.length-o-1;Q+=`${y}"... ${hn(m)} not stringified"`}return F!==""&&(Q+=`
|
|
${k}`),f.pop(),`[${Q}]`}let D=Object.keys(B),S=D.length;if(S===0)return"{}";if(r<f.length+1)return'"[Object]"';let N="",b="";F!==""&&(d+=F,y=`,
|
|
${d}`,N=" ");let q=Math.min(S,o);n&&!bf(B)&&(D=Kf(D)),f.push(B);for(let Z=0;Z<q;Z++){let xe=D[Z],Bt=s(xe,B,f,C,F,d);Bt!==void 0&&(Q+=`${b}${Mi(xe)}:${N}${Bt}`,b=y)}if(S>o){let Z=S-o;Q+=`${b}"...":${N}"${hn(Z)} not stringified"`,b=y}return F!==""&&b.length>1&&(Q=`
|
|
${d}${Q}
|
|
${k}`),f.pop(),`{${Q}}`}case"number":return isFinite(B)?String(B):t?t(B):"null";case"boolean":return B===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(B);default:return t?t(B):void 0}}function a(g,u,f,C,F,d){switch(typeof u=="object"&&u!==null&&typeof u.toJSON=="function"&&(u=u.toJSON(g)),typeof u){case"string":return Mi(u);case"object":{if(u===null)return"null";if(f.indexOf(u)!==-1)return A;let B=d,Q="",y=",";if(Array.isArray(u)){if(u.length===0)return"[]";if(r<f.length+1)return'"[Array]"';f.push(u),F!==""&&(d+=F,Q+=`
|
|
${d}`,y=`,
|
|
${d}`);let S=Math.min(u.length,o),N=0;for(;N<S-1;N++){let q=a(String(N),u[N],f,C,F,d);Q+=q!==void 0?q:"null",Q+=y}let b=a(String(N),u[N],f,C,F,d);if(Q+=b!==void 0?b:"null",u.length-1>o){let q=u.length-o-1;Q+=`${y}"... ${hn(q)} not stringified"`}return F!==""&&(Q+=`
|
|
${B}`),f.pop(),`[${Q}]`}f.push(u);let k="";F!==""&&(d+=F,y=`,
|
|
${d}`,k=" ");let D="";for(let S of C){let N=a(S,u[S],f,C,F,d);N!==void 0&&(Q+=`${D}${Mi(S)}:${k}${N}`,D=y)}return F!==""&&D.length>1&&(Q=`
|
|
${d}${Q}
|
|
${B}`),f.pop(),`{${Q}}`}case"number":return isFinite(u)?String(u):t?t(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(u);default:return t?t(u):void 0}}function c(g,u,f,C,F){switch(typeof u){case"string":return Mi(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return c(g,u,f,C,F);if(u===null)return"null"}if(f.indexOf(u)!==-1)return A;let d=F;if(Array.isArray(u)){if(u.length===0)return"[]";if(r<f.length+1)return'"[Array]"';f.push(u),F+=C;let N=`
|
|
${F}`,b=`,
|
|
${F}`,q=Math.min(u.length,o),Z=0;for(;Z<q-1;Z++){let Bt=c(String(Z),u[Z],f,C,F);N+=Bt!==void 0?Bt:"null",N+=b}let xe=c(String(Z),u[Z],f,C,F);if(N+=xe!==void 0?xe:"null",u.length-1>o){let Bt=u.length-o-1;N+=`${b}"... ${hn(Bt)} not stringified"`}return N+=`
|
|
${d}`,f.pop(),`[${N}]`}let B=Object.keys(u),Q=B.length;if(Q===0)return"{}";if(r<f.length+1)return'"[Object]"';F+=C;let y=`,
|
|
${F}`,k="",D="",S=Math.min(Q,o);bf(u)&&(k+=Wm(u,y,o),B=B.slice(u.length),S-=u.length,D=y),n&&(B=Kf(B)),f.push(u);for(let N=0;N<S;N++){let b=B[N],q=c(b,u[b],f,C,F);q!==void 0&&(k+=`${D}${Mi(b)}: ${q}`,D=y)}if(Q>o){let N=Q-o;k+=`${D}"...": "${hn(N)} not stringified"`,D=y}return D!==""&&(k=`
|
|
${F}${k}
|
|
${d}`),f.pop(),`{${k}}`}case"number":return isFinite(u)?String(u):t?t(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(u);default:return t?t(u):void 0}}function I(g,u,f){switch(typeof u){case"string":return Mi(u);case"object":{if(u===null)return"null";if(typeof u.toJSON=="function"){if(u=u.toJSON(g),typeof u!="object")return I(g,u,f);if(u===null)return"null"}if(f.indexOf(u)!==-1)return A;let C="";if(Array.isArray(u)){if(u.length===0)return"[]";if(r<f.length+1)return'"[Array]"';f.push(u);let y=Math.min(u.length,o),k=0;for(;k<y-1;k++){let S=I(String(k),u[k],f);C+=S!==void 0?S:"null",C+=","}let D=I(String(k),u[k],f);if(C+=D!==void 0?D:"null",u.length-1>o){let S=u.length-o-1;C+=`,"... ${hn(S)} not stringified"`}return f.pop(),`[${C}]`}let F=Object.keys(u),d=F.length;if(d===0)return"{}";if(r<f.length+1)return'"[Object]"';let B="",Q=Math.min(d,o);bf(u)&&(C+=Wm(u,",",o),F=F.slice(u.length),Q-=u.length,B=","),n&&(F=Kf(F)),f.push(u);for(let y=0;y<Q;y++){let k=F[y],D=I(k,u[k],f);D!==void 0&&(C+=`${B}${Mi(k)}:${D}`,B=",")}if(d>o){let y=d-o;C+=`${B}"...":"${hn(y)} not stringified"`}return f.pop(),`{${C}}`}case"number":return isFinite(u)?String(u):t?t(u):"null";case"boolean":return u===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(u);default:return t?t(u):void 0}}function l(g,u,f){if(arguments.length>1){let C="";if(typeof f=="number"?C=" ".repeat(Math.min(f,10)):typeof f=="string"&&(C=f.slice(0,10)),u!=null){if(typeof u=="function")return s("",{"":g},[],u,C,"");if(Array.isArray(u))return a("",g,[],a3(u),C,"")}if(C.length!==0)return c("",g,[],C,"")}return I("",g,[])}return l}});var hy=Qe((UR,vi)=>{var{sha3_512:h3}=Eu(),uy=24,Es=32,zf=(e=4,t=Math.random)=>{let A="";for(;A.length<e;)A=A+Math.floor(t()*36).toString(36);return A};function fy(e){let t=8n,A=0n;for(let i of e.values()){let n=BigInt(i);A=(A<<t)+n}return A}var By=(e="")=>fy(h3(e)).toString(36).slice(1),gy=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),p3=e=>gy[Math.floor(e()*gy.length)],dy=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let A=Object.keys(e).toString(),i=A.length?A+zf(Es,t):zf(Es,t);return By(i).substring(0,Es)},Cy=e=>()=>e++,E3=476782367,Qy=({random:e=Math.random,counter:t=Cy(Math.floor(e()*E3)),length:A=uy,fingerprint:i=dy({random:e})}={})=>function(){let r=p3(e),o=Date.now().toString(36),s=t().toString(36),a=zf(A,e),c=`${o+a+s+i}`;return`${r+By(c).substring(1,A)}`},m3=Qy(),y3=(e,{minLength:t=2,maxLength:A=Es}={})=>{let i=e.length,n=/^[0-9a-z]+$/;try{if(typeof e=="string"&&i>=t&&i<=A&&n.test(e))return!0}finally{}return!1};vi.exports.getConstants=()=>({defaultLength:uy,bigLength:Es});vi.exports.init=Qy;vi.exports.createId=m3;vi.exports.bufToBigInt=fy;vi.exports.createCounter=Cy;vi.exports.createFingerprint=dy;vi.exports.isCuid=y3});var oc=Qe((NR,ms)=>{var{createId:w3,init:F3,getConstants:D3,isCuid:k3}=hy();ms.exports.createId=w3;ms.exports.init=F3;ms.exports.getConstants=D3;ms.exports.isCuid=k3});var kw=Qe((Iq,Dw)=>{var Nx=1/0,xx="[object Symbol]",Gx=/^\s+|\s+$/g,CB="\\ud800-\\udfff",Bw="\\u0300-\\u036f\\ufe20-\\ufe23",dw="\\u20d0-\\u20f0",Cw="\\ufe0e\\ufe0f",Hx="["+CB+"]",BB="["+Bw+dw+"]",dB="\\ud83c[\\udffb-\\udfff]",Mx="(?:"+BB+"|"+dB+")",Qw="[^"+CB+"]",hw="(?:\\ud83c[\\udde6-\\uddff]){2}",pw="[\\ud800-\\udbff][\\udc00-\\udfff]",Ew="\\u200d",mw=Mx+"?",yw="["+Cw+"]?",vx="(?:"+Ew+"(?:"+[Qw,hw,pw].join("|")+")"+yw+mw+")*",Rx=yw+mw+vx,Jx="(?:"+[Qw+BB+"?",BB,hw,pw,Hx].join("|")+")",qx=RegExp(dB+"(?="+dB+")|"+Jx+Rx,"g"),Kx=RegExp("["+Ew+CB+Bw+dw+Cw+"]"),bx=typeof global=="object"&&global&&global.Object===Object&&global,Ox=typeof self=="object"&&self&&self.Object===Object&&self,Lx=bx||Ox||Function("return this")();function Yx(e){return e.split("")}function Px(e,t,A,i){for(var n=e.length,r=A+(i?1:-1);i?r--:++r<n;)if(t(e[r],r,e))return r;return-1}function ww(e,t,A){if(t!==t)return Px(e,Vx,A);for(var i=A-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function Vx(e){return e!==e}function zx(e,t){for(var A=-1,i=e.length;++A<i&&ww(t,e[A],0)>-1;);return A}function _x(e,t){for(var A=e.length;A--&&ww(t,e[A],0)>-1;);return A}function Tx(e){return Kx.test(e)}function lw(e){return Tx(e)?Xx(e):Yx(e)}function Xx(e){return e.match(qx)||[]}var Zx=Object.prototype,Wx=Zx.toString,gw=Lx.Symbol,uw=gw?gw.prototype:void 0,fw=uw?uw.toString:void 0;function jx(e,t,A){var i=-1,n=e.length;t<0&&(t=-t>n?0:n+t),A=A>n?n:A,A<0&&(A+=n),n=t>A?0:A-t>>>0,t>>>=0;for(var r=Array(n);++i<n;)r[i]=e[i+t];return r}function Fw(e){if(typeof e=="string")return e;if(tG(e))return fw?fw.call(e):"";var t=e+"";return t=="0"&&1/e==-Nx?"-0":t}function $x(e,t,A){var i=e.length;return A=A===void 0?i:A,!t&&A>=i?e:jx(e,t,A)}function eG(e){return!!e&&typeof e=="object"}function tG(e){return typeof e=="symbol"||eG(e)&&Wx.call(e)==xx}function AG(e){return e==null?"":Fw(e)}function iG(e,t,A){if(e=AG(e),e&&(A||t===void 0))return e.replace(Gx,"");if(!e||!(t=Fw(t)))return e;var i=lw(e),n=lw(t),r=zx(i,n),o=_x(i,n)+1;return $x(i,r,o).join("")}Dw.exports=iG});var Gw=Qe((Cq,xw)=>{"use strict";function oG(e,t){for(;e.length<t;)e="0"+e;return e}function jA(e,t){var A,i,n;if(t.length===0)return e;for(A=0,n=t.length;A<n;A++)i=t.charCodeAt(A),e=(e<<5)-e+i,e|=0;return e<0?e*-2:e}function sG(e,t,A){return Object.keys(t).sort().reduce(i,e);function i(n,r){return Nw(n,t[r],r,A)}}function Nw(e,t,A,i){var n=jA(jA(jA(e,A),aG(t)),typeof t);if(t===null)return jA(n,"null");if(t===void 0)return jA(n,"undefined");if(typeof t=="object"||typeof t=="function"){if(i.indexOf(t)!==-1)return jA(n,"[Circular]"+A);i.push(t);var r=sG(n,t,i);if(!("valueOf"in t)||typeof t.valueOf!="function")return r;try{return jA(r,String(t.valueOf()))}catch(o){return jA(r,"[valueOf exception]"+(o.stack||o.message))}}return jA(n,t.toString())}function aG(e){return Object.prototype.toString.call(e)}function IG(e){return oG(Nw(0,e,"",[]).toString(16),8)}xw.exports=IG});var DB=Qe((F2,n0)=>{var CG="Expected a function",Zw="__lodash_hash_undefined__",Ww=1/0,QG="[object Function]",hG="[object GeneratorFunction]",pG="[object Symbol]",EG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mG=/^\w*$/,yG=/^\./,wG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,FG=/[\\^$.*+?()[\]{}|]/g,DG=/\\(\\)?/g,kG=/^\[object .+?Constructor\]$/,SG=typeof global=="object"&&global&&global.Object===Object&&global,UG=typeof self=="object"&&self&&self.Object===Object&&self,mB=SG||UG||Function("return this")();function NG(e,t){return e?.[t]}function xG(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var GG=Array.prototype,HG=Function.prototype,jw=Object.prototype,EB=mB["__core-js_shared__"],zw=function(){var e=/[^.]+$/.exec(EB&&EB.keys&&EB.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),$w=HG.toString,yB=jw.hasOwnProperty,e0=jw.toString,MG=RegExp("^"+$w.call(yB).replace(FG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_w=mB.Symbol,vG=GG.splice,RG=t0(mB,"Map"),Hs=t0(Object,"create"),Tw=_w?_w.prototype:void 0,Xw=Tw?Tw.toString:void 0;function Fn(e){var t=-1,A=e?e.length:0;for(this.clear();++t<A;){var i=e[t];this.set(i[0],i[1])}}function JG(){this.__data__=Hs?Hs(null):{}}function qG(e){return this.has(e)&&delete this.__data__[e]}function KG(e){var t=this.__data__;if(Hs){var A=t[e];return A===Zw?void 0:A}return yB.call(t,e)?t[e]:void 0}function bG(e){var t=this.__data__;return Hs?t[e]!==void 0:yB.call(t,e)}function OG(e,t){var A=this.__data__;return A[e]=Hs&&t===void 0?Zw:t,this}Fn.prototype.clear=JG;Fn.prototype.delete=qG;Fn.prototype.get=KG;Fn.prototype.has=bG;Fn.prototype.set=OG;function vr(e){var t=-1,A=e?e.length:0;for(this.clear();++t<A;){var i=e[t];this.set(i[0],i[1])}}function LG(){this.__data__=[]}function YG(e){var t=this.__data__,A=Hc(t,e);if(A<0)return!1;var i=t.length-1;return A==i?t.pop():vG.call(t,A,1),!0}function PG(e){var t=this.__data__,A=Hc(t,e);return A<0?void 0:t[A][1]}function VG(e){return Hc(this.__data__,e)>-1}function zG(e,t){var A=this.__data__,i=Hc(A,e);return i<0?A.push([e,t]):A[i][1]=t,this}vr.prototype.clear=LG;vr.prototype.delete=YG;vr.prototype.get=PG;vr.prototype.has=VG;vr.prototype.set=zG;function Dn(e){var t=-1,A=e?e.length:0;for(this.clear();++t<A;){var i=e[t];this.set(i[0],i[1])}}function _G(){this.__data__={hash:new Fn,map:new(RG||vr),string:new Fn}}function TG(e){return Mc(this,e).delete(e)}function XG(e){return Mc(this,e).get(e)}function ZG(e){return Mc(this,e).has(e)}function WG(e,t){return Mc(this,e).set(e,t),this}Dn.prototype.clear=_G;Dn.prototype.delete=TG;Dn.prototype.get=XG;Dn.prototype.has=ZG;Dn.prototype.set=WG;function Hc(e,t){for(var A=e.length;A--;)if(aH(e[A][0],t))return A;return-1}function jG(e,t){t=AH(t,e)?[t]:tH(t);for(var A=0,i=t.length;e!=null&&A<i;)e=e[oH(t[A++])];return A&&A==i?e:void 0}function $G(e){if(!i0(e)||nH(e))return!1;var t=IH(e)||xG(e)?MG:kG;return t.test(sH(e))}function eH(e){if(typeof e=="string")return e;if(FB(e))return Xw?Xw.call(e):"";var t=e+"";return t=="0"&&1/e==-Ww?"-0":t}function tH(e){return A0(e)?e:rH(e)}function Mc(e,t){var A=e.__data__;return iH(t)?A[typeof t=="string"?"string":"hash"]:A.map}function t0(e,t){var A=NG(e,t);return $G(A)?A:void 0}function AH(e,t){if(A0(e))return!1;var A=typeof e;return A=="number"||A=="symbol"||A=="boolean"||e==null||FB(e)?!0:mG.test(e)||!EG.test(e)||t!=null&&e in Object(t)}function iH(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function nH(e){return!!zw&&zw in e}var rH=wB(function(e){e=lH(e);var t=[];return yG.test(e)&&t.push(""),e.replace(wG,function(A,i,n,r){t.push(n?r.replace(DG,"$1"):i||A)}),t});function oH(e){if(typeof e=="string"||FB(e))return e;var t=e+"";return t=="0"&&1/e==-Ww?"-0":t}function sH(e){if(e!=null){try{return $w.call(e)}catch{}try{return e+""}catch{}}return""}function wB(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(CG);var A=function(){var i=arguments,n=t?t.apply(this,i):i[0],r=A.cache;if(r.has(n))return r.get(n);var o=e.apply(this,i);return A.cache=r.set(n,o),o};return A.cache=new(wB.Cache||Dn),A}wB.Cache=Dn;function aH(e,t){return e===t||e!==e&&t!==t}var A0=Array.isArray;function IH(e){var t=i0(e)?e0.call(e):"";return t==QG||t==hG}function i0(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function cH(e){return!!e&&typeof e=="object"}function FB(e){return typeof e=="symbol"||cH(e)&&e0.call(e)==pG}function lH(e){return e==null?"":eH(e)}function gH(e,t,A){var i=e==null?void 0:jG(e,t);return i===void 0?A:i}n0.exports=gH});var S0=Qe((vs,Yc)=>{(function(e,t){"use strict";var A="1.0.37",i="",n="?",r="function",o="undefined",s="object",a="string",c="major",I="model",l="name",g="type",u="vendor",f="version",C="architecture",F="console",d="mobile",B="tablet",Q="smarttv",y="wearable",k="embedded",D=500,S="Amazon",N="Apple",b="ASUS",q="BlackBerry",Z="Browser",xe="Chrome",Bt="Edge",m="Firefox",J="Google",M="Huawei",U="LG",G="Microsoft",z="Motorola",O="Opera",L="Samsung",ae="Sharp",ne="Sony",We="Xiaomi",Xt="Zebra",Zt="Facebook",qB="Chromium OS",KB="Mac OS",R0=function(te,Ie){var _={};for(var ge in te)Ie[ge]&&Ie[ge].length%2===0?_[ge]=Ie[ge].concat(te[ge]):_[ge]=te[ge];return _},Rs=function(te){for(var Ie={},_=0;_<te.length;_++)Ie[te[_].toUpperCase()]=te[_];return Ie},bB=function(te,Ie){return typeof te===a?br(Ie).indexOf(br(te))!==-1:!1},br=function(te){return te.toLowerCase()},J0=function(te){return typeof te===a?te.replace(/[^\d\.]/g,i).split(".")[0]:t},Vc=function(te,Ie){if(typeof te===a)return te=te.replace(/^\s\s*/,i),typeof Ie===o?te:te.substring(0,D)},Or=function(te,Ie){for(var _=0,ge,ei,cA,oe,V,lA;_<Ie.length&&!V;){var _c=Ie[_],YB=Ie[_+1];for(ge=ei=0;ge<_c.length&&!V&&_c[ge];)if(V=_c[ge++].exec(te),V)for(cA=0;cA<YB.length;cA++)lA=V[++ei],oe=YB[cA],typeof oe===s&&oe.length>0?oe.length===2?typeof oe[1]==r?this[oe[0]]=oe[1].call(this,lA):this[oe[0]]=oe[1]:oe.length===3?typeof oe[1]===r&&!(oe[1].exec&&oe[1].test)?this[oe[0]]=lA?oe[1].call(this,lA,oe[2]):t:this[oe[0]]=lA?lA.replace(oe[1],oe[2]):t:oe.length===4&&(this[oe[0]]=lA?oe[3].call(this,lA.replace(oe[1],oe[2])):t):this[oe]=lA||t;_+=2}},zc=function(te,Ie){for(var _ in Ie)if(typeof Ie[_]===s&&Ie[_].length>0){for(var ge=0;ge<Ie[_].length;ge++)if(bB(Ie[_][ge],te))return _===n?t:_}else if(bB(Ie[_],te))return _===n?t:_;return te},q0={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},OB={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},LB={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[l,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[l,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[l,f],[/opios[\/ ]+([\w\.]+)/i],[f,[l,O+" Mini"]],[/\bopr\/([\w\.]+)/i],[f,[l,O]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[l,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[l,f],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[l,"UC"+Z]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[l,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[l,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[l,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[l,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[l,"Smart Lenovo "+Z]],[/(avast|avg)\/([\w\.]+)/i],[[l,/(.+)/,"$1 Secure "+Z],f],[/\bfocus\/([\w\.]+)/i],[f,[l,m+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[l,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[l,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[l,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[l,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[l,"MIUI "+Z]],[/fxios\/([-\w\.]+)/i],[f,[l,m]],[/\bqihu|(qi?ho?o?|360)browser/i],[[l,"360 "+Z]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[l,/(.+)/,"$1 "+Z],f],[/samsungbrowser\/([\w\.]+)/i],[f,[l,L+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[l,/_/g," "],f],[/metasr[\/ ]?([\d\.]+)/i],[f,[l,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[l,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[l,f],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[l],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[l,Zt],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[l,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[l,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[f,[l,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[l,xe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[l,xe+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[l,"Android "+Z]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[l,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[l,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,l],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[l,[f,zc,q0]],[/(webkit|khtml)\/([\w\.]+)/i],[l,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[l,"Netscape"],f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[l,m+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[l,f],[/(cobalt)\/([\w\.]+)/i],[l,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[C,"amd64"]],[/(ia32(?=;))/i],[[C,br]],[/((?:i[346]|x)86)[;\)]/i],[[C,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[C,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[C,"armhf"]],[/windows (ce|mobile); ppc;/i],[[C,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[C,/ower/,i,br]],[/(sun4\w)[;\)]/i],[[C,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[C,br]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[I,[u,L],[g,B]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[I,[u,L],[g,d]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[I,[u,N],[g,d]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[I,[u,N],[g,B]],[/(macintosh);/i],[I,[u,N]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[I,[u,ae],[g,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[I,[u,M],[g,B]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[I,[u,M],[g,d]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[I,/_/g," "],[u,We],[g,d]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[I,/_/g," "],[u,We],[g,B]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[I,[u,"OPPO"],[g,d]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[I,[u,"Vivo"],[g,d]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[I,[u,"Realme"],[g,d]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[I,[u,z],[g,d]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[I,[u,z],[g,B]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[I,[u,U],[g,B]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[I,[u,U],[g,d]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[I,[u,"Lenovo"],[g,B]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[I,/_/g," "],[u,"Nokia"],[g,d]],[/(pixel c)\b/i],[I,[u,J],[g,B]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[I,[u,J],[g,d]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[I,[u,ne],[g,d]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[I,"Xperia Tablet"],[u,ne],[g,B]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[I,[u,"OnePlus"],[g,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[I,[u,S],[g,B]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[I,/(.+)/g,"Fire Phone $1"],[u,S],[g,d]],[/(playbook);[-\w\),; ]+(rim)/i],[I,u,[g,B]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[I,[u,q],[g,d]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[I,[u,b],[g,B]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[I,[u,b],[g,d]],[/(nexus 9)/i],[I,[u,"HTC"],[g,B]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[u,[I,/_/g," "],[g,d]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[I,[u,"Acer"],[g,B]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[I,[u,"Meizu"],[g,d]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[I,[u,"Ulefone"],[g,d]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[u,I,[g,d]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[u,I,[g,B]],[/(surface duo)/i],[I,[u,G],[g,B]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[I,[u,"Fairphone"],[g,d]],[/(u304aa)/i],[I,[u,"AT&T"],[g,d]],[/\bsie-(\w*)/i],[I,[u,"Siemens"],[g,d]],[/\b(rct\w+) b/i],[I,[u,"RCA"],[g,B]],[/\b(venue[\d ]{2,7}) b/i],[I,[u,"Dell"],[g,B]],[/\b(q(?:mv|ta)\w+) b/i],[I,[u,"Verizon"],[g,B]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[I,[u,"Barnes & Noble"],[g,B]],[/\b(tm\d{3}\w+) b/i],[I,[u,"NuVision"],[g,B]],[/\b(k88) b/i],[I,[u,"ZTE"],[g,B]],[/\b(nx\d{3}j) b/i],[I,[u,"ZTE"],[g,d]],[/\b(gen\d{3}) b.+49h/i],[I,[u,"Swiss"],[g,d]],[/\b(zur\d{3}) b/i],[I,[u,"Swiss"],[g,B]],[/\b((zeki)?tb.*\b) b/i],[I,[u,"Zeki"],[g,B]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[u,"Dragon Touch"],I,[g,B]],[/\b(ns-?\w{0,9}) b/i],[I,[u,"Insignia"],[g,B]],[/\b((nxa|next)-?\w{0,9}) b/i],[I,[u,"NextBook"],[g,B]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[u,"Voice"],I,[g,d]],[/\b(lvtel\-)?(v1[12]) b/i],[[u,"LvTel"],I,[g,d]],[/\b(ph-1) /i],[I,[u,"Essential"],[g,d]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[I,[u,"Envizen"],[g,B]],[/\b(trio[-\w\. ]+) b/i],[I,[u,"MachSpeed"],[g,B]],[/\btu_(1491) b/i],[I,[u,"Rotor"],[g,B]],[/(shield[\w ]+) b/i],[I,[u,"Nvidia"],[g,B]],[/(sprint) (\w+)/i],[u,I,[g,d]],[/(kin\.[onetw]{3})/i],[[I,/\./g," "],[u,G],[g,d]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[I,[u,Xt],[g,B]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[I,[u,Xt],[g,d]],[/smart-tv.+(samsung)/i],[u,[g,Q]],[/hbbtv.+maple;(\d+)/i],[[I,/^/,"SmartTV"],[u,L],[g,Q]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[u,U],[g,Q]],[/(apple) ?tv/i],[u,[I,N+" TV"],[g,Q]],[/crkey/i],[[I,xe+"cast"],[u,J],[g,Q]],[/droid.+aft(\w+)( bui|\))/i],[I,[u,S],[g,Q]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[I,[u,ae],[g,Q]],[/(bravia[\w ]+)( bui|\))/i],[I,[u,ne],[g,Q]],[/(mitv-\w{5}) bui/i],[I,[u,We],[g,Q]],[/Hbbtv.*(technisat) (.*);/i],[u,I,[g,Q]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[u,Vc],[I,Vc],[g,Q]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,Q]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[u,I,[g,F]],[/droid.+; (shield) bui/i],[I,[u,"Nvidia"],[g,F]],[/(playstation [345portablevi]+)/i],[I,[u,ne],[g,F]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[I,[u,G],[g,F]],[/((pebble))app/i],[u,I,[g,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[I,[u,N],[g,y]],[/droid.+; (glass) \d/i],[I,[u,J],[g,y]],[/droid.+; (wt63?0{2,3})\)/i],[I,[u,Xt],[g,y]],[/(quest( 2| pro)?)/i],[I,[u,Zt],[g,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[u,[g,k]],[/(aeobc)\b/i],[I,[u,S],[g,k]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[I,[g,d]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[I,[g,B]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,B]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,d]],[/(android[-\w\. ]{0,9});.+buil/i],[I,[u,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[l,Bt+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[l,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[l,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,l]],os:[[/microsoft (windows) (vista|xp)/i],[l,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[l,[f,zc,OB]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,zc,OB],[l,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[l,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[l,KB],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,l],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[l,f],[/\(bb(10);/i],[f,[l,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[l,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[l,m+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[l,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[l,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[l,xe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[l,qB],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[l,f],[/(sunos) ?([\w\.\d]*)/i],[[l,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[l,f]]},St=function(te,Ie){if(typeof te===s&&(Ie=te,te=t),!(this instanceof St))return new St(te,Ie).getResult();var _=typeof e!==o&&e.navigator?e.navigator:t,ge=te||(_&&_.userAgent?_.userAgent:i),ei=_&&_.userAgentData?_.userAgentData:t,cA=Ie?R0(LB,Ie):LB,oe=_&&_.userAgent==ge;return this.getBrowser=function(){var V={};return V[l]=t,V[f]=t,Or.call(V,ge,cA.browser),V[c]=J0(V[f]),oe&&_&&_.brave&&typeof _.brave.isBrave==r&&(V[l]="Brave"),V},this.getCPU=function(){var V={};return V[C]=t,Or.call(V,ge,cA.cpu),V},this.getDevice=function(){var V={};return V[u]=t,V[I]=t,V[g]=t,Or.call(V,ge,cA.device),oe&&!V[g]&&ei&&ei.mobile&&(V[g]=d),oe&&V[I]=="Macintosh"&&_&&typeof _.standalone!==o&&_.maxTouchPoints&&_.maxTouchPoints>2&&(V[I]="iPad",V[g]=B),V},this.getEngine=function(){var V={};return V[l]=t,V[f]=t,Or.call(V,ge,cA.engine),V},this.getOS=function(){var V={};return V[l]=t,V[f]=t,Or.call(V,ge,cA.os),oe&&!V[l]&&ei&&ei.platform!="Unknown"&&(V[l]=ei.platform.replace(/chrome os/i,qB).replace(/macos/i,KB)),V},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(V){return ge=typeof V===a&&V.length>D?Vc(V,D):V,this},this.setUA(ge),this};St.VERSION=A,St.BROWSER=Rs([l,f,c]),St.CPU=Rs([C]),St.DEVICE=Rs([I,u,g,F,d,Q,B,y,k]),St.ENGINE=St.OS=Rs([l,f]),typeof vs!==o?(typeof Yc!==o&&Yc.exports&&(vs=Yc.exports=St),vs.UAParser=St):typeof define===r&&define.amd?define(function(){return St}):typeof e!==o&&(e.UAParser=St);var Sn=typeof e!==o&&(e.jQuery||e.Zepto);if(Sn&&!Sn.ua){var Js=new St;Sn.ua=Js.getResult(),Sn.ua.get=function(){return Js.getUA()},Sn.ua.set=function(te){Js.setUA(te);var Ie=Js.getResult();for(var _ in Ie)Sn.ua[_]=Ie[_]}}})(typeof window=="object"?window:vs)});var M0=K(yh());var rr=K(ze()),mi=(e,t,A)=>{let[,i]=(0,rr.useState)({}),r=(0,rr.useRef)({data:e,deps:A||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,rr.useEffect)(()=>{r.ready=!0,t&&t({init:!0})},[]),r.ready===!1){r._loading={};for(let[o,s]of Object.entries(e))if(!r.promisedKeys.has(o)){let a=s;typeof a=="object"&&a instanceof Promise&&(r._loading[o]=!0,r.promisedKeys.add(o),r.data[o]=null,a.then(c=>{r.data[o]=c,r._loading[o]=!1,r.data.render()}))}r.data.render=()=>{r.ready&&i({})}}else if(r.deps.length>0&&A){for(let[o,s]of Object.entries(A))if(r.deps[o]!==s){r.deps[o]=s,t&&setTimeout(()=>{t({init:!1})});break}}return r.data};var wh=(e,t)=>new Promise(async A=>{if(typeof e=="function"){let i=null;if(t&&(i=setTimeout(A,t)),await e()){clearTimeout(i),A();return}let n=0,r=setInterval(async()=>{await e()&&(i&&clearTimeout(i),clearInterval(r),A()),n>100&&clearInterval(r)},10)}else typeof e=="number"&&setTimeout(()=>{A()},e)});var ak=K(ze());var Qp=K(Cp()),YA=K(ze()),yu=(0,YA.createContext)({global:{},render:()=>{}});var Fi=(e,t,A)=>{let i=window;i.globalValueID||(i.globalValueID=new WeakMap);let n=typeof t=="string"?t:A;n||(i.globalValueID.has(e)||i.globalValueID.set(e,(0,Qp.createId)()),n=i.globalValueID.get(e)||""),n||(n="GLOBAL_DEFAULT");let r=(0,YA.useContext)(yu),{global:o,render:s}=r;o[n]||(o[n]=e),(0,YA.useEffect)(()=>{let c=null;if(typeof t=="function")try{c=t()}catch(I){console.log(I)}return()=>{typeof c=="function"?c():c instanceof Promise&&c.then(I=>{typeof I=="function"&&I()})}},[]);let a=o[n];return a?a.render=c=>{c&&(o[n]=void 0),(0,YA.startTransition)(s)}:console.log(e,n),a},QA=e=>{if(e==null||typeof e!="object")return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.map(n=>QA(n));var A={};for(var i in e)typeof e[i]=="object"?A[i]=QA(e[i]):A[i]=e[i];return A};var jH=K(ze());var Fu=K(ze()),Fp=K(uu()),Dp=K(Ep()),kp=K(se()),Sp=()=>{let e=typeof window=="object"?window:globalThis;e.React=Fu.default,e.ReactDOM=Fp.default,e.JSXRuntime=kp.default,e.JSXDevRuntime=Dp.default,e.Fragment=Fu.default.Fragment};var Wk={data:""},Np=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Wk,xp=e=>{let t=Np(e),A=t.data;return t.data="",A},jk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,$k=/\/\*[^]*?\*\/| +/g,Up=/\n+/g,tn=(e,t)=>{let A="",i="",n="";for(let r in e){let o=e[r];r[0]=="@"?r[1]=="i"?A=r+" "+o+";":i+=r[1]=="f"?tn(o,r):r+"{"+tn(o,r[1]=="k"?"":t)+"}":typeof o=="object"?i+=tn(o,t?t.replace(/([^,])+/g,s=>r.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,s):s?s+" "+a:a)):r):o!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=tn.p?tn.p(r,o):r+":"+o+";")}return A+(t&&n?t+"{"+n+"}":n)+i},PA={},Gp=e=>{if(typeof e=="object"){let t="";for(let A in e)t+=A+Gp(e[A]);return t}return e},eS=(e,t,A,i,n)=>{let r=Gp(e),o=PA[r]||(PA[r]=(a=>{let c=0,I=11;for(;c<a.length;)I=101*I+a.charCodeAt(c++)>>>0;return"go"+I})(r));if(!PA[o]){let a=r!==e?e:(c=>{let I,l,g=[{}];for(;I=jk.exec(c.replace($k,""));)I[4]?g.shift():I[3]?(l=I[3].replace(Up," ").trim(),g.unshift(g[0][l]=g[0][l]||{})):g[0][I[1]]=I[2].replace(Up," ").trim();return g[0]})(e);PA[o]=tn(n?{["@keyframes "+o]:a}:a,A?"":"."+o)}let s=A&&PA.g?PA.g:null;return A&&(PA.g=PA[o]),((a,c,I,l)=>{l?c.data=c.data.replace(l,a):c.data.indexOf(a)===-1&&(c.data=I?a+c.data:c.data+a)})(PA[o],t,i,s),o},tS=(e,t,A)=>e.reduce((i,n,r)=>{let o=t[r];if(o&&o.call){let s=o(A),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=a?"."+a:s&&typeof s=="object"?s.props?"":tn(s,""):s===!1?"":s}return i+n+(o??"")},"");function lI(e){let t=this||{},A=e.call?e(t.p):e;return eS(A.unshift?A.raw?tS(A,[].slice.call(arguments,1),t.p):A.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):A,Np(t.target),t.g,t.o,t.k)}var zH=lI.bind({g:1}),_H=lI.bind({k:1});var Hp=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await wh(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let A=window.location,i=A.protocol.indexOf("http")===0?A.hostname:"localhost",n=A.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(i)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let o=new URL(t.serverurl);(o.hostname==="localhost"||o.hostname==="127.0.0.1")&&(o.hostname=A.hostname,o.pathname=o.pathname==="/"?"":o.pathname,t.serverurl=o.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let r=A.port;t.baseurl=n+"://"+i+(r?":"+r:"")+"/",t.basepath||(t.basepath="/"),t.css=lI,t.extractCss=xp,t.pathname=A.pathname,t.cx=(...o)=>{let s=[];return o.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let c of a)typeof c=="string"&&c.trim()&&s.push(c.trim());else s.push(a.trim())}),s.join(" ")},t.navigate=o=>{let s=o;if(typeof t.navigateOverride=="function"&&(s=t.navigateOverride(o),!s))return null;history.pushState({prevUrl:window.location.href},"",s),t.pathname=o,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let o=navigator.serviceWorker.controller;if(o&&o.postMessage({type:"add-cache",url:A.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=A.pathname,t.prasiContext.render())})};var G0=K(ze());var Mp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function AS(e){return typeof e=="string"&&Mp.test(e)}var Du=AS;var Oo=K(se()),ku=({children:e,back:t})=>(0,Oo.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Oo.jsx)("div",{children:e}),(0,Oo.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Rp=K(ze());var it=K(se()),vp=window,An=({children:e,className:t,show:A,backdrop:i,note:n,alt:r})=>{let o=mi({icon:(0,it.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Rp.useEffect)(()=>(o.ival=setInterval(()=>{o.value+=.1333,o.value>=1.3&&(o.value=0),o.render()},200),vp.loadingIcon&&(o.icon=(0,it.jsx)("img",{alt:"loading",src:vp.loadingIcon,className:css`
|
|
width: 42px;
|
|
height: 42px;
|
|
`}),o.render()),()=>{clearInterval(o.ival)}),[]),(0,it.jsxs)(it.Fragment,{children:[i!==!1&&(0,it.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof A<"u"?A?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:s=>{s.preventDefault()}}),e?(0,it.jsx)("div",{onContextMenuCapture:s=>{s.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(i!==!1?"w-full h-full fixed":""),typeof A<"u"?A?"":"hidden":""),children:(0,it.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,it.jsx)("div",{className:"text-sm",children:e})})}):(0,it.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 pointer-events-none transition-all",t||(i!==!1?"w-full h-full fixed":""),typeof A<"u"?A?"":"hidden":""),children:(0,it.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css`
|
|
min-width: 30px;
|
|
.pr-outer {
|
|
background: rgba(0, 0, 0, 0.1) !important;
|
|
}
|
|
`),children:[(0,it.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:n}),(0,it.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,it.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css`
|
|
transform: translate(${-100+o.value*200}%);
|
|
`)})}),r]})})]})};var ct=null;var Uu=class extends Error{constructor(t){super(t),this.name="DecompressionError"}},nn=0,Su=null,gI=null;function Jp(e,t,A){let i;if(A){let r=t;i=e.malloc_u8(r);let o=new Uint8Array(e.memory.buffer,i,r);try{A(o)}catch(s){throw e.free_u8(i,r),s}return nn=r,i}if(typeof t=="string"){let r=nn=function(s){let a=0,c=0,I=0,l=s.length;for(;a<l;)c=s.codePointAt(a),c<=127?(I+=1,a++):c<=2047?(I+=2,a++):c<=65535?(I+=3,a++):(I+=4,a+=2);return I}(t);i=e.malloc_u8(r);let o=new Uint8Array(e.memory.buffer,i,r);return Su||(Su=new TextEncoder),Su.encodeInto(t,o),i}let n=t;return i=e.malloc_u8(nn=n.length),gI&&gI.length||(gI=new Uint8Array(e.memory.buffer)),gI.set(n,i),i}function rA(e,t){qp(ct);let A=Jp(ct,e,t),i=ct.gzip_compress(A,nn)>>>0;ct.free_u8(A,nn);let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function Et(e,t){qp(ct);let A=Jp(ct,e,t),i=ct.gzip_decompress(A,nn)>>>0;if(ct.free_u8(A,nn),i===4294967295){let r=ct.error_message(),o=ct.error_message_len(),s=new Uint8Array(ct.memory.buffer,r,o),a=new TextDecoder().decode(s);throw new Uu(a)}let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function qp(e){if(!e)throw new Error("WASM not initialized")}var lt=()=>new Map,uI=e=>{let t=lt();return e.forEach((A,i)=>{t.set(i,A)}),t},hA=(e,t,A)=>{let i=e.get(t);return i===void 0&&e.set(t,i=A()),i},Kp=(e,t)=>{let A=[];for(let[i,n]of e)A.push(t(n,i));return A},bp=(e,t)=>{for(let[A,i]of e)if(t(i,A))return!0;return!1};var VA=()=>new Set;var fI=e=>e[e.length-1];var Op=(e,t)=>{for(let A=0;A<t.length;A++)e.push(t[A])},pA=Array.from;var xu=Array.isArray;var BI=class{constructor(){this._observers=lt()}on(t,A){hA(this._observers,t,VA).add(A)}once(t,A){let i=(...n)=>{this.off(t,i),A(...n)};this.on(t,i)}off(t,A){let i=this._observers.get(t);i!==void 0&&(i.delete(A),i.size===0&&this._observers.delete(t))}emit(t,A){return pA((this._observers.get(t)||lt()).values()).forEach(i=>i(...A))}destroy(){this._observers=lt()}};var Yt=Math.floor;var sr=Math.abs;var dI=(e,t)=>e<t?e:t,zA=(e,t)=>e>t?e:t,EM=Number.isNaN;var CI=e=>e!==0?e<0:1/e<0;var Hu=Number.MAX_SAFE_INTEGER,mM=Number.MIN_SAFE_INTEGER,yM=1<<31;var Lp=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Yt(e)===e),wM=Number.isNaN,FM=Number.parseInt;var iS=String.fromCharCode,DM=String.fromCodePoint,kM=iS(65535),nS=e=>e.toLowerCase(),rS=/^\s*/g,oS=e=>e.replace(rS,""),sS=/([A-Z])/g,Mu=(e,t)=>oS(e.replace(sS,A=>`${t}${nS(A)}`));var aS=e=>{let t=unescape(encodeURIComponent(e)),A=t.length,i=new Uint8Array(A);for(let n=0;n<A;n++)i[n]=t.codePointAt(n);return i},Ir=typeof TextEncoder<"u"?new TextEncoder:null,IS=e=>Ir.encode(e),Pp=Ir?IS:aS;var ar=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});ar&&ar.decode(new Uint8Array).length===1&&(ar=null);var rn=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},Po=()=>new rn;var cS=e=>{let t=e.cpos;for(let A=0;A<e.bufs.length;A++)t+=e.bufs[A].length;return t};var oA=e=>{let t=new Uint8Array(cS(e)),A=0;for(let i=0;i<e.bufs.length;i++){let n=e.bufs[i];t.set(n,A),A+=n.length}return t.set(new Uint8Array(e.cbuf.buffer,0,e.cpos),A),t},lS=(e,t)=>{let A=e.cbuf.length;A-e.cpos<t&&(e.bufs.push(new Uint8Array(e.cbuf.buffer,0,e.cpos)),e.cbuf=new Uint8Array(zA(A,t)*2),e.cpos=0)},Oe=(e,t)=>{let A=e.cbuf.length;e.cpos===A&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(A*2),e.cpos=0),e.cbuf[e.cpos++]=t};var pI=Oe;var W=(e,t)=>{for(;t>127;)Oe(e,128|127&t),t=Yt(t/128);Oe(e,127&t)},EI=(e,t)=>{let A=CI(t);for(A&&(t=-t),Oe(e,(t>63?128:0)|(A?64:0)|63&t),t=Yt(t/64);t>0;)Oe(e,(t>127?128:0)|127&t),t=Yt(t/128)},Ru=new Uint8Array(3e4),gS=Ru.length/3,uS=(e,t)=>{if(t.length<gS){let A=Ir.encodeInto(t,Ru).written||0;W(e,A);for(let i=0;i<A;i++)Oe(e,Ru[i])}else mt(e,Pp(t))},fS=(e,t)=>{let A=unescape(encodeURIComponent(t)),i=A.length;W(e,i);for(let n=0;n<i;n++)Oe(e,A.codePointAt(n))},on=Ir&&Ir.encodeInto?uS:fS;var Vo=(e,t)=>{let A=e.cbuf.length,i=e.cpos,n=dI(A-i,t.length),r=t.length-n;e.cbuf.set(t.subarray(0,n),i),e.cpos+=n,r>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(zA(A*2,r)),e.cbuf.set(t.subarray(n)),e.cpos=r)},mt=(e,t)=>{W(e,t.byteLength),Vo(e,t)},Ju=(e,t)=>{lS(e,t);let A=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,A},BS=(e,t)=>Ju(e,4).setFloat32(0,t,!1),dS=(e,t)=>Ju(e,8).setFloat64(0,t,!1),CS=(e,t)=>Ju(e,8).setBigInt64(0,t,!1);var zp=new DataView(new ArrayBuffer(4)),QS=e=>(zp.setFloat32(0,e),zp.getFloat32(0)===e),lr=(e,t)=>{switch(typeof t){case"string":Oe(e,119),on(e,t);break;case"number":Lp(t)&&sr(t)<=2147483647?(Oe(e,125),EI(e,t)):QS(t)?(Oe(e,124),BS(e,t)):(Oe(e,123),dS(e,t));break;case"bigint":Oe(e,122),CS(e,t);break;case"object":if(t===null)Oe(e,126);else if(xu(t)){Oe(e,117),W(e,t.length);for(let A=0;A<t.length;A++)lr(e,t[A])}else if(t instanceof Uint8Array)Oe(e,116),mt(e,t);else{Oe(e,118);let A=Object.keys(t);W(e,A.length);for(let i=0;i<A.length;i++){let n=A[i];on(e,n),lr(e,t[n])}}break;case"boolean":Oe(e,t?120:121);break;default:Oe(e,127)}},Yo=class extends rn{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&W(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}};var _p=e=>{e.count>0&&(EI(e.encoder,e.count===1?e.s:-e.s),e.count>1&&W(e.encoder,e.count-2))},sn=class{constructor(){this.encoder=new rn,this.s=0,this.count=0}write(t){this.s===t?this.count++:(_p(this),this.count=1,this.s=t)}toUint8Array(){return _p(this),oA(this.encoder)}};var Tp=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);EI(e.encoder,t),e.count>1&&W(e.encoder,e.count-2)}},gr=class{constructor(){this.encoder=new rn,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(Tp(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return Tp(this),oA(this.encoder)}},hI=class{constructor(){this.sarr=[],this.s="",this.lensE=new sn}write(t){this.s+=t,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(t.length)}toUint8Array(){let t=new rn;return this.sarr.push(this.s),this.s="",on(t,this.sarr.join("")),Vo(t,this.lensE.toUint8Array()),oA(t)}};var EA=e=>new Error(e),sA=()=>{throw EA("Method unimplemented")},aA=()=>{throw EA("Unexpected case")};var Zp=EA("Unexpected end of array"),Wp=EA("Integer out of Range"),ur=class{constructor(t){this.arr=t,this.pos=0}},ln=e=>new ur(e),jp=e=>e.pos!==e.arr.length;var pS=(e,t)=>{let A=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,A},yt=e=>pS(e,X(e));var an=e=>e.arr[e.pos++];var X=e=>{let t=0,A=1,i=e.arr.length;for(;e.pos<i;){let n=e.arr[e.pos++];if(t=t+(n&127)*A,A*=128,n<128)return t;if(t>Hu)throw Wp}throw Zp},yI=e=>{let t=e.arr[e.pos++],A=t&63,i=64,n=(t&64)>0?-1:1;if(!(t&128))return n*A;let r=e.arr.length;for(;e.pos<r;){if(t=e.arr[e.pos++],A=A+(t&127)*i,i*=128,t<128)return n*A;if(A>Hu)throw Wp}throw Zp};var ES=e=>{let t=X(e);if(t===0)return"";{let A=String.fromCodePoint(an(e));if(--t<100)for(;t--;)A+=String.fromCodePoint(an(e));else for(;t>0;){let i=t<1e4?t:1e4,n=e.arr.subarray(e.pos,e.pos+i);e.pos+=i,A+=String.fromCodePoint.apply(null,n),t-=i}return decodeURIComponent(escape(A))}},mS=e=>ar.decode(yt(e)),In=ar?mS:ES;var qu=(e,t)=>{let A=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,A},yS=e=>qu(e,4).getFloat32(0,!1),wS=e=>qu(e,8).getFloat64(0,!1),FS=e=>qu(e,8).getBigInt64(0,!1);var DS=[e=>{},e=>null,yI,yS,wS,FS,e=>!1,e=>!0,In,e=>{let t=X(e),A={};for(let i=0;i<t;i++){let n=In(e);A[n]=fr(e)}return A},e=>{let t=X(e),A=[];for(let i=0;i<t;i++)A.push(fr(e));return A},yt],fr=e=>DS[127-an(e)](e),zo=class extends ur{constructor(t,A){super(t),this.reader=A,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),jp(this)?this.count=X(this)+1:this.count=-1),this.count--,this.s}};var cn=class extends ur{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=yI(this);let t=CI(this.s);this.count=1,t&&(this.s=-this.s,this.count=X(this)+2)}return this.count--,this.s}};var Br=class extends ur{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let t=yI(this),A=t&1;this.diff=Yt(t/2),this.count=1,A&&(this.count=X(this)+2)}return this.s+=this.diff,this.count--,this.s}},mI=class{constructor(t){this.decoder=new cn(t),this.str=In(this.decoder),this.spos=0}read(){let t=this.spos+this.decoder.read(),A=this.str.slice(this.spos,t);return this.spos=t,A}};var NM=crypto.subtle,$p=crypto.getRandomValues.bind(crypto);var Ku=()=>$p(new Uint32Array(1))[0];var SS="10000000-1000-4000-8000"+-1e11,eE=()=>SS.replace(/[018]/g,e=>(e^Ku()&15>>e/4).toString(16));var tE=Date.now;var bu=e=>new Promise(e);var HM=Promise.all.bind(Promise);var Ou=e=>e===void 0?null:e;var Lu=class{constructor(){this.map=new Map}setItem(t,A){this.map.set(t,A)}getItem(t){return this.map.get(t)}},AE=new Lu,HS=!0;try{typeof localStorage<"u"&&localStorage&&(AE=localStorage,HS=!1)}catch{}var iE=AE;var rE=Object.assign,vS=Object.keys,oE=(e,t)=>{for(let A in e)t(e[A],A)};var nE=e=>vS(e).length;var sE=e=>{for(let t in e)return!1;return!0},RS=(e,t)=>{for(let A in e)if(!t(e[A],A))return!1;return!0},JS=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),aE=(e,t)=>e===t||nE(e)===nE(t)&&RS(e,(A,i)=>(A!==void 0||JS(t,i))&&t[i]===A);var _o=(e,t,A=0)=>{try{for(;A<e.length;A++)e[A](...t)}finally{A<e.length&&_o(e,t,A+1)}};var IE=e=>e;var cE=(e,t)=>t.includes(e);var To=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var MM=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,mA,KS=[],bS=()=>{if(mA===void 0)if(To){mA=lt();let e=process.argv,t=null;for(let A=0;A<e.length;A++){let i=e[A];i[0]==="-"?(t!==null&&mA.set(t,""),t=i):t!==null?(mA.set(t,i),t=null):KS.push(i)}t!==null&&mA.set(t,"")}else typeof location=="object"?(mA=lt(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){let[t,A]=e.split("=");mA.set(`--${Mu(t,"-")}`,A),mA.set(`-${Mu(t,"-")}`,A)}})):mA=lt();return mA},Yu=e=>bS().has(e);var Pu=e=>To?Ou(process.env[e.toUpperCase()]):Ou(iE.getItem(e));var OS=e=>Yu("--"+e)||Pu(e)!==null,vM=OS("production"),gE=To&&cE(process.env.FORCE_COLOR,["true","1","2"]),uE=!Yu("no-colors")&&(!To||process.stdout.isTTY||gE)&&(!To||Yu("color")||gE||Pu("COLORTERM")!==null||(Pu("TERM")||"").includes("color"));var YS=e=>new Uint8Array(e);var fE=e=>{let t=YS(e.byteLength);return t.set(e),t};var Vu=class{constructor(t,A){this.left=t,this.right=A}},yA=(e,t)=>new Vu(e,t);var gn=typeof document<"u"?document:{};var RM=typeof DOMParser<"u"?new DOMParser:null;var BE=e=>Kp(e,(t,A)=>`${A}:${t};`).join("");var JM=gn.ELEMENT_NODE,qM=gn.TEXT_NODE,KM=gn.CDATA_SECTION_NODE,bM=gn.COMMENT_NODE,OM=gn.DOCUMENT_NODE,LM=gn.DOCUMENT_TYPE_NODE,YM=gn.DOCUMENT_FRAGMENT_NODE;var wA=Symbol;var Xo=wA(),Zo=wA(),zu=wA(),_u=wA(),Tu=wA(),Wo=wA(),Xu=wA(),jo=wA(),Zu=wA(),dE=e=>{let t=[],A=[],i=0;for(;i<e.length;i++){let n=e[i];n.constructor===String||n.constructor===Number?t.push(n):n.constructor===Object&&A.push(JSON.stringify(n))}return A};var PM=tE();var XS={[Xo]:yA("font-weight","bold"),[Zo]:yA("font-weight","normal"),[zu]:yA("color","blue"),[Tu]:yA("color","green"),[_u]:yA("color","grey"),[Wo]:yA("color","red"),[Xu]:yA("color","purple"),[jo]:yA("color","orange"),[Zu]:yA("color","black")},ZS=e=>{let t=[],A=[],i=lt(),n=[],r=0;for(;r<e.length;r++){let o=e[r],s=XS[o];if(s!==void 0)i.set(s.left,s.right);else if(o.constructor===String||o.constructor===Number){let a=BE(i);r>0||a.length>0?(t.push("%c"+o),A.push(a)):t.push(o)}else break}for(r>0&&(n=A,n.unshift(t.join("")));r<e.length;r++){let o=e[r];o instanceof Symbol||n.push(o)}return n},WS=uE?ZS:dE,CE=(...e)=>{console.log(...WS(e)),jS.forEach(t=>t.print(e))};var jS=VA();var QE=e=>({[Symbol.iterator](){return this},next:e}),hE=(e,t)=>QE(()=>{let A;do A=e.next();while(!A.done&&!t(A.value));return A}),wI=(e,t)=>QE(()=>{let{done:A,value:i}=e.next();return{done:A,value:A?void 0:t(i)}});var es=class{constructor(t,A){this.clock=t,this.len=A}},un=class{constructor(){this.clients=new Map}},HE=(e,t,A)=>t.clients.forEach((i,n)=>{let r=e.doc.store.clients.get(n);for(let o=0;o<i.length;o++){let s=i[o];VE(e,r,s.clock,s.len,A)}}),iU=(e,t)=>{let A=0,i=e.length-1;for(;A<=i;){let n=Yt((A+i)/2),r=e[n],o=r.clock;if(o<=t){if(t<o+r.len)return n;A=n+1}else i=n-1}return null},ME=(e,t)=>{let A=e.clients.get(t.client);return A!==void 0&&iU(A,t.clock)!==null},Bf=e=>{e.clients.forEach(t=>{t.sort((n,r)=>n.clock-r.clock);let A,i;for(A=1,i=1;A<t.length;A++){let n=t[i-1],r=t[A];n.clock+n.len>=r.clock?n.len=zA(n.len,r.clock+r.len-n.clock):(i<A&&(t[i]=r),i++)}t.length=i})},nU=e=>{let t=new un;for(let A=0;A<e.length;A++)e[A].clients.forEach((i,n)=>{if(!t.clients.has(n)){let r=i.slice();for(let o=A+1;o<e.length;o++)Op(r,e[o].clients.get(n)||[]);t.clients.set(n,r)}});return Bf(t),t},NI=(e,t,A,i)=>{hA(e.clients,t,()=>[]).push(new es(A,i))},vE=()=>new un,rU=e=>{let t=vE();return e.clients.forEach((A,i)=>{let n=[];for(let r=0;r<A.length;r++){let o=A[r];if(o.deleted){let s=o.id.clock,a=o.length;if(r+1<A.length)for(let c=A[r+1];r+1<A.length&&c.deleted;c=A[++r+1])a+=c.length;n.push(new es(s,a))}}n.length>0&&t.clients.set(i,n)}),t},pr=(e,t)=>{W(e.restEncoder,t.clients.size),pA(t.clients.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{e.resetDsCurVal(),W(e.restEncoder,A);let n=i.length;W(e.restEncoder,n);for(let r=0;r<n;r++){let o=i[r];e.writeDsClock(o.clock),e.writeDsLen(o.len)}})},df=e=>{let t=new un,A=X(e.restDecoder);for(let i=0;i<A;i++){e.resetDsCurVal();let n=X(e.restDecoder),r=X(e.restDecoder);if(r>0){let o=hA(t.clients,n,()=>[]);for(let s=0;s<r;s++)o.push(new es(e.readDsClock(),e.readDsLen()))}}return t},mE=(e,t,A)=>{let i=new un,n=X(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();let o=X(e.restDecoder),s=X(e.restDecoder),a=A.clients.get(o)||[],c=Le(A,o);for(let I=0;I<s;I++){let l=e.readDsClock(),g=l+e.readDsLen();if(l<c){c<g&&NI(i,o,c,g-c);let u=FA(a,l),f=a[u];for(!f.deleted&&f.id.clock<l&&(a.splice(u+1,0,LI(t,f,l-f.id.clock)),u++);u<a.length&&(f=a[u++],f.id.clock<g);)f.deleted||(g<f.id.clock+f.length&&a.splice(u,0,LI(t,f,g-f.id.clock)),f.delete(t))}else NI(i,o,l,g-l)}}if(i.clients.size>0){let r=new _A;return W(r.restEncoder,0),pr(r,i),r.toUint8Array()}return null};var RE=Ku,ts=class e extends BI{constructor({guid:t=eE(),collectionid:A=null,gc:i=!0,gcFilter:n=()=>!0,meta:r=null,autoLoad:o=!1,shouldLoad:s=!0}={}){super(),this.gc=i,this.gcFilter=n,this.clientID=RE(),this.guid=t,this.collectionid=A,this.share=new Map,this.store=new vI,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=s,this.autoLoad=o,this.meta=r,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=bu(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});let a=()=>bu(c=>{let I=l=>{(l===void 0||l===!0)&&(this.off("sync",I),c())};this.on("sync",I)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[])}),this.whenSynced=a()}load(){let t=this._item;t!==null&&!this.shouldLoad&&de(t.parent.doc,A=>{A.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(pA(this.subdocs).map(t=>t.guid))}transact(t,A=null){return de(this,t,A)}get(t,A=Re){let i=hA(this.share,t,()=>{let r=new A;return r._integrate(this,null),r}),n=i.constructor;if(A!==Re&&n!==A)if(n===Re){let r=new A;r._map=i._map,i._map.forEach(o=>{for(;o!==null;o=o.left)o.parent=r}),r._start=i._start;for(let o=r._start;o!==null;o=o.right)o.parent=r;return r._length=i._length,this.share.set(t,r),r._integrate(this,null),r}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return i}getArray(t=""){return this.get(t,KI)}getText(t=""){return this.get(t,as)}getMap(t=""){return this.get(t,os)}getXmlFragment(t=""){return this.get(t,Qr)}toJSON(){let t={};return this.share.forEach((A,i)=>{t[i]=A.toJSON()}),t}destroy(){pA(this.subdocs).forEach(A=>A.destroy());let t=this._item;if(t!==null){this._item=null;let A=t.content;A.doc=new e({guid:this.guid,...A.opts,shouldLoad:!1}),A.doc._item=t,de(t.parent.doc,i=>{let n=A.doc;t.deleted||i.subdocsAdded.add(n),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(t,A){super.on(t,A)}off(t,A){super.off(t,A)}},xI=class{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return X(this.restDecoder)}readDsLen(){return X(this.restDecoder)}},GI=class extends xI{readLeftID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readRightID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readClient(){return X(this.restDecoder)}readInfo(){return an(this.restDecoder)}readString(){return In(this.restDecoder)}readParentInfo(){return X(this.restDecoder)===1}readTypeRef(){return X(this.restDecoder)}readLen(){return X(this.restDecoder)}readAny(){return fr(this.restDecoder)}readBuf(){return fE(yt(this.restDecoder))}readJSON(){return JSON.parse(In(this.restDecoder))}readKey(){return In(this.restDecoder)}},$u=class{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=X(this.restDecoder),this.dsCurrVal}readDsLen(){let t=X(this.restDecoder)+1;return this.dsCurrVal+=t,t}},Ni=class extends $u{constructor(t){super(t),this.keys=[],X(t),this.keyClockDecoder=new Br(yt(t)),this.clientDecoder=new cn(yt(t)),this.leftClockDecoder=new Br(yt(t)),this.rightClockDecoder=new Br(yt(t)),this.infoDecoder=new zo(yt(t),an),this.stringDecoder=new mI(yt(t)),this.parentInfoDecoder=new zo(yt(t),an),this.typeRefDecoder=new cn(yt(t)),this.lenDecoder=new cn(yt(t))}readLeftID(){return new Ui(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Ui(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return fr(this.restDecoder)}readBuf(){return yt(this.restDecoder)}readJSON(){return fr(this.restDecoder)}readKey(){let t=this.keyClockDecoder.read();if(t<this.keys.length)return this.keys[t];{let A=this.stringDecoder.read();return this.keys.push(A),A}}},HI=class{constructor(){this.restEncoder=Po()}toUint8Array(){return oA(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){W(this.restEncoder,t)}writeDsLen(t){W(this.restEncoder,t)}},fn=class extends HI{writeLeftID(t){W(this.restEncoder,t.client),W(this.restEncoder,t.clock)}writeRightID(t){W(this.restEncoder,t.client),W(this.restEncoder,t.clock)}writeClient(t){W(this.restEncoder,t)}writeInfo(t){pI(this.restEncoder,t)}writeString(t){on(this.restEncoder,t)}writeParentInfo(t){W(this.restEncoder,t?1:0)}writeTypeRef(t){W(this.restEncoder,t)}writeLen(t){W(this.restEncoder,t)}writeAny(t){lr(this.restEncoder,t)}writeBuf(t){mt(this.restEncoder,t)}writeJSON(t){on(this.restEncoder,JSON.stringify(t))}writeKey(t){on(this.restEncoder,t)}},MI=class{constructor(){this.restEncoder=Po(),this.dsCurrVal=0}toUint8Array(){return oA(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){let A=t-this.dsCurrVal;this.dsCurrVal=t,W(this.restEncoder,A)}writeDsLen(t){t===0&&aA(),W(this.restEncoder,t-1),this.dsCurrVal+=t}},_A=class extends MI{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new gr,this.clientEncoder=new sn,this.leftClockEncoder=new gr,this.rightClockEncoder=new gr,this.infoEncoder=new Yo(pI),this.stringEncoder=new hI,this.parentInfoEncoder=new Yo(pI),this.typeRefEncoder=new sn,this.lenEncoder=new sn}toUint8Array(){let t=Po();return W(t,0),mt(t,this.keyClockEncoder.toUint8Array()),mt(t,this.clientEncoder.toUint8Array()),mt(t,this.leftClockEncoder.toUint8Array()),mt(t,this.rightClockEncoder.toUint8Array()),mt(t,oA(this.infoEncoder)),mt(t,this.stringEncoder.toUint8Array()),mt(t,oA(this.parentInfoEncoder)),mt(t,this.typeRefEncoder.toUint8Array()),mt(t,this.lenEncoder.toUint8Array()),Vo(t,oA(this.restEncoder)),oA(t)}writeLeftID(t){this.clientEncoder.write(t.client),this.leftClockEncoder.write(t.clock)}writeRightID(t){this.clientEncoder.write(t.client),this.rightClockEncoder.write(t.clock)}writeClient(t){this.clientEncoder.write(t)}writeInfo(t){this.infoEncoder.write(t)}writeString(t){this.stringEncoder.write(t)}writeParentInfo(t){this.parentInfoEncoder.write(t?1:0)}writeTypeRef(t){this.typeRefEncoder.write(t)}writeLen(t){this.lenEncoder.write(t)}writeAny(t){lr(this.restEncoder,t)}writeBuf(t){mt(this.restEncoder,t)}writeJSON(t){lr(this.restEncoder,t)}writeKey(t){let A=this.keyMap.get(t);A===void 0?(this.keyClockEncoder.write(this.keyClock++),this.stringEncoder.write(t)):this.keyClockEncoder.write(A)}},oU=(e,t,A,i)=>{i=zA(i,t[0].id.clock);let n=FA(t,i);W(e.restEncoder,t.length-n),e.writeClient(A),W(e.restEncoder,i);let r=t[n];r.write(e,i-r.id.clock);for(let o=n+1;o<t.length;o++)t[o].write(e,0)},Cf=(e,t,A)=>{let i=new Map;A.forEach((n,r)=>{Le(t,r)>n&&i.set(r,n)}),YI(t).forEach((n,r)=>{A.has(r)||i.set(r,0)}),W(e.restEncoder,i.size),pA(i.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{oU(e,t.clients.get(n),n,r)})},sU=(e,t)=>{let A=lt(),i=X(e.restDecoder);for(let n=0;n<i;n++){let r=X(e.restDecoder),o=new Array(r),s=e.readClient(),a=X(e.restDecoder);A.set(s,{i:0,refs:o});for(let c=0;c<r;c++){let I=e.readInfo();switch(31&I){case 0:{let l=e.readLen();o[c]=new wt(Ae(s,a),l),a+=l;break}case 10:{let l=X(e.restDecoder);o[c]=new Ft(Ae(s,a),l),a+=l;break}default:{let l=(I&192)===0,g=new Ye(Ae(s,a),null,(I&128)===128?e.readLeftID():null,null,(I&64)===64?e.readRightID():null,l?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,l&&(I&32)===32?e.readString():null,cm(e,I));o[c]=g,a+=g.length}}}}return A},aU=(e,t,A)=>{let i=[],n=pA(A.keys()).sort((u,f)=>u-f);if(n.length===0)return null;let r=()=>{if(n.length===0)return null;let u=A.get(n[n.length-1]);for(;u.refs.length===u.i;)if(n.pop(),n.length>0)u=A.get(n[n.length-1]);else return null;return u},o=r();if(o===null)return null;let s=new vI,a=new Map,c=(u,f)=>{let C=a.get(u);(C==null||C>f)&&a.set(u,f)},I=o.refs[o.i++],l=new Map,g=()=>{for(let u of i){let f=u.id.client,C=A.get(f);C?(C.i--,s.clients.set(f,C.refs.slice(C.i)),A.delete(f),C.i=0,C.refs=[]):s.clients.set(f,[u]),n=n.filter(F=>F!==f)}i.length=0};for(;;){if(I.constructor!==Ft){let f=hA(l,I.id.client,()=>Le(t,I.id.client))-I.id.clock;if(f<0)i.push(I),c(I.id.client,I.id.clock-1),g();else{let C=I.getMissing(e,t);if(C!==null){i.push(I);let F=A.get(C)||{refs:[],i:0};if(F.refs.length===F.i)c(C,Le(t,C)),g();else{I=F.refs[F.i++];continue}}else(f===0||f<I.length)&&(I.integrate(e,f),l.set(I.id.client,I.id.clock+I.length))}}if(i.length>0)I=i.pop();else if(o!==null&&o.i<o.refs.length)I=o.refs[o.i++];else{if(o=r(),o===null)break;I=o.refs[o.i++]}}if(s.clients.size>0){let u=new _A;return Cf(u,s,new Map),W(u.restEncoder,0),{missing:a,update:u.toUint8Array()}}return null},IU=(e,t)=>Cf(e,t.doc.store,t.beforeState),cU=(e,t,A,i=new Ni(e))=>de(t,n=>{n.local=!1;let r=!1,o=n.doc,s=o.store,a=sU(i,o),c=aU(n,s,a),I=s.pendingStructs;if(I){for(let[g,u]of I.missing)if(u<Le(s,g)){r=!0;break}if(c){for(let[g,u]of c.missing){let f=I.missing.get(g);(f==null||f>u)&&I.missing.set(g,u)}I.update=RI([I.update,c.update])}}else s.pendingStructs=c;let l=mE(i,n,s);if(s.pendingDs){let g=new Ni(ln(s.pendingDs));X(g.restDecoder);let u=mE(g,n,s);l&&u?s.pendingDs=RI([l,u]):s.pendingDs=l||u}else s.pendingDs=l;if(r){let g=s.pendingStructs.update;s.pendingStructs=null,JE(n.doc,g)}},A,!1);var JE=(e,t,A,i=Ni)=>{let n=ln(t);cU(n,e,A,new i(n))},qE=(e,t,A)=>JE(e,t,A,GI),lU=(e,t,A=new Map)=>{Cf(e,t.store,A),pr(e,rU(t.store))},gU=(e,t=new Uint8Array([0]),A=new _A)=>{let i=bE(t);lU(A,e,i);let n=[A.toUint8Array()];if(e.store.pendingDs&&n.push(e.store.pendingDs),e.store.pendingStructs&&n.push(FU(e.store.pendingStructs.update,t)),n.length>1){if(A.constructor===fn)return yU(n.map((r,o)=>o===0?r:kU(r)));if(A.constructor===_A)return RI(n)}return n[0]},KE=(e,t)=>gU(e,t,new fn),uU=e=>{let t=new Map,A=X(e.restDecoder);for(let i=0;i<A;i++){let n=X(e.restDecoder),r=X(e.restDecoder);t.set(n,r)}return t},bE=e=>uU(new xI(ln(e))),OE=(e,t)=>(W(e.restEncoder,t.size),pA(t.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{W(e.restEncoder,A),W(e.restEncoder,i)}),e),fU=(e,t)=>OE(e,YI(t.store)),BU=(e,t=new MI)=>(e instanceof Map?OE(t,e):fU(t,e),t.toUint8Array()),LE=e=>BU(e,new HI),ef=class{constructor(){this.l=[]}},yE=()=>new ef,wE=(e,t)=>e.l.push(t),FE=(e,t)=>{let A=e.l,i=A.length;e.l=A.filter(n=>t!==n),i===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},YE=(e,t,A)=>_o(e.l,[t,A]),Ui=class{constructor(t,A){this.client=t,this.clock=A}},FI=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,Ae=(e,t)=>new Ui(e,t);var dU=e=>{for(let[t,A]of e.doc.share.entries())if(A===e)return t;throw aA()};var tf=class{constructor(t,A){this.ds=t,this.sv=A}};var CU=(e,t)=>new tf(e,t),iv=CU(vE(),new Map);var dr=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!ME(t.ds,e.id),Af=(e,t)=>{let A=hA(e.meta,Af,VA),i=e.doc.store;A.has(t)||(t.sv.forEach((n,r)=>{n<Le(i,r)&&xi(e,Ae(r,n))}),HE(e,t.ds,n=>{}),A.add(t))};var vI=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},YI=e=>{let t=new Map;return e.clients.forEach((A,i)=>{let n=A[A.length-1];t.set(i,n.id.clock+n.length)}),t},Le=(e,t)=>{let A=e.clients.get(t);if(A===void 0)return 0;let i=A[A.length-1];return i.id.clock+i.length},PE=(e,t)=>{let A=e.clients.get(t.id.client);if(A===void 0)A=[],e.clients.set(t.id.client,A);else{let i=A[A.length-1];if(i.id.clock+i.length!==t.id.clock)throw aA()}A.push(t)},FA=(e,t)=>{let A=0,i=e.length-1,n=e[i],r=n.id.clock;if(r===t)return i;let o=Yt(t/(r+n.length-1)*i);for(;A<=i;){if(n=e[o],r=n.id.clock,r<=t){if(t<r+n.length)return o;A=o+1}else i=o-1;o=Yt((A+i)/2)}throw aA()},QU=(e,t)=>{let A=e.clients.get(t.client);return A[FA(A,t.clock)]},Wu=QU,nf=(e,t,A)=>{let i=FA(t,A),n=t[i];return n.id.clock<A&&n instanceof Ye?(t.splice(i+1,0,LI(e,n,A-n.id.clock)),i+1):i},xi=(e,t)=>{let A=e.doc.store.clients.get(t.client);return A[nf(e,A,t.clock)]},DE=(e,t,A)=>{let i=t.clients.get(A.client),n=FA(i,A.clock),r=i[n];return A.clock!==r.id.clock+r.length-1&&r.constructor!==wt&&i.splice(n+1,0,LI(e,r,A.clock-r.id.clock+1)),r},hU=(e,t,A)=>{let i=e.clients.get(t.id.client);i[FA(i,t.id.clock)]=A},VE=(e,t,A,i,n)=>{if(i===0)return;let r=A+i,o=nf(e,t,A),s;do s=t[o++],r<s.id.clock+s.length&&nf(e,t,r),n(s);while(o<t.length&&t[o].id.clock<r)},rf=class{constructor(t,A,i){this.doc=t,this.deleteSet=new un,this.beforeState=YI(t.store),this.afterState=new Map,this.changed=new Map,this.changedParentTypes=new Map,this._mergeStructs=[],this.origin=A,this.meta=new Map,this.local=i,this.subdocsAdded=new Set,this.subdocsRemoved=new Set,this.subdocsLoaded=new Set,this._needFormattingCleanup=!1}},kE=(e,t)=>t.deleteSet.clients.size===0&&!bp(t.afterState,(A,i)=>t.beforeState.get(i)!==A)?!1:(Bf(t.deleteSet),IU(e,t),pr(e,t.deleteSet),!0),SE=(e,t,A)=>{let i=t._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&hA(e.changed,t,VA).add(A)},SI=(e,t)=>{let A=e[t],i=e[t-1],n=t;for(;n>0;A=i,i=e[--n-1]){if(i.deleted===A.deleted&&i.constructor===A.constructor&&i.mergeWith(A)){A instanceof Ye&&A.parentSub!==null&&A.parent._map.get(A.parentSub)===A&&A.parent._map.set(A.parentSub,i);continue}break}let r=t-n;return r&&e.splice(t+1-r,r),r},pU=(e,t,A)=>{for(let[i,n]of e.clients.entries()){let r=t.clients.get(i);for(let o=n.length-1;o>=0;o--){let s=n[o],a=s.clock+s.len;for(let c=FA(r,s.clock),I=r[c];c<r.length&&I.id.clock<a;I=r[++c]){let l=r[c];if(s.clock+s.len<=l.id.clock)break;l instanceof Ye&&l.deleted&&!l.keep&&A(l)&&l.gc(t,!1)}}}},EU=(e,t)=>{e.clients.forEach((A,i)=>{let n=t.clients.get(i);for(let r=A.length-1;r>=0;r--){let o=A[r],s=dI(n.length-1,1+FA(n,o.clock+o.len-1));for(let a=s,c=n[a];a>0&&c.id.clock>=o.clock;c=n[a])a-=1+SI(n,a)}})};var zE=(e,t)=>{if(t<e.length){let A=e[t],i=A.doc,n=i.store,r=A.deleteSet,o=A._mergeStructs;try{Bf(r),A.afterState=YI(A.doc.store),i.emit("beforeObserverCalls",[A,i]);let s=[];A.changed.forEach((a,c)=>s.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(A,a)})),s.push(()=>{A.changedParentTypes.forEach((a,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(a=a.filter(I=>I.target._item===null||!I.target._item.deleted),a.forEach(I=>{I.currentTarget=c,I._path=null}),a.sort((I,l)=>I.path.length-l.path.length),YE(c._dEH,a,A))})}),s.push(()=>i.emit("afterTransaction",[A,i])),_o(s,[]),A._needFormattingCleanup&&qU(A)}finally{i.gc&&pU(r,n,i.gcFilter),EU(r,n),A.afterState.forEach((I,l)=>{let g=A.beforeState.get(l)||0;if(g!==I){let u=n.clients.get(l),f=zA(FA(u,g),1);for(let C=u.length-1;C>=f;)C-=1+SI(u,C)}});for(let I=o.length-1;I>=0;I--){let{client:l,clock:g}=o[I].id,u=n.clients.get(l),f=FA(u,g);f+1<u.length&&SI(u,f+1)>1||f>0&&SI(u,f)}if(!A.local&&A.afterState.get(i.clientID)!==A.beforeState.get(i.clientID)&&(CE(jo,Xo,"[yjs] ",Zo,Wo,"Changed the client-id because another client seems to be using it."),i.clientID=RE()),i.emit("afterTransactionCleanup",[A,i]),i._observers.has("update")){let I=new fn;kE(I,A)&&i.emit("update",[I.toUint8Array(),A.origin,i,A])}if(i._observers.has("updateV2")){let I=new _A;kE(I,A)&&i.emit("updateV2",[I.toUint8Array(),A.origin,i,A])}let{subdocsAdded:s,subdocsLoaded:a,subdocsRemoved:c}=A;(s.size>0||c.size>0||a.size>0)&&(s.forEach(I=>{I.clientID=i.clientID,I.collectionid==null&&(I.collectionid=i.collectionid),i.subdocs.add(I)}),c.forEach(I=>i.subdocs.delete(I)),i.emit("subdocs",[{loaded:a,added:s,removed:c},i,A]),c.forEach(I=>I.destroy())),e.length<=t+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):zE(e,t+1)}}},de=(e,t,A=null,i=!0)=>{let n=e._transactionCleanups,r=!1,o=null;e._transaction===null&&(r=!0,e._transaction=new rf(e,A,i),n.push(e._transaction),n.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{o=t(e._transaction)}finally{if(r){let s=e._transaction===n[0];e._transaction=null,s&&zE(n,0)}}return o};function*mU(e){let t=X(e.restDecoder);for(let A=0;A<t;A++){let i=X(e.restDecoder),n=e.readClient(),r=X(e.restDecoder);for(let o=0;o<i;o++){let s=e.readInfo();if(s===10){let a=X(e.restDecoder);yield new Ft(Ae(n,r),a),r+=a}else if(31&s){let a=(s&192)===0,c=new Ye(Ae(n,r),null,(s&128)===128?e.readLeftID():null,null,(s&64)===64?e.readRightID():null,a?e.readParentInfo()?e.readString():e.readLeftID():null,a&&(s&32)===32?e.readString():null,cm(e,s));yield c,r+=c.length}else{let a=e.readLen();yield new wt(Ae(n,r),a),r+=a}}}}var As=class{constructor(t,A){this.gen=mU(t),this.curr=null,this.done=!1,this.filterSkips=A,this.next()}next(){do this.curr=this.gen.next().value||null;while(this.filterSkips&&this.curr!==null&&this.curr.constructor===Ft);return this.curr}};var is=class{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}},yU=e=>RI(e,GI,fn);var wU=(e,t)=>{if(e.constructor===wt){let{client:A,clock:i}=e.id;return new wt(Ae(A,i+t),e.length-t)}else if(e.constructor===Ft){let{client:A,clock:i}=e.id;return new Ft(Ae(A,i+t),e.length-t)}else{let A=e,{client:i,clock:n}=A.id;return new Ye(Ae(i,n+t),null,Ae(i,n+t-1),null,A.rightOrigin,A.parent,A.parentSub,A.content.splice(t))}},RI=(e,t=Ni,A=_A)=>{if(e.length===1)return e[0];let i=e.map(I=>new t(ln(I))),n=i.map(I=>new As(I,!0)),r=null,o=new A,s=new is(o);for(;n=n.filter(g=>g.curr!==null),n.sort((g,u)=>{if(g.curr.id.client===u.curr.id.client){let f=g.curr.id.clock-u.curr.id.clock;return f===0?g.curr.constructor===u.curr.constructor?0:g.curr.constructor===Ft?1:-1:f}else return u.curr.id.client-g.curr.id.client}),n.length!==0;){let I=n[0],l=I.curr.id.client;if(r!==null){let g=I.curr,u=!1;for(;g!==null&&g.id.clock+g.length<=r.struct.id.clock+r.struct.length&&g.id.client>=r.struct.id.client;)g=I.next(),u=!0;if(g===null||g.id.client!==l||u&&g.id.clock>r.struct.id.clock+r.struct.length)continue;if(l!==r.struct.id.client)ki(s,r.struct,r.offset),r={struct:g,offset:0},I.next();else if(r.struct.id.clock+r.struct.length<g.id.clock)if(r.struct.constructor===Ft)r.struct.length=g.id.clock+g.length-r.struct.id.clock;else{ki(s,r.struct,r.offset);let f=g.id.clock-r.struct.id.clock-r.struct.length;r={struct:new Ft(Ae(l,r.struct.id.clock+r.struct.length),f),offset:0}}else{let f=r.struct.id.clock+r.struct.length-g.id.clock;f>0&&(r.struct.constructor===Ft?r.struct.length-=f:g=wU(g,f)),r.struct.mergeWith(g)||(ki(s,r.struct,r.offset),r={struct:g,offset:0},I.next())}}else r={struct:I.curr,offset:0},I.next();for(let g=I.curr;g!==null&&g.id.client===l&&g.id.clock===r.struct.id.clock+r.struct.length&&g.constructor!==Ft;g=I.next())ki(s,r.struct,r.offset),r={struct:g,offset:0}}r!==null&&(ki(s,r.struct,r.offset),r=null),Qf(s);let a=i.map(I=>df(I)),c=nU(a);return pr(o,c),o.toUint8Array()},FU=(e,t,A=Ni,i=_A)=>{let n=bE(t),r=new i,o=new is(r),s=new A(ln(e)),a=new As(s,!1);for(;a.curr;){let I=a.curr,l=I.id.client,g=n.get(l)||0;if(a.curr.constructor===Ft){a.next();continue}if(I.id.clock+I.length>g)for(ki(o,I,zA(g-I.id.clock,0)),a.next();a.curr&&a.curr.id.client===l;)ki(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===l&&a.curr.id.clock+a.curr.length<=g;)a.next()}Qf(o);let c=df(s);return pr(r,c),r.toUint8Array()};var _E=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:oA(e.encoder.restEncoder)}),e.encoder.restEncoder=Po(),e.written=0)},ki=(e,t,A)=>{e.written>0&&e.currClient!==t.id.client&&_E(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),W(e.encoder.restEncoder,t.id.clock+A)),t.write(e.encoder,A),e.written++},Qf=e=>{_E(e);let t=e.encoder.restEncoder;W(t,e.clientStructs.length);for(let A=0;A<e.clientStructs.length;A++){let i=e.clientStructs[A];W(t,i.written),Vo(t,i.restEncoder)}},DU=(e,t,A,i)=>{let n=new A(ln(e)),r=new As(n,!1),o=new i,s=new is(o);for(let c=r.curr;c!==null;c=r.next())ki(s,t(c),0);Qf(s);let a=df(n);return pr(o,a),o.toUint8Array()};var kU=e=>DU(e,IE,Ni,fn),UE="You must not compute changes after the event-handler fired.",Cr=class{constructor(t,A){this.target=t,this.currentTarget=t,this.transaction=A,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=SU(this.currentTarget,this.target))}deletes(t){return ME(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(UE);let t=new Map,A=this.target;this.transaction.changed.get(A).forEach(n=>{if(n!==null){let r=A._map.get(n),o,s;if(this.adds(r)){let a=r.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(r))if(a!==null&&this.deletes(a))o="delete",s=fI(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",s=fI(a.content.getContent())):(o="add",s=void 0)}else if(this.deletes(r))o="delete",s=fI(r.content.getContent());else return;t.set(n,{action:o,oldValue:s})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(UE);let A=this.target,i=VA(),n=VA(),r=[];if(t={added:i,deleted:n,delta:r,keys:this.keys},this.transaction.changed.get(A).has(null)){let s=null,a=()=>{s&&r.push(s)};for(let c=A._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((s===null||s.delete===void 0)&&(a(),s={delete:0}),s.delete+=c.length,n.add(c)):this.adds(c)?((s===null||s.insert===void 0)&&(a(),s={insert:[]}),s.insert=s.insert.concat(c.content.getContent()),i.add(c)):((s===null||s.retain===void 0)&&(a(),s={retain:0}),s.retain+=c.length);s!==null&&s.retain===void 0&&a()}this._changes=t}return t}},SU=(e,t)=>{let A=[];for(;t._item!==null&&t!==e;){if(t._item.parentSub!==null)A.unshift(t._item.parentSub);else{let i=0,n=t._item.parent._start;for(;n!==t._item&&n!==null;)n.deleted||i++,n=n.right;A.unshift(i)}t=t._item.parent}return A},TE=80,hf=0,of=class{constructor(t,A){t.marker=!0,this.p=t,this.index=A,this.timestamp=hf++}},UU=e=>{e.timestamp=hf++},XE=(e,t,A)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=A,e.timestamp=hf++},NU=(e,t,A)=>{if(e.length>=TE){let i=e.reduce((n,r)=>n.timestamp<r.timestamp?n:r);return XE(i,t,A),i}else{let i=new of(t,A);return e.push(i),i}},PI=(e,t)=>{if(e._start===null||t===0||e._searchMarker===null)return null;let A=e._searchMarker.length===0?null:e._searchMarker.reduce((r,o)=>sr(t-r.index)<sr(t-o.index)?r:o),i=e._start,n=0;for(A!==null&&(i=A.p,n=A.index,UU(A));i.right!==null&&n<t;){if(!i.deleted&&i.countable){if(t<n+i.length)break;n+=i.length}i=i.right}for(;i.left!==null&&n>t;)i=i.left,!i.deleted&&i.countable&&(n-=i.length);for(;i.left!==null&&i.left.id.client===i.id.client&&i.left.id.clock+i.left.length===i.id.clock;)i=i.left,!i.deleted&&i.countable&&(n-=i.length);return A!==null&&sr(A.index-n)<i.parent.length/TE?(XE(A,i,n),A):NU(e._searchMarker,i,n)},ns=(e,t,A)=>{for(let i=e.length-1;i>=0;i--){let n=e[i];if(A>0){let r=n.p;for(r.marker=!1;r&&(r.deleted||!r.countable);)r=r.left,r&&!r.deleted&&r.countable&&(n.index-=r.length);if(r===null||r.marker===!0){e.splice(i,1);continue}n.p=r,r.marker=!0}(t<n.index||A>0&&t===n.index)&&(n.index=zA(t,n.index+A))}};var VI=(e,t,A)=>{let i=e,n=t.changedParentTypes;for(;hA(n,e,()=>[]).push(A),e._item!==null;)e=e._item.parent;YE(i._eH,A,t)},Re=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=yE(),this._dEH=yE(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,A){this.doc=t,this._item=A}_copy(){throw sA()}clone(){throw sA()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,A){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){wE(this._eH,t)}observeDeep(t){wE(this._dEH,t)}unobserve(t){FE(this._eH,t)}unobserveDeep(t){FE(this._dEH,t)}toJSON(){}},ZE=(e,t,A)=>{t<0&&(t=e._length+t),A<0&&(A=e._length+A);let i=A-t,n=[],r=e._start;for(;r!==null&&i>0;){if(r.countable&&!r.deleted){let o=r.content.getContent();if(o.length<=t)t-=o.length;else{for(let s=t;s<o.length&&i>0;s++)n.push(o[s]),i--;t=0}}r=r.right}return n},WE=e=>{let t=[],A=e._start;for(;A!==null;){if(A.countable&&!A.deleted){let i=A.content.getContent();for(let n=0;n<i.length;n++)t.push(i[n])}A=A.right}return t};var rs=(e,t)=>{let A=0,i=e._start;for(;i!==null;){if(i.countable&&!i.deleted){let n=i.content.getContent();for(let r=0;r<n.length;r++)t(n[r],A++,e)}i=i.right}},jE=(e,t)=>{let A=[];return rs(e,(i,n)=>{A.push(t(i,n,e))}),A},xU=e=>{let t=e._start,A=null,i=0;return{[Symbol.iterator](){return this},next:()=>{if(A===null){for(;t!==null&&t.deleted;)t=t.right;if(t===null)return{done:!0,value:void 0};A=t.content.getContent(),i=0,t=t.right}let n=A[i++];return A.length<=i&&(A=null),{done:!1,value:n}}}},$E=(e,t)=>{let A=PI(e,t),i=e._start;for(A!==null&&(i=A.p,t-=A.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(t<i.length)return i.content.getContent()[t];t-=i.length}},JI=(e,t,A,i)=>{let n=A,r=e.doc,o=r.clientID,s=r.store,a=A===null?t._start:A.right,c=[],I=()=>{c.length>0&&(n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new hr(c)),n.integrate(e,0),c=[])};i.forEach(l=>{if(l===null)c.push(l);else switch(l.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(l);break;default:switch(I(),l.constructor){case Uint8Array:case ArrayBuffer:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new cs(new Uint8Array(l))),n.integrate(e,0);break;case ts:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new ls(l)),n.integrate(e,0);break;default:if(l instanceof Re)n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new XA(l)),n.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),I()},em=()=>EA("Length exceeded!"),tm=(e,t,A,i)=>{if(A>t._length)throw em();if(A===0)return t._searchMarker&&ns(t._searchMarker,A,i.length),JI(e,t,null,i);let n=A,r=PI(t,A),o=t._start;for(r!==null&&(o=r.p,A-=r.index,A===0&&(o=o.prev,A+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(A<=o.length){A<o.length&&xi(e,Ae(o.id.client,o.id.clock+A));break}A-=o.length}return t._searchMarker&&ns(t._searchMarker,n,i.length),JI(e,t,o,i)},GU=(e,t,A)=>{let n=(t._searchMarker||[]).reduce((r,o)=>o.index>r.index?o:r,{index:0,p:t._start}).p;if(n)for(;n.right;)n=n.right;return JI(e,t,n,A)},Am=(e,t,A,i)=>{if(i===0)return;let n=A,r=i,o=PI(t,A),s=t._start;for(o!==null&&(s=o.p,A-=o.index);s!==null&&A>0;s=s.right)!s.deleted&&s.countable&&(A<s.length&&xi(e,Ae(s.id.client,s.id.clock+A)),A-=s.length);for(;i>0&&s!==null;)s.deleted||(i<s.length&&xi(e,Ae(s.id.client,s.id.clock+i)),s.delete(e),i-=s.length),s=s.right;if(i>0)throw em();t._searchMarker&&ns(t._searchMarker,n,-r+i)},qI=(e,t,A)=>{let i=t._map.get(A);i!==void 0&&i.delete(e)},pf=(e,t,A,i)=>{let n=t._map.get(A)||null,r=e.doc,o=r.clientID,s;if(i==null)s=new hr([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:s=new hr([i]);break;case Uint8Array:s=new cs(i);break;case ts:s=new ls(i);break;default:if(i instanceof Re)s=new XA(i);else throw new Error("Unexpected content type")}new Ye(Ae(o,Le(r.store,o)),n,n&&n.lastId,null,null,t,A,s).integrate(e,0)},Ef=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted?A.content.getContent()[A.length-1]:void 0},im=e=>{let t={};return e._map.forEach((A,i)=>{A.deleted||(t[i]=A.content.getContent()[A.length-1])}),t},nm=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted};var HU=(e,t)=>{let A={};return e._map.forEach((i,n)=>{let r=i;for(;r!==null&&(!t.sv.has(r.id.client)||r.id.clock>=(t.sv.get(r.id.client)||0));)r=r.left;r!==null&&dr(r,t)&&(A[n]=r.content.getContent()[r.length-1])}),A},DI=e=>hE(e.entries(),t=>!t[1].deleted),sf=class extends Cr{constructor(t,A){super(t,A),this._transaction=A}},KI=class e extends Re{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let A=new e;return A.push(t),A}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,A){super._callObserver(t,A),VI(this,t,new sf(this,t))}insert(t,A){this.doc!==null?de(this.doc,i=>{tm(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}push(t){this.doc!==null?de(this.doc,A=>{GU(A,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,A=1){this.doc!==null?de(this.doc,i=>{Am(i,this,t,A)}):this._prelimContent.splice(t,A)}get(t){return $E(this,t)}toArray(){return WE(this)}slice(t=0,A=this.length){return ZE(this,t,A)}toJSON(){return this.map(t=>t instanceof Re?t.toJSON():t)}map(t){return jE(this,t)}forEach(t){rs(this,t)}[Symbol.iterator](){return xU(this)}_write(t){t.writeTypeRef(eN)}},MU=e=>new KI,af=class extends Cr{constructor(t,A,i){super(t,A),this.keysChanged=i}},os=class e extends Re{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,A){super._integrate(t,A),this._prelimContent.forEach((i,n)=>{this.set(n,i)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((A,i)=>{t.set(i,A instanceof Re?A.clone():A)}),t}_callObserver(t,A){VI(this,t,new af(this,t,A))}toJSON(){let t={};return this._map.forEach((A,i)=>{if(!A.deleted){let n=A.content.getContent()[A.length-1];t[i]=n instanceof Re?n.toJSON():n}}),t}get size(){return[...DI(this._map)].length}keys(){return wI(DI(this._map),t=>t[0])}values(){return wI(DI(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return wI(DI(this._map),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this._map.forEach((A,i)=>{A.deleted||t(A.content.getContent()[A.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimContent.delete(t)}set(t,A){return this.doc!==null?de(this.doc,i=>{pf(i,this,t,A)}):this._prelimContent.set(t,A),A}get(t){return Ef(this,t)}has(t){return nm(this,t)}clear(){this.doc!==null?de(this.doc,t=>{this.forEach(function(A,i,n){qI(t,n,i)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(tN)}},vU=e=>new os,Si=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&aE(e,t),ss=class{constructor(t,A,i,n){this.left=t,this.right=A,this.index=i,this.currentAttributes=n}forward(){switch(this.right===null&&aA(),this.right.content.constructor){case Je:this.right.deleted||Er(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},NE=(e,t,A)=>{for(;t.right!==null&&A>0;){switch(t.right.content.constructor){case Je:t.right.deleted||Er(t.currentAttributes,t.right.content);break;default:t.right.deleted||(A<t.right.length&&xi(e,Ae(t.right.id.client,t.right.id.clock+A)),t.index+=t.right.length,A-=t.right.length);break}t.left=t.right,t.right=t.right.right}return t},kI=(e,t,A)=>{let i=new Map,n=PI(t,A);if(n){let r=new ss(n.p.left,n.p,n.index,i);return NE(e,r,A-n.index)}else{let r=new ss(null,t._start,0,i);return NE(e,r,A)}},rm=(e,t,A,i)=>{for(;A.right!==null&&(A.right.deleted===!0||A.right.content.constructor===Je&&Si(i.get(A.right.content.key),A.right.content.value));)A.right.deleted||i.delete(A.right.content.key),A.forward();let n=e.doc,r=n.clientID;i.forEach((o,s)=>{let a=A.left,c=A.right,I=new Ye(Ae(r,Le(n.store,r)),a,a&&a.lastId,c,c&&c.id,t,null,new Je(s,o));I.integrate(e,0),A.right=I,A.forward()})},Er=(e,t)=>{let{key:A,value:i}=t;i===null?e.delete(A):e.set(A,i)},om=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===Je&&Si(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},sm=(e,t,A,i)=>{let n=e.doc,r=n.clientID,o=new Map;for(let s in i){let a=i[s],c=A.currentAttributes.get(s)||null;if(!Si(c,a)){o.set(s,c);let{left:I,right:l}=A;A.right=new Ye(Ae(r,Le(n.store,r)),I,I&&I.lastId,l,l&&l.id,t,null,new Je(s,a)),A.right.integrate(e,0),A.forward()}}return o},ju=(e,t,A,i,n)=>{A.currentAttributes.forEach((g,u)=>{n[u]===void 0&&(n[u]=null)});let r=e.doc,o=r.clientID;om(A,n);let s=sm(e,t,A,n),a=i.constructor===String?new TA(i):i instanceof Re?new XA(i):new Bn(i),{left:c,right:I,index:l}=A;t._searchMarker&&ns(t._searchMarker,A.index,a.getLength()),I=new Ye(Ae(o,Le(r.store,o)),c,c&&c.lastId,I,I&&I.id,t,null,a),I.integrate(e,0),A.right=I,A.index=l,A.forward(),rm(e,t,A,s)},xE=(e,t,A,i,n)=>{let r=e.doc,o=r.clientID;om(A,n);let s=sm(e,t,A,n);e:for(;A.right!==null&&(i>0||s.size>0&&(A.right.deleted||A.right.content.constructor===Je));){if(!A.right.deleted)switch(A.right.content.constructor){case Je:{let{key:a,value:c}=A.right.content,I=n[a];if(I!==void 0){if(Si(I,c))s.delete(a);else{if(i===0)break e;s.set(a,c)}A.right.delete(e)}else A.currentAttributes.set(a,c);break}default:i<A.right.length&&xi(e,Ae(A.right.id.client,A.right.id.clock+i)),i-=A.right.length;break}A.forward()}if(i>0){let a="";for(;i>0;i--)a+=`
|
|
`;A.right=new Ye(Ae(o,Le(r.store,o)),A.left,A.left&&A.left.lastId,A.right,A.right&&A.right.id,t,null,new TA(a)),A.right.integrate(e,0),A.forward()}rm(e,t,A,s)},am=(e,t,A,i,n)=>{let r=t,o=lt();for(;r&&(!r.countable||r.deleted);){if(!r.deleted&&r.content.constructor===Je){let c=r.content;o.set(c.key,c)}r=r.right}let s=0,a=!1;for(;t!==r;){if(A===t&&(a=!0),!t.deleted){let c=t.content;switch(c.constructor){case Je:{let{key:I,value:l}=c,g=i.get(I)||null;(o.get(I)!==c||g===l)&&(t.delete(e),s++,!a&&(n.get(I)||null)===l&&g!==l&&(g===null?n.delete(I):n.set(I,g))),!a&&!t.deleted&&Er(n,c);break}}}t=t.right}return s},RU=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let A=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Je){let i=t.content.key;A.has(i)?t.delete(e):A.add(i)}t=t.left}},JU=e=>{let t=0;return de(e.doc,A=>{let i=e._start,n=e._start,r=lt(),o=uI(r);for(;n;){if(n.deleted===!1)switch(n.content.constructor){case Je:Er(o,n.content);break;default:t+=am(A,i,n,r,o),r=uI(o),i=n;break}n=n.right}}),t},qU=e=>{let t=new Set,A=e.doc;for(let[i,n]of e.afterState.entries()){let r=e.beforeState.get(i)||0;n!==r&&VE(e,A.store.clients.get(i),r,n,o=>{!o.deleted&&o.content.constructor===Je&&o.constructor!==wt&&t.add(o.parent)})}de(A,i=>{HE(e,e.deleteSet,n=>{if(n instanceof wt||!n.parent._hasFormatting||t.has(n.parent))return;let r=n.parent;n.content.constructor===Je?t.add(r):RU(i,n)});for(let n of t)JU(n)})},GE=(e,t,A)=>{let i=A,n=uI(t.currentAttributes),r=t.right;for(;A>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case XA:case Bn:case TA:A<t.right.length&&xi(e,Ae(t.right.id.client,t.right.id.clock+A)),A-=t.right.length,t.right.delete(e);break}t.forward()}r&&am(e,r,t.right,n,t.currentAttributes);let o=(t.left||t.right).parent;return o._searchMarker&&ns(o._searchMarker,t.index,-i+A),t},If=class extends Cr{constructor(t,A,i){super(t,A),this.childListChanged=!1,this.keysChanged=new Set,i.forEach(n=>{n===null?this.childListChanged=!0:this.keysChanged.add(n)})}get changes(){if(this._changes===null){let t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){let t=this.target.doc,A=[];de(t,i=>{let n=new Map,r=new Map,o=this.target._start,s=null,a={},c="",I=0,l=0,g=()=>{if(s!==null){let u=null;switch(s){case"delete":l>0&&(u={delete:l}),l=0;break;case"insert":(typeof c=="object"||c.length>0)&&(u={insert:c},n.size>0&&(u.attributes={},n.forEach((f,C)=>{f!==null&&(u.attributes[C]=f)}))),c="";break;case"retain":I>0&&(u={retain:I},sE(a)||(u.attributes=rE({},a))),I=0;break}u&&A.push(u),s=null}};for(;o!==null;){switch(o.content.constructor){case XA:case Bn:this.adds(o)?this.deletes(o)||(g(),s="insert",c=o.content.getContent()[0],g()):this.deletes(o)?(s!=="delete"&&(g(),s="delete"),l+=1):o.deleted||(s!=="retain"&&(g(),s="retain"),I+=1);break;case TA:this.adds(o)?this.deletes(o)||(s!=="insert"&&(g(),s="insert"),c+=o.content.str):this.deletes(o)?(s!=="delete"&&(g(),s="delete"),l+=o.length):o.deleted||(s!=="retain"&&(g(),s="retain"),I+=o.length);break;case Je:{let{key:u,value:f}=o.content;if(this.adds(o)){if(!this.deletes(o)){let C=n.get(u)||null;Si(C,f)?f!==null&&o.delete(i):(s==="retain"&&g(),Si(f,r.get(u)||null)?delete a[u]:a[u]=f)}}else if(this.deletes(o)){r.set(u,f);let C=n.get(u)||null;Si(C,f)||(s==="retain"&&g(),a[u]=C)}else if(!o.deleted){r.set(u,f);let C=a[u];C!==void 0&&(Si(C,f)?C!==null&&o.delete(i):(s==="retain"&&g(),f===null?delete a[u]:a[u]=f))}o.deleted||(s==="insert"&&g(),Er(n,o.content));break}}o=o.right}for(g();A.length>0;){let u=A[A.length-1];if(u.retain!==void 0&&u.attributes===void 0)A.pop();else break}}),this._delta=A}return this._delta}},as=class e extends Re{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,A){super._integrate(t,A);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(t,A){super._callObserver(t,A);let i=new If(this,t,A);VI(this,t,i),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",A=this._start;for(;A!==null;)!A.deleted&&A.countable&&A.content.constructor===TA&&(t+=A.content.str),A=A.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:A=!0}={}){this.doc!==null?de(this.doc,i=>{let n=new ss(null,this._start,0,new Map);for(let r=0;r<t.length;r++){let o=t[r];if(o.insert!==void 0){let s=!A&&typeof o.insert=="string"&&r===t.length-1&&n.right===null&&o.insert.slice(-1)===`
|
|
`?o.insert.slice(0,-1):o.insert;(typeof s!="string"||s.length>0)&&ju(i,this,n,s,o.attributes||{})}else o.retain!==void 0?xE(i,this,n,o.retain,o.attributes||{}):o.delete!==void 0&&GE(i,n,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,A,i){let n=[],r=new Map,o=this.doc,s="",a=this._start;function c(){if(s.length>0){let l={},g=!1;r.forEach((f,C)=>{g=!0,l[C]=f});let u={insert:s};g&&(u.attributes=l),n.push(u),s=""}}let I=()=>{for(;a!==null;){if(dr(a,t)||A!==void 0&&dr(a,A))switch(a.content.constructor){case TA:{let l=r.get("ychange");t!==void 0&&!dr(a,t)?(l===void 0||l.user!==a.id.client||l.type!=="removed")&&(c(),r.set("ychange",i?i("removed",a.id):{type:"removed"})):A!==void 0&&!dr(a,A)?(l===void 0||l.user!==a.id.client||l.type!=="added")&&(c(),r.set("ychange",i?i("added",a.id):{type:"added"})):l!==void 0&&(c(),r.delete("ychange")),s+=a.content.str;break}case XA:case Bn:{c();let l={insert:a.content.getContent()[0]};if(r.size>0){let g={};l.attributes=g,r.forEach((u,f)=>{g[f]=u})}n.push(l);break}case Je:dr(a,t)&&(c(),Er(r,a.content));break}a=a.right}c()};return t||A?de(o,l=>{t&&Af(l,t),A&&Af(l,A),I()},"cleanup"):I(),n}insert(t,A,i){if(A.length<=0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);i||(i={},o.currentAttributes.forEach((s,a)=>{i[a]=s})),ju(r,this,o,A,i)}):this._pending.push(()=>this.insert(t,A,i))}insertEmbed(t,A,i={}){let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);ju(r,this,o,A,i)}):this._pending.push(()=>this.insertEmbed(t,A,i))}delete(t,A){if(A===0)return;let i=this.doc;i!==null?de(i,n=>{GE(n,kI(n,this,t),A)}):this._pending.push(()=>this.delete(t,A))}format(t,A,i){if(A===0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);o.right!==null&&xE(r,this,o,A,i)}):this._pending.push(()=>this.format(t,A,i))}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{pf(i,this,t,A)}):this._pending.push(()=>this.setAttribute(t,A))}getAttribute(t){return Ef(this,t)}getAttributes(){return im(this)}_write(t){t.writeTypeRef(AN)}},KU=e=>new as,$o=class{constructor(t,A=()=>!0){this._filter=A,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,A=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(A)))do if(A=t.content.type,!t.deleted&&(A.constructor===bI||A.constructor===Qr)&&A._start!==null)t=A._start;else for(;t!==null;)if(t.right!==null){t=t.right;break}else t.parent===this._root?t=null:t=t.parent._item;while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}},Qr=class e extends Re{constructor(){super(),this._prelimContent=[]}get firstChild(){let t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new $o(this,t)}querySelector(t){t=t.toUpperCase();let i=new $o(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t).next();return i.done?null:i.value}querySelectorAll(t){return t=t.toUpperCase(),pA(new $o(this,A=>A.nodeName&&A.nodeName.toUpperCase()===t))}_callObserver(t,A){VI(this,t,new cf(this,A,t))}toString(){return jE(this,t=>t.toString()).join("")}toJSON(){return this.toString()}toDOM(t=document,A={},i){let n=t.createDocumentFragment();return i!==void 0&&i._createAssociation(n,this),rs(this,r=>{n.insertBefore(r.toDOM(t,A,i),null)}),n}insert(t,A){this.doc!==null?de(this.doc,i=>{tm(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}insertAfter(t,A){if(this.doc!==null)de(this.doc,i=>{let n=t&&t instanceof Re?t._item:t;JI(i,this,n,A)});else{let i=this._prelimContent,n=t===null?0:i.findIndex(r=>r===t)+1;if(n===0&&t!==null)throw EA("Reference item not found");i.splice(n,0,...A)}}delete(t,A=1){this.doc!==null?de(this.doc,i=>{Am(i,this,t,A)}):this._prelimContent.splice(t,A)}toArray(){return WE(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return $E(this,t)}slice(t=0,A=this.length){return ZE(this,t,A)}forEach(t){rs(this,t)}_write(t){t.writeTypeRef(nN)}},bU=e=>new Qr,bI=class e extends Qr{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){let t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){let t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,A){super._integrate(t,A),this._prelimAttrs.forEach((i,n)=>{this.setAttribute(n,i)}),this._prelimAttrs=null}_copy(){return new e(this.nodeName)}clone(){let t=new e(this.nodeName),A=this.getAttributes();return oE(A,(i,n)=>{typeof i=="string"&&t.setAttribute(n,i)}),t.insert(0,this.toArray().map(i=>i instanceof Re?i.clone():i)),t}toString(){let t=this.getAttributes(),A=[],i=[];for(let s in t)i.push(s);i.sort();let n=i.length;for(let s=0;s<n;s++){let a=i[s];A.push(a+'="'+t[a]+'"')}let r=this.nodeName.toLocaleLowerCase(),o=A.length>0?" "+A.join(" "):"";return`<${r}${o}>${super.toString()}</${r}>`}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{pf(i,this,t,A)}):this._prelimAttrs.set(t,A)}getAttribute(t){return Ef(this,t)}hasAttribute(t){return nm(this,t)}getAttributes(t){return t?HU(this,t):im(this)}toDOM(t=document,A={},i){let n=t.createElement(this.nodeName),r=this.getAttributes();for(let o in r){let s=r[o];typeof s=="string"&&n.setAttribute(o,s)}return rs(this,o=>{n.appendChild(o.toDOM(t,A,i))}),i!==void 0&&i._createAssociation(n,this),n}_write(t){t.writeTypeRef(iN),t.writeKey(this.nodeName)}},OU=e=>new bI(e.readKey()),cf=class extends Cr{constructor(t,A,i){super(t,i),this.childListChanged=!1,this.attributesChanged=new Set,A.forEach(n=>{n===null?this.childListChanged=!0:this.attributesChanged.add(n)})}},lf=class e extends os{constructor(t){super(),this.hookName=t}_copy(){return new e(this.hookName)}clone(){let t=new e(this.hookName);return this.forEach((A,i)=>{t.set(i,A)}),t}toDOM(t=document,A={},i){let n=A[this.hookName],r;return n!==void 0?r=n.createDom(this):r=document.createElement(this.hookName),r.setAttribute("data-yjs-hook",this.hookName),i!==void 0&&i._createAssociation(r,this),r}_write(t){t.writeTypeRef(rN),t.writeKey(this.hookName)}},LU=e=>new lf(e.readKey()),gf=class e extends as{get nextSibling(){let t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){let t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}toDOM(t=document,A,i){let n=t.createTextNode(this.toString());return i!==void 0&&i._createAssociation(n,this),n}toString(){return this.toDelta().map(t=>{let A=[];for(let n in t.attributes){let r=[];for(let o in t.attributes[n])r.push({key:o,value:t.attributes[n][o]});r.sort((o,s)=>o.key<s.key?-1:1),A.push({nodeName:n,attrs:r})}A.sort((n,r)=>n.nodeName<r.nodeName?-1:1);let i="";for(let n=0;n<A.length;n++){let r=A[n];i+=`<${r.nodeName}`;for(let o=0;o<r.attrs.length;o++){let s=r.attrs[o];i+=` ${s.key}="${s.value}"`}i+=">"}i+=t.insert;for(let n=A.length-1;n>=0;n--)i+=`</${A[n].nodeName}>`;return i}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(oN)}},YU=e=>new gf,Is=class{constructor(t,A){this.id=t,this.length=A}get deleted(){throw sA()}mergeWith(t){return!1}write(t,A,i){throw sA()}integrate(t,A){throw sA()}},PU=0,wt=class extends Is{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,A){A>0&&(this.id.clock+=A,this.length-=A),PE(t.doc.store,this)}write(t,A){t.writeInfo(PU),t.writeLen(this.length-A)}getMissing(t,A){return null}},cs=class e{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeBuf(this.content)}getRef(){return 3}},VU=e=>new cs(e.readBuf()),OI=class e{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let A=new e(this.len-t);return this.len=t,A}mergeWith(t){return this.len+=t.len,!0}integrate(t,A){NI(t.deleteSet,A.id.client,A.id.clock,this.len),A.markDeleted()}delete(t){}gc(t){}write(t,A){t.writeLen(this.len-A)}getRef(){return 1}},zU=e=>new OI(e.readLen()),Im=(e,t)=>new ts({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),ls=class e{constructor(t){t._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=t;let A={};this.opts=A,t.gc||(A.gc=!1),t.autoLoad&&(A.autoLoad=!0),t.meta!==null&&(A.meta=t.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new e(Im(this.doc.guid,this.opts))}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.doc._item=A,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,A){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}},_U=e=>new ls(Im(e.readString(),e.readAny())),Bn=class e{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeJSON(this.embed)}getRef(){return 5}},TU=e=>new Bn(e.readJSON()),Je=class e{constructor(t,A){this.key=t,this.value=A}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){let i=A.parent;i._searchMarker=null,i._hasFormatting=!0}delete(t){}gc(t){}write(t,A){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}},XU=e=>new Je(e.readKey(),e.readJSON()),uf=class e{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let A=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),A}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,A){}delete(t){}gc(t){}write(t,A){let i=this.arr.length;t.writeLen(i-A);for(let n=A;n<i;n++){let r=this.arr[n];t.writeString(r===void 0?"undefined":JSON.stringify(r))}}getRef(){return 2}},ZU=e=>{let t=e.readLen(),A=[];for(let i=0;i<t;i++){let n=e.readString();n==="undefined"?A.push(void 0):A.push(JSON.parse(n))}return new uf(A)},hr=class e{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new e(this.arr)}splice(t){let A=new e(this.arr.slice(t));return this.arr=this.arr.slice(0,t),A}mergeWith(t){return this.arr=this.arr.concat(t.arr),!0}integrate(t,A){}delete(t){}gc(t){}write(t,A){let i=this.arr.length;t.writeLen(i-A);for(let n=A;n<i;n++){let r=this.arr[n];t.writeAny(r)}}getRef(){return 8}},WU=e=>{let t=e.readLen(),A=[];for(let i=0;i<t;i++)A.push(e.readAny());return new hr(A)},TA=class e{constructor(t){this.str=t}getLength(){return this.str.length}getContent(){return this.str.split("")}isCountable(){return!0}copy(){return new e(this.str)}splice(t){let A=new e(this.str.slice(t));this.str=this.str.slice(0,t);let i=this.str.charCodeAt(t-1);return i>=55296&&i<=56319&&(this.str=this.str.slice(0,t-1)+"\uFFFD",A.str="\uFFFD"+A.str.slice(1)),A}mergeWith(t){return this.str+=t.str,!0}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeString(A===0?this.str:this.str.slice(A))}getRef(){return 4}},jU=e=>new TA(e.readString()),$U=[MU,vU,KU,OU,bU,LU,YU],eN=0,tN=1,AN=2,iN=3,nN=4,rN=5,oN=6,XA=class e{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.type._integrate(t.doc,A)}delete(t){let A=this.type._start;for(;A!==null;)A.deleted?A.id.clock<(t.beforeState.get(A.id.client)||0)&&t._mergeStructs.push(A):A.delete(t),A=A.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(t.beforeState.get(i.id.client)||0)&&t._mergeStructs.push(i):i.delete(t)}),t.changed.delete(this.type)}gc(t){let A=this.type._start;for(;A!==null;)A.gc(t,!0),A=A.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(t,!0),i=i.left}),this.type._map=new Map}write(t,A){this.type._write(t)}getRef(){return 7}},sN=e=>new XA($U[e.readTypeRef()](e));var LI=(e,t,A)=>{let{client:i,clock:n}=t.id,r=new Ye(Ae(i,n+A),t,Ae(i,n+A-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(A));return t.deleted&&r.markDeleted(),t.keep&&(r.keep=!0),t.redone!==null&&(r.redone=Ae(t.redone.client,t.redone.clock+A)),t.right=r,r.right!==null&&(r.right.left=r),e._mergeStructs.push(r),r.parentSub!==null&&r.right===null&&r.parent._map.set(r.parentSub,r),t.length=A,r};var Ye=class e extends Is{constructor(t,A,i,n,r,o,s,a){super(t,a.getLength()),this.origin=i,this.left=A,this.right=n,this.rightOrigin=r,this.parent=o,this.parentSub=s,this.redone=null,this.content=a,this.info=this.content.isCountable()?2:0}set marker(t){(this.info&8)>0!==t&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(t){this.keep!==t&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(t){this.deleted!==t&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,A){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Le(A,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Le(A,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Ui&&this.id.client!==this.parent.client&&this.parent.clock>=Le(A,this.parent.client))return this.parent.client;if(this.origin&&(this.left=DE(t,A,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=xi(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===wt||this.right&&this.right.constructor===wt)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Ui){let i=Wu(A,this.parent);i.constructor===wt?this.parent=null:this.parent=i.content.type}return null}integrate(t,A){if(A>0&&(this.id.clock+=A,this.left=DE(t,t.doc.store,Ae(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(A),this.length-=A),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let i=this.left,n;if(i!==null)n=i.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,o=new Set;for(;n!==null&&n!==this.right;){if(o.add(n),r.add(n),FI(this.origin,n.origin)){if(n.id.client<this.id.client)i=n,r.clear();else if(FI(this.rightOrigin,n.rightOrigin))break}else if(n.origin!==null&&o.has(Wu(t.doc.store,n.origin)))r.has(Wu(t.doc.store,n.origin))||(i=n,r.clear());else break;n=n.right}this.left=i}if(this.left!==null){let i=this.left.right;this.right=i,this.left.right=this}else{let i;if(this.parentSub!==null)for(i=this.parent._map.get(this.parentSub)||null;i!==null&&i.left!==null;)i=i.left;else i=this.parent._start,this.parent._start=this;this.right=i}this.right!==null?this.right.left=this:this.parentSub!==null&&(this.parent._map.set(this.parentSub,this),this.left!==null&&this.left.delete(t)),this.parentSub===null&&this.countable&&!this.deleted&&(this.parent._length+=this.length),PE(t.doc.store,this),this.content.integrate(t,this),SE(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new wt(this.id,this.length).integrate(t,0)}get next(){let t=this.right;for(;t!==null&&t.deleted;)t=t.right;return t}get prev(){let t=this.left;for(;t!==null&&t.deleted;)t=t.left;return t}get lastId(){return this.length===1?this.id:Ae(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&FI(t.origin,this.lastId)&&this.right===t&&FI(this.rightOrigin,t.rightOrigin)&&this.id.client===t.id.client&&this.id.clock+this.length===t.id.clock&&this.deleted===t.deleted&&this.redone===null&&t.redone===null&&this.content.constructor===t.content.constructor&&this.content.mergeWith(t.content)){let A=this.parent._searchMarker;return A&&A.forEach(i=>{i.p===t&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){let A=this.parent;this.countable&&this.parentSub===null&&(A._length-=this.length),this.markDeleted(),NI(t.deleteSet,this.id.client,this.id.clock,this.length),SE(t,A,this.parentSub),this.content.delete(t)}}gc(t,A){if(!this.deleted)throw aA();this.content.gc(t),A?hU(t,this,new wt(this.id,this.length)):this.content=new OI(this.length)}write(t,A){let i=A>0?Ae(this.id.client,this.id.clock+A-1):this.origin,n=this.rightOrigin,r=this.parentSub,o=this.content.getRef()&31|(i===null?0:128)|(n===null?0:64)|(r===null?0:32);if(t.writeInfo(o),i!==null&&t.writeLeftID(i),n!==null&&t.writeRightID(n),i===null&&n===null){let s=this.parent;if(s._item!==void 0){let a=s._item;if(a===null){let c=dU(s);t.writeParentInfo(!0),t.writeString(c)}else t.writeParentInfo(!1),t.writeLeftID(a.id)}else s.constructor===String?(t.writeParentInfo(!0),t.writeString(s)):s.constructor===Ui?(t.writeParentInfo(!1),t.writeLeftID(s)):aA();r!==null&&t.writeString(r)}this.content.write(t,A)}},cm=(e,t)=>aN[t&31](e),aN=[()=>{aA()},zU,ZU,VU,jU,TU,XU,sN,WU,_U,()=>{aA()}],IN=10,Ft=class extends Is{get deleted(){return!0}delete(){}mergeWith(t){return this.constructor!==t.constructor?!1:(this.length+=t.length,!0)}integrate(t,A){aA()}write(t,A){t.writeInfo(IN),W(t.restEncoder,this.length-A)}getMissing(t,A){return null}},lm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},gm="__ $YJS$ __";lm[gm]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");lm[gm]=!0;var zI={proxies:new WeakMap,traps:new WeakMap},um=(e,t,A)=>e.get(t)||e.set(t,new A).get(t),fm=e=>e.join(),Bm=(e,t,A,i,n)=>{um(um(zI.traps,e,WeakMap),t,Map).set(fm(A),i),zI.proxies.set(i,n)},mf=(e,t,A)=>{var i,n;return zI.proxies.get((n=(i=zI.traps.get(e))===null||i===void 0?void 0:i.get(t))===null||n===void 0?void 0:n.get(fm(A)))};var lN=Symbol("default"),gN=Object.keys(Object.getOwnPropertyDescriptors(Reflect)),uN=["get","has","set","defineProperty","deleteProperty","getOwnPropertyDescriptor"],fN=(e,t)=>{let A,i,n,r,o,s,a,c;switch(e){case"get":[A,i,r]=t;break;case"set":[A,i,n,r]=t;break;case"deleteProperty":case"defineProperty":[A,s]=t;break;case"has":case"getOwnPropertyDescriptor":[A,i]=t;break;case"apply":[A,a,o]=t;break;case"construct":[A,o]=t;break;case"setPrototypeOf":[A,c]=t;break;default:[A]=t}return{target:A,name:i,receiver:r,val:n,args:o,descriptor:s,thisValue:a,prototype:c}},BN=(e,t)=>{let{trapName:A,handler:i,traps:n,root:r,path:o}=e,{target:s,name:a,val:c,receiver:I,args:l,descriptor:g,thisValue:u,prototype:f}=fN(A,t),C=uN.includes(A)?a:void 0;return{parameters:t,target:s,name:a,val:c,args:l,descriptor:g,receiver:I,thisValue:u,prototype:f,trapName:A,traps:n,path:o,handler:i,key:C,newValue:A==="set"?c:void 0,root:r,get proxy(){return mf(r,s,o)},get value(){return C&&s[C]},DEFAULT:lN,PROXY:dm.bind({root:r,handler:i,path:[...o,C]})}},dN=function(...e){let{trapName:t,handler:A}=this,i=BN(this,e),{PROXY:n,DEFAULT:r}=i,o=A(i);return o===n?n(i.value):o===r?Reflect[t](...e):o},CN=(e,t,A)=>gN.reduce((i,n)=>(i[n]=dN.bind({trapName:n,handler:e,traps:i,root:t,path:A}),i),{}),QN=e=>{if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Deep proxy could be applied to objects and functions only")},hN=({DEFAULT:e})=>e,dm=function(e,t,A,i){QN(e);let n=Object.assign({},this),r=t||n.handler||hN,o=A||n.path||[],s=n.root||i||e,a=mf(s,e,o);if(a)return a;let c=CN(r,s,o),I=new Proxy(e,c);return Bm(s,e,o,c,I),I},Cm=class{constructor(e,t,A,i){return dm(e,t,A,i)}};function fs(e,t,A,i){function n(r){return r instanceof A?r:new A(function(o){o(r)})}return new(A||(A=Promise))(function(r,o){function s(I){try{c(i.next(I))}catch(l){o(l)}}function a(I){try{c(i.throw(I))}catch(l){o(l)}}function c(I){I.done?r(I.value):n(I.value).then(s,a)}c((i=i.apply(e,t||[])).next())})}var Ee=class{constructor(){this.mutex=Promise.resolve()}lock(){let t=()=>{};return this.mutex=this.mutex.then(()=>new Promise(t)),new Promise(A=>{t=A})}dispatch(t){return fs(this,void 0,void 0,function*(){let A=yield this.lock();try{return yield Promise.resolve(t())}finally{A()}})}},yf;function pN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global}var Df=pN(),wf=(yf=Df.Buffer)!==null&&yf!==void 0?yf:null,EN=Df.TextEncoder?new Df.TextEncoder:null;function wm(e,t){return(e&15)+(e>>6|e>>3&8)<<4|(t&15)+(t>>6|t>>3&8)}function mN(e,t){let A=t.length>>1;for(let i=0;i<A;i++){let n=i<<1;e[i]=wm(t.charCodeAt(n),t.charCodeAt(n+1))}}function yN(e,t){if(e.length!==t.length*2)return!1;for(let A=0;A<t.length;A++){let i=A<<1;if(t[A]!==wm(e.charCodeAt(i),e.charCodeAt(i+1)))return!1}return!0}var Qm=87,hm=48;function pm(e,t,A){let i=0;for(let n=0;n<A;n++){let r=t[n]>>>4;e[i++]=r>9?r+Qm:r+hm,r=t[n]&15,e[i++]=r>9?r+Qm:r+hm}return String.fromCharCode.apply(null,e)}var Em=wf!==null?e=>{if(typeof e=="string"){let t=wf.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(wf.isBuffer(e))return new Uint8Array(e.buffer,e.byteOffset,e.length);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")}:e=>{if(typeof e=="string")return EN.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},mm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",us=new Uint8Array(256);for(let e=0;e<mm.length;e++)us[mm.charCodeAt(e)]=e;function wN(e){let t=Math.floor(e.length*.75),A=e.length;return e[A-1]==="="&&(t-=1,e[A-2]==="="&&(t-=1)),t}function FN(e){let t=wN(e),A=e.length,i=new Uint8Array(t),n=0;for(let r=0;r<A;r+=4){let o=us[e.charCodeAt(r)],s=us[e.charCodeAt(r+1)],a=us[e.charCodeAt(r+2)],c=us[e.charCodeAt(r+3)];i[n]=o<<2|s>>4,n+=1,i[n]=(s&15)<<4|a>>2,n+=1,i[n]=(a&3)<<6|c&63,n+=1}return i}var _I=16*1024,gs=4,DN=new Ee,Ff=new Map;function kN(e,t){return fs(this,void 0,void 0,function*(){let A=null,i=null,n=!1;if(typeof WebAssembly>"u")throw new Error("WebAssembly is not supported in this environment!");let r=(D,S=0)=>{i.set(D,S)},o=()=>i,s=()=>A.exports,a=D=>{A.exports.Hash_SetMemorySize(D);let S=A.exports.Hash_GetBuffer(),N=A.exports.memory.buffer;i=new Uint8Array(N,S,D)},c=()=>new DataView(A.exports.memory.buffer).getUint32(A.exports.STATE_SIZE,!0),I=DN.dispatch(()=>fs(this,void 0,void 0,function*(){if(!Ff.has(e.name)){let S=FN(e.data),N=WebAssembly.compile(S);Ff.set(e.name,N)}let D=yield Ff.get(e.name);A=yield WebAssembly.instantiate(D,{})})),l=()=>fs(this,void 0,void 0,function*(){A||(yield I);let D=A.exports.Hash_GetBuffer(),S=A.exports.memory.buffer;i=new Uint8Array(S,D,_I)}),g=(D=null)=>{n=!0,A.exports.Hash_Init(D)},u=D=>{let S=0;for(;S<D.length;){let N=D.subarray(S,S+_I);S+=N.length,i.set(N),A.exports.Hash_Update(N.length)}},f=D=>{if(!n)throw new Error("update() called before init()");let S=Em(D);u(S)},C=new Uint8Array(t*2),F=(D,S=null)=>{if(!n)throw new Error("digest() called before init()");return n=!1,A.exports.Hash_Final(S),D==="binary"?i.slice(0,t):pm(C,i,t)},d=()=>{if(!n)throw new Error("save() can only be called after init() and before digest()");let D=A.exports.Hash_GetState(),S=c(),N=A.exports.memory.buffer,b=new Uint8Array(N,D,S),q=new Uint8Array(gs+S);return mN(q,e.hash),q.set(b,gs),q},B=D=>{if(!(D instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");let S=A.exports.Hash_GetState(),N=c(),b=gs+N,q=A.exports.memory.buffer;if(D.length!==b)throw new Error(`Bad state length (expected ${b} bytes, got ${D.length})`);if(!yN(e.hash,D.subarray(0,gs)))throw new Error("This state was written by an incompatible hash implementation");let Z=D.subarray(gs);new Uint8Array(q,S,N).set(Z),n=!0},Q=D=>typeof D=="string"?D.length<_I/4:D.byteLength<_I,y=Q;switch(e.name){case"argon2":case"scrypt":y=()=>!0;break;case"blake2b":case"blake2s":y=(D,S)=>S<=512&&Q(D);break;case"blake3":y=(D,S)=>S===0&&Q(D);break;case"xxhash64":case"xxhash3":case"xxhash128":y=()=>!1;break}let k=(D,S=null,N=null)=>{if(!y(D,S))return g(S),f(D),F("hex",N);let b=Em(D);return i.set(b),A.exports.Hash_Calculate(b.length,S,N),pm(C,i,t)};return yield l(),{getMemory:o,writeMemory:r,getExports:s,setMemorySize:a,init:g,update:f,digest:F,save:d,load:B,calculate:k,hashLength:t}})}function SN(e,t,A){return fs(this,void 0,void 0,function*(){let i=yield e.lock(),n=yield kN(t,A);return i(),n})}var lv=new Ee;var gv=new Ee;var uv=new DataView(new ArrayBuffer(4));var fv=new Ee;var Bv=new Ee;var dv=new Ee;var Cv=new Ee;var Qv=new Ee;var hv=new Ee;var pv=new Ee;var Ev=new Ee;var mv=new Ee;var yv=new Ee;var wv=new Ee;var Fv=new Ee;var Dv=new Ee;var UN="xxhash32",NN="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwcGAAEBAgADBQQBAQICBg4CfwFBsIkFC38AQYAICwdwCAZtZW1vcnkCAA5IYXNoX0dldEJ1ZmZlcgAACUhhc2hfSW5pdAABC0hhc2hfVXBkYXRlAAIKSGFzaF9GaW5hbAADDUhhc2hfR2V0U3RhdGUABA5IYXNoX0NhbGN1bGF0ZQAFClNUQVRFX1NJWkUDAQqxEAYFAEGACQtNAEEAQgA3A6iJAUEAIAA2AoiJAUEAIABBz4yijgZqNgKMiQFBACAAQfeUr694ajYChIkBQQAgAEGoiI2hAmo2AoCJAUEAQQA2AqCJAQu4CAEHfwJAIABFDQBBAEEAKQOoiQEgAK18NwOoiQECQEEAKAKgiQEiASAAakEPSw0AAkACQCAAQQNxIgINAEGACSEDIAAhBAwBCyAAQXxxIQRBgAkhAwNAQQBBACgCoIkBIgVBAWo2AqCJASAFQZCJAWogAy0AADoAACADQQFqIQMgAkF/aiICDQALCyAAQQRJDQEDQEEAQQAoAqCJASICQQFqNgKgiQEgAkGQiQFqIAMtAAA6AAAgA0EBai0AACECQQBBACgCoIkBIgVBAWo2AqCJASAFQZCJAWogAjoAACADQQJqLQAAIQJBAEEAKAKgiQEiBUEBajYCoIkBIAVBkIkBaiACOgAAIANBA2otAAAhAkEAQQAoAqCJASIFQQFqNgKgiQEgBUGQiQFqIAI6AAAgA0EEaiEDIARBfGoiBA0ADAILCyAAQfAIaiEGAkACQCABDQBBACgCjIkBIQJBACgCiIkBIQVBACgChIkBIQRBACgCgIkBIQFBgAkhAwwBC0GACSEDAkAgAUEPSw0AQYAJIQMCQAJAQQAgAWtBA3EiBA0AIAEhBQwBCyABIQIDQEEAIAJBAWoiBTYCoIkBIAJBkIkBaiADLQAAOgAAIANBAWohAyAFIQIgBEF/aiIEDQALCyABQXNqQQNJDQBBACEEA0AgAyAEaiIBLQAAIQdBACAFIARqIgJBAWo2AqCJASACQZCJAWogBzoAACABQQFqLQAAIQdBACACQQJqNgKgiQEgAkGRiQFqIAc6AAAgAUECai0AACEHQQAgAkEDajYCoIkBIAJBkokBaiAHOgAAIAFBA2otAAAhAUEAIAJBBGo2AqCJASACQZOJAWogAToAACAFIARBBGoiBGpBEEcNAAsgAyAEaiEDC0EAQQAoApCJAUH3lK+veGxBACgCgIkBakENd0Gx893xeWwiATYCgIkBQQBBACgClIkBQfeUr694bEEAKAKEiQFqQQ13QbHz3fF5bCIENgKEiQFBAEEAKAKYiQFB95Svr3hsQQAoAoiJAWpBDXdBsfPd8XlsIgU2AoiJAUEAQQAoApyJAUH3lK+veGxBACgCjIkBakENd0Gx893xeWwiAjYCjIkBCyAAQYAJaiEAAkAgAyAGSw0AA0AgAygCAEH3lK+veGwgAWpBDXdBsfPd8XlsIQEgA0EMaigCAEH3lK+veGwgAmpBDXdBsfPd8XlsIQIgA0EIaigCAEH3lK+veGwgBWpBDXdBsfPd8XlsIQUgA0EEaigCAEH3lK+veGwgBGpBDXdBsfPd8XlsIQQgA0EQaiIDIAZNDQALC0EAIAI2AoyJAUEAIAU2AoiJAUEAIAQ2AoSJAUEAIAE2AoCJAUEAIAAgA2s2AqCJASAAIANGDQBBACECA0AgAkGQiQFqIAMgAmotAAA6AAAgAkEBaiICQQAoAqCJAUkNAAsLC6QDAgF+Bn9BACkDqIkBIgCnIQECQAJAIABCEFQNAEEAKAKEiQFBB3dBACgCgIkBQQF3akEAKAKIiQFBDHdqQQAoAoyJAUESd2ohAgwBC0EAKAKIiQFBsc/ZsgFqIQILIAIgAWohAkGQiQEhAwJAQQAoAqCJASIEQZCJAWoiBUGUiQFJDQBBkIkBIQEDQCABKAIAQb3cypV8bCACakERd0Gv1tO+AmwhAiABQQhqIQYgAUEEaiIDIQEgBiAFTQ0ACwsCQCADIAVGDQAgBEGPiQFqIQYCQAJAIAQgA2tBAXENACADIQEMAQsgA0EBaiEBIAMtAABBsc/ZsgFsIAJqQQt3QbHz3fF5bCECCyAGIANGDQADQCABQQFqLQAAQbHP2bIBbCABLQAAQbHP2bIBbCACakELd0Gx893xeWxqQQt3QbHz3fF5bCECIAFBAmoiASAFRw0ACwtBACACQQ92IAJzQfeUr694bCIBQQ12IAFzQb3cypV8bCIBQRB2IAFzIgJBGHQgAkGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyrTcDgAkLBgBBgIkBC/MDAgF+BH9BAEIANwOoiQFBACABNgKIiQFBACABQc+Moo4GajYCjIkBQQAgAUH3lK+veGo2AoSJAUEAIAFBqIiNoQJqNgKAiQFBAEEANgKgiQEgABACQQApA6iJASICpyEBAkACQCACQhBUDQBBACgChIkBQQd3QQAoAoCJAUEBd2pBACgCiIkBQQx3akEAKAKMiQFBEndqIQAMAQtBACgCiIkBQbHP2bIBaiEACyAAIAFqIQBBkIkBIQMCQEEAKAKgiQEiBEGQiQFqIgVBlIkBSQ0AQZCJASEBA0AgASgCAEG93MqVfGwgAGpBEXdBr9bTvgJsIQAgAUEIaiEGIAFBBGoiAyEBIAYgBU0NAAsLAkAgAyAFRg0AIARBj4kBaiEGAkACQCAEIANrQQFxDQAgAyEBDAELIANBAWohASADLQAAQbHP2bIBbCAAakELd0Gx893xeWwhAAsgBiADRg0AA0AgAUEBai0AAEGxz9myAWwgAS0AAEGxz9myAWwgAGpBC3dBsfPd8XlsakELd0Gx893xeWwhACABQQJqIgEgBUcNAAsLQQAgAEEPdiAAc0H3lK+veGwiAUENdiABc0G93MqVfGwiAUEQdiABcyIAQRh0IABBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycq03A4AJCwsLAQBBgAgLBDAAAAA=",xN="9e3a00cd",GN={name:UN,data:NN,hash:xN},HN=new Ee,TI=null;function ym(e){return!Number.isInteger(e)||e<0||e>4294967295?new Error("Seed must be a valid 32-bit long unsigned integer."):null}function XI(e,t=0){if(ym(t))return Promise.reject(ym(t));if(TI===null)return SN(HN,GN,4).then(A=>(TI=A,TI.calculate(e,t)));try{let A=TI.calculate(e,t);return Promise.resolve(A)}catch(A){return Promise.reject(A)}}var kv=new Ee;var Sv=new ArrayBuffer(8);var Uv=new Ee;var Nv=new ArrayBuffer(8);var xv=new Ee;var Gv=new ArrayBuffer(8);var Hv=new Ee;var Mv=new Ee;var vv=new Ee;function Sf(e){return new Promise((t,A)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>A(e.error)})}function Bs(e,t){let A=indexedDB.open(e);A.onupgradeneeded=()=>A.result.createObjectStore(t);let i=Sf(A);return(n,r)=>i.then(o=>r(o.transaction(t,n).objectStore(t)))}var kf;function Fm(){return kf||(kf=Bs("keyval-store","keyval")),kf}function mr(e,t=Fm()){return t("readonly",A=>Sf(A.get(e)))}function ds(e,t,A=Fm()){return A("readwrite",i=>(i.put(t,e),Sf(i.transaction)))}var Nf;try{Nf=new TextDecoder}catch{}var H,zt,h=0;var Jm=[],xf=Jm,Gf=0,ye={},ie,Gi,Vt=0,DA=0,Ve,ZA,Dt=[],ee,Dm={useRecords:!1,mapsAsObjects:!0},Cs=class{},Mf=new Cs;Mf.name="MessagePack 0xC1";var Hi=!1,qm=2,km,Sm,Um;try{new Function("")}catch{qm=1/0}var Cn=class e{constructor(t){t&&(t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.sequential&&t.trusted!==!1&&(t.trusted=!0,!t.structures&&t.useRecords!=!1&&(t.structures=[],t.maxSharedStructures||(t.maxSharedStructures=0))),t.structures?t.structures.sharedLength=t.structures.length:t.getStructures&&((t.structures=[]).uninitialized=!0,t.structures.sharedLength=0),t.int64AsNumber&&(t.int64AsType="number")),Object.assign(this,t)}unpack(t,A){if(H)return Lm(()=>(WI(),this?this.unpack(t,A):e.prototype.unpack.call(Dm,t,A)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t)),typeof A=="object"?(zt=A.end||t.length,h=A.start||0):(h=0,zt=A>-1?A:t.length),Gf=0,DA=0,Gi=null,xf=Jm,Ve=null,H=t;try{ee=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw H=null,t instanceof Uint8Array?i:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof e){if(ye=this,this.structures)return ie=this.structures,ZI(A);(!ie||ie.length>0)&&(ie=[])}else ye=Dm,(!ie||ie.length>0)&&(ie=[]);return ZI(A)}unpackMultiple(t,A){let i,n=0;try{Hi=!0;let r=t.length,o=this?this.unpack(t,r):$I.unpack(t,r);if(A){if(A(o,n,h)===!1)return;for(;h<r;)if(n=h,A(ZI(),n,h)===!1)return}else{for(i=[o];h<r;)n=h,i.push(ZI());return i}}catch(r){throw r.lastPosition=n,r.values=i,r}finally{Hi=!1,WI()}}_mergeStructures(t,A){Sm&&(t=Sm.call(this,t)),t=t||[],Object.isFrozen(t)&&(t=t.map(i=>i.slice(0)));for(let i=0,n=t.length;i<n;i++){let r=t[i];r&&(r.isShared=!0,i>=32&&(r.highByte=i-32>>5))}t.sharedLength=t.length;for(let i in A||[])if(i>=0){let n=t[i],r=A[i];r&&(n&&((t.restoreStructures||(t.restoreStructures=[]))[i]=n),t[i]=r)}return this.structures=t}decode(t,A){return this.unpack(t,A)}};function ZI(e){try{if(!ye.trusted&&!Hi){let A=ie.sharedLength||0;A<ie.length&&(ie.length=A)}let t;if(ye.randomAccessStructure&&H[h]<64&&H[h]>=32&&km?(t=km(H,h,zt,ye),H=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),h=zt):t=Ne(),Ve&&(h=Ve.postBundlePosition,Ve=null),Hi&&(ie.restoreStructures=null),h==zt)ie&&ie.restoreStructures&&Nm(),ie=null,H=null,ZA&&(ZA=null);else{if(h>zt)throw new Error("Unexpected end of MessagePack data");if(!Hi){let A;try{A=JSON.stringify(t,(i,n)=>typeof n=="bigint"?`${n}n`:n).slice(0,100)}catch(i){A="(JSON view not available "+i+")"}throw new Error("Data read, but end of buffer not reached "+A)}}return t}catch(t){throw ie&&ie.restoreStructures&&Nm(),WI(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer")||h>zt)&&(t.incomplete=!0),t}}function Nm(){for(let e in ie.restoreStructures)ie[e]=ie.restoreStructures[e];ie.restoreStructures=null}function Ne(){let e=H[h++];if(e<160)if(e<128){if(e<64)return e;{let t=ie[e&63]||ye.getStructures&&Km()[e&63];return t?(t.read||(t.read=vf(t,e&63)),t.read()):e}}else if(e<144)if(e-=128,ye.mapsAsObjects){let t={};for(let A=0;A<e;A++){let i=Om();i==="__proto__"&&(i="__proto_"),t[i]=Ne()}return t}else{let t=new Map;for(let A=0;A<e;A++)t.set(Ne(),Ne());return t}else{e-=144;let t=new Array(e);for(let A=0;A<e;A++)t[A]=Ne();return ye.freezeData?Object.freeze(t):t}else if(e<192){let t=e-160;if(DA>=h)return Gi.slice(h-Vt,(h+=t)-Vt);if(DA==0&&zt<140){let A=t<16?Rf(t):bm(t);if(A!=null)return A}return Hf(t)}else{let t;switch(e){case 192:return null;case 193:return Ve?(t=Ne(),t>0?Ve[1].slice(Ve.position1,Ve.position1+=t):Ve[0].slice(Ve.position0,Ve.position0-=t)):Mf;case 194:return!1;case 195:return!0;case 196:if(t=H[h++],t===void 0)throw new Error("Unexpected end of buffer");return Uf(t);case 197:return t=ee.getUint16(h),h+=2,Uf(t);case 198:return t=ee.getUint32(h),h+=4,Uf(t);case 199:return dn(H[h++]);case 200:return t=ee.getUint16(h),h+=2,dn(t);case 201:return t=ee.getUint32(h),h+=4,dn(t);case 202:if(t=ee.getFloat32(h),ye.useFloat32>2){let A=jI[(H[h]&127)<<1|H[h+1]>>7];return h+=4,(A*t+(t>0?.5:-.5)>>0)/A}return h+=4,t;case 203:return t=ee.getFloat64(h),h+=8,t;case 204:return H[h++];case 205:return t=ee.getUint16(h),h+=2,t;case 206:return t=ee.getUint32(h),h+=4,t;case 207:return ye.int64AsType==="number"?(t=ee.getUint32(h)*4294967296,t+=ee.getUint32(h+4)):ye.int64AsType==="string"?t=ee.getBigUint64(h).toString():ye.int64AsType==="auto"?(t=ee.getBigUint64(h),t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=ee.getBigUint64(h),h+=8,t;case 208:return ee.getInt8(h++);case 209:return t=ee.getInt16(h),h+=2,t;case 210:return t=ee.getInt32(h),h+=4,t;case 211:return ye.int64AsType==="number"?(t=ee.getInt32(h)*4294967296,t+=ee.getUint32(h+4)):ye.int64AsType==="string"?t=ee.getBigInt64(h).toString():ye.int64AsType==="auto"?(t=ee.getBigInt64(h),t>=BigInt(-2)<<BigInt(52)&&t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=ee.getBigInt64(h),h+=8,t;case 212:if(t=H[h++],t==114)return Rm(H[h++]&63);{let A=Dt[t];if(A)return A.read?(h++,A.read(Ne())):A.noBuffer?(h++,A()):A(H.subarray(h,++h));throw new Error("Unknown extension "+t)}case 213:return t=H[h],t==114?(h++,Rm(H[h++]&63,H[h++])):dn(2);case 214:return dn(4);case 215:return dn(8);case 216:return dn(16);case 217:return t=H[h++],DA>=h?Gi.slice(h-Vt,(h+=t)-Vt):vN(t);case 218:return t=ee.getUint16(h),h+=2,DA>=h?Gi.slice(h-Vt,(h+=t)-Vt):RN(t);case 219:return t=ee.getUint32(h),h+=4,DA>=h?Gi.slice(h-Vt,(h+=t)-Vt):JN(t);case 220:return t=ee.getUint16(h),h+=2,Gm(t);case 221:return t=ee.getUint32(h),h+=4,Gm(t);case 222:return t=ee.getUint16(h),h+=2,Hm(t);case 223:return t=ee.getUint32(h),h+=4,Hm(t);default:if(e>=224)return e-256;if(e===void 0){let A=new Error("Unexpected end of MessagePack data");throw A.incomplete=!0,A}throw new Error("Unknown MessagePack token "+e)}}}var MN=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function vf(e,t){function A(){if(A.count++>qm){let n=e.read=new Function("r","return function(){return "+(ye.freezeData?"Object.freeze":"")+"({"+e.map(r=>r==="__proto__"?"__proto_:r()":MN.test(r)?r+":r()":"["+JSON.stringify(r)+"]:r()").join(",")+"})}")(Ne);return e.highByte===0&&(e.read=xm(t,e.read)),n()}let i={};for(let n=0,r=e.length;n<r;n++){let o=e[n];o==="__proto__"&&(o="__proto_"),i[o]=Ne()}return ye.freezeData?Object.freeze(i):i}return A.count=0,e.highByte===0?xm(t,A):A}var xm=(e,t)=>function(){let A=H[h++];if(A===0)return t();let i=e<32?-(e+(A<<5)):e+(A<<5),n=ie[i]||Km()[i];if(!n)throw new Error("Record id is not defined for "+i);return n.read||(n.read=vf(n,e)),n.read()};function Km(){let e=Lm(()=>(H=null,ye.getStructures()));return ie=ye._mergeStructures(e,ie)}var Hf=Qs,vN=Qs,RN=Qs,JN=Qs;function Qs(e){let t;if(e<16&&(t=Rf(e)))return t;if(e>64&&Nf)return Nf.decode(H.subarray(h,h+=e));let A=h+e,i=[];for(t="";h<A;){let n=H[h++];if(!(n&128))i.push(n);else if((n&224)===192){let r=H[h++]&63;i.push((n&31)<<6|r)}else if((n&240)===224){let r=H[h++]&63,o=H[h++]&63;i.push((n&31)<<12|r<<6|o)}else if((n&248)===240){let r=H[h++]&63,o=H[h++]&63,s=H[h++]&63,a=(n&7)<<18|r<<12|o<<6|s;a>65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a)}else i.push(n);i.length>=4096&&(t+=Pe.apply(String,i),i.length=0)}return i.length>0&&(t+=Pe.apply(String,i)),t}function Gm(e){let t=new Array(e);for(let A=0;A<e;A++)t[A]=Ne();return ye.freezeData?Object.freeze(t):t}function Hm(e){if(ye.mapsAsObjects){let t={};for(let A=0;A<e;A++){let i=Om();i==="__proto__"&&(i="__proto_"),t[i]=Ne()}return t}else{let t=new Map;for(let A=0;A<e;A++)t.set(Ne(),Ne());return t}}var Pe=String.fromCharCode;function bm(e){let t=h,A=new Array(e);for(let i=0;i<e;i++){let n=H[h++];if((n&128)>0){h=t;return}A[i]=n}return Pe.apply(String,A)}function Rf(e){if(e<4)if(e<2){if(e===0)return"";{let t=H[h++];if((t&128)>1){h-=1;return}return Pe(t)}}else{let t=H[h++],A=H[h++];if((t&128)>0||(A&128)>0){h-=2;return}if(e<3)return Pe(t,A);let i=H[h++];if((i&128)>0){h-=3;return}return Pe(t,A,i)}else{let t=H[h++],A=H[h++],i=H[h++],n=H[h++];if((t&128)>0||(A&128)>0||(i&128)>0||(n&128)>0){h-=4;return}if(e<6){if(e===4)return Pe(t,A,i,n);{let r=H[h++];if((r&128)>0){h-=5;return}return Pe(t,A,i,n,r)}}else if(e<8){let r=H[h++],o=H[h++];if((r&128)>0||(o&128)>0){h-=6;return}if(e<7)return Pe(t,A,i,n,r,o);let s=H[h++];if((s&128)>0){h-=7;return}return Pe(t,A,i,n,r,o,s)}else{let r=H[h++],o=H[h++],s=H[h++],a=H[h++];if((r&128)>0||(o&128)>0||(s&128)>0||(a&128)>0){h-=8;return}if(e<10){if(e===8)return Pe(t,A,i,n,r,o,s,a);{let c=H[h++];if((c&128)>0){h-=9;return}return Pe(t,A,i,n,r,o,s,a,c)}}else if(e<12){let c=H[h++],I=H[h++];if((c&128)>0||(I&128)>0){h-=10;return}if(e<11)return Pe(t,A,i,n,r,o,s,a,c,I);let l=H[h++];if((l&128)>0){h-=11;return}return Pe(t,A,i,n,r,o,s,a,c,I,l)}else{let c=H[h++],I=H[h++],l=H[h++],g=H[h++];if((c&128)>0||(I&128)>0||(l&128)>0||(g&128)>0){h-=12;return}if(e<14){if(e===12)return Pe(t,A,i,n,r,o,s,a,c,I,l,g);{let u=H[h++];if((u&128)>0){h-=13;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,g,u)}}else{let u=H[h++],f=H[h++];if((u&128)>0||(f&128)>0){h-=14;return}if(e<15)return Pe(t,A,i,n,r,o,s,a,c,I,l,g,u,f);let C=H[h++];if((C&128)>0){h-=15;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,g,u,f,C)}}}}}function Mm(){let e=H[h++],t;if(e<192)t=e-160;else switch(e){case 217:t=H[h++];break;case 218:t=ee.getUint16(h),h+=2;break;case 219:t=ee.getUint32(h),h+=4;break;default:throw new Error("Expected string")}return Qs(t)}function Uf(e){return ye.copyBuffers?Uint8Array.prototype.slice.call(H,h,h+=e):H.subarray(h,h+=e)}function dn(e){let t=H[h++];if(Dt[t]){let A;return Dt[t](H.subarray(h,A=h+=e),i=>{h=i;try{return Ne()}finally{h=A}})}else throw new Error("Unknown extension type "+t)}var vm=new Array(4096);function Om(){let e=H[h++];if(e>=160&&e<192){if(e=e-160,DA>=h)return Gi.slice(h-Vt,(h+=e)-Vt);if(!(DA==0&&zt<180))return Hf(e)}else return h--,Ne().toString();let t=(e<<5^(e>1?ee.getUint16(h):e>0?H[h]:0))&4095,A=vm[t],i=h,n=h+e-3,r,o=0;if(A&&A.bytes==e){for(;i<n;){if(r=ee.getUint32(i),r!=A[o++]){i=1879048192;break}i+=4}for(n+=3;i<n;)if(r=H[i++],r!=A[o++]){i=1879048192;break}if(i===n)return h=i,A.string;n-=3,i=h}for(A=[],vm[t]=A,A.bytes=e;i<n;)r=ee.getUint32(i),A.push(r),i+=4;for(n+=3;i<n;)r=H[i++],A.push(r);let s=e<16?Rf(e):bm(e);return s!=null?A.string=s:A.string=Hf(e)}var Rm=(e,t)=>{let A=Ne().map(r=>r.toString()),i=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,A.highByte=t);let n=ie[e];return n&&(n.isShared||Hi)&&((ie.restoreStructures||(ie.restoreStructures=[]))[e]=n),ie[e]=A,A.read=vf(A,i),A.read()};Dt[0]=()=>{};Dt[0].noBuffer=!0;Dt[66]=e=>{let t=e.length,A=BigInt(e[0]&128?e[0]-256:e[0]);for(let i=1;i<t;i++)A<<=8n,A+=BigInt(e[i]);return A};var qN={Error,TypeError,ReferenceError};Dt[101]=()=>{let e=Ne();return(qN[e[0]]||Error)(e[1])};Dt[105]=e=>{let t=ee.getUint32(h-4);ZA||(ZA=new Map);let A=H[h],i;A>=144&&A<160||A==220||A==221?i=[]:i={};let n={target:i};ZA.set(t,n);let r=Ne();return n.used?Object.assign(i,r):(n.target=r,r)};Dt[112]=e=>{let t=ee.getUint32(h-4),A=ZA.get(t);return A.used=!0,A.target};Dt[115]=()=>new Set(Ne());var Jf=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),KN=typeof globalThis=="object"?globalThis:window;Dt[116]=e=>{let t=e[0],A=Jf[t];if(!A)throw new Error("Could not find typed array for code "+t);return new KN[A](Uint8Array.prototype.slice.call(e,1).buffer)};Dt[120]=()=>{let e=Ne();return new RegExp(e[0],e[1])};var bN=[];Dt[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],A=h;return h+=t-e.length,Ve=bN,Ve=[Mm(),Mm()],Ve.position0=0,Ve.position1=0,Ve.postBundlePosition=h,h=A,Ne()};Dt[255]=e=>e.length==4?new Date((e[0]*16777216+(e[1]<<16)+(e[2]<<8)+e[3])*1e3):e.length==8?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+((e[3]&3)*4294967296+e[4]*16777216+(e[5]<<16)+(e[6]<<8)+e[7])*1e3):e.length==12?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+((e[4]&128?-281474976710656:0)+e[6]*1099511627776+e[7]*4294967296+e[8]*16777216+(e[9]<<16)+(e[10]<<8)+e[11])*1e3):new Date("invalid");function Lm(e){Um&&Um();let t=zt,A=h,i=Gf,n=Vt,r=DA,o=Gi,s=xf,a=ZA,c=Ve,I=new Uint8Array(H.slice(0,zt)),l=ie,g=ie.slice(0,ie.length),u=ye,f=Hi,C=e();return zt=t,h=A,Gf=i,Vt=n,DA=r,Gi=o,xf=s,ZA=a,Ve=c,H=I,Hi=f,ie=l,ie.splice(0,ie.length,...g),ye=u,ee=new DataView(H.buffer,H.byteOffset,H.byteLength),C}function WI(){H=null,ZA=null,ie=null}var jI=new Array(147);for(let e=0;e<256;e++)jI[e]=+("1e"+Math.floor(45.15-e*.30103));var $I=new Cn({useRecords:!1}),ON=$I.unpack,LN=$I.unpackMultiple,YN=$I.unpack,ec={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},PN=new Float32Array(1),qv=new Uint8Array(PN.buffer,0,4);var Ac;try{Ac=new TextEncoder}catch{}var qf,_m,ic=typeof Buffer<"u",tc=ic?function(e){return Buffer.allocUnsafeSlow(e)}:Uint8Array,Tm=ic?Buffer:Uint8Array,Ym=ic?4294967296:2144337920,E,hs,le,p=0,gt,ke=null,VN,zN=21760,_N=/[\u0080-\uFFFF]/,yr=Symbol("record-id"),Qn=class extends Cn{constructor(t){super(t),this.offset=0;let A,i,n,r,o,s=Tm.prototype.utf8Write?function(m,J){return E.utf8Write(m,J,4294967295)}:Ac&&Ac.encodeInto?function(m,J){return Ac.encodeInto(m,E.subarray(J)).written}:!1,a=this;t||(t={});let c=t&&t.sequential,I=t.structures||t.saveStructures,l=t.maxSharedStructures;if(l==null&&(l=I?32:0),l>8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&&t.moreTypes==null&&(this.moreTypes=!0);let g=t.maxOwnStructures;g==null&&(g=I?32:64),!this.structures&&t.useRecords!=!1&&(this.structures=[]);let u=l>32||g+l>64,f=l+64,C=l+g+64;if(C>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let F=[],d=0,B=0;this.pack=this.encode=function(m,J){if(E||(E=new tc(8192),le=E.dataView||(E.dataView=new DataView(E.buffer,0,8192)),p=0),gt=E.length-10,gt-p<2048?(E=new tc(E.length),le=E.dataView||(E.dataView=new DataView(E.buffer,0,E.length)),gt=E.length-10,p=0):p=p+7&2147483640,i=p,J&n3&&(p+=J&255),o=a.structuredClone?new Map:null,a.bundleStrings&&typeof m!="string"?(ke=[],ke.size=1/0):ke=null,r=a.structures,r){r.uninitialized&&(r=a._mergeStructures(a.getStructures()));let U=r.sharedLength||0;if(U>l)throw new Error("Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to "+r.sharedLength);if(!r.transitions){r.transitions=Object.create(null);for(let G=0;G<U;G++){let z=r[G];if(!z)continue;let O,L=r.transitions;for(let ae=0,ne=z.length;ae<ne;ae++){let We=z[ae];O=L[We],O||(O=L[We]=Object.create(null)),L=O}L[yr]=G+64}this.lastNamedStructuresLength=U}c||(r.nextId=U+64)}n&&(n=!1);let M;try{a.randomAccessStructure&&m&&m.constructor&&m.constructor===Object?Bt(m):k(m);let U=ke;if(ke&&zm(i,k,0),o&&o.idsToInsert){let G=o.idsToInsert.sort((ae,ne)=>ae.offset>ne.offset?1:-1),z=G.length,O=-1;for(;U&&z>0;){let ae=G[--z].offset+i;ae<U.stringsPosition+i&&O===-1&&(O=0),ae>U.position+i?O>=0&&(O+=6):(O>=0&&(le.setUint32(U.position+i,le.getUint32(U.position+i)+O),O=-1),U=U.previous,z++)}O>=0&&U&&le.setUint32(U.position+i,le.getUint32(U.position+i)+O),p+=G.length*6,p>gt&&q(p),a.offset=p;let L=XN(E.subarray(i,p),G);return o=null,L}return a.offset=p,J&Zm?(E.start=i,E.end=p,E):E.subarray(i,p)}catch(U){throw M=U,U}finally{if(r&&(Q(),n&&a.saveStructures)){let U=r.sharedLength||0,G=E.subarray(i,p),z=ZN(r,a);if(!M)return a.saveStructures(z,z.isCompatible)===!1?a.pack(m,J):(a.lastNamedStructuresLength=U,G)}J&i3&&(p=i)}};let Q=()=>{B<10&&B++;let m=r.sharedLength||0;if(r.length>m&&!c&&(r.length=m),d>1e4)r.transitions=null,B=0,d=0,F.length>0&&(F=[]);else if(F.length>0&&!c){for(let J=0,M=F.length;J<M;J++)F[J][yr]=0;F=[]}},y=m=>{var J=m.length;J<16?E[p++]=144|J:J<65536?(E[p++]=220,E[p++]=J>>8,E[p++]=J&255):(E[p++]=221,le.setUint32(p,J),p+=4);for(let M=0;M<J;M++)k(m[M])},k=m=>{p>gt&&(E=q(p));var J=typeof m,M;if(J==="string"){let U=m.length;if(ke&&U>=4&&U<4096){if((ke.size+=U)>zN){let L,ae=(ke[0]?ke[0].length*3+ke[1].length:0)+10;p+ae>gt&&(E=q(p+ae));let ne;ke.position?(ne=ke,E[p]=200,p+=3,E[p++]=98,L=p-i,p+=4,zm(i,k,0),le.setUint16(L+i-3,p-i-L)):(E[p++]=214,E[p++]=98,L=p-i,p+=4),ke=["",""],ke.previous=ne,ke.size=0,ke.position=L}let O=_N.test(m);ke[O?0:1]+=m,E[p++]=193,k(O?-U:U);return}let G;U<32?G=1:U<256?G=2:U<65536?G=3:G=5;let z=U*3;if(p+z>gt&&(E=q(p+z)),U<64||!s){let O,L,ae,ne=p+G;for(O=0;O<U;O++)L=m.charCodeAt(O),L<128?E[ne++]=L:L<2048?(E[ne++]=L>>6|192,E[ne++]=L&63|128):(L&64512)===55296&&((ae=m.charCodeAt(O+1))&64512)===56320?(L=65536+((L&1023)<<10)+(ae&1023),O++,E[ne++]=L>>18|240,E[ne++]=L>>12&63|128,E[ne++]=L>>6&63|128,E[ne++]=L&63|128):(E[ne++]=L>>12|224,E[ne++]=L>>6&63|128,E[ne++]=L&63|128);M=ne-p-G}else M=s(m,p+G);M<32?E[p++]=160|M:M<256?(G<2&&E.copyWithin(p+2,p+1,p+1+M),E[p++]=217,E[p++]=M):M<65536?(G<3&&E.copyWithin(p+3,p+2,p+2+M),E[p++]=218,E[p++]=M>>8,E[p++]=M&255):(G<5&&E.copyWithin(p+5,p+3,p+3+M),E[p++]=219,le.setUint32(p,M),p+=4),p+=M}else if(J==="number")if(m>>>0===m)m<32||m<128&&this.useRecords===!1||m<64&&!this.randomAccessStructure?E[p++]=m:m<256?(E[p++]=204,E[p++]=m):m<65536?(E[p++]=205,E[p++]=m>>8,E[p++]=m&255):(E[p++]=206,le.setUint32(p,m),p+=4);else if(m>>0===m)m>=-32?E[p++]=256+m:m>=-128?(E[p++]=208,E[p++]=m+256):m>=-32768?(E[p++]=209,le.setInt16(p,m),p+=2):(E[p++]=210,le.setInt32(p,m),p+=4);else{let U;if((U=this.useFloat32)>0&&m<4294967296&&m>=-2147483648){E[p++]=202,le.setFloat32(p,m);let G;if(U<4||(G=m*jI[(E[p]&127)<<1|E[p+1]>>7])>>0===G){p+=4;return}else p--}E[p++]=203,le.setFloat64(p,m),p+=8}else if(J==="object"||J==="function")if(!m)E[p++]=192;else{if(o){let G=o.get(m);if(G){if(!G.id){let z=o.idsToInsert||(o.idsToInsert=[]);G.id=z.push(G)}E[p++]=214,E[p++]=112,le.setUint32(p,G.id),p+=4;return}else o.set(m,{offset:p-i})}let U=m.constructor;if(U===Object)b(m,!0);else if(U===Array)y(m);else if(U===Map)if(this.mapAsEmptyObject)E[p++]=128;else{M=m.size,M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);for(let[G,z]of m)k(G),k(z)}else{for(let G=0,z=qf.length;G<z;G++){let O=_m[G];if(m instanceof O){let L=qf[G];if(L.write){L.type&&(E[p++]=212,E[p++]=L.type,E[p++]=0);let Zt=L.write.call(this,m);Zt===m?Array.isArray(m)?y(m):b(m):k(Zt);return}let ae=E,ne=le,We=p;E=null;let Xt;try{Xt=L.pack.call(this,m,Zt=>(E=ae,ae=null,p+=Zt,p>gt&&q(p),{target:E,targetView:le,position:p-Zt}),k)}finally{ae&&(E=ae,le=ne,p=We,gt=E.length-10)}Xt&&(Xt.length+p>gt&&q(Xt.length+p),p=TN(Xt,E,p,L.type));return}}if(Array.isArray(m))y(m);else{if(m.toJSON){let G=m.toJSON();if(G!==m)return k(G)}if(J==="function")return k(this.writeFunction&&this.writeFunction(m));b(m,!m.hasOwnProperty)}}}else if(J==="boolean")E[p++]=m?195:194;else if(J==="bigint"){if(m<BigInt(1)<<BigInt(63)&&m>=-(BigInt(1)<<BigInt(63)))E[p++]=211,le.setBigInt64(p,m);else if(m<BigInt(1)<<BigInt(64)&&m>0)E[p++]=207,le.setBigUint64(p,m);else if(this.largeBigIntToFloat)E[p++]=203,le.setFloat64(p,Number(m));else if(this.useBigIntExtension&&m<2n**1023n&&m>-(2n**1023n)){E[p++]=199,p++,E[p++]=66;let U=[],G;do{let z=m&0xffn;G=(z&0x80n)===(m<0n?0x80n:0n),U.push(z),m>>=8n}while(!((m===0n||m===-1n)&&G));E[p-2]=U.length;for(let z=U.length;z>0;)E[p++]=Number(U[--z]);return}else throw new RangeError(m+" was too large to fit in MessagePack 64-bit integer format, use useBigIntExtension or set largeBigIntToFloat to convert to float-64");p+=8}else if(J==="undefined")this.encodeUndefinedAsNil?E[p++]=192:(E[p++]=212,E[p++]=0,E[p++]=0);else throw new Error("Unknown type: "+J)},D=this.variableMapSize||this.coercibleKeyAsNumber?m=>{let J=Object.keys(m),M=J.length;M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);let U;if(this.coercibleKeyAsNumber)for(let G=0;G<M;G++){U=J[G];let z=Number(U);k(isNaN(z)?U:z),k(m[U])}else for(let G=0;G<M;G++)k(U=J[G]),k(m[U])}:(m,J)=>{E[p++]=222;let M=p-i;p+=2;let U=0;for(let G in m)(J||m.hasOwnProperty(G))&&(k(G),k(m[G]),U++);E[M+++i]=U>>8,E[M+i]=U&255},S=this.useRecords===!1?D:t.progressiveRecords&&!u?(m,J)=>{let M,U=r.transitions||(r.transitions=Object.create(null)),G=p++-i,z;for(let O in m)if(J||m.hasOwnProperty(O)){if(M=U[O],M)U=M;else{let L=Object.keys(m),ae=U;U=r.transitions;let ne=0;for(let We=0,Xt=L.length;We<Xt;We++){let Zt=L[We];M=U[Zt],M||(M=U[Zt]=Object.create(null),ne++),U=M}G+i+1==p?(p--,Z(U,L,ne)):xe(U,L,G,ne),z=!0,U=ae[O]}k(m[O])}if(!z){let O=U[yr];O?E[G+i]=O:xe(U,Object.keys(m),G,0)}}:(m,J)=>{let M,U=r.transitions||(r.transitions=Object.create(null)),G=0;for(let O in m)(J||m.hasOwnProperty(O))&&(M=U[O],M||(M=U[O]=Object.create(null),G++),U=M);let z=U[yr];z?z>=96&&u?(E[p++]=((z-=96)&31)+96,E[p++]=z>>5):E[p++]=z:Z(U,U.__keys__||Object.keys(m),G);for(let O in m)(J||m.hasOwnProperty(O))&&k(m[O])},N=typeof this.useRecords=="function"&&this.useRecords,b=N?(m,J)=>{N(m)?S(m,J):D(m,J)}:S,q=m=>{let J;if(m>16777216){if(m-i>Ym)throw new Error("Packed buffer would be larger than maximum buffer size");J=Math.min(Ym,Math.round(Math.max((m-i)*(m>67108864?1.25:2),4194304)/4096)*4096)}else J=(Math.max(m-i<<2,E.length-1)>>12)+1<<12;let M=new tc(J);return le=M.dataView||(M.dataView=new DataView(M.buffer,0,J)),m=Math.min(m,E.length),E.copy?E.copy(M,0,i,m):M.set(E.slice(i,m)),p-=i,i=0,gt=M.length-10,E=M},Z=(m,J,M)=>{let U=r.nextId;U||(U=64),U<f&&this.shouldShareStructure&&!this.shouldShareStructure(J)?(U=r.nextOwnId,U<C||(U=f),r.nextOwnId=U+1):(U>=C&&(U=f),r.nextId=U+1);let G=J.highByte=U>=96&&u?U-96>>5:-1;m[yr]=U,m.__keys__=J,r[U-64]=J,U<f?(J.isShared=!0,r.sharedLength=U-63,n=!0,G>=0?(E[p++]=(U&31)+96,E[p++]=G):E[p++]=U):(G>=0?(E[p++]=213,E[p++]=114,E[p++]=(U&31)+96,E[p++]=G):(E[p++]=212,E[p++]=114,E[p++]=U),M&&(d+=B*M),F.length>=g&&(F.shift()[yr]=0),F.push(m),k(J))},xe=(m,J,M,U)=>{let G=E,z=p,O=gt,L=i;E=hs,p=0,i=0,E||(hs=E=new tc(8192)),gt=E.length-10,Z(m,J,U),hs=E;let ae=p;if(E=G,p=z,gt=O,i=L,ae>1){let ne=p+ae-1;ne>gt&&q(ne);let We=M+i;E.copyWithin(We+ae,We+1,p),E.set(hs.slice(0,ae),We),p=ne}else E[M+i]=hs[0]},Bt=(m,J)=>{let M=VN(m,E,i,p,r,q,(U,G,z)=>{if(z)return n=!0;p=G;let O=E;return k(U),Q(),O!==E?{position:p,targetView:le,target:E}:p},this);if(M===0)return b(m,!0);p=M}}useBuffer(t){E=t,le=new DataView(E.buffer,E.byteOffset,E.byteLength),p=0}clearSharedData(){this.structures&&(this.structures=[]),this.typedStructs&&(this.typedStructs=[])}};_m=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,Cs];qf=[{pack(e,t,A){let i=e.getTime()/1e3;if((this.useTimestamp32||e.getMilliseconds()===0)&&i>=0&&i<4294967296){let{target:n,targetView:r,position:o}=t(6);n[o++]=214,n[o++]=255,r.setUint32(o,i)}else if(i>0&&i<4294967296){let{target:n,targetView:r,position:o}=t(10);n[o++]=215,n[o++]=255,r.setUint32(o,e.getMilliseconds()*4e6+(i/1e3/4294967296>>0)),r.setUint32(o+4,i)}else if(isNaN(i)){if(this.onInvalidDate)return t(0),A(this.onInvalidDate());let{target:n,targetView:r,position:o}=t(3);n[o++]=212,n[o++]=255,n[o++]=255}else{let{target:n,targetView:r,position:o}=t(15);n[o++]=199,n[o++]=12,n[o++]=255,r.setUint32(o,e.getMilliseconds()*1e6),r.setBigInt64(o+4,BigInt(Math.floor(i)))}}},{pack(e,t,A){if(this.setAsEmptyObject)return t(0),A({});let i=Array.from(e),{target:n,position:r}=t(this.moreTypes?3:0);this.moreTypes&&(n[r++]=212,n[r++]=115,n[r++]=0),A(i)}},{pack(e,t,A){let{target:i,position:n}=t(this.moreTypes?3:0);this.moreTypes&&(i[n++]=212,i[n++]=101,i[n++]=0),A([e.name,e.message])}},{pack(e,t,A){let{target:i,position:n}=t(this.moreTypes?3:0);this.moreTypes&&(i[n++]=212,i[n++]=120,i[n++]=0),A([e.source,e.flags])}},{pack(e,t){this.moreTypes?Pm(e,16,t):Vm(ic?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let A=e.constructor;A!==Tm&&this.moreTypes?Pm(e,Jf.indexOf(A.name),t):Vm(e,t)}},{pack(e,t){let{target:A,position:i}=t(1);A[i]=193}}];function Pm(e,t,A,i){let n=e.byteLength;if(n+1<256){var{target:r,position:o}=A(4+n);r[o++]=199,r[o++]=n+1}else if(n+1<65536){var{target:r,position:o}=A(5+n);r[o++]=200,r[o++]=n+1>>8,r[o++]=n+1&255}else{var{target:r,position:o,targetView:s}=A(7+n);r[o++]=201,s.setUint32(o,n+1),o+=4}r[o++]=116,r[o++]=t,r.set(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),o)}function Vm(e,t){let A=e.byteLength;var i,n;if(A<256){var{target:i,position:n}=t(A+2);i[n++]=196,i[n++]=A}else if(A<65536){var{target:i,position:n}=t(A+3);i[n++]=197,i[n++]=A>>8,i[n++]=A&255}else{var{target:i,position:n,targetView:r}=t(A+5);i[n++]=198,r.setUint32(n,A),n+=4}i.set(e,n)}function TN(e,t,A,i){let n=e.length;switch(n){case 1:t[A++]=212;break;case 2:t[A++]=213;break;case 4:t[A++]=214;break;case 8:t[A++]=215;break;case 16:t[A++]=216;break;default:n<256?(t[A++]=199,t[A++]=n):n<65536?(t[A++]=200,t[A++]=n>>8,t[A++]=n&255):(t[A++]=201,t[A++]=n>>24,t[A++]=n>>16&255,t[A++]=n>>8&255,t[A++]=n&255)}return t[A++]=i,t.set(e,A),A+=n,A}function XN(e,t){let A,i=t.length*6,n=e.length-i;for(;A=t.pop();){let r=A.offset,o=A.id;e.copyWithin(r+i,r,n),i-=6;let s=r+i;e[s++]=214,e[s++]=105,e[s++]=o>>24,e[s++]=o>>16&255,e[s++]=o>>8&255,e[s++]=o&255,n=r}return e}function zm(e,t,A){if(ke.length>0){le.setUint32(ke.position+e,p+A-ke.position-e),ke.stringsPosition=p-e;let i=ke;ke=null,t(i[0]),t(i[1])}}function ZN(e,t){return e.isCompatible=A=>{let i=!A||(t.lastNamedStructuresLength||0)===A.length;return i||t._mergeStructures(A),i},e}var Xm=new Qn({useRecords:!1}),WN=Xm.pack,jN=Xm.pack;var{NEVER:$N,ALWAYS:e3,DECIMAL_ROUND:t3,DECIMAL_FIT:A3}=ec,Zm=512,i3=1024,n3=2048;var Yf=K(ty(),1),rR=Yf.default.configure,Ay=Yf.default;var iy={site:{list:"0",group:"1",load:"2",update:"3"},comp:{new:"4",list:"5",group:"6",load:"7"},page:{list:"8",load:"9",cache:"10"},yjs:{um:"11",sv_local:"12",diff_local:"13",sv_remote:"14"},client:{info:"15"},code:{load:"16",edit:"17",action:"18"}},ny={0:"site.list",1:"site.group",2:"site.load",3:"site.update",4:"comp.new",5:"comp.list",6:"comp.group",7:"comp.load",8:"page.list",9:"page.load",10:"page.cache",11:"yjs.um",12:"yjs.sv_local",13:"yjs.diff_local",14:"yjs.sv_remote",15:"client.info",16:"code.load",17:"code.edit",18:"code.action"};var Ce=window;var ry=e=>Bs(`prasi-user-${e}`,"default");var oy=new Qn({structuredClone:!0}),ps={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3};Ce.debug=new Proxy({},{get(e,t,A){if(t==="off")return ps.debug=!1,localStorage.removeItem("prasi-ws-debug"),console.clear(),["WS DEBUG: Deactivated"];if(t==="on")return ps.debug=!0,localStorage.setItem("prasi-ws-debug","1"),console.clear(),["WS DEBUG: Activated"]}});var kA={ws:null,client_id:"",idb:null,event:null},Pf={action:{pending:{}}},sy=(e,t)=>{let A=oy.pack(t);ps.debug&&console.log("%c\u2B06","color:blue",Iy(A.length,0),t),e.send(A)},ay=async e=>{let{user_id:t,site_id:A,page_id:i,events:n}=e;return kA.idb=ry(t),await c3({user_id:t,site_id:A,page_id:i},n),new Cm(iy,({target:r,trapName:o,value:s,key:a,DEFAULT:c,PROXY:I})=>{if(o==="set")throw new TypeError("target is immutable");return typeof s=="string"?(...l)=>new Promise(g=>{f3({code:s,resolve:g,args:l})}):o==="get"&&typeof s=="object"&&s!==null?I:c})},c3=(e,t)=>{let{user_id:A,page_id:i,site_id:n}=e;return kA.event=t,Ce.offline?new Promise(async r=>{r();let o="editor_start",s=await u3(o);t[o]&&t[o](s)}):new Promise((r,o)=>{if(!kA.ws){let s=0,a=()=>{let c=new URL(Ce.basehost||location.href);c.pathname="/sync",c.protocol=c.protocol==="http:"?"ws:":"wss:";let I=new WebSocket(`${c.protocol}//${c.host}${c.pathname}`);I.onopen=()=>{sy(I,{type:1,user_id:A,site_id:n,page_id:i}),kA.ws=I,t.opened()},I.onclose=async()=>{t.disconnected().reconnect?setTimeout(async()=>{s++,a()},s*ps.reconnectTimeout):o()},I.onmessage=async l=>{let g=l.data,u=oy.unpack(Buffer.from(await g.arrayBuffer()));if(ps.debug&&console.log("%c\u2B07","color:red",Iy(g.size,0),u),u.type===0)kA.client_id=u.client_id,t.shakehand(u.client_id),r();else if(u.type===2){let f=u.event;t[f]&&(l3.includes(f)&&g3(f,u.data),t[f](u.data))}else if(u.type===4){let f=Pf.action.pending[u.argid];if(f){f.resolve(u.val),delete Pf.action.pending[u.argid];let C=kA.idb;C&&await ds(u.argid,u.val,C)}}}};a()}})},l3=["editor_start"],g3=async(e,t)=>{let A=kA.idb;if(A){let i=await XI(`ev-${e}`);await ds(i,t,A)}},u3=async e=>{let t=kA.idb;if(t){let A=await XI(`ev-${e}`);return await mr(A,t)}},f3=async e=>{let{args:t,code:A,resolve:i}=e,n=kA.ws,r=kA.idb;if(r){let o=Ay(t),s=ny[A],a=await XI(`op-${s}-${o}`);if(n&&n.readyState===n.OPEN)Pf.action.pending[a]={ts:Date.now(),resolve:i},sy(n,{type:3,code:A,args:t,argid:a});else{let c=await mr(a,r);i(c)}}};function Iy(e,t){if(e==0)return"0 Bytes";var A=1024,i=t||2,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(A));return parseFloat((e/Math.pow(A,r)).toFixed(i))+" "+n[r]}var wr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Fr(e={}){let t={options:e,rootNode:ly(),staticRoutesMap:{}},A=i=>e.strictTrailingSlash?i:i.replace(/\/$/,"")||"/";if(e.routes)for(let i in e.routes)cy(t,A(i),e.routes[i]);return{ctx:t,lookup:i=>B3(t,A(i)),insert:(i,n)=>cy(t,A(i),n),remove:i=>d3(t,A(i))}}function B3(e,t){let A=e.staticRoutesMap[t];if(A)return A.data;let i=t.split("/"),n={},r=!1,o=null,s=e.rootNode,a=null;for(let c=0;c<i.length;c++){let I=i[c];s.wildcardChildNode!==null&&(o=s.wildcardChildNode,a=i.slice(c).join("/"));let l=s.children.get(I);if(l!==void 0)s=l;else if(s=s.placeholderChildNode,s!==null)n[s.paramName]=I,r=!0;else break}return(s===null||s.data===null)&&o!==null&&(s=o,n[s.paramName||"_"]=a,r=!0),s?r?{...s.data,params:r?n:void 0}:s.data:null}function cy(e,t,A){let i=!0,n=t.split("/"),r=e.rootNode,o=0;for(let s of n){let a;if(a=r.children.get(s))r=a;else{let c=C3(s);a=ly({type:c,parent:r}),r.children.set(s,a),c===wr.PLACEHOLDER?(a.paramName=s==="*"?`_${o++}`:s.slice(1),r.placeholderChildNode=a,i=!1):c===wr.WILDCARD&&(r.wildcardChildNode=a,a.paramName=s.slice(3)||"_",i=!1),r=a}}return r.data=A,i===!0&&(e.staticRoutesMap[t]=r),r}function d3(e,t){let A=!1,i=t.split("/"),n=e.rootNode;for(let r of i)if(n=n.children.get(r),!n)return A;if(n.data){let r=i[i.length-1];if(n.data=null,Object.keys(n.children).length===0){let o=n.parent;o.children.delete(r),o.wildcardChildNode=null,o.placeholderChildNode=null}A=!0}return A}function ly(e={}){return{type:e.type||wr.NORMAL,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildNode:null}}function C3(e){return e.startsWith("**")?wr.WILDCARD:e[0]===":"||e==="*"?wr.PLACEHOLDER:wr.NORMAL}var Vf={id:"",name:"",domain:"",config:{api_url:""},js:"",js_compiled:"",responsive:"",layout:{id:"--",meta:void 0,entry:[]},code:{snapshot:{},mode:"old"}},Q3={id:"",name:"",url:"",snapshot:null,comps:{}};var nt={active_id:!1,comp_id:!1,instance_comp_id:!1,instance_item_id:!1},rc={should_render_main:!0,hover:{id:""},script_nav:{list:[],idx:-1},text:{id:"",content:"",timeout:null,el:null},get item_id(){return nt.active_id===!1&&(nt.active_id=localStorage.getItem("prasi-active-id")||""),nt.active_id||""},set item_id(e){localStorage.setItem("prasi-active-id",e||""),nt.active_id=e||""},get comp_id(){return nt.comp_id===!1&&(nt.comp_id=localStorage.getItem("prasi-comp-id")||""),nt.comp_id||""},set comp_id(e){localStorage.setItem("prasi-comp-id",e||""),nt.comp_id=e||""},instance:{get comp_id(){return nt.instance_comp_id===!1&&(nt.instance_comp_id=localStorage.getItem("prasi-instance-comp-id")||""),nt.instance_comp_id||""},set comp_id(e){localStorage.setItem("prasi-instance-comp-id",e||""),nt.instance_comp_id=e||""},get item_id(){return nt.instance_item_id===!1&&(nt.instance_item_id=localStorage.getItem("prasi-instance-item-id")||""),nt.instance_item_id||""},set item_id(e){localStorage.setItem("prasi-instance-item-id",e||""),nt.instance_item_id=e||""}}},kR={mode:"",user:{id:"",username:"",client_id:""},clients:{},status:"init",preview:{url_cache:new Set,route_cache:Fr(),page_cache:{},meta_cache:{}},sync:null,sync_assigned:!1,site:QA(Vf),site_dts:"",script:{site_types:{},loaded:!1,do_edit:async(e,t)=>{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:Q3,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var py=K(oc());var Ey=e=>{let{item:t,item_comp:A,ids:i}=e,n=QA(A);if(my(n,i),t.id&&(n.id=t.id),n.component){if(n.component.props&&t.component)for(let r of Object.keys(n.component.props)){let o=t.component.props[r],s=n.component.props[r];o&&(s.value=o.value,s.valueBuilt=o.valueBuilt,s.jsxCalledBy=o.jsxCalledBy,s.content=o.content)}n.component.instances=t.component?.instances,n.component.style=t.component?.style}for(let r of Object.keys(t))delete t[r];for(let[r,o]of Object.entries(n))t[r]=o},my=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,py.createId)()),e.id=t[e.id],e.childs)for(let A of e.childs)my(A,t)};var yy=e=>{for(let[t,A]of Object.entries(e.item_comp.component?.props||{})){let i=QA(A),n=e.item.component?.props;n&&n[t]&&(i.value=n[t].value,i.valueBuilt=n[t].valueBuilt,n[t].content&&(i.content=n[t].content)),i&&e.each(t,i)}};var sc=e=>{let t={};for(let[A,i]of Object.entries(e))if(A==="childs"){if(t.childs=[],i&&Array.isArray(i))for(let n of i)t.childs.push({id:n.id})}else t[A]=i;return t};var wy=(e,t)=>{let{item:A}=t;if(A.type==="item"&&A.component?.id&&t.parent?.item.id){let i=e.comps[A.component.id];if(e.on?.visit_component&&e.on.visit_component(A,t.root||t.item),!i)return;if(i){let n;if(e.mode==="page"?(A.component.instances||(A.component.instances={}),n=A.component.instances):n=t.parent?.root_instances,n){let o=n[A.id];n[A.id]||(n[A.id]={},o=n[A.id]),Ey({item:A,item_comp:i,ids:o})}let r={item:sc(A),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:n};e.on?.visit&&e.on.visit(r,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[A.id]=r),yy({item:A,item_comp:i,instance:n?n[A.id]:{},each(o,s){let a=A.component?.id;s.meta?.type==="content-element"&&a&&s.content&&(s.content.name=o,vt({...e,mode:"comp"},{item:s.content,root:t.root||s.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:o},parent:{item:r.item,instance_id:A.id,comp:i,root_instances:n}}))}});for(let o of Object.values(A.childs))o.name.startsWith("jsx:")||vt({...e,mode:"comp"},{item:o,is_root:!1,root:t.root||t.item,parent:{item:A,instance_id:A.id,root_instances:n,comp:i}})}}};var vt=(e,t)=>{let A=t.item;if(A.type==="item"&&A.component?.id&&t.ignore_first_component!==!0){wy(e,t);return}let i={item:sc(A),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(i.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(i,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[i.item.id]=i),A.childs){for(let[n,r]of Object.entries(A.childs))if(r.id){let o={item:r,is_root:!1,root:t.root||t.item,parent:{item:i.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(o.jsx_prop={...t.jsx_prop,is_root:!1}),vt(e,o)}}};var ac=async(e,t,A,i)=>{let n=new Set,r={root:t};if(vt({...e,on:{visit_component:({component:o})=>{if(o){let{id:s}=o;if(e.comps[s]||(!i||i&&!i.has(s))&&n.add(s),o?.props)for(let[a,c]of Object.entries(o.props))c.content&&vt({...e,on:{visit_component:({component:I})=>{if(I){let{id:l}=I;e.comps[l]||(!i||i&&!i.has(l))&&n.add(l)}},visit(I,l){A.visit&&A.visit(I,l,r)}},set_meta:!1,note:"init-load-comp-prop"},{item:c.content})}},visit(o,s){A.visit&&A.visit(o,s,r)}},set_meta:!1,note:"init-load-comp"},{item:t,ignore_first_component:!0}),A.done&&A.done(r),n.size>0){await A.load([...n]);let o=i;o||(o=new Set),n.forEach(s=>{o&&o.add(s)});for(let s of[...o]){let a=e.comps[s];a&&await ac(e,a,A,o)}}};var S3=Bs("prasi-cache","prasi-cache-store"),En={timeout:null,store:S3},Ic=(e,t)=>{let A=[...Fy(t,"navigate(",")"),...Fy(t,"href = ",";")],i=e.page.cur.id;e.page.navs[i]||(e.page.navs[i]=new Set);for(let n of A)e.page.navs[i].add(n);clearTimeout(En.timeout),En.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[i])})},100)},Fy=(e,t,A)=>{let i=0,n=0,r=[];for(;;){let o=e.indexOf(t,i);if(n=i,o>=0){let s=e[o+t.length];if(s==='"'||s==="'"||s==="`"){let a=e.indexOf(`${s}${A}`,o+t.length+1),c=e.substring(o+t.length+1,a);i=a+2+A.length,r.push(c)}}if(n===i)break}return r};var ky=K(oc());var cc=()=>{let e=document.activeElement;return!!(e&&e.attributes.getNamedItem("contenteditable"))};var Dy=K(oc()),lc=e=>{let{m:t,root:A,mitem:i,meta:n}=e;if(t.jsx_prop&&t.parent?.instance_id){let r=n[t.parent?.instance_id];if(r&&t.jsx_prop.is_root){let o=r.item.component?.props[t.jsx_prop.name];o&&(o.content=t.item)}}if(t.parent)if(t.parent.id==="root")t.item.id===A.id&&(t.mitem=i);else{let r=n[t.parent.id];if(r.mitem)if(t.jsx_prop?.is_root===!0){let o=r.mitem.get("component")?.get("props");if(o){let s=o.get(t.jsx_prop.name);if(s){let a=s.get("content");if(!a){let c=new Y.Map;syncronize(c,{id:(0,Dy.createId)(),name:t.jsx_prop.name,type:"item",dim:{w:"full",h:"full"},childs:[],adv:{css:""}}),s.set("content",c)}a&&(t.mitem=a)}}}else r.mitem.get("childs")?.forEach(o=>{o&&o.get&&o.get("id")===t.item.id&&(t.mitem=o)});if(t.item.component?.props)for(let[o,s]of Object.entries(t.item.component.props)){let a=t.mitem?.get("component")?.get("props")?.get(o);if(!a){let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}if(s.content)if(a){let c=n[s.content.id];c&&(c.mitem=a.get("content"))}else{let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}}}};var gc=(e,t,A,i)=>{if(t.parent?.id==="root")e.page.doc?.getMap("map").get("root")?.get("childs")?.forEach(n=>{n.get("id")===t.item.id&&(t.mitem=n)});else{let n=A[t.parent?.id||""];n&&n.mitem&&n.mitem.get("childs")?.forEach(r=>{r&&r.get&&r.get("id")===t.item.id&&(t.mitem=r)})}if(!t.item||!t.item.id)return console.warn("Emptry Tree Item ",t),null;if(i.find(n=>n.id===t.item.id))console.warn("Double Tree Item: ",t.item.id,t.item.name);else if(!t.parent?.comp_id)i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t});else if(t.jsx_prop)if(t.jsx_prop.is_root)t.jsx_prop.name!=="child"&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.jsx_prop.name,data:t});else{if(t.jsx_prop.name==="child"&&t.parent.instance_id){let n=A[t.parent.instance_id],r=n.item.component?.props.child.content?.id;r&&n.mitem&&A[r].item.childs.find(s=>t.item.id===s.id)&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.item.name,data:t})}t.parent.id!==t.parent.instance_id&&i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t})}};var fc=async(e,t,A)=>{if(e.comp.list[t])return;let i=new Y.Doc;Y.applyUpdate(i,Et(A));let n=i.getMap("map").get("root");if(n){e.comp.loaded[t]=n.toJSON(),typeof e.comp.list[t]?.on_update=="function"&&i.off("update",e.comp.list[t].on_update);let r=await uc(e,i,t);if(r){let{meta:o,tree:s}=r;e.comp.list[t]?(e.comp.list[t].meta=o,e.comp.list[t].tree=s):(e.comp.list[t]={comp:{id:t,snapshot:A},doc:i,meta:o,tree:s,async on_update(a,c){if(c==="sv_remote"||c==="local")return;let I=await e.sync?.yjs.sv_local("comp",t,Buffer.from(rA(a)));if(I){let l=Y.encodeStateAsUpdate(i,Et(I.sv));Y.applyUpdate(i,Et(I.diff),"local"),await e.sync?.yjs.diff_local("comp",t,Buffer.from(rA(l)));let g=await uc(e,e.comp.list[t].doc,t);if(g&&(e.comp.list[t].meta=g.meta,e.comp.list[t].tree=g.tree),e.comp.loaded[t]=i.getMap("map").get("root")?.toJSON(),cc())return;IA(e),e.render()}}},i.on("update",e.comp.list[t].on_update))}}},uc=async(e,t,A)=>{let i=t.getMap("map").get("root");if(!i)return;let n={},r=[],o=i.toJSON();return e.comp.loaded[A]=o,await ac({comps:e.comp.loaded,meta:n,set_meta:!1,mode:"comp"},o,{load:async s=>{let a=s.filter(I=>!e.comp.loaded[I]),c=await e.sync?.comp.load(a,!0);if(c){let I=Object.entries(c);for(let[l,g]of I)g&&g.snapshot&&!e.comp.list[l]&&await fc(e,l,g.snapshot)}}}),vt({comps:e.comp.loaded,meta:n,mode:"comp",on:{async visit(s){gc(e,s,n,r),lc({m:s,root:o,mitem:i,meta:n,new_prop_jsx(a,c,I,l){_f.list.push(()=>{let g=new Y.Map;l.content&&(l.content.id=(0,ky.createId)()),syncronize(g,l),c.set(I,g)})}})}},note:"load-comp-scan-meta"},{item:o,ignore_first_component:!0}),_f.list.length>0&&e.page.doc?.transact(()=>{for(let s of _f.list)s()}),e.comp.loaded[A]=o,{meta:n,tree:r,item:o}},_f={list:[]};var IA=async(e,t)=>{if(document.activeElement){let o=document.activeElement;if(o.tagName==="DIV"&&o.getAttribute("contenteditable")==="true")return}rc.should_render_main=!0;let A=e.site.layout&&e.site.layout.id===e.page.cur.id&&t?.note==="load-layout page-init";for(let[o,s]of Object.entries(e.comp.list))if(!e.comp.loaded[o]){let c=s.doc.getMap("map").get("root")?.toJSON();c&&(e.comp.loaded[o]=c)}let i=e.page.doc?.getMap("map").get("root"),n=[];i?.get("childs")?.forEach(o=>n.push(o));let r={};e.page.tree=[];for(let o of n){let s=o.toJSON();s&&vt({note:"tree-rebuild",comps:e.comp.loaded,meta:r,mode:"page",on:{async visit(a){A||((a.parent?.instance_id!==a.parent?.id||a.jsx_prop)&&gc(e,a,r,e.page.tree),lc({m:a,root:s,mitem:o,meta:r,new_prop_jsx(c,I,l,g){if(!I.get(l)){let u=new Y.Map;syncronize(u,g),I.set(l,u)}}}))}}},{item:s})}if(A)e.site.layout.meta=r;else{let o="root";if(e.site.layout&&e.site.layout.meta){for(let[s,a]of Object.entries(e.site.layout.meta))if(a.item.name==="content"){o=a.item.id;break}e.page.root_id=o}if(e.site.layout&&e.site.layout.id===e.page.cur.id)e.page.meta=r;else if(o!=="root"){for(let s of Object.values(r))s.parent?.id==="root"&&(s.parent.id=o);e.page.meta={...e.site.layout.meta,...r}}else e.page.meta=r}};function ys(e,t){return function(){return e.apply(t,arguments)}}var{toString:U3}=Object.prototype,{getPrototypeOf:Zf}=Object,dc=(e=>t=>{let A=U3.call(t);return e[A]||(e[A]=A.slice(8,-1).toLowerCase())})(Object.create(null)),SA=e=>(e=e.toLowerCase(),t=>dc(t)===e),Cc=e=>t=>typeof t===e,{isArray:Dr}=Array,ws=Cc("undefined");function N3(e){return e!==null&&!ws(e)&&e.constructor!==null&&!ws(e.constructor)&&_t(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Ny=SA("ArrayBuffer");function x3(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ny(e.buffer),t}var G3=Cc("string"),_t=Cc("function"),xy=Cc("number"),Qc=e=>e!==null&&typeof e=="object",H3=e=>e===!0||e===!1,Bc=e=>{if(dc(e)!=="object")return!1;let t=Zf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},M3=SA("Date"),v3=SA("File"),R3=SA("Blob"),J3=SA("FileList"),q3=e=>Qc(e)&&_t(e.pipe),K3=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||_t(e.append)&&((t=dc(e))==="formdata"||t==="object"&&_t(e.toString)&&e.toString()==="[object FormData]"))},b3=SA("URLSearchParams"),O3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Fs(e,t,{allOwnKeys:A=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),Dr(e))for(i=0,n=e.length;i<n;i++)t.call(null,e[i],i,e);else{let r=A?Object.getOwnPropertyNames(e):Object.keys(e),o=r.length,s;for(i=0;i<o;i++)s=r[i],t.call(null,e[s],s,e)}}function Gy(e,t){t=t.toLowerCase();let A=Object.keys(e),i=A.length,n;for(;i-- >0;)if(n=A[i],t===n.toLowerCase())return n;return null}var Hy=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,My=e=>!ws(e)&&e!==Hy;function Xf(){let{caseless:e}=My(this)&&this||{},t={},A=(i,n)=>{let r=e&&Gy(t,n)||n;Bc(t[r])&&Bc(i)?t[r]=Xf(t[r],i):Bc(i)?t[r]=Xf({},i):Dr(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i<n;i++)arguments[i]&&Fs(arguments[i],A);return t}var L3=(e,t,A,{allOwnKeys:i}={})=>(Fs(t,(n,r)=>{A&&_t(n)?e[r]=ys(n,A):e[r]=n},{allOwnKeys:i}),e),Y3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),P3=(e,t,A,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),A&&Object.assign(e.prototype,A)},V3=(e,t,A,i)=>{let n,r,o,s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)o=n[r],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=A!==!1&&Zf(e)}while(e&&(!A||A(e,t))&&e!==Object.prototype);return t},z3=(e,t,A)=>{e=String(e),(A===void 0||A>e.length)&&(A=e.length),A-=t.length;let i=e.indexOf(t,A);return i!==-1&&i===A},_3=e=>{if(!e)return null;if(Dr(e))return e;let t=e.length;if(!xy(t))return null;let A=new Array(t);for(;t-- >0;)A[t]=e[t];return A},T3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Zf(Uint8Array)),X3=(e,t)=>{let i=(e&&e[Symbol.iterator]).call(e),n;for(;(n=i.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},Z3=(e,t)=>{let A,i=[];for(;(A=e.exec(t))!==null;)i.push(A);return i},W3=SA("HTMLFormElement"),j3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(A,i,n){return i.toUpperCase()+n}),Sy=(({hasOwnProperty:e})=>(t,A)=>e.call(t,A))(Object.prototype),$3=SA("RegExp"),vy=(e,t)=>{let A=Object.getOwnPropertyDescriptors(e),i={};Fs(A,(n,r)=>{let o;(o=t(n,r,e))!==!1&&(i[r]=o||n)}),Object.defineProperties(e,i)},ex=e=>{vy(e,(t,A)=>{if(_t(e)&&["arguments","caller","callee"].indexOf(A)!==-1)return!1;let i=e[A];if(_t(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+A+"'")})}})},tx=(e,t)=>{let A={},i=n=>{n.forEach(r=>{A[r]=!0})};return Dr(e)?i(e):i(String(e).split(t)),A},Ax=()=>{},ix=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Tf="abcdefghijklmnopqrstuvwxyz",Uy="0123456789",Ry={DIGIT:Uy,ALPHA:Tf,ALPHA_DIGIT:Tf+Tf.toUpperCase()+Uy},nx=(e=16,t=Ry.ALPHA_DIGIT)=>{let A="",{length:i}=t;for(;e--;)A+=t[Math.random()*i|0];return A};function rx(e){return!!(e&&_t(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var ox=e=>{let t=new Array(10),A=(i,n)=>{if(Qc(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;let r=Dr(i)?[]:{};return Fs(i,(o,s)=>{let a=A(o,n+1);!ws(a)&&(r[s]=a)}),t[n]=void 0,r}}return i};return A(e,0)},sx=SA("AsyncFunction"),ax=e=>e&&(Qc(e)||_t(e))&&_t(e.then)&&_t(e.catch),w={isArray:Dr,isArrayBuffer:Ny,isBuffer:N3,isFormData:K3,isArrayBufferView:x3,isString:G3,isNumber:xy,isBoolean:H3,isObject:Qc,isPlainObject:Bc,isUndefined:ws,isDate:M3,isFile:v3,isBlob:R3,isRegExp:$3,isFunction:_t,isStream:q3,isURLSearchParams:b3,isTypedArray:T3,isFileList:J3,forEach:Fs,merge:Xf,extend:L3,trim:O3,stripBOM:Y3,inherits:P3,toFlatObject:V3,kindOf:dc,kindOfTest:SA,endsWith:z3,toArray:_3,forEachEntry:X3,matchAll:Z3,isHTMLForm:W3,hasOwnProperty:Sy,hasOwnProp:Sy,reduceDescriptors:vy,freezeMethods:ex,toObjectSet:tx,toCamelCase:j3,noop:Ax,toFiniteNumber:ix,findKey:Gy,global:Hy,isContextDefined:My,ALPHABET:Ry,generateString:nx,isSpecCompliantForm:rx,toJSONObject:ox,isAsyncFn:sx,isThenable:ax};function kr(e,t,A,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),A&&(this.config=A),i&&(this.request=i),n&&(this.response=n)}w.inherits(kr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var Jy=kr.prototype,qy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{qy[e]={value:e}});Object.defineProperties(kr,qy);Object.defineProperty(Jy,"isAxiosError",{value:!0});kr.from=(e,t,A,i,n,r)=>{let o=Object.create(Jy);return w.toFlatObject(e,o,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),kr.call(o,e.message,t,A,i,n),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};var j=kr;var hc=null;function Wf(e){return w.isPlainObject(e)||w.isArray(e)}function by(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Ky(e,t,A){return e?e.concat(t).map(function(n,r){return n=by(n),!A&&r?"["+n+"]":n}).join(A?".":""):t}function Ix(e){return w.isArray(e)&&!e.some(Wf)}var lx=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function gx(e,t,A){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(hc||FormData),A=w.toFlatObject(A,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,F){return!w.isUndefined(F[C])});let i=A.metaTokens,n=A.visitor||I,r=A.dots,o=A.indexes,a=(A.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(w.isDate(f))return f.toISOString();if(!a&&w.isBlob(f))throw new j("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(f)||w.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function I(f,C,F){let d=f;if(f&&!F&&typeof f=="object"){if(w.endsWith(C,"{}"))C=i?C:C.slice(0,-2),f=JSON.stringify(f);else if(w.isArray(f)&&Ix(f)||(w.isFileList(f)||w.endsWith(C,"[]"))&&(d=w.toArray(f)))return C=by(C),d.forEach(function(Q,y){!(w.isUndefined(Q)||Q===null)&&t.append(o===!0?Ky([C],y,r):o===null?C:C+"[]",c(Q))}),!1}return Wf(f)?!0:(t.append(Ky(F,C,r),c(f)),!1)}let l=[],g=Object.assign(lx,{defaultVisitor:I,convertValue:c,isVisitable:Wf});function u(f,C){if(!w.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+C.join("."));l.push(f),w.forEach(f,function(d,B){(!(w.isUndefined(d)||d===null)&&n.call(t,d,w.isString(B)?B.trim():B,C,g))===!0&&u(d,C?C.concat(B):[B])}),l.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return u(e),t}var Ri=gx;function Oy(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ly(e,t){this._pairs=[],e&&Ri(e,this,t)}var Yy=Ly.prototype;Yy.append=function(t,A){this._pairs.push([t,A])};Yy.toString=function(t){let A=t?function(i){return t.call(this,i,Oy)}:Oy;return this._pairs.map(function(n){return A(n[0])+"="+A(n[1])},"").join("&")};var pc=Ly;function ux(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ds(e,t,A){if(!t)return e;let i=A&&A.encode||ux,n=A&&A.serialize,r;if(n?r=n(t,A):r=w.isURLSearchParams(t)?t.toString():new pc(t,A).toString(i),r){let o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}var jf=class{constructor(){this.handlers=[]}use(t,A,i){return this.handlers.push({fulfilled:t,rejected:A,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(i){i!==null&&t(i)})}},$f=jf;var Ec={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Py=typeof URLSearchParams<"u"?URLSearchParams:pc;var Vy=typeof FormData<"u"?FormData:null;var zy=typeof Blob<"u"?Blob:null;var _y={isBrowser:!0,classes:{URLSearchParams:Py,FormData:Vy,Blob:zy},protocols:["http","https","file","blob","url","data"]};var eB={};P0(eB,{hasBrowserEnv:()=>Ty,hasStandardBrowserEnv:()=>fx,hasStandardBrowserWebWorkerEnv:()=>Bx});var Ty=typeof window<"u"&&typeof document<"u",fx=(e=>Ty&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Bx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var ut={...eB,..._y};function tB(e,t){return Ri(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(A,i,n,r){return ut.isNode&&w.isBuffer(A)?(this.append(i,A.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function dx(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cx(e){let t={},A=Object.keys(e),i,n=A.length,r;for(i=0;i<n;i++)r=A[i],t[r]=e[r];return t}function Qx(e){function t(A,i,n,r){let o=A[r++];if(o==="__proto__")return!0;let s=Number.isFinite(+o),a=r>=A.length;return o=!o&&w.isArray(n)?n.length:o,a?(w.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s):((!n[o]||!w.isObject(n[o]))&&(n[o]=[]),t(A,i,n[o],r)&&w.isArray(n[o])&&(n[o]=Cx(n[o])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){let A={};return w.forEachEntry(e,(i,n)=>{t(dx(i),n,A,0)}),A}return null}var mc=Qx;function hx(e,t,A){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(A||JSON.stringify)(e)}var AB={transitional:Ec,adapter:["xhr","http"],transformRequest:[function(t,A){let i=A.getContentType()||"",n=i.indexOf("application/json")>-1,r=w.isObject(t);if(r&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return n?JSON.stringify(mc(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return A.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return tB(t,this.formSerializer).toString();if((s=w.isFileList(t))||i.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return Ri(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return r||n?(A.setContentType("application/json",!1),hx(t)):t}],transformResponse:[function(t){let A=this.transitional||AB.transitional,i=A&&A.forcedJSONParsing,n=this.responseType==="json";if(t&&w.isString(t)&&(i&&!this.responseType||n)){let o=!(A&&A.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{AB.headers[e]={}});var Sr=AB;var px=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xy=e=>{let t={},A,i,n;return e&&e.split(`
|
|
`).forEach(function(o){n=o.indexOf(":"),A=o.substring(0,n).trim().toLowerCase(),i=o.substring(n+1).trim(),!(!A||t[A]&&px[A])&&(A==="set-cookie"?t[A]?t[A].push(i):t[A]=[i]:t[A]=t[A]?t[A]+", "+i:i)}),t};var Zy=Symbol("internals");function ks(e){return e&&String(e).trim().toLowerCase()}function yc(e){return e===!1||e==null?e:w.isArray(e)?e.map(yc):String(e)}function Ex(e){let t=Object.create(null),A=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=A.exec(e);)t[i[1]]=i[2];return t}var mx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function iB(e,t,A,i,n){if(w.isFunction(i))return i.call(this,t,A);if(n&&(t=A),!!w.isString(t)){if(w.isString(i))return t.indexOf(i)!==-1;if(w.isRegExp(i))return i.test(t)}}function yx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,A,i)=>A.toUpperCase()+i)}function wx(e,t){let A=w.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+A,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}var Ur=class{constructor(t){t&&this.set(t)}set(t,A,i){let n=this;function r(s,a,c){let I=ks(a);if(!I)throw new Error("header name must be a non-empty string");let l=w.findKey(n,I);(!l||n[l]===void 0||c===!0||c===void 0&&n[l]!==!1)&&(n[l||a]=yc(s))}let o=(s,a)=>w.forEach(s,(c,I)=>r(c,I,a));return w.isPlainObject(t)||t instanceof this.constructor?o(t,A):w.isString(t)&&(t=t.trim())&&!mx(t)?o(Xy(t),A):t!=null&&r(A,t,i),this}get(t,A){if(t=ks(t),t){let i=w.findKey(this,t);if(i){let n=this[i];if(!A)return n;if(A===!0)return Ex(n);if(w.isFunction(A))return A.call(this,n,i);if(w.isRegExp(A))return A.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,A){if(t=ks(t),t){let i=w.findKey(this,t);return!!(i&&this[i]!==void 0&&(!A||iB(this,this[i],i,A)))}return!1}delete(t,A){let i=this,n=!1;function r(o){if(o=ks(o),o){let s=w.findKey(i,o);s&&(!A||iB(i,i[s],s,A))&&(delete i[s],n=!0)}}return w.isArray(t)?t.forEach(r):r(t),n}clear(t){let A=Object.keys(this),i=A.length,n=!1;for(;i--;){let r=A[i];(!t||iB(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){let A=this,i={};return w.forEach(this,(n,r)=>{let o=w.findKey(i,r);if(o){A[o]=yc(n),delete A[r];return}let s=t?yx(r):String(r).trim();s!==r&&delete A[r],A[s]=yc(n),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let A=Object.create(null);return w.forEach(this,(i,n)=>{i!=null&&i!==!1&&(A[n]=t&&w.isArray(i)?i.join(", "):i)}),A}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,A])=>t+": "+A).join(`
|
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...A){let i=new this(t);return A.forEach(n=>i.set(n)),i}static accessor(t){let i=(this[Zy]=this[Zy]={accessors:{}}).accessors,n=this.prototype;function r(o){let s=ks(o);i[s]||(wx(n,o),i[s]=!0)}return w.isArray(t)?t.forEach(r):r(t),this}};Ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ur.prototype,({value:e},t)=>{let A=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[A]=i}}});w.freezeMethods(Ur);var ft=Ur;function Ss(e,t){let A=this||Sr,i=t||A,n=ft.from(i.headers),r=i.data;return w.forEach(e,function(s){r=s.call(A,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Us(e){return!!(e&&e.__CANCEL__)}function Wy(e,t,A){j.call(this,e??"canceled",j.ERR_CANCELED,t,A),this.name="CanceledError"}w.inherits(Wy,j,{__CANCEL__:!0});var Ji=Wy;function nB(e,t,A){let i=A.config.validateStatus;!A.status||!i||i(A.status)?e(A):t(new j("Request failed with status code "+A.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(A.status/100)-4],A.config,A.request,A))}var jy=ut.hasStandardBrowserEnv?{write(e,t,A,i,n,r){let o=[e+"="+encodeURIComponent(t)];w.isNumber(A)&&o.push("expires="+new Date(A).toGMTString()),w.isString(i)&&o.push("path="+i),w.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function rB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Ns(e,t){return e&&!rB(t)?oB(e,t):t}var $y=ut.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),A=document.createElement("a"),i;function n(r){let o=r;return t&&(A.setAttribute("href",o),o=A.href),A.setAttribute("href",o),{href:A.href,protocol:A.protocol?A.protocol.replace(/:$/,""):"",host:A.host,search:A.search?A.search.replace(/^\?/,""):"",hash:A.hash?A.hash.replace(/^#/,""):"",hostname:A.hostname,port:A.port,pathname:A.pathname.charAt(0)==="/"?A.pathname:"/"+A.pathname}}return i=n(window.location.href),function(o){let s=w.isString(o)?n(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}();function sB(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Fx(e,t){e=e||10;let A=new Array(e),i=new Array(e),n=0,r=0,o;return t=t!==void 0?t:1e3,function(a){let c=Date.now(),I=i[r];o||(o=c),A[n]=a,i[n]=c;let l=r,g=0;for(;l!==n;)g+=A[l++],l=l%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),c-o<t)return;let u=I&&c-I;return u?Math.round(g*1e3/u):void 0}}var ew=Fx;function tw(e,t){let A=0,i=ew(50,250);return n=>{let r=n.loaded,o=n.lengthComputable?n.total:void 0,s=r-A,a=i(s),c=r<=o;A=r;let I={loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:a||void 0,estimated:a&&o&&c?(o-r)/a:void 0,event:n};I[t?"download":"upload"]=!0,e(I)}}var Dx=typeof XMLHttpRequest<"u",Aw=Dx&&function(e){return new Promise(function(A,i){let n=e.data,r=ft.from(e.headers).normalize(),{responseType:o,withXSRFToken:s}=e,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let I;if(w.isFormData(n)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((I=r.getContentType())!==!1){let[C,...F]=I?I.split(";").map(d=>d.trim()).filter(Boolean):[];r.setContentType([C||"multipart/form-data",...F].join("; "))}}let l=new XMLHttpRequest;if(e.auth){let C=e.auth.username||"",F=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(C+":"+F))}let g=Ns(e.baseURL,e.url);l.open(e.method.toUpperCase(),Ds(g,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function u(){if(!l)return;let C=ft.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),d={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:C,config:e,request:l};nB(function(Q){A(Q),c()},function(Q){i(Q),c()},d),l=null}if("onloadend"in l?l.onloadend=u:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(u)},l.onabort=function(){l&&(i(new j("Request aborted",j.ECONNABORTED,e,l)),l=null)},l.onerror=function(){i(new j("Network Error",j.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let F=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",d=e.transitional||Ec;e.timeoutErrorMessage&&(F=e.timeoutErrorMessage),i(new j(F,d.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,l)),l=null},ut.hasStandardBrowserEnv&&(s&&w.isFunction(s)&&(s=s(e)),s||s!==!1&&$y(g))){let C=e.xsrfHeaderName&&e.xsrfCookieName&&jy.read(e.xsrfCookieName);C&&r.set(e.xsrfHeaderName,C)}n===void 0&&r.setContentType(null),"setRequestHeader"in l&&w.forEach(r.toJSON(),function(F,d){l.setRequestHeader(d,F)}),w.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",tw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",tw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=C=>{l&&(i(!C||C.type?new Ji(null,e,l):C),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let f=sB(g);if(f&&ut.protocols.indexOf(f)===-1){i(new j("Unsupported protocol "+f+":",j.ERR_BAD_REQUEST,e));return}l.send(n||null)})};var aB={http:hc,xhr:Aw};w.forEach(aB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var iw=e=>`- ${e}`,kx=e=>w.isFunction(e)||e===null||e===!1,wc={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,A,i,n={};for(let r=0;r<t;r++){A=e[r];let o;if(i=A,!kx(A)&&(i=aB[(o=String(A)).toLowerCase()],i===void 0))throw new j(`Unknown adapter '${o}'`);if(i)break;n[o||"#"+r]=i}if(!i){let r=Object.entries(n).map(([s,a])=>`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build")),o=t?r.length>1?`since :
|
|
`+r.map(iw).join(`
|
|
`):" "+iw(r[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:aB};function IB(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function Fc(e){return IB(e),e.headers=ft.from(e.headers),e.data=Ss.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wc.getAdapter(e.adapter||Sr.adapter)(e).then(function(i){return IB(e),i.data=Ss.call(e,e.transformResponse,i),i.headers=ft.from(i.headers),i},function(i){return Us(i)||(IB(e),i&&i.response&&(i.response.data=Ss.call(e,e.transformResponse,i.response),i.response.headers=ft.from(i.response.headers))),Promise.reject(i)})}var nw=e=>e instanceof ft?e.toJSON():e;function WA(e,t){t=t||{};let A={};function i(c,I,l){return w.isPlainObject(c)&&w.isPlainObject(I)?w.merge.call({caseless:l},c,I):w.isPlainObject(I)?w.merge({},I):w.isArray(I)?I.slice():I}function n(c,I,l){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c,l)}else return i(c,I,l)}function r(c,I){if(!w.isUndefined(I))return i(void 0,I)}function o(c,I){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c)}else return i(void 0,I)}function s(c,I,l){if(l in t)return i(c,I);if(l in e)return i(void 0,c)}let a={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,I)=>n(nw(c),nw(I),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(I){let l=a[I]||n,g=l(e[I],t[I],I);w.isUndefined(g)&&l!==s||(A[I]=g)}),A}var Dc="1.6.7";var cB={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cB[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var rw={};cB.transitional=function(t,A,i){function n(r,o){return"[Axios v"+Dc+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,s)=>{if(t===!1)throw new j(n(o," has been removed"+(A?" in "+A:"")),j.ERR_DEPRECATED);return A&&!rw[o]&&(rw[o]=!0,console.warn(n(o," has been deprecated since v"+A+" and will be removed in the near future"))),t?t(r,o,s):!0}};function Sx(e,t,A){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let r=i[n],o=t[r];if(o){let s=e[r],a=s===void 0||o(s,r,e);if(a!==!0)throw new j("option "+r+" must be "+a,j.ERR_BAD_OPTION_VALUE);continue}if(A!==!0)throw new j("Unknown option "+r,j.ERR_BAD_OPTION)}}var kc={assertOptions:Sx,validators:cB};var qi=kc.validators,Nr=class{constructor(t){this.defaults=t,this.interceptors={request:new $f,response:new $f}}async request(t,A){try{return await this._request(t,A)}catch(i){if(i instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;let r=n.stack?n.stack.replace(/^.+\n/,""):"";i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=`
|
|
`+r):i.stack=r}throw i}}_request(t,A){typeof t=="string"?(A=A||{},A.url=t):A=t||{},A=WA(this.defaults,A);let{transitional:i,paramsSerializer:n,headers:r}=A;i!==void 0&&kc.assertOptions(i,{silentJSONParsing:qi.transitional(qi.boolean),forcedJSONParsing:qi.transitional(qi.boolean),clarifyTimeoutError:qi.transitional(qi.boolean)},!1),n!=null&&(w.isFunction(n)?A.paramsSerializer={serialize:n}:kc.assertOptions(n,{encode:qi.function,serialize:qi.function},!0)),A.method=(A.method||this.defaults.method||"get").toLowerCase();let o=r&&w.merge(r.common,r[A.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),A.headers=ft.concat(o,r);let s=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(A)===!1||(a=a&&C.synchronous,s.unshift(C.fulfilled,C.rejected))});let c=[];this.interceptors.response.forEach(function(C){c.push(C.fulfilled,C.rejected)});let I,l=0,g;if(!a){let f=[Fc.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),g=f.length,I=Promise.resolve(A);l<g;)I=I.then(f[l++],f[l++]);return I}g=s.length;let u=A;for(l=0;l<g;){let f=s[l++],C=s[l++];try{u=f(u)}catch(F){C.call(this,F);break}}try{I=Fc.call(this,u)}catch(f){return Promise.reject(f)}for(l=0,g=c.length;l<g;)I=I.then(c[l++],c[l++]);return I}getUri(t){t=WA(this.defaults,t);let A=Ns(t.baseURL,t.url);return Ds(A,t.params,t.paramsSerializer)}};w.forEach(["delete","get","head","options"],function(t){Nr.prototype[t]=function(A,i){return this.request(WA(i||{},{method:t,url:A,data:(i||{}).data}))}});w.forEach(["post","put","patch"],function(t){function A(i){return function(r,o,s){return this.request(WA(s||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:r,data:o}))}}Nr.prototype[t]=A(),Nr.prototype[t+"Form"]=A(!0)});var xs=Nr;var lB=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let A;this.promise=new Promise(function(r){A=r});let i=this;this.promise.then(n=>{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r,o=new Promise(s=>{i.subscribe(s),r=s}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,s){i.reason||(i.reason=new Ji(r,o,s),A(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let A=this._listeners.indexOf(t);A!==-1&&this._listeners.splice(A,1)}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},ow=lB;function gB(e){return function(A){return e.apply(null,A)}}function uB(e){return w.isObject(e)&&e.isAxiosError===!0}var fB={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(fB).forEach(([e,t])=>{fB[t]=e});var sw=fB;function aw(e){let t=new xs(e),A=ys(xs.prototype.request,t);return w.extend(A,xs.prototype,t,{allOwnKeys:!0}),w.extend(A,t,null,{allOwnKeys:!0}),A.create=function(n){return aw(WA(e,n))},A}var He=aw(Sr);He.Axios=xs;He.CanceledError=Ji;He.CancelToken=ow;He.isCancel=Us;He.VERSION=Dc;He.toFormData=Ri;He.AxiosError=j;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=gB;He.isAxiosError=uB;He.mergeConfig=WA;He.AxiosHeaders=ft;He.formToJSON=e=>mc(w.isHTMLForm(e)?new FormData(e):e);He.getAdapter=wc.getAdapter;He.HttpStatusCode=sw;He.default=He;var Sc=He;var{Axios:P1,AxiosError:V1,CanceledError:z1,isCancel:_1,CancelToken:T1,VERSION:X1,all:Z1,Cancel:W1,isAxiosError:j1,spread:$1,toFormData:eq,AxiosHeaders:tq,HttpStatusCode:Aq,formToJSON:iq,getAdapter:nq,mergeConfig:rq}=Sc;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var Ux=typeof window<"u"?window:null,Iw=typeof global<"u"?global:void 0,xr=async(e,t,A)=>{let i={...A},n=null,r=!1,o=null,s=[];if(Array.isArray(t))for(let l of t)l instanceof File&&(s.push(l),r=!0),typeof l=="function"&&(o=l);else t instanceof File&&(r=!0,s.push(t));if(!r)n=JSON.stringify(t),i["content-type"]="aplication/json";else{let l=new FormData;for(let g of s)l.append(g.name,g);n=l,delete i["content-type"],i.enctype="multipart/form-data;"}let a=new URL(e);if(Ux!==null){let l=new URL(location.href),g="";if(a.host===l.host||Iw&&typeof Iw.server_hook=="function"?g=a.toString():g=`${l.protocol}//${l.host}/_proxy/${encodeURIComponent(a.toString())}`,g){if(o)return(await Sc({method:t?"post":void 0,url:g,data:n,onUploadProgress:o})).data;{let f=await(await fetch(g,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(f,cw)}catch{return f}}}}let I=await(await fetch(a,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(I,cw)}catch{return I}},cw=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Sw=K(kw());var Gr=async(e,t)=>{let A=(0,Sw.default)(e,"/"),i=await xr(rG(A,"/_prasi/_")),n="";i&&i.prasi&&(n=i.prasi);let r=nG(A);if(n==="v2")await new Promise(o=>{let s=document,a=s.createElement("script");a.onload=async()=>{o()},localStorage.getItem("api-ts-"+A)||localStorage.setItem("api-ts-"+A,Date.now().toString());let c=localStorage.getItem("api-ts-"+A);t?a.src=`${r}/_prasi/load.js?url=${A}&v3&dev=1&ts=${c}`:a.src=`${r}/_prasi/load.js?url=${A}&v3&ts=${c}`,document.querySelector(`script[src="${a.src}"]`)?o():s.body.appendChild(a)});else{let o=await fetch(r+"/_prasi/api-entry");if(Ce.prasiApi[A]={apiEntry:(await o.json()).srv},t){let s=await fetch(r+"/_prasi/api-types");Ce.prasiApi[A].apiTypes=await s.text(),Ce.prasiApi[A].prismaTypes={"prisma.d.ts":await QB(`${r}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await QB(`${r}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await QB(`${r}/_prasi/prisma/runtime/library.d.ts`)}}}},nG=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},rG=(e,t)=>{let A=new URL(e);return A.pathname=t,A.toString()},QB=async(e,t)=>await(await fetch(e)).text();var Gs={},mn=e=>{Ce.prasiApi||(Ce.prasiApi={});try{let t=new URL(e),A=`${t.protocol}//${t.host}`;return Ce.prasiApi[A]||Gs[A]||(Gs[A]=Gr(A,location.hostname.includes("prasi"))),new Proxy({},{get:(i,n)=>{if(n==="_url")return(o,s)=>{let a=new URL(A);a.pathname=o.split("/").filter(l=>l).join("/");let c=new URL(location.href),I="";return a.host===c.host||s===!1?I=a.toString():I=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,I};let r=o=>function(...s){return new Promise(async(a,c)=>{try{let I=Ce.prasiApi[A];if(!I&&Gs&&typeof Gs[A]=="object"&&(await Gs[A],I=Ce.prasiApi[A]),I){if(o==="_raw"){let u=s[0],f=`${A}${u}`,C=await Uw(f,s.slice(1));a(C);return}if(I.apiEntry||(I.apiEntry={}),I.apiEntry&&!I.apiEntry[o]){c(`API ${o.toString()} not found, existing API:
|
|
- ${Object.keys(I.apiEntry||{}).join(`
|
|
- `)}`);return}let l=I.apiEntry[o].url,g=I.apiEntry[o].args;if(l&&g){if(s.length>0&&g.length>0)for(let[C,F]of Object.entries(s)){let d=g[parseInt(C)];g&&g.includes(d)&&F&&typeof F!="string"&&typeof F!="number"||(l=l.replace(`:${d}?`,F+""),l=l.replace(`:${d}`,F+""))}let u=`${A}${l}`,f=await Uw(u,s);a(f)}else console.error(`API Not Found: ${o.toString()}`)}else c("Failed to load API [Proxy]: "+A)}catch(I){c(I)}})};return n==="then"?new Proxy({},{get:(o,s)=>r(s)}):r(n)}})}catch{return null}},Uw=async(e,t)=>await xr(e,t,{"content-type":"application/json"});var Hw=K(Gw());var yn=e=>{let t="";return new Proxy({},{get(A,i){return i==="_batch"?{update:async n=>Hr({name:t,action:"batch_update",table:"",params:{batch:n}},e)}:i==="_schema"?{tables:async()=>Hr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async n=>Hr({name:t,action:"schema_columns",table:n,params:[]},e),rels:async n=>Hr({name:t,action:"schema_rels",table:n,params:[]},e)}:i.startsWith("$")?(...n)=>Hr({name:t,action:"query",table:i,params:n},e):new Proxy({},{get(n,r){return async(...o)=>(i==="query"&&(i=r,r="query"),await Hr({name:t,action:r,table:i,params:o},e))}})}})},Uc={},Hr=async(e,t)=>{let A=new URL(t);A.pathname="/_dbs",e.table&&(A.pathname+=`/${e.table}`);let i=A.toString(),n=(0,Hw.default)(e),r=Uc[n];if(!r||r&&Date.now()-r.timestamp>1e3){Uc[n]={timestamp:Date.now(),promise:xr(i,e,{"content-type":"application/json"}),result:null};let o=await Uc[n].promise;return Uc[n].result=o,o}return await r.promise};function cG(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function lG(e){return e?new Promise((t,A)=>{let i="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),r=()=>{delete window[i],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer=!0,n.type="module",n.onerror=()=>{A(new Error(`Failed to import: ${e}`)),r()},n.onload=()=>{t(window[i]),r()};let s=`import * as m from "${Ce.basehost?Ce.basehost+e:cG(e)}"; window.${i} = m;`,a=new Blob([s],{type:"text/javascript"});n.src=URL.createObjectURL(a),document.head.appendChild(n)}):""}var Nc=lG;var Mr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var xc=async e=>{let t=window;t.exports||(t.exports={});let A=await _db.site.findFirst({where:{id:e.site.id},include:{component_site:!0}});if(A){if(A.component_site)for(let o of A.component_site){let s=`/npm/site/${o.id_site}/site.js`;await Nc(s)}let i=e.site.api_url;if(i||(i=(A.config||{}).api_url||""),!i)return;try{let o=new URL(i);if(i&&o.hostname)try{await Gr(i,!0)}catch{console.warn("Failed to load API [Legacy]:",i)}}catch{}let n=`/npm/site/${e.site.id}/site.js`;await Nc(n),e.site.db.get()||e.site.db.set(yn(i)),e.site.api.get()||e.site.api.set(mn(i));let r=window;if(A.js_compiled){let o=A.config,s=(c,I)=>(o.api_url&&!I.api&&(I.api=e.site.api.get(),I.db=e.site.db.get()),I.params=r.params,I.module={},new Function(...Object.keys(I),c)(...Object.values(I))),a={...Mr({site:e.site,mode:e.mode}),types:{},exports:r.exports,load:Nc,render:e.render,module:{exports:{}}};if(await s(A.js_compiled,a),a.module.exports)for(let[c,I]of Object.entries(a.module.exports))r.exports[c]=I}}};var Mw=(e,t=0)=>{let A=3735928559^t,i=1103547991^t;for(let n=0,r;n<e.length;n++)r=e.charCodeAt(n),A=Math.imul(A^r,2654435761),i=Math.imul(i^r,1597334677);return A=Math.imul(A^A>>>16,2246822507),A^=Math.imul(i^i>>>13,3266489909),i=Math.imul(i^i>>>16,2246822507),i^=Math.imul(A^A>>>13,3266489909),4294967296*(2097151&i)+(A>>>0)};var gG=new TextEncoder,Rw=async e=>{let t=e.site.config.api_url;try{let A=new URL(t);if(t&&A.hostname){await Gr(t,!0);let i=Ce.prasiApi[t];if(i&&i.apiTypes&&i.prismaTypes){let n=JSON.stringify({api:i.apiTypes,prisma:i.prismaTypes}),r=Mw(n),o=await e.sync?.code.action({type:"check-typings",site_id:e.site.id,hash:r});if(o?.type==="check-typings"&&!o.hash){let s=Buffer.from(rA(gG.encode(n)));e.sync?.code.action({type:"push-typings",site_id:e.site.id,body:s,hash:r})}}e.script.db||(e.script.db=yn(t)),e.script.api||(e.script.api=mn(t))}}catch(A){A&&!A.message.toLowerCase().includes("invalid url")&&console.warn("Failed to load API [Snapshot]:",t)}if(e.site.code.snapshot)for(let[A,i]of Object.entries(e.site.code.snapshot)){let n=new Y.Doc;Y.applyUpdate(n,Et(i.bin)),e.code[A]={doc:n};let r=e.code[A].doc;if(r){let o=r.getMap("map").get("files")?.get("index.js");vw(e,o),IA(e),e.render(),r.on("update",(s,a)=>{let c=r.getMap("map").get("files")?.get("index.js");vw(e,c),IA(e),e.render()})}}},vw=(e,t)=>{if(t){let A=window;e.site.config.api_url&&(A.db=yn(e.site.config.api_url),A.api=mn(e.site.config.api_url));let i=Gc(t);if(e.global_prop=Object.keys(i),typeof i=="object")for(let[n,r]of Object.entries(i))A[n]=r}};var hB=async(e,t,A)=>{e.site=t,!e.script.db&&!e.script.api&&(e.site.code.mode==="old"&&!location.pathname.startsWith("/ed/")?await xc({mode:e.mode,site:{api_url:e.site.config.api_url,id:e.site.id,api:{get(){return e.script.api},set(i){e.script.api=i}},db:{get(){return e.script.db},set(i){e.script.db=i}}},render:()=>{}}):await Rw(e))};var Jw=async(e,t,A,i)=>{if(!e.sync)return;e.status="reload";let n=await e.sync.page.load(t);if(!n){e.status="page-not-found",e.render();return}if(n.comps)for(let[r,o]of Object.entries(n.comps))o&&o.snapshot&&await fc(e,r,o.snapshot);if(e.page.cur=n,n.snapshot){let r=new Y.Doc;Y.applyUpdate(r,Et(n.snapshot));let o=e.page.list[n.id];o||(e.page.list[n.id]={},o=e.page.list[n.id]),o.on_update&&o.doc&&o.doc.off("update",o.on_update),o.on_update=async(s,a)=>{if(a==="local"||!e.sync)return;if(o.page.id!==n.id){alert(`Page ID Mismatch!
|
|
Refreshing to preventing data loss...`),location.reload();return}let c=await e.sync.yjs.sv_local("page",e.page.cur.id,Buffer.from(rA(s)));if(c){let I=Y.encodeStateAsUpdate(r,Et(c.sv));Y.applyUpdate(r,Et(c.diff),"local"),cc()||await IA(e,{note:A+" page-on-update"}),await e.sync.yjs.diff_local("page",e.page.cur.id,Buffer.from(rA(I))),e.ui.syncing=!1,e.page.entry=r.getMap("map").get("root")?.get("childs")?.map(l=>l.get("id")),rc.should_render_main&&e.render()}},r.on("update",o.on_update),e.page.doc=r,e.page.doc&&(o.page=e.page.cur,o.doc=e.page.doc,e.page.entry=e.page.doc.getMap("map").get("root")?.get("childs")?.map(s=>s.get("id")),Array.isArray(e.page.entry)||e.sync.code.action({type:"flush-page-cache",page_id:t}).then(()=>{location.reload()})),e.page.doc&&await IA(e,{note:A+" page-init"})}e.status="ready",i!==!1&&e.render()};var qw=K(se()),uG=new TextDecoder,wn={list:[],route:null},fG=e=>{let t=JSON.parse(localStorage.getItem("prasi-session")||"null");if(!t&&location.pathname.startsWith("/ed/"))return location.href="/login",(0,qw.jsx)(An,{note:"logging in"});t?.data?.user?(e.user.id=t.data.user.id,e.user.username=t.data.user.username):(e.user.id="ab1390f5-40d5-448e-a8c3-84b0fb600930",e.user.username="anonymous")},BG=e=>{if(fG(e),location.pathname.startsWith("/vi/")){if(wn.list.length===0){_db.page.findMany({where:{id_site:params.site_id,is_deleted:!1,is_default_layout:!1},select:{id:!0,url:!0}}).then(i=>{wn.list=i,BG(e)});return}if(!wn.route){wn.route=Fr();for(let i of wn.list)wn.route.insert(i.url,i)}let A="/"+location.pathname.split("/").slice(3).join("/");if(!params.page_id){let i=wn.route.lookup(A);if(i&&(params.page_id=i.id,i.params))for(let[n,r]of Object.entries(i.params))["site_id","page_id"].includes(n)||(params[n]=r)}}if(e.sync){if(e.site.id==="--loading--")return!1;if(params.site_id!==e.site.id)return e.site=QA(Vf),e.site.id="--loading--",e.ui.popup.code.init=!1,e.sync.site.load(params.site_id).then(async t=>{t?(await hB(e,t,"from-sync"),e.render()):(alert("Site not found. redirecting..."),location.href="/ed/")}),!1;if(!e.page.cur.id&&!params.page_id&¶ms.site_id&&location.pathname.startsWith("/ed/"))return _db.page.findFirst({where:{is_deleted:!1,is_default_layout:!1,id_site:params.site_id},select:{id:!0}}).then(t=>{if(params.site_id==="_"){alert("asdsa");return}t&&(location.href=`/ed/${params.site_id}/${t.id}`)}),!1}return!e.sync&&!e.sync_assigned?(e.sync_assigned=!0,ay({user_id:e.user.id,site_id:params.site_id,page_id:params.page_id,events:{opened(){Ce.offline?(console.log("reconnected!"),Ce.offline=!1,e.ui.syncing=!0,e.render()):(Ce.offline=!1,e.render())},shakehand(t){e.user.client_id=t},disconnected(){return console.log("offline, reconnecting..."),Ce.offline=!0,e.render(),{reconnect:!0}},async editor_start(t){params.site_id!==t.site_id||params.page_id!==t.page_id?e.page.cur.id||(e.site.id=t.site_id,e.page.cur.id=t.page_id,location.pathname.startsWith("/ed/")&&(location.href=`/ed/${t.site_id}/${t.page_id}`)):(e.site.id=t.site_id,e.page.cur.id=t.page_id,e.render())},site_updated(t){for(let[A,i]of Object.entries(t))A==="js"||A==="js_compiled"?e.site[A]=uG.decode(Et(i)):e.site[A]=i;e.render()},async remote_svlocal(t){let A=null;if(t.type==="page"&&e.page.cur.id===t.id?A=e.page.doc:t.type==="comp"&&e.comp.list[t.id]?A=e.comp.list[t.id].doc:t.type==="code"&&(A=e.code.site.doc),A&&e.sync){let i=KE(A,Et(t.sv_local)),n=LE(A),r=Buffer.from(rA(n)),o=Buffer.from(rA(i)),s=await e.sync.yjs.sv_remote(t.type,t.id,r,o);if(s){if(qE(A,Et(s.diff),"sv_remote"),t.type==="page")delete e.preview.meta_cache[t.id],await IA(e,{note:"sv_remote"});else if(t.type==="comp"){let a=await uc(e,A,t.id);a&&(e.comp.list[t.id].meta=a.meta,e.comp.list[t.id].tree=a.tree),await IA(e,{note:"sv_remote"})}e.render()}}}}}).then(t=>{e.sync=t}),!1):params.page_id!==e.page.cur.id&&location.pathname.startsWith("/ed")?(Jw(e,params.page_id,"change page"),!1):!0},Gc=src=>{if(src){let module={exports:{__esModule:!0}};eval(`try {
|
|
${src}
|
|
} catch(e) {
|
|
console.error(e);
|
|
}`);let result={...module.exports};return result.__esModule&&delete result.__esModule,result}return{}};var Lc=K(ze());var Kw=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,!e.site.api&&!e.site.db?e.site.code.mode==="old"&&xc({site:{id:e.site.id,api_url:e.site.api_url,api:{get(){return e.site.api},set(A){e.site.api=A}},db:{get(){return e.site.db},set(A){e.site.db=A}}},render:e.render}).then(()=>{e.status="ready",e.on_status_changes&&e.on_status_changes(e.status),e.render()}):(e.status="ready",e.on_status_changes&&e.on_status_changes(e.status))};var Ki={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null,code:{mode:"old"}},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{}},on_preload:void 0};var m0=K(ze());var qe=K(ze()),pB=class extends qe.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},dG=()=>!1,bw=(0,qe.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:dG});function Ow({children:e}){let[t,A]=(0,qe.useState)(),i=(0,qe.useRef)(),n=(0,qe.useMemo)(()=>({componentDidCatch:i,error:t,setError:A}),[t]);return qe.default.createElement(bw.Provider,{value:n},qe.default.createElement(pB,{error:t,onError:(r,o)=>{A(r),i.current?.(r,o)}},e))}Ow.displayName="ReactUseErrorBoundaryContext";function Lw(e){function t(A){return qe.default.createElement(Ow,null,qe.default.createElement(e,{key:"WrappedComponent",...A}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function Yw(e){let t=(0,qe.useContext)(bw);t.componentDidCatch.current=e;let A=(0,qe.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,A]}var Tt=K(se()),UA=Lw(({children:e,meta:t,id:A,silent:i=!0})=>{let n=mi({retrying:!1,meta:t}),[r,o]=Yw((a,c)=>{i!==!0&&console.warn(a)});t&&n.meta!==t&&(n.meta=t,setTimeout(o));let s=t;return r?(0,Tt.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Tt.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",s?.item.name?"["+s.item.name+"]:":""]}),(0,Tt.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:n.retrying?(0,Tt.jsx)(Tt.Fragment,{children:"Retrying..."}):(0,Tt.jsx)(Tt.Fragment,{children:r.message})}),(0,Tt.jsx)("div",{className:"p-1",children:(0,Tt.jsx)("button",{onClick:()=>{n.retrying=!0,n.render(),setTimeout(()=>{n.retrying=!1,n.render(),o()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});var kt=(e,t,A,i)=>{let n=e[t];return A==="desktop"||!A?!n&&e.mobile&&e.mobile[t]&&(n=e.mobile[t]):e.mobile&&e.mobile[t]&&(n=e.mobile[t]),n||(n=i),n};var Pw=(e,t)=>{let A=kt(e,"adv",t,{});return typeof A.css=="string"&&A.css.trim()?cx(css`
|
|
${A.css}
|
|
`,t):""};var Vw=(e,t)=>{let A=kt(e,"bg",t,{size:"contain",pos:"center"}),i=`${serverurl}${A.url}`;return A&&A.url&&A.url.startsWith("http")&&(i=A.url),cx(`
|
|
background-repeat: no-repeat;
|
|
`,A.color&&`
|
|
background-color: ${A.color};
|
|
`,A.url&&typeof siteApiUrl=="string"&&`
|
|
background-image: url("${i}");
|
|
`,A.size&&`
|
|
background-size: ${A.size};
|
|
`,A.pos&&`
|
|
background-position: ${A.pos};
|
|
`)};var r0=K(DB());var o0=(e,t)=>{let A=kt(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(NA(A,"stroke.l","border-left-width"),NA(A,"stroke.r","border-right-width"),NA(A,"stroke.b","border-bottom-width"),NA(A,"stroke.t","border-top-width"),NA(A,"color","border-color","transparent"),NA(A,"style","border-style","dashed"),NA(A,"rounded.tl","border-top-left-radius"),NA(A,"rounded.tr","border-top-right-radius"),NA(A,"rounded.bl","border-bottom-left-radius"),NA(A,"rounded.br","border-bottom-right-radius"))},NA=(e,t,A,i)=>{let n=(0,r0.default)(e,t);if(i)return n?`${A}: ${n};`:`${A}: ${i};`;if(n)return`${A}: ${n}px;`};var s0=(e,t,A)=>{let i=kt(e,"dim",t,{h:"fit",w:"fit"});return i.w==="full"&&i.h==="full"?`
|
|
width:100%;
|
|
height:100%;
|
|
flex:1;
|
|
`:cx(i.w==="fit"&&`
|
|
& > .txt-box > * {
|
|
white-space: nowrap !important;
|
|
}
|
|
`,i.w==="full"&&`
|
|
width: 100%;
|
|
`,i.w&&typeof i.w=="number"&&i.w>=0&&`
|
|
width: ${i.w}${i.wUnit||"px"};
|
|
overflow-x: clip;
|
|
`,i.h==="full"&&`
|
|
height: ${A?"100%":"100"+(e.type==="section"?"vh":"%")};
|
|
margin-bottom: auto;
|
|
`,i.h&&typeof i.h=="number"&&i.h>=0&&`
|
|
height: ${i.h}${i.hUnit||"px"};
|
|
overflow-y: clip;
|
|
`)};var a0=({item:e,hover:t,active:A})=>cx(t&&css`
|
|
& {
|
|
box-shadow: inset 0 0 0px 3px #bae3fd;
|
|
> img {
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
`,A&&css`
|
|
box-shadow: inset 0 0 0px 2px #009cff !important;
|
|
> img {
|
|
opacity: 0.6;
|
|
}
|
|
`);var Rr=window,I0=(e,t)=>{let A=kt(e,"font",t,{});if(A.family){Rr.loadedFonts||(Rr.loadedFonts=[]);let n=`:wght@${[300,400,500,600].join(";")}`,r=A.family.replace(/ /g,"+");if(Rr.loadedFonts.indexOf(A.family)<0){Rr.loadedFonts.push(A.family);let o=document,s=`https://prasi.avolut.com/_font/css2?family=${r}${n}`;if(!o.querySelector(`link[href="${s}]`)){let a=o.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=s,o.head.appendChild(a)}}}return!A.family&&Rr.defaultFont&&(A.family=Rr.defaultFont),cx(A.color&&`
|
|
color: ${A.color};
|
|
`,A.whitespace==="whitespace-normal"&&`
|
|
word-break: break-word;
|
|
`,A.whitespace==="whitespace-nowrap"&&`
|
|
white-space: nowrap;
|
|
`,A.color&&`
|
|
color: ${A.color};
|
|
`,`
|
|
text-align: ${A.align?A.align:"left"};
|
|
`,A.size&&`
|
|
font-size: ${A.size||15}px;
|
|
`,A.height&&`
|
|
line-height: ${A.height==="auto"?"normal":`${A.height}%`};
|
|
`,A.family&&`
|
|
font-family: ${A.family};
|
|
`)};var c0=(e,t)=>{let A=[],i=kt(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(i)i.wrap&&A.push(i.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),i.dir.startsWith("col")?(i.dir==="col"?A.push("flex-direction: column;"):i.dir==="col-reverse"&&A.push("flex-direction: column-reverse;"),i.gap==="auto"?(i.align==="left"&&A.push("align-items:start; justify-content: space-between;"),i.align==="center"&&A.push("align-items:center; justify-content: space-between;"),i.align==="right"&&A.push("align-items:end; justify-content: space-between;")):(A.push(`gap: ${i.gap}px;`),i.align==="top-left"&&A.push("align-items:start; justify-content: start;"),i.align==="top-center"&&A.push("align-items:center; justify-content: start;"),i.align==="top-right"&&A.push("align-items:end; justify-content: start;"),i.align==="left"&&A.push("align-items:start; justify-content: center;"),i.align==="center"&&A.push("align-items:center; justify-content: center;"),i.align==="right"&&A.push("align-items:end; justify-content: center;"),i.align==="bottom-left"&&A.push("align-items:start; justify-content: end;"),i.align==="bottom-center"&&A.push("align-items:center; justify-content: end;"),i.align==="bottom-right"&&A.push("align-items:end; justify-content: end;"))):(i.dir==="row"?A.push("flex-direction: row;"):i.dir==="row-reverse"&&A.push("flex-direction: row-reverse;"),i.gap==="auto"?(i.align==="top"&&A.push("align-items:start; justify-content: space-between;"),i.align==="center"&&A.push("align-items:center; justify-content: space-between;"),i.align==="bottom"&&A.push("align-items:end; justify-content: space-between;")):(A.push(`
|
|
gap: ${i.gap}px;
|
|
`),i.align==="top-left"&&A.push("align-items:start; justify-content: start;"),i.align==="top-center"&&A.push("align-items:start; justify-content: center;"),i.align==="top-right"&&A.push("align-items:start; justify-content: end;"),i.align==="left"&&A.push("align-items:center; justify-content: start;"),i.align==="center"&&A.push("align-items:center; justify-content: center;"),i.align==="right"&&A.push("align-items:center; justify-content: end;"),i.align==="bottom-left"&&A.push("align-items:end; justify-content: start;"),i.align==="bottom-center"&&A.push("align-items:end; justify-content: center;"),i.align==="bottom-right"&&A.push("align-items:end; justify-content: end;")));else return"flex-direction:column; align-items:start; justify-content: start;";return A.join(`
|
|
`).trim()};var l0=(e,t)=>{let A=kt(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(A.l!==void 0&&`
|
|
padding-left: ${A.l}px;
|
|
`,A.r!==void 0&&`
|
|
padding-right: ${A.r}px;
|
|
`,A.b!==void 0&&`
|
|
padding-bottom: ${A.b}px;
|
|
`,A.t!==void 0&&`
|
|
padding-top: ${A.t}px;
|
|
`)};var kB=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css`
|
|
display: flex;
|
|
position: relative;
|
|
user-select: none;
|
|
${c0(e,t.mode)}
|
|
${l0(e,t.mode)}
|
|
${s0(e,t.mode,t?.editor)}
|
|
${o0(e,t.mode)}
|
|
${Vw(e,t.mode)}
|
|
${I0(e,t.mode)}
|
|
`,(t?.hover||t?.active)&&a0({item:e,hover:t?.hover,active:t?.active}),Pw(e,t.mode)])}catch(A){console.log(A)}return cx([])};var g0=K(se()),Ms=(e,t,A,i)=>{let n=t.item,r;n.component?.style&&(r={style:n.component.style,className:kB(n.component.style,{mode:e.mode})});let o={className:kB(n,{mode:e.mode}),inherit:r},s={},a=t.item.childs,c;return t.item.type==="text"?(c=null,o.dangerouslySetInnerHTML={__html:t.item.html||""}):c=Array.isArray(a)&&a?.map(I=>{if(!I)return null;let{id:l}=I,g=A?e.layout?.meta[l]:e.meta[l];return g?(0,g0.jsx)(xA,{meta:g,is_layout:A,passprop:i},l):null}),o.children=c,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete o.children,delete o.dangerouslySetInnerHTML),{props:o,text_props:s}};var p0=K(ze());var qc=K(ze());var Rc=K(ze());var Jr=K(ze());var f0=K(DB()),vc=K(se()),B0=(e,t,A)=>i=>{if(A.item.script||(A.item.script={}),A.item.script.passprop||(A.item.script.passprop={}),A.item.script.passprop){let n=!1;for(let[r,o]of Object.entries(i))["children","key"].includes(r)||(n=!0,A.item.script.passprop[r]={end:0,start:0,value:o})}if(!Array.isArray(i.children)&&(0,Jr.isValidElement)(i.children)&&typeof i.children=="object"){let n=(0,f0.default)(i.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(n)){let r=!0;for(let o of n)!(0,Jr.isValidElement)(o)&&typeof o=="object"||(r=!1);if(r)return n.map(({id:o})=>{let s=e.meta[o];return(0,vc.jsx)(xA,{is_layout:t,meta:s},o)})}}if(!Array.isArray(i.children)&&!(0,Jr.isValidElement)(i.children)&&typeof i.children=="object"){let n=i.children.id;if(n){let r=e.meta[n];return(0,vc.jsx)(xA,{is_layout:t,meta:r})}}else if(Array.isArray(i.children)){let n=!0;for(let r of i.children)!(0,Jr.isValidElement)(r)&&typeof r=="object"||(n=!1);if(n)return i.children.map(({id:r})=>{let o=e.meta[r];return(0,vc.jsx)(xA,{is_layout:t,meta:o},r)})}return SB(i,A.script?.scope)},SB=(e,t)=>{let A={};if(Array.isArray(e)?A.children=e:A=e,Array.isArray(A.children)){let i=[];for(let n of A.children)i.push(u0(n,A,t));return i}return u0(A.children,A,t)},u0=(e,t,A)=>{if((0,Jr.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,passprop:{...A,...i}}}}return e};var d0=(e,t,A)=>i=>{let{children:n}=i,r=e.script?.init_local_effect,o=t?e.layout?.meta:e.meta,a=(0,Rc.useRef)(i.value).current;return a.render=A.render,Jc(e,A,A.script?.scope),i.hook&&i.hook(a),(0,Rc.useEffect)(()=>{let c=A.item.id;if(A.parent?.instance_id&&o){let l=o[A.parent?.instance_id];if(l&&l.instances){for(let[g,u]of Object.entries(l.instances[A.parent.instance_id]))if(u===A.item.id){c=g;break}}}return!r[c]&&(typeof r=="object"&&(r[c]=!0),(async()=>i.effect&&await i.effect(a))()),()=>{}},[location.pathname]),SB(n,{...A.script?.scope,[i.name]:a})};var UB=K(se()),C0=(e,t,A,i)=>{let n=Ms(e,t,A,i);e.visit&&e.visit(t,n),t.script?t.script.scope=i:t.script={scope:i,result:null,Local:d0(e,A,t),PassProp:B0(e,A,t)};let r=t.script,o=window.exports,s={useEffect:qc.useEffect,children:n.props.children,props:n.props,Local:r.Local,db:e.site.db,api:e.site.api,PassProp:r?.PassProp,ErrorBox:UA,newElement:()=>{},render:l=>{r.result=(0,UB.jsx)(qc.Suspense,{children:l})},params,...Mr(e),...o,...i};if(typeof i=="object"){for(let[l,g]of Object.entries(i))if(typeof g=="object"&&g&&g._jsx){let u=g;s[l]=(0,UB.jsx)(uH,{fn:u.fn,passprop:i,meta:t})}}!Ce.isEditor&&t.item.adv?.js&&Ic(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",c=xB(a,NB)||"";new Function(...Object.keys(s),`// ${t.item.name}: ${t.item.id}
|
|
${c}
|
|
`)(...Object.values(s)),Jc(e,t,i)},uH=({fn:e,meta:t,passprop:A})=>e({passprop:A,meta:t}),NB={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},xB=(e,t)=>{let A=e;for(let[i,n]of Object.entries(t))A=A.replaceAll(i,n);return A};var h0=K(se()),Q0=(e,t,A,i)=>{if(t.item.component?.id){t.item.script||(t.item.script={});let r={...window.exports,db:e.site.db,api:e.site.api,...Mr(e),...i,params};t.item.script.props={};let o=new Set;if(t.item.component.props)for(let[s,a]of Object.entries(t.item.component.props))try{if(a.meta?.type==="content-element"){let u={_jsx:!0,fn:f=>{let C=a.content?.id;if(C){let F=A?e.layout?.meta[C]:e.meta[C];if(!F)return null;let d=t.instances;if(!f.meta.item.originalId||!d||!d[t.item.id])return null;let Q=f.meta.item.originalId;if(F.mitem&&(a.jsxCalledBy&&(!a.jsxCalledBy.includes(Q)||a.jsxCalledBy.length!==2)||!a.jsxCalledBy)){let y=t.mitem?.get("component")?.get("props")?.get(s);if(y){let k=y.get("jsxCalledBy");!k||typeof k!="object"?y.set("jsxCalledBy",[t.item.id,Q]):(!k.includes(Q)||k.length!==2||k[0]!==t.item.id||k[1]!==Q)&&y.set("jsxCalledBy",[t.item.id,Q])}}return(0,h0.jsx)(xA,{meta:F,passprop:f.passprop,is_layout:A})}return null}};r[s]=u,i&&(i[s]=u);continue}a.value&&Ic(e,a.value);let c=a.valueBuilt||"",I=xB(c,NB)||"",l=new Function(...Object.keys(r),`// [${t.item.name}] ${s}: ${t.item.id}
|
|
return ${I}
|
|
`);t.item.script.props[s]={value:I};let g=l(...Object.values(r));typeof g=="function"&&(t.item.script.props[s].fn=g,g=(...u)=>t.item.script?.props?.[s].fn(...u)),r[s]=g,i&&(i[s]=g)}catch{o.add(s)}}},Jc=(e,t,A)=>{if(t.item.script?.props){let i={...A,api:e.site.api,db:e.site.db};for(let[n,r]of Object.entries(t.item.script.props))if(r.fn){let o=new Function(...Object.keys(i),`// [${t.item.name}] ${n}: ${t.item.id}
|
|
return ${r.value||""}
|
|
`);r.fn=o(...Object.values(i))}}};var E0=K(se()),GB=({meta:e,passprop:t,is_layout:A})=>{let i=Fi(Ki,"VI"),[n,r]=(0,p0.useState)({});e.render=()=>{r({})};let o=t;return e.item.component?.id&&(o||(o={}),Q0(i,e,A,o)),e.item.adv?.js&&(C0(i,e,A,o),e.script)?e.script.result:(0,E0.jsx)(HB,{meta:e,passprop:o,is_layout:A})};var Ze=K(se()),fH=70,Kc={enabled:!1,meta:{}},xA=({meta:e,children:t,passprop:A,is_layout:i})=>{if(Kc.enabled){let n=Kc.meta;if(n[e.item.id]?n[e.item.id].last_render===Math.floor(Date.now()/1e3)?n[e.item.id].count++:n[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:n[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},n[e.item.id]?.count>fH)return(0,Ze.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Ze.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,Ze.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",n[e.item.id]?.count," times in less than 1 second."]})]})}return!e||e.item.hidden?null:e.item.adv?.js||e.item.component?.id?(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(GB,{meta:e,is_layout:i,passprop:A})}):(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(HB,{meta:e,passprop:A,is_layout:i})})},HB=({meta:e,passprop:t,is_layout:A})=>{let i=Fi(Ki,"VI");if(A&&e.item.name==="children"){let r=[];for(let o of i.entry){let s=i.meta[o];if(s.item.adv?.js||s.item.component?.id)r.push((0,Ze.jsx)(UA,{meta:s,children:(0,Ze.jsx)(GB,{meta:s,is_layout:!1,passprop:t})}));else{let a=Ms(i,s,!1,t);i.visit&&i.visit(s,a),r.push((0,Ze.jsx)("div",{...a.props}))}}return(0,Ze.jsx)(Ze.Fragment,{children:r.map((o,s)=>(0,Ze.jsx)(m0.Fragment,{children:o},s))})}let n=Ms(i,e,A,t);return i.visit&&i.visit(e,n),(0,Ze.jsx)("div",{...n.props})};var qr=K(se()),y0=({})=>{let e=Fi(Ki,"VI"),t=mi({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,qr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,qr.jsx)(An,{backdrop:!1})});let A=!!e.layout?.entry&&e.layout.entry.length>0,i=e.entry;return A&&e.layout?.entry&&(i=e.layout?.entry),(0,qr.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(i)&&i.map(n=>{let r=A?e.layout?.meta[n]:e.meta[n];return r&&Element?(0,qr.jsx)(UA,{children:(0,qr.jsx)(xA,{meta:r,is_layout:A})},r.item.id):null})})};var Oc=K(se()),bc=window,w0=({meta:e,entry:t,api_url:A,site_id:i,api:n,mode:r,db:o,visit:s,script:a,page_id:c,render_stat:I,on_status_changed:l,on_preload:g,layout:u})=>{let f=Fi(Ki,"VI");return f.mode=r,f.entry=t,f.on_preload=g,bc.siteurl=(C,F)=>{if(C.startsWith("http://")||C.startsWith("https://"))return C;if(["prasi.avolut.com","localhost"].includes(location.hostname)?f.site.api_url&&(f.site_url||(f.site_url=new URL(f.site.api_url))):f.site_url||(F&&f.site.api_url?f.site_url=new URL(f.site.api_url):f.site_url=new URL(location.href),f.site_url.pathname=""),f.site_url){let d=f.site_url,B=C;return B.startsWith("/")||(B="/"+B),`${d.protocol}//${d.hostname}${B}`}return C},bc.isMobile=r==="mobile",bc.isDesktop=r==="desktop",bc.preload=(C,F)=>{f.page.navs[c]||(f.page.navs[c]=new Set);let d=typeof C=="string"?[C]:C;for(let B of d)f.page.navs[c].add(B);return clearTimeout(En.timeout),En.timeout=setTimeout(()=>{f.on_preload&&f.on_preload({urls:Array.from(f.page.navs[c]),opt:{on_load:F?.on_load}})},100),""},f.layout=u,f.page.cur.id=c,f.on_status_changes=l,I==="disabled"&&(Kc.enabled=!1),f.meta!==e&&(f.meta=e),a&&(f.script.init_local_effect=a.init_local_effect),f.visit=s,f.status==="init"&&(f.site.db=o,f.site.api=n,Kw(f,{api_url:A,site_id:i})),g&&(0,Lc.useEffect)(()=>{setTimeout(()=>{let C=f.page.navs[f.page.cur.id];C&&g({urls:Array.from(C),opt:{on_load(F){}}})},500)},[f.page.cur.id]),(0,Oc.jsx)(UA,{children:(0,Oc.jsx)(Lc.Suspense,{children:(0,Oc.jsx)(y0,{})})})};var MB=window,v={root:null,url(...e){let t=e.map(i=>Array.isArray(i)?i.join(""):i).join(""),A=this.root.toString();return A.endsWith("/")&&(A=A.substring(0,A.length-1)),t.startsWith("/")?A+t:A+"/"+t},get pathname(){let e=location.pathname.substring(v.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:MB._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:new Set},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},F0=()=>{if(!v.root){let e=new URL(location.href);MB._prasi.basepath&&(e.pathname=MB._prasi.basepath),v.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),v.root.pathname.endsWith("/")&&(v.root.pathname=v.root.pathname.substring(0,v.root.length-1))}};var Kr=async e=>{let t=v.comp;for(let A of e)A&&A.type!=="text"&&vB(A);if(t.pending.size>0)try{let A=await(await fetch(v.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...t.pending]})})).json();for(let[i,n]of Object.entries(A))t.pending.delete(i),t.list[i]=n,await ds(`comp-${i}`,n);await Kr(Object.values(A))}catch{}},vB=e=>{let t=v.comp;if(e.type==="item"){let A=e.component?.id;if(A){!t.list[A]&&!t.pending.has(A)&&t.pending.add(A);for(let i of Object.values(e.component?.props||{}))i.content&&i.meta?.type==="content-element"&&vB(i.content)}}if(e.childs)for(let A of e.childs){let i=A;i&&i.type!=="text"&&vB(i)}};var D0=e=>new Promise(async t=>{let A=!1,i=await mr(`page-${e}`);i&&(t(i),A=!0);let n=await(await fetch(v.url`_prasi/page/${e}`)).json();A||t(n)}),BH=e=>new Promise(async t=>{let A={},i=[...new Set(e)],n=!0;for(let o of i){let s=await mr(`page-${o}`);if(s)A[o]=s;else{n=!1;break}}n&&t(A);let r=await(await fetch(v.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:i})})).json();n||t(r)}),k0=async e=>{let t=e.map(i=>v.route.router?.lookup(i)).filter(i=>i&&i.id);return await BH(t.map(i=>i?.id))};var U0=K(S0()),N0=()=>{let e=v;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,U0.default)();e.mode=t.device.type==="mobile"?"mobile":"desktop"}else e.site.responsive==="mobile-only"?e.mode="mobile":e.site.responsive==="desktop-only"&&(e.mode="desktop");localStorage.getItem("prasi-editor-mode")&&(e.mode=localStorage.getItem("prasi-editor-mode"))}};var dH=()=>new Promise(async e=>{let t=!1,A=await(await fetch(v.url`_prasi/route`)).json();t||e(A)}),x0=async()=>{let e=Fr(),t=[];try{let A=await dH();if(A&&A.site&&A.urls){A.layout&&(v.layout.id=A.layout.id,v.layout.root=A.layout.root,v.layout.meta={},v.layout.root&&(await Kr(v.layout.root.childs),Pc(v.layout.meta,v.layout.root))),v.site=A.site,v.site.code={mode:"vsc"},await CH(),v.site.api=mn(v.site.api_url),v.site.db=yn(v.site.api_url);let i=window;i.serverurl=v.site.api_url,i.db=v.site.db,i.api=v.site.api;for(let n of A.urls)e.insert(n.url,n),t.push(n)}}catch{}return{router:e,pages:t}},CH=()=>new Promise(e=>{let t=document,A=t.createElement("script");A.onload=async()=>{e()};let i=v.site.api_url;try{new URL(i)}catch{location.hostname==="localhost"?i="http://localhost:4550":i="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+i)||localStorage.setItem("api-ts-"+i,Date.now().toString());let n=localStorage.getItem("api-ts-"+i);A.src=`${i}/_prasi/load.js?url=${i}&v3&ts=${n}`,document.querySelector(`script[src="${A.src}"]`)?e():t.body.appendChild(A)}),Pc=(e,t)=>{for(let A of t.childs)vt({comps:v.comp.list,meta:e,mode:"page"},{item:A})};var kn=window;var $A=K(se()),JB=()=>location.hostname.split(".").length===4||location.hostname==="prasi.app"||location.hostname==="prasi.avolut.com"||location.hostname.includes("ngrok")||location.hostname==="localhost"||location.hostname==="127.0.0.1"||location.hostname==="10.0.2.2",H0=()=>{let e=mi({page_id:""}),[t,A]=(0,G0.useState)({}),i=()=>A({});kn.prasiContext.render=i;let n=yu.Provider,r=JB()&&location.pathname.startsWith("/prod");if(v.route.status!=="ready")return v.route.status==="init"&&(v.route.status="loading",x0().then(async({router:I,pages:l})=>{N0(),v.route.status="ready",v.route.router=I,v.route.pages=l;let g=Gc(await(await fetch(`${kn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"))).text());if(g)for(let[u,f]of Object.entries(g))window[u]=f;i()})),(0,$A.jsx)(An,{});let o=v.route.router;if(!o)return(0,$A.jsx)(ku,{children:"Failed to create Router"});let s="";if(r){let I=location.pathname.split("/");Du(I[3])&&(s=I[3])}let a=o.lookup(v.pathname);if(s){let I=v.route.pages.find(l=>s===l.id);I&&(a=I)}if(!a)return(0,$A.jsx)(ku,{children:"Page Not Found"});a.id!==e.page_id&&(v.init_local_effect={}),kn.params=a.params||{},v.page.id=a.id,v.page.url=a.url;let c=v.page.cache[a.id];if(c)v.page.root=c.root,v.page.meta=c.meta;else return D0(a.id).then(async({root:I})=>{if(a){let l={id:a.id,url:a.url,root:I,meta:{}};await Kr(I.childs),Pc(l.meta,I),v.page.cache[l.id]=l,i()}}).catch(()=>{i()}),(0,$A.jsx)(An,{note:"Loading page"});return(0,$A.jsx)(n,{value:kn.prasiContext,children:(0,$A.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,$A.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",v.mode==="mobile"?css`
|
|
@media (min-width: 768px) {
|
|
border-left: 1px solid #ccc;
|
|
border-right: 1px solid #ccc;
|
|
width: 375px;
|
|
top: 0px;
|
|
overflow-x: hidden;
|
|
overflow-y: auto;
|
|
bottom: 0px;
|
|
}
|
|
@media (max-width: 767px) {
|
|
left: 0px;
|
|
right: 0px;
|
|
top: 0px;
|
|
bottom: 0px;
|
|
overflow-y: auto;
|
|
}
|
|
`:"inset-0 overflow-auto",css`
|
|
contain: content;
|
|
`),children:(0,$A.jsx)(w0,{api_url:v.site.api_url,entry:Object.values(v.page.root.childs).filter(I=>I).map(I=>I.id),meta:v.page.meta,mode:v.mode,page_id:v.page.id,site_id:v.site.id,db:v.site.db,api:v.site.api,layout:v.layout.id&&v.layout.root&&v.layout.meta?{id:v.layout.id,meta:v.layout.meta,entry:Object.values(v.layout.root.childs).filter(I=>I).map(I=>I.id)}:void 0,script:{init_local_effect:v.init_local_effect},on_preload:async({urls:I,opt:l})=>{let g=[],u={};if(v.cache.urls)for(let f of I)v.cache.urls.has(f)||(g.push(f),v.cache.urls.add(f));if(g.length>0){let f=await k0(g);if(l?.on_load&&l.on_load(f,QH),Array.isArray(f))for(let C of f){let F={id:C.id,url:C.url,root:C.root,meta:{}};await Kr(C.root.childs),Pc(F.meta,C.root),v.page.cache[F.id]=F}}}})})})})},QH=(e,t)=>{for(let A of e)for(let i of A.root.childs)RB(i,t)},RB=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let A of Object.values(e.component.props))A.content&&RB(A.content,t);for(let A of e.childs)RB(A,t)}};var v0=K(se());(async()=>{F0();let e=document.getElementById("root");if(e){let t=(0,M0.createRoot)(e);await Hp(!1),Sp(),kn.navigateOverride=A=>(A&&A.startsWith("/")&&JB()&&location.pathname.startsWith("/prod")&&!A.startsWith("/prod")&&(A=`/prod/${location.pathname.split("/")[2]}${A}`),A),t.render((0,v0.jsx)(H0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})();
|
|
/*! Bundled license information:
|
|
|
|
react/cjs/react.production.min.js:
|
|
(**
|
|
* @license React
|
|
* react.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
scheduler/cjs/scheduler.production.min.js:
|
|
(**
|
|
* @license React
|
|
* scheduler.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
react-dom/cjs/react-dom.production.min.js:
|
|
(**
|
|
* @license React
|
|
* react-dom.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
@noble/hashes/utils.js:
|
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
|
|
react/cjs/react-jsx-dev-runtime.production.min.js:
|
|
(**
|
|
* @license React
|
|
* react-jsx-dev-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
react/cjs/react-jsx-runtime.production.min.js:
|
|
(**
|
|
* @license React
|
|
* react-jsx-runtime.production.min.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*)
|
|
|
|
hash-wasm/dist/index.esm.js:
|
|
(*!
|
|
* hash-wasm (https://www.npmjs.com/package/hash-wasm)
|
|
* (c) Dani Biro
|
|
* @license MIT
|
|
*)
|
|
*/
|
|
//# sourceMappingURL=main.js.map
|