226 lines
350 KiB
JavaScript
226 lines
350 KiB
JavaScript
var zy=Object.create;var GB=Object.defineProperty;var Py=Object.getOwnPropertyDescriptor;var _y=Object.getOwnPropertyNames;var Ty=Object.getPrototypeOf,Xy=Object.prototype.hasOwnProperty;var de=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Zy=(e,t,A,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of _y(t))!Xy.call(e,n)&&n!==A&&GB(e,n,{get:()=>t[n],enumerable:!(i=Py(t,n))||i.enumerable});return e};var R=(e,t,A)=>(A=e!=null?zy(Ty(e)):{},Zy(t||!e||!e.__esModule?GB(A,"default",{value:e,enumerable:!0}):A,e));var YB=de(W=>{"use strict";var kr=Symbol.for("react.element"),Wy=Symbol.for("react.portal"),jy=Symbol.for("react.fragment"),$y=Symbol.for("react.strict_mode"),ew=Symbol.for("react.profiler"),tw=Symbol.for("react.provider"),Aw=Symbol.for("react.context"),iw=Symbol.for("react.forward_ref"),nw=Symbol.for("react.suspense"),rw=Symbol.for("react.memo"),ow=Symbol.for("react.lazy"),HB=Symbol.iterator;function sw(e){return e===null||typeof e!="object"?null:(e=HB&&e[HB]||e["@@iterator"],typeof e=="function"?e:null)}var JB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qB=Object.assign,RB={};function hn(e,t,A){this.props=e,this.context=t,this.refs=RB,this.updater=A||JB}hn.prototype.isReactComponent={};hn.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")};hn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function KB(){}KB.prototype=hn.prototype;function ac(e,t,A){this.props=e,this.context=t,this.refs=RB,this.updater=A||JB}var cc=ac.prototype=new KB;cc.constructor=ac;qB(cc,hn.prototype);cc.isPureReactComponent=!0;var MB=Array.isArray,LB=Object.prototype.hasOwnProperty,gc={current:null},bB={key:!0,ref:!0,__self:!0,__source:!0};function OB(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)LB.call(t,i)&&!bB.hasOwnProperty(i)&&(n[i]=t[i]);var s=arguments.length-2;if(s===1)n.children=A;else if(1<s){for(var I=Array(s),a=0;a<s;a++)I[a]=arguments[a+2];n.children=I}if(e&&e.defaultProps)for(i in s=e.defaultProps,s)n[i]===void 0&&(n[i]=s[i]);return{$$typeof:kr,type:e,key:r,ref:o,props:n,_owner:gc.current}}function Iw(e,t){return{$$typeof:kr,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function lc(e){return typeof e=="object"&&e!==null&&e.$$typeof===kr}function aw(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(A){return t[A]})}var vB=/\/+/g;function Ic(e,t){return typeof e=="object"&&e!==null&&e.key!=null?aw(""+e.key):t.toString(36)}function fs(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 kr:case Wy:o=!0}}if(o)return o=e,n=n(o),e=i===""?"."+Ic(o,0):i,MB(n)?(A="",e!=null&&(A=e.replace(vB,"$&/")+"/"),fs(n,t,A,"",function(a){return a})):n!=null&&(lc(n)&&(n=Iw(n,A+(!n.key||o&&o.key===n.key?"":(""+n.key).replace(vB,"$&/")+"/")+e)),t.push(n)),1;if(o=0,i=i===""?".":i+":",MB(e))for(var s=0;s<e.length;s++){r=e[s];var I=i+Ic(r,s);o+=fs(r,t,A,I,n)}else if(I=sw(e),typeof I=="function")for(e=I.call(e),s=0;!(r=e.next()).done;)r=r.value,I=i+Ic(r,s++),o+=fs(r,t,A,I,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 Bs(e,t,A){if(e==null)return e;var i=[],n=0;return fs(e,i,"","",function(r){return t.call(A,r,n++)}),i}function cw(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 At={current:null},ds={transition:null},gw={ReactCurrentDispatcher:At,ReactCurrentBatchConfig:ds,ReactCurrentOwner:gc};W.Children={map:Bs,forEach:function(e,t,A){Bs(e,function(){t.apply(this,arguments)},A)},count:function(e){var t=0;return Bs(e,function(){t++}),t},toArray:function(e){return Bs(e,function(t){return t})||[]},only:function(e){if(!lc(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};W.Component=hn;W.Fragment=jy;W.Profiler=ew;W.PureComponent=ac;W.StrictMode=$y;W.Suspense=nw;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gw;W.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=qB({},e.props),n=e.key,r=e.ref,o=e._owner;if(t!=null){if(t.ref!==void 0&&(r=t.ref,o=gc.current),t.key!==void 0&&(n=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(I in t)LB.call(t,I)&&!bB.hasOwnProperty(I)&&(i[I]=t[I]===void 0&&s!==void 0?s[I]:t[I])}var I=arguments.length-2;if(I===1)i.children=A;else if(1<I){s=Array(I);for(var a=0;a<I;a++)s[a]=arguments[a+2];i.children=s}return{$$typeof:kr,type:e.type,key:n,ref:r,props:i,_owner:o}};W.createContext=function(e){return e={$$typeof:Aw,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:tw,_context:e},e.Consumer=e};W.createElement=OB;W.createFactory=function(e){var t=OB.bind(null,e);return t.type=e,t};W.createRef=function(){return{current:null}};W.forwardRef=function(e){return{$$typeof:iw,render:e}};W.isValidElement=lc;W.lazy=function(e){return{$$typeof:ow,_payload:{_status:-1,_result:e},_init:cw}};W.memo=function(e,t){return{$$typeof:rw,type:e,compare:t===void 0?null:t}};W.startTransition=function(e){var t=ds.transition;ds.transition={};try{e()}finally{ds.transition=t}};W.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};W.useCallback=function(e,t){return At.current.useCallback(e,t)};W.useContext=function(e){return At.current.useContext(e)};W.useDebugValue=function(){};W.useDeferredValue=function(e){return At.current.useDeferredValue(e)};W.useEffect=function(e,t){return At.current.useEffect(e,t)};W.useId=function(){return At.current.useId()};W.useImperativeHandle=function(e,t,A){return At.current.useImperativeHandle(e,t,A)};W.useInsertionEffect=function(e,t){return At.current.useInsertionEffect(e,t)};W.useLayoutEffect=function(e,t){return At.current.useLayoutEffect(e,t)};W.useMemo=function(e,t){return At.current.useMemo(e,t)};W.useReducer=function(e,t,A){return At.current.useReducer(e,t,A)};W.useRef=function(e){return At.current.useRef(e)};W.useState=function(e){return At.current.useState(e)};W.useSyncExternalStore=function(e,t,A){return At.current.useSyncExternalStore(e,t,A)};W.useTransition=function(){return At.current.useTransition()};W.version="18.2.0"});var Ye=de((yN,VB)=>{"use strict";VB.exports=YB()});var ef=de(ge=>{"use strict";function dc(e,t){var A=e.length;e.push(t);e:for(;0<A;){var i=A-1>>>1,n=e[i];if(0<Qs(n,t))e[i]=t,e[A]=n,A=i;else break e}}function zt(e){return e.length===0?null:e[0]}function hs(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],I=o+1,a=e[I];if(0>Qs(s,A))I<n&&0>Qs(a,s)?(e[i]=a,e[I]=A,i=I):(e[i]=s,e[o]=A,i=o);else if(I<n&&0>Qs(a,A))e[i]=a,e[I]=A,i=I;else break e}}return t}function Qs(e,t){var A=e.sortIndex-t.sortIndex;return A!==0?A:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(zB=performance,ge.unstable_now=function(){return zB.now()}):(uc=Date,PB=uc.now(),ge.unstable_now=function(){return uc.now()-PB});var zB,uc,PB,sA=[],XA=[],lw=1,xt=null,Xe=3,ps=!1,Ni=!1,Ur=!1,XB=typeof setTimeout=="function"?setTimeout:null,ZB=typeof clearTimeout=="function"?clearTimeout:null,_B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Qc(e){for(var t=zt(XA);t!==null;){if(t.callback===null)hs(XA);else if(t.startTime<=e)hs(XA),t.sortIndex=t.expirationTime,dc(sA,t);else break;t=zt(XA)}}function Cc(e){if(Ur=!1,Qc(e),!Ni)if(zt(sA)!==null)Ni=!0,pc(hc);else{var t=zt(XA);t!==null&&Ec(Cc,t.startTime-e)}}function hc(e,t){Ni=!1,Ur&&(Ur=!1,ZB(Nr),Nr=-1),ps=!0;var A=Xe;try{for(Qc(t),xt=zt(sA);xt!==null&&(!(xt.expirationTime>t)||e&&!$B());){var i=xt.callback;if(typeof i=="function"){xt.callback=null,Xe=xt.priorityLevel;var n=i(xt.expirationTime<=t);t=ge.unstable_now(),typeof n=="function"?xt.callback=n:xt===zt(sA)&&hs(sA),Qc(t)}else hs(sA);xt=zt(sA)}if(xt!==null)var r=!0;else{var o=zt(XA);o!==null&&Ec(Cc,o.startTime-t),r=!1}return r}finally{xt=null,Xe=A,ps=!1}}var Es=!1,Cs=null,Nr=-1,WB=5,jB=-1;function $B(){return!(ge.unstable_now()-jB<WB)}function Bc(){if(Cs!==null){var e=ge.unstable_now();jB=e;var t=!0;try{t=Cs(!0,e)}finally{t?Sr():(Es=!1,Cs=null)}}else Es=!1}var Sr;typeof _B=="function"?Sr=function(){_B(Bc)}:typeof MessageChannel<"u"?(fc=new MessageChannel,TB=fc.port2,fc.port1.onmessage=Bc,Sr=function(){TB.postMessage(null)}):Sr=function(){XB(Bc,0)};var fc,TB;function pc(e){Cs=e,Es||(Es=!0,Sr())}function Ec(e,t){Nr=XB(function(){e(ge.unstable_now())},t)}ge.unstable_IdlePriority=5;ge.unstable_ImmediatePriority=1;ge.unstable_LowPriority=4;ge.unstable_NormalPriority=3;ge.unstable_Profiling=null;ge.unstable_UserBlockingPriority=2;ge.unstable_cancelCallback=function(e){e.callback=null};ge.unstable_continueExecution=function(){Ni||ps||(Ni=!0,pc(hc))};ge.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"):WB=0<e?Math.floor(1e3/e):5};ge.unstable_getCurrentPriorityLevel=function(){return Xe};ge.unstable_getFirstCallbackNode=function(){return zt(sA)};ge.unstable_next=function(e){switch(Xe){case 1:case 2:case 3:var t=3;break;default:t=Xe}var A=Xe;Xe=t;try{return e()}finally{Xe=A}};ge.unstable_pauseExecution=function(){};ge.unstable_requestPaint=function(){};ge.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var A=Xe;Xe=e;try{return t()}finally{Xe=A}};ge.unstable_scheduleCallback=function(e,t,A){var i=ge.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:lw++,callback:t,priorityLevel:e,startTime:A,expirationTime:n,sortIndex:-1},A>i?(e.sortIndex=A,dc(XA,e),zt(sA)===null&&e===zt(XA)&&(Ur?(ZB(Nr),Nr=-1):Ur=!0,Ec(Cc,A-i))):(e.sortIndex=n,dc(sA,e),Ni||ps||(Ni=!0,pc(hc))),e};ge.unstable_shouldYield=$B;ge.unstable_wrapCallback=function(e){var t=Xe;return function(){var A=Xe;Xe=t;try{return e.apply(this,arguments)}finally{Xe=A}}}});var Af=de((FN,tf)=>{"use strict";tf.exports=ef()});var aC=de(Ut=>{"use strict";var cd=Ye(),kt=Af();function N(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 gd=new Set,jr={};function Yi(e,t){Ln(e,t),Ln(e+"Capture",t)}function Ln(e,t){for(jr[e]=t,e=0;e<t.length;e++)gd.add(t[e])}var GA=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vc=Object.prototype.hasOwnProperty,uw=/^[: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]*$/,nf={},rf={};function Bw(e){return Vc.call(rf,e)?!0:Vc.call(nf,e)?!1:uw.test(e)?rf[e]=!0:(nf[e]=!0,!1)}function fw(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 dw(e,t,A,i){if(t===null||typeof t>"u"||fw(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 rt(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 Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new rt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new rt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new rt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new rt(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){Pe[e]=new rt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new rt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new rt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new rt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new rt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Jg=/[\-:]([a-z])/g;function qg(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(Jg,qg);Pe[t]=new rt(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(Jg,qg);Pe[t]=new rt(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(Jg,qg);Pe[t]=new rt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new rt(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new rt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new rt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Rg(e,t,A,i){var n=Pe.hasOwnProperty(t)?Pe[t]:null;(n!==null?n.type!==0:i||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(dw(t,A,n,i)&&(A=null),i||n===null?Bw(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 JA=cd.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ms=Symbol.for("react.element"),mn=Symbol.for("react.portal"),yn=Symbol.for("react.fragment"),Kg=Symbol.for("react.strict_mode"),zc=Symbol.for("react.profiler"),ld=Symbol.for("react.provider"),ud=Symbol.for("react.context"),Lg=Symbol.for("react.forward_ref"),Pc=Symbol.for("react.suspense"),_c=Symbol.for("react.suspense_list"),bg=Symbol.for("react.memo"),WA=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Bd=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var of=Symbol.iterator;function xr(e){return e===null||typeof e!="object"?null:(e=of&&e[of]||e["@@iterator"],typeof e=="function"?e:null)}var we=Object.assign,mc;function Kr(e){if(mc===void 0)try{throw Error()}catch(A){var t=A.stack.trim().match(/\n( *(at )?)/);mc=t&&t[1]||""}return`
|
|
`+mc+e}var yc=!1;function wc(e,t){if(!e||yc)return"";yc=!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(a){var i=a}Reflect.construct(e,[],t)}else{try{t.call()}catch(a){i=a}e.call(t.prototype)}else{try{throw Error()}catch(a){i=a}e()}}catch(a){if(a&&i&&typeof a.stack=="string"){for(var n=a.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 I=`
|
|
`+n[o].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=o&&0<=s);break}}}finally{yc=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?Kr(e):""}function Qw(e){switch(e.tag){case 5:return Kr(e.type);case 16:return Kr("Lazy");case 13:return Kr("Suspense");case 19:return Kr("SuspenseList");case 0:case 2:case 15:return e=wc(e.type,!1),e;case 11:return e=wc(e.type.render,!1),e;case 1:return e=wc(e.type,!0),e;default:return""}}function Tc(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 yn:return"Fragment";case mn:return"Portal";case zc:return"Profiler";case Kg:return"StrictMode";case Pc:return"Suspense";case _c:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case ud:return(e.displayName||"Context")+".Consumer";case ld:return(e._context.displayName||"Context")+".Provider";case Lg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case bg:return t=e.displayName||null,t!==null?t:Tc(e.type)||"Memo";case WA:t=e._payload,e=e._init;try{return Tc(e(t))}catch{}}return null}function Cw(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 Tc(t);case 8:return t===Kg?"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 gi(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fd(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hw(e){var t=fd(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 ys(e){e._valueTracker||(e._valueTracker=hw(e))}function dd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),i="";return e&&(i=fd(e)?e.checked?"true":"false":e.value),e=i,e!==A?(t.setValue(e),!0):!1}function Ws(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 Xc(e,t){var A=t.checked;return we({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function sf(e,t){var A=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;A=gi(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 Qd(e,t){t=t.checked,t!=null&&Rg(e,"checked",t,!1)}function Zc(e,t){Qd(e,t);var A=gi(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")?Wc(e,t.type,A):t.hasOwnProperty("defaultValue")&&Wc(e,t.type,gi(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function If(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 Wc(e,t,A){(t!=="number"||Ws(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var Lr=Array.isArray;function Mn(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=""+gi(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 jc(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(N(91));return we({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function af(e,t){var A=t.value;if(A==null){if(A=t.children,t=t.defaultValue,A!=null){if(t!=null)throw Error(N(92));if(Lr(A)){if(1<A.length)throw Error(N(93));A=A[0]}t=A}t==null&&(t=""),A=t}e._wrapperState={initialValue:gi(A)}}function Cd(e,t){var A=gi(t.value),i=gi(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 cf(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function hd(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 $c(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?hd(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var ws,pd=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(ws=ws||document.createElement("div"),ws.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ws.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $r(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var Yr={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},pw=["Webkit","ms","Moz","O"];Object.keys(Yr).forEach(function(e){pw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Yr[t]=Yr[e]})});function Ed(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||Yr.hasOwnProperty(e)&&Yr[e]?(""+t).trim():t+"px"}function md(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var i=A.indexOf("--")===0,n=Ed(A,t[A],i);A==="float"&&(A="cssFloat"),i?e.setProperty(A,n):e[A]=n}}var Ew=we({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 eg(e,t){if(t){if(Ew[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(N(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(N(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(N(61))}if(t.style!=null&&typeof t.style!="object")throw Error(N(62))}}function tg(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 Ag=null;function Og(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ig=null,vn=null,Jn=null;function gf(e){if(e=Co(e)){if(typeof ig!="function")throw Error(N(280));var t=e.stateNode;t&&(t=FI(t),ig(e.stateNode,e.type,t))}}function yd(e){vn?Jn?Jn.push(e):Jn=[e]:vn=e}function wd(){if(vn){var e=vn,t=Jn;if(Jn=vn=null,gf(e),t)for(e=0;e<t.length;e++)gf(t[e])}}function Fd(e,t){return e(t)}function Dd(){}var Fc=!1;function kd(e,t,A){if(Fc)return e(t,A);Fc=!0;try{return Fd(e,t,A)}finally{Fc=!1,(vn!==null||Jn!==null)&&(Dd(),wd())}}function eo(e,t){var A=e.stateNode;if(A===null)return null;var i=FI(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(N(231,t,typeof A));return A}var ng=!1;if(GA)try{pn={},Object.defineProperty(pn,"passive",{get:function(){ng=!0}}),window.addEventListener("test",pn,pn),window.removeEventListener("test",pn,pn)}catch{ng=!1}var pn;function mw(e,t,A,i,n,r,o,s,I){var a=Array.prototype.slice.call(arguments,3);try{t.apply(A,a)}catch(c){this.onError(c)}}var Vr=!1,js=null,$s=!1,rg=null,yw={onError:function(e){Vr=!0,js=e}};function ww(e,t,A,i,n,r,o,s,I){Vr=!1,js=null,mw.apply(yw,arguments)}function Fw(e,t,A,i,n,r,o,s,I){if(ww.apply(this,arguments),Vr){if(Vr){var a=js;Vr=!1,js=null}else throw Error(N(198));$s||($s=!0,rg=a)}}function Vi(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 Sd(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 lf(e){if(Vi(e)!==e)throw Error(N(188))}function Dw(e){var t=e.alternate;if(!t){if(t=Vi(e),t===null)throw Error(N(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 lf(n),e;if(r===i)return lf(n),t;r=r.sibling}throw Error(N(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(N(189))}}if(A.alternate!==i)throw Error(N(190))}if(A.tag!==3)throw Error(N(188));return A.stateNode.current===A?e:t}function Ud(e){return e=Dw(e),e!==null?Nd(e):null}function Nd(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Nd(e);if(t!==null)return t;e=e.sibling}return null}var xd=kt.unstable_scheduleCallback,uf=kt.unstable_cancelCallback,kw=kt.unstable_shouldYield,Sw=kt.unstable_requestPaint,ke=kt.unstable_now,Uw=kt.unstable_getCurrentPriorityLevel,Yg=kt.unstable_ImmediatePriority,Gd=kt.unstable_UserBlockingPriority,eI=kt.unstable_NormalPriority,Nw=kt.unstable_LowPriority,Hd=kt.unstable_IdlePriority,EI=null,gA=null;function xw(e){if(gA&&typeof gA.onCommitFiberRoot=="function")try{gA.onCommitFiberRoot(EI,e,void 0,(e.current.flags&128)===128)}catch{}}var Zt=Math.clz32?Math.clz32:Mw,Gw=Math.log,Hw=Math.LN2;function Mw(e){return e>>>=0,e===0?32:31-(Gw(e)/Hw|0)|0}var Fs=64,Ds=4194304;function br(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 tI(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=br(s):(r&=o,r!==0&&(i=br(r)))}else o=A&~n,o!==0?i=br(o):r!==0&&(i=br(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-Zt(t),n=1<<A,i|=e[A],t&=~n;return i}function vw(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 Jw(e,t){for(var A=e.suspendedLanes,i=e.pingedLanes,n=e.expirationTimes,r=e.pendingLanes;0<r;){var o=31-Zt(r),s=1<<o,I=n[o];I===-1?(!(s&A)||s&i)&&(n[o]=vw(s,t)):I<=t&&(e.expiredLanes|=s),r&=~s}}function og(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Md(){var e=Fs;return Fs<<=1,!(Fs&4194240)&&(Fs=64),e}function Dc(e){for(var t=[],A=0;31>A;A++)t.push(e);return t}function fo(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Zt(t),e[t]=A}function qw(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-Zt(A),r=1<<n;t[n]=0,i[n]=-1,e[n]=-1,A&=~r}}function Vg(e,t){var A=e.entangledLanes|=t;for(e=e.entanglements;A;){var i=31-Zt(A),n=1<<i;n&t|e[i]&t&&(e[i]|=t),A&=~n}}var se=0;function vd(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Jd,zg,qd,Rd,Kd,sg=!1,ks=[],ii=null,ni=null,ri=null,to=new Map,Ao=new Map,$A=[],Rw="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 Bf(e,t){switch(e){case"focusin":case"focusout":ii=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":ri=null;break;case"pointerover":case"pointerout":to.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ao.delete(t.pointerId)}}function Gr(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=Co(t),t!==null&&zg(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function Kw(e,t,A,i,n){switch(t){case"focusin":return ii=Gr(ii,e,t,A,i,n),!0;case"dragenter":return ni=Gr(ni,e,t,A,i,n),!0;case"mouseover":return ri=Gr(ri,e,t,A,i,n),!0;case"pointerover":var r=n.pointerId;return to.set(r,Gr(to.get(r)||null,e,t,A,i,n)),!0;case"gotpointercapture":return r=n.pointerId,Ao.set(r,Gr(Ao.get(r)||null,e,t,A,i,n)),!0}return!1}function Ld(e){var t=Hi(e.target);if(t!==null){var A=Vi(t);if(A!==null){if(t=A.tag,t===13){if(t=Sd(A),t!==null){e.blockedOn=t,Kd(e.priority,function(){qd(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 bs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var A=Ig(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(A===null){A=e.nativeEvent;var i=new A.constructor(A.type,A);Ag=i,A.target.dispatchEvent(i),Ag=null}else return t=Co(A),t!==null&&zg(t),e.blockedOn=A,!1;t.shift()}return!0}function ff(e,t,A){bs(e)&&A.delete(t)}function Lw(){sg=!1,ii!==null&&bs(ii)&&(ii=null),ni!==null&&bs(ni)&&(ni=null),ri!==null&&bs(ri)&&(ri=null),to.forEach(ff),Ao.forEach(ff)}function Hr(e,t){e.blockedOn===t&&(e.blockedOn=null,sg||(sg=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,Lw)))}function io(e){function t(n){return Hr(n,e)}if(0<ks.length){Hr(ks[0],e);for(var A=1;A<ks.length;A++){var i=ks[A];i.blockedOn===e&&(i.blockedOn=null)}}for(ii!==null&&Hr(ii,e),ni!==null&&Hr(ni,e),ri!==null&&Hr(ri,e),to.forEach(t),Ao.forEach(t),A=0;A<$A.length;A++)i=$A[A],i.blockedOn===e&&(i.blockedOn=null);for(;0<$A.length&&(A=$A[0],A.blockedOn===null);)Ld(A),A.blockedOn===null&&$A.shift()}var qn=JA.ReactCurrentBatchConfig,AI=!0;function bw(e,t,A,i){var n=se,r=qn.transition;qn.transition=null;try{se=1,Pg(e,t,A,i)}finally{se=n,qn.transition=r}}function Ow(e,t,A,i){var n=se,r=qn.transition;qn.transition=null;try{se=4,Pg(e,t,A,i)}finally{se=n,qn.transition=r}}function Pg(e,t,A,i){if(AI){var n=Ig(e,t,A,i);if(n===null)Hc(e,t,i,iI,A),Bf(e,i);else if(Kw(n,e,t,A,i))i.stopPropagation();else if(Bf(e,i),t&4&&-1<Rw.indexOf(e)){for(;n!==null;){var r=Co(n);if(r!==null&&Jd(r),r=Ig(e,t,A,i),r===null&&Hc(e,t,i,iI,A),r===n)break;n=r}n!==null&&i.stopPropagation()}else Hc(e,t,i,null,A)}}var iI=null;function Ig(e,t,A,i){if(iI=null,e=Og(i),e=Hi(e),e!==null)if(t=Vi(e),t===null)e=null;else if(A=t.tag,A===13){if(e=Sd(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 iI=e,null}function bd(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(Uw()){case Yg:return 1;case Gd:return 4;case eI:case Nw:return 16;case Hd:return 536870912;default:return 16}default:return 16}}var ti=null,_g=null,Os=null;function Od(){if(Os)return Os;var e,t=_g,A=t.length,i,n="value"in ti?ti.value:ti.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 Os=n.slice(e,1<i?1-i:void 0)}function Ys(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 Ss(){return!0}function df(){return!1}function St(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)?Ss:df,this.isPropagationStopped=df,this}return we(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=Ss)},stopPropagation:function(){var A=this.nativeEvent;A&&(A.stopPropagation?A.stopPropagation():typeof A.cancelBubble!="unknown"&&(A.cancelBubble=!0),this.isPropagationStopped=Ss)},persist:function(){},isPersistent:Ss}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tg=St(_n),Qo=we({},_n,{view:0,detail:0}),Yw=St(Qo),kc,Sc,Mr,mI=we({},Qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xg,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!==Mr&&(Mr&&e.type==="mousemove"?(kc=e.screenX-Mr.screenX,Sc=e.screenY-Mr.screenY):Sc=kc=0,Mr=e),kc)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),Qf=St(mI),Vw=we({},mI,{dataTransfer:0}),zw=St(Vw),Pw=we({},Qo,{relatedTarget:0}),Uc=St(Pw),_w=we({},_n,{animationName:0,elapsedTime:0,pseudoElement:0}),Tw=St(_w),Xw=we({},_n,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Zw=St(Xw),Ww=we({},_n,{data:0}),Cf=St(Ww),jw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$w={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"},e0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t0(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e0[e])?!!t[e]:!1}function Xg(){return t0}var A0=we({},Qo,{key:function(e){if(e.key){var t=jw[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ys(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?$w[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xg,charCode:function(e){return e.type==="keypress"?Ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),i0=St(A0),n0=we({},mI,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hf=St(n0),r0=we({},Qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xg}),o0=St(r0),s0=we({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0}),I0=St(s0),a0=we({},mI,{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}),c0=St(a0),g0=[9,13,27,32],Zg=GA&&"CompositionEvent"in window,zr=null;GA&&"documentMode"in document&&(zr=document.documentMode);var l0=GA&&"TextEvent"in window&&!zr,Yd=GA&&(!Zg||zr&&8<zr&&11>=zr),pf=" ",Ef=!1;function Vd(e,t){switch(e){case"keyup":return g0.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wn=!1;function u0(e,t){switch(e){case"compositionend":return zd(t);case"keypress":return t.which!==32?null:(Ef=!0,pf);case"textInput":return e=t.data,e===pf&&Ef?null:e;default:return null}}function B0(e,t){if(wn)return e==="compositionend"||!Zg&&Vd(e,t)?(e=Od(),Os=_g=ti=null,wn=!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 Yd&&t.locale!=="ko"?null:t.data;default:return null}}var f0={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 mf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!f0[e.type]:t==="textarea"}function Pd(e,t,A,i){yd(i),t=nI(t,"onChange"),0<t.length&&(A=new Tg("onChange","change",null,A,i),e.push({event:A,listeners:t}))}var Pr=null,no=null;function d0(e){iQ(e,0)}function yI(e){var t=kn(e);if(dd(t))return e}function Q0(e,t){if(e==="change")return t}var _d=!1;GA&&(GA?(Ns="oninput"in document,Ns||(Nc=document.createElement("div"),Nc.setAttribute("oninput","return;"),Ns=typeof Nc.oninput=="function"),Us=Ns):Us=!1,_d=Us&&(!document.documentMode||9<document.documentMode));var Us,Ns,Nc;function yf(){Pr&&(Pr.detachEvent("onpropertychange",Td),no=Pr=null)}function Td(e){if(e.propertyName==="value"&&yI(no)){var t=[];Pd(t,no,e,Og(e)),kd(d0,t)}}function C0(e,t,A){e==="focusin"?(yf(),Pr=t,no=A,Pr.attachEvent("onpropertychange",Td)):e==="focusout"&&yf()}function h0(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return yI(no)}function p0(e,t){if(e==="click")return yI(t)}function E0(e,t){if(e==="input"||e==="change")return yI(t)}function m0(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var jt=typeof Object.is=="function"?Object.is:m0;function ro(e,t){if(jt(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(!Vc.call(t,n)||!jt(e[n],t[n]))return!1}return!0}function wf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ff(e,t){var A=wf(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=wf(A)}}function Xd(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xd(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zd(){for(var e=window,t=Ws();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=Ws(e.document)}return t}function Wg(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 y0(e){var t=Zd(),A=e.focusedElem,i=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&Xd(A.ownerDocument.documentElement,A)){if(i!==null&&Wg(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=Ff(A,r);var o=Ff(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 w0=GA&&"documentMode"in document&&11>=document.documentMode,Fn=null,ag=null,_r=null,cg=!1;function Df(e,t,A){var i=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;cg||Fn==null||Fn!==Ws(i)||(i=Fn,"selectionStart"in i&&Wg(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}),_r&&ro(_r,i)||(_r=i,i=nI(ag,"onSelect"),0<i.length&&(t=new Tg("onSelect","select",null,t,A),e.push({event:t,listeners:i}),t.target=Fn)))}function xs(e,t){var A={};return A[e.toLowerCase()]=t.toLowerCase(),A["Webkit"+e]="webkit"+t,A["Moz"+e]="moz"+t,A}var Dn={animationend:xs("Animation","AnimationEnd"),animationiteration:xs("Animation","AnimationIteration"),animationstart:xs("Animation","AnimationStart"),transitionend:xs("Transition","TransitionEnd")},xc={},Wd={};GA&&(Wd=document.createElement("div").style,"AnimationEvent"in window||(delete Dn.animationend.animation,delete Dn.animationiteration.animation,delete Dn.animationstart.animation),"TransitionEvent"in window||delete Dn.transitionend.transition);function wI(e){if(xc[e])return xc[e];if(!Dn[e])return e;var t=Dn[e],A;for(A in t)if(t.hasOwnProperty(A)&&A in Wd)return xc[e]=t[A];return e}var jd=wI("animationend"),$d=wI("animationiteration"),eQ=wI("animationstart"),tQ=wI("transitionend"),AQ=new Map,kf="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 ui(e,t){AQ.set(e,t),Yi(t,[e])}for(Gs=0;Gs<kf.length;Gs++)Hs=kf[Gs],Sf=Hs.toLowerCase(),Uf=Hs[0].toUpperCase()+Hs.slice(1),ui(Sf,"on"+Uf);var Hs,Sf,Uf,Gs;ui(jd,"onAnimationEnd");ui($d,"onAnimationIteration");ui(eQ,"onAnimationStart");ui("dblclick","onDoubleClick");ui("focusin","onFocus");ui("focusout","onBlur");ui(tQ,"onTransitionEnd");Ln("onMouseEnter",["mouseout","mouseover"]);Ln("onMouseLeave",["mouseout","mouseover"]);Ln("onPointerEnter",["pointerout","pointerover"]);Ln("onPointerLeave",["pointerout","pointerover"]);Yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Yi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Or="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(" "),F0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Or));function Nf(e,t,A){var i=e.type||"unknown-event";e.currentTarget=A,Fw(i,t,void 0,e),e.currentTarget=null}function iQ(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],I=s.instance,a=s.currentTarget;if(s=s.listener,I!==r&&n.isPropagationStopped())break e;Nf(n,s,a),r=I}else for(o=0;o<i.length;o++){if(s=i[o],I=s.instance,a=s.currentTarget,s=s.listener,I!==r&&n.isPropagationStopped())break e;Nf(n,s,a),r=I}}}if($s)throw e=rg,$s=!1,rg=null,e}function Qe(e,t){var A=t[fg];A===void 0&&(A=t[fg]=new Set);var i=e+"__bubble";A.has(i)||(nQ(t,e,2,!1),A.add(i))}function Gc(e,t,A){var i=0;t&&(i|=4),nQ(A,e,i,t)}var Ms="_reactListening"+Math.random().toString(36).slice(2);function oo(e){if(!e[Ms]){e[Ms]=!0,gd.forEach(function(A){A!=="selectionchange"&&(F0.has(A)||Gc(A,!1,e),Gc(A,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ms]||(t[Ms]=!0,Gc("selectionchange",!1,t))}}function nQ(e,t,A,i){switch(bd(t)){case 1:var n=bw;break;case 4:n=Ow;break;default:n=Pg}A=n.bind(null,t,A,e),n=void 0,!ng||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 Hc(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 I=o.tag;if((I===3||I===4)&&(I=o.stateNode.containerInfo,I===n||I.nodeType===8&&I.parentNode===n))return;o=o.return}for(;s!==null;){if(o=Hi(s),o===null)return;if(I=o.tag,I===5||I===6){i=r=o;continue e}s=s.parentNode}}i=i.return}kd(function(){var a=r,c=Og(A),u=[];e:{var l=AQ.get(e);if(l!==void 0){var g=Tg,B=e;switch(e){case"keypress":if(Ys(A)===0)break e;case"keydown":case"keyup":g=i0;break;case"focusin":B="focus",g=Uc;break;case"focusout":B="blur",g=Uc;break;case"beforeblur":case"afterblur":g=Uc;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":g=Qf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=zw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=o0;break;case jd:case $d:case eQ:g=Tw;break;case tQ:g=I0;break;case"scroll":g=Yw;break;case"wheel":g=c0;break;case"copy":case"cut":case"paste":g=Zw;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=hf}var p=(t&4)!==0,U=!p&&e==="scroll",d=p?l!==null?l+"Capture":null:l;p=[];for(var f=a,Q;f!==null;){Q=f;var y=Q.stateNode;if(Q.tag===5&&y!==null&&(Q=y,d!==null&&(y=eo(f,d),y!=null&&p.push(so(f,y,Q)))),U)break;f=f.return}0<p.length&&(l=new g(l,B,null,A,c),u.push({event:l,listeners:p}))}}if(!(t&7)){e:{if(l=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",l&&A!==Ag&&(B=A.relatedTarget||A.fromElement)&&(Hi(B)||B[HA]))break e;if((g||l)&&(l=c.window===c?c:(l=c.ownerDocument)?l.defaultView||l.parentWindow:window,g?(B=A.relatedTarget||A.toElement,g=a,B=B?Hi(B):null,B!==null&&(U=Vi(B),B!==U||B.tag!==5&&B.tag!==6)&&(B=null)):(g=null,B=a),g!==B)){if(p=Qf,y="onMouseLeave",d="onMouseEnter",f="mouse",(e==="pointerout"||e==="pointerover")&&(p=hf,y="onPointerLeave",d="onPointerEnter",f="pointer"),U=g==null?l:kn(g),Q=B==null?l:kn(B),l=new p(y,f+"leave",g,A,c),l.target=U,l.relatedTarget=Q,y=null,Hi(c)===a&&(p=new p(d,f+"enter",B,A,c),p.target=Q,p.relatedTarget=U,y=p),U=y,g&&B)t:{for(p=g,d=B,f=0,Q=p;Q;Q=En(Q))f++;for(Q=0,y=d;y;y=En(y))Q++;for(;0<f-Q;)p=En(p),f--;for(;0<Q-f;)d=En(d),Q--;for(;f--;){if(p===d||d!==null&&p===d.alternate)break t;p=En(p),d=En(d)}p=null}else p=null;g!==null&&xf(u,l,g,p,!1),B!==null&&U!==null&&xf(u,U,B,p,!0)}}e:{if(l=a?kn(a):window,g=l.nodeName&&l.nodeName.toLowerCase(),g==="select"||g==="input"&&l.type==="file")var F=Q0;else if(mf(l))if(_d)F=E0;else{F=h0;var w=C0}else(g=l.nodeName)&&g.toLowerCase()==="input"&&(l.type==="checkbox"||l.type==="radio")&&(F=p0);if(F&&(F=F(e,a))){Pd(u,F,A,c);break e}w&&w(e,l,a),e==="focusout"&&(w=l._wrapperState)&&w.controlled&&l.type==="number"&&Wc(l,"number",l.value)}switch(w=a?kn(a):window,e){case"focusin":(mf(w)||w.contentEditable==="true")&&(Fn=w,ag=a,_r=null);break;case"focusout":_r=ag=Fn=null;break;case"mousedown":cg=!0;break;case"contextmenu":case"mouseup":case"dragend":cg=!1,Df(u,A,c);break;case"selectionchange":if(w0)break;case"keydown":case"keyup":Df(u,A,c)}var D;if(Zg)e:{switch(e){case"compositionstart":var S="onCompositionStart";break e;case"compositionend":S="onCompositionEnd";break e;case"compositionupdate":S="onCompositionUpdate";break e}S=void 0}else wn?Vd(e,A)&&(S="onCompositionEnd"):e==="keydown"&&A.keyCode===229&&(S="onCompositionStart");S&&(Yd&&A.locale!=="ko"&&(wn||S!=="onCompositionStart"?S==="onCompositionEnd"&&wn&&(D=Od()):(ti=c,_g="value"in ti?ti.value:ti.textContent,wn=!0)),w=nI(a,S),0<w.length&&(S=new Cf(S,e,null,A,c),u.push({event:S,listeners:w}),D?S.data=D:(D=zd(A),D!==null&&(S.data=D)))),(D=l0?u0(e,A):B0(e,A))&&(a=nI(a,"onBeforeInput"),0<a.length&&(c=new Cf("onBeforeInput","beforeinput",null,A,c),u.push({event:c,listeners:a}),c.data=D))}iQ(u,t)})}function so(e,t,A){return{instance:e,listener:t,currentTarget:A}}function nI(e,t){for(var A=t+"Capture",i=[];e!==null;){var n=e,r=n.stateNode;n.tag===5&&r!==null&&(n=r,r=eo(e,A),r!=null&&i.unshift(so(e,r,n)),r=eo(e,t),r!=null&&i.push(so(e,r,n))),e=e.return}return i}function En(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function xf(e,t,A,i,n){for(var r=t._reactName,o=[];A!==null&&A!==i;){var s=A,I=s.alternate,a=s.stateNode;if(I!==null&&I===i)break;s.tag===5&&a!==null&&(s=a,n?(I=eo(A,r),I!=null&&o.unshift(so(A,I,s))):n||(I=eo(A,r),I!=null&&o.push(so(A,I,s)))),A=A.return}o.length!==0&&e.push({event:t,listeners:o})}var D0=/\r\n?/g,k0=/\u0000|\uFFFD/g;function Gf(e){return(typeof e=="string"?e:""+e).replace(D0,`
|
|
`).replace(k0,"")}function vs(e,t,A){if(t=Gf(t),Gf(e)!==t&&A)throw Error(N(425))}function rI(){}var gg=null,lg=null;function ug(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 Bg=typeof setTimeout=="function"?setTimeout:void 0,S0=typeof clearTimeout=="function"?clearTimeout:void 0,Hf=typeof Promise=="function"?Promise:void 0,U0=typeof queueMicrotask=="function"?queueMicrotask:typeof Hf<"u"?function(e){return Hf.resolve(null).then(e).catch(N0)}:Bg;function N0(e){setTimeout(function(){throw e})}function Mc(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),io(t);return}i--}else A!=="$"&&A!=="$?"&&A!=="$!"||i++;A=n}while(A);io(t)}function oi(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 Mf(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 Tn=Math.random().toString(36).slice(2),cA="__reactFiber$"+Tn,Io="__reactProps$"+Tn,HA="__reactContainer$"+Tn,fg="__reactEvents$"+Tn,x0="__reactListeners$"+Tn,G0="__reactHandles$"+Tn;function Hi(e){var t=e[cA];if(t)return t;for(var A=e.parentNode;A;){if(t=A[HA]||A[cA]){if(A=t.alternate,t.child!==null||A!==null&&A.child!==null)for(e=Mf(e);e!==null;){if(A=e[cA])return A;e=Mf(e)}return t}e=A,A=e.parentNode}return null}function Co(e){return e=e[cA]||e[HA],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function kn(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(N(33))}function FI(e){return e[Io]||null}var dg=[],Sn=-1;function Bi(e){return{current:e}}function Ce(e){0>Sn||(e.current=dg[Sn],dg[Sn]=null,Sn--)}function le(e,t){Sn++,dg[Sn]=e.current,e.current=t}var li={},$e=Bi(li),ut=Bi(!1),Ri=li;function bn(e,t){var A=e.type.contextTypes;if(!A)return li;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 Bt(e){return e=e.childContextTypes,e!=null}function oI(){Ce(ut),Ce($e)}function vf(e,t,A){if($e.current!==li)throw Error(N(168));le($e,t),le(ut,A)}function rQ(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(N(108,Cw(e)||"Unknown",n));return we({},A,i)}function sI(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||li,Ri=$e.current,le($e,e),le(ut,ut.current),!0}function Jf(e,t,A){var i=e.stateNode;if(!i)throw Error(N(169));A?(e=rQ(e,t,Ri),i.__reactInternalMemoizedMergedChildContext=e,Ce(ut),Ce($e),le($e,e)):Ce(ut),le(ut,A)}var SA=null,DI=!1,vc=!1;function oQ(e){SA===null?SA=[e]:SA.push(e)}function H0(e){DI=!0,oQ(e)}function fi(){if(!vc&&SA!==null){vc=!0;var e=0,t=se;try{var A=SA;for(se=1;e<A.length;e++){var i=A[e];do i=i(!0);while(i!==null)}SA=null,DI=!1}catch(n){throw SA!==null&&(SA=SA.slice(e+1)),xd(Yg,fi),n}finally{se=t,vc=!1}}return null}var Un=[],Nn=0,II=null,aI=0,Gt=[],Ht=0,Ki=null,UA=1,NA="";function xi(e,t){Un[Nn++]=aI,Un[Nn++]=II,II=e,aI=t}function sQ(e,t,A){Gt[Ht++]=UA,Gt[Ht++]=NA,Gt[Ht++]=Ki,Ki=e;var i=UA;e=NA;var n=32-Zt(i)-1;i&=~(1<<n),A+=1;var r=32-Zt(t)+n;if(30<r){var o=n-n%5;r=(i&(1<<o)-1).toString(32),i>>=o,n-=o,UA=1<<32-Zt(t)+n|A<<n|i,NA=r+e}else UA=1<<r|A<<n|i,NA=e}function jg(e){e.return!==null&&(xi(e,1),sQ(e,1,0))}function $g(e){for(;e===II;)II=Un[--Nn],Un[Nn]=null,aI=Un[--Nn],Un[Nn]=null;for(;e===Ki;)Ki=Gt[--Ht],Gt[Ht]=null,NA=Gt[--Ht],Gt[Ht]=null,UA=Gt[--Ht],Gt[Ht]=null}var Dt=null,Ft=null,pe=!1,Xt=null;function IQ(e,t){var A=Mt(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 qf(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,Dt=e,Ft=oi(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Dt=e,Ft=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(A=Ki!==null?{id:UA,overflow:NA}:null,e.memoizedState={dehydrated:t,treeContext:A,retryLane:1073741824},A=Mt(18,null,null,0),A.stateNode=t,A.return=e,e.child=A,Dt=e,Ft=null,!0):!1;default:return!1}}function Qg(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Cg(e){if(pe){var t=Ft;if(t){var A=t;if(!qf(e,t)){if(Qg(e))throw Error(N(418));t=oi(A.nextSibling);var i=Dt;t&&qf(e,t)?IQ(i,A):(e.flags=e.flags&-4097|2,pe=!1,Dt=e)}}else{if(Qg(e))throw Error(N(418));e.flags=e.flags&-4097|2,pe=!1,Dt=e}}}function Rf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Dt=e}function Js(e){if(e!==Dt)return!1;if(!pe)return Rf(e),pe=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ug(e.type,e.memoizedProps)),t&&(t=Ft)){if(Qg(e))throw aQ(),Error(N(418));for(;t;)IQ(e,t),t=oi(t.nextSibling)}if(Rf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(N(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var A=e.data;if(A==="/$"){if(t===0){Ft=oi(e.nextSibling);break e}t--}else A!=="$"&&A!=="$!"&&A!=="$?"||t++}e=e.nextSibling}Ft=null}}else Ft=Dt?oi(e.stateNode.nextSibling):null;return!0}function aQ(){for(var e=Ft;e;)e=oi(e.nextSibling)}function On(){Ft=Dt=null,pe=!1}function el(e){Xt===null?Xt=[e]:Xt.push(e)}var M0=JA.ReactCurrentBatchConfig;function _t(e,t){if(e&&e.defaultProps){t=we({},t),e=e.defaultProps;for(var A in e)t[A]===void 0&&(t[A]=e[A]);return t}return t}var cI=Bi(null),gI=null,xn=null,tl=null;function Al(){tl=xn=gI=null}function il(e){var t=cI.current;Ce(cI),e._currentValue=t}function hg(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 Rn(e,t){gI=e,tl=xn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(lt=!0),e.firstContext=null)}function Jt(e){var t=e._currentValue;if(tl!==e)if(e={context:e,memoizedValue:t,next:null},xn===null){if(gI===null)throw Error(N(308));xn=e,gI.dependencies={lanes:0,firstContext:e}}else xn=xn.next=e;return t}var Mi=null;function nl(e){Mi===null?Mi=[e]:Mi.push(e)}function cQ(e,t,A,i){var n=t.interleaved;return n===null?(A.next=A,nl(t)):(A.next=n.next,n.next=A),t.interleaved=A,MA(e,i)}function MA(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 jA=!1;function rl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function gQ(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 xA(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function si(e,t,A){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,ie&2){var n=i.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),i.pending=t,MA(e,A)}return n=i.interleaved,n===null?(t.next=t,nl(i)):(t.next=n.next,n.next=t),i.interleaved=t,MA(e,A)}function Vs(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,Vg(e,A)}}function Kf(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 lI(e,t,A,i){var n=e.updateQueue;jA=!1;var r=n.firstBaseUpdate,o=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var I=s,a=I.next;I.next=null,o===null?r=a:o.next=a,o=I;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=I))}if(r!==null){var u=n.baseState;o=0,c=a=I=null,s=r;do{var l=s.lane,g=s.eventTime;if((i&l)===l){c!==null&&(c=c.next={eventTime:g,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var B=e,p=s;switch(l=t,g=A,p.tag){case 1:if(B=p.payload,typeof B=="function"){u=B.call(g,u,l);break e}u=B;break e;case 3:B.flags=B.flags&-65537|128;case 0:if(B=p.payload,l=typeof B=="function"?B.call(g,u,l):B,l==null)break e;u=we({},u,l);break e;case 2:jA=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,l=n.effects,l===null?n.effects=[s]:l.push(s))}else g={eventTime:g,lane:l,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=g,I=u):c=c.next=g,o|=l;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;l=s,s=l.next,l.next=null,n.lastBaseUpdate=l,n.shared.pending=null}}while(!0);if(c===null&&(I=u),n.baseState=I,n.firstBaseUpdate=a,n.lastBaseUpdate=c,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);bi|=o,e.lanes=o,e.memoizedState=u}}function Lf(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(N(191,n));n.call(i)}}}var lQ=new cd.Component().refs;function pg(e,t,A,i){t=e.memoizedState,A=A(i,t),A=A==null?t:we({},t,A),e.memoizedState=A,e.lanes===0&&(e.updateQueue.baseState=A)}var kI={isMounted:function(e){return(e=e._reactInternals)?Vi(e)===e:!1},enqueueSetState:function(e,t,A){e=e._reactInternals;var i=nt(),n=ai(e),r=xA(i,n);r.payload=t,A!=null&&(r.callback=A),t=si(e,r,n),t!==null&&(Wt(t,e,n,i),Vs(t,e,n))},enqueueReplaceState:function(e,t,A){e=e._reactInternals;var i=nt(),n=ai(e),r=xA(i,n);r.tag=1,r.payload=t,A!=null&&(r.callback=A),t=si(e,r,n),t!==null&&(Wt(t,e,n,i),Vs(t,e,n))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var A=nt(),i=ai(e),n=xA(A,i);n.tag=2,t!=null&&(n.callback=t),t=si(e,n,i),t!==null&&(Wt(t,e,i,A),Vs(t,e,i))}};function bf(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?!ro(A,i)||!ro(n,r):!0}function uQ(e,t,A){var i=!1,n=li,r=t.contextType;return typeof r=="object"&&r!==null?r=Jt(r):(n=Bt(t)?Ri:$e.current,i=t.contextTypes,r=(i=i!=null)?bn(e,n):li),t=new t(A,r),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=kI,e.stateNode=t,t._reactInternals=e,i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=r),t}function Of(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&&kI.enqueueReplaceState(t,t.state,null)}function Eg(e,t,A,i){var n=e.stateNode;n.props=A,n.state=e.memoizedState,n.refs=lQ,rl(e);var r=t.contextType;typeof r=="object"&&r!==null?n.context=Jt(r):(r=Bt(t)?Ri:$e.current,n.context=bn(e,r)),n.state=e.memoizedState,r=t.getDerivedStateFromProps,typeof r=="function"&&(pg(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&&kI.enqueueReplaceState(n,n.state,null),lI(e,A,n,i),n.state=e.memoizedState),typeof n.componentDidMount=="function"&&(e.flags|=4194308)}function vr(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(N(309));var i=A.stateNode}if(!i)throw Error(N(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===lQ&&(s=n.refs={}),o===null?delete s[r]:s[r]=o},t._stringRef=r,t)}if(typeof e!="string")throw Error(N(284));if(!A._owner)throw Error(N(290,e))}return e}function qs(e,t){throw e=Object.prototype.toString.call(t),Error(N(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Yf(e){var t=e._init;return t(e._payload)}function BQ(e){function t(d,f){if(e){var Q=d.deletions;Q===null?(d.deletions=[f],d.flags|=16):Q.push(f)}}function A(d,f){if(!e)return null;for(;f!==null;)t(d,f),f=f.sibling;return null}function i(d,f){for(d=new Map;f!==null;)f.key!==null?d.set(f.key,f):d.set(f.index,f),f=f.sibling;return d}function n(d,f){return d=ci(d,f),d.index=0,d.sibling=null,d}function r(d,f,Q){return d.index=Q,e?(Q=d.alternate,Q!==null?(Q=Q.index,Q<f?(d.flags|=2,f):Q):(d.flags|=2,f)):(d.flags|=1048576,f)}function o(d){return e&&d.alternate===null&&(d.flags|=2),d}function s(d,f,Q,y){return f===null||f.tag!==6?(f=Oc(Q,d.mode,y),f.return=d,f):(f=n(f,Q),f.return=d,f)}function I(d,f,Q,y){var F=Q.type;return F===yn?c(d,f,Q.props.children,y,Q.key):f!==null&&(f.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===WA&&Yf(F)===f.type)?(y=n(f,Q.props),y.ref=vr(d,f,Q),y.return=d,y):(y=Zs(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=vr(d,f,Q),y.return=d,y)}function a(d,f,Q,y){return f===null||f.tag!==4||f.stateNode.containerInfo!==Q.containerInfo||f.stateNode.implementation!==Q.implementation?(f=Yc(Q,d.mode,y),f.return=d,f):(f=n(f,Q.children||[]),f.return=d,f)}function c(d,f,Q,y,F){return f===null||f.tag!==7?(f=qi(Q,d.mode,y,F),f.return=d,f):(f=n(f,Q),f.return=d,f)}function u(d,f,Q){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Oc(""+f,d.mode,Q),f.return=d,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ms:return Q=Zs(f.type,f.key,f.props,null,d.mode,Q),Q.ref=vr(d,null,f),Q.return=d,Q;case mn:return f=Yc(f,d.mode,Q),f.return=d,f;case WA:var y=f._init;return u(d,y(f._payload),Q)}if(Lr(f)||xr(f))return f=qi(f,d.mode,Q,null),f.return=d,f;qs(d,f)}return null}function l(d,f,Q,y){var F=f!==null?f.key:null;if(typeof Q=="string"&&Q!==""||typeof Q=="number")return F!==null?null:s(d,f,""+Q,y);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case ms:return Q.key===F?I(d,f,Q,y):null;case mn:return Q.key===F?a(d,f,Q,y):null;case WA:return F=Q._init,l(d,f,F(Q._payload),y)}if(Lr(Q)||xr(Q))return F!==null?null:c(d,f,Q,y,null);qs(d,Q)}return null}function g(d,f,Q,y,F){if(typeof y=="string"&&y!==""||typeof y=="number")return d=d.get(Q)||null,s(f,d,""+y,F);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case ms:return d=d.get(y.key===null?Q:y.key)||null,I(f,d,y,F);case mn:return d=d.get(y.key===null?Q:y.key)||null,a(f,d,y,F);case WA:var w=y._init;return g(d,f,Q,w(y._payload),F)}if(Lr(y)||xr(y))return d=d.get(Q)||null,c(f,d,y,F,null);qs(f,y)}return null}function B(d,f,Q,y){for(var F=null,w=null,D=f,S=f=0,K=null;D!==null&&S<Q.length;S++){D.index>S?(K=D,D=null):K=D.sibling;var q=l(d,D,Q[S],y);if(q===null){D===null&&(D=K);break}e&&D&&q.alternate===null&&t(d,D),f=r(q,f,S),w===null?F=q:w.sibling=q,w=q,D=K}if(S===Q.length)return A(d,D),pe&&xi(d,S),F;if(D===null){for(;S<Q.length;S++)D=u(d,Q[S],y),D!==null&&(f=r(D,f,S),w===null?F=D:w.sibling=D,w=D);return pe&&xi(d,S),F}for(D=i(d,D);S<Q.length;S++)K=g(D,d,S,Q[S],y),K!==null&&(e&&K.alternate!==null&&D.delete(K.key===null?S:K.key),f=r(K,f,S),w===null?F=K:w.sibling=K,w=K);return e&&D.forEach(function(X){return t(d,X)}),pe&&xi(d,S),F}function p(d,f,Q,y){var F=xr(Q);if(typeof F!="function")throw Error(N(150));if(Q=F.call(Q),Q==null)throw Error(N(151));for(var w=F=null,D=f,S=f=0,K=null,q=Q.next();D!==null&&!q.done;S++,q=Q.next()){D.index>S?(K=D,D=null):K=D.sibling;var X=l(d,D,q.value,y);if(X===null){D===null&&(D=K);break}e&&D&&X.alternate===null&&t(d,D),f=r(X,f,S),w===null?F=X:w.sibling=X,w=X,D=K}if(q.done)return A(d,D),pe&&xi(d,S),F;if(D===null){for(;!q.done;S++,q=Q.next())q=u(d,q.value,y),q!==null&&(f=r(q,f,S),w===null?F=q:w.sibling=q,w=q);return pe&&xi(d,S),F}for(D=i(d,D);!q.done;S++,q=Q.next())q=g(D,d,S,q.value,y),q!==null&&(e&&q.alternate!==null&&D.delete(q.key===null?S:q.key),f=r(q,f,S),w===null?F=q:w.sibling=q,w=q);return e&&D.forEach(function(Ue){return t(d,Ue)}),pe&&xi(d,S),F}function U(d,f,Q,y){if(typeof Q=="object"&&Q!==null&&Q.type===yn&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case ms:e:{for(var F=Q.key,w=f;w!==null;){if(w.key===F){if(F=Q.type,F===yn){if(w.tag===7){A(d,w.sibling),f=n(w,Q.props.children),f.return=d,d=f;break e}}else if(w.elementType===F||typeof F=="object"&&F!==null&&F.$$typeof===WA&&Yf(F)===w.type){A(d,w.sibling),f=n(w,Q.props),f.ref=vr(d,w,Q),f.return=d,d=f;break e}A(d,w);break}else t(d,w);w=w.sibling}Q.type===yn?(f=qi(Q.props.children,d.mode,y,Q.key),f.return=d,d=f):(y=Zs(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=vr(d,f,Q),y.return=d,d=y)}return o(d);case mn:e:{for(w=Q.key;f!==null;){if(f.key===w)if(f.tag===4&&f.stateNode.containerInfo===Q.containerInfo&&f.stateNode.implementation===Q.implementation){A(d,f.sibling),f=n(f,Q.children||[]),f.return=d,d=f;break e}else{A(d,f);break}else t(d,f);f=f.sibling}f=Yc(Q,d.mode,y),f.return=d,d=f}return o(d);case WA:return w=Q._init,U(d,f,w(Q._payload),y)}if(Lr(Q))return B(d,f,Q,y);if(xr(Q))return p(d,f,Q,y);qs(d,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,f!==null&&f.tag===6?(A(d,f.sibling),f=n(f,Q),f.return=d,d=f):(A(d,f),f=Oc(Q,d.mode,y),f.return=d,d=f),o(d)):A(d,f)}return U}var Yn=BQ(!0),fQ=BQ(!1),ho={},lA=Bi(ho),ao=Bi(ho),co=Bi(ho);function vi(e){if(e===ho)throw Error(N(174));return e}function ol(e,t){switch(le(co,t),le(ao,e),le(lA,ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:$c(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=$c(t,e)}Ce(lA),le(lA,t)}function Vn(){Ce(lA),Ce(ao),Ce(co)}function dQ(e){vi(co.current);var t=vi(lA.current),A=$c(t,e.type);t!==A&&(le(ao,e),le(lA,A))}function sl(e){ao.current===e&&(Ce(lA),Ce(ao))}var me=Bi(0);function uI(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 Jc=[];function Il(){for(var e=0;e<Jc.length;e++)Jc[e]._workInProgressVersionPrimary=null;Jc.length=0}var zs=JA.ReactCurrentDispatcher,qc=JA.ReactCurrentBatchConfig,Li=0,ye=null,xe=null,Je=null,BI=!1,Tr=!1,go=0,v0=0;function Ze(){throw Error(N(321))}function al(e,t){if(t===null)return!1;for(var A=0;A<t.length&&A<e.length;A++)if(!jt(e[A],t[A]))return!1;return!0}function cl(e,t,A,i,n,r){if(Li=r,ye=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,zs.current=e===null||e.memoizedState===null?K0:L0,e=A(i,n),Tr){r=0;do{if(Tr=!1,go=0,25<=r)throw Error(N(301));r+=1,Je=xe=null,t.updateQueue=null,zs.current=b0,e=A(i,n)}while(Tr)}if(zs.current=fI,t=xe!==null&&xe.next!==null,Li=0,Je=xe=ye=null,BI=!1,t)throw Error(N(300));return e}function gl(){var e=go!==0;return go=0,e}function aA(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Je===null?ye.memoizedState=Je=e:Je=Je.next=e,Je}function qt(){if(xe===null){var e=ye.alternate;e=e!==null?e.memoizedState:null}else e=xe.next;var t=Je===null?ye.memoizedState:Je.next;if(t!==null)Je=t,xe=e;else{if(e===null)throw Error(N(310));xe=e,e={memoizedState:xe.memoizedState,baseState:xe.baseState,baseQueue:xe.baseQueue,queue:xe.queue,next:null},Je===null?ye.memoizedState=Je=e:Je=Je.next=e}return Je}function lo(e,t){return typeof t=="function"?t(e):t}function Rc(e){var t=qt(),A=t.queue;if(A===null)throw Error(N(311));A.lastRenderedReducer=e;var i=xe,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,I=null,a=r;do{var c=a.lane;if((Li&c)===c)I!==null&&(I=I.next={lane:0,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null}),i=a.hasEagerState?a.eagerState:e(i,a.action);else{var u={lane:c,action:a.action,hasEagerState:a.hasEagerState,eagerState:a.eagerState,next:null};I===null?(s=I=u,o=i):I=I.next=u,ye.lanes|=c,bi|=c}a=a.next}while(a!==null&&a!==r);I===null?o=i:I.next=s,jt(i,t.memoizedState)||(lt=!0),t.memoizedState=i,t.baseState=o,t.baseQueue=I,A.lastRenderedState=i}if(e=A.interleaved,e!==null){n=e;do r=n.lane,ye.lanes|=r,bi|=r,n=n.next;while(n!==e)}else n===null&&(A.lanes=0);return[t.memoizedState,A.dispatch]}function Kc(e){var t=qt(),A=t.queue;if(A===null)throw Error(N(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);jt(r,t.memoizedState)||(lt=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),A.lastRenderedState=r}return[r,i]}function QQ(){}function CQ(e,t){var A=ye,i=qt(),n=t(),r=!jt(i.memoizedState,n);if(r&&(i.memoizedState=n,lt=!0),i=i.queue,ll(EQ.bind(null,A,i,e),[e]),i.getSnapshot!==t||r||Je!==null&&Je.memoizedState.tag&1){if(A.flags|=2048,uo(9,pQ.bind(null,A,i,n,t),void 0,null),qe===null)throw Error(N(349));Li&30||hQ(A,t,n)}return n}function hQ(e,t,A){e.flags|=16384,e={getSnapshot:t,value:A},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.updateQueue=t,t.stores=[e]):(A=t.stores,A===null?t.stores=[e]:A.push(e))}function pQ(e,t,A,i){t.value=A,t.getSnapshot=i,mQ(t)&&yQ(e)}function EQ(e,t,A){return A(function(){mQ(t)&&yQ(e)})}function mQ(e){var t=e.getSnapshot;e=e.value;try{var A=t();return!jt(e,A)}catch{return!0}}function yQ(e){var t=MA(e,1);t!==null&&Wt(t,e,1,-1)}function Vf(e){var t=aA();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:lo,lastRenderedState:e},t.queue=e,e=e.dispatch=R0.bind(null,ye,e),[t.memoizedState,e]}function uo(e,t,A,i){return e={tag:e,create:t,destroy:A,deps:i,next:null},t=ye.updateQueue,t===null?(t={lastEffect:null,stores:null},ye.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 wQ(){return qt().memoizedState}function Ps(e,t,A,i){var n=aA();ye.flags|=e,n.memoizedState=uo(1|t,A,void 0,i===void 0?null:i)}function SI(e,t,A,i){var n=qt();i=i===void 0?null:i;var r=void 0;if(xe!==null){var o=xe.memoizedState;if(r=o.destroy,i!==null&&al(i,o.deps)){n.memoizedState=uo(t,A,r,i);return}}ye.flags|=e,n.memoizedState=uo(1|t,A,r,i)}function zf(e,t){return Ps(8390656,8,e,t)}function ll(e,t){return SI(2048,8,e,t)}function FQ(e,t){return SI(4,2,e,t)}function DQ(e,t){return SI(4,4,e,t)}function kQ(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 SQ(e,t,A){return A=A!=null?A.concat([e]):null,SI(4,4,kQ.bind(null,t,e),A)}function ul(){}function UQ(e,t){var A=qt();t=t===void 0?null:t;var i=A.memoizedState;return i!==null&&t!==null&&al(t,i[1])?i[0]:(A.memoizedState=[e,t],e)}function NQ(e,t){var A=qt();t=t===void 0?null:t;var i=A.memoizedState;return i!==null&&t!==null&&al(t,i[1])?i[0]:(e=e(),A.memoizedState=[e,t],e)}function xQ(e,t,A){return Li&21?(jt(A,t)||(A=Md(),ye.lanes|=A,bi|=A,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,lt=!0),e.memoizedState=A)}function J0(e,t){var A=se;se=A!==0&&4>A?A:4,e(!0);var i=qc.transition;qc.transition={};try{e(!1),t()}finally{se=A,qc.transition=i}}function GQ(){return qt().memoizedState}function q0(e,t,A){var i=ai(e);if(A={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null},HQ(e))MQ(t,A);else if(A=cQ(e,t,A,i),A!==null){var n=nt();Wt(A,e,i,n),vQ(A,t,i)}}function R0(e,t,A){var i=ai(e),n={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null};if(HQ(e))MQ(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,jt(s,o)){var I=t.interleaved;I===null?(n.next=n,nl(t)):(n.next=I.next,I.next=n),t.interleaved=n;return}}catch{}finally{}A=cQ(e,t,n,i),A!==null&&(n=nt(),Wt(A,e,i,n),vQ(A,t,i))}}function HQ(e){var t=e.alternate;return e===ye||t!==null&&t===ye}function MQ(e,t){Tr=BI=!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,Vg(e,A)}}var fI={readContext:Jt,useCallback:Ze,useContext:Ze,useEffect:Ze,useImperativeHandle:Ze,useInsertionEffect:Ze,useLayoutEffect:Ze,useMemo:Ze,useReducer:Ze,useRef:Ze,useState:Ze,useDebugValue:Ze,useDeferredValue:Ze,useTransition:Ze,useMutableSource:Ze,useSyncExternalStore:Ze,useId:Ze,unstable_isNewReconciler:!1},K0={readContext:Jt,useCallback:function(e,t){return aA().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:zf,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,Ps(4194308,4,kQ.bind(null,t,e),A)},useLayoutEffect:function(e,t){return Ps(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ps(4,2,e,t)},useMemo:function(e,t){var A=aA();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var i=aA();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=q0.bind(null,ye,e),[i.memoizedState,e]},useRef:function(e){var t=aA();return e={current:e},t.memoizedState=e},useState:Vf,useDebugValue:ul,useDeferredValue:function(e){return aA().memoizedState=e},useTransition:function(){var e=Vf(!1),t=e[0];return e=J0.bind(null,e[1]),aA().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var i=ye,n=aA();if(pe){if(A===void 0)throw Error(N(407));A=A()}else{if(A=t(),qe===null)throw Error(N(349));Li&30||hQ(i,t,A)}n.memoizedState=A;var r={value:A,getSnapshot:t};return n.queue=r,zf(EQ.bind(null,i,r,e),[e]),i.flags|=2048,uo(9,pQ.bind(null,i,r,A,t),void 0,null),A},useId:function(){var e=aA(),t=qe.identifierPrefix;if(pe){var A=NA,i=UA;A=(i&~(1<<32-Zt(i)-1)).toString(32)+A,t=":"+t+"R"+A,A=go++,0<A&&(t+="H"+A.toString(32)),t+=":"}else A=v0++,t=":"+t+"r"+A.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},L0={readContext:Jt,useCallback:UQ,useContext:Jt,useEffect:ll,useImperativeHandle:SQ,useInsertionEffect:FQ,useLayoutEffect:DQ,useMemo:NQ,useReducer:Rc,useRef:wQ,useState:function(){return Rc(lo)},useDebugValue:ul,useDeferredValue:function(e){var t=qt();return xQ(t,xe.memoizedState,e)},useTransition:function(){var e=Rc(lo)[0],t=qt().memoizedState;return[e,t]},useMutableSource:QQ,useSyncExternalStore:CQ,useId:GQ,unstable_isNewReconciler:!1},b0={readContext:Jt,useCallback:UQ,useContext:Jt,useEffect:ll,useImperativeHandle:SQ,useInsertionEffect:FQ,useLayoutEffect:DQ,useMemo:NQ,useReducer:Kc,useRef:wQ,useState:function(){return Kc(lo)},useDebugValue:ul,useDeferredValue:function(e){var t=qt();return xe===null?t.memoizedState=e:xQ(t,xe.memoizedState,e)},useTransition:function(){var e=Kc(lo)[0],t=qt().memoizedState;return[e,t]},useMutableSource:QQ,useSyncExternalStore:CQ,useId:GQ,unstable_isNewReconciler:!1};function zn(e,t){try{var A="",i=t;do A+=Qw(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 Lc(e,t,A){return{value:e,source:null,stack:A??null,digest:t??null}}function mg(e,t){try{console.error(t.value)}catch(A){setTimeout(function(){throw A})}}var O0=typeof WeakMap=="function"?WeakMap:Map;function JQ(e,t,A){A=xA(-1,A),A.tag=3,A.payload={element:null};var i=t.value;return A.callback=function(){QI||(QI=!0,Gg=i),mg(e,t)},A}function qQ(e,t,A){A=xA(-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(){mg(e,t)}}var r=e.stateNode;return r!==null&&typeof r.componentDidCatch=="function"&&(A.callback=function(){mg(e,t),typeof i!="function"&&(Ii===null?Ii=new Set([this]):Ii.add(this));var o=t.stack;this.componentDidCatch(t.value,{componentStack:o!==null?o:""})}),A}function Pf(e,t,A){var i=e.pingCache;if(i===null){i=e.pingCache=new O0;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=AF.bind(null,e,t,A),t.then(e,e))}function _f(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 Tf(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=xA(-1,1),t.tag=2,si(A,t,1))),A.lanes|=1),e)}var Y0=JA.ReactCurrentOwner,lt=!1;function it(e,t,A,i){t.child=e===null?fQ(t,null,A,i):Yn(t,e.child,A,i)}function Xf(e,t,A,i,n){A=A.render;var r=t.ref;return Rn(t,n),i=cl(e,t,A,i,r,n),A=gl(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,vA(e,t,n)):(pe&&A&&jg(t),t.flags|=1,it(e,t,i,n),t.child)}function Zf(e,t,A,i,n){if(e===null){var r=A.type;return typeof r=="function"&&!El(r)&&r.defaultProps===void 0&&A.compare===null&&A.defaultProps===void 0?(t.tag=15,t.type=r,RQ(e,t,r,i,n)):(e=Zs(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:ro,A(o,i)&&e.ref===t.ref)return vA(e,t,n)}return t.flags|=1,e=ci(r,i),e.ref=t.ref,e.return=t,t.child=e}function RQ(e,t,A,i,n){if(e!==null){var r=e.memoizedProps;if(ro(r,i)&&e.ref===t.ref)if(lt=!1,t.pendingProps=i=r,(e.lanes&n)!==0)e.flags&131072&&(lt=!0);else return t.lanes=e.lanes,vA(e,t,n)}return yg(e,t,A,i,n)}function KQ(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},le(Hn,wt),wt|=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,le(Hn,wt),wt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=r!==null?r.baseLanes:A,le(Hn,wt),wt|=i}else r!==null?(i=r.baseLanes|A,t.memoizedState=null):i=A,le(Hn,wt),wt|=i;return it(e,t,n,A),t.child}function LQ(e,t){var A=t.ref;(e===null&&A!==null||e!==null&&e.ref!==A)&&(t.flags|=512,t.flags|=2097152)}function yg(e,t,A,i,n){var r=Bt(A)?Ri:$e.current;return r=bn(t,r),Rn(t,n),A=cl(e,t,A,i,r,n),i=gl(),e!==null&&!lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n,vA(e,t,n)):(pe&&i&&jg(t),t.flags|=1,it(e,t,A,n),t.child)}function Wf(e,t,A,i,n){if(Bt(A)){var r=!0;sI(t)}else r=!1;if(Rn(t,n),t.stateNode===null)_s(e,t),uQ(t,A,i),Eg(t,A,i,n),i=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var I=o.context,a=A.contextType;typeof a=="object"&&a!==null?a=Jt(a):(a=Bt(A)?Ri:$e.current,a=bn(t,a));var c=A.getDerivedStateFromProps,u=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";u||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==i||I!==a)&&Of(t,o,i,a),jA=!1;var l=t.memoizedState;o.state=l,lI(t,i,o,n),I=t.memoizedState,s!==i||l!==I||ut.current||jA?(typeof c=="function"&&(pg(t,A,c,i),I=t.memoizedState),(s=jA||bf(t,A,s,i,l,I,a))?(u||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=I),o.props=i,o.state=I,o.context=a,i=s):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{o=t.stateNode,gQ(e,t),s=t.memoizedProps,a=t.type===t.elementType?s:_t(t.type,s),o.props=a,u=t.pendingProps,l=o.context,I=A.contextType,typeof I=="object"&&I!==null?I=Jt(I):(I=Bt(A)?Ri:$e.current,I=bn(t,I));var g=A.getDerivedStateFromProps;(c=typeof g=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==u||l!==I)&&Of(t,o,i,I),jA=!1,l=t.memoizedState,o.state=l,lI(t,i,o,n);var B=t.memoizedState;s!==u||l!==B||ut.current||jA?(typeof g=="function"&&(pg(t,A,g,i),B=t.memoizedState),(a=jA||bf(t,A,a,i,l,B,I)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,B,I),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,B,I)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&l===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&l===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=B),o.props=i,o.state=B,o.context=I,i=a):(typeof o.componentDidUpdate!="function"||s===e.memoizedProps&&l===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&l===e.memoizedState||(t.flags|=1024),i=!1)}return wg(e,t,A,i,r,n)}function wg(e,t,A,i,n,r){LQ(e,t);var o=(t.flags&128)!==0;if(!i&&!o)return n&&Jf(t,A,!1),vA(e,t,r);i=t.stateNode,Y0.current=t;var s=o&&typeof A.getDerivedStateFromError!="function"?null:i.render();return t.flags|=1,e!==null&&o?(t.child=Yn(t,e.child,null,r),t.child=Yn(t,null,s,r)):it(e,t,s,r),t.memoizedState=i.state,n&&Jf(t,A,!0),t.child}function bQ(e){var t=e.stateNode;t.pendingContext?vf(e,t.pendingContext,t.pendingContext!==t.context):t.context&&vf(e,t.context,!1),ol(e,t.containerInfo)}function jf(e,t,A,i,n){return On(),el(n),t.flags|=256,it(e,t,A,i),t.child}var Fg={dehydrated:null,treeContext:null,retryLane:0};function Dg(e){return{baseLanes:e,cachePool:null,transitions:null}}function OQ(e,t,A){var i=t.pendingProps,n=me.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),le(me,n&1),e===null)return Cg(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=xI(o,i,0,null),e=qi(e,i,A,null),r.return=t,e.return=t,r.sibling=e,t.child=r,t.child.memoizedState=Dg(A),t.memoizedState=Fg,e):Bl(t,o));if(n=e.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return V0(e,t,o,i,s,n,A);if(r){r=i.fallback,o=t.mode,n=e.child,s=n.sibling;var I={mode:"hidden",children:i.children};return!(o&1)&&t.child!==n?(i=t.child,i.childLanes=0,i.pendingProps=I,t.deletions=null):(i=ci(n,I),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?r=ci(s,r):(r=qi(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?Dg(A):{baseLanes:o.baseLanes|A,cachePool:null,transitions:o.transitions},r.memoizedState=o,r.childLanes=e.childLanes&~A,t.memoizedState=Fg,i}return r=e.child,e=r.sibling,i=ci(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 Bl(e,t){return t=xI({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Rs(e,t,A,i){return i!==null&&el(i),Yn(t,e.child,null,A),e=Bl(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function V0(e,t,A,i,n,r,o){if(A)return t.flags&256?(t.flags&=-257,i=Lc(Error(N(422))),Rs(e,t,o,i)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(r=i.fallback,n=t.mode,i=xI({mode:"visible",children:i.children},n,0,null),r=qi(r,n,o,null),r.flags|=2,i.return=t,r.return=t,i.sibling=r,t.child=i,t.mode&1&&Yn(t,e.child,null,o),t.child.memoizedState=Dg(o),t.memoizedState=Fg,r);if(!(t.mode&1))return Rs(e,t,o,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,r=Error(N(419)),i=Lc(r,i,void 0),Rs(e,t,o,i)}if(s=(o&e.childLanes)!==0,lt||s){if(i=qe,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,MA(e,n),Wt(i,e,n,-1))}return pl(),i=Lc(Error(N(421))),Rs(e,t,o,i)}return n.data==="$?"?(t.flags|=128,t.child=e.child,t=iF.bind(null,e),n._reactRetry=t,null):(e=r.treeContext,Ft=oi(n.nextSibling),Dt=t,pe=!0,Xt=null,e!==null&&(Gt[Ht++]=UA,Gt[Ht++]=NA,Gt[Ht++]=Ki,UA=e.id,NA=e.overflow,Ki=t),t=Bl(t,i.children),t.flags|=4096,t)}function $f(e,t,A){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),hg(e.return,t,A)}function bc(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 YQ(e,t,A){var i=t.pendingProps,n=i.revealOrder,r=i.tail;if(it(e,t,i.children,A),i=me.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&&$f(e,A,t);else if(e.tag===19)$f(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(le(me,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&&uI(e)===null&&(n=A),A=A.sibling;A=n,A===null?(n=t.child,t.child=null):(n=A.sibling,A.sibling=null),bc(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&&uI(e)===null){t.child=n;break}e=n.sibling,n.sibling=A,A=n,n=e}bc(t,!0,A,null,r);break;case"together":bc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _s(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function vA(e,t,A){if(e!==null&&(t.dependencies=e.dependencies),bi|=t.lanes,!(A&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(N(153));if(t.child!==null){for(e=t.child,A=ci(e,e.pendingProps),t.child=A,A.return=t;e.sibling!==null;)e=e.sibling,A=A.sibling=ci(e,e.pendingProps),A.return=t;A.sibling=null}return t.child}function z0(e,t,A){switch(t.tag){case 3:bQ(t),On();break;case 5:dQ(t);break;case 1:Bt(t.type)&&sI(t);break;case 4:ol(t,t.stateNode.containerInfo);break;case 10:var i=t.type._context,n=t.memoizedProps.value;le(cI,i._currentValue),i._currentValue=n;break;case 13:if(i=t.memoizedState,i!==null)return i.dehydrated!==null?(le(me,me.current&1),t.flags|=128,null):A&t.child.childLanes?OQ(e,t,A):(le(me,me.current&1),e=vA(e,t,A),e!==null?e.sibling:null);le(me,me.current&1);break;case 19:if(i=(A&t.childLanes)!==0,e.flags&128){if(i)return YQ(e,t,A);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),le(me,me.current),i)break;return null;case 22:case 23:return t.lanes=0,KQ(e,t,A)}return vA(e,t,A)}var VQ,kg,zQ,PQ;VQ=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}};kg=function(){};zQ=function(e,t,A,i){var n=e.memoizedProps;if(n!==i){e=t.stateNode,vi(lA.current);var r=null;switch(A){case"input":n=Xc(e,n),i=Xc(e,i),r=[];break;case"select":n=we({},n,{value:void 0}),i=we({},i,{value:void 0}),r=[];break;case"textarea":n=jc(e,n),i=jc(e,i),r=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(e.onclick=rI)}eg(A,i);var o;A=null;for(a in n)if(!i.hasOwnProperty(a)&&n.hasOwnProperty(a)&&n[a]!=null)if(a==="style"){var s=n[a];for(o in s)s.hasOwnProperty(o)&&(A||(A={}),A[o]="")}else a!=="dangerouslySetInnerHTML"&&a!=="children"&&a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(jr.hasOwnProperty(a)?r||(r=[]):(r=r||[]).push(a,null));for(a in i){var I=i[a];if(s=n?.[a],i.hasOwnProperty(a)&&I!==s&&(I!=null||s!=null))if(a==="style")if(s){for(o in s)!s.hasOwnProperty(o)||I&&I.hasOwnProperty(o)||(A||(A={}),A[o]="");for(o in I)I.hasOwnProperty(o)&&s[o]!==I[o]&&(A||(A={}),A[o]=I[o])}else A||(r||(r=[]),r.push(a,A)),A=I;else a==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,s=s?s.__html:void 0,I!=null&&s!==I&&(r=r||[]).push(a,I)):a==="children"?typeof I!="string"&&typeof I!="number"||(r=r||[]).push(a,""+I):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&(jr.hasOwnProperty(a)?(I!=null&&a==="onScroll"&&Qe("scroll",e),r||s===I||(r=[])):(r=r||[]).push(a,I))}A&&(r=r||[]).push("style",A);var a=r;(t.updateQueue=a)&&(t.flags|=4)}};PQ=function(e,t,A,i){A!==i&&(t.flags|=4)};function Jr(e,t){if(!pe)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 We(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 P0(e,t,A){var i=t.pendingProps;switch($g(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return We(t),null;case 1:return Bt(t.type)&&oI(),We(t),null;case 3:return i=t.stateNode,Vn(),Ce(ut),Ce($e),Il(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(Js(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Xt!==null&&(vg(Xt),Xt=null))),kg(e,t),We(t),null;case 5:sl(t);var n=vi(co.current);if(A=t.type,e!==null&&t.stateNode!=null)zQ(e,t,A,i,n),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(N(166));return We(t),null}if(e=vi(lA.current),Js(t)){i=t.stateNode,A=t.type;var r=t.memoizedProps;switch(i[cA]=t,i[Io]=r,e=(t.mode&1)!==0,A){case"dialog":Qe("cancel",i),Qe("close",i);break;case"iframe":case"object":case"embed":Qe("load",i);break;case"video":case"audio":for(n=0;n<Or.length;n++)Qe(Or[n],i);break;case"source":Qe("error",i);break;case"img":case"image":case"link":Qe("error",i),Qe("load",i);break;case"details":Qe("toggle",i);break;case"input":sf(i,r),Qe("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!r.multiple},Qe("invalid",i);break;case"textarea":af(i,r),Qe("invalid",i)}eg(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&&vs(i.textContent,s,e),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(r.suppressHydrationWarning!==!0&&vs(i.textContent,s,e),n=["children",""+s]):jr.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Qe("scroll",i)}switch(A){case"input":ys(i),If(i,r,!0);break;case"textarea":ys(i),cf(i);break;case"select":case"option":break;default:typeof r.onClick=="function"&&(i.onclick=rI)}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=hd(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[cA]=t,e[Io]=i,VQ(e,t,!1,!1),t.stateNode=e;e:{switch(o=tg(A,i),A){case"dialog":Qe("cancel",e),Qe("close",e),n=i;break;case"iframe":case"object":case"embed":Qe("load",e),n=i;break;case"video":case"audio":for(n=0;n<Or.length;n++)Qe(Or[n],e);n=i;break;case"source":Qe("error",e),n=i;break;case"img":case"image":case"link":Qe("error",e),Qe("load",e),n=i;break;case"details":Qe("toggle",e),n=i;break;case"input":sf(e,i),n=Xc(e,i),Qe("invalid",e);break;case"option":n=i;break;case"select":e._wrapperState={wasMultiple:!!i.multiple},n=we({},i,{value:void 0}),Qe("invalid",e);break;case"textarea":af(e,i),n=jc(e,i),Qe("invalid",e);break;default:n=i}eg(A,n),s=n;for(r in s)if(s.hasOwnProperty(r)){var I=s[r];r==="style"?md(e,I):r==="dangerouslySetInnerHTML"?(I=I?I.__html:void 0,I!=null&&pd(e,I)):r==="children"?typeof I=="string"?(A!=="textarea"||I!=="")&&$r(e,I):typeof I=="number"&&$r(e,""+I):r!=="suppressContentEditableWarning"&&r!=="suppressHydrationWarning"&&r!=="autoFocus"&&(jr.hasOwnProperty(r)?I!=null&&r==="onScroll"&&Qe("scroll",e):I!=null&&Rg(e,r,I,o))}switch(A){case"input":ys(e),If(e,i,!1);break;case"textarea":ys(e),cf(e);break;case"option":i.value!=null&&e.setAttribute("value",""+gi(i.value));break;case"select":e.multiple=!!i.multiple,r=i.value,r!=null?Mn(e,!!i.multiple,r,!1):i.defaultValue!=null&&Mn(e,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(e.onclick=rI)}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 We(t),null;case 6:if(e&&t.stateNode!=null)PQ(e,t,e.memoizedProps,i);else{if(typeof i!="string"&&t.stateNode===null)throw Error(N(166));if(A=vi(co.current),vi(lA.current),Js(t)){if(i=t.stateNode,A=t.memoizedProps,i[cA]=t,(r=i.nodeValue!==A)&&(e=Dt,e!==null))switch(e.tag){case 3:vs(i.nodeValue,A,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&vs(i.nodeValue,A,(e.mode&1)!==0)}r&&(t.flags|=4)}else i=(A.nodeType===9?A:A.ownerDocument).createTextNode(i),i[cA]=t,t.stateNode=i}return We(t),null;case 13:if(Ce(me),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(pe&&Ft!==null&&t.mode&1&&!(t.flags&128))aQ(),On(),t.flags|=98560,r=!1;else if(r=Js(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(N(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(N(317));r[cA]=t}else On(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;We(t),r=!1}else Xt!==null&&(vg(Xt),Xt=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||me.current&1?Ge===0&&(Ge=3):pl())),t.updateQueue!==null&&(t.flags|=4),We(t),null);case 4:return Vn(),kg(e,t),e===null&&oo(t.stateNode.containerInfo),We(t),null;case 10:return il(t.type._context),We(t),null;case 17:return Bt(t.type)&&oI(),We(t),null;case 19:if(Ce(me),r=t.memoizedState,r===null)return We(t),null;if(i=(t.flags&128)!==0,o=r.rendering,o===null)if(i)Jr(r,!1);else{if(Ge!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=uI(e),o!==null){for(t.flags|=128,Jr(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 le(me,me.current&1|2),t.child}e=e.sibling}r.tail!==null&&ke()>Pn&&(t.flags|=128,i=!0,Jr(r,!1),t.lanes=4194304)}else{if(!i)if(e=uI(o),e!==null){if(t.flags|=128,i=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),Jr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!pe)return We(t),null}else 2*ke()-r.renderingStartTime>Pn&&A!==1073741824&&(t.flags|=128,i=!0,Jr(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=ke(),t.sibling=null,A=me.current,le(me,i?A&1|2:A&1),t):(We(t),null);case 22:case 23:return hl(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?wt&1073741824&&(We(t),t.subtreeFlags&6&&(t.flags|=8192)):We(t),null;case 24:return null;case 25:return null}throw Error(N(156,t.tag))}function _0(e,t){switch($g(t),t.tag){case 1:return Bt(t.type)&&oI(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Vn(),Ce(ut),Ce($e),Il(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return sl(t),null;case 13:if(Ce(me),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(N(340));On()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(me),null;case 4:return Vn(),null;case 10:return il(t.type._context),null;case 22:case 23:return hl(),null;case 24:return null;default:return null}}var Ks=!1,je=!1,T0=typeof WeakSet=="function"?WeakSet:Set,v=null;function Gn(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(i){De(e,t,i)}else A.current=null}function Sg(e,t,A){try{A()}catch(i){De(e,t,i)}}var ed=!1;function X0(e,t){if(gg=AI,e=Zd(),Wg(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,I=-1,a=0,c=0,u=e,l=null;t:for(;;){for(var g;u!==A||n!==0&&u.nodeType!==3||(s=o+n),u!==r||i!==0&&u.nodeType!==3||(I=o+i),u.nodeType===3&&(o+=u.nodeValue.length),(g=u.firstChild)!==null;)l=u,u=g;for(;;){if(u===e)break t;if(l===A&&++a===n&&(s=o),l===r&&++c===i&&(I=o),(g=u.nextSibling)!==null)break;u=l,l=u.parentNode}u=g}A=s===-1||I===-1?null:{start:s,end:I}}else A=null}A=A||{start:0,end:0}}else A=null;for(lg={focusedElem:e,selectionRange:A},AI=!1,v=t;v!==null;)if(t=v,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,v=e;else for(;v!==null;){t=v;try{var B=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(B!==null){var p=B.memoizedProps,U=B.memoizedState,d=t.stateNode,f=d.getSnapshotBeforeUpdate(t.elementType===t.type?p:_t(t.type,p),U);d.__reactInternalSnapshotBeforeUpdate=f}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(N(163))}}catch(y){De(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,v=e;break}v=t.return}return B=ed,ed=!1,B}function Xr(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&&Sg(t,A,r)}n=n.next}while(n!==i)}}function UI(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 Ug(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 _Q(e){var t=e.alternate;t!==null&&(e.alternate=null,_Q(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[cA],delete t[Io],delete t[fg],delete t[x0],delete t[G0])),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 TQ(e){return e.tag===5||e.tag===3||e.tag===4}function td(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||TQ(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 Ng(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=rI));else if(i!==4&&(e=e.child,e!==null))for(Ng(e,t,A),e=e.sibling;e!==null;)Ng(e,t,A),e=e.sibling}function xg(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(xg(e,t,A),e=e.sibling;e!==null;)xg(e,t,A),e=e.sibling}var Ve=null,Tt=!1;function ZA(e,t,A){for(A=A.child;A!==null;)XQ(e,t,A),A=A.sibling}function XQ(e,t,A){if(gA&&typeof gA.onCommitFiberUnmount=="function")try{gA.onCommitFiberUnmount(EI,A)}catch{}switch(A.tag){case 5:je||Gn(A,t);case 6:var i=Ve,n=Tt;Ve=null,ZA(e,t,A),Ve=i,Tt=n,Ve!==null&&(Tt?(e=Ve,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):Ve.removeChild(A.stateNode));break;case 18:Ve!==null&&(Tt?(e=Ve,A=A.stateNode,e.nodeType===8?Mc(e.parentNode,A):e.nodeType===1&&Mc(e,A),io(e)):Mc(Ve,A.stateNode));break;case 4:i=Ve,n=Tt,Ve=A.stateNode.containerInfo,Tt=!0,ZA(e,t,A),Ve=i,Tt=n;break;case 0:case 11:case 14:case 15:if(!je&&(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)&&Sg(A,t,o),n=n.next}while(n!==i)}ZA(e,t,A);break;case 1:if(!je&&(Gn(A,t),i=A.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=A.memoizedProps,i.state=A.memoizedState,i.componentWillUnmount()}catch(s){De(A,t,s)}ZA(e,t,A);break;case 21:ZA(e,t,A);break;case 22:A.mode&1?(je=(i=je)||A.memoizedState!==null,ZA(e,t,A),je=i):ZA(e,t,A);break;default:ZA(e,t,A)}}function Ad(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new T0),t.forEach(function(i){var n=nF.bind(null,e,i);A.has(i)||(A.add(i),i.then(n,n))})}}function Pt(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:Ve=s.stateNode,Tt=!1;break e;case 3:Ve=s.stateNode.containerInfo,Tt=!0;break e;case 4:Ve=s.stateNode.containerInfo,Tt=!0;break e}s=s.return}if(Ve===null)throw Error(N(160));XQ(r,o,n),Ve=null,Tt=!1;var I=n.alternate;I!==null&&(I.return=null),n.return=null}catch(a){De(n,t,a)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)ZQ(t,e),t=t.sibling}function ZQ(e,t){var A=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Pt(t,e),IA(e),i&4){try{Xr(3,e,e.return),UI(3,e)}catch(p){De(e,e.return,p)}try{Xr(5,e,e.return)}catch(p){De(e,e.return,p)}}break;case 1:Pt(t,e),IA(e),i&512&&A!==null&&Gn(A,A.return);break;case 5:if(Pt(t,e),IA(e),i&512&&A!==null&&Gn(A,A.return),e.flags&32){var n=e.stateNode;try{$r(n,"")}catch(p){De(e,e.return,p)}}if(i&4&&(n=e.stateNode,n!=null)){var r=e.memoizedProps,o=A!==null?A.memoizedProps:r,s=e.type,I=e.updateQueue;if(e.updateQueue=null,I!==null)try{s==="input"&&r.type==="radio"&&r.name!=null&&Qd(n,r),tg(s,o);var a=tg(s,r);for(o=0;o<I.length;o+=2){var c=I[o],u=I[o+1];c==="style"?md(n,u):c==="dangerouslySetInnerHTML"?pd(n,u):c==="children"?$r(n,u):Rg(n,c,u,a)}switch(s){case"input":Zc(n,r);break;case"textarea":Cd(n,r);break;case"select":var l=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!r.multiple;var g=r.value;g!=null?Mn(n,!!r.multiple,g,!1):l!==!!r.multiple&&(r.defaultValue!=null?Mn(n,!!r.multiple,r.defaultValue,!0):Mn(n,!!r.multiple,r.multiple?[]:"",!1))}n[Io]=r}catch(p){De(e,e.return,p)}}break;case 6:if(Pt(t,e),IA(e),i&4){if(e.stateNode===null)throw Error(N(162));n=e.stateNode,r=e.memoizedProps;try{n.nodeValue=r}catch(p){De(e,e.return,p)}}break;case 3:if(Pt(t,e),IA(e),i&4&&A!==null&&A.memoizedState.isDehydrated)try{io(t.containerInfo)}catch(p){De(e,e.return,p)}break;case 4:Pt(t,e),IA(e);break;case 13:Pt(t,e),IA(e),n=e.child,n.flags&8192&&(r=n.memoizedState!==null,n.stateNode.isHidden=r,!r||n.alternate!==null&&n.alternate.memoizedState!==null||(Ql=ke())),i&4&&Ad(e);break;case 22:if(c=A!==null&&A.memoizedState!==null,e.mode&1?(je=(a=je)||c,Pt(t,e),je=a):Pt(t,e),IA(e),i&8192){if(a=e.memoizedState!==null,(e.stateNode.isHidden=a)&&!c&&e.mode&1)for(v=e,c=e.child;c!==null;){for(u=v=c;v!==null;){switch(l=v,g=l.child,l.tag){case 0:case 11:case 14:case 15:Xr(4,l,l.return);break;case 1:Gn(l,l.return);var B=l.stateNode;if(typeof B.componentWillUnmount=="function"){i=l,A=l.return;try{t=i,B.props=t.memoizedProps,B.state=t.memoizedState,B.componentWillUnmount()}catch(p){De(i,A,p)}}break;case 5:Gn(l,l.return);break;case 22:if(l.memoizedState!==null){nd(u);continue}}g!==null?(g.return=l,v=g):nd(u)}c=c.sibling}e:for(c=null,u=e;;){if(u.tag===5){if(c===null){c=u;try{n=u.stateNode,a?(r=n.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"):(s=u.stateNode,I=u.memoizedProps.style,o=I!=null&&I.hasOwnProperty("display")?I.display:null,s.style.display=Ed("display",o))}catch(p){De(e,e.return,p)}}}else if(u.tag===6){if(c===null)try{u.stateNode.nodeValue=a?"":u.memoizedProps}catch(p){De(e,e.return,p)}}else if((u.tag!==22&&u.tag!==23||u.memoizedState===null||u===e)&&u.child!==null){u.child.return=u,u=u.child;continue}if(u===e)break e;for(;u.sibling===null;){if(u.return===null||u.return===e)break e;c===u&&(c=null),u=u.return}c===u&&(c=null),u.sibling.return=u.return,u=u.sibling}}break;case 19:Pt(t,e),IA(e),i&4&&Ad(e);break;case 21:break;default:Pt(t,e),IA(e)}}function IA(e){var t=e.flags;if(t&2){try{e:{for(var A=e.return;A!==null;){if(TQ(A)){var i=A;break e}A=A.return}throw Error(N(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&($r(n,""),i.flags&=-33);var r=td(e);xg(e,r,n);break;case 3:case 4:var o=i.stateNode.containerInfo,s=td(e);Ng(e,s,o);break;default:throw Error(N(161))}}catch(I){De(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Z0(e,t,A){v=e,WQ(e,t,A)}function WQ(e,t,A){for(var i=(e.mode&1)!==0;v!==null;){var n=v,r=n.child;if(n.tag===22&&i){var o=n.memoizedState!==null||Ks;if(!o){var s=n.alternate,I=s!==null&&s.memoizedState!==null||je;s=Ks;var a=je;if(Ks=o,(je=I)&&!a)for(v=n;v!==null;)o=v,I=o.child,o.tag===22&&o.memoizedState!==null?rd(n):I!==null?(I.return=o,v=I):rd(n);for(;r!==null;)v=r,WQ(r,t,A),r=r.sibling;v=n,Ks=s,je=a}id(e,t,A)}else n.subtreeFlags&8772&&r!==null?(r.return=n,v=r):id(e,t,A)}}function id(e){for(;v!==null;){var t=v;if(t.flags&8772){var A=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:je||UI(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!je)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&&Lf(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}Lf(t,o,A)}break;case 5:var s=t.stateNode;if(A===null&&t.flags&4){A=s;var I=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":I.autoFocus&&A.focus();break;case"img":I.src&&(A.src=I.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var a=t.alternate;if(a!==null){var c=a.memoizedState;if(c!==null){var u=c.dehydrated;u!==null&&io(u)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(N(163))}je||t.flags&512&&Ug(t)}catch(l){De(t,t.return,l)}}if(t===e){v=null;break}if(A=t.sibling,A!==null){A.return=t.return,v=A;break}v=t.return}}function nd(e){for(;v!==null;){var t=v;if(t===e){v=null;break}var A=t.sibling;if(A!==null){A.return=t.return,v=A;break}v=t.return}}function rd(e){for(;v!==null;){var t=v;try{switch(t.tag){case 0:case 11:case 15:var A=t.return;try{UI(4,t)}catch(I){De(t,A,I)}break;case 1:var i=t.stateNode;if(typeof i.componentDidMount=="function"){var n=t.return;try{i.componentDidMount()}catch(I){De(t,n,I)}}var r=t.return;try{Ug(t)}catch(I){De(t,r,I)}break;case 5:var o=t.return;try{Ug(t)}catch(I){De(t,o,I)}}}catch(I){De(t,t.return,I)}if(t===e){v=null;break}var s=t.sibling;if(s!==null){s.return=t.return,v=s;break}v=t.return}}var W0=Math.ceil,dI=JA.ReactCurrentDispatcher,fl=JA.ReactCurrentOwner,vt=JA.ReactCurrentBatchConfig,ie=0,qe=null,Ne=null,ze=0,wt=0,Hn=Bi(0),Ge=0,Bo=null,bi=0,NI=0,dl=0,Zr=null,gt=null,Ql=0,Pn=1/0,kA=null,QI=!1,Gg=null,Ii=null,Ls=!1,Ai=null,CI=0,Wr=0,Hg=null,Ts=-1,Xs=0;function nt(){return ie&6?ke():Ts!==-1?Ts:Ts=ke()}function ai(e){return e.mode&1?ie&2&&ze!==0?ze&-ze:M0.transition!==null?(Xs===0&&(Xs=Md()),Xs):(e=se,e!==0||(e=window.event,e=e===void 0?16:bd(e.type)),e):1}function Wt(e,t,A,i){if(50<Wr)throw Wr=0,Hg=null,Error(N(185));fo(e,A,i),(!(ie&2)||e!==qe)&&(e===qe&&(!(ie&2)&&(NI|=A),Ge===4&&ei(e,ze)),ft(e,i),A===1&&ie===0&&!(t.mode&1)&&(Pn=ke()+500,DI&&fi()))}function ft(e,t){var A=e.callbackNode;Jw(e,t);var i=tI(e,e===qe?ze:0);if(i===0)A!==null&&uf(A),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(A!=null&&uf(A),t===1)e.tag===0?H0(od.bind(null,e)):oQ(od.bind(null,e)),U0(function(){!(ie&6)&&fi()}),A=null;else{switch(vd(i)){case 1:A=Yg;break;case 4:A=Gd;break;case 16:A=eI;break;case 536870912:A=Hd;break;default:A=eI}A=rC(A,jQ.bind(null,e))}e.callbackPriority=t,e.callbackNode=A}}function jQ(e,t){if(Ts=-1,Xs=0,ie&6)throw Error(N(327));var A=e.callbackNode;if(Kn()&&e.callbackNode!==A)return null;var i=tI(e,e===qe?ze:0);if(i===0)return null;if(i&30||i&e.expiredLanes||t)t=hI(e,i);else{t=i;var n=ie;ie|=2;var r=eC();(qe!==e||ze!==t)&&(kA=null,Pn=ke()+500,Ji(e,t));do try{eF();break}catch(s){$Q(e,s)}while(!0);Al(),dI.current=r,ie=n,Ne!==null?t=0:(qe=null,ze=0,t=Ge)}if(t!==0){if(t===2&&(n=og(e),n!==0&&(i=n,t=Mg(e,n))),t===1)throw A=Bo,Ji(e,0),ei(e,i),ft(e,ke()),A;if(t===6)ei(e,i);else{if(n=e.current.alternate,!(i&30)&&!j0(n)&&(t=hI(e,i),t===2&&(r=og(e),r!==0&&(i=r,t=Mg(e,r))),t===1))throw A=Bo,Ji(e,0),ei(e,i),ft(e,ke()),A;switch(e.finishedWork=n,e.finishedLanes=i,t){case 0:case 1:throw Error(N(345));case 2:Gi(e,gt,kA);break;case 3:if(ei(e,i),(i&130023424)===i&&(t=Ql+500-ke(),10<t)){if(tI(e,0)!==0)break;if(n=e.suspendedLanes,(n&i)!==i){nt(),e.pingedLanes|=e.suspendedLanes&n;break}e.timeoutHandle=Bg(Gi.bind(null,e,gt,kA),t);break}Gi(e,gt,kA);break;case 4:if(ei(e,i),(i&4194240)===i)break;for(t=e.eventTimes,n=-1;0<i;){var o=31-Zt(i);r=1<<o,o=t[o],o>n&&(n=o),i&=~r}if(i=n,i=ke()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*W0(i/1960))-i,10<i){e.timeoutHandle=Bg(Gi.bind(null,e,gt,kA),i);break}Gi(e,gt,kA);break;case 5:Gi(e,gt,kA);break;default:throw Error(N(329))}}}return ft(e,ke()),e.callbackNode===A?jQ.bind(null,e):null}function Mg(e,t){var A=Zr;return e.current.memoizedState.isDehydrated&&(Ji(e,t).flags|=256),e=hI(e,t),e!==2&&(t=gt,gt=A,t!==null&&vg(t)),e}function vg(e){gt===null?gt=e:gt.push.apply(gt,e)}function j0(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(!jt(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 ei(e,t){for(t&=~dl,t&=~NI,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var A=31-Zt(t),i=1<<A;e[A]=-1,t&=~i}}function od(e){if(ie&6)throw Error(N(327));Kn();var t=tI(e,0);if(!(t&1))return ft(e,ke()),null;var A=hI(e,t);if(e.tag!==0&&A===2){var i=og(e);i!==0&&(t=i,A=Mg(e,i))}if(A===1)throw A=Bo,Ji(e,0),ei(e,t),ft(e,ke()),A;if(A===6)throw Error(N(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Gi(e,gt,kA),ft(e,ke()),null}function Cl(e,t){var A=ie;ie|=1;try{return e(t)}finally{ie=A,ie===0&&(Pn=ke()+500,DI&&fi())}}function Oi(e){Ai!==null&&Ai.tag===0&&!(ie&6)&&Kn();var t=ie;ie|=1;var A=vt.transition,i=se;try{if(vt.transition=null,se=1,e)return e()}finally{se=i,vt.transition=A,ie=t,!(ie&6)&&fi()}}function hl(){wt=Hn.current,Ce(Hn)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=0;var A=e.timeoutHandle;if(A!==-1&&(e.timeoutHandle=-1,S0(A)),Ne!==null)for(A=Ne.return;A!==null;){var i=A;switch($g(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&oI();break;case 3:Vn(),Ce(ut),Ce($e),Il();break;case 5:sl(i);break;case 4:Vn();break;case 13:Ce(me);break;case 19:Ce(me);break;case 10:il(i.type._context);break;case 22:case 23:hl()}A=A.return}if(qe=e,Ne=e=ci(e.current,null),ze=wt=t,Ge=0,Bo=null,dl=NI=bi=0,gt=Zr=null,Mi!==null){for(t=0;t<Mi.length;t++)if(A=Mi[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}Mi=null}return e}function $Q(e,t){do{var A=Ne;try{if(Al(),zs.current=fI,BI){for(var i=ye.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}BI=!1}if(Li=0,Je=xe=ye=null,Tr=!1,go=0,fl.current=null,A===null||A.return===null){Ge=1,Bo=t,Ne=null;break}e:{var r=e,o=A.return,s=A,I=t;if(t=ze,s.flags|=32768,I!==null&&typeof I=="object"&&typeof I.then=="function"){var a=I,c=s,u=c.tag;if(!(c.mode&1)&&(u===0||u===11||u===15)){var l=c.alternate;l?(c.updateQueue=l.updateQueue,c.memoizedState=l.memoizedState,c.lanes=l.lanes):(c.updateQueue=null,c.memoizedState=null)}var g=_f(o);if(g!==null){g.flags&=-257,Tf(g,o,s,r,t),g.mode&1&&Pf(r,a,t),t=g,I=a;var B=t.updateQueue;if(B===null){var p=new Set;p.add(I),t.updateQueue=p}else B.add(I);break e}else{if(!(t&1)){Pf(r,a,t),pl();break e}I=Error(N(426))}}else if(pe&&s.mode&1){var U=_f(o);if(U!==null){!(U.flags&65536)&&(U.flags|=256),Tf(U,o,s,r,t),el(zn(I,s));break e}}r=I=zn(I,s),Ge!==4&&(Ge=2),Zr===null?Zr=[r]:Zr.push(r),r=o;do{switch(r.tag){case 3:r.flags|=65536,t&=-t,r.lanes|=t;var d=JQ(r,I,t);Kf(r,d);break e;case 1:s=I;var f=r.type,Q=r.stateNode;if(!(r.flags&128)&&(typeof f.getDerivedStateFromError=="function"||Q!==null&&typeof Q.componentDidCatch=="function"&&(Ii===null||!Ii.has(Q)))){r.flags|=65536,t&=-t,r.lanes|=t;var y=qQ(r,s,t);Kf(r,y);break e}}r=r.return}while(r!==null)}AC(A)}catch(F){t=F,Ne===A&&A!==null&&(Ne=A=A.return);continue}break}while(!0)}function eC(){var e=dI.current;return dI.current=fI,e===null?fI:e}function pl(){(Ge===0||Ge===3||Ge===2)&&(Ge=4),qe===null||!(bi&268435455)&&!(NI&268435455)||ei(qe,ze)}function hI(e,t){var A=ie;ie|=2;var i=eC();(qe!==e||ze!==t)&&(kA=null,Ji(e,t));do try{$0();break}catch(n){$Q(e,n)}while(!0);if(Al(),ie=A,dI.current=i,Ne!==null)throw Error(N(261));return qe=null,ze=0,Ge}function $0(){for(;Ne!==null;)tC(Ne)}function eF(){for(;Ne!==null&&!kw();)tC(Ne)}function tC(e){var t=nC(e.alternate,e,wt);e.memoizedProps=e.pendingProps,t===null?AC(e):Ne=t,fl.current=null}function AC(e){var t=e;do{var A=t.alternate;if(e=t.return,t.flags&32768){if(A=_0(A,t),A!==null){A.flags&=32767,Ne=A;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ge=6,Ne=null;return}}else if(A=P0(A,t,wt),A!==null){Ne=A;return}if(t=t.sibling,t!==null){Ne=t;return}Ne=t=e}while(t!==null);Ge===0&&(Ge=5)}function Gi(e,t,A){var i=se,n=vt.transition;try{vt.transition=null,se=1,tF(e,t,A,i)}finally{vt.transition=n,se=i}return null}function tF(e,t,A,i){do Kn();while(Ai!==null);if(ie&6)throw Error(N(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(N(177));e.callbackNode=null,e.callbackPriority=0;var r=A.lanes|A.childLanes;if(qw(e,r),e===qe&&(Ne=qe=null,ze=0),!(A.subtreeFlags&2064)&&!(A.flags&2064)||Ls||(Ls=!0,rC(eI,function(){return Kn(),null})),r=(A.flags&15990)!==0,A.subtreeFlags&15990||r){r=vt.transition,vt.transition=null;var o=se;se=1;var s=ie;ie|=4,fl.current=null,X0(e,A),ZQ(A,e),y0(lg),AI=!!gg,lg=gg=null,e.current=A,Z0(A,e,n),Sw(),ie=s,se=o,vt.transition=r}else e.current=A;if(Ls&&(Ls=!1,Ai=e,CI=n),r=e.pendingLanes,r===0&&(Ii=null),xw(A.stateNode,i),ft(e,ke()),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(QI)throw QI=!1,e=Gg,Gg=null,e;return CI&1&&e.tag!==0&&Kn(),r=e.pendingLanes,r&1?e===Hg?Wr++:(Wr=0,Hg=e):Wr=0,fi(),null}function Kn(){if(Ai!==null){var e=vd(CI),t=vt.transition,A=se;try{if(vt.transition=null,se=16>e?16:e,Ai===null)var i=!1;else{if(e=Ai,Ai=null,CI=0,ie&6)throw Error(N(331));var n=ie;for(ie|=4,v=e.current;v!==null;){var r=v,o=r.child;if(v.flags&16){var s=r.deletions;if(s!==null){for(var I=0;I<s.length;I++){var a=s[I];for(v=a;v!==null;){var c=v;switch(c.tag){case 0:case 11:case 15:Xr(8,c,r)}var u=c.child;if(u!==null)u.return=c,v=u;else for(;v!==null;){c=v;var l=c.sibling,g=c.return;if(_Q(c),c===a){v=null;break}if(l!==null){l.return=g,v=l;break}v=g}}}var B=r.alternate;if(B!==null){var p=B.child;if(p!==null){B.child=null;do{var U=p.sibling;p.sibling=null,p=U}while(p!==null)}}v=r}}if(r.subtreeFlags&2064&&o!==null)o.return=r,v=o;else e:for(;v!==null;){if(r=v,r.flags&2048)switch(r.tag){case 0:case 11:case 15:Xr(9,r,r.return)}var d=r.sibling;if(d!==null){d.return=r.return,v=d;break e}v=r.return}}var f=e.current;for(v=f;v!==null;){o=v;var Q=o.child;if(o.subtreeFlags&2064&&Q!==null)Q.return=o,v=Q;else e:for(o=f;v!==null;){if(s=v,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:UI(9,s)}}catch(F){De(s,s.return,F)}if(s===o){v=null;break e}var y=s.sibling;if(y!==null){y.return=s.return,v=y;break e}v=s.return}}if(ie=n,fi(),gA&&typeof gA.onPostCommitFiberRoot=="function")try{gA.onPostCommitFiberRoot(EI,e)}catch{}i=!0}return i}finally{se=A,vt.transition=t}}return!1}function sd(e,t,A){t=zn(A,t),t=JQ(e,t,1),e=si(e,t,1),t=nt(),e!==null&&(fo(e,1,t),ft(e,t))}function De(e,t,A){if(e.tag===3)sd(e,e,A);else for(;t!==null;){if(t.tag===3){sd(t,e,A);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Ii===null||!Ii.has(i))){e=zn(A,e),e=qQ(t,e,1),t=si(t,e,1),e=nt(),t!==null&&(fo(t,1,e),ft(t,e));break}}t=t.return}}function AF(e,t,A){var i=e.pingCache;i!==null&&i.delete(t),t=nt(),e.pingedLanes|=e.suspendedLanes&A,qe===e&&(ze&A)===A&&(Ge===4||Ge===3&&(ze&130023424)===ze&&500>ke()-Ql?Ji(e,0):dl|=A),ft(e,t)}function iC(e,t){t===0&&(e.mode&1?(t=Ds,Ds<<=1,!(Ds&130023424)&&(Ds=4194304)):t=1);var A=nt();e=MA(e,t),e!==null&&(fo(e,t,A),ft(e,A))}function iF(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),iC(e,A)}function nF(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(N(314))}i!==null&&i.delete(t),iC(e,A)}var nC;nC=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||ut.current)lt=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return lt=!1,z0(e,t,A);lt=!!(e.flags&131072)}else lt=!1,pe&&t.flags&1048576&&sQ(t,aI,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;_s(e,t),e=t.pendingProps;var n=bn(t,$e.current);Rn(t,A),n=cl(null,t,i,e,n,A);var r=gl();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,Bt(i)?(r=!0,sI(t)):r=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,rl(t),n.updater=kI,t.stateNode=n,n._reactInternals=t,Eg(t,i,e,A),t=wg(null,t,i,!0,r,A)):(t.tag=0,pe&&r&&jg(t),it(null,t,n,A),t=t.child),t;case 16:i=t.elementType;e:{switch(_s(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=oF(i),e=_t(i,e),n){case 0:t=yg(null,t,i,e,A);break e;case 1:t=Wf(null,t,i,e,A);break e;case 11:t=Xf(null,t,i,e,A);break e;case 14:t=Zf(null,t,i,_t(i.type,e),A);break e}throw Error(N(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:_t(i,n),yg(e,t,i,n,A);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:_t(i,n),Wf(e,t,i,n,A);case 3:e:{if(bQ(t),e===null)throw Error(N(387));i=t.pendingProps,r=t.memoizedState,n=r.element,gQ(e,t),lI(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=zn(Error(N(423)),t),t=jf(e,t,i,A,n);break e}else if(i!==n){n=zn(Error(N(424)),t),t=jf(e,t,i,A,n);break e}else for(Ft=oi(t.stateNode.containerInfo.firstChild),Dt=t,pe=!0,Xt=null,A=fQ(t,null,i,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(On(),i===n){t=vA(e,t,A);break e}it(e,t,i,A)}t=t.child}return t;case 5:return dQ(t),e===null&&Cg(t),i=t.type,n=t.pendingProps,r=e!==null?e.memoizedProps:null,o=n.children,ug(i,n)?o=null:r!==null&&ug(i,r)&&(t.flags|=32),LQ(e,t),it(e,t,o,A),t.child;case 6:return e===null&&Cg(t),null;case 13:return OQ(e,t,A);case 4:return ol(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Yn(t,null,i,A):it(e,t,i,A),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:_t(i,n),Xf(e,t,i,n,A);case 7:return it(e,t,t.pendingProps,A),t.child;case 8:return it(e,t,t.pendingProps.children,A),t.child;case 12:return it(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,le(cI,i._currentValue),i._currentValue=o,r!==null)if(jt(r.value,o)){if(r.children===n.children&&!ut.current){t=vA(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 I=s.firstContext;I!==null;){if(I.context===i){if(r.tag===1){I=xA(-1,A&-A),I.tag=2;var a=r.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?I.next=I:(I.next=c.next,c.next=I),a.pending=I}}r.lanes|=A,I=r.alternate,I!==null&&(I.lanes|=A),hg(r.return,A,t),s.lanes|=A;break}I=I.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(N(341));o.lanes|=A,s=o.alternate,s!==null&&(s.lanes|=A),hg(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}it(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,Rn(t,A),n=Jt(n),i=i(n),t.flags|=1,it(e,t,i,A),t.child;case 14:return i=t.type,n=_t(i,t.pendingProps),n=_t(i.type,n),Zf(e,t,i,n,A);case 15:return RQ(e,t,t.type,t.pendingProps,A);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:_t(i,n),_s(e,t),t.tag=1,Bt(i)?(e=!0,sI(t)):e=!1,Rn(t,A),uQ(t,i,n),Eg(t,i,n,A),wg(null,t,i,!0,e,A);case 19:return YQ(e,t,A);case 22:return KQ(e,t,A)}throw Error(N(156,t.tag))};function rC(e,t){return xd(e,t)}function rF(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 Mt(e,t,A,i){return new rF(e,t,A,i)}function El(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oF(e){if(typeof e=="function")return El(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Lg)return 11;if(e===bg)return 14}return 2}function ci(e,t){var A=e.alternate;return A===null?(A=Mt(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 Zs(e,t,A,i,n,r){var o=2;if(i=e,typeof e=="function")El(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case yn:return qi(A.children,n,r,t);case Kg:o=8,n|=8;break;case zc:return e=Mt(12,A,t,n|2),e.elementType=zc,e.lanes=r,e;case Pc:return e=Mt(13,A,t,n),e.elementType=Pc,e.lanes=r,e;case _c:return e=Mt(19,A,t,n),e.elementType=_c,e.lanes=r,e;case Bd:return xI(A,n,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ld:o=10;break e;case ud:o=9;break e;case Lg:o=11;break e;case bg:o=14;break e;case WA:o=16,i=null;break e}throw Error(N(130,e==null?e:typeof e,""))}return t=Mt(o,A,t,n),t.elementType=e,t.type=i,t.lanes=r,t}function qi(e,t,A,i){return e=Mt(7,e,i,t),e.lanes=A,e}function xI(e,t,A,i){return e=Mt(22,e,i,t),e.elementType=Bd,e.lanes=A,e.stateNode={isHidden:!1},e}function Oc(e,t,A){return e=Mt(6,e,null,t),e.lanes=A,e}function Yc(e,t,A){return t=Mt(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function sF(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=Dc(0),this.expirationTimes=Dc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Dc(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function ml(e,t,A,i,n,r,o,s,I){return e=new sF(e,t,A,s,I),t===1?(t=1,r===!0&&(t|=8)):t=0,r=Mt(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},rl(r),e}function IF(e,t,A){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:mn,key:i==null?null:""+i,children:e,containerInfo:t,implementation:A}}function oC(e){if(!e)return li;e=e._reactInternals;e:{if(Vi(e)!==e||e.tag!==1)throw Error(N(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Bt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(N(171))}if(e.tag===1){var A=e.type;if(Bt(A))return rQ(e,A,t)}return t}function sC(e,t,A,i,n,r,o,s,I){return e=ml(A,i,!0,e,n,r,o,s,I),e.context=oC(null),A=e.current,i=nt(),n=ai(A),r=xA(i,n),r.callback=t??null,si(A,r,n),e.current.lanes=n,fo(e,n,i),ft(e,i),e}function GI(e,t,A,i){var n=t.current,r=nt(),o=ai(n);return A=oC(A),t.context===null?t.context=A:t.pendingContext=A,t=xA(r,o),t.payload={element:e},i=i===void 0?null:i,i!==null&&(t.callback=i),e=si(n,t,o),e!==null&&(Wt(e,n,o,r),Vs(e,n,o)),o}function pI(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 Id(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var A=e.retryLane;e.retryLane=A!==0&&A<t?A:t}}function yl(e,t){Id(e,t),(e=e.alternate)&&Id(e,t)}function aF(){return null}var IC=typeof reportError=="function"?reportError:function(e){console.error(e)};function wl(e){this._internalRoot=e}HI.prototype.render=wl.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(N(409));GI(e,t,null,null)};HI.prototype.unmount=wl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Oi(function(){GI(null,e,null,null)}),t[HA]=null}};function HI(e){this._internalRoot=e}HI.prototype.unstable_scheduleHydration=function(e){if(e){var t=Rd();e={blockedOn:null,target:e,priority:t};for(var A=0;A<$A.length&&t!==0&&t<$A[A].priority;A++);$A.splice(A,0,e),A===0&&Ld(e)}};function Fl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function MI(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function ad(){}function cF(e,t,A,i,n){if(n){if(typeof i=="function"){var r=i;i=function(){var a=pI(o);r.call(a)}}var o=sC(t,i,e,0,null,!1,!1,"",ad);return e._reactRootContainer=o,e[HA]=o.current,oo(e.nodeType===8?e.parentNode:e),Oi(),o}for(;n=e.lastChild;)e.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var a=pI(I);s.call(a)}}var I=ml(e,0,!1,null,null,!1,!1,"",ad);return e._reactRootContainer=I,e[HA]=I.current,oo(e.nodeType===8?e.parentNode:e),Oi(function(){GI(t,I,A,i)}),I}function vI(e,t,A,i,n){var r=A._reactRootContainer;if(r){var o=r;if(typeof n=="function"){var s=n;n=function(){var I=pI(o);s.call(I)}}GI(t,o,e,n)}else o=cF(A,t,e,n,i);return pI(o)}Jd=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var A=br(t.pendingLanes);A!==0&&(Vg(t,A|1),ft(t,ke()),!(ie&6)&&(Pn=ke()+500,fi()))}break;case 13:Oi(function(){var i=MA(e,1);if(i!==null){var n=nt();Wt(i,e,1,n)}}),yl(e,1)}};zg=function(e){if(e.tag===13){var t=MA(e,134217728);if(t!==null){var A=nt();Wt(t,e,134217728,A)}yl(e,134217728)}};qd=function(e){if(e.tag===13){var t=ai(e),A=MA(e,t);if(A!==null){var i=nt();Wt(A,e,t,i)}yl(e,t)}};Rd=function(){return se};Kd=function(e,t){var A=se;try{return se=e,t()}finally{se=A}};ig=function(e,t,A){switch(t){case"input":if(Zc(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=FI(i);if(!n)throw Error(N(90));dd(i),Zc(i,n)}}}break;case"textarea":Cd(e,A);break;case"select":t=A.value,t!=null&&Mn(e,!!A.multiple,t,!1)}};Fd=Cl;Dd=Oi;var gF={usingClientEntryPoint:!1,Events:[Co,kn,FI,yd,wd,Cl]},qr={findFiberByHostInstance:Hi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lF={bundleType:qr.bundleType,version:qr.version,rendererPackageName:qr.rendererPackageName,rendererConfig:qr.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:JA.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Ud(e),e===null?null:e.stateNode},findFiberByHostInstance:qr.findFiberByHostInstance||aF,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(Rr=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Rr.isDisabled&&Rr.supportsFiber))try{EI=Rr.inject(lF),gA=Rr}catch{}var Rr;Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=gF;Ut.createPortal=function(e,t){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Fl(t))throw Error(N(200));return IF(e,t,null,A)};Ut.createRoot=function(e,t){if(!Fl(e))throw Error(N(299));var A=!1,i="",n=IC;return t!=null&&(t.unstable_strictMode===!0&&(A=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(n=t.onRecoverableError)),t=ml(e,1,!1,null,null,A,!1,i,n),e[HA]=t.current,oo(e.nodeType===8?e.parentNode:e),new wl(t)};Ut.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(N(188)):(e=Object.keys(e).join(","),Error(N(268,e)));return e=Ud(t),e=e===null?null:e.stateNode,e};Ut.flushSync=function(e){return Oi(e)};Ut.hydrate=function(e,t,A){if(!MI(t))throw Error(N(200));return vI(null,e,t,!0,A)};Ut.hydrateRoot=function(e,t,A){if(!Fl(e))throw Error(N(405));var i=A!=null&&A.hydratedSources||null,n=!1,r="",o=IC;if(A!=null&&(A.unstable_strictMode===!0&&(n=!0),A.identifierPrefix!==void 0&&(r=A.identifierPrefix),A.onRecoverableError!==void 0&&(o=A.onRecoverableError)),t=sC(t,null,e,1,A??null,n,!1,r,o),e[HA]=t.current,oo(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 HI(t)};Ut.render=function(e,t,A){if(!MI(t))throw Error(N(200));return vI(null,e,t,!1,A)};Ut.unmountComponentAtNode=function(e){if(!MI(e))throw Error(N(40));return e._reactRootContainer?(Oi(function(){vI(null,null,e,!1,function(){e._reactRootContainer=null,e[HA]=null})}),!0):!1};Ut.unstable_batchedUpdates=Cl;Ut.unstable_renderSubtreeIntoContainer=function(e,t,A,i){if(!MI(A))throw Error(N(200));if(e==null||e._reactInternals===void 0)throw Error(N(38));return vI(e,t,A,!1,i)};Ut.version="18.2.0-next-9e3b772b8-20220608"});var Dl=de((kN,gC)=>{"use strict";function cC(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cC)}catch(e){console.error(e)}}cC(),gC.exports=aC()});var uC=de(kl=>{"use strict";var lC=Dl();kl.createRoot=lC.createRoot,kl.hydrateRoot=lC.hydrateRoot;var SN});var hC=de(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.output=ot.exists=ot.hash=ot.bytes=ot.bool=ot.number=void 0;function JI(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}ot.number=JI;function fC(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}ot.bool=fC;function BF(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Sl(e,...t){if(!BF(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}`)}ot.bytes=Sl;function dC(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");JI(e.outputLen),JI(e.blockLen)}ot.hash=dC;function QC(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")}ot.exists=QC;function CC(e,t){Sl(e);let A=t.outputLen;if(e.length<A)throw new Error(`digestInto() expects output buffer of length at least ${A}`)}ot.output=CC;var fF={number:JI,bool:fC,bytes:Sl,hash:dC,exists:QC,output:CC};ot.default=fF});var bC=de(O=>{"use strict";Object.defineProperty(O,"__esModule",{value:!0});O.add5L=O.add5H=O.add4H=O.add4L=O.add3H=O.add3L=O.add=O.rotlBL=O.rotlBH=O.rotlSL=O.rotlSH=O.rotr32L=O.rotr32H=O.rotrBL=O.rotrBH=O.rotrSL=O.rotrSH=O.shrSL=O.shrSH=O.toBig=O.split=O.fromBig=void 0;var qI=BigInt(2**32-1),Ul=BigInt(32);function Nl(e,t=!1){return t?{h:Number(e&qI),l:Number(e>>Ul&qI)}:{h:Number(e>>Ul&qI)|0,l:Number(e&qI)|0}}O.fromBig=Nl;function pC(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}=Nl(e[n],t);[A[n],i[n]]=[r,o]}return[A,i]}O.split=pC;var EC=(e,t)=>BigInt(e>>>0)<<Ul|BigInt(t>>>0);O.toBig=EC;var mC=(e,t,A)=>e>>>A;O.shrSH=mC;var yC=(e,t,A)=>e<<32-A|t>>>A;O.shrSL=yC;var wC=(e,t,A)=>e>>>A|t<<32-A;O.rotrSH=wC;var FC=(e,t,A)=>e<<32-A|t>>>A;O.rotrSL=FC;var DC=(e,t,A)=>e<<64-A|t>>>A-32;O.rotrBH=DC;var kC=(e,t,A)=>e>>>A-32|t<<64-A;O.rotrBL=kC;var SC=(e,t)=>t;O.rotr32H=SC;var UC=(e,t)=>e;O.rotr32L=UC;var NC=(e,t,A)=>e<<A|t>>>32-A;O.rotlSH=NC;var xC=(e,t,A)=>t<<A|e>>>32-A;O.rotlSL=xC;var GC=(e,t,A)=>t<<A-32|e>>>64-A;O.rotlBH=GC;var HC=(e,t,A)=>e<<A-32|t>>>64-A;O.rotlBL=HC;function MC(e,t,A,i){let n=(t>>>0)+(i>>>0);return{h:e+A+(n/2**32|0)|0,l:n|0}}O.add=MC;var vC=(e,t,A)=>(e>>>0)+(t>>>0)+(A>>>0);O.add3L=vC;var JC=(e,t,A,i)=>t+A+i+(e/2**32|0)|0;O.add3H=JC;var qC=(e,t,A,i)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0);O.add4L=qC;var RC=(e,t,A,i,n)=>t+A+i+n+(e/2**32|0)|0;O.add4H=RC;var KC=(e,t,A,i,n)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0)+(n>>>0);O.add5L=KC;var LC=(e,t,A,i,n,r)=>t+A+i+n+r+(e/2**32|0)|0;O.add5H=LC;var dF={fromBig:Nl,split:pC,toBig:EC,shrSH:mC,shrSL:yC,rotrSH:wC,rotrSL:FC,rotrBH:DC,rotrBL:kC,rotr32H:SC,rotr32L:UC,rotlSH:NC,rotlSL:xC,rotlBH:GC,rotlBL:HC,add:MC,add3L:vC,add3H:JC,add4L:qC,add4H:RC,add5H:LC,add5L:KC};O.default=dF});var OC=de(RI=>{"use strict";Object.defineProperty(RI,"__esModule",{value:!0});RI.crypto=void 0;RI.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var zC=de(_=>{"use strict";Object.defineProperty(_,"__esModule",{value:!0});_.randomBytes=_.wrapXOFConstructorWithOpts=_.wrapConstructorWithOpts=_.wrapConstructor=_.checkOpts=_.Hash=_.concatBytes=_.toBytes=_.utf8ToBytes=_.asyncLoop=_.nextTick=_.hexToBytes=_.bytesToHex=_.isLE=_.rotr=_.createView=_.u32=_.u8=void 0;var xl=OC(),QF=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);_.u8=QF;var CF=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));_.u32=CF;function Hl(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var hF=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);_.createView=hF;var pF=(e,t)=>e<<32-t|e>>>t;_.rotr=pF;_.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!_.isLE)throw new Error("Non little-endian hardware is not supported");var EF=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function mF(e){if(!Hl(e))throw new Error("Uint8Array expected");let t="";for(let A=0;A<e.length;A++)t+=EF[e[A]];return t}_.bytesToHex=mF;var qA={_0:48,_9:57,_A:65,_F:70,_a:97,_f:102};function YC(e){if(e>=qA._0&&e<=qA._9)return e-qA._0;if(e>=qA._A&&e<=qA._F)return e-(qA._A-10);if(e>=qA._a&&e<=qA._f)return e-(qA._a-10)}function yF(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=YC(e.charCodeAt(r)),s=YC(e.charCodeAt(r+1));if(o===void 0||s===void 0){let I=e[r]+e[r+1];throw new Error('hex string expected, got non-hex character "'+I+'" at index '+r)}i[n]=o*16+s}return i}_.hexToBytes=yF;var wF=async()=>{};_.nextTick=wF;async function FF(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,_.nextTick)(),i+=r)}}_.asyncLoop=FF;function VC(e){if(typeof e!="string")throw new Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}_.utf8ToBytes=VC;function KI(e){if(typeof e=="string"&&(e=VC(e)),!Hl(e))throw new Error(`expected Uint8Array, got ${typeof e}`);return e}_.toBytes=KI;function DF(...e){let t=0;for(let i=0;i<e.length;i++){let n=e[i];if(!Hl(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}_.concatBytes=DF;var Gl=class{clone(){return this._cloneInto()}};_.Hash=Gl;var kF={}.toString;function SF(e,t){if(t!==void 0&&kF.call(t)!=="[object Object]")throw new Error("Options should be object or undefined");return Object.assign(e,t)}_.checkOpts=SF;function UF(e){let t=i=>e().update(KI(i)).digest(),A=e();return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=()=>e(),t}_.wrapConstructor=UF;function NF(e){let t=(i,n)=>e(n).update(KI(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapConstructorWithOpts=NF;function xF(e){let t=(i,n)=>e(n).update(KI(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapXOFConstructorWithOpts=xF;function GF(e=32){if(xl.crypto&&typeof xl.crypto.getRandomValues=="function")return xl.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}_.randomBytes=GF});var Ml=de(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.shake256=ue.shake128=ue.keccak_512=ue.keccak_384=ue.keccak_256=ue.keccak_224=ue.sha3_512=ue.sha3_384=ue.sha3_256=ue.sha3_224=ue.Keccak=ue.keccakP=void 0;var Wn=hC(),mo=bC(),Eo=zC(),[TC,XC,ZC]=[[],[],[]],HF=BigInt(0),po=BigInt(1),MF=BigInt(2),vF=BigInt(7),JF=BigInt(256),qF=BigInt(113);for(let e=0,t=po,A=1,i=0;e<24;e++){[A,i]=[i,(2*A+3*i)%5],TC.push(2*(5*i+A)),XC.push((e+1)*(e+2)/2%64);let n=HF;for(let r=0;r<7;r++)t=(t<<po^(t>>vF)*qF)%JF,t&MF&&(n^=po<<(po<<BigInt(r))-po);ZC.push(n)}var[RF,KF]=(0,mo.split)(ZC,!0),PC=(e,t,A)=>A>32?(0,mo.rotlBH)(e,t,A):(0,mo.rotlSH)(e,t,A),_C=(e,t,A)=>A>32?(0,mo.rotlBL)(e,t,A):(0,mo.rotlSL)(e,t,A);function WC(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,I=(o+2)%10,a=A[I],c=A[I+1],u=PC(a,c,1)^A[s],l=_C(a,c,1)^A[s+1];for(let g=0;g<50;g+=10)e[o+g]^=u,e[o+g+1]^=l}let n=e[2],r=e[3];for(let o=0;o<24;o++){let s=XC[o],I=PC(n,r,s),a=_C(n,r,s),c=TC[o];n=e[c],r=e[c+1],e[c]=I,e[c+1]=a}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]^=RF[i],e[1]^=KF[i]}A.fill(0)}ue.keccakP=WC;var yo=class e extends Eo.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,Wn.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,Eo.u32)(this.state)}keccak(){WC(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,Wn.exists)(this);let{blockLen:A,state:i}=this;t=(0,Eo.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,Wn.exists)(this,!1),(0,Wn.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,Wn.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,Wn.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}};ue.Keccak=yo;var di=(e,t,A)=>(0,Eo.wrapConstructor)(()=>new yo(t,e,A));ue.sha3_224=di(6,144,224/8);ue.sha3_256=di(6,136,256/8);ue.sha3_384=di(6,104,384/8);ue.sha3_512=di(6,72,512/8);ue.keccak_224=di(1,144,224/8);ue.keccak_256=di(1,136,256/8);ue.keccak_384=di(1,104,384/8);ue.keccak_512=di(1,72,512/8);var jC=(e,t,A)=>(0,Eo.wrapXOFConstructorWithOpts)((i={})=>new yo(t,e,i.dkLen===void 0?A:i.dkLen,!0));ue.shake128=jC(31,168,128/8);ue.shake256=jC(31,136,256/8)});var oh=de((KN,Qi)=>{var{sha3_512:LF}=Ml(),eh=24,wo=32,vl=(e=4,t=Math.random)=>{let A="";for(;A.length<e;)A=A+Math.floor(t()*36).toString(36);return A};function th(e){let t=8n,A=0n;for(let i of e.values()){let n=BigInt(i);A=(A<<t)+n}return A}var Ah=(e="")=>th(LF(e)).toString(36).slice(1),$C=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),bF=e=>$C[Math.floor(e()*$C.length)],ih=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),A=t.length?t+vl(wo):vl(wo);return Ah(A).substring(0,wo)},nh=e=>()=>e++,OF=476782367,rh=({random:e=Math.random,counter:t=nh(Math.floor(e()*OF)),length:A=eh,fingerprint:i=ih()}={})=>function(){let r=bF(e),o=Date.now().toString(36),s=t().toString(36),I=vl(A,e),a=`${o+I+s+i}`;return`${r+Ah(a).substring(1,A)}`},YF=rh(),VF=(e,{minLength:t=2,maxLength:A=wo}={})=>{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};Qi.exports.getConstants=()=>({defaultLength:eh,bigLength:wo});Qi.exports.init=rh;Qi.exports.createId=YF;Qi.exports.bufToBigInt=th;Qi.exports.createCounter=nh;Qi.exports.createFingerprint=ih;Qi.exports.isCuid=VF});var sh=de((LN,Fo)=>{var{createId:zF,init:PF,getConstants:_F,isCuid:TF}=oh();Fo.exports.createId=zF;Fo.exports.init=PF;Fo.exports.getConstants=_F;Fo.exports.isCuid=TF});var ah=de(ql=>{"use strict";var XF=Symbol.for("react.fragment");ql.Fragment=XF;ql.jsxDEV=void 0});var gh=de((VN,ch)=>{"use strict";ch.exports=ah()});var uh=de(LI=>{"use strict";var ZF=Ye(),WF=Symbol.for("react.element"),jF=Symbol.for("react.fragment"),$F=Object.prototype.hasOwnProperty,eD=ZF.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,tD={key:!0,ref:!0,__self:!0,__source:!0};function lh(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)$F.call(t,i)&&!tD.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:WF,type:e,key:r,ref:o,props:n,_owner:eD.current}}LI.Fragment=jF;LI.jsx=lh;LI.jsxs=lh});var Ie=de((PN,Bh)=>{"use strict";Bh.exports=uh()});var VE=de(($u,YE)=>{"use strict";var{hasOwnProperty:Ma}=Object.prototype,gn=ju();gn.configure=ju;gn.stringify=gn;gn.default=gn;$u.stringify=gn;$u.configure=ju;YE.exports=gn;var aU=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function ki(e){return e.length<5e3&&!aU.test(e)?`"${e}"`:JSON.stringify(e)}function Zu(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 cU=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Wu(e){return cU.call(e)!==void 0&&e.length!==0}function LE(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 gU(e){if(Ma.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 bE(e,t){let A;if(Ma.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 OE(e,t){let A;if(Ma.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 cn(e){return e===1?"1 item":`${e} items`}function lU(e){let t=new Set;for(let A of e)(typeof A=="string"||typeof A=="number")&&t.add(String(A));return t}function uU(e){if(Ma.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 ju(e){e={...e};let t=uU(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let A=gU(e),i=bE(e,"bigint"),n=bE(e,"deterministic"),r=OE(e,"maximumDepth"),o=OE(e,"maximumBreadth");function s(l,g,B,p,U,d){let f=g[l];switch(typeof f=="object"&&f!==null&&typeof f.toJSON=="function"&&(f=f.toJSON(l)),f=p.call(g,l,f),typeof f){case"string":return ki(f);case"object":{if(f===null)return"null";if(B.indexOf(f)!==-1)return A;let Q="",y=",",F=d;if(Array.isArray(f)){if(f.length===0)return"[]";if(r<B.length+1)return'"[Array]"';B.push(f),U!==""&&(d+=U,Q+=`
|
|
${d}`,y=`,
|
|
${d}`);let X=Math.min(f.length,o),Ue=0;for(;Ue<X-1;Ue++){let m=s(String(Ue),f,B,p,U,d);Q+=m!==void 0?m:"null",Q+=y}let ct=s(String(Ue),f,B,p,U,d);if(Q+=ct!==void 0?ct:"null",f.length-1>o){let m=f.length-o-1;Q+=`${y}"... ${cn(m)} not stringified"`}return U!==""&&(Q+=`
|
|
${F}`),B.pop(),`[${Q}]`}let w=Object.keys(f),D=w.length;if(D===0)return"{}";if(r<B.length+1)return'"[Object]"';let S="",K="";U!==""&&(d+=U,y=`,
|
|
${d}`,S=" ");let q=Math.min(D,o);n&&!Wu(f)&&(w=Zu(w)),B.push(f);for(let X=0;X<q;X++){let Ue=w[X],ct=s(Ue,f,B,p,U,d);ct!==void 0&&(Q+=`${K}${ki(Ue)}:${S}${ct}`,K=y)}if(D>o){let X=D-o;Q+=`${K}"...":${S}"${cn(X)} not stringified"`,K=y}return U!==""&&K.length>1&&(Q=`
|
|
${d}${Q}
|
|
${F}`),B.pop(),`{${Q}}`}case"number":return isFinite(f)?String(f):t?t(f):"null";case"boolean":return f===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(f);default:return t?t(f):void 0}}function I(l,g,B,p,U,d){switch(typeof g=="object"&&g!==null&&typeof g.toJSON=="function"&&(g=g.toJSON(l)),typeof g){case"string":return ki(g);case"object":{if(g===null)return"null";if(B.indexOf(g)!==-1)return A;let f=d,Q="",y=",";if(Array.isArray(g)){if(g.length===0)return"[]";if(r<B.length+1)return'"[Array]"';B.push(g),U!==""&&(d+=U,Q+=`
|
|
${d}`,y=`,
|
|
${d}`);let D=Math.min(g.length,o),S=0;for(;S<D-1;S++){let q=I(String(S),g[S],B,p,U,d);Q+=q!==void 0?q:"null",Q+=y}let K=I(String(S),g[S],B,p,U,d);if(Q+=K!==void 0?K:"null",g.length-1>o){let q=g.length-o-1;Q+=`${y}"... ${cn(q)} not stringified"`}return U!==""&&(Q+=`
|
|
${f}`),B.pop(),`[${Q}]`}B.push(g);let F="";U!==""&&(d+=U,y=`,
|
|
${d}`,F=" ");let w="";for(let D of p){let S=I(D,g[D],B,p,U,d);S!==void 0&&(Q+=`${w}${ki(D)}:${F}${S}`,w=y)}return U!==""&&w.length>1&&(Q=`
|
|
${d}${Q}
|
|
${f}`),B.pop(),`{${Q}}`}case"number":return isFinite(g)?String(g):t?t(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return t?t(g):void 0}}function a(l,g,B,p,U){switch(typeof g){case"string":return ki(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(l),typeof g!="object")return a(l,g,B,p,U);if(g===null)return"null"}if(B.indexOf(g)!==-1)return A;let d=U;if(Array.isArray(g)){if(g.length===0)return"[]";if(r<B.length+1)return'"[Array]"';B.push(g),U+=p;let S=`
|
|
${U}`,K=`,
|
|
${U}`,q=Math.min(g.length,o),X=0;for(;X<q-1;X++){let ct=a(String(X),g[X],B,p,U);S+=ct!==void 0?ct:"null",S+=K}let Ue=a(String(X),g[X],B,p,U);if(S+=Ue!==void 0?Ue:"null",g.length-1>o){let ct=g.length-o-1;S+=`${K}"... ${cn(ct)} not stringified"`}return S+=`
|
|
${d}`,B.pop(),`[${S}]`}let f=Object.keys(g),Q=f.length;if(Q===0)return"{}";if(r<B.length+1)return'"[Object]"';U+=p;let y=`,
|
|
${U}`,F="",w="",D=Math.min(Q,o);Wu(g)&&(F+=LE(g,y,o),f=f.slice(g.length),D-=g.length,w=y),n&&(f=Zu(f)),B.push(g);for(let S=0;S<D;S++){let K=f[S],q=a(K,g[K],B,p,U);q!==void 0&&(F+=`${w}${ki(K)}: ${q}`,w=y)}if(Q>o){let S=Q-o;F+=`${w}"...": "${cn(S)} not stringified"`,w=y}return w!==""&&(F=`
|
|
${U}${F}
|
|
${d}`),B.pop(),`{${F}}`}case"number":return isFinite(g)?String(g):t?t(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return t?t(g):void 0}}function c(l,g,B){switch(typeof g){case"string":return ki(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(l),typeof g!="object")return c(l,g,B);if(g===null)return"null"}if(B.indexOf(g)!==-1)return A;let p="";if(Array.isArray(g)){if(g.length===0)return"[]";if(r<B.length+1)return'"[Array]"';B.push(g);let y=Math.min(g.length,o),F=0;for(;F<y-1;F++){let D=c(String(F),g[F],B);p+=D!==void 0?D:"null",p+=","}let w=c(String(F),g[F],B);if(p+=w!==void 0?w:"null",g.length-1>o){let D=g.length-o-1;p+=`,"... ${cn(D)} not stringified"`}return B.pop(),`[${p}]`}let U=Object.keys(g),d=U.length;if(d===0)return"{}";if(r<B.length+1)return'"[Object]"';let f="",Q=Math.min(d,o);Wu(g)&&(p+=LE(g,",",o),U=U.slice(g.length),Q-=g.length,f=","),n&&(U=Zu(U)),B.push(g);for(let y=0;y<Q;y++){let F=U[y],w=c(F,g[F],B);w!==void 0&&(p+=`${f}${ki(F)}:${w}`,f=",")}if(d>o){let y=d-o;p+=`${f}"...":"${cn(y)} not stringified"`}return B.pop(),`{${p}}`}case"number":return isFinite(g)?String(g):t?t(g):"null";case"boolean":return g===!0?"true":"false";case"undefined":return;case"bigint":if(i)return String(g);default:return t?t(g):void 0}}function u(l,g,B){if(arguments.length>1){let p="";if(typeof B=="number"?p=" ".repeat(Math.min(B,10)):typeof B=="string"&&(p=B.slice(0,10)),g!=null){if(typeof g=="function")return s("",{"":l},[],g,p,"");if(Array.isArray(g))return I("",l,[],lU(g),p,"")}if(p.length!==0)return a("",l,[],p,"")}return c("",l,[])}return u}});var Im=de((kH,Si)=>{var{sha3_512:yU}=Ml(),Am=24,ns=32,iB=(e=4,t=Math.random)=>{let A="";for(;A.length<e;)A=A+Math.floor(t()*36).toString(36);return A};function im(e){let t=8n,A=0n;for(let i of e.values()){let n=BigInt(i);A=(A<<t)+n}return A}var nm=(e="")=>im(yU(e)).toString(36).slice(1),tm=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),wU=e=>tm[Math.floor(e()*tm.length)],rm=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let A=Object.keys(e).toString(),i=A.length?A+iB(ns,t):iB(ns,t);return nm(i).substring(0,ns)},om=e=>()=>e++,FU=476782367,sm=({random:e=Math.random,counter:t=om(Math.floor(e()*FU)),length:A=Am,fingerprint:i=rm({random:e})}={})=>function(){let r=wU(e),o=Date.now().toString(36),s=t().toString(36),I=iB(A,e),a=`${o+I+s+i}`;return`${r+nm(a).substring(1,A)}`},DU=sm(),kU=(e,{minLength:t=2,maxLength:A=ns}={})=>{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};Si.exports.getConstants=()=>({defaultLength:Am,bigLength:ns});Si.exports.init=sm;Si.exports.createId=DU;Si.exports.bufToBigInt=im;Si.exports.createCounter=om;Si.exports.createFingerprint=rm;Si.exports.isCuid=kU});var nB=de((SH,rs)=>{var{createId:SU,init:UU,getConstants:NU,isCuid:xU}=Im();rs.exports.createId=SU;rs.exports.init=UU;rs.exports.getConstants=NU;rs.exports.isCuid=xU});var Gm=de((BM,xm)=>{var HU=1/0,MU="[object Symbol]",vU=/^\s+|\s+$/g,IB="\\ud800-\\udfff",pm="\\u0300-\\u036f\\ufe20-\\ufe23",Em="\\u20d0-\\u20f0",mm="\\ufe0e\\ufe0f",JU="["+IB+"]",oB="["+pm+Em+"]",sB="\\ud83c[\\udffb-\\udfff]",qU="(?:"+oB+"|"+sB+")",ym="[^"+IB+"]",wm="(?:\\ud83c[\\udde6-\\uddff]){2}",Fm="[\\ud800-\\udbff][\\udc00-\\udfff]",Dm="\\u200d",km=qU+"?",Sm="["+mm+"]?",RU="(?:"+Dm+"(?:"+[ym,wm,Fm].join("|")+")"+Sm+km+")*",KU=Sm+km+RU,LU="(?:"+[ym+oB+"?",oB,wm,Fm,JU].join("|")+")",bU=RegExp(sB+"(?="+sB+")|"+LU+KU,"g"),OU=RegExp("["+Dm+IB+pm+Em+mm+"]"),YU=typeof global=="object"&&global&&global.Object===Object&&global,VU=typeof self=="object"&&self&&self.Object===Object&&self,zU=YU||VU||Function("return this")();function PU(e){return e.split("")}function _U(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 Um(e,t,A){if(t!==t)return _U(e,TU,A);for(var i=A-1,n=e.length;++i<n;)if(e[i]===t)return i;return-1}function TU(e){return e!==e}function XU(e,t){for(var A=-1,i=e.length;++A<i&&Um(t,e[A],0)>-1;);return A}function ZU(e,t){for(var A=e.length;A--&&Um(t,e[A],0)>-1;);return A}function WU(e){return OU.test(e)}function dm(e){return WU(e)?jU(e):PU(e)}function jU(e){return e.match(bU)||[]}var $U=Object.prototype,e3=$U.toString,Qm=zU.Symbol,Cm=Qm?Qm.prototype:void 0,hm=Cm?Cm.toString:void 0;function t3(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 Nm(e){if(typeof e=="string")return e;if(n3(e))return hm?hm.call(e):"";var t=e+"";return t=="0"&&1/e==-HU?"-0":t}function A3(e,t,A){var i=e.length;return A=A===void 0?i:A,!t&&A>=i?e:t3(e,t,A)}function i3(e){return!!e&&typeof e=="object"}function n3(e){return typeof e=="symbol"||i3(e)&&e3.call(e)==MU}function r3(e){return e==null?"":Nm(e)}function o3(e,t,A){if(e=r3(e),e&&(A||t===void 0))return e.replace(vU,"");if(!e||!(t=Nm(t)))return e;var i=dm(e),n=dm(t),r=XU(i,n),o=ZU(i,n)+1;return A3(i,r,o).join("")}xm.exports=o3});var Jm=de((mM,vm)=>{"use strict";function c3(e,t){for(;e.length<t;)e="0"+e;return e}function PA(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 g3(e,t,A){return Object.keys(t).sort().reduce(i,e);function i(n,r){return Mm(n,t[r],r,A)}}function Mm(e,t,A,i){var n=PA(PA(PA(e,A),l3(t)),typeof t);if(t===null)return PA(n,"null");if(t===void 0)return PA(n,"undefined");if(typeof t=="object"||typeof t=="function"){if(i.indexOf(t)!==-1)return PA(n,"[Circular]"+A);i.push(t);var r=g3(n,t,i);if(!("valueOf"in t)||typeof t.valueOf!="function")return r;try{return PA(r,String(t.valueOf()))}catch(o){return PA(r,"[valueOf exception]"+(o.stack||o.message))}}return PA(n,t.toString())}function l3(e){return Object.prototype.toString.call(e)}function u3(e){return c3(Mm(0,e,"",[]).toString(16),8)}vm.exports=u3});var ay=de((Nv,Iy)=>{var p3="Expected a function",ey="__lodash_hash_undefined__",ty=1/0,E3="[object Function]",m3="[object GeneratorFunction]",y3="[object Symbol]",w3=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,F3=/^\w*$/,D3=/^\./,k3=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,S3=/[\\^$.*+?()[\]{}|]/g,U3=/\\(\\)?/g,N3=/^\[object .+?Constructor\]$/,x3=typeof global=="object"&&global&&global.Object===Object&&global,G3=typeof self=="object"&&self&&self.Object===Object&&self,uB=x3||G3||Function("return this")();function H3(e,t){return e?.[t]}function M3(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var v3=Array.prototype,J3=Function.prototype,Ay=Object.prototype,lB=uB["__core-js_shared__"],Zm=function(){var e=/[^.]+$/.exec(lB&&lB.keys&&lB.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),iy=J3.toString,BB=Ay.hasOwnProperty,ny=Ay.toString,q3=RegExp("^"+iy.call(BB).replace(S3,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wm=uB.Symbol,R3=v3.splice,K3=ry(uB,"Map"),Is=ry(Object,"create"),jm=Wm?Wm.prototype:void 0,$m=jm?jm.toString:void 0;function Bn(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 L3(){this.__data__=Is?Is(null):{}}function b3(e){return this.has(e)&&delete this.__data__[e]}function O3(e){var t=this.__data__;if(Is){var A=t[e];return A===ey?void 0:A}return BB.call(t,e)?t[e]:void 0}function Y3(e){var t=this.__data__;return Is?t[e]!==void 0:BB.call(t,e)}function V3(e,t){var A=this.__data__;return A[e]=Is&&t===void 0?ey:t,this}Bn.prototype.clear=L3;Bn.prototype.delete=b3;Bn.prototype.get=O3;Bn.prototype.has=Y3;Bn.prototype.set=V3;function Er(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 z3(){this.__data__=[]}function P3(e){var t=this.__data__,A=Xa(t,e);if(A<0)return!1;var i=t.length-1;return A==i?t.pop():R3.call(t,A,1),!0}function _3(e){var t=this.__data__,A=Xa(t,e);return A<0?void 0:t[A][1]}function T3(e){return Xa(this.__data__,e)>-1}function X3(e,t){var A=this.__data__,i=Xa(A,e);return i<0?A.push([e,t]):A[i][1]=t,this}Er.prototype.clear=z3;Er.prototype.delete=P3;Er.prototype.get=_3;Er.prototype.has=T3;Er.prototype.set=X3;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 Z3(){this.__data__={hash:new Bn,map:new(K3||Er),string:new Bn}}function W3(e){return Za(this,e).delete(e)}function j3(e){return Za(this,e).get(e)}function $3(e){return Za(this,e).has(e)}function eN(e,t){return Za(this,e).set(e,t),this}fn.prototype.clear=Z3;fn.prototype.delete=W3;fn.prototype.get=j3;fn.prototype.has=$3;fn.prototype.set=eN;function Xa(e,t){for(var A=e.length;A--;)if(gN(e[A][0],t))return A;return-1}function tN(e,t){t=rN(t,e)?[t]:nN(t);for(var A=0,i=t.length;e!=null&&A<i;)e=e[aN(t[A++])];return A&&A==i?e:void 0}function AN(e){if(!sy(e)||sN(e))return!1;var t=lN(e)||M3(e)?q3:N3;return t.test(cN(e))}function iN(e){if(typeof e=="string")return e;if(dB(e))return $m?$m.call(e):"";var t=e+"";return t=="0"&&1/e==-ty?"-0":t}function nN(e){return oy(e)?e:IN(e)}function Za(e,t){var A=e.__data__;return oN(t)?A[typeof t=="string"?"string":"hash"]:A.map}function ry(e,t){var A=H3(e,t);return AN(A)?A:void 0}function rN(e,t){if(oy(e))return!1;var A=typeof e;return A=="number"||A=="symbol"||A=="boolean"||e==null||dB(e)?!0:F3.test(e)||!w3.test(e)||t!=null&&e in Object(t)}function oN(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sN(e){return!!Zm&&Zm in e}var IN=fB(function(e){e=BN(e);var t=[];return D3.test(e)&&t.push(""),e.replace(k3,function(A,i,n,r){t.push(n?r.replace(U3,"$1"):i||A)}),t});function aN(e){if(typeof e=="string"||dB(e))return e;var t=e+"";return t=="0"&&1/e==-ty?"-0":t}function cN(e){if(e!=null){try{return iy.call(e)}catch{}try{return e+""}catch{}}return""}function fB(e,t){if(typeof e!="function"||t&&typeof t!="function")throw new TypeError(p3);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(fB.Cache||fn),A}fB.Cache=fn;function gN(e,t){return e===t||e!==e&&t!==t}var oy=Array.isArray;function lN(e){var t=sy(e)?ny.call(e):"";return t==E3||t==m3}function sy(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uN(e){return!!e&&typeof e=="object"}function dB(e){return typeof e=="symbol"||uN(e)&&ny.call(e)==y3}function BN(e){return e==null?"":iN(e)}function fN(e,t,A){var i=e==null?void 0:tN(e,t);return i===void 0?A:i}Iy.exports=fN});var My=de((gs,ic)=>{(function(e,t){"use strict";var A="1.0.37",i="",n="?",r="function",o="undefined",s="object",I="string",a="major",c="model",u="name",l="type",g="vendor",B="version",p="architecture",U="console",d="mobile",f="tablet",Q="smarttv",y="wearable",F="embedded",w=500,D="Amazon",S="Apple",K="ASUS",q="BlackBerry",X="Browser",Ue="Chrome",ct="Edge",m="Firefox",J="Google",H="Huawei",k="LG",x="Microsoft",z="Motorola",L="Opera",b="Samsung",re="Sharp",Ae="Sony",Te="Xiaomi",Yt="Zebra",Vt="Facebook",DB="Chromium OS",kB="Mac OS",Oy=function($,oe){var P={};for(var ce in $)oe[ce]&&oe[ce].length%2===0?P[ce]=oe[ce].concat($[ce]):P[ce]=$[ce];return P},ls=function($){for(var oe={},P=0;P<$.length;P++)oe[$[P].toUpperCase()]=$[P];return oe},SB=function($,oe){return typeof $===I?Fr(oe).indexOf(Fr($))!==-1:!1},Fr=function($){return $.toLowerCase()},Yy=function($){return typeof $===I?$.replace(/[^\d\.]/g,i).split(".")[0]:t},rc=function($,oe){if(typeof $===I)return $=$.replace(/^\s\s*/,i),typeof oe===o?$:$.substring(0,w)},Dr=function($,oe){for(var P=0,ce,TA,rA,ne,V,oA;P<oe.length&&!V;){var sc=oe[P],xB=oe[P+1];for(ce=TA=0;ce<sc.length&&!V&&sc[ce];)if(V=sc[ce++].exec($),V)for(rA=0;rA<xB.length;rA++)oA=V[++TA],ne=xB[rA],typeof ne===s&&ne.length>0?ne.length===2?typeof ne[1]==r?this[ne[0]]=ne[1].call(this,oA):this[ne[0]]=ne[1]:ne.length===3?typeof ne[1]===r&&!(ne[1].exec&&ne[1].test)?this[ne[0]]=oA?ne[1].call(this,oA,ne[2]):t:this[ne[0]]=oA?oA.replace(ne[1],ne[2]):t:ne.length===4&&(this[ne[0]]=oA?ne[3].call(this,oA.replace(ne[1],ne[2])):t):this[ne]=oA||t;P+=2}},oc=function($,oe){for(var P in oe)if(typeof oe[P]===s&&oe[P].length>0){for(var ce=0;ce<oe[P].length;ce++)if(SB(oe[P][ce],$))return P===n?t:P}else if(SB(oe[P],$))return P===n?t:P;return $},Vy={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},UB={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"},NB={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[B,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[B,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,B],[/opios[\/ ]+([\w\.]+)/i],[B,[u,L+" Mini"]],[/\bopr\/([\w\.]+)/i],[B,[u,L]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[B,[u,"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],[u,B],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[B,[u,"UC"+X]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[B,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[B,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[B,[u,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[B,[u,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[B,[u,"Smart Lenovo "+X]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+X],B],[/\bfocus\/([\w\.]+)/i],[B,[u,m+" Focus"]],[/\bopt\/([\w\.]+)/i],[B,[u,L+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[B,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[B,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[B,[u,L+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[B,[u,"MIUI "+X]],[/fxios\/([-\w\.]+)/i],[B,[u,m]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+X]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+X],B],[/samsungbrowser\/([\w\.]+)/i],[B,[u,b+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],B],[/metasr[\/ ]?([\d\.]+)/i],[B,[u,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[u,"Sogou Mobile"],B],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[u,B],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,Vt],B],[/(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],[u,B],[/\bgsa\/([\w\.]+) .*safari\//i],[B,[u,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[B,[u,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[B,[u,Ue+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,Ue+" WebView"],B],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[B,[u,"Android "+X]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,B],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[B,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[B,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[B,oc,Vy]],[/(webkit|khtml)\/([\w\.]+)/i],[u,B],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],B],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[B,[u,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],[u,B],[/(cobalt)\/([\w\.]+)/i],[u,[B,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,Fr]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,i,Fr]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,Fr]]],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],[c,[g,b],[l,f]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[g,b],[l,d]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[g,S],[l,d]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[g,S],[l,f]],[/(macintosh);/i],[c,[g,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[g,re],[l,d]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[g,H],[l,f]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[g,H],[l,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],[[c,/_/g," "],[g,Te],[l,d]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[g,Te],[l,f]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[g,"OPPO"],[l,d]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[g,"Vivo"],[l,d]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[g,"Realme"],[l,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],[c,[g,z],[l,d]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[g,z],[l,f]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[g,k],[l,f]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[g,k],[l,d]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[g,"Lenovo"],[l,f]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[g,"Nokia"],[l,d]],[/(pixel c)\b/i],[c,[g,J],[l,f]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[g,J],[l,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],[c,[g,Ae],[l,d]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[g,Ae],[l,f]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[g,"OnePlus"],[l,d]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[g,D],[l,f]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[g,D],[l,d]],[/(playbook);[-\w\),; ]+(rim)/i],[c,g,[l,f]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[g,q],[l,d]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[g,K],[l,f]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[g,K],[l,d]],[/(nexus 9)/i],[c,[g,"HTC"],[l,f]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[c,/_/g," "],[l,d]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[g,"Acer"],[l,f]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[g,"Meizu"],[l,d]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[g,"Ulefone"],[l,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],[g,c,[l,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],[g,c,[l,f]],[/(surface duo)/i],[c,[g,x],[l,f]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[g,"Fairphone"],[l,d]],[/(u304aa)/i],[c,[g,"AT&T"],[l,d]],[/\bsie-(\w*)/i],[c,[g,"Siemens"],[l,d]],[/\b(rct\w+) b/i],[c,[g,"RCA"],[l,f]],[/\b(venue[\d ]{2,7}) b/i],[c,[g,"Dell"],[l,f]],[/\b(q(?:mv|ta)\w+) b/i],[c,[g,"Verizon"],[l,f]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[g,"Barnes & Noble"],[l,f]],[/\b(tm\d{3}\w+) b/i],[c,[g,"NuVision"],[l,f]],[/\b(k88) b/i],[c,[g,"ZTE"],[l,f]],[/\b(nx\d{3}j) b/i],[c,[g,"ZTE"],[l,d]],[/\b(gen\d{3}) b.+49h/i],[c,[g,"Swiss"],[l,d]],[/\b(zur\d{3}) b/i],[c,[g,"Swiss"],[l,f]],[/\b((zeki)?tb.*\b) b/i],[c,[g,"Zeki"],[l,f]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],c,[l,f]],[/\b(ns-?\w{0,9}) b/i],[c,[g,"Insignia"],[l,f]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[g,"NextBook"],[l,f]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],c,[l,d]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],c,[l,d]],[/\b(ph-1) /i],[c,[g,"Essential"],[l,d]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[g,"Envizen"],[l,f]],[/\b(trio[-\w\. ]+) b/i],[c,[g,"MachSpeed"],[l,f]],[/\btu_(1491) b/i],[c,[g,"Rotor"],[l,f]],[/(shield[\w ]+) b/i],[c,[g,"Nvidia"],[l,f]],[/(sprint) (\w+)/i],[g,c,[l,d]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[g,x],[l,d]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[g,Yt],[l,f]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[g,Yt],[l,d]],[/smart-tv.+(samsung)/i],[g,[l,Q]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[g,b],[l,Q]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,k],[l,Q]],[/(apple) ?tv/i],[g,[c,S+" TV"],[l,Q]],[/crkey/i],[[c,Ue+"cast"],[g,J],[l,Q]],[/droid.+aft(\w+)( bui|\))/i],[c,[g,D],[l,Q]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[g,re],[l,Q]],[/(bravia[\w ]+)( bui|\))/i],[c,[g,Ae],[l,Q]],[/(mitv-\w{5}) bui/i],[c,[g,Te],[l,Q]],[/Hbbtv.*(technisat) (.*);/i],[g,c,[l,Q]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,rc],[c,rc],[l,Q]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,Q]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,c,[l,U]],[/droid.+; (shield) bui/i],[c,[g,"Nvidia"],[l,U]],[/(playstation [345portablevi]+)/i],[c,[g,Ae],[l,U]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[g,x],[l,U]],[/((pebble))app/i],[g,c,[l,y]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[g,S],[l,y]],[/droid.+; (glass) \d/i],[c,[g,J],[l,y]],[/droid.+; (wt63?0{2,3})\)/i],[c,[g,Yt],[l,y]],[/(quest( 2| pro)?)/i],[c,[g,Vt],[l,y]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[l,F]],[/(aeobc)\b/i],[c,[g,D],[l,F]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[l,d]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,f]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,f]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,d]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[B,[u,ct+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[B,[u,"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],[u,B],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[B,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,B],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[u,[B,oc,UB]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[B,oc,UB],[u,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[B,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,kB],[B,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[B,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,B],[/\(bb(10);/i],[B,[u,q]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[B,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[B,[u,m+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[B,[u,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[B,[u,"watchOS"]],[/crkey\/([\d\.]+)/i],[B,[u,Ue+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[u,DB],B],[/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],[u,B],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],B],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[u,B]]},yt=function($,oe){if(typeof $===s&&(oe=$,$=t),!(this instanceof yt))return new yt($,oe).getResult();var P=typeof e!==o&&e.navigator?e.navigator:t,ce=$||(P&&P.userAgent?P.userAgent:i),TA=P&&P.userAgentData?P.userAgentData:t,rA=oe?Oy(NB,oe):NB,ne=P&&P.userAgent==ce;return this.getBrowser=function(){var V={};return V[u]=t,V[B]=t,Dr.call(V,ce,rA.browser),V[a]=Yy(V[B]),ne&&P&&P.brave&&typeof P.brave.isBrave==r&&(V[u]="Brave"),V},this.getCPU=function(){var V={};return V[p]=t,Dr.call(V,ce,rA.cpu),V},this.getDevice=function(){var V={};return V[g]=t,V[c]=t,V[l]=t,Dr.call(V,ce,rA.device),ne&&!V[l]&&TA&&TA.mobile&&(V[l]=d),ne&&V[c]=="Macintosh"&&P&&typeof P.standalone!==o&&P.maxTouchPoints&&P.maxTouchPoints>2&&(V[c]="iPad",V[l]=f),V},this.getEngine=function(){var V={};return V[u]=t,V[B]=t,Dr.call(V,ce,rA.engine),V},this.getOS=function(){var V={};return V[u]=t,V[B]=t,Dr.call(V,ce,rA.os),ne&&!V[u]&&TA&&TA.platform!="Unknown"&&(V[u]=TA.platform.replace(/chrome os/i,DB).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 ce},this.setUA=function(V){return ce=typeof V===I&&V.length>w?rc(V,w):V,this},this.setUA(ce),this};yt.VERSION=A,yt.BROWSER=ls([u,B,a]),yt.CPU=ls([p]),yt.DEVICE=ls([c,g,l,U,d,Q,f,y,F]),yt.ENGINE=yt.OS=ls([u,B]),typeof gs!==o?(typeof ic!==o&&ic.exports&&(gs=ic.exports=yt),gs.UAParser=yt):typeof define===r&&define.amd?define(function(){return yt}):typeof e!==o&&(e.UAParser=yt);var Cn=typeof e!==o&&(e.jQuery||e.Zepto);if(Cn&&!Cn.ua){var us=new yt;Cn.ua=us.getResult(),Cn.ua.get=function(){return us.getUA()},Cn.ua.set=function($){us.setUA($);var oe=us.getResult();for(var P in oe)Cn.ua[P]=oe[P]}}})(typeof window=="object"?window:gs)});var Ly=R(uC());var Xn=R(Ye()),Zn=(e,t,A)=>{let[,i]=(0,Xn.useState)({}),r=(0,Xn.useRef)({data:e,deps:A||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,Xn.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 I=s;typeof I=="object"&&I instanceof Promise&&(r._loading[o]=!0,r.promisedKeys.add(o),r.data[o]=null,I.then(a=>{r.data[o]=a,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 BC=(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 uF=R(Ye());var Ih=R(sh()),RA=R(Ye()),Jl=(0,RA.createContext)({global:{},render:()=>{}});var Ci=(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,Ih.createId)()),n=i.globalValueID.get(e)||""),n||(n="GLOBAL_DEFAULT");let r=(0,RA.useContext)(Jl),{global:o,render:s}=r;o[n]||(o[n]=e),(0,RA.useEffect)(()=>{let a=null;if(typeof t=="function")try{a=t()}catch(c){console.log(c)}return()=>{typeof a=="function"?a():a instanceof Promise&&a.then(c=>{typeof c=="function"&&c()})}},[]);let I=o[n];return I?I.render=a=>{a&&(o[n]=void 0),(0,RA.startTransition)(s)}:console.log(e,n),I},uA=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=>uA(n));var A={};for(var i in e)typeof e[i]=="object"?A[i]=uA(e[i]):A[i]=e[i];return A};var ex=R(Ye());var Rl=R(Ye()),fh=R(Dl()),dh=R(gh()),Qh=R(Ie()),Ch=()=>{let e=typeof window=="object"?window:globalThis;e.React=Rl.default,e.ReactDOM=fh.default,e.JSXRuntime=Qh.default,e.JSXDevRuntime=dh.default,e.Fragment=Rl.default.Fragment};var AD={data:""},ph=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||AD,Eh=e=>{let t=ph(e),A=t.data;return t.data="",A},iD=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,nD=/\/\*[^]*?\*\/| +/g,hh=/\n+/g,zi=(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"?zi(o,r):r+"{"+zi(o,r[1]=="k"?"":t)+"}":typeof o=="object"?i+=zi(o,t?t.replace(/([^,])+/g,s=>r.replace(/(^:.*)|([^,])+/g,I=>/&/.test(I)?I.replace(/&/g,s):s?s+" "+I:I)):r):o!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=zi.p?zi.p(r,o):r+":"+o+";")}return A+(t&&n?t+"{"+n+"}":n)+i},KA={},mh=e=>{if(typeof e=="object"){let t="";for(let A in e)t+=A+mh(e[A]);return t}return e},rD=(e,t,A,i,n)=>{let r=mh(e),o=KA[r]||(KA[r]=(I=>{let a=0,c=11;for(;a<I.length;)c=101*c+I.charCodeAt(a++)>>>0;return"go"+c})(r));if(!KA[o]){let I=r!==e?e:(a=>{let c,u,l=[{}];for(;c=iD.exec(a.replace(nD,""));)c[4]?l.shift():c[3]?(u=c[3].replace(hh," ").trim(),l.unshift(l[0][u]=l[0][u]||{})):l[0][c[1]]=c[2].replace(hh," ").trim();return l[0]})(e);KA[o]=zi(n?{["@keyframes "+o]:I}:I,A?"":"."+o)}let s=A&&KA.g?KA.g:null;return A&&(KA.g=KA[o]),((I,a,c,u)=>{u?a.data=a.data.replace(u,I):a.data.indexOf(I)===-1&&(a.data=c?I+a.data:a.data+I)})(KA[o],t,i,s),o},oD=(e,t,A)=>e.reduce((i,n,r)=>{let o=t[r];if(o&&o.call){let s=o(A),I=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=I?"."+I:s&&typeof s=="object"?s.props?"":zi(s,""):s===!1?"":s}return i+n+(o??"")},"");function bI(e){let t=this||{},A=e.call?e(t.p):e;return rD(A.unshift?A.raw?oD(A,[].slice.call(arguments,1),t.p):A.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):A,ph(t.target),t.g,t.o,t.k)}var TN=bI.bind({g:1}),XN=bI.bind({k:1});var yh=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await BC(()=>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=bI,t.extractCss=Eh,t.pathname=A.pathname,t.cx=(...o)=>{let s=[];return o.filter(I=>I?(typeof I=="string"&&I.trim(),!0):!1).forEach(I=>{if(Array.isArray(I))for(let a of I)typeof a=="string"&&a.trim()&&s.push(a.trim());else s.push(I.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 Ry=R(Ye());var Do=R(Ie()),Kl=({children:e,back:t})=>(0,Do.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Do.jsx)("div",{children:e}),(0,Do.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Fh=R(Ye());var et=R(Ie()),wh=window,Pi=({children:e,className:t,show:A,backdrop:i,note:n,alt:r})=>{let o=Zn({icon:(0,et.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Fh.useEffect)(()=>(o.ival=setInterval(()=>{o.value+=.1333,o.value>=1.3&&(o.value=0),o.render()},200),wh.loadingIcon&&(o.icon=(0,et.jsx)("img",{alt:"loading",src:wh.loadingIcon,className:css`
|
|
width: 42px;
|
|
height: 42px;
|
|
`}),o.render()),()=>{clearInterval(o.ival)}),[]),(0,et.jsxs)(et.Fragment,{children:[i!==!1&&(0,et.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,et.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,et.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,et.jsx)("div",{className:"text-sm",children:e})})}):(0,et.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,et.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,et.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:n}),(0,et.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,et.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css`
|
|
transform: translate(${-100+o.value*200}%);
|
|
`)})}),r]})})]})};var st=null;var bl=class extends Error{constructor(t){super(t),this.name="DecompressionError"}},_i=0,Ll=null,OI=null;function Dh(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 _i=r,i}if(typeof t=="string"){let r=_i=function(s){let I=0,a=0,c=0,u=s.length;for(;I<u;)a=s.codePointAt(I),a<=127?(c+=1,I++):a<=2047?(c+=2,I++):a<=65535?(c+=3,I++):(c+=4,I+=2);return c}(t);i=e.malloc_u8(r);let o=new Uint8Array(e.memory.buffer,i,r);return Ll||(Ll=new TextEncoder),Ll.encodeInto(t,o),i}let n=t;return i=e.malloc_u8(_i=n.length),OI&&OI.length||(OI=new Uint8Array(e.memory.buffer)),OI.set(n,i),i}function $t(e,t){kh(st);let A=Dh(st,e,t),i=st.gzip_compress(A,_i)>>>0;st.free_u8(A,_i);let n=st.buffer()>>>0;return new Uint8Array(st.memory.buffer,n,i)}function dt(e,t){kh(st);let A=Dh(st,e,t),i=st.gzip_decompress(A,_i)>>>0;if(st.free_u8(A,_i),i===4294967295){let r=st.error_message(),o=st.error_message_len(),s=new Uint8Array(st.memory.buffer,r,o),I=new TextDecoder().decode(s);throw new bl(I)}let n=st.buffer()>>>0;return new Uint8Array(st.memory.buffer,n,i)}function kh(e){if(!e)throw new Error("WASM not initialized")}var It=()=>new Map,YI=e=>{let t=It();return e.forEach((A,i)=>{t.set(i,A)}),t},BA=(e,t,A)=>{let i=e.get(t);return i===void 0&&e.set(t,i=A()),i},Sh=(e,t)=>{let A=[];for(let[i,n]of e)A.push(t(n,i));return A},Uh=(e,t)=>{for(let[A,i]of e)if(t(i,A))return!0;return!1};var LA=()=>new Set;var VI=e=>e[e.length-1];var Nh=(e,t)=>{for(let A=0;A<t.length;A++)e.push(t[A])},fA=Array.from;var Yl=Array.isArray;var zI=class{constructor(){this._observers=It()}on(t,A){BA(this._observers,t,LA).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 fA((this._observers.get(t)||It()).values()).forEach(i=>i(...A))}destroy(){this._observers=It()}};var Rt=Math.floor;var jn=Math.abs;var PI=(e,t)=>e<t?e:t,bA=(e,t)=>e>t?e:t,hx=Number.isNaN;var _I=e=>e!==0?e<0:1/e<0;var zl=Number.MAX_SAFE_INTEGER,px=Number.MIN_SAFE_INTEGER,Ex=1<<31;var xh=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Rt(e)===e),mx=Number.isNaN,yx=Number.parseInt;var sD=String.fromCharCode,wx=String.fromCodePoint,Fx=sD(65535),ID=e=>e.toLowerCase(),aD=/^\s*/g,cD=e=>e.replace(aD,""),gD=/([A-Z])/g,Pl=(e,t)=>cD(e.replace(gD,A=>`${t}${ID(A)}`));var lD=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},er=typeof TextEncoder<"u"?new TextEncoder:null,uD=e=>er.encode(e),Hh=er?uD:lD;var $n=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});$n&&$n.decode(new Uint8Array).length===1&&($n=null);var Ti=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},Uo=()=>new Ti;var BD=e=>{let t=e.cpos;for(let A=0;A<e.bufs.length;A++)t+=e.bufs[A].length;return t};var eA=e=>{let t=new Uint8Array(BD(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},fD=(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(bA(A,t)*2),e.cpos=0)},Re=(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 ZI=Re;var Z=(e,t)=>{for(;t>127;)Re(e,128|127&t),t=Rt(t/128);Re(e,127&t)},WI=(e,t)=>{let A=_I(t);for(A&&(t=-t),Re(e,(t>63?128:0)|(A?64:0)|63&t),t=Rt(t/64);t>0;)Re(e,(t>127?128:0)|127&t),t=Rt(t/128)},Tl=new Uint8Array(3e4),dD=Tl.length/3,QD=(e,t)=>{if(t.length<dD){let A=er.encodeInto(t,Tl).written||0;Z(e,A);for(let i=0;i<A;i++)Re(e,Tl[i])}else Qt(e,Hh(t))},CD=(e,t)=>{let A=unescape(encodeURIComponent(t)),i=A.length;Z(e,i);for(let n=0;n<i;n++)Re(e,A.codePointAt(n))},Xi=er&&er.encodeInto?QD:CD;var No=(e,t)=>{let A=e.cbuf.length,i=e.cpos,n=PI(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(bA(A*2,r)),e.cbuf.set(t.subarray(n)),e.cpos=r)},Qt=(e,t)=>{Z(e,t.byteLength),No(e,t)},Xl=(e,t)=>{fD(e,t);let A=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,A},hD=(e,t)=>Xl(e,4).setFloat32(0,t,!1),pD=(e,t)=>Xl(e,8).setFloat64(0,t,!1),ED=(e,t)=>Xl(e,8).setBigInt64(0,t,!1);var vh=new DataView(new ArrayBuffer(4)),mD=e=>(vh.setFloat32(0,e),vh.getFloat32(0)===e),Ar=(e,t)=>{switch(typeof t){case"string":Re(e,119),Xi(e,t);break;case"number":xh(t)&&jn(t)<=2147483647?(Re(e,125),WI(e,t)):mD(t)?(Re(e,124),hD(e,t)):(Re(e,123),pD(e,t));break;case"bigint":Re(e,122),ED(e,t);break;case"object":if(t===null)Re(e,126);else if(Yl(t)){Re(e,117),Z(e,t.length);for(let A=0;A<t.length;A++)Ar(e,t[A])}else if(t instanceof Uint8Array)Re(e,116),Qt(e,t);else{Re(e,118);let A=Object.keys(t);Z(e,A.length);for(let i=0;i<A.length;i++){let n=A[i];Xi(e,n),Ar(e,t[n])}}break;case"boolean":Re(e,t?120:121);break;default:Re(e,127)}},So=class extends Ti{constructor(t){super(),this.w=t,this.s=null,this.count=0}write(t){this.s===t?this.count++:(this.count>0&&Z(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}};var Jh=e=>{e.count>0&&(WI(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Z(e.encoder,e.count-2))},Zi=class{constructor(){this.encoder=new Ti,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Jh(this),this.count=1,this.s=t)}toUint8Array(){return Jh(this),eA(this.encoder)}};var qh=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);WI(e.encoder,t),e.count>1&&Z(e.encoder,e.count-2)}},ir=class{constructor(){this.encoder=new Ti,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(qh(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return qh(this),eA(this.encoder)}},XI=class{constructor(){this.sarr=[],this.s="",this.lensE=new Zi}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 Ti;return this.sarr.push(this.s),this.s="",Xi(t,this.sarr.join("")),No(t,this.lensE.toUint8Array()),eA(t)}};var dA=e=>new Error(e),tA=()=>{throw dA("Method unimplemented")},AA=()=>{throw dA("Unexpected case")};var Kh=dA("Unexpected end of array"),Lh=dA("Integer out of Range"),nr=class{constructor(t){this.arr=t,this.pos=0}},en=e=>new nr(e),bh=e=>e.pos!==e.arr.length;var wD=(e,t)=>{let A=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,A},Ct=e=>wD(e,T(e));var Wi=e=>e.arr[e.pos++];var T=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>zl)throw Lh}throw Kh},$I=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>zl)throw Lh}throw Kh};var FD=e=>{let t=T(e);if(t===0)return"";{let A=String.fromCodePoint(Wi(e));if(--t<100)for(;t--;)A+=String.fromCodePoint(Wi(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))}},DD=e=>$n.decode(Ct(e)),ji=$n?DD:FD;var Zl=(e,t)=>{let A=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,A},kD=e=>Zl(e,4).getFloat32(0,!1),SD=e=>Zl(e,8).getFloat64(0,!1),UD=e=>Zl(e,8).getBigInt64(0,!1);var ND=[e=>{},e=>null,$I,kD,SD,UD,e=>!1,e=>!0,ji,e=>{let t=T(e),A={};for(let i=0;i<t;i++){let n=ji(e);A[n]=rr(e)}return A},e=>{let t=T(e),A=[];for(let i=0;i<t;i++)A.push(rr(e));return A},Ct],rr=e=>ND[127-Wi(e)](e),xo=class extends nr{constructor(t,A){super(t),this.reader=A,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),bh(this)?this.count=T(this)+1:this.count=-1),this.count--,this.s}};var $i=class extends nr{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=$I(this);let t=_I(this.s);this.count=1,t&&(this.s=-this.s,this.count=T(this)+2)}return this.count--,this.s}};var or=class extends nr{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let t=$I(this),A=t&1;this.diff=Rt(t/2),this.count=1,A&&(this.count=T(this)+2)}return this.s+=this.diff,this.count--,this.s}},jI=class{constructor(t){this.decoder=new $i(t),this.str=ji(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 Sx=crypto.subtle,Oh=crypto.getRandomValues.bind(crypto);var Wl=()=>Oh(new Uint32Array(1))[0];var GD="10000000-1000-4000-8000"+-1e11,Yh=()=>GD.replace(/[018]/g,e=>(e^Wl()&15>>e/4).toString(16));var Vh=Date.now;var jl=e=>new Promise(e);var xx=Promise.all.bind(Promise);var $l=e=>e===void 0?null:e;var eu=class{constructor(){this.map=new Map}setItem(t,A){this.map.set(t,A)}getItem(t){return this.map.get(t)}},zh=new eu,qD=!0;try{typeof localStorage<"u"&&localStorage&&(zh=localStorage,qD=!1)}catch{}var Ph=zh;var Th=Object.assign,KD=Object.keys,Xh=(e,t)=>{for(let A in e)t(e[A],A)};var _h=e=>KD(e).length;var Zh=e=>{for(let t in e)return!1;return!0},LD=(e,t)=>{for(let A in e)if(!t(e[A],A))return!1;return!0},bD=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Wh=(e,t)=>e===t||_h(e)===_h(t)&&LD(e,(A,i)=>(A!==void 0||bD(t,i))&&t[i]===A);var Go=(e,t,A=0)=>{try{for(;A<e.length;A++)e[A](...t)}finally{A<e.length&&Go(e,t,A+1)}};var jh=e=>e;var $h=(e,t)=>t.includes(e);var Ho=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var Gx=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,QA,YD=[],VD=()=>{if(QA===void 0)if(Ho){QA=It();let e=process.argv,t=null;for(let A=0;A<e.length;A++){let i=e[A];i[0]==="-"?(t!==null&&QA.set(t,""),t=i):t!==null?(QA.set(t,i),t=null):YD.push(i)}t!==null&&QA.set(t,"")}else typeof location=="object"?(QA=It(),(location.search||"?").slice(1).split("&").forEach(e=>{if(e.length!==0){let[t,A]=e.split("=");QA.set(`--${Pl(t,"-")}`,A),QA.set(`-${Pl(t,"-")}`,A)}})):QA=It();return QA},tu=e=>VD().has(e);var Au=e=>Ho?$l(process.env[e.toUpperCase()]):$l(Ph.getItem(e));var zD=e=>tu("--"+e)||Au(e)!==null,Hx=zD("production"),tp=Ho&&$h(process.env.FORCE_COLOR,["true","1","2"]),Ap=!tu("no-colors")&&(!Ho||process.stdout.isTTY||tp)&&(!Ho||tu("color")||tp||Au("COLORTERM")!==null||(Au("TERM")||"").includes("color"));var _D=e=>new Uint8Array(e);var ip=e=>{let t=_D(e.byteLength);return t.set(e),t};var iu=class{constructor(t,A){this.left=t,this.right=A}},CA=(e,t)=>new iu(e,t);var tn=typeof document<"u"?document:{};var Mx=typeof DOMParser<"u"?new DOMParser:null;var np=e=>Sh(e,(t,A)=>`${A}:${t};`).join("");var vx=tn.ELEMENT_NODE,Jx=tn.TEXT_NODE,qx=tn.CDATA_SECTION_NODE,Rx=tn.COMMENT_NODE,Kx=tn.DOCUMENT_NODE,Lx=tn.DOCUMENT_TYPE_NODE,bx=tn.DOCUMENT_FRAGMENT_NODE;var hA=Symbol;var Mo=hA(),vo=hA(),nu=hA(),ru=hA(),ou=hA(),Jo=hA(),su=hA(),qo=hA(),Iu=hA(),rp=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 Ox=Vh();var $D={[Mo]:CA("font-weight","bold"),[vo]:CA("font-weight","normal"),[nu]:CA("color","blue"),[ou]:CA("color","green"),[ru]:CA("color","grey"),[Jo]:CA("color","red"),[su]:CA("color","purple"),[qo]:CA("color","orange"),[Iu]:CA("color","black")},ek=e=>{let t=[],A=[],i=It(),n=[],r=0;for(;r<e.length;r++){let o=e[r],s=$D[o];if(s!==void 0)i.set(s.left,s.right);else if(o.constructor===String||o.constructor===Number){let I=np(i);r>0||I.length>0?(t.push("%c"+o),A.push(I)):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},tk=Ap?ek:rp,op=(...e)=>{console.log(...tk(e)),Ak.forEach(t=>t.print(e))};var Ak=LA();var sp=e=>({[Symbol.iterator](){return this},next:e}),Ip=(e,t)=>sp(()=>{let A;do A=e.next();while(!A.done&&!t(A.value));return A}),ea=(e,t)=>sp(()=>{let{done:A,value:i}=e.next();return{done:A,value:A?void 0:t(i)}});var Ko=class{constructor(t,A){this.clock=t,this.len=A}},An=class{constructor(){this.clients=new Map}},mp=(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];Mp(e,r,s.clock,s.len,A)}}),sk=(e,t)=>{let A=0,i=e.length-1;for(;A<=i;){let n=Rt((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},yp=(e,t)=>{let A=e.clients.get(t.client);return A!==void 0&&sk(A,t.clock)!==null},Du=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=bA(n.len,r.clock+r.len-n.clock):(i<A&&(t[i]=r),i++)}t.length=i})},Ik=e=>{let t=new An;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++)Nh(r,e[o].clients.get(n)||[]);t.clients.set(n,r)}});return Du(t),t},oa=(e,t,A,i)=>{BA(e.clients,t,()=>[]).push(new Ko(A,i))},wp=()=>new An,ak=e=>{let t=wp();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,I=o.length;if(r+1<A.length)for(let a=A[r+1];r+1<A.length&&a.deleted;a=A[++r+1])I+=a.length;n.push(new Ko(s,I))}}n.length>0&&t.clients.set(i,n)}),t},gr=(e,t)=>{Z(e.restEncoder,t.clients.size),fA(t.clients.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{e.resetDsCurVal(),Z(e.restEncoder,A);let n=i.length;Z(e.restEncoder,n);for(let r=0;r<n;r++){let o=i[r];e.writeDsClock(o.clock),e.writeDsLen(o.len)}})},ku=e=>{let t=new An,A=T(e.restDecoder);for(let i=0;i<A;i++){e.resetDsCurVal();let n=T(e.restDecoder),r=T(e.restDecoder);if(r>0){let o=BA(t.clients,n,()=>[]);for(let s=0;s<r;s++)o.push(new Ko(e.readDsClock(),e.readDsLen()))}}return t},gp=(e,t,A)=>{let i=new An,n=T(e.restDecoder);for(let r=0;r<n;r++){e.resetDsCurVal();let o=T(e.restDecoder),s=T(e.restDecoder),I=A.clients.get(o)||[],a=Ke(A,o);for(let c=0;c<s;c++){let u=e.readDsClock(),l=u+e.readDsLen();if(u<a){a<l&&oa(i,o,a,l-a);let g=pA(I,u),B=I[g];for(!B.deleted&&B.id.clock<u&&(I.splice(g+1,0,Ca(t,B,u-B.id.clock)),g++);g<I.length&&(B=I[g++],B.id.clock<l);)B.deleted||(l<B.id.clock+B.length&&I.splice(g,0,Ca(t,B,l-B.id.clock)),B.delete(t))}else oa(i,o,u,l-u)}}if(i.clients.size>0){let r=new OA;return Z(r.restEncoder,0),gr(r,i),r.toUint8Array()}return null};var Fp=Wl,Lo=class e extends zI{constructor({guid:t=Yh(),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=Fp(),this.guid=t,this.collectionid=A,this.share=new Map,this.store=new ga,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=jl(a=>{this.on("load",()=>{this.isLoaded=!0,a(this)})});let I=()=>jl(a=>{let c=u=>{(u===void 0||u===!0)&&(this.off("sync",c),a())};this.on("sync",c)});this.on("sync",a=>{a===!1&&this.isSynced&&(this.whenSynced=I()),this.isSynced=a===void 0||a===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[])}),this.whenSynced=I()}load(){let t=this._item;t!==null&&!this.shouldLoad&&Be(t.parent.doc,A=>{A.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(fA(this.subdocs).map(t=>t.guid))}transact(t,A=null){return Be(this,t,A)}get(t,A=He){let i=BA(this.share,t,()=>{let r=new A;return r._integrate(this,null),r}),n=i.constructor;if(A!==He&&n!==A)if(n===He){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,fa)}getText(t=""){return this.get(t,_o)}getMap(t=""){return this.get(t,zo)}getXmlFragment(t=""){return this.get(t,ar)}toJSON(){let t={};return this.share.forEach((A,i)=>{t[i]=A.toJSON()}),t}destroy(){fA(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,Be(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)}},sa=class{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return T(this.restDecoder)}readDsLen(){return T(this.restDecoder)}},Ia=class extends sa{readLeftID(){return ee(T(this.restDecoder),T(this.restDecoder))}readRightID(){return ee(T(this.restDecoder),T(this.restDecoder))}readClient(){return T(this.restDecoder)}readInfo(){return Wi(this.restDecoder)}readString(){return ji(this.restDecoder)}readParentInfo(){return T(this.restDecoder)===1}readTypeRef(){return T(this.restDecoder)}readLen(){return T(this.restDecoder)}readAny(){return rr(this.restDecoder)}readBuf(){return ip(Ct(this.restDecoder))}readJSON(){return JSON.parse(ji(this.restDecoder))}readKey(){return ji(this.restDecoder)}},gu=class{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=T(this.restDecoder),this.dsCurrVal}readDsLen(){let t=T(this.restDecoder)+1;return this.dsCurrVal+=t,t}},yi=class extends gu{constructor(t){super(t),this.keys=[],T(t),this.keyClockDecoder=new or(Ct(t)),this.clientDecoder=new $i(Ct(t)),this.leftClockDecoder=new or(Ct(t)),this.rightClockDecoder=new or(Ct(t)),this.infoDecoder=new xo(Ct(t),Wi),this.stringDecoder=new jI(Ct(t)),this.parentInfoDecoder=new xo(Ct(t),Wi),this.typeRefDecoder=new $i(Ct(t)),this.lenDecoder=new $i(Ct(t))}readLeftID(){return new mi(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new mi(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 rr(this.restDecoder)}readBuf(){return Ct(this.restDecoder)}readJSON(){return rr(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}}},aa=class{constructor(){this.restEncoder=Uo()}toUint8Array(){return eA(this.restEncoder)}resetDsCurVal(){}writeDsClock(t){Z(this.restEncoder,t)}writeDsLen(t){Z(this.restEncoder,t)}},nn=class extends aa{writeLeftID(t){Z(this.restEncoder,t.client),Z(this.restEncoder,t.clock)}writeRightID(t){Z(this.restEncoder,t.client),Z(this.restEncoder,t.clock)}writeClient(t){Z(this.restEncoder,t)}writeInfo(t){ZI(this.restEncoder,t)}writeString(t){Xi(this.restEncoder,t)}writeParentInfo(t){Z(this.restEncoder,t?1:0)}writeTypeRef(t){Z(this.restEncoder,t)}writeLen(t){Z(this.restEncoder,t)}writeAny(t){Ar(this.restEncoder,t)}writeBuf(t){Qt(this.restEncoder,t)}writeJSON(t){Xi(this.restEncoder,JSON.stringify(t))}writeKey(t){Xi(this.restEncoder,t)}},ca=class{constructor(){this.restEncoder=Uo(),this.dsCurrVal=0}toUint8Array(){return eA(this.restEncoder)}resetDsCurVal(){this.dsCurrVal=0}writeDsClock(t){let A=t-this.dsCurrVal;this.dsCurrVal=t,Z(this.restEncoder,A)}writeDsLen(t){t===0&&AA(),Z(this.restEncoder,t-1),this.dsCurrVal+=t}},OA=class extends ca{constructor(){super(),this.keyMap=new Map,this.keyClock=0,this.keyClockEncoder=new ir,this.clientEncoder=new Zi,this.leftClockEncoder=new ir,this.rightClockEncoder=new ir,this.infoEncoder=new So(ZI),this.stringEncoder=new XI,this.parentInfoEncoder=new So(ZI),this.typeRefEncoder=new Zi,this.lenEncoder=new Zi}toUint8Array(){let t=Uo();return Z(t,0),Qt(t,this.keyClockEncoder.toUint8Array()),Qt(t,this.clientEncoder.toUint8Array()),Qt(t,this.leftClockEncoder.toUint8Array()),Qt(t,this.rightClockEncoder.toUint8Array()),Qt(t,eA(this.infoEncoder)),Qt(t,this.stringEncoder.toUint8Array()),Qt(t,eA(this.parentInfoEncoder)),Qt(t,this.typeRefEncoder.toUint8Array()),Qt(t,this.lenEncoder.toUint8Array()),No(t,eA(this.restEncoder)),eA(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){Ar(this.restEncoder,t)}writeBuf(t){Qt(this.restEncoder,t)}writeJSON(t){Ar(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)}},ck=(e,t,A,i)=>{i=bA(i,t[0].id.clock);let n=pA(t,i);Z(e.restEncoder,t.length-n),e.writeClient(A),Z(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)},Su=(e,t,A)=>{let i=new Map;A.forEach((n,r)=>{Ke(t,r)>n&&i.set(r,n)}),ha(t).forEach((n,r)=>{A.has(r)||i.set(r,0)}),Z(e.restEncoder,i.size),fA(i.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{ck(e,t.clients.get(n),n,r)})},gk=(e,t)=>{let A=It(),i=T(e.restDecoder);for(let n=0;n<i;n++){let r=T(e.restDecoder),o=new Array(r),s=e.readClient(),I=T(e.restDecoder);A.set(s,{i:0,refs:o});for(let a=0;a<r;a++){let c=e.readInfo();switch(31&c){case 0:{let u=e.readLen();o[a]=new ht(ee(s,I),u),I+=u;break}case 10:{let u=T(e.restDecoder);o[a]=new pt(ee(s,I),u),I+=u;break}default:{let u=(c&192)===0,l=new Le(ee(s,I),null,(c&128)===128?e.readLeftID():null,null,(c&64)===64?e.readRightID():null,u?e.readParentInfo()?t.get(e.readString()):e.readLeftID():null,u&&(c&32)===32?e.readString():null,$p(e,c));o[a]=l,I+=l.length}}}}return A},lk=(e,t,A)=>{let i=[],n=fA(A.keys()).sort((g,B)=>g-B);if(n.length===0)return null;let r=()=>{if(n.length===0)return null;let g=A.get(n[n.length-1]);for(;g.refs.length===g.i;)if(n.pop(),n.length>0)g=A.get(n[n.length-1]);else return null;return g},o=r();if(o===null)return null;let s=new ga,I=new Map,a=(g,B)=>{let p=I.get(g);(p==null||p>B)&&I.set(g,B)},c=o.refs[o.i++],u=new Map,l=()=>{for(let g of i){let B=g.id.client,p=A.get(B);p?(p.i--,s.clients.set(B,p.refs.slice(p.i)),A.delete(B),p.i=0,p.refs=[]):s.clients.set(B,[g]),n=n.filter(U=>U!==B)}i.length=0};for(;;){if(c.constructor!==pt){let B=BA(u,c.id.client,()=>Ke(t,c.id.client))-c.id.clock;if(B<0)i.push(c),a(c.id.client,c.id.clock-1),l();else{let p=c.getMissing(e,t);if(p!==null){i.push(c);let U=A.get(p)||{refs:[],i:0};if(U.refs.length===U.i)a(p,Ke(t,p)),l();else{c=U.refs[U.i++];continue}}else(B===0||B<c.length)&&(c.integrate(e,B),u.set(c.id.client,c.id.clock+c.length))}}if(i.length>0)c=i.pop();else if(o!==null&&o.i<o.refs.length)c=o.refs[o.i++];else{if(o=r(),o===null)break;c=o.refs[o.i++]}}if(s.clients.size>0){let g=new OA;return Su(g,s,new Map),Z(g.restEncoder,0),{missing:I,update:g.toUint8Array()}}return null},uk=(e,t)=>Su(e,t.doc.store,t.beforeState),Bk=(e,t,A,i=new yi(e))=>Be(t,n=>{n.local=!1;let r=!1,o=n.doc,s=o.store,I=gk(i,o),a=lk(n,s,I),c=s.pendingStructs;if(c){for(let[l,g]of c.missing)if(g<Ke(s,l)){r=!0;break}if(a){for(let[l,g]of a.missing){let B=c.missing.get(l);(B==null||B>g)&&c.missing.set(l,g)}c.update=la([c.update,a.update])}}else s.pendingStructs=a;let u=gp(i,n,s);if(s.pendingDs){let l=new yi(en(s.pendingDs));T(l.restDecoder);let g=gp(l,n,s);u&&g?s.pendingDs=la([u,g]):s.pendingDs=u||g}else s.pendingDs=u;if(r){let l=s.pendingStructs.update;s.pendingStructs=null,Dp(n.doc,l)}},A,!1);var Dp=(e,t,A,i=yi)=>{let n=en(t);Bk(n,e,A,new i(n))},kp=(e,t,A)=>Dp(e,t,A,Ia),fk=(e,t,A=new Map)=>{Su(e,t.store,A),gr(e,ak(t.store))},dk=(e,t=new Uint8Array([0]),A=new OA)=>{let i=Up(t);fk(A,e,i);let n=[A.toUint8Array()];if(e.store.pendingDs&&n.push(e.store.pendingDs),e.store.pendingStructs&&n.push(Uk(e.store.pendingStructs.update,t)),n.length>1){if(A.constructor===nn)return kk(n.map((r,o)=>o===0?r:xk(r)));if(A.constructor===OA)return la(n)}return n[0]},Sp=(e,t)=>dk(e,t,new nn),Qk=e=>{let t=new Map,A=T(e.restDecoder);for(let i=0;i<A;i++){let n=T(e.restDecoder),r=T(e.restDecoder);t.set(n,r)}return t},Up=e=>Qk(new sa(en(e))),Np=(e,t)=>(Z(e.restEncoder,t.size),fA(t.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{Z(e.restEncoder,A),Z(e.restEncoder,i)}),e),Ck=(e,t)=>Np(e,ha(t.store)),hk=(e,t=new ca)=>(e instanceof Map?Np(t,e):Ck(t,e),t.toUint8Array()),xp=e=>hk(e,new aa),lu=class{constructor(){this.l=[]}},lp=()=>new lu,up=(e,t)=>e.l.push(t),Bp=(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.")},Gp=(e,t,A)=>Go(e.l,[t,A]),mi=class{constructor(t,A){this.client=t,this.clock=A}},ta=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,ee=(e,t)=>new mi(e,t);var pk=e=>{for(let[t,A]of e.doc.share.entries())if(A===e)return t;throw AA()};var uu=class{constructor(t,A){this.ds=t,this.sv=A}};var Ek=(e,t)=>new uu(e,t),tG=Ek(wp(),new Map);var sr=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!yp(t.ds,e.id),Bu=(e,t)=>{let A=BA(e.meta,Bu,LA),i=e.doc.store;A.has(t)||(t.sv.forEach((n,r)=>{n<Ke(i,r)&&wi(e,ee(r,n))}),mp(e,t.ds,n=>{}),A.add(t))};var ga=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},ha=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},Ke=(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},Hp=(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)},pA=(e,t)=>{let A=0,i=e.length-1,n=e[i],r=n.id.clock;if(r===t)return i;let o=Rt(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=Rt((A+i)/2)}throw AA()},mk=(e,t)=>{let A=e.clients.get(t.client);return A[pA(A,t.clock)]},au=mk,fu=(e,t,A)=>{let i=pA(t,A),n=t[i];return n.id.clock<A&&n instanceof Le?(t.splice(i+1,0,Ca(e,n,A-n.id.clock)),i+1):i},wi=(e,t)=>{let A=e.doc.store.clients.get(t.client);return A[fu(e,A,t.clock)]},fp=(e,t,A)=>{let i=t.clients.get(A.client),n=pA(i,A.clock),r=i[n];return A.clock!==r.id.clock+r.length-1&&r.constructor!==ht&&i.splice(n+1,0,Ca(e,r,A.clock-r.id.clock+1)),r},yk=(e,t,A)=>{let i=e.clients.get(t.id.client);i[pA(i,t.id.clock)]=A},Mp=(e,t,A,i,n)=>{if(i===0)return;let r=A+i,o=fu(e,t,A),s;do s=t[o++],r<s.id.clock+s.length&&fu(e,t,r),n(s);while(o<t.length&&t[o].id.clock<r)},du=class{constructor(t,A,i){this.doc=t,this.deleteSet=new An,this.beforeState=ha(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}},dp=(e,t)=>t.deleteSet.clients.size===0&&!Uh(t.afterState,(A,i)=>t.beforeState.get(i)!==A)?!1:(Du(t.deleteSet),uk(e,t),gr(e,t.deleteSet),!0),Qp=(e,t,A)=>{let i=t._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&BA(e.changed,t,LA).add(A)},na=(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 Le&&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},wk=(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],I=s.clock+s.len;for(let a=pA(r,s.clock),c=r[a];a<r.length&&c.id.clock<I;c=r[++a]){let u=r[a];if(s.clock+s.len<=u.id.clock)break;u instanceof Le&&u.deleted&&!u.keep&&A(u)&&u.gc(t,!1)}}}},Fk=(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=PI(n.length-1,1+pA(n,o.clock+o.len-1));for(let I=s,a=n[I];I>0&&a.id.clock>=o.clock;a=n[I])I-=1+na(n,I)}})};var vp=(e,t)=>{if(t<e.length){let A=e[t],i=A.doc,n=i.store,r=A.deleteSet,o=A._mergeStructs;try{Du(r),A.afterState=ha(A.doc.store),i.emit("beforeObserverCalls",[A,i]);let s=[];A.changed.forEach((I,a)=>s.push(()=>{(a._item===null||!a._item.deleted)&&a._callObserver(A,I)})),s.push(()=>{A.changedParentTypes.forEach((I,a)=>{a._dEH.l.length>0&&(a._item===null||!a._item.deleted)&&(I=I.filter(c=>c.target._item===null||!c.target._item.deleted),I.forEach(c=>{c.currentTarget=a,c._path=null}),I.sort((c,u)=>c.path.length-u.path.length),Gp(a._dEH,I,A))})}),s.push(()=>i.emit("afterTransaction",[A,i])),Go(s,[]),A._needFormattingCleanup&&Ok(A)}finally{i.gc&&wk(r,n,i.gcFilter),Fk(r,n),A.afterState.forEach((c,u)=>{let l=A.beforeState.get(u)||0;if(l!==c){let g=n.clients.get(u),B=bA(pA(g,l),1);for(let p=g.length-1;p>=B;)p-=1+na(g,p)}});for(let c=o.length-1;c>=0;c--){let{client:u,clock:l}=o[c].id,g=n.clients.get(u),B=pA(g,l);B+1<g.length&&na(g,B+1)>1||B>0&&na(g,B)}if(!A.local&&A.afterState.get(i.clientID)!==A.beforeState.get(i.clientID)&&(op(qo,Mo,"[yjs] ",vo,Jo,"Changed the client-id because another client seems to be using it."),i.clientID=Fp()),i.emit("afterTransactionCleanup",[A,i]),i._observers.has("update")){let c=new nn;dp(c,A)&&i.emit("update",[c.toUint8Array(),A.origin,i,A])}if(i._observers.has("updateV2")){let c=new OA;dp(c,A)&&i.emit("updateV2",[c.toUint8Array(),A.origin,i,A])}let{subdocsAdded:s,subdocsLoaded:I,subdocsRemoved:a}=A;(s.size>0||a.size>0||I.size>0)&&(s.forEach(c=>{c.clientID=i.clientID,c.collectionid==null&&(c.collectionid=i.collectionid),i.subdocs.add(c)}),a.forEach(c=>i.subdocs.delete(c)),i.emit("subdocs",[{loaded:I,added:s,removed:a},i,A]),a.forEach(c=>c.destroy())),e.length<=t+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):vp(e,t+1)}}},Be=(e,t,A=null,i=!0)=>{let n=e._transactionCleanups,r=!1,o=null;e._transaction===null&&(r=!0,e._transaction=new du(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&&vp(n,0)}}return o};function*Dk(e){let t=T(e.restDecoder);for(let A=0;A<t;A++){let i=T(e.restDecoder),n=e.readClient(),r=T(e.restDecoder);for(let o=0;o<i;o++){let s=e.readInfo();if(s===10){let I=T(e.restDecoder);yield new pt(ee(n,r),I),r+=I}else if(31&s){let I=(s&192)===0,a=new Le(ee(n,r),null,(s&128)===128?e.readLeftID():null,null,(s&64)===64?e.readRightID():null,I?e.readParentInfo()?e.readString():e.readLeftID():null,I&&(s&32)===32?e.readString():null,$p(e,s));yield a,r+=a.length}else{let I=e.readLen();yield new ht(ee(n,r),I),r+=I}}}}var bo=class{constructor(t,A){this.gen=Dk(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===pt);return this.curr}};var Oo=class{constructor(t){this.currClient=0,this.startClock=0,this.written=0,this.encoder=t,this.clientStructs=[]}},kk=e=>la(e,Ia,nn);var Sk=(e,t)=>{if(e.constructor===ht){let{client:A,clock:i}=e.id;return new ht(ee(A,i+t),e.length-t)}else if(e.constructor===pt){let{client:A,clock:i}=e.id;return new pt(ee(A,i+t),e.length-t)}else{let A=e,{client:i,clock:n}=A.id;return new Le(ee(i,n+t),null,ee(i,n+t-1),null,A.rightOrigin,A.parent,A.parentSub,A.content.splice(t))}},la=(e,t=yi,A=OA)=>{if(e.length===1)return e[0];let i=e.map(c=>new t(en(c))),n=i.map(c=>new bo(c,!0)),r=null,o=new A,s=new Oo(o);for(;n=n.filter(l=>l.curr!==null),n.sort((l,g)=>{if(l.curr.id.client===g.curr.id.client){let B=l.curr.id.clock-g.curr.id.clock;return B===0?l.curr.constructor===g.curr.constructor?0:l.curr.constructor===pt?1:-1:B}else return g.curr.id.client-l.curr.id.client}),n.length!==0;){let c=n[0],u=c.curr.id.client;if(r!==null){let l=c.curr,g=!1;for(;l!==null&&l.id.clock+l.length<=r.struct.id.clock+r.struct.length&&l.id.client>=r.struct.id.client;)l=c.next(),g=!0;if(l===null||l.id.client!==u||g&&l.id.clock>r.struct.id.clock+r.struct.length)continue;if(u!==r.struct.id.client)pi(s,r.struct,r.offset),r={struct:l,offset:0},c.next();else if(r.struct.id.clock+r.struct.length<l.id.clock)if(r.struct.constructor===pt)r.struct.length=l.id.clock+l.length-r.struct.id.clock;else{pi(s,r.struct,r.offset);let B=l.id.clock-r.struct.id.clock-r.struct.length;r={struct:new pt(ee(u,r.struct.id.clock+r.struct.length),B),offset:0}}else{let B=r.struct.id.clock+r.struct.length-l.id.clock;B>0&&(r.struct.constructor===pt?r.struct.length-=B:l=Sk(l,B)),r.struct.mergeWith(l)||(pi(s,r.struct,r.offset),r={struct:l,offset:0},c.next())}}else r={struct:c.curr,offset:0},c.next();for(let l=c.curr;l!==null&&l.id.client===u&&l.id.clock===r.struct.id.clock+r.struct.length&&l.constructor!==pt;l=c.next())pi(s,r.struct,r.offset),r={struct:l,offset:0}}r!==null&&(pi(s,r.struct,r.offset),r=null),Uu(s);let I=i.map(c=>ku(c)),a=Ik(I);return gr(o,a),o.toUint8Array()},Uk=(e,t,A=yi,i=OA)=>{let n=Up(t),r=new i,o=new Oo(r),s=new A(en(e)),I=new bo(s,!1);for(;I.curr;){let c=I.curr,u=c.id.client,l=n.get(u)||0;if(I.curr.constructor===pt){I.next();continue}if(c.id.clock+c.length>l)for(pi(o,c,bA(l-c.id.clock,0)),I.next();I.curr&&I.curr.id.client===u;)pi(o,I.curr,0),I.next();else for(;I.curr&&I.curr.id.client===u&&I.curr.id.clock+I.curr.length<=l;)I.next()}Uu(o);let a=ku(s);return gr(r,a),r.toUint8Array()};var Jp=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:eA(e.encoder.restEncoder)}),e.encoder.restEncoder=Uo(),e.written=0)},pi=(e,t,A)=>{e.written>0&&e.currClient!==t.id.client&&Jp(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),Z(e.encoder.restEncoder,t.id.clock+A)),t.write(e.encoder,A),e.written++},Uu=e=>{Jp(e);let t=e.encoder.restEncoder;Z(t,e.clientStructs.length);for(let A=0;A<e.clientStructs.length;A++){let i=e.clientStructs[A];Z(t,i.written),No(t,i.restEncoder)}},Nk=(e,t,A,i)=>{let n=new A(en(e)),r=new bo(n,!1),o=new i,s=new Oo(o);for(let a=r.curr;a!==null;a=r.next())pi(s,t(a),0);Uu(s);let I=ku(n);return gr(o,I),o.toUint8Array()};var xk=e=>Nk(e,jh,yi,nn),Cp="You must not compute changes after the event-handler fired.",Ir=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=Gk(this.currentTarget,this.target))}deletes(t){return yp(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw dA(Cp);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 I=r.left;for(;I!==null&&this.adds(I);)I=I.left;if(this.deletes(r))if(I!==null&&this.deletes(I))o="delete",s=VI(I.content.getContent());else return;else I!==null&&this.deletes(I)?(o="update",s=VI(I.content.getContent())):(o="add",s=void 0)}else if(this.deletes(r))o="delete",s=VI(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 dA(Cp);let A=this.target,i=LA(),n=LA(),r=[];if(t={added:i,deleted:n,delta:r,keys:this.keys},this.transaction.changed.get(A).has(null)){let s=null,I=()=>{s&&r.push(s)};for(let a=A._start;a!==null;a=a.right)a.deleted?this.deletes(a)&&!this.adds(a)&&((s===null||s.delete===void 0)&&(I(),s={delete:0}),s.delete+=a.length,n.add(a)):this.adds(a)?((s===null||s.insert===void 0)&&(I(),s={insert:[]}),s.insert=s.insert.concat(a.content.getContent()),i.add(a)):((s===null||s.retain===void 0)&&(I(),s={retain:0}),s.retain+=a.length);s!==null&&s.retain===void 0&&I()}this._changes=t}return t}},Gk=(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},qp=80,Nu=0,Qu=class{constructor(t,A){t.marker=!0,this.p=t,this.index=A,this.timestamp=Nu++}},Hk=e=>{e.timestamp=Nu++},Rp=(e,t,A)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=A,e.timestamp=Nu++},Mk=(e,t,A)=>{if(e.length>=qp){let i=e.reduce((n,r)=>n.timestamp<r.timestamp?n:r);return Rp(i,t,A),i}else{let i=new Qu(t,A);return e.push(i),i}},pa=(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)=>jn(t-r.index)<jn(t-o.index)?r:o),i=e._start,n=0;for(A!==null&&(i=A.p,n=A.index,Hk(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&&jn(A.index-n)<i.parent.length/qp?(Rp(A,i,n),A):Mk(e._searchMarker,i,n)},Yo=(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=bA(t,n.index+A))}};var Ea=(e,t,A)=>{let i=e,n=t.changedParentTypes;for(;BA(n,e,()=>[]).push(A),e._item!==null;)e=e._item.parent;Gp(i._eH,A,t)},He=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=lp(),this._dEH=lp(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,A){this.doc=t,this._item=A}_copy(){throw tA()}clone(){throw tA()}_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){up(this._eH,t)}observeDeep(t){up(this._dEH,t)}unobserve(t){Bp(this._eH,t)}unobserveDeep(t){Bp(this._dEH,t)}toJSON(){}},Kp=(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},Lp=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 Vo=(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}},bp=(e,t)=>{let A=[];return Vo(e,(i,n)=>{A.push(t(i,n,e))}),A},vk=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}}}},Op=(e,t)=>{let A=pa(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}},ua=(e,t,A,i)=>{let n=A,r=e.doc,o=r.clientID,s=r.store,I=A===null?t._start:A.right,a=[],c=()=>{a.length>0&&(n=new Le(ee(o,Ke(s,o)),n,n&&n.lastId,I,I&&I.id,t,null,new cr(a)),n.integrate(e,0),a=[])};i.forEach(u=>{if(u===null)a.push(u);else switch(u.constructor){case Number:case Object:case Boolean:case Array:case String:a.push(u);break;default:switch(c(),u.constructor){case Uint8Array:case ArrayBuffer:n=new Le(ee(o,Ke(s,o)),n,n&&n.lastId,I,I&&I.id,t,null,new Xo(new Uint8Array(u))),n.integrate(e,0);break;case Lo:n=new Le(ee(o,Ke(s,o)),n,n&&n.lastId,I,I&&I.id,t,null,new Zo(u)),n.integrate(e,0);break;default:if(u instanceof He)n=new Le(ee(o,Ke(s,o)),n,n&&n.lastId,I,I&&I.id,t,null,new VA(u)),n.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),c()},Yp=()=>dA("Length exceeded!"),Vp=(e,t,A,i)=>{if(A>t._length)throw Yp();if(A===0)return t._searchMarker&&Yo(t._searchMarker,A,i.length),ua(e,t,null,i);let n=A,r=pa(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&&wi(e,ee(o.id.client,o.id.clock+A));break}A-=o.length}return t._searchMarker&&Yo(t._searchMarker,n,i.length),ua(e,t,o,i)},Jk=(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 ua(e,t,n,A)},zp=(e,t,A,i)=>{if(i===0)return;let n=A,r=i,o=pa(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&&wi(e,ee(s.id.client,s.id.clock+A)),A-=s.length);for(;i>0&&s!==null;)s.deleted||(i<s.length&&wi(e,ee(s.id.client,s.id.clock+i)),s.delete(e),i-=s.length),s=s.right;if(i>0)throw Yp();t._searchMarker&&Yo(t._searchMarker,n,-r+i)},Ba=(e,t,A)=>{let i=t._map.get(A);i!==void 0&&i.delete(e)},xu=(e,t,A,i)=>{let n=t._map.get(A)||null,r=e.doc,o=r.clientID,s;if(i==null)s=new cr([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:s=new cr([i]);break;case Uint8Array:s=new Xo(i);break;case Lo:s=new Zo(i);break;default:if(i instanceof He)s=new VA(i);else throw new Error("Unexpected content type")}new Le(ee(o,Ke(r.store,o)),n,n&&n.lastId,null,null,t,A,s).integrate(e,0)},Gu=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted?A.content.getContent()[A.length-1]:void 0},Pp=e=>{let t={};return e._map.forEach((A,i)=>{A.deleted||(t[i]=A.content.getContent()[A.length-1])}),t},_p=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted};var qk=(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&&sr(r,t)&&(A[n]=r.content.getContent()[r.length-1])}),A},Aa=e=>Ip(e.entries(),t=>!t[1].deleted),Cu=class extends Ir{constructor(t,A){super(t,A),this._transaction=A}},fa=class e extends He{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 He?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,A){super._callObserver(t,A),Ea(this,t,new Cu(this,t))}insert(t,A){this.doc!==null?Be(this.doc,i=>{Vp(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}push(t){this.doc!==null?Be(this.doc,A=>{Jk(A,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,A=1){this.doc!==null?Be(this.doc,i=>{zp(i,this,t,A)}):this._prelimContent.splice(t,A)}get(t){return Op(this,t)}toArray(){return Lp(this)}slice(t=0,A=this.length){return Kp(this,t,A)}toJSON(){return this.map(t=>t instanceof He?t.toJSON():t)}map(t){return bp(this,t)}forEach(t){Vo(this,t)}[Symbol.iterator](){return vk(this)}_write(t){t.writeTypeRef(nS)}},Rk=e=>new fa,hu=class extends Ir{constructor(t,A,i){super(t,A),this.keysChanged=i}},zo=class e extends He{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 He?A.clone():A)}),t}_callObserver(t,A){Ea(this,t,new hu(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 He?n.toJSON():n}}),t}get size(){return[...Aa(this._map)].length}keys(){return ea(Aa(this._map),t=>t[0])}values(){return ea(Aa(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return ea(Aa(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?Be(this.doc,A=>{Ba(A,this,t)}):this._prelimContent.delete(t)}set(t,A){return this.doc!==null?Be(this.doc,i=>{xu(i,this,t,A)}):this._prelimContent.set(t,A),A}get(t){return Gu(this,t)}has(t){return _p(this,t)}clear(){this.doc!==null?Be(this.doc,t=>{this.forEach(function(A,i,n){Ba(t,n,i)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef(rS)}},Kk=e=>new zo,Ei=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&Wh(e,t),Po=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 Me:this.right.deleted||lr(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}},hp=(e,t,A)=>{for(;t.right!==null&&A>0;){switch(t.right.content.constructor){case Me:t.right.deleted||lr(t.currentAttributes,t.right.content);break;default:t.right.deleted||(A<t.right.length&&wi(e,ee(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},ia=(e,t,A)=>{let i=new Map,n=pa(t,A);if(n){let r=new Po(n.p.left,n.p,n.index,i);return hp(e,r,A-n.index)}else{let r=new Po(null,t._start,0,i);return hp(e,r,A)}},Tp=(e,t,A,i)=>{for(;A.right!==null&&(A.right.deleted===!0||A.right.content.constructor===Me&&Ei(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 I=A.left,a=A.right,c=new Le(ee(r,Ke(n.store,r)),I,I&&I.lastId,a,a&&a.id,t,null,new Me(s,o));c.integrate(e,0),A.right=c,A.forward()})},lr=(e,t)=>{let{key:A,value:i}=t;i===null?e.delete(A):e.set(A,i)},Xp=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===Me&&Ei(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},Zp=(e,t,A,i)=>{let n=e.doc,r=n.clientID,o=new Map;for(let s in i){let I=i[s],a=A.currentAttributes.get(s)||null;if(!Ei(a,I)){o.set(s,a);let{left:c,right:u}=A;A.right=new Le(ee(r,Ke(n.store,r)),c,c&&c.lastId,u,u&&u.id,t,null,new Me(s,I)),A.right.integrate(e,0),A.forward()}}return o},cu=(e,t,A,i,n)=>{A.currentAttributes.forEach((l,g)=>{n[g]===void 0&&(n[g]=null)});let r=e.doc,o=r.clientID;Xp(A,n);let s=Zp(e,t,A,n),I=i.constructor===String?new YA(i):i instanceof He?new VA(i):new rn(i),{left:a,right:c,index:u}=A;t._searchMarker&&Yo(t._searchMarker,A.index,I.getLength()),c=new Le(ee(o,Ke(r.store,o)),a,a&&a.lastId,c,c&&c.id,t,null,I),c.integrate(e,0),A.right=c,A.index=u,A.forward(),Tp(e,t,A,s)},pp=(e,t,A,i,n)=>{let r=e.doc,o=r.clientID;Xp(A,n);let s=Zp(e,t,A,n);e:for(;A.right!==null&&(i>0||s.size>0&&(A.right.deleted||A.right.content.constructor===Me));){if(!A.right.deleted)switch(A.right.content.constructor){case Me:{let{key:I,value:a}=A.right.content,c=n[I];if(c!==void 0){if(Ei(c,a))s.delete(I);else{if(i===0)break e;s.set(I,a)}A.right.delete(e)}else A.currentAttributes.set(I,a);break}default:i<A.right.length&&wi(e,ee(A.right.id.client,A.right.id.clock+i)),i-=A.right.length;break}A.forward()}if(i>0){let I="";for(;i>0;i--)I+=`
|
|
`;A.right=new Le(ee(o,Ke(r.store,o)),A.left,A.left&&A.left.lastId,A.right,A.right&&A.right.id,t,null,new YA(I)),A.right.integrate(e,0),A.forward()}Tp(e,t,A,s)},Wp=(e,t,A,i,n)=>{let r=t,o=It();for(;r&&(!r.countable||r.deleted);){if(!r.deleted&&r.content.constructor===Me){let a=r.content;o.set(a.key,a)}r=r.right}let s=0,I=!1;for(;t!==r;){if(A===t&&(I=!0),!t.deleted){let a=t.content;switch(a.constructor){case Me:{let{key:c,value:u}=a,l=i.get(c)||null;(o.get(c)!==a||l===u)&&(t.delete(e),s++,!I&&(n.get(c)||null)===u&&l!==u&&(l===null?n.delete(c):n.set(c,l))),!I&&!t.deleted&&lr(n,a);break}}}t=t.right}return s},Lk=(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===Me){let i=t.content.key;A.has(i)?t.delete(e):A.add(i)}t=t.left}},bk=e=>{let t=0;return Be(e.doc,A=>{let i=e._start,n=e._start,r=It(),o=YI(r);for(;n;){if(n.deleted===!1)switch(n.content.constructor){case Me:lr(o,n.content);break;default:t+=Wp(A,i,n,r,o),r=YI(o),i=n;break}n=n.right}}),t},Ok=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&&Mp(e,A.store.clients.get(i),r,n,o=>{!o.deleted&&o.content.constructor===Me&&o.constructor!==ht&&t.add(o.parent)})}Be(A,i=>{mp(e,e.deleteSet,n=>{if(n instanceof ht||!n.parent._hasFormatting||t.has(n.parent))return;let r=n.parent;n.content.constructor===Me?t.add(r):Lk(i,n)});for(let n of t)bk(n)})},Ep=(e,t,A)=>{let i=A,n=YI(t.currentAttributes),r=t.right;for(;A>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case VA:case rn:case YA:A<t.right.length&&wi(e,ee(t.right.id.client,t.right.id.clock+A)),A-=t.right.length,t.right.delete(e);break}t.forward()}r&&Wp(e,r,t.right,n,t.currentAttributes);let o=(t.left||t.right).parent;return o._searchMarker&&Yo(o._searchMarker,t.index,-i+A),t},pu=class extends Ir{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=[];Be(t,i=>{let n=new Map,r=new Map,o=this.target._start,s=null,I={},a="",c=0,u=0,l=()=>{if(s!==null){let g=null;switch(s){case"delete":u>0&&(g={delete:u}),u=0;break;case"insert":(typeof a=="object"||a.length>0)&&(g={insert:a},n.size>0&&(g.attributes={},n.forEach((B,p)=>{B!==null&&(g.attributes[p]=B)}))),a="";break;case"retain":c>0&&(g={retain:c},Zh(I)||(g.attributes=Th({},I))),c=0;break}g&&A.push(g),s=null}};for(;o!==null;){switch(o.content.constructor){case VA:case rn:this.adds(o)?this.deletes(o)||(l(),s="insert",a=o.content.getContent()[0],l()):this.deletes(o)?(s!=="delete"&&(l(),s="delete"),u+=1):o.deleted||(s!=="retain"&&(l(),s="retain"),c+=1);break;case YA:this.adds(o)?this.deletes(o)||(s!=="insert"&&(l(),s="insert"),a+=o.content.str):this.deletes(o)?(s!=="delete"&&(l(),s="delete"),u+=o.length):o.deleted||(s!=="retain"&&(l(),s="retain"),c+=o.length);break;case Me:{let{key:g,value:B}=o.content;if(this.adds(o)){if(!this.deletes(o)){let p=n.get(g)||null;Ei(p,B)?B!==null&&o.delete(i):(s==="retain"&&l(),Ei(B,r.get(g)||null)?delete I[g]:I[g]=B)}}else if(this.deletes(o)){r.set(g,B);let p=n.get(g)||null;Ei(p,B)||(s==="retain"&&l(),I[g]=p)}else if(!o.deleted){r.set(g,B);let p=I[g];p!==void 0&&(Ei(p,B)?p!==null&&o.delete(i):(s==="retain"&&l(),B===null?delete I[g]:I[g]=B))}o.deleted||(s==="insert"&&l(),lr(n,o.content));break}}o=o.right}for(l();A.length>0;){let g=A[A.length-1];if(g.retain!==void 0&&g.attributes===void 0)A.pop();else break}}),this._delta=A}return this._delta}},_o=class e extends He{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 pu(this,t,A);Ea(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===YA&&(t+=A.content.str),A=A.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:A=!0}={}){this.doc!==null?Be(this.doc,i=>{let n=new Po(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)&&cu(i,this,n,s,o.attributes||{})}else o.retain!==void 0?pp(i,this,n,o.retain,o.attributes||{}):o.delete!==void 0&&Ep(i,n,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,A,i){let n=[],r=new Map,o=this.doc,s="",I=this._start;function a(){if(s.length>0){let u={},l=!1;r.forEach((B,p)=>{l=!0,u[p]=B});let g={insert:s};l&&(g.attributes=u),n.push(g),s=""}}let c=()=>{for(;I!==null;){if(sr(I,t)||A!==void 0&&sr(I,A))switch(I.content.constructor){case YA:{let u=r.get("ychange");t!==void 0&&!sr(I,t)?(u===void 0||u.user!==I.id.client||u.type!=="removed")&&(a(),r.set("ychange",i?i("removed",I.id):{type:"removed"})):A!==void 0&&!sr(I,A)?(u===void 0||u.user!==I.id.client||u.type!=="added")&&(a(),r.set("ychange",i?i("added",I.id):{type:"added"})):u!==void 0&&(a(),r.delete("ychange")),s+=I.content.str;break}case VA:case rn:{a();let u={insert:I.content.getContent()[0]};if(r.size>0){let l={};u.attributes=l,r.forEach((g,B)=>{l[B]=g})}n.push(u);break}case Me:sr(I,t)&&(a(),lr(r,I.content));break}I=I.right}a()};return t||A?Be(o,u=>{t&&Bu(u,t),A&&Bu(u,A),c()},"cleanup"):c(),n}insert(t,A,i){if(A.length<=0)return;let n=this.doc;n!==null?Be(n,r=>{let o=ia(r,this,t);i||(i={},o.currentAttributes.forEach((s,I)=>{i[I]=s})),cu(r,this,o,A,i)}):this._pending.push(()=>this.insert(t,A,i))}insertEmbed(t,A,i={}){let n=this.doc;n!==null?Be(n,r=>{let o=ia(r,this,t);cu(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?Be(i,n=>{Ep(n,ia(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?Be(n,r=>{let o=ia(r,this,t);o.right!==null&&pp(r,this,o,A,i)}):this._pending.push(()=>this.format(t,A,i))}removeAttribute(t){this.doc!==null?Be(this.doc,A=>{Ba(A,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,A){this.doc!==null?Be(this.doc,i=>{xu(i,this,t,A)}):this._pending.push(()=>this.setAttribute(t,A))}getAttribute(t){return Gu(this,t)}getAttributes(){return Pp(this)}_write(t){t.writeTypeRef(oS)}},Yk=e=>new _o,Ro=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===da||A.constructor===ar)&&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})}},ar=class e extends He{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 He?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new Ro(this,t)}querySelector(t){t=t.toUpperCase();let i=new Ro(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t).next();return i.done?null:i.value}querySelectorAll(t){return t=t.toUpperCase(),fA(new Ro(this,A=>A.nodeName&&A.nodeName.toUpperCase()===t))}_callObserver(t,A){Ea(this,t,new Eu(this,A,t))}toString(){return bp(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),Vo(this,r=>{n.insertBefore(r.toDOM(t,A,i),null)}),n}insert(t,A){this.doc!==null?Be(this.doc,i=>{Vp(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}insertAfter(t,A){if(this.doc!==null)Be(this.doc,i=>{let n=t&&t instanceof He?t._item:t;ua(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 dA("Reference item not found");i.splice(n,0,...A)}}delete(t,A=1){this.doc!==null?Be(this.doc,i=>{zp(i,this,t,A)}):this._prelimContent.splice(t,A)}toArray(){return Lp(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return Op(this,t)}slice(t=0,A=this.length){return Kp(this,t,A)}forEach(t){Vo(this,t)}_write(t){t.writeTypeRef(IS)}},Vk=e=>new ar,da=class e extends ar{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 Xh(A,(i,n)=>{typeof i=="string"&&t.setAttribute(n,i)}),t.insert(0,this.toArray().map(i=>i instanceof He?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 I=i[s];A.push(I+'="'+t[I]+'"')}let r=this.nodeName.toLocaleLowerCase(),o=A.length>0?" "+A.join(" "):"";return`<${r}${o}>${super.toString()}</${r}>`}removeAttribute(t){this.doc!==null?Be(this.doc,A=>{Ba(A,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,A){this.doc!==null?Be(this.doc,i=>{xu(i,this,t,A)}):this._prelimAttrs.set(t,A)}getAttribute(t){return Gu(this,t)}hasAttribute(t){return _p(this,t)}getAttributes(t){return t?qk(this,t):Pp(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 Vo(this,o=>{n.appendChild(o.toDOM(t,A,i))}),i!==void 0&&i._createAssociation(n,this),n}_write(t){t.writeTypeRef(sS),t.writeKey(this.nodeName)}},zk=e=>new da(e.readKey()),Eu=class extends Ir{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)})}},mu=class e extends zo{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(aS),t.writeKey(this.hookName)}},Pk=e=>new mu(e.readKey()),yu=class e extends _o{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(cS)}},_k=e=>new yu,To=class{constructor(t,A){this.id=t,this.length=A}get deleted(){throw tA()}mergeWith(t){return!1}write(t,A,i){throw tA()}integrate(t,A){throw tA()}},Tk=0,ht=class extends To{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),Hp(t.doc.store,this)}write(t,A){t.writeInfo(Tk),t.writeLen(this.length-A)}getMissing(t,A){return null}},Xo=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 tA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeBuf(this.content)}getRef(){return 3}},Xk=e=>new Xo(e.readBuf()),Qa=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){oa(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}},Zk=e=>new Qa(e.readLen()),jp=(e,t)=>new Lo({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),Zo=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(jp(this.doc.guid,this.opts))}splice(t){throw tA()}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}},Wk=e=>new Zo(jp(e.readString(),e.readAny())),rn=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 tA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeJSON(this.embed)}getRef(){return 5}},jk=e=>new rn(e.readJSON()),Me=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 tA()}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}},$k=e=>new Me(e.readKey(),e.readJSON()),wu=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}},eS=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 wu(A)},cr=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}},tS=e=>{let t=e.readLen(),A=[];for(let i=0;i<t;i++)A.push(e.readAny());return new cr(A)},YA=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}},AS=e=>new YA(e.readString()),iS=[Rk,Kk,Yk,zk,Vk,Pk,_k],nS=0,rS=1,oS=2,sS=3,IS=4,aS=5,cS=6,VA=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 tA()}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}},gS=e=>new VA(iS[e.readTypeRef()](e));var Ca=(e,t,A)=>{let{client:i,clock:n}=t.id,r=new Le(ee(i,n+A),t,ee(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=ee(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 Le=class e extends To{constructor(t,A,i,n,r,o,s,I){super(t,I.getLength()),this.origin=i,this.left=A,this.right=n,this.rightOrigin=r,this.parent=o,this.parentSub=s,this.redone=null,this.content=I,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>=Ke(A,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Ke(A,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===mi&&this.id.client!==this.parent.client&&this.parent.clock>=Ke(A,this.parent.client))return this.parent.client;if(this.origin&&(this.left=fp(t,A,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=wi(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===ht||this.right&&this.right.constructor===ht)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===mi){let i=au(A,this.parent);i.constructor===ht?this.parent=null:this.parent=i.content.type}return null}integrate(t,A){if(A>0&&(this.id.clock+=A,this.left=fp(t,t.doc.store,ee(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),ta(this.origin,n.origin)){if(n.id.client<this.id.client)i=n,r.clear();else if(ta(this.rightOrigin,n.rightOrigin))break}else if(n.origin!==null&&o.has(au(t.doc.store,n.origin)))r.has(au(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),Hp(t.doc.store,this),this.content.integrate(t,this),Qp(t,this.parent,this.parentSub),(this.parent._item!==null&&this.parent._item.deleted||this.parentSub!==null&&this.right!==null)&&this.delete(t)}else new ht(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:ee(this.id.client,this.id.clock+this.length-1)}mergeWith(t){if(this.constructor===t.constructor&&ta(t.origin,this.lastId)&&this.right===t&&ta(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(),oa(t.deleteSet,this.id.client,this.id.clock,this.length),Qp(t,A,this.parentSub),this.content.delete(t)}}gc(t,A){if(!this.deleted)throw AA();this.content.gc(t),A?yk(t,this,new ht(this.id,this.length)):this.content=new Qa(this.length)}write(t,A){let i=A>0?ee(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 I=s._item;if(I===null){let a=pk(s);t.writeParentInfo(!0),t.writeString(a)}else t.writeParentInfo(!1),t.writeLeftID(I.id)}else s.constructor===String?(t.writeParentInfo(!0),t.writeString(s)):s.constructor===mi?(t.writeParentInfo(!1),t.writeLeftID(s)):AA();r!==null&&t.writeString(r)}this.content.write(t,A)}},$p=(e,t)=>lS[t&31](e),lS=[()=>{AA()},Zk,eS,Xk,AS,jk,$k,gS,tS,Wk,()=>{AA()}],uS=10,pt=class extends To{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(uS),Z(t.restEncoder,this.length-A)}getMissing(t,A){return null}},eE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},tE="__ $YJS$ __";eE[tE]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");eE[tE]=!0;var ma={proxies:new WeakMap,traps:new WeakMap},AE=(e,t,A)=>e.get(t)||e.set(t,new A).get(t),iE=e=>e.join(),nE=(e,t,A,i,n)=>{AE(AE(ma.traps,e,WeakMap),t,Map).set(iE(A),i),ma.proxies.set(i,n)},Hu=(e,t,A)=>{var i,n;return ma.proxies.get((n=(i=ma.traps.get(e))===null||i===void 0?void 0:i.get(t))===null||n===void 0?void 0:n.get(iE(A)))};var fS=Symbol("default"),dS=Object.keys(Object.getOwnPropertyDescriptors(Reflect)),QS=["get","has","set","defineProperty","deleteProperty","getOwnPropertyDescriptor"],CS=(e,t)=>{let A,i,n,r,o,s,I,a;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,I,o]=t;break;case"construct":[A,o]=t;break;case"setPrototypeOf":[A,a]=t;break;default:[A]=t}return{target:A,name:i,receiver:r,val:n,args:o,descriptor:s,thisValue:I,prototype:a}},hS=(e,t)=>{let{trapName:A,handler:i,traps:n,root:r,path:o}=e,{target:s,name:I,val:a,receiver:c,args:u,descriptor:l,thisValue:g,prototype:B}=CS(A,t),p=QS.includes(A)?I:void 0;return{parameters:t,target:s,name:I,val:a,args:u,descriptor:l,receiver:c,thisValue:g,prototype:B,trapName:A,traps:n,path:o,handler:i,key:p,newValue:A==="set"?a:void 0,root:r,get proxy(){return Hu(r,s,o)},get value(){return p&&s[p]},DEFAULT:fS,PROXY:rE.bind({root:r,handler:i,path:[...o,p]})}},pS=function(...e){let{trapName:t,handler:A}=this,i=hS(this,e),{PROXY:n,DEFAULT:r}=i,o=A(i);return o===n?n(i.value):o===r?Reflect[t](...e):o},ES=(e,t,A)=>dS.reduce((i,n)=>(i[n]=pS.bind({trapName:n,handler:e,traps:i,root:t,path:A}),i),{}),mS=e=>{if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Deep proxy could be applied to objects and functions only")},yS=({DEFAULT:e})=>e,rE=function(e,t,A,i){mS(e);let n=Object.assign({},this),r=t||n.handler||yS,o=A||n.path||[],s=n.root||i||e,I=Hu(s,e,o);if(I)return I;let a=ES(r,s,o),c=new Proxy(e,a);return nE(s,e,o,a,c),c},oE=class{constructor(e,t,A,i){return rE(e,t,A,i)}};function $o(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(c){try{a(i.next(c))}catch(u){o(u)}}function I(c){try{a(i.throw(c))}catch(u){o(u)}}function a(c){c.done?r(c.value):n(c.value).then(s,I)}a((i=i.apply(e,t||[])).next())})}var he=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 $o(this,void 0,void 0,function*(){let A=yield this.lock();try{return yield Promise.resolve(t())}finally{A()}})}},Mu;function wS(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global}var qu=wS(),vu=(Mu=qu.Buffer)!==null&&Mu!==void 0?Mu:null,FS=qu.TextEncoder?new qu.TextEncoder:null;function uE(e,t){return(e&15)+(e>>6|e>>3&8)<<4|(t&15)+(t>>6|t>>3&8)}function DS(e,t){let A=t.length>>1;for(let i=0;i<A;i++){let n=i<<1;e[i]=uE(t.charCodeAt(n),t.charCodeAt(n+1))}}function kS(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]!==uE(e.charCodeAt(i),e.charCodeAt(i+1)))return!1}return!0}var sE=87,IE=48;function aE(e,t,A){let i=0;for(let n=0;n<A;n++){let r=t[n]>>>4;e[i++]=r>9?r+sE:r+IE,r=t[n]&15,e[i++]=r>9?r+sE:r+IE}return String.fromCharCode.apply(null,e)}var cE=vu!==null?e=>{if(typeof e=="string"){let t=vu.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(vu.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 FS.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},gE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",jo=new Uint8Array(256);for(let e=0;e<gE.length;e++)jo[gE.charCodeAt(e)]=e;function SS(e){let t=Math.floor(e.length*.75),A=e.length;return e[A-1]==="="&&(t-=1,e[A-2]==="="&&(t-=1)),t}function US(e){let t=SS(e),A=e.length,i=new Uint8Array(t),n=0;for(let r=0;r<A;r+=4){let o=jo[e.charCodeAt(r)],s=jo[e.charCodeAt(r+1)],I=jo[e.charCodeAt(r+2)],a=jo[e.charCodeAt(r+3)];i[n]=o<<2|s>>4,n+=1,i[n]=(s&15)<<4|I>>2,n+=1,i[n]=(I&3)<<6|a&63,n+=1}return i}var ya=16*1024,Wo=4,NS=new he,Ju=new Map;function xS(e,t){return $o(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=(w,D=0)=>{i.set(w,D)},o=()=>i,s=()=>A.exports,I=w=>{A.exports.Hash_SetMemorySize(w);let D=A.exports.Hash_GetBuffer(),S=A.exports.memory.buffer;i=new Uint8Array(S,D,w)},a=()=>new DataView(A.exports.memory.buffer).getUint32(A.exports.STATE_SIZE,!0),c=NS.dispatch(()=>$o(this,void 0,void 0,function*(){if(!Ju.has(e.name)){let D=US(e.data),S=WebAssembly.compile(D);Ju.set(e.name,S)}let w=yield Ju.get(e.name);A=yield WebAssembly.instantiate(w,{})})),u=()=>$o(this,void 0,void 0,function*(){A||(yield c);let w=A.exports.Hash_GetBuffer(),D=A.exports.memory.buffer;i=new Uint8Array(D,w,ya)}),l=(w=null)=>{n=!0,A.exports.Hash_Init(w)},g=w=>{let D=0;for(;D<w.length;){let S=w.subarray(D,D+ya);D+=S.length,i.set(S),A.exports.Hash_Update(S.length)}},B=w=>{if(!n)throw new Error("update() called before init()");let D=cE(w);g(D)},p=new Uint8Array(t*2),U=(w,D=null)=>{if(!n)throw new Error("digest() called before init()");return n=!1,A.exports.Hash_Final(D),w==="binary"?i.slice(0,t):aE(p,i,t)},d=()=>{if(!n)throw new Error("save() can only be called after init() and before digest()");let w=A.exports.Hash_GetState(),D=a(),S=A.exports.memory.buffer,K=new Uint8Array(S,w,D),q=new Uint8Array(Wo+D);return DS(q,e.hash),q.set(K,Wo),q},f=w=>{if(!(w instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");let D=A.exports.Hash_GetState(),S=a(),K=Wo+S,q=A.exports.memory.buffer;if(w.length!==K)throw new Error(`Bad state length (expected ${K} bytes, got ${w.length})`);if(!kS(e.hash,w.subarray(0,Wo)))throw new Error("This state was written by an incompatible hash implementation");let X=w.subarray(Wo);new Uint8Array(q,D,S).set(X),n=!0},Q=w=>typeof w=="string"?w.length<ya/4:w.byteLength<ya,y=Q;switch(e.name){case"argon2":case"scrypt":y=()=>!0;break;case"blake2b":case"blake2s":y=(w,D)=>D<=512&&Q(w);break;case"blake3":y=(w,D)=>D===0&&Q(w);break;case"xxhash64":case"xxhash3":case"xxhash128":y=()=>!1;break}let F=(w,D=null,S=null)=>{if(!y(w,D))return l(D),B(w),U("hex",S);let K=cE(w);return i.set(K),A.exports.Hash_Calculate(K.length,D,S),aE(p,i,t)};return yield u(),{getMemory:o,writeMemory:r,getExports:s,setMemorySize:I,init:l,update:B,digest:U,save:d,load:f,calculate:F,hashLength:t}})}function GS(e,t,A){return $o(this,void 0,void 0,function*(){let i=yield e.lock(),n=yield xS(t,A);return i(),n})}var aG=new he;var cG=new he;var gG=new DataView(new ArrayBuffer(4));var lG=new he;var uG=new he;var BG=new he;var fG=new he;var dG=new he;var QG=new he;var CG=new he;var hG=new he;var pG=new he;var EG=new he;var mG=new he;var yG=new he;var wG=new he;var HS="xxhash32",MS="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwcGAAEBAgADBQQBAQICBg4CfwFBsIkFC38AQYAICwdwCAZtZW1vcnkCAA5IYXNoX0dldEJ1ZmZlcgAACUhhc2hfSW5pdAABC0hhc2hfVXBkYXRlAAIKSGFzaF9GaW5hbAADDUhhc2hfR2V0U3RhdGUABA5IYXNoX0NhbGN1bGF0ZQAFClNUQVRFX1NJWkUDAQqxEAYFAEGACQtNAEEAQgA3A6iJAUEAIAA2AoiJAUEAIABBz4yijgZqNgKMiQFBACAAQfeUr694ajYChIkBQQAgAEGoiI2hAmo2AoCJAUEAQQA2AqCJAQu4CAEHfwJAIABFDQBBAEEAKQOoiQEgAK18NwOoiQECQEEAKAKgiQEiASAAakEPSw0AAkACQCAAQQNxIgINAEGACSEDIAAhBAwBCyAAQXxxIQRBgAkhAwNAQQBBACgCoIkBIgVBAWo2AqCJASAFQZCJAWogAy0AADoAACADQQFqIQMgAkF/aiICDQALCyAAQQRJDQEDQEEAQQAoAqCJASICQQFqNgKgiQEgAkGQiQFqIAMtAAA6AAAgA0EBai0AACECQQBBACgCoIkBIgVBAWo2AqCJASAFQZCJAWogAjoAACADQQJqLQAAIQJBAEEAKAKgiQEiBUEBajYCoIkBIAVBkIkBaiACOgAAIANBA2otAAAhAkEAQQAoAqCJASIFQQFqNgKgiQEgBUGQiQFqIAI6AAAgA0EEaiEDIARBfGoiBA0ADAILCyAAQfAIaiEGAkACQCABDQBBACgCjIkBIQJBACgCiIkBIQVBACgChIkBIQRBACgCgIkBIQFBgAkhAwwBC0GACSEDAkAgAUEPSw0AQYAJIQMCQAJAQQAgAWtBA3EiBA0AIAEhBQwBCyABIQIDQEEAIAJBAWoiBTYCoIkBIAJBkIkBaiADLQAAOgAAIANBAWohAyAFIQIgBEF/aiIEDQALCyABQXNqQQNJDQBBACEEA0AgAyAEaiIBLQAAIQdBACAFIARqIgJBAWo2AqCJASACQZCJAWogBzoAACABQQFqLQAAIQdBACACQQJqNgKgiQEgAkGRiQFqIAc6AAAgAUECai0AACEHQQAgAkEDajYCoIkBIAJBkokBaiAHOgAAIAFBA2otAAAhAUEAIAJBBGo2AqCJASACQZOJAWogAToAACAFIARBBGoiBGpBEEcNAAsgAyAEaiEDC0EAQQAoApCJAUH3lK+veGxBACgCgIkBakENd0Gx893xeWwiATYCgIkBQQBBACgClIkBQfeUr694bEEAKAKEiQFqQQ13QbHz3fF5bCIENgKEiQFBAEEAKAKYiQFB95Svr3hsQQAoAoiJAWpBDXdBsfPd8XlsIgU2AoiJAUEAQQAoApyJAUH3lK+veGxBACgCjIkBakENd0Gx893xeWwiAjYCjIkBCyAAQYAJaiEAAkAgAyAGSw0AA0AgAygCAEH3lK+veGwgAWpBDXdBsfPd8XlsIQEgA0EMaigCAEH3lK+veGwgAmpBDXdBsfPd8XlsIQIgA0EIaigCAEH3lK+veGwgBWpBDXdBsfPd8XlsIQUgA0EEaigCAEH3lK+veGwgBGpBDXdBsfPd8XlsIQQgA0EQaiIDIAZNDQALC0EAIAI2AoyJAUEAIAU2AoiJAUEAIAQ2AoSJAUEAIAE2AoCJAUEAIAAgA2s2AqCJASAAIANGDQBBACECA0AgAkGQiQFqIAMgAmotAAA6AAAgAkEBaiICQQAoAqCJAUkNAAsLC6QDAgF+Bn9BACkDqIkBIgCnIQECQAJAIABCEFQNAEEAKAKEiQFBB3dBACgCgIkBQQF3akEAKAKIiQFBDHdqQQAoAoyJAUESd2ohAgwBC0EAKAKIiQFBsc/ZsgFqIQILIAIgAWohAkGQiQEhAwJAQQAoAqCJASIEQZCJAWoiBUGUiQFJDQBBkIkBIQEDQCABKAIAQb3cypV8bCACakERd0Gv1tO+AmwhAiABQQhqIQYgAUEEaiIDIQEgBiAFTQ0ACwsCQCADIAVGDQAgBEGPiQFqIQYCQAJAIAQgA2tBAXENACADIQEMAQsgA0EBaiEBIAMtAABBsc/ZsgFsIAJqQQt3QbHz3fF5bCECCyAGIANGDQADQCABQQFqLQAAQbHP2bIBbCABLQAAQbHP2bIBbCACakELd0Gx893xeWxqQQt3QbHz3fF5bCECIAFBAmoiASAFRw0ACwtBACACQQ92IAJzQfeUr694bCIBQQ12IAFzQb3cypV8bCIBQRB2IAFzIgJBGHQgAkGA/gNxQQh0ciABQQh2QYD+A3EgAUEYdnJyrTcDgAkLBgBBgIkBC/MDAgF+BH9BAEIANwOoiQFBACABNgKIiQFBACABQc+Moo4GajYCjIkBQQAgAUH3lK+veGo2AoSJAUEAIAFBqIiNoQJqNgKAiQFBAEEANgKgiQEgABACQQApA6iJASICpyEBAkACQCACQhBUDQBBACgChIkBQQd3QQAoAoCJAUEBd2pBACgCiIkBQQx3akEAKAKMiQFBEndqIQAMAQtBACgCiIkBQbHP2bIBaiEACyAAIAFqIQBBkIkBIQMCQEEAKAKgiQEiBEGQiQFqIgVBlIkBSQ0AQZCJASEBA0AgASgCAEG93MqVfGwgAGpBEXdBr9bTvgJsIQAgAUEIaiEGIAFBBGoiAyEBIAYgBU0NAAsLAkAgAyAFRg0AIARBj4kBaiEGAkACQCAEIANrQQFxDQAgAyEBDAELIANBAWohASADLQAAQbHP2bIBbCAAakELd0Gx893xeWwhAAsgBiADRg0AA0AgAUEBai0AAEGxz9myAWwgAS0AAEGxz9myAWwgAGpBC3dBsfPd8XlsakELd0Gx893xeWwhACABQQJqIgEgBUcNAAsLQQAgAEEPdiAAc0H3lK+veGwiAUENdiABc0G93MqVfGwiAUEQdiABcyIAQRh0IABBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycq03A4AJCwsLAQBBgAgLBDAAAAA=",vS="9e3a00cd",JS={name:HS,data:MS,hash:vS},qS=new he,wa=null;function lE(e){return!Number.isInteger(e)||e<0||e>4294967295?new Error("Seed must be a valid 32-bit long unsigned integer."):null}function Fa(e,t=0){if(lE(t))return Promise.reject(lE(t));if(wa===null)return GS(qS,JS,4).then(A=>(wa=A,wa.calculate(e,t)));try{let A=wa.calculate(e,t);return Promise.resolve(A)}catch(A){return Promise.reject(A)}}var FG=new he;var DG=new ArrayBuffer(8);var kG=new he;var SG=new ArrayBuffer(8);var UG=new he;var NG=new ArrayBuffer(8);var xG=new he;var GG=new he;var HG=new he;function Ku(e){return new Promise((t,A)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>A(e.error)})}function on(e,t){let A=indexedDB.open(e);A.onupgradeneeded=()=>A.result.createObjectStore(t);let i=Ku(A);return(n,r)=>i.then(o=>r(o.transaction(t,n).objectStore(t)))}var Ru;function BE(){return Ru||(Ru=on("keyval-store","keyval")),Ru}function EA(e,t=BE()){return t("readonly",A=>Ku(A.get(e)))}function mA(e,t,A=BE()){return A("readwrite",i=>(i.put(t,e),Ku(i.transaction)))}var bu;try{bu=new TextDecoder}catch{}var G,bt,C=0;var DE=[],Ou=DE,Yu=0,Ee={},te,Fi,Lt=0,yA=0,Oe,zA,Et=[],j,fE={useRecords:!1,mapsAsObjects:!0},es=class{},zu=new es;zu.name="MessagePack 0xC1";var Di=!1,kE=2,dE,QE,CE;try{new Function("")}catch{kE=1/0}var In=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(G)return xE(()=>(ka(),this?this.unpack(t,A):e.prototype.unpack.call(fE,t,A)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t)),typeof A=="object"?(bt=A.end||t.length,C=A.start||0):(C=0,bt=A>-1?A:t.length),Yu=0,yA=0,Fi=null,Ou=DE,Oe=null,G=t;try{j=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw G=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(Ee=this,this.structures)return te=this.structures,Da(A);(!te||te.length>0)&&(te=[])}else Ee=fE,(!te||te.length>0)&&(te=[]);return Da(A)}unpackMultiple(t,A){let i,n=0;try{Di=!0;let r=t.length,o=this?this.unpack(t,r):Ua.unpack(t,r);if(A){if(A(o,n,C)===!1)return;for(;C<r;)if(n=C,A(Da(),n,C)===!1)return}else{for(i=[o];C<r;)n=C,i.push(Da());return i}}catch(r){throw r.lastPosition=n,r.values=i,r}finally{Di=!1,ka()}}_mergeStructures(t,A){QE&&(t=QE.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 Da(e){try{if(!Ee.trusted&&!Di){let A=te.sharedLength||0;A<te.length&&(te.length=A)}let t;if(Ee.randomAccessStructure&&G[C]<64&&G[C]>=32&&dE?(t=dE(G,C,bt,Ee),G=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),C=bt):t=Se(),Oe&&(C=Oe.postBundlePosition,Oe=null),Di&&(te.restoreStructures=null),C==bt)te&&te.restoreStructures&&hE(),te=null,G=null,zA&&(zA=null);else{if(C>bt)throw new Error("Unexpected end of MessagePack data");if(!Di){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 te&&te.restoreStructures&&hE(),ka(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer")||C>bt)&&(t.incomplete=!0),t}}function hE(){for(let e in te.restoreStructures)te[e]=te.restoreStructures[e];te.restoreStructures=null}function Se(){let e=G[C++];if(e<160)if(e<128){if(e<64)return e;{let t=te[e&63]||Ee.getStructures&&SE()[e&63];return t?(t.read||(t.read=Pu(t,e&63)),t.read()):e}}else if(e<144)if(e-=128,Ee.mapsAsObjects){let t={};for(let A=0;A<e;A++){let i=NE();i==="__proto__"&&(i="__proto_"),t[i]=Se()}return t}else{let t=new Map;for(let A=0;A<e;A++)t.set(Se(),Se());return t}else{e-=144;let t=new Array(e);for(let A=0;A<e;A++)t[A]=Se();return Ee.freezeData?Object.freeze(t):t}else if(e<192){let t=e-160;if(yA>=C)return Fi.slice(C-Lt,(C+=t)-Lt);if(yA==0&&bt<140){let A=t<16?_u(t):UE(t);if(A!=null)return A}return Vu(t)}else{let t;switch(e){case 192:return null;case 193:return Oe?(t=Se(),t>0?Oe[1].slice(Oe.position1,Oe.position1+=t):Oe[0].slice(Oe.position0,Oe.position0-=t)):zu;case 194:return!1;case 195:return!0;case 196:if(t=G[C++],t===void 0)throw new Error("Unexpected end of buffer");return Lu(t);case 197:return t=j.getUint16(C),C+=2,Lu(t);case 198:return t=j.getUint32(C),C+=4,Lu(t);case 199:return sn(G[C++]);case 200:return t=j.getUint16(C),C+=2,sn(t);case 201:return t=j.getUint32(C),C+=4,sn(t);case 202:if(t=j.getFloat32(C),Ee.useFloat32>2){let A=Sa[(G[C]&127)<<1|G[C+1]>>7];return C+=4,(A*t+(t>0?.5:-.5)>>0)/A}return C+=4,t;case 203:return t=j.getFloat64(C),C+=8,t;case 204:return G[C++];case 205:return t=j.getUint16(C),C+=2,t;case 206:return t=j.getUint32(C),C+=4,t;case 207:return Ee.int64AsType==="number"?(t=j.getUint32(C)*4294967296,t+=j.getUint32(C+4)):Ee.int64AsType==="string"?t=j.getBigUint64(C).toString():Ee.int64AsType==="auto"?(t=j.getBigUint64(C),t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=j.getBigUint64(C),C+=8,t;case 208:return j.getInt8(C++);case 209:return t=j.getInt16(C),C+=2,t;case 210:return t=j.getInt32(C),C+=4,t;case 211:return Ee.int64AsType==="number"?(t=j.getInt32(C)*4294967296,t+=j.getUint32(C+4)):Ee.int64AsType==="string"?t=j.getBigInt64(C).toString():Ee.int64AsType==="auto"?(t=j.getBigInt64(C),t>=BigInt(-2)<<BigInt(52)&&t<=BigInt(2)<<BigInt(52)&&(t=Number(t))):t=j.getBigInt64(C),C+=8,t;case 212:if(t=G[C++],t==114)return FE(G[C++]&63);{let A=Et[t];if(A)return A.read?(C++,A.read(Se())):A.noBuffer?(C++,A()):A(G.subarray(C,++C));throw new Error("Unknown extension "+t)}case 213:return t=G[C],t==114?(C++,FE(G[C++]&63,G[C++])):sn(2);case 214:return sn(4);case 215:return sn(8);case 216:return sn(16);case 217:return t=G[C++],yA>=C?Fi.slice(C-Lt,(C+=t)-Lt):KS(t);case 218:return t=j.getUint16(C),C+=2,yA>=C?Fi.slice(C-Lt,(C+=t)-Lt):LS(t);case 219:return t=j.getUint32(C),C+=4,yA>=C?Fi.slice(C-Lt,(C+=t)-Lt):bS(t);case 220:return t=j.getUint16(C),C+=2,EE(t);case 221:return t=j.getUint32(C),C+=4,EE(t);case 222:return t=j.getUint16(C),C+=2,mE(t);case 223:return t=j.getUint32(C),C+=4,mE(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 RS=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Pu(e,t){function A(){if(A.count++>kE){let n=e.read=new Function("r","return function(){return "+(Ee.freezeData?"Object.freeze":"")+"({"+e.map(r=>r==="__proto__"?"__proto_:r()":RS.test(r)?r+":r()":"["+JSON.stringify(r)+"]:r()").join(",")+"})}")(Se);return e.highByte===0&&(e.read=pE(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]=Se()}return Ee.freezeData?Object.freeze(i):i}return A.count=0,e.highByte===0?pE(t,A):A}var pE=(e,t)=>function(){let A=G[C++];if(A===0)return t();let i=e<32?-(e+(A<<5)):e+(A<<5),n=te[i]||SE()[i];if(!n)throw new Error("Record id is not defined for "+i);return n.read||(n.read=Pu(n,e)),n.read()};function SE(){let e=xE(()=>(G=null,Ee.getStructures()));return te=Ee._mergeStructures(e,te)}var Vu=ts,KS=ts,LS=ts,bS=ts;function ts(e){let t;if(e<16&&(t=_u(e)))return t;if(e>64&&bu)return bu.decode(G.subarray(C,C+=e));let A=C+e,i=[];for(t="";C<A;){let n=G[C++];if(!(n&128))i.push(n);else if((n&224)===192){let r=G[C++]&63;i.push((n&31)<<6|r)}else if((n&240)===224){let r=G[C++]&63,o=G[C++]&63;i.push((n&31)<<12|r<<6|o)}else if((n&248)===240){let r=G[C++]&63,o=G[C++]&63,s=G[C++]&63,I=(n&7)<<18|r<<12|o<<6|s;I>65535&&(I-=65536,i.push(I>>>10&1023|55296),I=56320|I&1023),i.push(I)}else i.push(n);i.length>=4096&&(t+=be.apply(String,i),i.length=0)}return i.length>0&&(t+=be.apply(String,i)),t}function EE(e){let t=new Array(e);for(let A=0;A<e;A++)t[A]=Se();return Ee.freezeData?Object.freeze(t):t}function mE(e){if(Ee.mapsAsObjects){let t={};for(let A=0;A<e;A++){let i=NE();i==="__proto__"&&(i="__proto_"),t[i]=Se()}return t}else{let t=new Map;for(let A=0;A<e;A++)t.set(Se(),Se());return t}}var be=String.fromCharCode;function UE(e){let t=C,A=new Array(e);for(let i=0;i<e;i++){let n=G[C++];if((n&128)>0){C=t;return}A[i]=n}return be.apply(String,A)}function _u(e){if(e<4)if(e<2){if(e===0)return"";{let t=G[C++];if((t&128)>1){C-=1;return}return be(t)}}else{let t=G[C++],A=G[C++];if((t&128)>0||(A&128)>0){C-=2;return}if(e<3)return be(t,A);let i=G[C++];if((i&128)>0){C-=3;return}return be(t,A,i)}else{let t=G[C++],A=G[C++],i=G[C++],n=G[C++];if((t&128)>0||(A&128)>0||(i&128)>0||(n&128)>0){C-=4;return}if(e<6){if(e===4)return be(t,A,i,n);{let r=G[C++];if((r&128)>0){C-=5;return}return be(t,A,i,n,r)}}else if(e<8){let r=G[C++],o=G[C++];if((r&128)>0||(o&128)>0){C-=6;return}if(e<7)return be(t,A,i,n,r,o);let s=G[C++];if((s&128)>0){C-=7;return}return be(t,A,i,n,r,o,s)}else{let r=G[C++],o=G[C++],s=G[C++],I=G[C++];if((r&128)>0||(o&128)>0||(s&128)>0||(I&128)>0){C-=8;return}if(e<10){if(e===8)return be(t,A,i,n,r,o,s,I);{let a=G[C++];if((a&128)>0){C-=9;return}return be(t,A,i,n,r,o,s,I,a)}}else if(e<12){let a=G[C++],c=G[C++];if((a&128)>0||(c&128)>0){C-=10;return}if(e<11)return be(t,A,i,n,r,o,s,I,a,c);let u=G[C++];if((u&128)>0){C-=11;return}return be(t,A,i,n,r,o,s,I,a,c,u)}else{let a=G[C++],c=G[C++],u=G[C++],l=G[C++];if((a&128)>0||(c&128)>0||(u&128)>0||(l&128)>0){C-=12;return}if(e<14){if(e===12)return be(t,A,i,n,r,o,s,I,a,c,u,l);{let g=G[C++];if((g&128)>0){C-=13;return}return be(t,A,i,n,r,o,s,I,a,c,u,l,g)}}else{let g=G[C++],B=G[C++];if((g&128)>0||(B&128)>0){C-=14;return}if(e<15)return be(t,A,i,n,r,o,s,I,a,c,u,l,g,B);let p=G[C++];if((p&128)>0){C-=15;return}return be(t,A,i,n,r,o,s,I,a,c,u,l,g,B,p)}}}}}function yE(){let e=G[C++],t;if(e<192)t=e-160;else switch(e){case 217:t=G[C++];break;case 218:t=j.getUint16(C),C+=2;break;case 219:t=j.getUint32(C),C+=4;break;default:throw new Error("Expected string")}return ts(t)}function Lu(e){return Ee.copyBuffers?Uint8Array.prototype.slice.call(G,C,C+=e):G.subarray(C,C+=e)}function sn(e){let t=G[C++];if(Et[t]){let A;return Et[t](G.subarray(C,A=C+=e),i=>{C=i;try{return Se()}finally{C=A}})}else throw new Error("Unknown extension type "+t)}var wE=new Array(4096);function NE(){let e=G[C++];if(e>=160&&e<192){if(e=e-160,yA>=C)return Fi.slice(C-Lt,(C+=e)-Lt);if(!(yA==0&&bt<180))return Vu(e)}else return C--,Se().toString();let t=(e<<5^(e>1?j.getUint16(C):e>0?G[C]:0))&4095,A=wE[t],i=C,n=C+e-3,r,o=0;if(A&&A.bytes==e){for(;i<n;){if(r=j.getUint32(i),r!=A[o++]){i=1879048192;break}i+=4}for(n+=3;i<n;)if(r=G[i++],r!=A[o++]){i=1879048192;break}if(i===n)return C=i,A.string;n-=3,i=C}for(A=[],wE[t]=A,A.bytes=e;i<n;)r=j.getUint32(i),A.push(r),i+=4;for(n+=3;i<n;)r=G[i++],A.push(r);let s=e<16?_u(e):UE(e);return s!=null?A.string=s:A.string=Vu(e)}var FE=(e,t)=>{let A=Se().map(r=>r.toString()),i=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,A.highByte=t);let n=te[e];return n&&(n.isShared||Di)&&((te.restoreStructures||(te.restoreStructures=[]))[e]=n),te[e]=A,A.read=Pu(A,i),A.read()};Et[0]=()=>{};Et[0].noBuffer=!0;Et[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 OS={Error,TypeError,ReferenceError};Et[101]=()=>{let e=Se();return(OS[e[0]]||Error)(e[1])};Et[105]=e=>{let t=j.getUint32(C-4);zA||(zA=new Map);let A=G[C],i;A>=144&&A<160||A==220||A==221?i=[]:i={};let n={target:i};zA.set(t,n);let r=Se();return n.used?Object.assign(i,r):(n.target=r,r)};Et[112]=e=>{let t=j.getUint32(C-4),A=zA.get(t);return A.used=!0,A.target};Et[115]=()=>new Set(Se());var Tu=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),YS=typeof globalThis=="object"?globalThis:window;Et[116]=e=>{let t=e[0],A=Tu[t];if(!A)throw new Error("Could not find typed array for code "+t);return new YS[A](Uint8Array.prototype.slice.call(e,1).buffer)};Et[120]=()=>{let e=Se();return new RegExp(e[0],e[1])};var VS=[];Et[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],A=C;return C+=t-e.length,Oe=VS,Oe=[yE(),yE()],Oe.position0=0,Oe.position1=0,Oe.postBundlePosition=C,C=A,Se()};Et[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 xE(e){CE&&CE();let t=bt,A=C,i=Yu,n=Lt,r=yA,o=Fi,s=Ou,I=zA,a=Oe,c=new Uint8Array(G.slice(0,bt)),u=te,l=te.slice(0,te.length),g=Ee,B=Di,p=e();return bt=t,C=A,Yu=i,Lt=n,yA=r,Fi=o,Ou=s,zA=I,Oe=a,G=c,Di=B,te=u,te.splice(0,te.length,...l),Ee=g,j=new DataView(G.buffer,G.byteOffset,G.byteLength),p}function ka(){G=null,zA=null,te=null}var Sa=new Array(147);for(let e=0;e<256;e++)Sa[e]=+("1e"+Math.floor(45.15-e*.30103));var Ua=new In({useRecords:!1}),zS=Ua.unpack,PS=Ua.unpackMultiple,_S=Ua.unpack,Na={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},TS=new Float32Array(1),JG=new Uint8Array(TS.buffer,0,4);var Ga;try{Ga=new TextEncoder}catch{}var Xu,JE,Ha=typeof Buffer<"u",xa=Ha?function(e){return Buffer.allocUnsafeSlow(e)}:Uint8Array,qE=Ha?Buffer:Uint8Array,GE=Ha?4294967296:2144337920,E,As,ae,h=0,at,Fe=null,XS,ZS=21760,WS=/[\u0080-\uFFFF]/,ur=Symbol("record-id"),an=class extends In{constructor(t){super(t),this.offset=0;let A,i,n,r,o,s=qE.prototype.utf8Write?function(m,J){return E.utf8Write(m,J,4294967295)}:Ga&&Ga.encodeInto?function(m,J){return Ga.encodeInto(m,E.subarray(J)).written}:!1,I=this;t||(t={});let a=t&&t.sequential,c=t.structures||t.saveStructures,u=t.maxSharedStructures;if(u==null&&(u=c?32:0),u>8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&&t.moreTypes==null&&(this.moreTypes=!0);let l=t.maxOwnStructures;l==null&&(l=c?32:64),!this.structures&&t.useRecords!=!1&&(this.structures=[]);let g=u>32||l+u>64,B=u+64,p=u+l+64;if(p>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let U=[],d=0,f=0;this.pack=this.encode=function(m,J){if(E||(E=new xa(8192),ae=E.dataView||(E.dataView=new DataView(E.buffer,0,8192)),h=0),at=E.length-10,at-h<2048?(E=new xa(E.length),ae=E.dataView||(E.dataView=new DataView(E.buffer,0,E.length)),at=E.length-10,h=0):h=h+7&2147483640,i=h,J&IU&&(h+=J&255),o=I.structuredClone?new Map:null,I.bundleStrings&&typeof m!="string"?(Fe=[],Fe.size=1/0):Fe=null,r=I.structures,r){r.uninitialized&&(r=I._mergeStructures(I.getStructures()));let k=r.sharedLength||0;if(k>u)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 x=0;x<k;x++){let z=r[x];if(!z)continue;let L,b=r.transitions;for(let re=0,Ae=z.length;re<Ae;re++){let Te=z[re];L=b[Te],L||(L=b[Te]=Object.create(null)),b=L}b[ur]=x+64}this.lastNamedStructuresLength=k}a||(r.nextId=k+64)}n&&(n=!1);let H;try{I.randomAccessStructure&&m&&m.constructor&&m.constructor===Object?ct(m):F(m);let k=Fe;if(Fe&&vE(i,F,0),o&&o.idsToInsert){let x=o.idsToInsert.sort((re,Ae)=>re.offset>Ae.offset?1:-1),z=x.length,L=-1;for(;k&&z>0;){let re=x[--z].offset+i;re<k.stringsPosition+i&&L===-1&&(L=0),re>k.position+i?L>=0&&(L+=6):(L>=0&&(ae.setUint32(k.position+i,ae.getUint32(k.position+i)+L),L=-1),k=k.previous,z++)}L>=0&&k&&ae.setUint32(k.position+i,ae.getUint32(k.position+i)+L),h+=x.length*6,h>at&&q(h),I.offset=h;let b=$S(E.subarray(i,h),x);return o=null,b}return I.offset=h,J&KE?(E.start=i,E.end=h,E):E.subarray(i,h)}catch(k){throw H=k,k}finally{if(r&&(Q(),n&&I.saveStructures)){let k=r.sharedLength||0,x=E.subarray(i,h),z=eU(r,I);if(!H)return I.saveStructures(z,z.isCompatible)===!1?I.pack(m,J):(I.lastNamedStructuresLength=k,x)}J&sU&&(h=i)}};let Q=()=>{f<10&&f++;let m=r.sharedLength||0;if(r.length>m&&!a&&(r.length=m),d>1e4)r.transitions=null,f=0,d=0,U.length>0&&(U=[]);else if(U.length>0&&!a){for(let J=0,H=U.length;J<H;J++)U[J][ur]=0;U=[]}},y=m=>{var J=m.length;J<16?E[h++]=144|J:J<65536?(E[h++]=220,E[h++]=J>>8,E[h++]=J&255):(E[h++]=221,ae.setUint32(h,J),h+=4);for(let H=0;H<J;H++)F(m[H])},F=m=>{h>at&&(E=q(h));var J=typeof m,H;if(J==="string"){let k=m.length;if(Fe&&k>=4&&k<4096){if((Fe.size+=k)>ZS){let b,re=(Fe[0]?Fe[0].length*3+Fe[1].length:0)+10;h+re>at&&(E=q(h+re));let Ae;Fe.position?(Ae=Fe,E[h]=200,h+=3,E[h++]=98,b=h-i,h+=4,vE(i,F,0),ae.setUint16(b+i-3,h-i-b)):(E[h++]=214,E[h++]=98,b=h-i,h+=4),Fe=["",""],Fe.previous=Ae,Fe.size=0,Fe.position=b}let L=WS.test(m);Fe[L?0:1]+=m,E[h++]=193,F(L?-k:k);return}let x;k<32?x=1:k<256?x=2:k<65536?x=3:x=5;let z=k*3;if(h+z>at&&(E=q(h+z)),k<64||!s){let L,b,re,Ae=h+x;for(L=0;L<k;L++)b=m.charCodeAt(L),b<128?E[Ae++]=b:b<2048?(E[Ae++]=b>>6|192,E[Ae++]=b&63|128):(b&64512)===55296&&((re=m.charCodeAt(L+1))&64512)===56320?(b=65536+((b&1023)<<10)+(re&1023),L++,E[Ae++]=b>>18|240,E[Ae++]=b>>12&63|128,E[Ae++]=b>>6&63|128,E[Ae++]=b&63|128):(E[Ae++]=b>>12|224,E[Ae++]=b>>6&63|128,E[Ae++]=b&63|128);H=Ae-h-x}else H=s(m,h+x);H<32?E[h++]=160|H:H<256?(x<2&&E.copyWithin(h+2,h+1,h+1+H),E[h++]=217,E[h++]=H):H<65536?(x<3&&E.copyWithin(h+3,h+2,h+2+H),E[h++]=218,E[h++]=H>>8,E[h++]=H&255):(x<5&&E.copyWithin(h+5,h+3,h+3+H),E[h++]=219,ae.setUint32(h,H),h+=4),h+=H}else if(J==="number")if(m>>>0===m)m<32||m<128&&this.useRecords===!1||m<64&&!this.randomAccessStructure?E[h++]=m:m<256?(E[h++]=204,E[h++]=m):m<65536?(E[h++]=205,E[h++]=m>>8,E[h++]=m&255):(E[h++]=206,ae.setUint32(h,m),h+=4);else if(m>>0===m)m>=-32?E[h++]=256+m:m>=-128?(E[h++]=208,E[h++]=m+256):m>=-32768?(E[h++]=209,ae.setInt16(h,m),h+=2):(E[h++]=210,ae.setInt32(h,m),h+=4);else{let k;if((k=this.useFloat32)>0&&m<4294967296&&m>=-2147483648){E[h++]=202,ae.setFloat32(h,m);let x;if(k<4||(x=m*Sa[(E[h]&127)<<1|E[h+1]>>7])>>0===x){h+=4;return}else h--}E[h++]=203,ae.setFloat64(h,m),h+=8}else if(J==="object"||J==="function")if(!m)E[h++]=192;else{if(o){let x=o.get(m);if(x){if(!x.id){let z=o.idsToInsert||(o.idsToInsert=[]);x.id=z.push(x)}E[h++]=214,E[h++]=112,ae.setUint32(h,x.id),h+=4;return}else o.set(m,{offset:h-i})}let k=m.constructor;if(k===Object)K(m,!0);else if(k===Array)y(m);else if(k===Map)if(this.mapAsEmptyObject)E[h++]=128;else{H=m.size,H<16?E[h++]=128|H:H<65536?(E[h++]=222,E[h++]=H>>8,E[h++]=H&255):(E[h++]=223,ae.setUint32(h,H),h+=4);for(let[x,z]of m)F(x),F(z)}else{for(let x=0,z=Xu.length;x<z;x++){let L=JE[x];if(m instanceof L){let b=Xu[x];if(b.write){b.type&&(E[h++]=212,E[h++]=b.type,E[h++]=0);let Vt=b.write.call(this,m);Vt===m?Array.isArray(m)?y(m):K(m):F(Vt);return}let re=E,Ae=ae,Te=h;E=null;let Yt;try{Yt=b.pack.call(this,m,Vt=>(E=re,re=null,h+=Vt,h>at&&q(h),{target:E,targetView:ae,position:h-Vt}),F)}finally{re&&(E=re,ae=Ae,h=Te,at=E.length-10)}Yt&&(Yt.length+h>at&&q(Yt.length+h),h=jS(Yt,E,h,b.type));return}}if(Array.isArray(m))y(m);else{if(m.toJSON){let x=m.toJSON();if(x!==m)return F(x)}if(J==="function")return F(this.writeFunction&&this.writeFunction(m));K(m,!m.hasOwnProperty)}}}else if(J==="boolean")E[h++]=m?195:194;else if(J==="bigint"){if(m<BigInt(1)<<BigInt(63)&&m>=-(BigInt(1)<<BigInt(63)))E[h++]=211,ae.setBigInt64(h,m);else if(m<BigInt(1)<<BigInt(64)&&m>0)E[h++]=207,ae.setBigUint64(h,m);else if(this.largeBigIntToFloat)E[h++]=203,ae.setFloat64(h,Number(m));else if(this.useBigIntExtension&&m<2n**1023n&&m>-(2n**1023n)){E[h++]=199,h++,E[h++]=66;let k=[],x;do{let z=m&0xffn;x=(z&0x80n)===(m<0n?0x80n:0n),k.push(z),m>>=8n}while(!((m===0n||m===-1n)&&x));E[h-2]=k.length;for(let z=k.length;z>0;)E[h++]=Number(k[--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");h+=8}else if(J==="undefined")this.encodeUndefinedAsNil?E[h++]=192:(E[h++]=212,E[h++]=0,E[h++]=0);else throw new Error("Unknown type: "+J)},w=this.variableMapSize||this.coercibleKeyAsNumber?m=>{let J=Object.keys(m),H=J.length;H<16?E[h++]=128|H:H<65536?(E[h++]=222,E[h++]=H>>8,E[h++]=H&255):(E[h++]=223,ae.setUint32(h,H),h+=4);let k;if(this.coercibleKeyAsNumber)for(let x=0;x<H;x++){k=J[x];let z=Number(k);F(isNaN(z)?k:z),F(m[k])}else for(let x=0;x<H;x++)F(k=J[x]),F(m[k])}:(m,J)=>{E[h++]=222;let H=h-i;h+=2;let k=0;for(let x in m)(J||m.hasOwnProperty(x))&&(F(x),F(m[x]),k++);E[H+++i]=k>>8,E[H+i]=k&255},D=this.useRecords===!1?w:t.progressiveRecords&&!g?(m,J)=>{let H,k=r.transitions||(r.transitions=Object.create(null)),x=h++-i,z;for(let L in m)if(J||m.hasOwnProperty(L)){if(H=k[L],H)k=H;else{let b=Object.keys(m),re=k;k=r.transitions;let Ae=0;for(let Te=0,Yt=b.length;Te<Yt;Te++){let Vt=b[Te];H=k[Vt],H||(H=k[Vt]=Object.create(null),Ae++),k=H}x+i+1==h?(h--,X(k,b,Ae)):Ue(k,b,x,Ae),z=!0,k=re[L]}F(m[L])}if(!z){let L=k[ur];L?E[x+i]=L:Ue(k,Object.keys(m),x,0)}}:(m,J)=>{let H,k=r.transitions||(r.transitions=Object.create(null)),x=0;for(let L in m)(J||m.hasOwnProperty(L))&&(H=k[L],H||(H=k[L]=Object.create(null),x++),k=H);let z=k[ur];z?z>=96&&g?(E[h++]=((z-=96)&31)+96,E[h++]=z>>5):E[h++]=z:X(k,k.__keys__||Object.keys(m),x);for(let L in m)(J||m.hasOwnProperty(L))&&F(m[L])},S=typeof this.useRecords=="function"&&this.useRecords,K=S?(m,J)=>{S(m)?D(m,J):w(m,J)}:D,q=m=>{let J;if(m>16777216){if(m-i>GE)throw new Error("Packed buffer would be larger than maximum buffer size");J=Math.min(GE,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 H=new xa(J);return ae=H.dataView||(H.dataView=new DataView(H.buffer,0,J)),m=Math.min(m,E.length),E.copy?E.copy(H,0,i,m):H.set(E.slice(i,m)),h-=i,i=0,at=H.length-10,E=H},X=(m,J,H)=>{let k=r.nextId;k||(k=64),k<B&&this.shouldShareStructure&&!this.shouldShareStructure(J)?(k=r.nextOwnId,k<p||(k=B),r.nextOwnId=k+1):(k>=p&&(k=B),r.nextId=k+1);let x=J.highByte=k>=96&&g?k-96>>5:-1;m[ur]=k,m.__keys__=J,r[k-64]=J,k<B?(J.isShared=!0,r.sharedLength=k-63,n=!0,x>=0?(E[h++]=(k&31)+96,E[h++]=x):E[h++]=k):(x>=0?(E[h++]=213,E[h++]=114,E[h++]=(k&31)+96,E[h++]=x):(E[h++]=212,E[h++]=114,E[h++]=k),H&&(d+=f*H),U.length>=l&&(U.shift()[ur]=0),U.push(m),F(J))},Ue=(m,J,H,k)=>{let x=E,z=h,L=at,b=i;E=As,h=0,i=0,E||(As=E=new xa(8192)),at=E.length-10,X(m,J,k),As=E;let re=h;if(E=x,h=z,at=L,i=b,re>1){let Ae=h+re-1;Ae>at&&q(Ae);let Te=H+i;E.copyWithin(Te+re,Te+1,h),E.set(As.slice(0,re),Te),h=Ae}else E[H+i]=As[0]},ct=(m,J)=>{let H=XS(m,E,i,h,r,q,(k,x,z)=>{if(z)return n=!0;h=x;let L=E;return F(k),Q(),L!==E?{position:h,targetView:ae,target:E}:h},this);if(H===0)return K(m,!0);h=H}}useBuffer(t){E=t,ae=new DataView(E.buffer,E.byteOffset,E.byteLength),h=0}clearSharedData(){this.structures&&(this.structures=[]),this.typedStructs&&(this.typedStructs=[])}};JE=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,es];Xu=[{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?HE(e,16,t):ME(Ha?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let A=e.constructor;A!==qE&&this.moreTypes?HE(e,Tu.indexOf(A.name),t):ME(e,t)}},{pack(e,t){let{target:A,position:i}=t(1);A[i]=193}}];function HE(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 ME(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 jS(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 $S(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 vE(e,t,A){if(Fe.length>0){ae.setUint32(Fe.position+e,h+A-Fe.position-e),Fe.stringsPosition=h-e;let i=Fe;Fe=null,t(i[0]),t(i[1])}}function eU(e,t){return e.isCompatible=A=>{let i=!A||(t.lastNamedStructuresLength||0)===A.length;return i||t._mergeStructures(A),i},e}var RE=new an({useRecords:!1}),tU=RE.pack,AU=RE.pack;var{NEVER:iU,ALWAYS:nU,DECIMAL_ROUND:rU,DECIMAL_FIT:oU}=Na,KE=512,sU=1024,IU=2048;var eB=R(VE(),1),iH=eB.default.configure,zE=eB.default;var PE={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"}},_E={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 fe=window;var TE=e=>on(`prasi-user-${e}`,"default");var XE=new an({structuredClone:!0}),is={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3};fe.debug=new Proxy({},{get(e,t,A){if(t==="off")return is.debug=!1,localStorage.removeItem("prasi-ws-debug"),console.clear(),["WS DEBUG: Deactivated"];if(t==="on")return is.debug=!0,localStorage.setItem("prasi-ws-debug","1"),console.clear(),["WS DEBUG: Activated"]}});var wA={ws:null,client_id:"",idb:null,event:null},tB={action:{pending:{}}},ZE=(e,t)=>{let A=XE.pack(t);is.debug&&console.log("%c\u2B06","color:blue",jE(A.length,0),t),e.send(A)},WE=async e=>{let{user_id:t,site_id:A,page_id:i,events:n}=e;return wA.idb=TE(t),await BU({user_id:t,site_id:A,page_id:i},n),new oE(PE,({target:r,trapName:o,value:s,key:I,DEFAULT:a,PROXY:c})=>{if(o==="set")throw new TypeError("target is immutable");return typeof s=="string"?(...u)=>new Promise(l=>{CU({code:s,resolve:l,args:u})}):o==="get"&&typeof s=="object"&&s!==null?c:a})},BU=(e,t)=>{let{user_id:A,page_id:i,site_id:n}=e;return wA.event=t,fe.offline?new Promise(async r=>{r();let o="editor_start",s=await QU(o);t[o]&&t[o](s)}):new Promise((r,o)=>{if(!wA.ws){let s=0,I=()=>{let a=new URL(fe.basehost||location.href);a.pathname="/sync",a.protocol=a.protocol==="http:"?"ws:":"wss:";let c=new WebSocket(`${a.protocol}//${a.host}${a.pathname}`);c.onopen=()=>{ZE(c,{type:1,user_id:A,site_id:n,page_id:i}),wA.ws=c,t.opened()},c.onclose=async()=>{t.disconnected().reconnect?setTimeout(async()=>{s++,I()},s*is.reconnectTimeout):o()},c.onmessage=async u=>{let l=u.data,g=XE.unpack(Buffer.from(await l.arrayBuffer()));if(is.debug&&console.log("%c\u2B07","color:red",jE(l.size,0),g),g.type===0)wA.client_id=g.client_id,t.shakehand(g.client_id),r();else if(g.type===2){let B=g.event;t[B]&&(fU.includes(B)&&dU(B,g.data),t[B](g.data))}else if(g.type===4){let B=tB.action.pending[g.argid];if(B){B.resolve(g.val),delete tB.action.pending[g.argid];let p=wA.idb;p&&await mA(g.argid,g.val,p)}}}};I()}})},fU=["editor_start"],dU=async(e,t)=>{let A=wA.idb;if(A){let i=await Fa(`ev-${e}`);await mA(i,t,A)}},QU=async e=>{let t=wA.idb;if(t){let A=await Fa(`ev-${e}`);return await EA(A,t)}},CU=async e=>{let{args:t,code:A,resolve:i}=e,n=wA.ws,r=wA.idb;if(r){let o=zE(t),s=_E[A],I=await Fa(`op-${s}-${o}`);if(n&&n.readyState===n.OPEN)tB.action.pending[I]={ts:Date.now(),resolve:i},ZE(n,{type:3,code:A,args:t,argid:I});else{let a=await EA(I,r);i(a)}}};function jE(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 Br={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function fr(e={}){let t={options:e,rootNode:em(),staticRoutesMap:{}},A=i=>e.strictTrailingSlash?i:i.replace(/\/$/,"")||"/";if(e.routes)for(let i in e.routes)$E(t,A(i),e.routes[i]);return{ctx:t,lookup:i=>hU(t,A(i)),insert:(i,n)=>$E(t,A(i),n),remove:i=>pU(t,A(i))}}function hU(e,t){let A=e.staticRoutesMap[t];if(A)return A.data;let i=t.split("/"),n={},r=!1,o=null,s=e.rootNode,I=null;for(let a=0;a<i.length;a++){let c=i[a];s.wildcardChildNode!==null&&(o=s.wildcardChildNode,I=i.slice(a).join("/"));let u=s.children.get(c);if(u!==void 0)s=u;else if(s=s.placeholderChildNode,s!==null)n[s.paramName]=c,r=!0;else break}return(s===null||s.data===null)&&o!==null&&(s=o,n[s.paramName||"_"]=I,r=!0),s?r?{...s.data,params:r?n:void 0}:s.data:null}function $E(e,t,A){let i=!0,n=t.split("/"),r=e.rootNode,o=0;for(let s of n){let I;if(I=r.children.get(s))r=I;else{let a=EU(s);I=em({type:a,parent:r}),r.children.set(s,I),a===Br.PLACEHOLDER?(I.paramName=s==="*"?`_${o++}`:s.slice(1),r.placeholderChildNode=I,i=!1):a===Br.WILDCARD&&(r.wildcardChildNode=I,I.paramName=s.slice(3)||"_",i=!1),r=I}}return r.data=A,i===!0&&(e.staticRoutesMap[t]=r),r}function pU(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 em(e={}){return{type:e.type||Br.NORMAL,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildNode:null}}function EU(e){return e.startsWith("**")?Br.WILDCARD:e[0]===":"||e==="*"?Br.PLACEHOLDER:Br.NORMAL}var AB={id:"",name:"",domain:"",config:{api_url:""},js:"",js_compiled:"",responsive:"",layout:{id:"--",meta:void 0,entry:[]},code:{snapshot:{},mode:"old"}},mU={id:"",name:"",url:"",snapshot:null,comps:{}};var tt={active_id:!1,comp_id:!1,instance_comp_id:!1,instance_item_id:!1},va={should_render_main:!0,hover:{id:""},script_nav:{list:[],idx:-1},text:{id:"",content:"",timeout:null,el:null},get item_id(){return tt.active_id===!1&&(tt.active_id=localStorage.getItem("prasi-active-id")||""),tt.active_id||""},set item_id(e){localStorage.setItem("prasi-active-id",e||""),tt.active_id=e||""},get comp_id(){return tt.comp_id===!1&&(tt.comp_id=localStorage.getItem("prasi-comp-id")||""),tt.comp_id||""},set comp_id(e){localStorage.setItem("prasi-comp-id",e||""),tt.comp_id=e||""},instance:{get comp_id(){return tt.instance_comp_id===!1&&(tt.instance_comp_id=localStorage.getItem("prasi-instance-comp-id")||""),tt.instance_comp_id||""},set comp_id(e){localStorage.setItem("prasi-instance-comp-id",e||""),tt.instance_comp_id=e||""},get item_id(){return tt.instance_item_id===!1&&(tt.instance_item_id=localStorage.getItem("prasi-instance-item-id")||""),tt.instance_item_id||""},set item_id(e){localStorage.setItem("prasi-instance-item-id",e||""),tt.instance_item_id=e||""}}},FH={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:uA(AB),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:mU,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:{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 am=R(nB());var cm=e=>{let{item:t,item_comp:A,ids:i}=e,n=uA(A);if(gm(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}for(let r of Object.keys(t))delete t[r];for(let[r,o]of Object.entries(n))t[r]=o},gm=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,am.createId)()),e.id=t[e.id],e.childs)for(let A of e.childs)gm(A,t)};var lm=e=>{for(let[t,A]of Object.entries(e.item_comp.component?.props||{})){let i=uA(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 Ja=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 um=(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]),cm({item:A,item_comp:i,ids:o})}let r={item:Ja(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),lm({item:A,item_comp:i,instance:n?n[A.id]:{},each(o,s){let I=A.component?.id;s.meta?.type==="content-element"&&I&&s.content&&(s.content.name=o,Nt({...e,mode:"comp"},{item:s.content,root:t.root||s.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:I,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:")||Nt({...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 Nt=(e,t)=>{let A=t.item;if(A.type==="item"&&A.component?.id&&t.ignore_first_component!==!0){um(e,t);return}let i={item:Ja(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}),Nt(e,o)}}};var qa=async(e,t,A,i)=>{let n=new Set,r={root:t};if(Nt({...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[I,a]of Object.entries(o.props))a.meta?.type==="content-element"&&a.content&&Nt({...e,on:{visit_component:({component:c})=>{if(c){let{id:u}=c;e.comps[u]||(!i||i&&!i.has(u))&&n.add(u)}},visit(c,u){A.visit&&A.visit(c,u,r)}},set_meta:!1,note:"init-load-comp-prop"},{item:a.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 I=e.comps[s];I&&await qa(e,I,A,o)}}};var GU=on("prasi-cache","prasi-cache-store"),ln={timeout:null,store:GU},Ra=(e,t)=>{let A=[...Bm(t,"navigate(",")"),...Bm(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(ln.timeout),ln.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[i])})},100)},Bm=(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 I=e.indexOf(`${s}${A}`,o+t.length+1),a=e.substring(o+t.length+1,I);i=I+2+A.length,r.push(a)}}if(n===i)break}return r};var fm=R(nB());var Ka=()=>{let e=document.activeElement;return!!(e&&e.attributes.getNamedItem("contenteditable"))};var La=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 I=s.get("content");I&&(t.mitem=I)}}}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 I=t.mitem?.get("component")?.get("props")?.get(o);if(!I){let a=t.mitem?.get("component")?.get("props");a&&e.new_prop_jsx(t,a,o,s)}if(s.content)if(I){let a=n[s.content.id];a&&(a.mitem=I.get("content"))}else{let a=t.mitem?.get("component")?.get("props");a&&e.new_prop_jsx(t,a,o,s)}}}};var ba=(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;i.find(n=>n.id===t.item.id)?console.warn("Double Tree Item: ",t.item.id,t.item.name):t.parent?.comp_id?t.jsx_prop?.is_root?i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.jsx_prop.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}):i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t})};var Ya=async(e,t,A)=>{if(e.comp.list[t])return;let i=new Y.Doc;Y.applyUpdate(i,dt(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 Oa(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(I,a){if(a==="sv_remote"||a==="local")return;let c=await e.sync?.yjs.sv_local("comp",t,Buffer.from($t(I)));if(c){let u=Y.encodeStateAsUpdate(i,dt(c.sv));Y.applyUpdate(i,dt(c.diff),"local"),await e.sync?.yjs.diff_local("comp",t,Buffer.from($t(u)));let l=await Oa(e,e.comp.list[t].doc,t);if(l&&(e.comp.list[t].meta=l.meta,e.comp.list[t].tree=l.tree),e.comp.loaded[t]=i.getMap("map").get("root")?.toJSON(),Ka())return;iA(e),e.render()}}},i.on("update",e.comp.list[t].on_update))}}},Oa=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 qa({comps:e.comp.loaded,meta:n,set_meta:!1,mode:"comp"},o,{load:async s=>{let I=s.filter(c=>!e.comp.loaded[c]),a=await e.sync?.comp.load(I,!0);if(a){let c=Object.entries(a);for(let[u,l]of c)l&&l.snapshot&&!e.comp.list[u]&&await Ya(e,u,l.snapshot)}}}),Nt({comps:e.comp.loaded,meta:n,mode:"comp",on:{async visit(s){ba(e,s,n,r),La({m:s,root:o,mitem:i,meta:n,new_prop_jsx(I,a,c,u){rB.list.push(()=>{let l=new Y.Map;u.content&&(u.content.id=(0,fm.createId)()),syncronize(l,u),a.set(c,l)})}})}},note:"load-comp-scan-meta"},{item:o,ignore_first_component:!0}),rB.list.length>0&&e.page.doc?.transact(()=>{for(let s of rB.list)s()}),e.comp.loaded[A]=o,{meta:n,tree:r,item:o}},rB={list:[]};var iA=async(e,t)=>{if(document.activeElement){let o=document.activeElement;if(o.tagName==="DIV"&&o.getAttribute("contenteditable")==="true")return}va.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 a=s.doc.getMap("map").get("root")?.toJSON();a&&(e.comp.loaded[o]=a)}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&&Nt({note:"tree-rebuild",comps:e.comp.loaded,meta:r,mode:"page",on:{async visit(I){A||((I.parent?.instance_id!==I.parent?.id||I.jsx_prop)&&ba(e,I,r,e.page.tree),La({m:I,root:s,mitem:o,meta:r,new_prop_jsx(a,c,u,l){if(!c.get(u)){let g=new Y.Map;syncronize(g,l),c.set(u,g)}}}))}}},{item:s})}if(A)e.site.layout.meta=r;else{let o="root";if(e.site.layout&&e.site.layout.meta){for(let[s,I]of Object.entries(e.site.layout.meta))if(I.item.name==="content"){o=I.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}};BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var os=window,dr=async(e,t,A)=>{let i={...A},n=t,r=!1,o=async a=>{if(!(a instanceof os.FormData||a instanceof os.File))i["content-type"]="application/json";else if(a instanceof os.File){r=!0;let c=await new Promise(u=>{let l=new FileReader;l.addEventListener("load",g=>{u(g.target?.result)}),l.readAsArrayBuffer(a)});c&&(a=new File([c],a.name))}return a};Array.isArray(t)?n=await Promise.all(t.map(a=>o(a))):n=await o(t),r||(n=JSON.stringify(n));let s=new URL(location.href),I=new URL(e);if(s.host===I.host){let c=await(await fetch(I.pathname,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(c)}catch{return c}}else if(t instanceof File||Array.isArray(t)&&t[0]instanceof File){let a=new URL(e);if(A["content-type"]="multipart/form-data",t instanceof File){let c=new FormData;return c.append("file",t),await(await fetch(a.pathname,{body:c,method:"POST",headers:A})).text()}else{let c=new FormData,u=1;for(let g of t)c.append("file-"+u++,g);return await(await fetch(a.pathname,{body:c,method:"POST",headers:A})).text()}}else{let a=await fetch(`${os.basehost?os.basehost:""}/_proxy`,{method:"POST",body:JSON.stringify([{url:e,body:n,headers:i}]),headers:{"content-type":"application/json"}}),c="";try{return c=await a.text(),JSON.parse(c)}catch{let l=null;try{l=JSON.stringify(JSON.parse(n),null,2)}catch{}return console.warn(`
|
|
|
|
\u26A1 Failed to JSON.parse fetch result of ${e}:
|
|
|
|
${JSON.stringify(c)}
|
|
|
|
with params:
|
|
${l}`),c}}};var Hm=R(Gm());var Qr=async(e,t)=>{let A=(0,Hm.default)(e,"/"),i=await dr(I3(A,"/_prasi/_")),n="";i&&i.prasi&&(n=i.prasi);let r=s3(A);if(n==="v2")await new Promise(o=>{let s=document,I=s.createElement("script");I.onload=async()=>{o()},localStorage.getItem("api-ts-"+A)||localStorage.setItem("api-ts-"+A,Date.now().toString());let a=localStorage.getItem("api-ts-"+A);t?I.src=`${r}/_prasi/load.js?url=${A}&v3&dev=1&ts=${a}`:I.src=`${r}/_prasi/load.js?url=${A}&v3&ts=${a}`,document.querySelector(`script[src="${I.src}"]`)?o():s.body.appendChild(I)});else{let o=await fetch(r+"/_prasi/api-entry");if(fe.prasiApi[A]={apiEntry:(await o.json()).srv},t){let s=await fetch(r+"/_prasi/api-types");fe.prasiApi[A].apiTypes=await s.text(),fe.prasiApi[A].prismaTypes={"prisma.d.ts":await aB(`${r}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await aB(`${r}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await aB(`${r}/_prasi/prisma/runtime/library.d.ts`)}}}},s3=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},I3=(e,t)=>{let A=new URL(e);return A.pathname=t,A.toString()},aB=async(e,t)=>await(await fetch(e)).text();var ss={},Cr=e=>{fe.prasiApi||(fe.prasiApi={});try{let t=new URL(e),A=`${t.protocol}//${t.host}`;return fe.prasiApi[A]||ss[A]||(ss[A]=Qr(A,location.hostname.includes("prasi"))),new Proxy({},{get:(i,n)=>{let r=o=>function(...s){return new Promise(async(I,a)=>{try{let c=fe.prasiApi[A];if(!c&&ss&&typeof ss[A]=="object"&&(await ss[A],c=fe.prasiApi[A]),c){if(c.apiEntry||(c.apiEntry={}),c.apiEntry&&!c.apiEntry[o]){a(`API ${o.toString()} not found, existing API:
|
|
- ${Object.keys(c||{}).join(`
|
|
- `)}`);return}let u=c.apiEntry[o].url,l=c.apiEntry[o].args;if(u&&l){if(s.length>0&&l.length>0)for(let[p,U]of Object.entries(s)){let d=l[parseInt(p)];l&&l.includes(d)&&U&&typeof U!="string"&&typeof U!="number"||(u=u.replace(`:${d}?`,U+""),u=u.replace(`:${d}`,U+""))}let g=`${A}${u}`,B=await a3(g,s);I(B)}else console.error(`API Not Found: ${o.toString()}`)}else a("Failed to load API: "+A)}catch(c){a(c)}})};return n==="then"?new Proxy({},{get:(o,s)=>r(s)}):r(n)}})}catch{return console.warn("Init API failed for URL: ",JSON.stringify(e)),null}},a3=async(e,t)=>await dr(e,t,{"content-type":"application/json"});var qm=R(Jm());var hr=e=>new Proxy({},{get(t,A){return A==="_tables"?()=>za({name,action:"definition",table:"*"},e):A==="_definition"?i=>za({name,action:"definition",table:i},e):A.startsWith("$")?(...i)=>za({name,action:"query",table:A,params:i},e):new Proxy({},{get(i,n){return(...r)=>(A==="query"&&(A=n,n="query"),za({name,action:n,table:A,params:r},e))}})}}),Va={},za=async(e,t)=>{let A=new URL(t);A.pathname="/_dbs",e.table&&(A.pathname+=`/${e.table}`);let i=A.toString(),n=(0,qm.default)(e),r=Va[n];if(!r||r&&Date.now()-r.timestamp>1e3){Va[n]={timestamp:Date.now(),promise:dr(i,e,{"content-type":"application/json"}),result:null};let o=await Va[n].promise;return Va[n].result=o,o}return await r.promise};function B3(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function f3(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 "${fe.basehost?fe.basehost+e:B3(e)}"; window.${i} = m;`,I=new Blob([s],{type:"text/javascript"});n.src=URL.createObjectURL(I),document.head.appendChild(n)}):""}var Pa=f3;var pr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var _a=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 Pa(s)}let i=e.site.api_url;i||(i=(A.config||{}).api_url||"");try{let o=new URL(i);if(i&&o.hostname)try{await Qr(i,!0)}catch{console.warn("Failed to load API:",i)}}catch{}let n=`/npm/site/${e.site.id}/site.js`;await Pa(n),e.site.db.get()||e.site.db.set(hr(i)),e.site.api.get()||e.site.api.set(Cr(i));let r=window;if(A.js_compiled){let o=A.config,s=(a,c)=>(o.api_url&&!c.api&&(c.api=e.site.api.get(),c.db=e.site.db.get()),c.params=r.params,c.module={},new Function(...Object.keys(c),a)(...Object.values(c))),I={...pr({site:e.site,mode:e.mode}),types:{},exports:r.exports,load:Pa,render:e.render,module:{exports:{}}};if(await s(A.js_compiled,I),I.module.exports)for(let[a,c]of Object.entries(I.module.exports))r.exports[a]=c}}};var Rm=(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 d3=new TextEncoder,Lm=async e=>{let t=e.site.config.api_url;try{let A=new URL(t);if(t&&A.hostname){await Qr(t,!0);let i=fe.prasiApi[t];if(i&&i.apiTypes&&i.prismaTypes){let n=JSON.stringify({api:i.apiTypes,prisma:i.prismaTypes}),r=Rm(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($t(d3.encode(n)));e.sync?.code.action({type:"push-typings",site_id:e.site.id,body:s,hash:r})}}}}catch{console.warn("Failed to load API:",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,dt(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");Km(e,o),iA(e),e.render(),r.on("update",(s,I)=>{let a=r.getMap("map").get("files")?.get("index.js");Km(e,a),iA(e),e.render()})}}},Km=(e,t)=>{if(t){let A=window;e.site.config.api_url&&(A.db=hr(e.site.config.api_url),A.api=Cr(e.site.config.api_url));let i=Ta(t);if(e.global_prop=Object.keys(i),typeof i=="object")for(let[n,r]of Object.entries(i))A[n]=r}};var cB=async(e,t,A)=>{e.site=t,!e.script.db&&!e.script.api&&(e.site.code.mode==="old"?await _a({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 Lm(e))};var bm=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 Ya(e,r,o.snapshot);if(e.page.cur=n,n.snapshot){let r=new Y.Doc;Y.applyUpdate(r,dt(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,I)=>{if(I==="local"||!e.sync)return;if(o.page.id!==n.id){alert(`Page ID Mismatch!
|
|
Refreshing to preventing data loss...`),location.reload();return}let a=await e.sync.yjs.sv_local("page",e.page.cur.id,Buffer.from($t(s)));if(a){let c=Y.encodeStateAsUpdate(r,dt(a.sv));Y.applyUpdate(r,dt(a.diff),"local"),Ka()||await iA(e,{note:A+" page-on-update"}),await e.sync.yjs.diff_local("page",e.page.cur.id,Buffer.from($t(c))),e.ui.syncing=!1,e.page.entry=r.getMap("map").get("root")?.get("childs")?.map(u=>u.get("id")),va.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 Om=R(Ie()),Q3=new TextDecoder,un={list:[],route:null},C3=e=>{let t=JSON.parse(localStorage.getItem("prasi-session")||"null");if(!t&&location.pathname.startsWith("/ed/"))return location.href="/login",(0,Om.jsx)(Pi,{note:"logging in"});if(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"),location.pathname.startsWith("/vi/")){if(un.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(n=>{un.list=n,C3(e)});return}if(!un.route){un.route=fr();for(let n of un.list)un.route.insert(n.url,n)}let i="/"+location.pathname.split("/").slice(3).join("/");if(!params.page_id){let n=un.route.lookup(i);if(n&&(params.page_id=n.id,n.params))for(let[r,o]of Object.entries(n.params))["site_id","page_id"].includes(r)||(params[r]=o)}}if(!params.page_id&&location.pathname.startsWith("/ed"))return params.site_id?_db.page.findFirst({where:{is_deleted:!1,is_default_layout:!1,id_site:params.site_id},select:{id:!0,id_site:!0}}).then(async A=>{if(A)location.href=`/ed/${params.site_id}/${A.id}`;else{let i=await _db.page.create({data:{content_tree:{childs:[],id:"root",type:"root"},name:"home",url:"/",site:{connect:{id:params.site_id}}}});i&&(location.href=`/ed/${params.site_id}/${i.id}`)}}):_db.page.findFirst({where:{is_deleted:!1,is_default_layout:!1,site:{id_user:e.user.id}},select:{id:!0,id_site:!0}}).then(A=>{A&&(location.href=`/ed/${A.id_site}/${A.id}`)}),!1;if(e.sync){if(e.site.id==="--loading--")return!1;if(params.site_id!==e.site.id)return e.site=uA(AB),e.site.id="--loading--",e.ui.popup.code.init=!1,e.sync.site.load(params.site_id).then(async A=>{A?(await cB(e,A,"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(A=>{A&&(location.href=`/ed/${params.site_id}/${A.id}`)}),!1}return!e.sync&&!e.sync_assigned?(e.sync_assigned=!0,WE({user_id:e.user.id,site_id:params.site_id,page_id:params.page_id,events:{opened(){fe.offline?(console.log("reconnected!"),fe.offline=!1,e.ui.syncing=!0,e.render()):(fe.offline=!1,e.render())},shakehand(A){e.user.client_id=A},disconnected(){return console.log("offline, reconnecting..."),fe.offline=!0,e.render(),{reconnect:!0}},async editor_start(A){params.site_id!==A.site_id||params.page_id!==A.page_id?e.page.cur.id||(e.site.id=A.site_id,e.page.cur.id=A.page_id,location.pathname.startsWith("/ed/")&&(location.href=`/ed/${A.site_id}/${A.page_id}`)):(e.site.id=A.site_id,e.page.cur.id=A.page_id,e.render())},site_updated(A){for(let[i,n]of Object.entries(A))i==="js"||i==="js_compiled"?e.site[i]=Q3.decode(dt(n)):e.site[i]=n;e.render()},async remote_svlocal(A){let i=null;if(A.type==="page"&&e.page.cur.id===A.id?i=e.page.doc:A.type==="comp"&&e.comp.list[A.id]?i=e.comp.list[A.id].doc:A.type==="code"&&(i=e.code.site.doc),i&&e.sync){let n=Sp(i,dt(A.sv_local)),r=xp(i),o=Buffer.from($t(r)),s=Buffer.from($t(n)),I=await e.sync.yjs.sv_remote(A.type,A.id,o,s);if(I){if(kp(i,dt(I.diff),"sv_remote"),A.type==="page")delete e.preview.meta_cache[A.id],await iA(e,{note:"sv_remote"});else if(A.type==="comp"){let a=await Oa(e,i,A.id);a&&(e.comp.list[A.id].meta=a.meta,e.comp.list[A.id].tree=a.tree),await iA(e,{note:"sv_remote"})}e.render()}}}}}).then(A=>{e.sync=A}),!1):params.page_id!==e.page.cur.id&&location.pathname.startsWith("/ed")?(bm(e,params.page_id,"change page"),!1):!0},Ta=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 Ac=R(Ye());var Ym=(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"&&_a({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 Ui={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null,code:{mode:"old"}},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 Sy=R(Ye());var ve=R(Ye()),gB=class extends ve.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},h3=()=>!1,Vm=(0,ve.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:h3});function zm({children:e}){let[t,A]=(0,ve.useState)(),i=(0,ve.useRef)(),n=(0,ve.useMemo)(()=>({componentDidCatch:i,error:t,setError:A}),[t]);return ve.default.createElement(Vm.Provider,{value:n},ve.default.createElement(gB,{error:t,onError:(r,o)=>{A(r),i.current?.(r,o)}},e))}zm.displayName="ReactUseErrorBoundaryContext";function Pm(e){function t(A){return ve.default.createElement(zm,null,ve.default.createElement(e,{key:"WrappedComponent",...A}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function _m(e){let t=(0,ve.useContext)(Vm);t.componentDidCatch.current=e;let A=(0,ve.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,A]}var Ot=R(Ie()),FA=Pm(({children:e,meta:t,id:A,silent:i=!0})=>{let n=Zn({retrying:!1,meta:t}),[r,o]=_m((I,a)=>{i!==!0&&console.warn(I)});t&&n.meta!==t&&(n.meta=t,setTimeout(o));let s=t;return r?(0,Ot.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Ot.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",s?.item.name?"["+s.item.name+"]:":""]}),(0,Ot.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:n.retrying?(0,Ot.jsx)(Ot.Fragment,{children:"Retrying..."}):(0,Ot.jsx)(Ot.Fragment,{children:r.message})}),(0,Ot.jsx)("div",{className:"p-1",children:(0,Ot.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 mt=(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 Tm=(e,t)=>{let A=mt(e,"adv",t,{});return typeof A.css=="string"&&A.css.trim()?cx(css`
|
|
${A.css}
|
|
`,t):""};var Xm=(e,t)=>{let A=mt(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 cy=R(ay());var gy=(e,t)=>{let A=mt(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(DA(A,"stroke.l","border-left-width"),DA(A,"stroke.r","border-right-width"),DA(A,"stroke.b","border-bottom-width"),DA(A,"stroke.t","border-top-width"),DA(A,"color","border-color","transparent"),DA(A,"style","border-style","dashed"),DA(A,"rounded.tl","border-top-left-radius"),DA(A,"rounded.tr","border-top-right-radius"),DA(A,"rounded.bl","border-bottom-left-radius"),DA(A,"rounded.br","border-bottom-right-radius"))},DA=(e,t,A,i)=>{let n=(0,cy.default)(e,t);if(i)return n?`${A}: ${n};`:`${A}: ${i};`;if(n)return`${A}: ${n}px;`};var ly=(e,t,A)=>{let i=mt(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 uy=({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 mr=window,By=(e,t)=>{let A=mt(e,"font",t,{});if(A.family){mr.loadedFonts||(mr.loadedFonts=[]);let n=`:wght@${[300,400,500,600].join(";")}`,r=A.family.replace(/ /g,"+");if(mr.loadedFonts.indexOf(A.family)<0){mr.loadedFonts.push(A.family);let o=document,s=`https://prasi.avolut.com/_font/css2?family=${r}${n}`;if(!o.querySelector(`link[href="${s}]`)){let I=o.createElement("link");I.type="text/css",I.rel="stylesheet",I.href=s,o.head.appendChild(I)}}}return!A.family&&mr.defaultFont&&(A.family=mr.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 fy=(e,t)=>{let A=[],i=mt(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 dy=(e,t)=>{let A=mt(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 Qy=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css`
|
|
display: flex;
|
|
position: relative;
|
|
user-select: none;
|
|
${fy(e,t.mode)}
|
|
${dy(e,t.mode)}
|
|
${ly(e,t.mode,t?.editor)}
|
|
${gy(e,t.mode)}
|
|
${Xm(e,t.mode)}
|
|
${By(e,t.mode)}
|
|
`,(t?.hover||t?.active)&&uy({item:e,hover:t?.hover,active:t?.active}),Tm(e,t.mode)])}catch(A){console.log(A)}return cx([])};var Cy=R(Ie()),as=(e,t,A,i)=>{let n=t.item,r={className:Qy(n,{mode:e.mode})},o={},s=t.item.childs,I;return t.item.type==="text"?(I=null,r.dangerouslySetInnerHTML={__html:t.item.html||""}):I=Array.isArray(s)&&s?.map(a=>{if(!a)return null;let{id:c}=a,u=A?e.layout?.meta[c]:e.meta[c];return u?(0,Cy.jsx)(yr,{meta:u,is_layout:A,passprop:i},c):null}),r.children=I,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete r.children,delete r.dangerouslySetInnerHTML),{props:r,text_props:o}};var Dy=R(Ye());var $a=R(Ye());var Wa=R(Ye());var py=R(Ye()),Ey=(e,t)=>A=>{if(t.item.script||(t.item.script={}),t.item.script.passprop||(t.item.script.passprop={}),t.item.script.passprop){let i=!1;for(let[n,r]of Object.entries(A))["children","key"].includes(n)||(i=!0,t.item.script.passprop[n]={end:0,start:0,value:r})}return QB(A,t.script?.scope)},QB=(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(hy(n,A,t));return i}return hy(A.children,A,t)},hy=(e,t,A)=>{if((0,py.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,passprop:{...A,...i}}}}return e};var my=(e,t,A)=>i=>{let{children:n}=i,r=e.script?.init_local_effect,o=t?e.layout?.meta:e.meta,I=(0,Wa.useRef)(i.value).current;return I.render=A.render,ja(e,A,A.script?.scope),i.hook&&i.hook(I),(0,Wa.useEffect)(()=>{let a=A.item.id;if(A.parent?.instance_id&&o){let u=o[A.parent?.instance_id];if(u&&u.instances){for(let[l,g]of Object.entries(u.instances[A.parent.instance_id]))if(g===A.item.id){a=l;break}}}return!r[a]&&(typeof r=="object"&&(r[a]=!0),(async()=>i.effect&&await i.effect(I))()),()=>{}},[]),QB(n,{...A.script?.scope,[i.name]:I})};var CB=R(Ie()),yy=(e,t,A,i)=>{let n=as(e,t,A,i);e.visit&&e.visit(t,n),t.script?t.script.scope=i:t.script={scope:i,result:null,Local:my(e,A,t),PassProp:Ey(e,t)};let r=t.script,o=window.exports,s={useEffect:$a.useEffect,children:n.props.children,props:n.props,Local:r.Local,db:e.site.db,api:e.site.api,PassProp:r?.PassProp,ErrorBox:FA,newElement:()=>{},render:u=>{r.result=(0,CB.jsx)($a.Suspense,{children:u})},params,...pr(e),...o,...i};if(typeof i=="object"){for(let[u,l]of Object.entries(i))if(typeof l=="object"&&l&&l._jsx){let g=l;s[u]=(0,CB.jsx)(dN,{fn:g.fn,passprop:i,meta:t})}}!fe.isEditor&&t.item.adv?.js&&Ra(e,t.item.adv.js);let I=t.item.adv?.jsBuilt||"",a=pB(I,hB)||"";new Function(...Object.keys(s),`// ${t.item.name}: ${t.item.id}
|
|
${a}
|
|
`)(...Object.values(s)),ja(e,t,i)},dN=({fn:e,meta:t,passprop:A})=>e({passprop:A,meta:t}),hB={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},pB=(e,t)=>{let A=e;for(let[i,n]of Object.entries(t))A=A.replaceAll(i,n);return A};var Fy=R(Ie()),wy=(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,...pr(e),...i,params};t.item.script.props={};let o=new Set;if(t.item.component.props)for(let[s,I]of Object.entries(t.item.component.props))try{if(I.meta?.type==="content-element"){let g={_jsx:!0,fn:B=>{let p=I.content?.id;if(p){let U=A?e.layout?.meta[p]:e.meta[p];if(!U)return null;let d=t.instances;if(!B.meta.item.originalId||!d||!d[t.item.id])return null;let Q=B.meta.item.originalId;if(U.mitem&&(I.jsxCalledBy&&(!I.jsxCalledBy.includes(Q)||I.jsxCalledBy.length!==2)||!I.jsxCalledBy)){let y=t.mitem?.get("component")?.get("props")?.get(s);if(y){let F=y.get("jsxCalledBy");!F||typeof F!="object"?y.set("jsxCalledBy",[t.item.id,Q]):(!F.includes(Q)||F.length!==2||F[0]!==t.item.id||F[1]!==Q)&&y.set("jsxCalledBy",[t.item.id,Q])}}return(0,Fy.jsx)(yr,{meta:U,passprop:B.passprop,is_layout:A})}return null}};r[s]=g,i&&(i[s]=g);continue}I.value&&Ra(e,I.value);let a=I.valueBuilt||"",c=pB(a,hB)||"",u=new Function(...Object.keys(r),`// [${t.item.name}] ${s}: ${t.item.id}
|
|
return ${c}
|
|
`);t.item.script.props[s]={value:c};let l=u(...Object.values(r));typeof l=="function"&&(t.item.script.props[s].fn=l,l=(...g)=>t.item.script?.props?.[s].fn(...g)),r[s]=l,i&&(i[s]=l)}catch{o.add(s)}}},ja=(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 ky=R(Ie()),EB=({meta:e,passprop:t,is_layout:A})=>{let i=Ci(Ui,"VI"),[n,r]=(0,Dy.useState)({});e.render=()=>{r({})};let o=t;return e.item.component?.id&&(o||(o={}),wy(i,e,A,o)),e.item.adv?.js&&(yy(i,e,A,o),e.script)?e.script.result:(0,ky.jsx)(mB,{meta:e,passprop:o,is_layout:A})};var _e=R(Ie()),QN=70,ec={enabled:!1,meta:{}},yr=({meta:e,children:t,passprop:A,is_layout:i})=>{if(ec.enabled){let n=ec.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>QN)return(0,_e.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,_e.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,_e.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,_e.jsx)(FA,{meta:e,children:(0,_e.jsx)(EB,{meta:e,is_layout:i,passprop:A})}):(0,_e.jsx)(FA,{meta:e,children:(0,_e.jsx)(mB,{meta:e,passprop:A,is_layout:i})})},mB=({meta:e,passprop:t,is_layout:A})=>{let i=Ci(Ui,"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,_e.jsx)(FA,{meta:s,children:(0,_e.jsx)(EB,{meta:s,is_layout:A,passprop:t})}));else{let I=as(i,s,!1,t);i.visit&&i.visit(s,I),r.push((0,_e.jsx)("div",{...I.props}))}}return(0,_e.jsx)(_e.Fragment,{children:r.map((o,s)=>(0,_e.jsx)(Sy.Fragment,{children:o},s))})}let n=as(i,e,A,t);return i.visit&&i.visit(e,n),(0,_e.jsx)("div",{...n.props})};var wr=R(Ie()),Uy=({})=>{let e=Ci(Ui,"VI"),t=Zn({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,wr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,wr.jsx)(Pi,{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,wr.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,wr.jsx)(FA,{children:(0,wr.jsx)(yr,{meta:r,is_layout:A})},r.item.id):null})})};var tc=R(Ie()),yB=window,Ny=({meta:e,entry:t,api_url:A,site_id:i,api:n,mode:r,db:o,visit:s,script:I,page_id:a,render_stat:c,on_status_changed:u,on_preload:l,layout:g})=>{let B=Ci(Ui,"VI");return B.mode=r,B.entry=t,B.on_preload=l,yB.isMobile=r==="mobile",yB.isDesktop=r==="desktop",yB.preload=p=>{B.page.navs[a]||(B.page.navs[a]=new Set);let U=typeof p=="string"?[p]:p;for(let d of U)B.page.navs[a].add(d);return clearTimeout(ln.timeout),ln.timeout=setTimeout(()=>{B.on_preload&&B.on_preload({urls:Array.from(B.page.navs[a])})},100),""},B.layout=g,B.page.cur.id=a,B.on_status_changes=u,c==="disabled"&&(ec.enabled=!1),B.meta!==e&&(B.meta=e),I&&(B.script.init_local_effect=I.init_local_effect),B.visit=s,B.status==="init"&&(B.site.db=o,B.site.api=n,Ym(B,{api_url:A,site_id:i})),l&&(0,Ac.useEffect)(()=>{setTimeout(()=>{let p=B.page.navs[B.page.cur.id];p&&l({urls:Array.from(p)})},500)},[B.page.cur.id]),(0,tc.jsx)(FA,{children:(0,tc.jsx)(Ac.Suspense,{children:(0,tc.jsx)(Uy,{})})})};var wB=window,M={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(M.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:wB._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",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:{}}},xy=()=>{if(!M.root){let e=new URL(location.href);wB._prasi.basepath&&(e.pathname=wB._prasi.basepath),M.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),M.root.pathname.endsWith("/")&&(M.root.pathname=M.root.pathname.substring(0,M.root.length-1))}};async function dn(e){let t=new DecompressionStream("gzip"),A=e.stream().pipeThrough(t);return await new Response(A).blob()}var nA=on("prasi-prod","prasi-cache-prod");var cs=async e=>{let t=M.comp;for(let A of e)A&&A.type!=="text"&&FB(A);if(t.pending.size>0){let A=!0,i=[];for(let n of[...t.pending]){let r=await EA(`comp-${n}`,nA);r||(A=!1),t.list[n]=r,i.push(r)}if(A){for(let n of[...t.pending])t.pending.delete(n);await cs(i);return}}if(t.pending.size>0)try{let A=await(await fetch(M.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...t.pending]})})).blob(),i=JSON.parse(await(await dn(A)).text());for(let[n,r]of Object.entries(i))t.pending.delete(n),t.list[n]=r,await mA(`comp-${n}`,r,nA);await cs(Object.values(i))}catch{}},FB=e=>{let t=M.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"&&FB(i.content)}}if(e.childs)for(let A of e.childs)A&&A.type!=="text"&&FB(A)};var Gy=e=>new Promise(async t=>{let A=!1,i=await EA(`page-${e}`,nA);i&&(t(i),A=!0);let n=await(await fetch(M.url`_prasi/page/${e}`)).blob(),r=JSON.parse(await(await dn(n)).text());mA(`page-${e}`,{id:e,url:r.url,root:r.root},nA),A||t(r)}),CN=e=>new Promise(async t=>{let A={},i=[...new Set(e)],n=!0;for(let s of i){let I=await EA(`page-${s}`,nA);if(I)A[s]=I;else{n=!1;break}}n&&t(A);let r=await(await fetch(M.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:i})})).blob(),o=JSON.parse(await(await dn(r)).text());for(let[s,I]of Object.entries(o))mA(`page-${s}`,I,nA);n||t(o)}),Hy=async e=>{let t=e.map(A=>M.route.router?.lookup(A)).filter(A=>A&&A.id);return await CN(t.map(A=>A?.id))};var vy=R(My()),Jy=()=>{let e=M;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,vy.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 hN=()=>new Promise(async e=>{let t=!1,A=await EA("route",nA);A&&(e(A),t=!0);let i=await(await fetch(M.url`_prasi/route`)).blob(),r=await dn(i),o=JSON.parse(await r.text());await mA("route",o,nA),t||e(o)}),qy=async()=>{let e=fr();try{let t=await hN();if(t&&t.site&&t.urls){t.layout&&(M.layout.id=t.layout.id,M.layout.root=t.layout.root,M.layout.meta={},M.layout.root&&nc(M.layout.meta,M.layout.root)),M.site=t.site,M.site.code={mode:"new"},await pN(),M.site.api=Cr(M.site.api_url),M.site.db=hr(M.site.api_url);let A=window;A.serverurl=M.site.api_url,A.db=M.site.db,A.api=M.site.api;for(let i of t.urls)e.insert(i.url,i)}}catch{}return e},pN=()=>new Promise(e=>{let t=document,A=t.createElement("script");A.onload=async()=>{e()};let i=M.site.api_url;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)}),nc=(e,t)=>{for(let A of t.childs)Nt({comps:M.comp.list,meta:e,mode:"page"},{item:A})};var Qn=window;var _A=R(Ie()),Ky=()=>{let[e,t]=(0,Ry.useState)({}),A=()=>t({});Qn.prasiContext.render=A;let i=Jl.Provider;if(M.route.status!=="ready")return M.route.status==="init"&&(M.route.status="loading",qy().then(async s=>{Jy(),M.route.status="ready",M.route.router=s;let I=Ta(await(await fetch(`${Qn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"))).text());if(I)for(let[a,c]of Object.entries(I))window[a]=c;A()})),(0,_A.jsx)(Pi,{note:"Loading router"});let n=M.route.router;if(!n)return(0,_A.jsx)(Kl,{children:"Failed to create Router"});let r=n.lookup(M.pathname);if(!r)return(0,_A.jsx)(Kl,{children:"Page Not Found"});Qn.params=r.params||{},M.page.id=r.id,M.page.url=r.url;let o=M.page.cache[r.id];if(o)M.page.root=o.root,M.page.meta=o.meta;else return Gy(r.id).then(async({root:s})=>{let I={id:r.id,url:r.url,root:s,meta:{}};await cs(s.childs),nc(I.meta,s),M.page.cache[I.id]=I,A()}).catch(()=>{A()}),(0,_A.jsx)(Pi,{note:"Loading page"});return(0,_A.jsx)(i,{value:Qn.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",M.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)(Ny,{api_url:M.site.api_url,entry:Object.values(M.page.root.childs).filter(s=>s).map(s=>s.id),meta:M.page.meta,mode:M.mode,page_id:M.page.id,site_id:M.site.id,db:M.site.db,api:M.site.api,layout:M.layout.id&&M.layout.root&&M.layout.meta?{id:M.layout.id,meta:M.layout.meta,entry:Object.values(M.layout.root.childs).filter(s=>s).map(s=>s.id)}:void 0,script:{init_local_effect:M.init_local_effect},on_preload:async({urls:s})=>{let I=[];if(M.cache.urls)for(let a of s)M.cache.urls.has(a)||(I.push(a),M.cache.urls.add(a));if(I.length>0){let a=await Hy(I);for(let c of a){let u={id:c.id,url:c.url,root:c.root,meta:{}};await cs(c.root.childs),nc(u.meta,c.root),M.page.cache[u.id]=u}}}})})})})};var by=R(Ie());(async()=>{xy();let e=document.getElementById("root");if(e){let t=(0,Ly.createRoot)(e);await yh(!1),Ch(),Qn.navigateOverride=A=>(A&&A.startsWith("/")&&(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")&&location.pathname.startsWith("/prod")&&!A.startsWith("/prod")&&(A=`/prod/${location.pathname.split("/")[2]}${A}`),A),t.render((0,by.jsx)(Ky,{})),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
|