From 930e68586650be00dd6306b7a4ad0d66209f5997 Mon Sep 17 00:00:00 2001 From: Rizky Date: Fri, 15 Mar 2024 09:39:54 +0700 Subject: [PATCH] wip fix --- app/srv/core/main.js | 38 +++++++++++------------ app/srv/package.json | 5 ++- app/web/src/nova/prod/base/component.tsx | 18 +++-------- bun.lockb | Bin 273152 -> 272392 bytes package.json | 3 -- 5 files changed, 27 insertions(+), 37 deletions(-) diff --git a/app/srv/core/main.js b/app/srv/core/main.js index 31a9530f..5ef2d99c 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -1,11 +1,11 @@ -var J0=Object.create;var Tc=Object.defineProperty;var q0=Object.getOwnPropertyDescriptor;var K0=Object.getOwnPropertyNames;var b0=Object.getPrototypeOf,O0=Object.prototype.hasOwnProperty;var Qe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),L0=(e,t)=>{for(var A in t)Tc(e,A,{get:t[A],enumerable:!0})},Y0=(e,t,A,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of K0(t))!O0.call(e,n)&&n!==A&&Tc(e,n,{get:()=>t[n],enumerable:!(i=q0(t,n))||i.enumerable});return e};var K=(e,t,A)=>(A=e!=null?J0(b0(e)):{},Y0(t||!e||!e.__esModule?Tc(A,"default",{value:e,enumerable:!0}):A,e));var WB=Qe($=>{"use strict";var Or=Symbol.for("react.element"),P0=Symbol.for("react.portal"),V0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),_0=Symbol.for("react.provider"),X0=Symbol.for("react.context"),Z0=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),j0=Symbol.for("react.memo"),$0=Symbol.for("react.lazy"),OB=Symbol.iterator;function eF(e){return e===null||typeof e!="object"?null:(e=OB&&e[OB]||e["@@iterator"],typeof e=="function"?e:null)}var PB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VB=Object.assign,zB={};function Un(e,t,A){this.props=e,this.context=t,this.refs=zB,this.updater=A||PB}Un.prototype.isReactComponent={};Un.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Un.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TB(){}TB.prototype=Un.prototype;function Xc(e,t,A){this.props=e,this.context=t,this.refs=zB,this.updater=A||PB}var Zc=Xc.prototype=new TB;Zc.constructor=Xc;VB(Zc,Un.prototype);Zc.isPureReactComponent=!0;var LB=Array.isArray,_B=Object.prototype.hasOwnProperty,Wc={current:null},XB={key:!0,ref:!0,__self:!0,__source:!0};function ZB(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)_B.call(t,i)&&!XB.hasOwnProperty(i)&&(n[i]=t[i]);var s=arguments.length-2;if(s===1)n.children=A;else if(1{"use strict";jB.exports=WB()});var ad=Qe(ue=>{"use strict";function Al(e,t){var A=e.length;e.push(t);e:for(;0>>1,n=e[i];if(0>>1;iOs(s,A))aOs(c,s)?(e[i]=c,e[a]=A,i=a):(e[i]=s,e[o]=A,i=o);else if(aOs(c,A))e[i]=c,e[a]=A,i=a;else break e}}return t}function Os(e,t){var A=e.sortIndex-t.sortIndex;return A!==0?A:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?($B=performance,ue.unstable_now=function(){return $B.now()}):($c=Date,ed=$c.now(),ue.unstable_now=function(){return $c.now()-ed});var $B,$c,ed,gA=[],ei=[],rF=1,Rt=null,je=3,Ps=!1,Ki=!1,Yr=!1,id=typeof setTimeout=="function"?setTimeout:null,nd=typeof clearTimeout=="function"?clearTimeout:null,td=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function il(e){for(var t=Wt(ei);t!==null;){if(t.callback===null)Ys(ei);else if(t.startTime<=e)Ys(ei),t.sortIndex=t.expirationTime,Al(gA,t);else break;t=Wt(ei)}}function nl(e){if(Yr=!1,il(e),!Ki)if(Wt(gA)!==null)Ki=!0,ol(rl);else{var t=Wt(ei);t!==null&&sl(nl,t.startTime-e)}}function rl(e,t){Ki=!1,Yr&&(Yr=!1,nd(Pr),Pr=-1),Ps=!0;var A=je;try{for(il(t),Rt=Wt(gA);Rt!==null&&(!(Rt.expirationTime>t)||e&&!sd());){var i=Rt.callback;if(typeof i=="function"){Rt.callback=null,je=Rt.priorityLevel;var n=i(Rt.expirationTime<=t);t=ue.unstable_now(),typeof n=="function"?Rt.callback=n:Rt===Wt(gA)&&Ys(gA),il(t)}else Ys(gA);Rt=Wt(gA)}if(Rt!==null)var r=!0;else{var o=Wt(ei);o!==null&&sl(nl,o.startTime-t),r=!1}return r}finally{Rt=null,je=A,Ps=!1}}var Vs=!1,Ls=null,Pr=-1,rd=5,od=-1;function sd(){return!(ue.unstable_now()-ode||125i?(e.sortIndex=A,Al(ei,e),Wt(gA)===null&&e===Wt(ei)&&(Yr?(nd(Pr),Pr=-1):Yr=!0,sl(nl,A-i))):(e.sortIndex=n,Al(gA,e),Ki||Ps||(Ki=!0,ol(rl))),e};ue.unstable_shouldYield=sd;ue.unstable_wrapCallback=function(e){var t=je;return function(){var A=je;je=t;try{return e.apply(this,arguments)}finally{je=A}}}});var cd=Qe((pH,Id)=>{"use strict";Id.exports=ad()});var dh=Qe(Mt=>{"use strict";var CC=ze(),Gt=cd();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,A=1;A"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nl=Object.prototype.hasOwnProperty,oF=/^[: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]*$/,ld={},gd={};function sF(e){return Nl.call(gd,e)?!0:Nl.call(ld,e)?!1:oF.test(e)?gd[e]=!0:(ld[e]=!0,!1)}function aF(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 IF(e,t,A,i){if(t===null||typeof t>"u"||aF(e,t,A,i))return!0;if(i)return!1;if(A!==null)switch(A.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function at(e,t,A,i,n,r,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=A,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new at(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var mg=/[\-:]([a-z])/g;function yg(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(mg,yg);Xe[t]=new at(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mg,yg);Xe[t]=new at(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mg,yg);Xe[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function wg(e,t,A,i){var n=Xe.hasOwnProperty(t)?Xe[t]:null;(n!==null?n.type!==0:i||!(2()=>(t||e((t={exports:{}}).exports,t),t.exports),L0=(e,t)=>{for(var A in t)Tc(e,A,{get:t[A],enumerable:!0})},Y0=(e,t,A,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of K0(t))!O0.call(e,n)&&n!==A&&Tc(e,n,{get:()=>t[n],enumerable:!(i=q0(t,n))||i.enumerable});return e};var K=(e,t,A)=>(A=e!=null?J0(b0(e)):{},Y0(t||!e||!e.__esModule?Tc(A,"default",{value:e,enumerable:!0}):A,e));var WB=Qe($=>{"use strict";var Or=Symbol.for("react.element"),P0=Symbol.for("react.portal"),V0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),_0=Symbol.for("react.provider"),X0=Symbol.for("react.context"),Z0=Symbol.for("react.forward_ref"),W0=Symbol.for("react.suspense"),j0=Symbol.for("react.memo"),$0=Symbol.for("react.lazy"),OB=Symbol.iterator;function eF(e){return e===null||typeof e!="object"?null:(e=OB&&e[OB]||e["@@iterator"],typeof e=="function"?e:null)}var PB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},VB=Object.assign,zB={};function Sn(e,t,A){this.props=e,this.context=t,this.refs=zB,this.updater=A||PB}Sn.prototype.isReactComponent={};Sn.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")};Sn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function TB(){}TB.prototype=Sn.prototype;function Xc(e,t,A){this.props=e,this.context=t,this.refs=zB,this.updater=A||PB}var Zc=Xc.prototype=new TB;Zc.constructor=Xc;VB(Zc,Sn.prototype);Zc.isPureReactComponent=!0;var LB=Array.isArray,_B=Object.prototype.hasOwnProperty,Wc={current:null},XB={key:!0,ref:!0,__self:!0,__source:!0};function ZB(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)_B.call(t,i)&&!XB.hasOwnProperty(i)&&(n[i]=t[i]);var s=arguments.length-2;if(s===1)n.children=A;else if(1{"use strict";jB.exports=WB()});var ad=Qe(ue=>{"use strict";function Al(e,t){var A=e.length;e.push(t);e:for(;0>>1,n=e[i];if(0>>1;iOs(s,A))aOs(c,s)?(e[i]=c,e[a]=A,i=a):(e[i]=s,e[o]=A,i=o);else if(aOs(c,A))e[i]=c,e[a]=A,i=a;else break e}}return t}function Os(e,t){var A=e.sortIndex-t.sortIndex;return A!==0?A:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?($B=performance,ue.unstable_now=function(){return $B.now()}):($c=Date,ed=$c.now(),ue.unstable_now=function(){return $c.now()-ed});var $B,$c,ed,gA=[],ei=[],rF=1,Rt=null,je=3,Ps=!1,Ki=!1,Yr=!1,id=typeof setTimeout=="function"?setTimeout:null,nd=typeof clearTimeout=="function"?clearTimeout:null,td=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function il(e){for(var t=Wt(ei);t!==null;){if(t.callback===null)Ys(ei);else if(t.startTime<=e)Ys(ei),t.sortIndex=t.expirationTime,Al(gA,t);else break;t=Wt(ei)}}function nl(e){if(Yr=!1,il(e),!Ki)if(Wt(gA)!==null)Ki=!0,ol(rl);else{var t=Wt(ei);t!==null&&sl(nl,t.startTime-e)}}function rl(e,t){Ki=!1,Yr&&(Yr=!1,nd(Pr),Pr=-1),Ps=!0;var A=je;try{for(il(t),Rt=Wt(gA);Rt!==null&&(!(Rt.expirationTime>t)||e&&!sd());){var i=Rt.callback;if(typeof i=="function"){Rt.callback=null,je=Rt.priorityLevel;var n=i(Rt.expirationTime<=t);t=ue.unstable_now(),typeof n=="function"?Rt.callback=n:Rt===Wt(gA)&&Ys(gA),il(t)}else Ys(gA);Rt=Wt(gA)}if(Rt!==null)var r=!0;else{var o=Wt(ei);o!==null&&sl(nl,o.startTime-t),r=!1}return r}finally{Rt=null,je=A,Ps=!1}}var Vs=!1,Ls=null,Pr=-1,rd=5,od=-1;function sd(){return!(ue.unstable_now()-ode||125i?(e.sortIndex=A,Al(ei,e),Wt(gA)===null&&e===Wt(ei)&&(Yr?(nd(Pr),Pr=-1):Yr=!0,sl(nl,A-i))):(e.sortIndex=n,Al(gA,e),Ki||Ps||(Ki=!0,ol(rl))),e};ue.unstable_shouldYield=sd;ue.unstable_wrapCallback=function(e){var t=je;return function(){var A=je;je=t;try{return e.apply(this,arguments)}finally{je=A}}}});var cd=Qe((pH,Id)=>{"use strict";Id.exports=ad()});var dh=Qe(Mt=>{"use strict";var CC=ze(),Gt=cd();function x(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,A=1;A"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nl=Object.prototype.hasOwnProperty,oF=/^[: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]*$/,ld={},gd={};function sF(e){return Nl.call(gd,e)?!0:Nl.call(ld,e)?!1:oF.test(e)?gd[e]=!0:(ld[e]=!0,!1)}function aF(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 IF(e,t,A,i){if(t===null||typeof t>"u"||aF(e,t,A,i))return!0;if(i)return!1;if(A!==null)switch(A.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function at(e,t,A,i,n,r,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=A,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=o}var Xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Xe[e]=new at(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Xe[t]=new at(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Xe[e]=new at(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Xe[e]=new at(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Xe[e]=new at(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Xe[e]=new at(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Xe[e]=new at(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Xe[e]=new at(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Xe[e]=new at(e,5,!1,e.toLowerCase(),null,!1,!1)});var mg=/[\-:]([a-z])/g;function yg(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(mg,yg);Xe[t]=new at(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(mg,yg);Xe[t]=new at(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(mg,yg);Xe[t]=new at(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!1,!1)});Xe.xlinkHref=new at("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Xe[e]=new at(e,1,!1,e.toLowerCase(),null,!0,!0)});function wg(e,t,A,i){var n=Xe.hasOwnProperty(t)?Xe[t]:null;(n!==null?n.type!==0:i||!(2s||n[o]!==r[s]){var a=` -`+n[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Il=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?$r(e):""}function cF(e){switch(e.tag){case 5:return $r(e.type);case 16:return $r("Lazy");case 13:return $r("Suspense");case 19:return $r("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Ml(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Hn:return"Fragment";case Gn:return"Portal";case xl:return"Profiler";case Fg:return"StrictMode";case Gl:return"Suspense";case Hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pC:return(e.displayName||"Context")+".Consumer";case hC:return(e._context.displayName||"Context")+".Provider";case Dg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kg:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case Ai:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function lF(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 Ml(t);case 8:return t===Fg?"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 di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gF(e){var t=mC(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 Ts(e){e._valueTracker||(e._valueTracker=gF(e))}function yC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),i="";return e&&(i=mC(e)?e.checked?"true":"false":e.value),e=i,e!==A?(t.setValue(e),!0):!1}function Ea(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vl(e,t){var A=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function fd(e,t){var A=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;A=di(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 wC(e,t){t=t.checked,t!=null&&wg(e,"checked",t,!1)}function Rl(e,t){wC(e,t);var A=di(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")?Jl(e,t.type,A):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bd(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 Jl(e,t,A){(t!=="number"||Ea(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var eo=Array.isArray;function Pn(e,t,A,i){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=_s.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var io={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},uF=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){uF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function SC(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function UC(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var i=A.indexOf("--")===0,n=SC(A,t[A],i);A==="float"&&(A="cssFloat"),i?e.setProperty(A,n):e[A]=n}}var fF=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(e,t){if(t){if(fF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Ol(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 Ll=null;function Sg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Vn=null,zn=null;function Qd(e){if(e=Go(e)){if(typeof Yl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Xa(t),Yl(e.stateNode,e.type,t))}}function NC(e){Vn?zn?zn.push(e):zn=[e]:Vn=e}function xC(){if(Vn){var e=Vn,t=zn;if(zn=Vn=null,Qd(e),t)for(e=0;e>>=0,e===0?32:31-(FF(e)/DF|0)|0}var Xs=64,Zs=4194304;function to(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fa(e,t){var A=e.pendingLanes;if(A===0)return 0;var i=0,n=e.suspendedLanes,r=e.pingedLanes,o=A&268435455;if(o!==0){var s=o&~n;s!==0?i=to(s):(r&=o,r!==0&&(i=to(r)))}else o=A&~n,o!==0?i=to(o):r!==0&&(i=to(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;0A;A++)t.push(e);return t}function No(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-AA(t),e[t]=A}function NF(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=ro),kd=" ",Sd=!1;function WC(e,t){switch(e){case"keyup":return nD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Mn=!1;function oD(e,t){switch(e){case"compositionend":return jC(t);case"keypress":return t.which!==32?null:(Sd=!0,kd);case"textInput":return e=t.data,e===kd&&Sd?null:e;default:return null}}function sD(e,t){if(Mn)return e==="compositionend"||!Rg&&WC(e,t)?(e=XC(),ga=Hg=oi=null,Mn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)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=xd(A)}}function AQ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?AQ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iQ(){for(var e=window,t=Ea();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=Ea(e.document)}return t}function Jg(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 dD(e){var t=iQ(),A=e.focusedElem,i=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&AQ(A.ownerDocument.documentElement,A)){if(i!==null&&Jg(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=Gd(A,r);var o=Gd(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=document.documentMode,vn=null,Xl=null,so=null,Zl=!1;function Hd(e,t,A){var i=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;Zl||vn==null||vn!==Ea(i)||(i=vn,"selectionStart"in i&&Jg(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}),so&&po(so,i)||(so=i,i=Sa(Xl,"onSelect"),0qn||(e.current=Ag[qn],Ag[qn]=null,qn--)}function fe(e,t){qn++,Ag[qn]=e.current,e.current=t}var Ci={},At=hi(Ci),Qt=hi(!1),Ti=Ci;function Wn(e,t){var A=e.type.contextTypes;if(!A)return Ci;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},r;for(r in A)n[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function ht(e){return e=e.childContextTypes,e!=null}function Na(){pe(Qt),pe(At)}function Ld(e,t,A){if(At.current!==Ci)throw Error(x(168));fe(At,t),fe(Qt,A)}function gQ(e,t,A){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return A;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(x(108,lF(e)||"Unknown",n));return De({},A,i)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Ti=At.current,fe(At,e),fe(Qt,Qt.current),!0}function Yd(e,t,A){var i=e.stateNode;if(!i)throw Error(x(169));A?(e=gQ(e,t,Ti),i.__reactInternalMemoizedMergedChildContext=e,pe(Qt),pe(At),fe(At,e)):pe(Qt),fe(Qt,A)}var GA=null,Za=!1,El=!1;function uQ(e){GA===null?GA=[e]:GA.push(e)}function DD(e){Za=!0,uQ(e)}function pi(){if(!El&&GA!==null){El=!0;var e=0,t=ce;try{var A=GA;for(ce=1;e>=o,n-=o,HA=1<<32-AA(t)+n|A<N?(b=S,S=null):b=S.sibling;var q=u(d,S,Q[N],y);if(q===null){S===null&&(S=b);break}e&&S&&q.alternate===null&&t(d,S),B=r(q,B,N),F===null?k=q:F.sibling=q,F=q,S=b}if(N===Q.length)return A(d,S),me&&bi(d,N),k;if(S===null){for(;NN?(b=S,S=null):b=S.sibling;var Z=u(d,S,q.value,y);if(Z===null){S===null&&(S=b);break}e&&S&&Z.alternate===null&&t(d,S),B=r(Z,B,N),F===null?k=Z:F.sibling=Z,F=Z,S=b}if(q.done)return A(d,S),me&&bi(d,N),k;if(S===null){for(;!q.done;N++,q=Q.next())q=l(d,q.value,y),q!==null&&(B=r(q,B,N),F===null?k=q:F.sibling=q,F=q);return me&&bi(d,N),k}for(S=i(d,S);!q.done;N++,q=Q.next())q=g(S,d,N,q.value,y),q!==null&&(e&&q.alternate!==null&&S.delete(q.key===null?N:q.key),B=r(q,B,N),F===null?k=q:F.sibling=q,F=q);return e&&S.forEach(function(xe){return t(d,xe)}),me&&bi(d,N),k}function D(d,B,Q,y){if(typeof Q=="object"&&Q!==null&&Q.type===Hn&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zs:e:{for(var k=Q.key,F=B;F!==null;){if(F.key===k){if(k=Q.type,k===Hn){if(F.tag===7){A(d,F.sibling),B=n(F,Q.props.children),B.return=d,d=B;break e}}else if(F.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ai&&Zd(k)===F.type){A(d,F.sibling),B=n(F,Q.props),B.ref=Xr(d,F,Q),B.return=d,d=B;break e}A(d,F);break}else t(d,F);F=F.sibling}Q.type===Hn?(B=zi(Q.props.children,d.mode,y,Q.key),B.return=d,d=B):(y=pa(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=Xr(d,B,Q),y.return=d,d=y)}return o(d);case Gn:e:{for(F=Q.key;B!==null;){if(B.key===F)if(B.tag===4&&B.stateNode.containerInfo===Q.containerInfo&&B.stateNode.implementation===Q.implementation){A(d,B.sibling),B=n(B,Q.children||[]),B.return=d,d=B;break e}else{A(d,B);break}else t(d,B);B=B.sibling}B=Ul(Q,d.mode,y),B.return=d,d=B}return o(d);case Ai:return F=Q._init,D(d,B,F(Q._payload),y)}if(eo(Q))return f(d,B,Q,y);if(Vr(Q))return C(d,B,Q,y);sa(d,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,B!==null&&B.tag===6?(A(d,B.sibling),B=n(B,Q),B.return=d,d=B):(A(d,B),B=Sl(Q,d.mode,y),B.return=d,d=B),o(d)):A(d,B)}return D}var $n=EQ(!0),mQ=EQ(!1),Ho={},CA=hi(Ho),wo=hi(Ho),Fo=hi(Ho);function Pi(e){if(e===Ho)throw Error(x(174));return e}function zg(e,t){switch(fe(Fo,t),fe(wo,e),fe(CA,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kl(t,e)}pe(CA),fe(CA,t)}function er(){pe(CA),pe(wo),pe(Fo)}function yQ(e){Pi(Fo.current);var t=Pi(CA.current),A=Kl(t,e.type);t!==A&&(fe(wo,e),fe(CA,A))}function Tg(e){wo.current===e&&(pe(CA),pe(wo))}var we=hi(0);function Ja(e){for(var t=e;t!==null;){if(t.tag===13){var A=t.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||A.data==="$?"||A.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ml=[];function _g(){for(var e=0;eA?A:4,e(!0);var i=yl.transition;yl.transition={};try{e(!1),t()}finally{ce=A,yl.transition=i}}function KQ(){return Lt().memoizedState}function ND(e,t,A){var i=fi(e);if(A={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null},bQ(e))OQ(t,A);else if(A=CQ(e,t,A,i),A!==null){var n=st();iA(A,e,i,n),LQ(A,t,i)}}function xD(e,t,A){var i=fi(e),n={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null};if(bQ(e))OQ(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var o=t.lastRenderedState,s=r(o,A);if(n.hasEagerState=!0,n.eagerState=s,nA(s,o)){var a=t.interleaved;a===null?(n.next=n,Pg(t)):(n.next=a.next,a.next=n),t.interleaved=n;return}}catch{}finally{}A=CQ(e,t,n,i),A!==null&&(n=st(),iA(A,e,i,n),LQ(A,t,i))}}function bQ(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function OQ(e,t){ao=qa=!0;var A=e.pending;A===null?t.next=t:(t.next=A.next,A.next=t),e.pending=t}function LQ(e,t,A){if(A&4194240){var i=t.lanes;i&=e.pendingLanes,A|=i,t.lanes=A,Ng(e,A)}}var Ka={readContext:Ot,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},GD={readContext:Ot,useCallback:function(e,t){return fA().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:jd,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,da(4194308,4,MQ.bind(null,t,e),A)},useLayoutEffect:function(e,t){return da(4194308,4,e,t)},useInsertionEffect:function(e,t){return da(4,2,e,t)},useMemo:function(e,t){var A=fA();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var i=fA();return t=A!==void 0?A(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ND.bind(null,Fe,e),[i.memoizedState,e]},useRef:function(e){var t=fA();return e={current:e},t.memoizedState=e},useState:Wd,useDebugValue:$g,useDeferredValue:function(e){return fA().memoizedState=e},useTransition:function(){var e=Wd(!1),t=e[0];return e=UD.bind(null,e[1]),fA().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var i=Fe,n=fA();if(me){if(A===void 0)throw Error(x(407));A=A()}else{if(A=t(),be===null)throw Error(x(349));Xi&30||DQ(i,t,A)}n.memoizedState=A;var r={value:A,getSnapshot:t};return n.queue=r,jd(SQ.bind(null,i,r,e),[e]),i.flags|=2048,So(9,kQ.bind(null,i,r,A,t),void 0,null),A},useId:function(){var e=fA(),t=be.identifierPrefix;if(me){var A=MA,i=HA;A=(i&~(1<<32-AA(i)-1)).toString(32)+A,t=":"+t+"R"+A,A=Do++,0")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=s);break}}}finally{Il=!1,Error.prepareStackTrace=A}return(e=e?e.displayName||e.name:"")?$r(e):""}function cF(e){switch(e.tag){case 5:return $r(e.type);case 16:return $r("Lazy");case 13:return $r("Suspense");case 19:return $r("SuspenseList");case 0:case 2:case 15:return e=cl(e.type,!1),e;case 11:return e=cl(e.type.render,!1),e;case 1:return e=cl(e.type,!0),e;default:return""}}function Ml(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 Gn:return"Fragment";case xn:return"Portal";case xl:return"Profiler";case Fg:return"StrictMode";case Gl:return"Suspense";case Hl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case pC:return(e.displayName||"Context")+".Consumer";case hC:return(e._context.displayName||"Context")+".Provider";case Dg:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case kg:return t=e.displayName||null,t!==null?t:Ml(e.type)||"Memo";case Ai:t=e._payload,e=e._init;try{return Ml(e(t))}catch{}}return null}function lF(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 Ml(t);case 8:return t===Fg?"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 di(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mC(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function gF(e){var t=mC(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 Ts(e){e._valueTracker||(e._valueTracker=gF(e))}function yC(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var A=t.getValue(),i="";return e&&(i=mC(e)?e.checked?"true":"false":e.value),e=i,e!==A?(t.setValue(e),!0):!1}function Ea(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function vl(e,t){var A=t.checked;return De({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:A??e._wrapperState.initialChecked})}function fd(e,t){var A=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;A=di(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 wC(e,t){t=t.checked,t!=null&&wg(e,"checked",t,!1)}function Rl(e,t){wC(e,t);var A=di(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")?Jl(e,t.type,A):t.hasOwnProperty("defaultValue")&&Jl(e,t.type,di(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bd(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 Jl(e,t,A){(t!=="number"||Ea(e.ownerDocument)!==e)&&(A==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+A&&(e.defaultValue=""+A))}var eo=Array.isArray;function Yn(e,t,A,i){if(e=e.options,t){t={};for(var n=0;n"+t.valueOf().toString()+"",t=_s.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function uo(e,t){if(t){var A=e.firstChild;if(A&&A===e.lastChild&&A.nodeType===3){A.nodeValue=t;return}}e.textContent=t}var io={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},uF=["Webkit","ms","Moz","O"];Object.keys(io).forEach(function(e){uF.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),io[t]=io[e]})});function SC(e,t,A){return t==null||typeof t=="boolean"||t===""?"":A||typeof t!="number"||t===0||io.hasOwnProperty(e)&&io[e]?(""+t).trim():t+"px"}function UC(e,t){e=e.style;for(var A in t)if(t.hasOwnProperty(A)){var i=A.indexOf("--")===0,n=SC(A,t[A],i);A==="float"&&(A="cssFloat"),i?e.setProperty(A,n):e[A]=n}}var fF=De({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function bl(e,t){if(t){if(fF[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(x(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(x(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(x(61))}if(t.style!=null&&typeof t.style!="object")throw Error(x(62))}}function Ol(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 Ll=null;function Sg(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,Pn=null,Vn=null;function Qd(e){if(e=Go(e)){if(typeof Yl!="function")throw Error(x(280));var t=e.stateNode;t&&(t=Xa(t),Yl(e.stateNode,e.type,t))}}function NC(e){Pn?Vn?Vn.push(e):Vn=[e]:Pn=e}function xC(){if(Pn){var e=Pn,t=Vn;if(Vn=Pn=null,Qd(e),t)for(e=0;e>>=0,e===0?32:31-(FF(e)/DF|0)|0}var Xs=64,Zs=4194304;function to(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Fa(e,t){var A=e.pendingLanes;if(A===0)return 0;var i=0,n=e.suspendedLanes,r=e.pingedLanes,o=A&268435455;if(o!==0){var s=o&~n;s!==0?i=to(s):(r&=o,r!==0&&(i=to(r)))}else o=A&~n,o!==0?i=to(o):r!==0&&(i=to(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;0A;A++)t.push(e);return t}function No(e,t,A){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-AA(t),e[t]=A}function NF(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=ro),kd=" ",Sd=!1;function WC(e,t){switch(e){case"keyup":return nD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jC(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Hn=!1;function oD(e,t){switch(e){case"compositionend":return jC(t);case"keypress":return t.which!==32?null:(Sd=!0,kd);case"textInput":return e=t.data,e===kd&&Sd?null:e;default:return null}}function sD(e,t){if(Hn)return e==="compositionend"||!Rg&&WC(e,t)?(e=XC(),ga=Hg=oi=null,Hn=!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)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=xd(A)}}function AQ(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?AQ(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function iQ(){for(var e=window,t=Ea();t instanceof e.HTMLIFrameElement;){try{var A=typeof t.contentWindow.location.href=="string"}catch{A=!1}if(A)e=t.contentWindow;else break;t=Ea(e.document)}return t}function Jg(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 dD(e){var t=iQ(),A=e.focusedElem,i=e.selectionRange;if(t!==A&&A&&A.ownerDocument&&AQ(A.ownerDocument.documentElement,A)){if(i!==null&&Jg(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=Gd(A,r);var o=Gd(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=document.documentMode,Mn=null,Xl=null,so=null,Zl=!1;function Hd(e,t,A){var i=A.window===A?A.document:A.nodeType===9?A:A.ownerDocument;Zl||Mn==null||Mn!==Ea(i)||(i=Mn,"selectionStart"in i&&Jg(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}),so&&po(so,i)||(so=i,i=Sa(Xl,"onSelect"),0Jn||(e.current=Ag[Jn],Ag[Jn]=null,Jn--)}function fe(e,t){Jn++,Ag[Jn]=e.current,e.current=t}var Ci={},At=hi(Ci),Qt=hi(!1),Ti=Ci;function Zn(e,t){var A=e.type.contextTypes;if(!A)return Ci;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var n={},r;for(r in A)n[r]=t[r];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=n),n}function ht(e){return e=e.childContextTypes,e!=null}function Na(){pe(Qt),pe(At)}function Ld(e,t,A){if(At.current!==Ci)throw Error(x(168));fe(At,t),fe(Qt,A)}function gQ(e,t,A){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return A;i=i.getChildContext();for(var n in i)if(!(n in t))throw Error(x(108,lF(e)||"Unknown",n));return De({},A,i)}function xa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ci,Ti=At.current,fe(At,e),fe(Qt,Qt.current),!0}function Yd(e,t,A){var i=e.stateNode;if(!i)throw Error(x(169));A?(e=gQ(e,t,Ti),i.__reactInternalMemoizedMergedChildContext=e,pe(Qt),pe(At),fe(At,e)):pe(Qt),fe(Qt,A)}var GA=null,Za=!1,El=!1;function uQ(e){GA===null?GA=[e]:GA.push(e)}function DD(e){Za=!0,uQ(e)}function pi(){if(!El&&GA!==null){El=!0;var e=0,t=ce;try{var A=GA;for(ce=1;e>=o,n-=o,HA=1<<32-AA(t)+n|A<N?(b=S,S=null):b=S.sibling;var q=u(d,S,Q[N],y);if(q===null){S===null&&(S=b);break}e&&S&&q.alternate===null&&t(d,S),B=r(q,B,N),F===null?k=q:F.sibling=q,F=q,S=b}if(N===Q.length)return A(d,S),me&&bi(d,N),k;if(S===null){for(;NN?(b=S,S=null):b=S.sibling;var Z=u(d,S,q.value,y);if(Z===null){S===null&&(S=b);break}e&&S&&Z.alternate===null&&t(d,S),B=r(Z,B,N),F===null?k=Z:F.sibling=Z,F=Z,S=b}if(q.done)return A(d,S),me&&bi(d,N),k;if(S===null){for(;!q.done;N++,q=Q.next())q=l(d,q.value,y),q!==null&&(B=r(q,B,N),F===null?k=q:F.sibling=q,F=q);return me&&bi(d,N),k}for(S=i(d,S);!q.done;N++,q=Q.next())q=g(S,d,N,q.value,y),q!==null&&(e&&q.alternate!==null&&S.delete(q.key===null?N:q.key),B=r(q,B,N),F===null?k=q:F.sibling=q,F=q);return e&&S.forEach(function(xe){return t(d,xe)}),me&&bi(d,N),k}function D(d,B,Q,y){if(typeof Q=="object"&&Q!==null&&Q.type===Gn&&Q.key===null&&(Q=Q.props.children),typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case zs:e:{for(var k=Q.key,F=B;F!==null;){if(F.key===k){if(k=Q.type,k===Gn){if(F.tag===7){A(d,F.sibling),B=n(F,Q.props.children),B.return=d,d=B;break e}}else if(F.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ai&&Zd(k)===F.type){A(d,F.sibling),B=n(F,Q.props),B.ref=Xr(d,F,Q),B.return=d,d=B;break e}A(d,F);break}else t(d,F);F=F.sibling}Q.type===Gn?(B=zi(Q.props.children,d.mode,y,Q.key),B.return=d,d=B):(y=pa(Q.type,Q.key,Q.props,null,d.mode,y),y.ref=Xr(d,B,Q),y.return=d,d=y)}return o(d);case xn:e:{for(F=Q.key;B!==null;){if(B.key===F)if(B.tag===4&&B.stateNode.containerInfo===Q.containerInfo&&B.stateNode.implementation===Q.implementation){A(d,B.sibling),B=n(B,Q.children||[]),B.return=d,d=B;break e}else{A(d,B);break}else t(d,B);B=B.sibling}B=Ul(Q,d.mode,y),B.return=d,d=B}return o(d);case Ai:return F=Q._init,D(d,B,F(Q._payload),y)}if(eo(Q))return f(d,B,Q,y);if(Vr(Q))return C(d,B,Q,y);sa(d,Q)}return typeof Q=="string"&&Q!==""||typeof Q=="number"?(Q=""+Q,B!==null&&B.tag===6?(A(d,B.sibling),B=n(B,Q),B.return=d,d=B):(A(d,B),B=Sl(Q,d.mode,y),B.return=d,d=B),o(d)):A(d,B)}return D}var jn=EQ(!0),mQ=EQ(!1),Ho={},CA=hi(Ho),wo=hi(Ho),Fo=hi(Ho);function Pi(e){if(e===Ho)throw Error(x(174));return e}function zg(e,t){switch(fe(Fo,t),fe(wo,e),fe(CA,Ho),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Kl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Kl(t,e)}pe(CA),fe(CA,t)}function $n(){pe(CA),pe(wo),pe(Fo)}function yQ(e){Pi(Fo.current);var t=Pi(CA.current),A=Kl(t,e.type);t!==A&&(fe(wo,e),fe(CA,A))}function Tg(e){wo.current===e&&(pe(CA),pe(wo))}var we=hi(0);function Ja(e){for(var t=e;t!==null;){if(t.tag===13){var A=t.memoizedState;if(A!==null&&(A=A.dehydrated,A===null||A.data==="$?"||A.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ml=[];function _g(){for(var e=0;eA?A:4,e(!0);var i=yl.transition;yl.transition={};try{e(!1),t()}finally{ce=A,yl.transition=i}}function KQ(){return Lt().memoizedState}function ND(e,t,A){var i=fi(e);if(A={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null},bQ(e))OQ(t,A);else if(A=CQ(e,t,A,i),A!==null){var n=st();iA(A,e,i,n),LQ(A,t,i)}}function xD(e,t,A){var i=fi(e),n={lane:i,action:A,hasEagerState:!1,eagerState:null,next:null};if(bQ(e))OQ(t,n);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var o=t.lastRenderedState,s=r(o,A);if(n.hasEagerState=!0,n.eagerState=s,nA(s,o)){var a=t.interleaved;a===null?(n.next=n,Pg(t)):(n.next=a.next,a.next=n),t.interleaved=n;return}}catch{}finally{}A=CQ(e,t,n,i),A!==null&&(n=st(),iA(A,e,i,n),LQ(A,t,i))}}function bQ(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function OQ(e,t){ao=qa=!0;var A=e.pending;A===null?t.next=t:(t.next=A.next,A.next=t),e.pending=t}function LQ(e,t,A){if(A&4194240){var i=t.lanes;i&=e.pendingLanes,A|=i,t.lanes=A,Ng(e,A)}}var Ka={readContext:Ot,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},GD={readContext:Ot,useCallback:function(e,t){return fA().memoizedState=[e,t===void 0?null:t],e},useContext:Ot,useEffect:jd,useImperativeHandle:function(e,t,A){return A=A!=null?A.concat([e]):null,da(4194308,4,MQ.bind(null,t,e),A)},useLayoutEffect:function(e,t){return da(4194308,4,e,t)},useInsertionEffect:function(e,t){return da(4,2,e,t)},useMemo:function(e,t){var A=fA();return t=t===void 0?null:t,e=e(),A.memoizedState=[e,t],e},useReducer:function(e,t,A){var i=fA();return t=A!==void 0?A(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=ND.bind(null,Fe,e),[i.memoizedState,e]},useRef:function(e){var t=fA();return e={current:e},t.memoizedState=e},useState:Wd,useDebugValue:$g,useDeferredValue:function(e){return fA().memoizedState=e},useTransition:function(){var e=Wd(!1),t=e[0];return e=UD.bind(null,e[1]),fA().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,A){var i=Fe,n=fA();if(me){if(A===void 0)throw Error(x(407));A=A()}else{if(A=t(),be===null)throw Error(x(349));Xi&30||DQ(i,t,A)}n.memoizedState=A;var r={value:A,getSnapshot:t};return n.queue=r,jd(SQ.bind(null,i,r,e),[e]),i.flags|=2048,So(9,kQ.bind(null,i,r,A,t),void 0,null),A},useId:function(){var e=fA(),t=be.identifierPrefix;if(me){var A=MA,i=HA;A=(i&~(1<<32-AA(i)-1)).toString(32)+A,t=":"+t+"R"+A,A=Do++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(A,{is:i.is}):(e=o.createElement(A),A==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,A),e[BA]=t,e[yo]=i,WQ(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ol(A,i),A){case"dialog":he("cancel",e),he("close",e),n=i;break;case"iframe":case"object":case"embed":he("load",e),n=i;break;case"video":case"audio":for(n=0;nAr&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304)}else{if(!i)if(e=Ja(o),e!==null){if(t.flags|=128,i=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),Zr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!me)return et(t),null}else 2*Ue()-r.renderingStartTime>Ar&&A!==1073741824&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(A=r.last,A!==null?A.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Ue(),t.sibling=null,A=we.current,fe(we,i?A&1|2:A&1),t):(et(t),null);case 22:case 23:return ru(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Ut&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function bD(e,t){switch(Kg(t),t.tag){case 1:return ht(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return er(),pe(Qt),pe(At),_g(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tg(t),null;case 13:if(pe(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));jn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(we),null;case 4:return er(),null;case 10:return Yg(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Ia=!1,tt=!1,OD=typeof WeakSet=="function"?WeakSet:Set,R=null;function Ln(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(i){Se(e,t,i)}else A.current=null}function fg(e,t,A){try{A()}catch(i){Se(e,t,i)}}var sC=!1;function LD(e,t){if(Wl=Da,e=iQ(),Jg(e)){if("selectionStart"in e)var A={start:e.selectionStart,end:e.selectionEnd};else e:{A=(A=e.ownerDocument)&&A.defaultView||window;var i=A.getSelection&&A.getSelection();if(i&&i.rangeCount!==0){A=i.anchorNode;var n=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{A.nodeType,r.nodeType}catch{A=null;break e}var o=0,s=-1,a=-1,c=0,I=0,l=e,u=null;t:for(;;){for(var g;l!==A||n!==0&&l.nodeType!==3||(s=o+n),l!==r||i!==0&&l.nodeType!==3||(a=o+i),l.nodeType===3&&(o+=l.nodeValue.length),(g=l.firstChild)!==null;)u=l,l=g;for(;;){if(l===e)break t;if(u===A&&++c===n&&(s=o),u===r&&++I===i&&(a=o),(g=l.nextSibling)!==null)break;l=u,u=l.parentNode}l=g}A=s===-1||a===-1?null:{start:s,end:a}}else A=null}A=A||{start:0,end:0}}else A=null;for(jl={focusedElem:e,selectionRange:A},Da=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var C=f.memoizedProps,D=f.memoizedState,d=t.stateNode,B=d.getSnapshotBeforeUpdate(t.elementType===t.type?C:$t(t.type,C),D);d.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var Q=t.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){Se(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return f=sC,sC=!1,f}function Io(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&&fg(t,A,r)}n=n.next}while(n!==i)}}function $a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var A=t=t.next;do{if((A.tag&e)===e){var i=A.create;A.destroy=i()}A=A.next}while(A!==t)}}function Bg(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 eh(e){var t=e.alternate;t!==null&&(e.alternate=null,eh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[BA],delete t[yo],delete t[tg],delete t[wD],delete t[FD])),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 th(e){return e.tag===5||e.tag===3||e.tag===4}function aC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||th(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 dg(e,t,A){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?A.nodeType===8?A.parentNode.insertBefore(e,t):A.insertBefore(e,t):(A.nodeType===8?(t=A.parentNode,t.insertBefore(e,A)):(t=A,t.appendChild(e)),A=A._reactRootContainer,A!=null||t.onclick!==null||(t.onclick=Ua));else if(i!==4&&(e=e.child,e!==null))for(dg(e,t,A),e=e.sibling;e!==null;)dg(e,t,A),e=e.sibling}function Cg(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(Cg(e,t,A),e=e.sibling;e!==null;)Cg(e,t,A),e=e.sibling}var Te=null,eA=!1;function ti(e,t,A){for(A=A.child;A!==null;)Ah(e,t,A),A=A.sibling}function Ah(e,t,A){if(dA&&typeof dA.onCommitFiberUnmount=="function")try{dA.onCommitFiberUnmount(Va,A)}catch{}switch(A.tag){case 5:tt||Ln(A,t);case 6:var i=Te,n=eA;Te=null,ti(e,t,A),Te=i,eA=n,Te!==null&&(eA?(e=Te,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):Te.removeChild(A.stateNode));break;case 18:Te!==null&&(eA?(e=Te,A=A.stateNode,e.nodeType===8?pl(e.parentNode,A):e.nodeType===1&&pl(e,A),Qo(e)):pl(Te,A.stateNode));break;case 4:i=Te,n=eA,Te=A.stateNode.containerInfo,eA=!0,ti(e,t,A),Te=i,eA=n;break;case 0:case 11:case 14:case 15:if(!tt&&(i=A.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var r=n,o=r.destroy;r=r.tag,o!==void 0&&(r&2||r&4)&&fg(A,t,o),n=n.next}while(n!==i)}ti(e,t,A);break;case 1:if(!tt&&(Ln(A,t),i=A.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=A.memoizedProps,i.state=A.memoizedState,i.componentWillUnmount()}catch(s){Se(A,t,s)}ti(e,t,A);break;case 21:ti(e,t,A);break;case 22:A.mode&1?(tt=(i=tt)||A.memoizedState!==null,ti(e,t,A),tt=i):ti(e,t,A);break;default:ti(e,t,A)}}function IC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new OD),t.forEach(function(i){var n=WD.bind(null,e,i);A.has(i)||(A.add(i),i.then(n,n))})}}function jt(e,t){var A=t.deletions;if(A!==null)for(var i=0;in&&(n=o),i&=~r}if(i=n,i=Ue()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*PD(i/1960))-i,10e?16:e,si===null)var i=!1;else{if(e=si,si=null,La=0,re&6)throw Error(x(331));var n=re;for(re|=4,R=e.current;R!==null;){var r=R,o=r.child;if(R.flags&16){var s=r.deletions;if(s!==null){for(var a=0;aUe()-iu?Vi(e,0):Au|=A),pt(e,t)}function ch(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var A=st();e=qA(e,t),e!==null&&(No(e,t,A),pt(e,A))}function ZD(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),ch(e,A)}function WD(e,t){var A=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(A=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(x(314))}i!==null&&i.delete(t),ch(e,A)}var lh;lh=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Ct=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return Ct=!1,qD(e,t,A);Ct=!!(e.flags&131072)}else Ct=!1,me&&t.flags&1048576&&fQ(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ca(e,t),e=t.pendingProps;var n=Wn(t,At.current);_n(t,A),n=Zg(null,t,i,e,n,A);var r=Wg();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(i)?(r=!0,xa(t)):r=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Vg(t),n.updater=Wa,t.stateNode=n,n._reactInternals=t,sg(t,i,e,A),t=cg(null,t,i,!0,r,A)):(t.tag=0,me&&r&&qg(t),ot(null,t,n,A),t=t.child),t;case 16:i=t.elementType;e:{switch(Ca(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=$D(i),e=$t(i,e),n){case 0:t=Ig(null,t,i,e,A);break e;case 1:t=nC(null,t,i,e,A);break e;case 11:t=AC(null,t,i,e,A);break e;case 14:t=iC(null,t,i,$t(i.type,e),A);break e}throw Error(x(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),Ig(e,t,i,n,A);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),nC(e,t,i,n,A);case 3:e:{if(_Q(t),e===null)throw Error(x(387));i=t.pendingProps,r=t.memoizedState,n=r.element,QQ(e,t),Ra(t,i,null,A);var o=t.memoizedState;if(i=o.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){n=tr(Error(x(423)),t),t=rC(e,t,i,A,n);break e}else if(i!==n){n=tr(Error(x(424)),t),t=rC(e,t,i,A,n);break e}else for(Nt=li(t.stateNode.containerInfo.firstChild),xt=t,me=!0,tA=null,A=mQ(t,null,i,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(jn(),i===n){t=KA(e,t,A);break e}ot(e,t,i,A)}t=t.child}return t;case 5:return yQ(t),e===null&&ng(t),i=t.type,n=t.pendingProps,r=e!==null?e.memoizedProps:null,o=n.children,$l(i,n)?o=null:r!==null&&$l(i,r)&&(t.flags|=32),TQ(e,t),ot(e,t,o,A),t.child;case 6:return e===null&&ng(t),null;case 13:return XQ(e,t,A);case 4:return zg(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=$n(t,null,i,A):ot(e,t,i,A),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),AC(e,t,i,n,A);case 7:return ot(e,t,t.pendingProps,A),t.child;case 8:return ot(e,t,t.pendingProps.children,A),t.child;case 12:return ot(e,t,t.pendingProps.children,A),t.child;case 10:e:{if(i=t.type._context,n=t.pendingProps,r=t.memoizedProps,o=n.value,fe(Ma,i._currentValue),i._currentValue=o,r!==null)if(nA(r.value,o)){if(r.children===n.children&&!Qt.current){t=KA(e,t,A);break e}}else for(r=t.child,r!==null&&(r.return=t);r!==null;){var s=r.dependencies;if(s!==null){o=r.child;for(var a=s.firstContext;a!==null;){if(a.context===i){if(r.tag===1){a=vA(-1,A&-A),a.tag=2;var c=r.updateQueue;if(c!==null){c=c.shared;var I=c.pending;I===null?a.next=a:(a.next=I.next,I.next=a),c.pending=a}}r.lanes|=A,a=r.alternate,a!==null&&(a.lanes|=A),rg(r.return,A,t),s.lanes|=A;break}a=a.next}}else if(r.tag===10)o=r.type===t.type?null:r.child;else if(r.tag===18){if(o=r.return,o===null)throw Error(x(341));o.lanes|=A,s=o.alternate,s!==null&&(s.lanes|=A),rg(o,A,t),o=r.sibling}else o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===t){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}ot(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,_n(t,A),n=Ot(n),i=i(n),t.flags|=1,ot(e,t,i,A),t.child;case 14:return i=t.type,n=$t(i,t.pendingProps),n=$t(i.type,n),iC(e,t,i,n,A);case 15:return VQ(e,t,t.type,t.pendingProps,A);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),Ca(e,t),t.tag=1,ht(i)?(e=!0,xa(t)):e=!1,_n(t,A),pQ(t,i,n),sg(t,i,n,A),cg(null,t,i,!0,e,A);case 19:return ZQ(e,t,A);case 22:return zQ(e,t,A)}throw Error(x(156,t.tag))};function gh(e,t){return qC(e,t)}function jD(e,t,A,i){this.tag=e,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,A,i){return new jD(e,t,A,i)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $D(e){if(typeof e=="function")return su(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dg)return 11;if(e===kg)return 14}return 2}function Bi(e,t){var A=e.alternate;return A===null?(A=Kt(e.tag,t,e.key,e.mode),A.elementType=e.elementType,A.type=e.type,A.stateNode=e.stateNode,A.alternate=e,e.alternate=A):(A.pendingProps=t,A.type=e.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=e.flags&14680064,A.childLanes=e.childLanes,A.lanes=e.lanes,A.child=e.child,A.memoizedProps=e.memoizedProps,A.memoizedState=e.memoizedState,A.updateQueue=e.updateQueue,t=e.dependencies,A.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},A.sibling=e.sibling,A.index=e.index,A.ref=e.ref,A}function pa(e,t,A,i,n,r){var o=2;if(i=e,typeof e=="function")su(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Hn:return zi(A.children,n,r,t);case Fg:o=8,n|=8;break;case xl:return e=Kt(12,A,t,n|2),e.elementType=xl,e.lanes=r,e;case Gl:return e=Kt(13,A,t,n),e.elementType=Gl,e.lanes=r,e;case Hl:return e=Kt(19,A,t,n),e.elementType=Hl,e.lanes=r,e;case EC:return tI(A,n,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hC:o=10;break e;case pC:o=9;break e;case Dg:o=11;break e;case kg:o=14;break e;case Ai:o=16,i=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Kt(o,A,t,n),t.elementType=e,t.type=i,t.lanes=r,t}function zi(e,t,A,i){return e=Kt(7,e,i,t),e.lanes=A,e}function tI(e,t,A,i){return e=Kt(22,e,i,t),e.elementType=EC,e.lanes=A,e.stateNode={isHidden:!1},e}function Sl(e,t,A){return e=Kt(6,e,null,t),e.lanes=A,e}function Ul(e,t,A){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ek(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function au(e,t,A,i,n,r,o,s,a){return e=new ek(e,t,A,s,a),t===1?(t=1,r===!0&&(t|=8)):t=0,r=Kt(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vg(r),e}function tk(e,t,A){var i=3{"use strict";function Ch(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ch)}catch(e){console.error(e)}}Ch(),Qh.exports=dh()});var ph=Qe(uu=>{"use strict";var hh=gu();uu.createRoot=hh.createRoot,uu.hydrateRoot=hh.hydrateRoot;var yH});var Dh=Qe(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.output=It.exists=It.hash=It.bytes=It.bool=It.number=void 0;function oI(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}It.number=oI;function mh(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}It.bool=mh;function sk(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function fu(e,...t){if(!sk(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}It.bytes=fu;function yh(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");oI(e.outputLen),oI(e.blockLen)}It.hash=yh;function wh(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}It.exists=wh;function Fh(e,t){fu(e);let A=t.outputLen;if(e.length{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.add5L=P.add5H=P.add4H=P.add4L=P.add3H=P.add3L=P.add=P.rotlBL=P.rotlBH=P.rotlSL=P.rotlSH=P.rotr32L=P.rotr32H=P.rotrBL=P.rotrBH=P.rotrSL=P.rotrSH=P.shrSL=P.shrSH=P.toBig=P.split=P.fromBig=void 0;var sI=BigInt(2**32-1),Bu=BigInt(32);function du(e,t=!1){return t?{h:Number(e&sI),l:Number(e>>Bu&sI)}:{h:Number(e>>Bu&sI)|0,l:Number(e&sI)|0}}P.fromBig=du;function kh(e,t=!1){let A=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let n=0;nBigInt(e>>>0)<>>0);P.toBig=Sh;var Uh=(e,t,A)=>e>>>A;P.shrSH=Uh;var Nh=(e,t,A)=>e<<32-A|t>>>A;P.shrSL=Nh;var xh=(e,t,A)=>e>>>A|t<<32-A;P.rotrSH=xh;var Gh=(e,t,A)=>e<<32-A|t>>>A;P.rotrSL=Gh;var Hh=(e,t,A)=>e<<64-A|t>>>A-32;P.rotrBH=Hh;var Mh=(e,t,A)=>e>>>A-32|t<<64-A;P.rotrBL=Mh;var vh=(e,t)=>t;P.rotr32H=vh;var Rh=(e,t)=>e;P.rotr32L=Rh;var Jh=(e,t,A)=>e<>>32-A;P.rotlSH=Jh;var qh=(e,t,A)=>t<>>32-A;P.rotlSL=qh;var Kh=(e,t,A)=>t<>>64-A;P.rotlBH=Kh;var bh=(e,t,A)=>e<>>64-A;P.rotlBL=bh;function Oh(e,t,A,i){let n=(t>>>0)+(i>>>0);return{h:e+A+(n/2**32|0)|0,l:n|0}}P.add=Oh;var Lh=(e,t,A)=>(e>>>0)+(t>>>0)+(A>>>0);P.add3L=Lh;var Yh=(e,t,A,i)=>t+A+i+(e/2**32|0)|0;P.add3H=Yh;var Ph=(e,t,A,i)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0);P.add4L=Ph;var Vh=(e,t,A,i,n)=>t+A+i+n+(e/2**32|0)|0;P.add4H=Vh;var zh=(e,t,A,i,n)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0)+(n>>>0);P.add5L=zh;var Th=(e,t,A,i,n,r)=>t+A+i+n+r+(e/2**32|0)|0;P.add5H=Th;var Ik={fromBig:du,split:kh,toBig:Sh,shrSH:Uh,shrSL:Nh,rotrSH:xh,rotrSL:Gh,rotrBH:Hh,rotrBL:Mh,rotr32H:vh,rotr32L:Rh,rotlSH:Jh,rotlSL:qh,rotlBH:Kh,rotlBL:bh,add:Oh,add3L:Lh,add3H:Yh,add4L:Ph,add4H:Vh,add5H:Th,add5L:zh};P.default=Ik});var Xh=Qe(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.crypto=void 0;aI.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var jh=Qe(_=>{"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 Cu=Xh(),ck=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);_.u8=ck;var lk=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));_.u32=lk;function hu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var gk=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);_.createView=gk;var uk=(e,t)=>e<<32-t|e>>>t;_.rotr=uk;_.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!_.isLE)throw new Error("Non little-endian hardware is not supported");var fk=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Bk(e){if(!hu(e))throw new Error("Uint8Array expected");let t="";for(let A=0;A=OA._0&&e<=OA._9)return e-OA._0;if(e>=OA._A&&e<=OA._F)return e-(OA._A-10);if(e>=OA._a&&e<=OA._f)return e-(OA._a-10)}function dk(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{};_.nextTick=Ck;async function Qk(e,t,A){let i=Date.now();for(let n=0;n=0&&re().update(II(i)).digest(),A=e();return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=()=>e(),t}_.wrapConstructor=mk;function yk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapConstructorWithOpts=yk;function wk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapXOFConstructorWithOpts=wk;function Fk(e=32){if(Cu.crypto&&typeof Cu.crypto.getRandomValues=="function")return Cu.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}_.randomBytes=Fk});var pu=Qe(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.shake256=Be.shake128=Be.keccak_512=Be.keccak_384=Be.keccak_256=Be.keccak_224=Be.sha3_512=Be.sha3_384=Be.sha3_256=Be.sha3_224=Be.Keccak=Be.keccakP=void 0;var or=Dh(),Ro=_h(),vo=jh(),[tp,Ap,ip]=[[],[],[]],Dk=BigInt(0),Mo=BigInt(1),kk=BigInt(2),Sk=BigInt(7),Uk=BigInt(256),Nk=BigInt(113);for(let e=0,t=Mo,A=1,i=0;e<24;e++){[A,i]=[i,(2*A+3*i)%5],tp.push(2*(5*i+A)),Ap.push((e+1)*(e+2)/2%64);let n=Dk;for(let r=0;r<7;r++)t=(t<>Sk)*Nk)%Uk,t&kk&&(n^=Mo<<(Mo<A>32?(0,Ro.rotlBH)(e,t,A):(0,Ro.rotlSH)(e,t,A),ep=(e,t,A)=>A>32?(0,Ro.rotlBL)(e,t,A):(0,Ro.rotlSL)(e,t,A);function np(e,t=24){let A=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let o=0;o<10;o++)A[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){let s=(o+8)%10,a=(o+2)%10,c=A[a],I=A[a+1],l=$h(c,I,1)^A[s],u=ep(c,I,1)^A[s+1];for(let g=0;g<50;g+=10)e[o+g]^=l,e[o+g+1]^=u}let n=e[2],r=e[3];for(let o=0;o<24;o++){let s=Ap[o],a=$h(n,r,s),c=ep(n,r,s),I=tp[o];n=e[I],r=e[I+1],e[I]=a,e[I+1]=c}for(let o=0;o<50;o+=10){for(let s=0;s<10;s++)A[s]=e[o+s];for(let s=0;s<10;s++)e[o+s]^=~A[(s+2)%10]&A[(s+4)%10]}e[0]^=xk[i],e[1]^=Gk[i]}A.fill(0)}Be.keccakP=np;var Jo=class e extends vo.Hash{constructor(t,A,i,n=!1,r=24){if(super(),this.blockLen=t,this.suffix=A,this.outputLen=i,this.enableXOF=n,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,or.number)(i),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,vo.u32)(this.state)}keccak(){np(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,or.exists)(this);let{blockLen:A,state:i}=this;t=(0,vo.toBytes)(t);let n=t.length;for(let r=0;r=i&&this.keccak();let o=Math.min(i-this.posOut,r-n);t.set(A.subarray(this.posOut,this.posOut+o),n),this.posOut+=o,n+=o}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return(0,or.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,or.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:A,suffix:i,outputLen:n,rounds:r,enableXOF:o}=this;return t||(t=new e(A,i,n,o,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=n,t.enableXOF=o,t.destroyed=this.destroyed,t}};Be.Keccak=Jo;var mi=(e,t,A)=>(0,vo.wrapConstructor)(()=>new Jo(t,e,A));Be.sha3_224=mi(6,144,224/8);Be.sha3_256=mi(6,136,256/8);Be.sha3_384=mi(6,104,384/8);Be.sha3_512=mi(6,72,512/8);Be.keccak_224=mi(1,144,224/8);Be.keccak_256=mi(1,136,256/8);Be.keccak_384=mi(1,104,384/8);Be.keccak_512=mi(1,72,512/8);var rp=(e,t,A)=>(0,vo.wrapXOFConstructorWithOpts)((i={})=>new Jo(t,e,i.dkLen===void 0?A:i.dkLen,!0));Be.shake128=rp(31,168,128/8);Be.shake256=rp(31,136,256/8)});var up=Qe((MH,yi)=>{var{sha3_512:Hk}=pu(),sp=24,qo=32,Eu=(e=4,t=Math.random)=>{let A="";for(;A.lengthap(Hk(e)).toString(36).slice(1),op=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Mk=e=>op[Math.floor(e()*op.length)],cp=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),A=t.length?t+Eu(qo):Eu(qo);return Ip(A).substring(0,qo)},lp=e=>()=>e++,vk=476782367,gp=({random:e=Math.random,counter:t=lp(Math.floor(e()*vk)),length:A=sp,fingerprint:i=cp()}={})=>function(){let r=Mk(e),o=Date.now().toString(36),s=t().toString(36),a=Eu(A,e),c=`${o+a+s+i}`;return`${r+Ip(c).substring(1,A)}`},Rk=gp(),Jk=(e,{minLength:t=2,maxLength:A=qo}={})=>{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};yi.exports.getConstants=()=>({defaultLength:sp,bigLength:qo});yi.exports.init=gp;yi.exports.createId=Rk;yi.exports.bufToBigInt=ap;yi.exports.createCounter=lp;yi.exports.createFingerprint=cp;yi.exports.isCuid=Jk});var fp=Qe((vH,Ko)=>{var{createId:qk,init:Kk,getConstants:bk,isCuid:Ok}=up();Ko.exports.createId=qk;Ko.exports.init=Kk;Ko.exports.getConstants=bk;Ko.exports.isCuid=Ok});var dp=Qe(yu=>{"use strict";var Lk=Symbol.for("react.fragment");yu.Fragment=Lk;yu.jsxDEV=void 0});var Qp=Qe((KH,Cp)=>{"use strict";Cp.exports=dp()});var pp=Qe(cI=>{"use strict";var Yk=ze(),Pk=Symbol.for("react.element"),Vk=Symbol.for("react.fragment"),zk=Object.prototype.hasOwnProperty,Tk=Yk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_k={key:!0,ref:!0,__self:!0,__source:!0};function hp(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)zk.call(t,i)&&!_k.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:Pk,type:e,key:r,ref:o,props:n,_owner:Tk.current}}cI.Fragment=Vk;cI.jsx=hp;cI.jsxs=hp});var se=Qe((OH,Ep)=>{"use strict";Ep.exports=pp()});var jm=Qe((Of,Wm)=>{"use strict";var{hasOwnProperty:nc}=Object.prototype,hn=bf();hn.configure=bf;hn.stringify=hn;hn.default=hn;Of.stringify=hn;Of.configure=bf;Wm.exports=hn;var i3=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Hi(e){return e.length<5e3&&!i3.test(e)?`"${e}"`:JSON.stringify(e)}function qf(e){if(e.length>200)return e.sort();for(let t=1;tA;)e[i]=e[i-1],i--;e[i]=A}return e}var n3=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Kf(e){return n3.call(e)!==void 0&&e.length!==0}function _m(e,t,A){e.length= 1`)}return A===void 0?1/0:A}function Qn(e){return e===1?"1 item":`${e} items`}function o3(e){let t=new Set;for(let A of e)(typeof A=="string"||typeof A=="number")&&t.add(String(A));return t}function s3(e){if(nc.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return A=>{let i=`Object can not safely be stringified. Received type ${typeof A}`;throw typeof A!="function"&&(i+=` (${A.toString()})`),new Error(i)}}}function bf(e){e={...e};let t=s3(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let A=r3(e),i=Xm(e,"bigint"),n=Xm(e,"deterministic"),r=Zm(e,"maximumDepth"),o=Zm(e,"maximumBreadth");function s(u,g,f,C,D,d){let B=g[u];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(u)),B=C.call(g,u,B),typeof B){case"string":return Hi(B);case"object":{if(B===null)return"null";if(f.indexOf(B)!==-1)return A;let Q="",y=",",k=d;if(Array.isArray(B)){if(B.length===0)return"[]";if(r<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=o.createElement(A,{is:i.is}):(e=o.createElement(A),A==="select"&&(o=e,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):e=o.createElementNS(e,A),e[BA]=t,e[yo]=i,WQ(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ol(A,i),A){case"dialog":he("cancel",e),he("close",e),n=i;break;case"iframe":case"object":case"embed":he("load",e),n=i;break;case"video":case"audio":for(n=0;ntr&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304)}else{if(!i)if(e=Ja(o),e!==null){if(t.flags|=128,i=!0,A=e.updateQueue,A!==null&&(t.updateQueue=A,t.flags|=4),Zr(r,!0),r.tail===null&&r.tailMode==="hidden"&&!o.alternate&&!me)return et(t),null}else 2*Ue()-r.renderingStartTime>tr&&A!==1073741824&&(t.flags|=128,i=!0,Zr(r,!1),t.lanes=4194304);r.isBackwards?(o.sibling=t.child,t.child=o):(A=r.last,A!==null?A.sibling=o:t.child=o,r.last=o)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Ue(),t.sibling=null,A=we.current,fe(we,i?A&1|2:A&1),t):(et(t),null);case 22:case 23:return ru(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Ut&1073741824&&(et(t),t.subtreeFlags&6&&(t.flags|=8192)):et(t),null;case 24:return null;case 25:return null}throw Error(x(156,t.tag))}function bD(e,t){switch(Kg(t),t.tag){case 1:return ht(t.type)&&Na(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return $n(),pe(Qt),pe(At),_g(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Tg(t),null;case 13:if(pe(we),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(x(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return pe(we),null;case 4:return $n(),null;case 10:return Yg(t.type._context),null;case 22:case 23:return ru(),null;case 24:return null;default:return null}}var Ia=!1,tt=!1,OD=typeof WeakSet=="function"?WeakSet:Set,R=null;function On(e,t){var A=e.ref;if(A!==null)if(typeof A=="function")try{A(null)}catch(i){Se(e,t,i)}else A.current=null}function fg(e,t,A){try{A()}catch(i){Se(e,t,i)}}var sC=!1;function LD(e,t){if(Wl=Da,e=iQ(),Jg(e)){if("selectionStart"in e)var A={start:e.selectionStart,end:e.selectionEnd};else e:{A=(A=e.ownerDocument)&&A.defaultView||window;var i=A.getSelection&&A.getSelection();if(i&&i.rangeCount!==0){A=i.anchorNode;var n=i.anchorOffset,r=i.focusNode;i=i.focusOffset;try{A.nodeType,r.nodeType}catch{A=null;break e}var o=0,s=-1,a=-1,c=0,I=0,l=e,u=null;t:for(;;){for(var g;l!==A||n!==0&&l.nodeType!==3||(s=o+n),l!==r||i!==0&&l.nodeType!==3||(a=o+i),l.nodeType===3&&(o+=l.nodeValue.length),(g=l.firstChild)!==null;)u=l,l=g;for(;;){if(l===e)break t;if(u===A&&++c===n&&(s=o),u===r&&++I===i&&(a=o),(g=l.nextSibling)!==null)break;l=u,u=l.parentNode}l=g}A=s===-1||a===-1?null:{start:s,end:a}}else A=null}A=A||{start:0,end:0}}else A=null;for(jl={focusedElem:e,selectionRange:A},Da=!1,R=t;R!==null;)if(t=R,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,R=e;else for(;R!==null;){t=R;try{var f=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(f!==null){var C=f.memoizedProps,D=f.memoizedState,d=t.stateNode,B=d.getSnapshotBeforeUpdate(t.elementType===t.type?C:$t(t.type,C),D);d.__reactInternalSnapshotBeforeUpdate=B}break;case 3:var Q=t.stateNode.containerInfo;Q.nodeType===1?Q.textContent="":Q.nodeType===9&&Q.documentElement&&Q.removeChild(Q.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(y){Se(t,t.return,y)}if(e=t.sibling,e!==null){e.return=t.return,R=e;break}R=t.return}return f=sC,sC=!1,f}function Io(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&&fg(t,A,r)}n=n.next}while(n!==i)}}function $a(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var A=t=t.next;do{if((A.tag&e)===e){var i=A.create;A.destroy=i()}A=A.next}while(A!==t)}}function Bg(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 eh(e){var t=e.alternate;t!==null&&(e.alternate=null,eh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[BA],delete t[yo],delete t[tg],delete t[wD],delete t[FD])),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 th(e){return e.tag===5||e.tag===3||e.tag===4}function aC(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||th(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 dg(e,t,A){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?A.nodeType===8?A.parentNode.insertBefore(e,t):A.insertBefore(e,t):(A.nodeType===8?(t=A.parentNode,t.insertBefore(e,A)):(t=A,t.appendChild(e)),A=A._reactRootContainer,A!=null||t.onclick!==null||(t.onclick=Ua));else if(i!==4&&(e=e.child,e!==null))for(dg(e,t,A),e=e.sibling;e!==null;)dg(e,t,A),e=e.sibling}function Cg(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(Cg(e,t,A),e=e.sibling;e!==null;)Cg(e,t,A),e=e.sibling}var Te=null,eA=!1;function ti(e,t,A){for(A=A.child;A!==null;)Ah(e,t,A),A=A.sibling}function Ah(e,t,A){if(dA&&typeof dA.onCommitFiberUnmount=="function")try{dA.onCommitFiberUnmount(Va,A)}catch{}switch(A.tag){case 5:tt||On(A,t);case 6:var i=Te,n=eA;Te=null,ti(e,t,A),Te=i,eA=n,Te!==null&&(eA?(e=Te,A=A.stateNode,e.nodeType===8?e.parentNode.removeChild(A):e.removeChild(A)):Te.removeChild(A.stateNode));break;case 18:Te!==null&&(eA?(e=Te,A=A.stateNode,e.nodeType===8?pl(e.parentNode,A):e.nodeType===1&&pl(e,A),Qo(e)):pl(Te,A.stateNode));break;case 4:i=Te,n=eA,Te=A.stateNode.containerInfo,eA=!0,ti(e,t,A),Te=i,eA=n;break;case 0:case 11:case 14:case 15:if(!tt&&(i=A.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var r=n,o=r.destroy;r=r.tag,o!==void 0&&(r&2||r&4)&&fg(A,t,o),n=n.next}while(n!==i)}ti(e,t,A);break;case 1:if(!tt&&(On(A,t),i=A.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=A.memoizedProps,i.state=A.memoizedState,i.componentWillUnmount()}catch(s){Se(A,t,s)}ti(e,t,A);break;case 21:ti(e,t,A);break;case 22:A.mode&1?(tt=(i=tt)||A.memoizedState!==null,ti(e,t,A),tt=i):ti(e,t,A);break;default:ti(e,t,A)}}function IC(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var A=e.stateNode;A===null&&(A=e.stateNode=new OD),t.forEach(function(i){var n=WD.bind(null,e,i);A.has(i)||(A.add(i),i.then(n,n))})}}function jt(e,t){var A=t.deletions;if(A!==null)for(var i=0;in&&(n=o),i&=~r}if(i=n,i=Ue()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*PD(i/1960))-i,10e?16:e,si===null)var i=!1;else{if(e=si,si=null,La=0,re&6)throw Error(x(331));var n=re;for(re|=4,R=e.current;R!==null;){var r=R,o=r.child;if(R.flags&16){var s=r.deletions;if(s!==null){for(var a=0;aUe()-iu?Vi(e,0):Au|=A),pt(e,t)}function ch(e,t){t===0&&(e.mode&1?(t=Zs,Zs<<=1,!(Zs&130023424)&&(Zs=4194304)):t=1);var A=st();e=qA(e,t),e!==null&&(No(e,t,A),pt(e,A))}function ZD(e){var t=e.memoizedState,A=0;t!==null&&(A=t.retryLane),ch(e,A)}function WD(e,t){var A=0;switch(e.tag){case 13:var i=e.stateNode,n=e.memoizedState;n!==null&&(A=n.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(x(314))}i!==null&&i.delete(t),ch(e,A)}var lh;lh=function(e,t,A){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qt.current)Ct=!0;else{if(!(e.lanes&A)&&!(t.flags&128))return Ct=!1,qD(e,t,A);Ct=!!(e.flags&131072)}else Ct=!1,me&&t.flags&1048576&&fQ(t,Ha,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Ca(e,t),e=t.pendingProps;var n=Zn(t,At.current);Tn(t,A),n=Zg(null,t,i,e,n,A);var r=Wg();return t.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ht(i)?(r=!0,xa(t)):r=!1,t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Vg(t),n.updater=Wa,t.stateNode=n,n._reactInternals=t,sg(t,i,e,A),t=cg(null,t,i,!0,r,A)):(t.tag=0,me&&r&&qg(t),ot(null,t,n,A),t=t.child),t;case 16:i=t.elementType;e:{switch(Ca(e,t),e=t.pendingProps,n=i._init,i=n(i._payload),t.type=i,n=t.tag=$D(i),e=$t(i,e),n){case 0:t=Ig(null,t,i,e,A);break e;case 1:t=nC(null,t,i,e,A);break e;case 11:t=AC(null,t,i,e,A);break e;case 14:t=iC(null,t,i,$t(i.type,e),A);break e}throw Error(x(306,i,""))}return t;case 0:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),Ig(e,t,i,n,A);case 1:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),nC(e,t,i,n,A);case 3:e:{if(_Q(t),e===null)throw Error(x(387));i=t.pendingProps,r=t.memoizedState,n=r.element,QQ(e,t),Ra(t,i,null,A);var o=t.memoizedState;if(i=o.element,r.isDehydrated)if(r={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){n=er(Error(x(423)),t),t=rC(e,t,i,A,n);break e}else if(i!==n){n=er(Error(x(424)),t),t=rC(e,t,i,A,n);break e}else for(Nt=li(t.stateNode.containerInfo.firstChild),xt=t,me=!0,tA=null,A=mQ(t,null,i,A),t.child=A;A;)A.flags=A.flags&-3|4096,A=A.sibling;else{if(Wn(),i===n){t=KA(e,t,A);break e}ot(e,t,i,A)}t=t.child}return t;case 5:return yQ(t),e===null&&ng(t),i=t.type,n=t.pendingProps,r=e!==null?e.memoizedProps:null,o=n.children,$l(i,n)?o=null:r!==null&&$l(i,r)&&(t.flags|=32),TQ(e,t),ot(e,t,o,A),t.child;case 6:return e===null&&ng(t),null;case 13:return XQ(e,t,A);case 4:return zg(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=jn(t,null,i,A):ot(e,t,i,A),t.child;case 11:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),AC(e,t,i,n,A);case 7:return ot(e,t,t.pendingProps,A),t.child;case 8:return ot(e,t,t.pendingProps.children,A),t.child;case 12:return ot(e,t,t.pendingProps.children,A),t.child;case 10:e:{if(i=t.type._context,n=t.pendingProps,r=t.memoizedProps,o=n.value,fe(Ma,i._currentValue),i._currentValue=o,r!==null)if(nA(r.value,o)){if(r.children===n.children&&!Qt.current){t=KA(e,t,A);break e}}else for(r=t.child,r!==null&&(r.return=t);r!==null;){var s=r.dependencies;if(s!==null){o=r.child;for(var a=s.firstContext;a!==null;){if(a.context===i){if(r.tag===1){a=vA(-1,A&-A),a.tag=2;var c=r.updateQueue;if(c!==null){c=c.shared;var I=c.pending;I===null?a.next=a:(a.next=I.next,I.next=a),c.pending=a}}r.lanes|=A,a=r.alternate,a!==null&&(a.lanes|=A),rg(r.return,A,t),s.lanes|=A;break}a=a.next}}else if(r.tag===10)o=r.type===t.type?null:r.child;else if(r.tag===18){if(o=r.return,o===null)throw Error(x(341));o.lanes|=A,s=o.alternate,s!==null&&(s.lanes|=A),rg(o,A,t),o=r.sibling}else o=r.child;if(o!==null)o.return=r;else for(o=r;o!==null;){if(o===t){o=null;break}if(r=o.sibling,r!==null){r.return=o.return,o=r;break}o=o.return}r=o}ot(e,t,n.children,A),t=t.child}return t;case 9:return n=t.type,i=t.pendingProps.children,Tn(t,A),n=Ot(n),i=i(n),t.flags|=1,ot(e,t,i,A),t.child;case 14:return i=t.type,n=$t(i,t.pendingProps),n=$t(i.type,n),iC(e,t,i,n,A);case 15:return VQ(e,t,t.type,t.pendingProps,A);case 17:return i=t.type,n=t.pendingProps,n=t.elementType===i?n:$t(i,n),Ca(e,t),t.tag=1,ht(i)?(e=!0,xa(t)):e=!1,Tn(t,A),pQ(t,i,n),sg(t,i,n,A),cg(null,t,i,!0,e,A);case 19:return ZQ(e,t,A);case 22:return zQ(e,t,A)}throw Error(x(156,t.tag))};function gh(e,t){return qC(e,t)}function jD(e,t,A,i){this.tag=e,this.key=A,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kt(e,t,A,i){return new jD(e,t,A,i)}function su(e){return e=e.prototype,!(!e||!e.isReactComponent)}function $D(e){if(typeof e=="function")return su(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dg)return 11;if(e===kg)return 14}return 2}function Bi(e,t){var A=e.alternate;return A===null?(A=Kt(e.tag,t,e.key,e.mode),A.elementType=e.elementType,A.type=e.type,A.stateNode=e.stateNode,A.alternate=e,e.alternate=A):(A.pendingProps=t,A.type=e.type,A.flags=0,A.subtreeFlags=0,A.deletions=null),A.flags=e.flags&14680064,A.childLanes=e.childLanes,A.lanes=e.lanes,A.child=e.child,A.memoizedProps=e.memoizedProps,A.memoizedState=e.memoizedState,A.updateQueue=e.updateQueue,t=e.dependencies,A.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},A.sibling=e.sibling,A.index=e.index,A.ref=e.ref,A}function pa(e,t,A,i,n,r){var o=2;if(i=e,typeof e=="function")su(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Gn:return zi(A.children,n,r,t);case Fg:o=8,n|=8;break;case xl:return e=Kt(12,A,t,n|2),e.elementType=xl,e.lanes=r,e;case Gl:return e=Kt(13,A,t,n),e.elementType=Gl,e.lanes=r,e;case Hl:return e=Kt(19,A,t,n),e.elementType=Hl,e.lanes=r,e;case EC:return tI(A,n,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case hC:o=10;break e;case pC:o=9;break e;case Dg:o=11;break e;case kg:o=14;break e;case Ai:o=16,i=null;break e}throw Error(x(130,e==null?e:typeof e,""))}return t=Kt(o,A,t,n),t.elementType=e,t.type=i,t.lanes=r,t}function zi(e,t,A,i){return e=Kt(7,e,i,t),e.lanes=A,e}function tI(e,t,A,i){return e=Kt(22,e,i,t),e.elementType=EC,e.lanes=A,e.stateNode={isHidden:!1},e}function Sl(e,t,A){return e=Kt(6,e,null,t),e.lanes=A,e}function Ul(e,t,A){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=A,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ek(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=gl(0),this.expirationTimes=gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gl(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function au(e,t,A,i,n,r,o,s,a){return e=new ek(e,t,A,s,a),t===1?(t=1,r===!0&&(t|=8)):t=0,r=Kt(3,null,null,t),e.current=r,r.stateNode=e,r.memoizedState={element:i,isDehydrated:A,cache:null,transitions:null,pendingSuspenseBoundaries:null},Vg(r),e}function tk(e,t,A){var i=3{"use strict";function Ch(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Ch)}catch(e){console.error(e)}}Ch(),Qh.exports=dh()});var ph=Qe(uu=>{"use strict";var hh=gu();uu.createRoot=hh.createRoot,uu.hydrateRoot=hh.hydrateRoot;var yH});var Dh=Qe(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.output=It.exists=It.hash=It.bytes=It.bool=It.number=void 0;function oI(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}It.number=oI;function mh(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}It.bool=mh;function sk(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function fu(e,...t){if(!sk(e))throw new Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw new Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}It.bytes=fu;function yh(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");oI(e.outputLen),oI(e.blockLen)}It.hash=yh;function wh(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}It.exists=wh;function Fh(e,t){fu(e);let A=t.outputLen;if(e.length{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.add5L=P.add5H=P.add4H=P.add4L=P.add3H=P.add3L=P.add=P.rotlBL=P.rotlBH=P.rotlSL=P.rotlSH=P.rotr32L=P.rotr32H=P.rotrBL=P.rotrBH=P.rotrSL=P.rotrSH=P.shrSL=P.shrSH=P.toBig=P.split=P.fromBig=void 0;var sI=BigInt(2**32-1),Bu=BigInt(32);function du(e,t=!1){return t?{h:Number(e&sI),l:Number(e>>Bu&sI)}:{h:Number(e>>Bu&sI)|0,l:Number(e&sI)|0}}P.fromBig=du;function kh(e,t=!1){let A=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let n=0;nBigInt(e>>>0)<>>0);P.toBig=Sh;var Uh=(e,t,A)=>e>>>A;P.shrSH=Uh;var Nh=(e,t,A)=>e<<32-A|t>>>A;P.shrSL=Nh;var xh=(e,t,A)=>e>>>A|t<<32-A;P.rotrSH=xh;var Gh=(e,t,A)=>e<<32-A|t>>>A;P.rotrSL=Gh;var Hh=(e,t,A)=>e<<64-A|t>>>A-32;P.rotrBH=Hh;var Mh=(e,t,A)=>e>>>A-32|t<<64-A;P.rotrBL=Mh;var vh=(e,t)=>t;P.rotr32H=vh;var Rh=(e,t)=>e;P.rotr32L=Rh;var Jh=(e,t,A)=>e<>>32-A;P.rotlSH=Jh;var qh=(e,t,A)=>t<>>32-A;P.rotlSL=qh;var Kh=(e,t,A)=>t<>>64-A;P.rotlBH=Kh;var bh=(e,t,A)=>e<>>64-A;P.rotlBL=bh;function Oh(e,t,A,i){let n=(t>>>0)+(i>>>0);return{h:e+A+(n/2**32|0)|0,l:n|0}}P.add=Oh;var Lh=(e,t,A)=>(e>>>0)+(t>>>0)+(A>>>0);P.add3L=Lh;var Yh=(e,t,A,i)=>t+A+i+(e/2**32|0)|0;P.add3H=Yh;var Ph=(e,t,A,i)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0);P.add4L=Ph;var Vh=(e,t,A,i,n)=>t+A+i+n+(e/2**32|0)|0;P.add4H=Vh;var zh=(e,t,A,i,n)=>(e>>>0)+(t>>>0)+(A>>>0)+(i>>>0)+(n>>>0);P.add5L=zh;var Th=(e,t,A,i,n,r)=>t+A+i+n+r+(e/2**32|0)|0;P.add5H=Th;var Ik={fromBig:du,split:kh,toBig:Sh,shrSH:Uh,shrSL:Nh,rotrSH:xh,rotrSL:Gh,rotrBH:Hh,rotrBL:Mh,rotr32H:vh,rotr32L:Rh,rotlSH:Jh,rotlSL:qh,rotlBH:Kh,rotlBL:bh,add:Oh,add3L:Lh,add3H:Yh,add4L:Ph,add4H:Vh,add5H:Th,add5L:zh};P.default=Ik});var Xh=Qe(aI=>{"use strict";Object.defineProperty(aI,"__esModule",{value:!0});aI.crypto=void 0;aI.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var jh=Qe(_=>{"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 Cu=Xh(),ck=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);_.u8=ck;var lk=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));_.u32=lk;function hu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var gk=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);_.createView=gk;var uk=(e,t)=>e<<32-t|e>>>t;_.rotr=uk;_.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!_.isLE)throw new Error("Non little-endian hardware is not supported");var fk=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Bk(e){if(!hu(e))throw new Error("Uint8Array expected");let t="";for(let A=0;A=OA._0&&e<=OA._9)return e-OA._0;if(e>=OA._A&&e<=OA._F)return e-(OA._A-10);if(e>=OA._a&&e<=OA._f)return e-(OA._a-10)}function dk(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{};_.nextTick=Ck;async function Qk(e,t,A){let i=Date.now();for(let n=0;n=0&&re().update(II(i)).digest(),A=e();return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=()=>e(),t}_.wrapConstructor=mk;function yk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapConstructorWithOpts=yk;function wk(e){let t=(i,n)=>e(n).update(II(i)).digest(),A=e({});return t.outputLen=A.outputLen,t.blockLen=A.blockLen,t.create=i=>e(i),t}_.wrapXOFConstructorWithOpts=wk;function Fk(e=32){if(Cu.crypto&&typeof Cu.crypto.getRandomValues=="function")return Cu.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}_.randomBytes=Fk});var pu=Qe(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.shake256=Be.shake128=Be.keccak_512=Be.keccak_384=Be.keccak_256=Be.keccak_224=Be.sha3_512=Be.sha3_384=Be.sha3_256=Be.sha3_224=Be.Keccak=Be.keccakP=void 0;var rr=Dh(),Ro=_h(),vo=jh(),[tp,Ap,ip]=[[],[],[]],Dk=BigInt(0),Mo=BigInt(1),kk=BigInt(2),Sk=BigInt(7),Uk=BigInt(256),Nk=BigInt(113);for(let e=0,t=Mo,A=1,i=0;e<24;e++){[A,i]=[i,(2*A+3*i)%5],tp.push(2*(5*i+A)),Ap.push((e+1)*(e+2)/2%64);let n=Dk;for(let r=0;r<7;r++)t=(t<>Sk)*Nk)%Uk,t&kk&&(n^=Mo<<(Mo<A>32?(0,Ro.rotlBH)(e,t,A):(0,Ro.rotlSH)(e,t,A),ep=(e,t,A)=>A>32?(0,Ro.rotlBL)(e,t,A):(0,Ro.rotlSL)(e,t,A);function np(e,t=24){let A=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let o=0;o<10;o++)A[o]=e[o]^e[o+10]^e[o+20]^e[o+30]^e[o+40];for(let o=0;o<10;o+=2){let s=(o+8)%10,a=(o+2)%10,c=A[a],I=A[a+1],l=$h(c,I,1)^A[s],u=ep(c,I,1)^A[s+1];for(let g=0;g<50;g+=10)e[o+g]^=l,e[o+g+1]^=u}let n=e[2],r=e[3];for(let o=0;o<24;o++){let s=Ap[o],a=$h(n,r,s),c=ep(n,r,s),I=tp[o];n=e[I],r=e[I+1],e[I]=a,e[I+1]=c}for(let o=0;o<50;o+=10){for(let s=0;s<10;s++)A[s]=e[o+s];for(let s=0;s<10;s++)e[o+s]^=~A[(s+2)%10]&A[(s+4)%10]}e[0]^=xk[i],e[1]^=Gk[i]}A.fill(0)}Be.keccakP=np;var Jo=class e extends vo.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,rr.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,vo.u32)(this.state)}keccak(){np(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,rr.exists)(this);let{blockLen:A,state:i}=this;t=(0,vo.toBytes)(t);let n=t.length;for(let r=0;r=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,rr.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,rr.output)(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:A,suffix:i,outputLen:n,rounds:r,enableXOF:o}=this;return t||(t=new e(A,i,n,o,r)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=r,t.suffix=i,t.outputLen=n,t.enableXOF=o,t.destroyed=this.destroyed,t}};Be.Keccak=Jo;var mi=(e,t,A)=>(0,vo.wrapConstructor)(()=>new Jo(t,e,A));Be.sha3_224=mi(6,144,224/8);Be.sha3_256=mi(6,136,256/8);Be.sha3_384=mi(6,104,384/8);Be.sha3_512=mi(6,72,512/8);Be.keccak_224=mi(1,144,224/8);Be.keccak_256=mi(1,136,256/8);Be.keccak_384=mi(1,104,384/8);Be.keccak_512=mi(1,72,512/8);var rp=(e,t,A)=>(0,vo.wrapXOFConstructorWithOpts)((i={})=>new Jo(t,e,i.dkLen===void 0?A:i.dkLen,!0));Be.shake128=rp(31,168,128/8);Be.shake256=rp(31,136,256/8)});var up=Qe((MH,yi)=>{var{sha3_512:Hk}=pu(),sp=24,qo=32,Eu=(e=4,t=Math.random)=>{let A="";for(;A.lengthap(Hk(e)).toString(36).slice(1),op=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Mk=e=>op[Math.floor(e()*op.length)],cp=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),A=t.length?t+Eu(qo):Eu(qo);return Ip(A).substring(0,qo)},lp=e=>()=>e++,vk=476782367,gp=({random:e=Math.random,counter:t=lp(Math.floor(e()*vk)),length:A=sp,fingerprint:i=cp()}={})=>function(){let r=Mk(e),o=Date.now().toString(36),s=t().toString(36),a=Eu(A,e),c=`${o+a+s+i}`;return`${r+Ip(c).substring(1,A)}`},Rk=gp(),Jk=(e,{minLength:t=2,maxLength:A=qo}={})=>{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};yi.exports.getConstants=()=>({defaultLength:sp,bigLength:qo});yi.exports.init=gp;yi.exports.createId=Rk;yi.exports.bufToBigInt=ap;yi.exports.createCounter=lp;yi.exports.createFingerprint=cp;yi.exports.isCuid=Jk});var fp=Qe((vH,Ko)=>{var{createId:qk,init:Kk,getConstants:bk,isCuid:Ok}=up();Ko.exports.createId=qk;Ko.exports.init=Kk;Ko.exports.getConstants=bk;Ko.exports.isCuid=Ok});var dp=Qe(yu=>{"use strict";var Lk=Symbol.for("react.fragment");yu.Fragment=Lk;yu.jsxDEV=void 0});var Qp=Qe((KH,Cp)=>{"use strict";Cp.exports=dp()});var pp=Qe(cI=>{"use strict";var Yk=ze(),Pk=Symbol.for("react.element"),Vk=Symbol.for("react.fragment"),zk=Object.prototype.hasOwnProperty,Tk=Yk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,_k={key:!0,ref:!0,__self:!0,__source:!0};function hp(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)zk.call(t,i)&&!_k.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:Pk,type:e,key:r,ref:o,props:n,_owner:Tk.current}}cI.Fragment=Vk;cI.jsx=hp;cI.jsxs=hp});var se=Qe((OH,Ep)=>{"use strict";Ep.exports=pp()});var jm=Qe((Of,Wm)=>{"use strict";var{hasOwnProperty:nc}=Object.prototype,hn=bf();hn.configure=bf;hn.stringify=hn;hn.default=hn;Of.stringify=hn;Of.configure=bf;Wm.exports=hn;var i3=/[\u0000-\u001f\u0022\u005c\ud800-\udfff]|[\ud800-\udbff](?![\udc00-\udfff])|(?:[^\ud800-\udbff]|^)[\udc00-\udfff]/;function Hi(e){return e.length<5e3&&!i3.test(e)?`"${e}"`:JSON.stringify(e)}function qf(e){if(e.length>200)return e.sort();for(let t=1;tA;)e[i]=e[i-1],i--;e[i]=A}return e}var n3=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Object.getPrototypeOf(new Int8Array)),Symbol.toStringTag).get;function Kf(e){return n3.call(e)!==void 0&&e.length!==0}function _m(e,t,A){e.length= 1`)}return A===void 0?1/0:A}function Qn(e){return e===1?"1 item":`${e} items`}function o3(e){let t=new Set;for(let A of e)(typeof A=="string"||typeof A=="number")&&t.add(String(A));return t}function s3(e){if(nc.call(e,"strict")){let t=e.strict;if(typeof t!="boolean")throw new TypeError('The "strict" argument must be of type boolean');if(t)return A=>{let i=`Object can not safely be stringified. Received type ${typeof A}`;throw typeof A!="function"&&(i+=` (${A.toString()})`),new Error(i)}}}function bf(e){e={...e};let t=s3(e);t&&(e.bigint===void 0&&(e.bigint=!1),"circularValue"in e||(e.circularValue=Error));let A=r3(e),i=Xm(e,"bigint"),n=Xm(e,"deterministic"),r=Zm(e,"maximumDepth"),o=Zm(e,"maximumBreadth");function s(u,g,f,C,D,d){let B=g[u];switch(typeof B=="object"&&B!==null&&typeof B.toJSON=="function"&&(B=B.toJSON(u)),B=C.call(g,u,B),typeof B){case"string":return Hi(B);case"object":{if(B===null)return"null";if(f.indexOf(B)!==-1)return A;let Q="",y=",",k=d;if(Array.isArray(B)){if(B.length===0)return"[]";if(ro){let m=B.length-o-1;Q+=`${y}"... ${Qn(m)} not stringified"`}return D!==""&&(Q+=` ${k}`),f.pop(),`[${Q}]`}let F=Object.keys(B),S=F.length;if(S===0)return"{}";if(ro){let N=Q-o;k+=`${F}"...": "${Qn(N)} not stringified"`,F=y}return F!==""&&(k=` ${D}${k} -${d}`),f.pop(),`{${k}}`}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 I(u,g,f){switch(typeof g){case"string":return Hi(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(u),typeof g!="object")return I(u,g,f);if(g===null)return"null"}if(f.indexOf(g)!==-1)return A;let C="";if(Array.isArray(g)){if(g.length===0)return"[]";if(ro){let S=g.length-o-1;C+=`,"... ${Qn(S)} not stringified"`}return f.pop(),`[${C}]`}let D=Object.keys(g),d=D.length;if(d===0)return"{}";if(ro){let y=d-o;C+=`${B}"...":"${Qn(y)} not stringified"`}return f.pop(),`{${C}}`}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 l(u,g,f){if(arguments.length>1){let C="";if(typeof f=="number"?C=" ".repeat(Math.min(f,10)):typeof f=="string"&&(C=f.slice(0,10)),g!=null){if(typeof g=="function")return s("",{"":u},[],g,C,"");if(Array.isArray(g))return a("",u,[],o3(g),C,"")}if(C.length!==0)return c("",u,[],C,"")}return I("",u,[])}return l}});var dy=Qe((DR,Mi)=>{var{sha3_512:C3}=pu(),cy=24,ps=32,Vf=(e=4,t=Math.random)=>{let A="";for(;A.lengthly(C3(e)).toString(36).slice(1),Iy=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Q3=e=>Iy[Math.floor(e()*Iy.length)],uy=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let A=Object.keys(e).toString(),i=A.length?A+Vf(ps,t):Vf(ps,t);return gy(i).substring(0,ps)},fy=e=>()=>e++,h3=476782367,By=({random:e=Math.random,counter:t=fy(Math.floor(e()*h3)),length:A=cy,fingerprint:i=uy({random:e})}={})=>function(){let r=Q3(e),o=Date.now().toString(36),s=t().toString(36),a=Vf(A,e),c=`${o+a+s+i}`;return`${r+gy(c).substring(1,A)}`},p3=By(),E3=(e,{minLength:t=2,maxLength:A=ps}={})=>{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};Mi.exports.getConstants=()=>({defaultLength:cy,bigLength:ps});Mi.exports.init=By;Mi.exports.createId=p3;Mi.exports.bufToBigInt=ly;Mi.exports.createCounter=fy;Mi.exports.createFingerprint=uy;Mi.exports.isCuid=E3});var oc=Qe((kR,Es)=>{var{createId:m3,init:y3,getConstants:w3,isCuid:F3}=dy();Es.exports.createId=m3;Es.exports.init=y3;Es.exports.getConstants=w3;Es.exports.isCuid=F3});var ww=Qe((oq,yw)=>{var Sx=1/0,Ux="[object Symbol]",Nx=/^\s+|\s+$/g,dB="\\ud800-\\udfff",gw="\\u0300-\\u036f\\ufe20-\\ufe23",uw="\\u20d0-\\u20f0",fw="\\ufe0e\\ufe0f",xx="["+dB+"]",fB="["+gw+uw+"]",BB="\\ud83c[\\udffb-\\udfff]",Gx="(?:"+fB+"|"+BB+")",Bw="[^"+dB+"]",dw="(?:\\ud83c[\\udde6-\\uddff]){2}",Cw="[\\ud800-\\udbff][\\udc00-\\udfff]",Qw="\\u200d",hw=Gx+"?",pw="["+fw+"]?",Hx="(?:"+Qw+"(?:"+[Bw,dw,Cw].join("|")+")"+pw+hw+")*",Mx=pw+hw+Hx,vx="(?:"+[Bw+fB+"?",fB,dw,Cw,xx].join("|")+")",Rx=RegExp(BB+"(?="+BB+")|"+vx+Mx,"g"),Jx=RegExp("["+Qw+dB+gw+uw+fw+"]"),qx=typeof global=="object"&&global&&global.Object===Object&&global,Kx=typeof self=="object"&&self&&self.Object===Object&&self,bx=qx||Kx||Function("return this")();function Ox(e){return e.split("")}function Lx(e,t,A,i){for(var n=e.length,r=A+(i?1:-1);i?r--:++r-1;);return A}function Vx(e,t){for(var A=e.length;A--&&Ew(t,e[A],0)>-1;);return A}function zx(e){return Jx.test(e)}function aw(e){return zx(e)?Tx(e):Ox(e)}function Tx(e){return e.match(Rx)||[]}var _x=Object.prototype,Xx=_x.toString,Iw=bx.Symbol,cw=Iw?Iw.prototype:void 0,lw=cw?cw.toString:void 0;function Zx(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=i?e:Zx(e,t,A)}function jx(e){return!!e&&typeof e=="object"}function $x(e){return typeof e=="symbol"||jx(e)&&Xx.call(e)==Ux}function eG(e){return e==null?"":mw(e)}function tG(e,t,A){if(e=eG(e),e&&(A||t===void 0))return e.replace(Nx,"");if(!e||!(t=mw(t)))return e;var i=aw(e),n=aw(t),r=Px(i,n),o=Vx(i,n)+1;return Wx(i,r,o).join("")}yw.exports=tG});var Uw=Qe((fq,Sw)=>{"use strict";function nG(e,t){for(;e.length{var BG="Expected a function",Tw="__lodash_hash_undefined__",_w=1/0,dG="[object Function]",CG="[object GeneratorFunction]",QG="[object Symbol]",hG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pG=/^\w*$/,EG=/^\./,mG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yG=/[\\^$.*+?()[\]{}|]/g,wG=/\\(\\)?/g,FG=/^\[object .+?Constructor\]$/,DG=typeof global=="object"&&global&&global.Object===Object&&global,kG=typeof self=="object"&&self&&self.Object===Object&&self,EB=DG||kG||Function("return this")();function SG(e,t){return e?.[t]}function UG(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var NG=Array.prototype,xG=Function.prototype,Xw=Object.prototype,pB=EB["__core-js_shared__"],Yw=function(){var e=/[^.]+$/.exec(pB&&pB.keys&&pB.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Zw=xG.toString,mB=Xw.hasOwnProperty,Ww=Xw.toString,GG=RegExp("^"+Zw.call(mB).replace(yG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pw=EB.Symbol,HG=NG.splice,MG=jw(EB,"Map"),Gs=jw(Object,"create"),Vw=Pw?Pw.prototype:void 0,zw=Vw?Vw.toString:void 0;function wn(e){var t=-1,A=e?e.length:0;for(this.clear();++t-1}function PG(e,t){var A=this.__data__,i=Hc(A,e);return i<0?A.push([e,t]):A[i][1]=t,this}vr.prototype.clear=bG;vr.prototype.delete=OG;vr.prototype.get=LG;vr.prototype.has=YG;vr.prototype.set=PG;function Fn(e){var t=-1,A=e?e.length:0;for(this.clear();++t{(function(e,t){"use strict";var A="1.0.37",i="",n="?",r="function",o="undefined",s="object",a="string",c="major",I="model",l="name",u="type",g="vendor",f="version",C="architecture",D="console",d="mobile",B="tablet",Q="smarttv",y="wearable",k="embedded",F=500,S="Amazon",N="Apple",b="ASUS",q="BlackBerry",Z="Browser",xe="Chrome",Bt="Edge",m="Firefox",J="Google",M="Huawei",U="LG",G="Microsoft",z="Motorola",O="Opera",L="Samsung",ae="Sharp",ne="Sony",We="Xiaomi",Xt="Zebra",Zt="Facebook",vB="Chromium OS",RB="Mac OS",M0=function(te,Ie){var T={};for(var ge in te)Ie[ge]&&Ie[ge].length%2===0?T[ge]=Ie[ge].concat(te[ge]):T[ge]=te[ge];return T},Rs=function(te){for(var Ie={},T=0;T0?oe.length===2?typeof oe[1]==r?this[oe[0]]=oe[1].call(this,lA):this[oe[0]]=oe[1]:oe.length===3?typeof oe[1]===r&&!(oe[1].exec&&oe[1].test)?this[oe[0]]=lA?oe[1].call(this,lA,oe[2]):t:this[oe[0]]=lA?lA.replace(oe[1],oe[2]):t:oe.length===4&&(this[oe[0]]=lA?oe[3].call(this,lA.replace(oe[1],oe[2])):t):this[oe]=lA||t;T+=2}},Vc=function(te,Ie){for(var T in Ie)if(typeof Ie[T]===s&&Ie[T].length>0){for(var ge=0;ge2&&(V[I]="iPad",V[u]=B),V},this.getEngine=function(){var V={};return V[l]=t,V[f]=t,br.call(V,ge,cA.engine),V},this.getOS=function(){var V={};return V[l]=t,V[f]=t,br.call(V,ge,cA.os),oe&&!V[l]&&$A&&$A.platform!="Unknown"&&(V[l]=$A.platform.replace(/chrome os/i,vB).replace(/macos/i,RB)),V},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(V){return ge=typeof V===a&&V.length>F?Pc(V,F):V,this},this.setUA(ge),this};St.VERSION=A,St.BROWSER=Rs([l,f,c]),St.CPU=Rs([C]),St.DEVICE=Rs([I,g,u,D,d,Q,B,y,k]),St.ENGINE=St.OS=Rs([l,f]),typeof vs!==o?(typeof Lc!==o&&Lc.exports&&(vs=Lc.exports=St),vs.UAParser=St):typeof define===r&&define.amd?define(function(){return St}):typeof e!==o&&(e.UAParser=St);var Sn=typeof e!==o&&(e.jQuery||e.Zepto);if(Sn&&!Sn.ua){var Js=new St;Sn.ua=Js.getResult(),Sn.ua.get=function(){return Js.getUA()},Sn.ua.set=function(te){Js.setUA(te);var Ie=Js.getResult();for(var T in Ie)Sn.ua[T]=Ie[T]}}})(typeof window=="object"?window:vs)});var G0=K(ph());var rr=K(ze()),Ei=(e,t,A)=>{let[,i]=(0,rr.useState)({}),r=(0,rr.useRef)({data:e,deps:A||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,rr.useEffect)(()=>{r.ready=!0,t&&t({init:!0})},[]),r.ready===!1){r._loading={};for(let[o,s]of Object.entries(e))if(!r.promisedKeys.has(o)){let a=s;typeof a=="object"&&a instanceof Promise&&(r._loading[o]=!0,r.promisedKeys.add(o),r.data[o]=null,a.then(c=>{r.data[o]=c,r._loading[o]=!1,r.data.render()}))}r.data.render=()=>{r.ready&&i({})}}else if(r.deps.length>0&&A){for(let[o,s]of Object.entries(A))if(r.deps[o]!==s){r.deps[o]=s,t&&setTimeout(()=>{t({init:!1})});break}}return r.data};var Eh=(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 ok=K(ze());var Bp=K(fp()),LA=K(ze()),mu=(0,LA.createContext)({global:{},render:()=>{}});var wi=(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,Bp.createId)()),n=i.globalValueID.get(e)||""),n||(n="GLOBAL_DEFAULT");let r=(0,LA.useContext)(mu),{global:o,render:s}=r;o[n]||(o[n]=e),(0,LA.useEffect)(()=>{let c=null;if(typeof t=="function")try{c=t()}catch(I){console.log(I)}return()=>{typeof c=="function"?c():c instanceof Promise&&c.then(I=>{typeof I=="function"&&I()})}},[]);let a=o[n];return a?a.render=c=>{c&&(o[n]=void 0),(0,LA.startTransition)(s)}:console.log(e,n),a},QA=e=>{if(e==null||typeof e!="object")return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.map(n=>QA(n));var A={};for(var i in e)typeof e[i]=="object"?A[i]=QA(e[i]):A[i]=e[i];return A};var XH=K(ze());var wu=K(ze()),mp=K(gu()),yp=K(Qp()),wp=K(se()),Fp=()=>{let e=typeof window=="object"?window:globalThis;e.React=wu.default,e.ReactDOM=mp.default,e.JSXRuntime=wp.default,e.JSXDevRuntime=yp.default,e.Fragment=wu.default.Fragment};var Xk={data:""},kp=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Xk,Sp=e=>{let t=kp(e),A=t.data;return t.data="",A},Zk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Wk=/\/\*[^]*?\*\/| +/g,Dp=/\n+/g,en=(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"?en(o,r):r+"{"+en(o,r[1]=="k"?"":t)+"}":typeof o=="object"?i+=en(o,t?t.replace(/([^,])+/g,s=>r.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,s):s?s+" "+a:a)):r):o!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=en.p?en.p(r,o):r+":"+o+";")}return A+(t&&n?t+"{"+n+"}":n)+i},YA={},Up=e=>{if(typeof e=="object"){let t="";for(let A in e)t+=A+Up(e[A]);return t}return e},jk=(e,t,A,i,n)=>{let r=Up(e),o=YA[r]||(YA[r]=(a=>{let c=0,I=11;for(;c>>0;return"go"+I})(r));if(!YA[o]){let a=r!==e?e:(c=>{let I,l,u=[{}];for(;I=Zk.exec(c.replace(Wk,""));)I[4]?u.shift():I[3]?(l=I[3].replace(Dp," ").trim(),u.unshift(u[0][l]=u[0][l]||{})):u[0][I[1]]=I[2].replace(Dp," ").trim();return u[0]})(e);YA[o]=en(n?{["@keyframes "+o]:a}:a,A?"":"."+o)}let s=A&&YA.g?YA.g:null;return A&&(YA.g=YA[o]),((a,c,I,l)=>{l?c.data=c.data.replace(l,a):c.data.indexOf(a)===-1&&(c.data=I?a+c.data:c.data+a)})(YA[o],t,i,s),o},$k=(e,t,A)=>e.reduce((i,n,r)=>{let o=t[r];if(o&&o.call){let s=o(A),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=a?"."+a:s&&typeof s=="object"?s.props?"":en(s,""):s===!1?"":s}return i+n+(o??"")},"");function lI(e){let t=this||{},A=e.call?e(t.p):e;return jk(A.unshift?A.raw?$k(A,[].slice.call(arguments,1),t.p):A.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):A,kp(t.target),t.g,t.o,t.k)}var YH=lI.bind({g:1}),PH=lI.bind({k:1});var Np=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Eh(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let A=window.location,i=A.protocol.indexOf("http")===0?A.hostname:"localhost",n=A.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(i)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let o=new URL(t.serverurl);(o.hostname==="localhost"||o.hostname==="127.0.0.1")&&(o.hostname=A.hostname,o.pathname=o.pathname==="/"?"":o.pathname,t.serverurl=o.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let r=A.port;t.baseurl=n+"://"+i+(r?":"+r:"")+"/",t.basepath||(t.basepath="/"),t.css=lI,t.extractCss=Sp,t.pathname=A.pathname,t.cx=(...o)=>{let s=[];return o.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let c of a)typeof c=="string"&&c.trim()&&s.push(c.trim());else s.push(a.trim())}),s.join(" ")},t.navigate=o=>{let s=o;if(typeof t.navigateOverride=="function"&&(s=t.navigateOverride(o),!s))return null;history.pushState({prevUrl:window.location.href},"",s),t.pathname=o,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let o=navigator.serviceWorker.controller;if(o&&o.postMessage({type:"add-cache",url:A.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=A.pathname,t.prasiContext.render())})};var N0=K(ze());var xp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function eS(e){return typeof e=="string"&&xp.test(e)}var Fu=eS;var bo=K(se()),Du=({children:e,back:t})=>(0,bo.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,bo.jsx)("div",{children:e}),(0,bo.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Hp=K(ze());var it=K(se()),Gp=window,tn=({children:e,className:t,show:A,backdrop:i,note:n,alt:r})=>{let o=Ei({icon:(0,it.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Hp.useEffect)(()=>(o.ival=setInterval(()=>{o.value+=.1333,o.value>=1.3&&(o.value=0),o.render()},200),Gp.loadingIcon&&(o.icon=(0,it.jsx)("img",{alt:"loading",src:Gp.loadingIcon,className:css` +${d}`),f.pop(),`{${k}}`}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 I(u,g,f){switch(typeof g){case"string":return Hi(g);case"object":{if(g===null)return"null";if(typeof g.toJSON=="function"){if(g=g.toJSON(u),typeof g!="object")return I(u,g,f);if(g===null)return"null"}if(f.indexOf(g)!==-1)return A;let C="";if(Array.isArray(g)){if(g.length===0)return"[]";if(ro){let S=g.length-o-1;C+=`,"... ${Qn(S)} not stringified"`}return f.pop(),`[${C}]`}let D=Object.keys(g),d=D.length;if(d===0)return"{}";if(ro){let y=d-o;C+=`${B}"...":"${Qn(y)} not stringified"`}return f.pop(),`{${C}}`}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 l(u,g,f){if(arguments.length>1){let C="";if(typeof f=="number"?C=" ".repeat(Math.min(f,10)):typeof f=="string"&&(C=f.slice(0,10)),g!=null){if(typeof g=="function")return s("",{"":u},[],g,C,"");if(Array.isArray(g))return a("",u,[],o3(g),C,"")}if(C.length!==0)return c("",u,[],C,"")}return I("",u,[])}return l}});var dy=Qe((DR,Mi)=>{var{sha3_512:C3}=pu(),cy=24,ps=32,Vf=(e=4,t=Math.random)=>{let A="";for(;A.lengthly(C3(e)).toString(36).slice(1),Iy=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),Q3=e=>Iy[Math.floor(e()*Iy.length)],uy=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let A=Object.keys(e).toString(),i=A.length?A+Vf(ps,t):Vf(ps,t);return gy(i).substring(0,ps)},fy=e=>()=>e++,h3=476782367,By=({random:e=Math.random,counter:t=fy(Math.floor(e()*h3)),length:A=cy,fingerprint:i=uy({random:e})}={})=>function(){let r=Q3(e),o=Date.now().toString(36),s=t().toString(36),a=Vf(A,e),c=`${o+a+s+i}`;return`${r+gy(c).substring(1,A)}`},p3=By(),E3=(e,{minLength:t=2,maxLength:A=ps}={})=>{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};Mi.exports.getConstants=()=>({defaultLength:cy,bigLength:ps});Mi.exports.init=By;Mi.exports.createId=p3;Mi.exports.bufToBigInt=ly;Mi.exports.createCounter=fy;Mi.exports.createFingerprint=uy;Mi.exports.isCuid=E3});var oc=Qe((kR,Es)=>{var{createId:m3,init:y3,getConstants:w3,isCuid:F3}=dy();Es.exports.createId=m3;Es.exports.init=y3;Es.exports.getConstants=w3;Es.exports.isCuid=F3});var ww=Qe((oq,yw)=>{var Sx=1/0,Ux="[object Symbol]",Nx=/^\s+|\s+$/g,dB="\\ud800-\\udfff",gw="\\u0300-\\u036f\\ufe20-\\ufe23",uw="\\u20d0-\\u20f0",fw="\\ufe0e\\ufe0f",xx="["+dB+"]",fB="["+gw+uw+"]",BB="\\ud83c[\\udffb-\\udfff]",Gx="(?:"+fB+"|"+BB+")",Bw="[^"+dB+"]",dw="(?:\\ud83c[\\udde6-\\uddff]){2}",Cw="[\\ud800-\\udbff][\\udc00-\\udfff]",Qw="\\u200d",hw=Gx+"?",pw="["+fw+"]?",Hx="(?:"+Qw+"(?:"+[Bw,dw,Cw].join("|")+")"+pw+hw+")*",Mx=pw+hw+Hx,vx="(?:"+[Bw+fB+"?",fB,dw,Cw,xx].join("|")+")",Rx=RegExp(BB+"(?="+BB+")|"+vx+Mx,"g"),Jx=RegExp("["+Qw+dB+gw+uw+fw+"]"),qx=typeof global=="object"&&global&&global.Object===Object&&global,Kx=typeof self=="object"&&self&&self.Object===Object&&self,bx=qx||Kx||Function("return this")();function Ox(e){return e.split("")}function Lx(e,t,A,i){for(var n=e.length,r=A+(i?1:-1);i?r--:++r-1;);return A}function Vx(e,t){for(var A=e.length;A--&&Ew(t,e[A],0)>-1;);return A}function zx(e){return Jx.test(e)}function aw(e){return zx(e)?Tx(e):Ox(e)}function Tx(e){return e.match(Rx)||[]}var _x=Object.prototype,Xx=_x.toString,Iw=bx.Symbol,cw=Iw?Iw.prototype:void 0,lw=cw?cw.toString:void 0;function Zx(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=i?e:Zx(e,t,A)}function jx(e){return!!e&&typeof e=="object"}function $x(e){return typeof e=="symbol"||jx(e)&&Xx.call(e)==Ux}function eG(e){return e==null?"":mw(e)}function tG(e,t,A){if(e=eG(e),e&&(A||t===void 0))return e.replace(Nx,"");if(!e||!(t=mw(t)))return e;var i=aw(e),n=aw(t),r=Px(i,n),o=Vx(i,n)+1;return Wx(i,r,o).join("")}yw.exports=tG});var Uw=Qe((fq,Sw)=>{"use strict";function nG(e,t){for(;e.length{var BG="Expected a function",Tw="__lodash_hash_undefined__",_w=1/0,dG="[object Function]",CG="[object GeneratorFunction]",QG="[object Symbol]",hG=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pG=/^\w*$/,EG=/^\./,mG=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yG=/[\\^$.*+?()[\]{}|]/g,wG=/\\(\\)?/g,FG=/^\[object .+?Constructor\]$/,DG=typeof global=="object"&&global&&global.Object===Object&&global,kG=typeof self=="object"&&self&&self.Object===Object&&self,EB=DG||kG||Function("return this")();function SG(e,t){return e?.[t]}function UG(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var NG=Array.prototype,xG=Function.prototype,Xw=Object.prototype,pB=EB["__core-js_shared__"],Yw=function(){var e=/[^.]+$/.exec(pB&&pB.keys&&pB.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Zw=xG.toString,mB=Xw.hasOwnProperty,Ww=Xw.toString,GG=RegExp("^"+Zw.call(mB).replace(yG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pw=EB.Symbol,HG=NG.splice,MG=jw(EB,"Map"),Gs=jw(Object,"create"),Vw=Pw?Pw.prototype:void 0,zw=Vw?Vw.toString:void 0;function wn(e){var t=-1,A=e?e.length:0;for(this.clear();++t-1}function PG(e,t){var A=this.__data__,i=Hc(A,e);return i<0?A.push([e,t]):A[i][1]=t,this}Mr.prototype.clear=bG;Mr.prototype.delete=OG;Mr.prototype.get=LG;Mr.prototype.has=YG;Mr.prototype.set=PG;function Fn(e){var t=-1,A=e?e.length:0;for(this.clear();++t{(function(e,t){"use strict";var A="1.0.37",i="",n="?",r="function",o="undefined",s="object",a="string",c="major",I="model",l="name",u="type",g="vendor",f="version",C="architecture",D="console",d="mobile",B="tablet",Q="smarttv",y="wearable",k="embedded",F=500,S="Amazon",N="Apple",b="ASUS",q="BlackBerry",Z="Browser",xe="Chrome",Bt="Edge",m="Firefox",J="Google",M="Huawei",U="LG",G="Microsoft",z="Motorola",O="Opera",L="Samsung",ae="Sharp",ne="Sony",We="Xiaomi",Xt="Zebra",Zt="Facebook",vB="Chromium OS",RB="Mac OS",M0=function(te,Ie){var T={};for(var ge in te)Ie[ge]&&Ie[ge].length%2===0?T[ge]=Ie[ge].concat(te[ge]):T[ge]=te[ge];return T},Rs=function(te){for(var Ie={},T=0;T0?oe.length===2?typeof oe[1]==r?this[oe[0]]=oe[1].call(this,lA):this[oe[0]]=oe[1]:oe.length===3?typeof oe[1]===r&&!(oe[1].exec&&oe[1].test)?this[oe[0]]=lA?oe[1].call(this,lA,oe[2]):t:this[oe[0]]=lA?lA.replace(oe[1],oe[2]):t:oe.length===4&&(this[oe[0]]=lA?oe[3].call(this,lA.replace(oe[1],oe[2])):t):this[oe]=lA||t;T+=2}},Vc=function(te,Ie){for(var T in Ie)if(typeof Ie[T]===s&&Ie[T].length>0){for(var ge=0;ge2&&(V[I]="iPad",V[u]=B),V},this.getEngine=function(){var V={};return V[l]=t,V[f]=t,br.call(V,ge,cA.engine),V},this.getOS=function(){var V={};return V[l]=t,V[f]=t,br.call(V,ge,cA.os),oe&&!V[l]&&$A&&$A.platform!="Unknown"&&(V[l]=$A.platform.replace(/chrome os/i,vB).replace(/macos/i,RB)),V},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return ge},this.setUA=function(V){return ge=typeof V===a&&V.length>F?Pc(V,F):V,this},this.setUA(ge),this};St.VERSION=A,St.BROWSER=Rs([l,f,c]),St.CPU=Rs([C]),St.DEVICE=Rs([I,g,u,D,d,Q,B,y,k]),St.ENGINE=St.OS=Rs([l,f]),typeof vs!==o?(typeof Lc!==o&&Lc.exports&&(vs=Lc.exports=St),vs.UAParser=St):typeof define===r&&define.amd?define(function(){return St}):typeof e!==o&&(e.UAParser=St);var kn=typeof e!==o&&(e.jQuery||e.Zepto);if(kn&&!kn.ua){var Js=new St;kn.ua=Js.getResult(),kn.ua.get=function(){return Js.getUA()},kn.ua.set=function(te){Js.setUA(te);var Ie=Js.getResult();for(var T in Ie)kn.ua[T]=Ie[T]}}})(typeof window=="object"?window:vs)});var G0=K(ph());var nr=K(ze()),Ei=(e,t,A)=>{let[,i]=(0,nr.useState)({}),r=(0,nr.useRef)({data:e,deps:A||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,nr.useEffect)(()=>{r.ready=!0,t&&t({init:!0})},[]),r.ready===!1){r._loading={};for(let[o,s]of Object.entries(e))if(!r.promisedKeys.has(o)){let a=s;typeof a=="object"&&a instanceof Promise&&(r._loading[o]=!0,r.promisedKeys.add(o),r.data[o]=null,a.then(c=>{r.data[o]=c,r._loading[o]=!1,r.data.render()}))}r.data.render=()=>{r.ready&&i({})}}else if(r.deps.length>0&&A){for(let[o,s]of Object.entries(A))if(r.deps[o]!==s){r.deps[o]=s,t&&setTimeout(()=>{t({init:!1})});break}}return r.data};var Eh=(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 ok=K(ze());var Bp=K(fp()),LA=K(ze()),mu=(0,LA.createContext)({global:{},render:()=>{}});var wi=(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,Bp.createId)()),n=i.globalValueID.get(e)||""),n||(n="GLOBAL_DEFAULT");let r=(0,LA.useContext)(mu),{global:o,render:s}=r;o[n]||(o[n]=e),(0,LA.useEffect)(()=>{let c=null;if(typeof t=="function")try{c=t()}catch(I){console.log(I)}return()=>{typeof c=="function"?c():c instanceof Promise&&c.then(I=>{typeof I=="function"&&I()})}},[]);let a=o[n];return a?a.render=c=>{c&&(o[n]=void 0),(0,LA.startTransition)(s)}:console.log(e,n),a},QA=e=>{if(e==null||typeof e!="object")return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.map(n=>QA(n));var A={};for(var i in e)typeof e[i]=="object"?A[i]=QA(e[i]):A[i]=e[i];return A};var XH=K(ze());var wu=K(ze()),mp=K(gu()),yp=K(Qp()),wp=K(se()),Fp=()=>{let e=typeof window=="object"?window:globalThis;e.React=wu.default,e.ReactDOM=mp.default,e.JSXRuntime=wp.default,e.JSXDevRuntime=yp.default,e.Fragment=wu.default.Fragment};var Xk={data:""},kp=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Xk,Sp=e=>{let t=kp(e),A=t.data;return t.data="",A},Zk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Wk=/\/\*[^]*?\*\/| +/g,Dp=/\n+/g,en=(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"?en(o,r):r+"{"+en(o,r[1]=="k"?"":t)+"}":typeof o=="object"?i+=en(o,t?t.replace(/([^,])+/g,s=>r.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,s):s?s+" "+a:a)):r):o!=null&&(r=/^--/.test(r)?r:r.replace(/[A-Z]/g,"-$&").toLowerCase(),n+=en.p?en.p(r,o):r+":"+o+";")}return A+(t&&n?t+"{"+n+"}":n)+i},YA={},Up=e=>{if(typeof e=="object"){let t="";for(let A in e)t+=A+Up(e[A]);return t}return e},jk=(e,t,A,i,n)=>{let r=Up(e),o=YA[r]||(YA[r]=(a=>{let c=0,I=11;for(;c>>0;return"go"+I})(r));if(!YA[o]){let a=r!==e?e:(c=>{let I,l,u=[{}];for(;I=Zk.exec(c.replace(Wk,""));)I[4]?u.shift():I[3]?(l=I[3].replace(Dp," ").trim(),u.unshift(u[0][l]=u[0][l]||{})):u[0][I[1]]=I[2].replace(Dp," ").trim();return u[0]})(e);YA[o]=en(n?{["@keyframes "+o]:a}:a,A?"":"."+o)}let s=A&&YA.g?YA.g:null;return A&&(YA.g=YA[o]),((a,c,I,l)=>{l?c.data=c.data.replace(l,a):c.data.indexOf(a)===-1&&(c.data=I?a+c.data:c.data+a)})(YA[o],t,i,s),o},$k=(e,t,A)=>e.reduce((i,n,r)=>{let o=t[r];if(o&&o.call){let s=o(A),a=s&&s.props&&s.props.className||/^go/.test(s)&&s;o=a?"."+a:s&&typeof s=="object"?s.props?"":en(s,""):s===!1?"":s}return i+n+(o??"")},"");function lI(e){let t=this||{},A=e.call?e(t.p):e;return jk(A.unshift?A.raw?$k(A,[].slice.call(arguments,1),t.p):A.reduce((i,n)=>Object.assign(i,n&&n.call?n(t.p):n),{}):A,kp(t.target),t.g,t.o,t.k)}var YH=lI.bind({g:1}),PH=lI.bind({k:1});var Np=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Eh(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let A=window.location,i=A.protocol.indexOf("http")===0?A.hostname:"localhost",n=A.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(i)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let o=new URL(t.serverurl);(o.hostname==="localhost"||o.hostname==="127.0.0.1")&&(o.hostname=A.hostname,o.pathname=o.pathname==="/"?"":o.pathname,t.serverurl=o.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let r=A.port;t.baseurl=n+"://"+i+(r?":"+r:"")+"/",t.basepath||(t.basepath="/"),t.css=lI,t.extractCss=Sp,t.pathname=A.pathname,t.cx=(...o)=>{let s=[];return o.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let c of a)typeof c=="string"&&c.trim()&&s.push(c.trim());else s.push(a.trim())}),s.join(" ")},t.navigate=o=>{let s=o;if(typeof t.navigateOverride=="function"&&(s=t.navigateOverride(o),!s))return null;history.pushState({prevUrl:window.location.href},"",s),t.pathname=o,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let o=navigator.serviceWorker.controller;if(o&&o.postMessage({type:"add-cache",url:A.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=A.pathname,t.prasiContext.render())})};var N0=K(ze());var xp=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function eS(e){return typeof e=="string"&&xp.test(e)}var Fu=eS;var bo=K(se()),Du=({children:e,back:t})=>(0,bo.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,bo.jsx)("div",{children:e}),(0,bo.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Hp=K(ze());var it=K(se()),Gp=window,tn=({children:e,className:t,show:A,backdrop:i,note:n,alt:r})=>{let o=Ei({icon:(0,it.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Hp.useEffect)(()=>(o.ival=setInterval(()=>{o.value+=.1333,o.value>=1.3&&(o.value=0),o.render()},200),Gp.loadingIcon&&(o.icon=(0,it.jsx)("img",{alt:"loading",src:Gp.loadingIcon,className:css` width: 42px; height: 42px; `}),o.render()),()=>{clearInterval(o.ival)}),[]),(0,it.jsxs)(it.Fragment,{children:[i!==!1&&(0,it.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof A<"u"?A?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:s=>{s.preventDefault()}}),e?(0,it.jsx)("div",{onContextMenuCapture:s=>{s.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(i!==!1?"w-full h-full fixed":""),typeof A<"u"?A?"":"hidden":""),children:(0,it.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,it.jsx)("div",{className:"text-sm",children:e})})}):(0,it.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 pointer-events-none transition-all",t||(i!==!1?"w-full h-full fixed":""),typeof A<"u"?A?"":"hidden":""),children:(0,it.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` @@ -33,17 +33,17 @@ ${d}`),f.pop(),`{${k}}`}case"number":return isFinite(g)?String(g):t?t(g):"null"; } `),children:[(0,it.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:n}),(0,it.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,it.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css` transform: translate(${-100+o.value*200}%); - `)})}),r]})})]})};var ct=null;var Su=class extends Error{constructor(t){super(t),this.name="DecompressionError"}},An=0,ku=null,gI=null;function Mp(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 An=r,i}if(typeof t=="string"){let r=An=function(s){let a=0,c=0,I=0,l=s.length;for(;a>>0;ct.free_u8(A,An);let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function Et(e,t){vp(ct);let A=Mp(ct,e,t),i=ct.gzip_decompress(A,An)>>>0;if(ct.free_u8(A,An),i===4294967295){let r=ct.error_message(),o=ct.error_message_len(),s=new Uint8Array(ct.memory.buffer,r,o),a=new TextDecoder().decode(s);throw new Su(a)}let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function vp(e){if(!e)throw new Error("WASM not initialized")}var lt=()=>new Map,uI=e=>{let t=lt();return e.forEach((A,i)=>{t.set(i,A)}),t},hA=(e,t,A)=>{let i=e.get(t);return i===void 0&&e.set(t,i=A()),i},Rp=(e,t)=>{let A=[];for(let[i,n]of e)A.push(t(n,i));return A},Jp=(e,t)=>{for(let[A,i]of e)if(t(i,A))return!0;return!1};var PA=()=>new Set;var fI=e=>e[e.length-1];var qp=(e,t)=>{for(let A=0;A{this.off(t,i),A(...n)};this.on(t,i)}off(t,A){let i=this._observers.get(t);i!==void 0&&(i.delete(A),i.size===0&&this._observers.delete(t))}emit(t,A){return pA((this._observers.get(t)||lt()).values()).forEach(i=>i(...A))}destroy(){this._observers=lt()}};var Yt=Math.floor;var sr=Math.abs;var dI=(e,t)=>ee>t?e:t,QM=Number.isNaN;var CI=e=>e!==0?e<0:1/e<0;var Gu=Number.MAX_SAFE_INTEGER,hM=Number.MIN_SAFE_INTEGER,pM=1<<31;var Kp=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Yt(e)===e),EM=Number.isNaN,mM=Number.parseInt;var tS=String.fromCharCode,yM=String.fromCodePoint,wM=tS(65535),AS=e=>e.toLowerCase(),iS=/^\s*/g,nS=e=>e.replace(iS,""),rS=/([A-Z])/g,Hu=(e,t)=>nS(e.replace(rS,A=>`${t}${AS(A)}`));var oS=e=>{let t=unescape(encodeURIComponent(e)),A=t.length,i=new Uint8Array(A);for(let n=0;nIr.encode(e),Op=Ir?sS:oS;var ar=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});ar&&ar.decode(new Uint8Array).length===1&&(ar=null);var nn=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},Yo=()=>new nn;var aS=e=>{let t=e.cpos;for(let A=0;A{let t=new Uint8Array(aS(e)),A=0;for(let i=0;i{let A=e.cbuf.length;A-e.cpos{let A=e.cbuf.length;e.cpos===A&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(A*2),e.cpos=0),e.cbuf[e.cpos++]=t};var pI=Oe;var W=(e,t)=>{for(;t>127;)Oe(e,128|127&t),t=Yt(t/128);Oe(e,127&t)},EI=(e,t)=>{let A=CI(t);for(A&&(t=-t),Oe(e,(t>63?128:0)|(A?64:0)|63&t),t=Yt(t/64);t>0;)Oe(e,(t>127?128:0)|127&t),t=Yt(t/128)},vu=new Uint8Array(3e4),cS=vu.length/3,lS=(e,t)=>{if(t.length{let A=unescape(encodeURIComponent(t)),i=A.length;W(e,i);for(let n=0;n{let A=e.cbuf.length,i=e.cpos,n=dI(A-i,t.length),r=t.length-n;e.cbuf.set(t.subarray(0,n),i),e.cpos+=n,r>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(VA(A*2,r)),e.cbuf.set(t.subarray(n)),e.cpos=r)},mt=(e,t)=>{W(e,t.byteLength),Po(e,t)},Ru=(e,t)=>{IS(e,t);let A=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,A},uS=(e,t)=>Ru(e,4).setFloat32(0,t,!1),fS=(e,t)=>Ru(e,8).setFloat64(0,t,!1),BS=(e,t)=>Ru(e,8).setBigInt64(0,t,!1);var Yp=new DataView(new ArrayBuffer(4)),dS=e=>(Yp.setFloat32(0,e),Yp.getFloat32(0)===e),lr=(e,t)=>{switch(typeof t){case"string":Oe(e,119),rn(e,t);break;case"number":Kp(t)&&sr(t)<=2147483647?(Oe(e,125),EI(e,t)):dS(t)?(Oe(e,124),uS(e,t)):(Oe(e,123),fS(e,t));break;case"bigint":Oe(e,122),BS(e,t);break;case"object":if(t===null)Oe(e,126);else if(Nu(t)){Oe(e,117),W(e,t.length);for(let A=0;A0&&W(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}};var Pp=e=>{e.count>0&&(EI(e.encoder,e.count===1?e.s:-e.s),e.count>1&&W(e.encoder,e.count-2))},on=class{constructor(){this.encoder=new nn,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Pp(this),this.count=1,this.s=t)}toUint8Array(){return Pp(this),oA(this.encoder)}};var Vp=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);EI(e.encoder,t),e.count>1&&W(e.encoder,e.count-2)}},gr=class{constructor(){this.encoder=new nn,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(Vp(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return Vp(this),oA(this.encoder)}},hI=class{constructor(){this.sarr=[],this.s="",this.lensE=new on}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 nn;return this.sarr.push(this.s),this.s="",rn(t,this.sarr.join("")),Po(t,this.lensE.toUint8Array()),oA(t)}};var EA=e=>new Error(e),sA=()=>{throw EA("Method unimplemented")},aA=()=>{throw EA("Unexpected case")};var Tp=EA("Unexpected end of array"),_p=EA("Integer out of Range"),ur=class{constructor(t){this.arr=t,this.pos=0}},cn=e=>new ur(e),Xp=e=>e.pos!==e.arr.length;var QS=(e,t)=>{let A=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,A},yt=e=>QS(e,X(e));var sn=e=>e.arr[e.pos++];var X=e=>{let t=0,A=1,i=e.arr.length;for(;e.posGu)throw _p}throw Tp},yI=e=>{let t=e.arr[e.pos++],A=t&63,i=64,n=(t&64)>0?-1:1;if(!(t&128))return n*A;let r=e.arr.length;for(;e.posGu)throw _p}throw Tp};var hS=e=>{let t=X(e);if(t===0)return"";{let A=String.fromCodePoint(sn(e));if(--t<100)for(;t--;)A+=String.fromCodePoint(sn(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))}},pS=e=>ar.decode(yt(e)),an=ar?pS:hS;var Ju=(e,t)=>{let A=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,A},ES=e=>Ju(e,4).getFloat32(0,!1),mS=e=>Ju(e,8).getFloat64(0,!1),yS=e=>Ju(e,8).getBigInt64(0,!1);var wS=[e=>{},e=>null,yI,ES,mS,yS,e=>!1,e=>!0,an,e=>{let t=X(e),A={};for(let i=0;i{let t=X(e),A=[];for(let i=0;iwS[127-sn(e)](e),Vo=class extends ur{constructor(t,A){super(t),this.reader=A,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),Xp(this)?this.count=X(this)+1:this.count=-1),this.count--,this.s}};var In=class extends ur{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=yI(this);let t=CI(this.s);this.count=1,t&&(this.s=-this.s,this.count=X(this)+2)}return this.count--,this.s}};var Br=class extends ur{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let t=yI(this),A=t&1;this.diff=Yt(t/2),this.count=1,A&&(this.count=X(this)+2)}return this.s+=this.diff,this.count--,this.s}},mI=class{constructor(t){this.decoder=new In(t),this.str=an(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 kM=crypto.subtle,Zp=crypto.getRandomValues.bind(crypto);var qu=()=>Zp(new Uint32Array(1))[0];var DS="10000000-1000-4000-8000"+-1e11,Wp=()=>DS.replace(/[018]/g,e=>(e^qu()&15>>e/4).toString(16));var jp=Date.now;var Ku=e=>new Promise(e);var NM=Promise.all.bind(Promise);var bu=e=>e===void 0?null:e;var Ou=class{constructor(){this.map=new Map}setItem(t,A){this.map.set(t,A)}getItem(t){return this.map.get(t)}},$p=new Ou,xS=!0;try{typeof localStorage<"u"&&localStorage&&($p=localStorage,xS=!1)}catch{}var eE=$p;var AE=Object.assign,HS=Object.keys,iE=(e,t)=>{for(let A in e)t(e[A],A)};var tE=e=>HS(e).length;var nE=e=>{for(let t in e)return!1;return!0},MS=(e,t)=>{for(let A in e)if(!t(e[A],A))return!1;return!0},vS=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),rE=(e,t)=>e===t||tE(e)===tE(t)&&MS(e,(A,i)=>(A!==void 0||vS(t,i))&&t[i]===A);var zo=(e,t,A=0)=>{try{for(;Ae;var sE=(e,t)=>t.includes(e);var To=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var xM=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,mA,JS=[],qS=()=>{if(mA===void 0)if(To){mA=lt();let e=process.argv,t=null;for(let A=0;A{if(e.length!==0){let[t,A]=e.split("=");mA.set(`--${Hu(t,"-")}`,A),mA.set(`-${Hu(t,"-")}`,A)}})):mA=lt();return mA},Lu=e=>qS().has(e);var Yu=e=>To?bu(process.env[e.toUpperCase()]):bu(eE.getItem(e));var KS=e=>Lu("--"+e)||Yu(e)!==null,GM=KS("production"),IE=To&&sE(process.env.FORCE_COLOR,["true","1","2"]),cE=!Lu("no-colors")&&(!To||process.stdout.isTTY||IE)&&(!To||Lu("color")||IE||Yu("COLORTERM")!==null||(Yu("TERM")||"").includes("color"));var OS=e=>new Uint8Array(e);var lE=e=>{let t=OS(e.byteLength);return t.set(e),t};var Pu=class{constructor(t,A){this.left=t,this.right=A}},yA=(e,t)=>new Pu(e,t);var ln=typeof document<"u"?document:{};var HM=typeof DOMParser<"u"?new DOMParser:null;var gE=e=>Rp(e,(t,A)=>`${A}:${t};`).join("");var MM=ln.ELEMENT_NODE,vM=ln.TEXT_NODE,RM=ln.CDATA_SECTION_NODE,JM=ln.COMMENT_NODE,qM=ln.DOCUMENT_NODE,KM=ln.DOCUMENT_TYPE_NODE,bM=ln.DOCUMENT_FRAGMENT_NODE;var wA=Symbol;var _o=wA(),Xo=wA(),Vu=wA(),zu=wA(),Tu=wA(),Zo=wA(),_u=wA(),Wo=wA(),Xu=wA(),uE=e=>{let t=[],A=[],i=0;for(;i{let t=[],A=[],i=lt(),n=[],r=0;for(;r0||a.length>0?(t.push("%c"+o),A.push(a)):t.push(o)}else break}for(r>0&&(n=A,n.unshift(t.join("")));r{console.log(...XS(e)),ZS.forEach(t=>t.print(e))};var ZS=PA();var BE=e=>({[Symbol.iterator](){return this},next:e}),dE=(e,t)=>BE(()=>{let A;do A=e.next();while(!A.done&&!t(A.value));return A}),wI=(e,t)=>BE(()=>{let{done:A,value:i}=e.next();return{done:A,value:A?void 0:t(i)}});var $o=class{constructor(t,A){this.clock=t,this.len=A}},gn=class{constructor(){this.clients=new Map}},NE=(e,t,A)=>t.clients.forEach((i,n)=>{let r=e.doc.store.clients.get(n);for(let o=0;o{let A=0,i=e.length-1;for(;A<=i;){let n=Yt((A+i)/2),r=e[n],o=r.clock;if(o<=t){if(t{let A=e.clients.get(t.client);return A!==void 0&&tU(A,t.clock)!==null},ff=e=>{e.clients.forEach(t=>{t.sort((n,r)=>n.clock-r.clock);let A,i;for(A=1,i=1;A=r.clock?n.len=VA(n.len,r.clock+r.len-n.clock):(i{let t=new gn;for(let A=0;A{if(!t.clients.has(n)){let r=i.slice();for(let o=A+1;o{hA(e.clients,t,()=>[]).push(new $o(A,i))},GE=()=>new gn,iU=e=>{let t=GE();return e.clients.forEach((A,i)=>{let n=[];for(let r=0;r0&&t.clients.set(i,n)}),t},pr=(e,t)=>{W(e.restEncoder,t.clients.size),pA(t.clients.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{e.resetDsCurVal(),W(e.restEncoder,A);let n=i.length;W(e.restEncoder,n);for(let r=0;r{let t=new gn,A=X(e.restDecoder);for(let i=0;i0){let o=hA(t.clients,n,()=>[]);for(let s=0;s{let i=new gn,n=X(e.restDecoder);for(let r=0;r0){let r=new zA;return W(r.restEncoder,0),pr(r,i),r.toUint8Array()}return null};var HE=qu,es=class e extends BI{constructor({guid:t=Wp(),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=HE(),this.guid=t,this.collectionid=A,this.share=new Map,this.store=new vI,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=s,this.autoLoad=o,this.meta=r,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=Ku(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});let a=()=>Ku(c=>{let I=l=>{(l===void 0||l===!0)&&(this.off("sync",I),c())};this.on("sync",I)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[])}),this.whenSynced=a()}load(){let t=this._item;t!==null&&!this.shouldLoad&&de(t.parent.doc,A=>{A.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(pA(this.subdocs).map(t=>t.guid))}transact(t,A=null){return de(this,t,A)}get(t,A=Re){let i=hA(this.share,t,()=>{let r=new A;return r._integrate(this,null),r}),n=i.constructor;if(A!==Re&&n!==A)if(n===Re){let r=new A;r._map=i._map,i._map.forEach(o=>{for(;o!==null;o=o.left)o.parent=r}),r._start=i._start;for(let o=r._start;o!==null;o=o.right)o.parent=r;return r._length=i._length,this.share.set(t,r),r._integrate(this,null),r}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return i}getArray(t=""){return this.get(t,KI)}getText(t=""){return this.get(t,ss)}getMap(t=""){return this.get(t,rs)}getXmlFragment(t=""){return this.get(t,Qr)}toJSON(){let t={};return this.share.forEach((A,i)=>{t[i]=A.toJSON()}),t}destroy(){pA(this.subdocs).forEach(A=>A.destroy());let t=this._item;if(t!==null){this._item=null;let A=t.content;A.doc=new e({guid:this.guid,...A.opts,shouldLoad:!1}),A.doc._item=t,de(t.parent.doc,i=>{let n=A.doc;t.deleted||i.subdocsAdded.add(n),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(t,A){super.on(t,A)}off(t,A){super.off(t,A)}},xI=class{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return X(this.restDecoder)}readDsLen(){return X(this.restDecoder)}},GI=class extends xI{readLeftID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readRightID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readClient(){return X(this.restDecoder)}readInfo(){return sn(this.restDecoder)}readString(){return an(this.restDecoder)}readParentInfo(){return X(this.restDecoder)===1}readTypeRef(){return X(this.restDecoder)}readLen(){return X(this.restDecoder)}readAny(){return fr(this.restDecoder)}readBuf(){return lE(yt(this.restDecoder))}readJSON(){return JSON.parse(an(this.restDecoder))}readKey(){return an(this.restDecoder)}},ju=class{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=X(this.restDecoder),this.dsCurrVal}readDsLen(){let t=X(this.restDecoder)+1;return this.dsCurrVal+=t,t}},Ui=class extends ju{constructor(t){super(t),this.keys=[],X(t),this.keyClockDecoder=new Br(yt(t)),this.clientDecoder=new In(yt(t)),this.leftClockDecoder=new Br(yt(t)),this.rightClockDecoder=new Br(yt(t)),this.infoDecoder=new Vo(yt(t),sn),this.stringDecoder=new mI(yt(t)),this.parentInfoDecoder=new Vo(yt(t),sn),this.typeRefDecoder=new In(yt(t)),this.lenDecoder=new In(yt(t))}readLeftID(){return new Si(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Si(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return fr(this.restDecoder)}readBuf(){return yt(this.restDecoder)}readJSON(){return fr(this.restDecoder)}readKey(){let t=this.keyClockDecoder.read();if(t{i=VA(i,t[0].id.clock);let n=FA(t,i);W(e.restEncoder,t.length-n),e.writeClient(A),W(e.restEncoder,i);let r=t[n];r.write(e,i-r.id.clock);for(let o=n+1;o{let i=new Map;A.forEach((n,r)=>{Le(t,r)>n&&i.set(r,n)}),YI(t).forEach((n,r)=>{A.has(r)||i.set(r,0)}),W(e.restEncoder,i.size),pA(i.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{nU(e,t.clients.get(n),n,r)})},rU=(e,t)=>{let A=lt(),i=X(e.restDecoder);for(let n=0;n{let i=[],n=pA(A.keys()).sort((g,f)=>g-f);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 vI,a=new Map,c=(g,f)=>{let C=a.get(g);(C==null||C>f)&&a.set(g,f)},I=o.refs[o.i++],l=new Map,u=()=>{for(let g of i){let f=g.id.client,C=A.get(f);C?(C.i--,s.clients.set(f,C.refs.slice(C.i)),A.delete(f),C.i=0,C.refs=[]):s.clients.set(f,[g]),n=n.filter(D=>D!==f)}i.length=0};for(;;){if(I.constructor!==Ft){let f=hA(l,I.id.client,()=>Le(t,I.id.client))-I.id.clock;if(f<0)i.push(I),c(I.id.client,I.id.clock-1),u();else{let C=I.getMissing(e,t);if(C!==null){i.push(I);let D=A.get(C)||{refs:[],i:0};if(D.refs.length===D.i)c(C,Le(t,C)),u();else{I=D.refs[D.i++];continue}}else(f===0||f0)I=i.pop();else if(o!==null&&o.i0){let g=new zA;return df(g,s,new Map),W(g.restEncoder,0),{missing:a,update:g.toUint8Array()}}return null},sU=(e,t)=>df(e,t.doc.store,t.beforeState),aU=(e,t,A,i=new Ui(e))=>de(t,n=>{n.local=!1;let r=!1,o=n.doc,s=o.store,a=rU(i,o),c=oU(n,s,a),I=s.pendingStructs;if(I){for(let[u,g]of I.missing)if(gg)&&I.missing.set(u,g)}I.update=RI([I.update,c.update])}}else s.pendingStructs=c;let l=hE(i,n,s);if(s.pendingDs){let u=new Ui(cn(s.pendingDs));X(u.restDecoder);let g=hE(u,n,s);l&&g?s.pendingDs=RI([l,g]):s.pendingDs=l||g}else s.pendingDs=l;if(r){let u=s.pendingStructs.update;s.pendingStructs=null,ME(n.doc,u)}},A,!1);var ME=(e,t,A,i=Ui)=>{let n=cn(t);aU(n,e,A,new i(n))},vE=(e,t,A)=>ME(e,t,A,GI),IU=(e,t,A=new Map)=>{df(e,t.store,A),pr(e,iU(t.store))},cU=(e,t=new Uint8Array([0]),A=new zA)=>{let i=JE(t);IU(A,e,i);let n=[A.toUint8Array()];if(e.store.pendingDs&&n.push(e.store.pendingDs),e.store.pendingStructs&&n.push(yU(e.store.pendingStructs.update,t)),n.length>1){if(A.constructor===un)return EU(n.map((r,o)=>o===0?r:FU(r)));if(A.constructor===zA)return RI(n)}return n[0]},RE=(e,t)=>cU(e,t,new un),lU=e=>{let t=new Map,A=X(e.restDecoder);for(let i=0;ilU(new xI(cn(e))),qE=(e,t)=>(W(e.restEncoder,t.size),pA(t.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{W(e.restEncoder,A),W(e.restEncoder,i)}),e),gU=(e,t)=>qE(e,YI(t.store)),uU=(e,t=new MI)=>(e instanceof Map?qE(t,e):gU(t,e),t.toUint8Array()),KE=e=>uU(e,new HI),$u=class{constructor(){this.l=[]}},pE=()=>new $u,EE=(e,t)=>e.l.push(t),mE=(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.")},bE=(e,t,A)=>zo(e.l,[t,A]),Si=class{constructor(t,A){this.client=t,this.clock=A}},FI=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,Ae=(e,t)=>new Si(e,t);var fU=e=>{for(let[t,A]of e.doc.share.entries())if(A===e)return t;throw aA()};var ef=class{constructor(t,A){this.ds=t,this.sv=A}};var BU=(e,t)=>new ef(e,t),ev=BU(GE(),new Map);var dr=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!xE(t.ds,e.id),tf=(e,t)=>{let A=hA(e.meta,tf,PA),i=e.doc.store;A.has(t)||(t.sv.forEach((n,r)=>{n{}),A.add(t))};var vI=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},YI=e=>{let t=new Map;return e.clients.forEach((A,i)=>{let n=A[A.length-1];t.set(i,n.id.clock+n.length)}),t},Le=(e,t)=>{let A=e.clients.get(t);if(A===void 0)return 0;let i=A[A.length-1];return i.id.clock+i.length},OE=(e,t)=>{let A=e.clients.get(t.id.client);if(A===void 0)A=[],e.clients.set(t.id.client,A);else{let i=A[A.length-1];if(i.id.clock+i.length!==t.id.clock)throw aA()}A.push(t)},FA=(e,t)=>{let A=0,i=e.length-1,n=e[i],r=n.id.clock;if(r===t)return i;let o=Yt(t/(r+n.length-1)*i);for(;A<=i;){if(n=e[o],r=n.id.clock,r<=t){if(t{let A=e.clients.get(t.client);return A[FA(A,t.clock)]},Zu=dU,Af=(e,t,A)=>{let i=FA(t,A),n=t[i];return n.id.clock{let A=e.doc.store.clients.get(t.client);return A[Af(e,A,t.clock)]},yE=(e,t,A)=>{let i=t.clients.get(A.client),n=FA(i,A.clock),r=i[n];return A.clock!==r.id.clock+r.length-1&&r.constructor!==wt&&i.splice(n+1,0,LI(e,r,A.clock-r.id.clock+1)),r},CU=(e,t,A)=>{let i=e.clients.get(t.id.client);i[FA(i,t.id.clock)]=A},LE=(e,t,A,i,n)=>{if(i===0)return;let r=A+i,o=Af(e,t,A),s;do s=t[o++],rt.deleteSet.clients.size===0&&!Jp(t.afterState,(A,i)=>t.beforeState.get(i)!==A)?!1:(ff(t.deleteSet),sU(e,t),pr(e,t.deleteSet),!0),FE=(e,t,A)=>{let i=t._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&hA(e.changed,t,PA).add(A)},SI=(e,t)=>{let A=e[t],i=e[t-1],n=t;for(;n>0;A=i,i=e[--n-1]){if(i.deleted===A.deleted&&i.constructor===A.constructor&&i.mergeWith(A)){A instanceof Ye&&A.parentSub!==null&&A.parent._map.get(A.parentSub)===A&&A.parent._map.set(A.parentSub,i);continue}break}let r=t-n;return r&&e.splice(t+1-r,r),r},QU=(e,t,A)=>{for(let[i,n]of e.clients.entries()){let r=t.clients.get(i);for(let o=n.length-1;o>=0;o--){let s=n[o],a=s.clock+s.len;for(let c=FA(r,s.clock),I=r[c];c{e.clients.forEach((A,i)=>{let n=t.clients.get(i);for(let r=A.length-1;r>=0;r--){let o=A[r],s=dI(n.length-1,1+FA(n,o.clock+o.len-1));for(let a=s,c=n[a];a>0&&c.id.clock>=o.clock;c=n[a])a-=1+SI(n,a)}})};var YE=(e,t)=>{if(ts.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(A,a)})),s.push(()=>{A.changedParentTypes.forEach((a,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(a=a.filter(I=>I.target._item===null||!I.target._item.deleted),a.forEach(I=>{I.currentTarget=c,I._path=null}),a.sort((I,l)=>I.path.length-l.path.length),bE(c._dEH,a,A))})}),s.push(()=>i.emit("afterTransaction",[A,i])),zo(s,[]),A._needFormattingCleanup&&RU(A)}finally{i.gc&&QU(r,n,i.gcFilter),hU(r,n),A.afterState.forEach((I,l)=>{let u=A.beforeState.get(l)||0;if(u!==I){let g=n.clients.get(l),f=VA(FA(g,u),1);for(let C=g.length-1;C>=f;)C-=1+SI(g,C)}});for(let I=o.length-1;I>=0;I--){let{client:l,clock:u}=o[I].id,g=n.clients.get(l),f=FA(g,u);f+11||f>0&&SI(g,f)}if(!A.local&&A.afterState.get(i.clientID)!==A.beforeState.get(i.clientID)&&(fE(Wo,_o,"[yjs] ",Xo,Zo,"Changed the client-id because another client seems to be using it."),i.clientID=HE()),i.emit("afterTransactionCleanup",[A,i]),i._observers.has("update")){let I=new un;wE(I,A)&&i.emit("update",[I.toUint8Array(),A.origin,i,A])}if(i._observers.has("updateV2")){let I=new zA;wE(I,A)&&i.emit("updateV2",[I.toUint8Array(),A.origin,i,A])}let{subdocsAdded:s,subdocsLoaded:a,subdocsRemoved:c}=A;(s.size>0||c.size>0||a.size>0)&&(s.forEach(I=>{I.clientID=i.clientID,I.collectionid==null&&(I.collectionid=i.collectionid),i.subdocs.add(I)}),c.forEach(I=>i.subdocs.delete(I)),i.emit("subdocs",[{loaded:a,added:s,removed:c},i,A]),c.forEach(I=>I.destroy())),e.length<=t+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):YE(e,t+1)}}},de=(e,t,A=null,i=!0)=>{let n=e._transactionCleanups,r=!1,o=null;e._transaction===null&&(r=!0,e._transaction=new nf(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&&YE(n,0)}}return o};function*pU(e){let t=X(e.restDecoder);for(let A=0;ARI(e,GI,un);var mU=(e,t)=>{if(e.constructor===wt){let{client:A,clock:i}=e.id;return new wt(Ae(A,i+t),e.length-t)}else if(e.constructor===Ft){let{client:A,clock:i}=e.id;return new Ft(Ae(A,i+t),e.length-t)}else{let A=e,{client:i,clock:n}=A.id;return new Ye(Ae(i,n+t),null,Ae(i,n+t-1),null,A.rightOrigin,A.parent,A.parentSub,A.content.splice(t))}},RI=(e,t=Ui,A=zA)=>{if(e.length===1)return e[0];let i=e.map(I=>new t(cn(I))),n=i.map(I=>new ts(I,!0)),r=null,o=new A,s=new As(o);for(;n=n.filter(u=>u.curr!==null),n.sort((u,g)=>{if(u.curr.id.client===g.curr.id.client){let f=u.curr.id.clock-g.curr.id.clock;return f===0?u.curr.constructor===g.curr.constructor?0:u.curr.constructor===Ft?1:-1:f}else return g.curr.id.client-u.curr.id.client}),n.length!==0;){let I=n[0],l=I.curr.id.client;if(r!==null){let u=I.curr,g=!1;for(;u!==null&&u.id.clock+u.length<=r.struct.id.clock+r.struct.length&&u.id.client>=r.struct.id.client;)u=I.next(),g=!0;if(u===null||u.id.client!==l||g&&u.id.clock>r.struct.id.clock+r.struct.length)continue;if(l!==r.struct.id.client)Di(s,r.struct,r.offset),r={struct:u,offset:0},I.next();else if(r.struct.id.clock+r.struct.length0&&(r.struct.constructor===Ft?r.struct.length-=f:u=mU(u,f)),r.struct.mergeWith(u)||(Di(s,r.struct,r.offset),r={struct:u,offset:0},I.next())}}else r={struct:I.curr,offset:0},I.next();for(let u=I.curr;u!==null&&u.id.client===l&&u.id.clock===r.struct.id.clock+r.struct.length&&u.constructor!==Ft;u=I.next())Di(s,r.struct,r.offset),r={struct:u,offset:0}}r!==null&&(Di(s,r.struct,r.offset),r=null),Cf(s);let a=i.map(I=>Bf(I)),c=AU(a);return pr(o,c),o.toUint8Array()},yU=(e,t,A=Ui,i=zA)=>{let n=JE(t),r=new i,o=new As(r),s=new A(cn(e)),a=new ts(s,!1);for(;a.curr;){let I=a.curr,l=I.id.client,u=n.get(l)||0;if(a.curr.constructor===Ft){a.next();continue}if(I.id.clock+I.length>u)for(Di(o,I,VA(u-I.id.clock,0)),a.next();a.curr&&a.curr.id.client===l;)Di(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===l&&a.curr.id.clock+a.curr.length<=u;)a.next()}Cf(o);let c=Bf(s);return pr(r,c),r.toUint8Array()};var PE=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:oA(e.encoder.restEncoder)}),e.encoder.restEncoder=Yo(),e.written=0)},Di=(e,t,A)=>{e.written>0&&e.currClient!==t.id.client&&PE(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),W(e.encoder.restEncoder,t.id.clock+A)),t.write(e.encoder,A),e.written++},Cf=e=>{PE(e);let t=e.encoder.restEncoder;W(t,e.clientStructs.length);for(let A=0;A{let n=new A(cn(e)),r=new ts(n,!1),o=new i,s=new As(o);for(let c=r.curr;c!==null;c=r.next())Di(s,t(c),0);Cf(s);let a=Bf(n);return pr(o,a),o.toUint8Array()};var FU=e=>wU(e,oE,Ui,un),DE="You must not compute changes after the event-handler fired.",Cr=class{constructor(t,A){this.target=t,this.currentTarget=t,this.transaction=A,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=DU(this.currentTarget,this.target))}deletes(t){return xE(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(DE);let t=new Map,A=this.target;this.transaction.changed.get(A).forEach(n=>{if(n!==null){let r=A._map.get(n),o,s;if(this.adds(r)){let a=r.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(r))if(a!==null&&this.deletes(a))o="delete",s=fI(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",s=fI(a.content.getContent())):(o="add",s=void 0)}else if(this.deletes(r))o="delete",s=fI(r.content.getContent());else return;t.set(n,{action:o,oldValue:s})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(DE);let A=this.target,i=PA(),n=PA(),r=[];if(t={added:i,deleted:n,delta:r,keys:this.keys},this.transaction.changed.get(A).has(null)){let s=null,a=()=>{s&&r.push(s)};for(let c=A._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((s===null||s.delete===void 0)&&(a(),s={delete:0}),s.delete+=c.length,n.add(c)):this.adds(c)?((s===null||s.insert===void 0)&&(a(),s={insert:[]}),s.insert=s.insert.concat(c.content.getContent()),i.add(c)):((s===null||s.retain===void 0)&&(a(),s={retain:0}),s.retain+=c.length);s!==null&&s.retain===void 0&&a()}this._changes=t}return t}},DU=(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},VE=80,Qf=0,rf=class{constructor(t,A){t.marker=!0,this.p=t,this.index=A,this.timestamp=Qf++}},kU=e=>{e.timestamp=Qf++},zE=(e,t,A)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=A,e.timestamp=Qf++},SU=(e,t,A)=>{if(e.length>=VE){let i=e.reduce((n,r)=>n.timestamp{if(e._start===null||t===0||e._searchMarker===null)return null;let A=e._searchMarker.length===0?null:e._searchMarker.reduce((r,o)=>sr(t-r.index)t;)i=i.left,!i.deleted&&i.countable&&(n-=i.length);for(;i.left!==null&&i.left.id.client===i.id.client&&i.left.id.clock+i.left.length===i.id.clock;)i=i.left,!i.deleted&&i.countable&&(n-=i.length);return A!==null&&sr(A.index-n){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}(t0&&t===n.index)&&(n.index=VA(t,n.index+A))}};var VI=(e,t,A)=>{let i=e,n=t.changedParentTypes;for(;hA(n,e,()=>[]).push(A),e._item!==null;)e=e._item.parent;bE(i._eH,A,t)},Re=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=pE(),this._dEH=pE(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,A){this.doc=t,this._item=A}_copy(){throw sA()}clone(){throw sA()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,A){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){EE(this._eH,t)}observeDeep(t){EE(this._dEH,t)}unobserve(t){mE(this._eH,t)}unobserveDeep(t){mE(this._dEH,t)}toJSON(){}},TE=(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;s0;s++)n.push(o[s]),i--;t=0}}r=r.right}return n},_E=e=>{let t=[],A=e._start;for(;A!==null;){if(A.countable&&!A.deleted){let i=A.content.getContent();for(let n=0;n{let A=0,i=e._start;for(;i!==null;){if(i.countable&&!i.deleted){let n=i.content.getContent();for(let r=0;r{let A=[];return ns(e,(i,n)=>{A.push(t(i,n,e))}),A},UU=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}}}},ZE=(e,t)=>{let A=PI(e,t),i=e._start;for(A!==null&&(i=A.p,t-=A.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(t{let n=A,r=e.doc,o=r.clientID,s=r.store,a=A===null?t._start:A.right,c=[],I=()=>{c.length>0&&(n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new hr(c)),n.integrate(e,0),c=[])};i.forEach(l=>{if(l===null)c.push(l);else switch(l.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(l);break;default:switch(I(),l.constructor){case Uint8Array:case ArrayBuffer:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new Is(new Uint8Array(l))),n.integrate(e,0);break;case es:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new cs(l)),n.integrate(e,0);break;default:if(l instanceof Re)n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new _A(l)),n.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),I()},WE=()=>EA("Length exceeded!"),jE=(e,t,A,i)=>{if(A>t._length)throw WE();if(A===0)return t._searchMarker&&is(t._searchMarker,A,i.length),JI(e,t,null,i);let n=A,r=PI(t,A),o=t._start;for(r!==null&&(o=r.p,A-=r.index,A===0&&(o=o.prev,A+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(A<=o.length){A{let n=(t._searchMarker||[]).reduce((r,o)=>o.index>r.index?o:r,{index:0,p:t._start}).p;if(n)for(;n.right;)n=n.right;return JI(e,t,n,A)},$E=(e,t,A,i)=>{if(i===0)return;let n=A,r=i,o=PI(t,A),s=t._start;for(o!==null&&(s=o.p,A-=o.index);s!==null&&A>0;s=s.right)!s.deleted&&s.countable&&(A0&&s!==null;)s.deleted||(i0)throw WE();t._searchMarker&&is(t._searchMarker,n,-r+i)},qI=(e,t,A)=>{let i=t._map.get(A);i!==void 0&&i.delete(e)},hf=(e,t,A,i)=>{let n=t._map.get(A)||null,r=e.doc,o=r.clientID,s;if(i==null)s=new hr([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:s=new hr([i]);break;case Uint8Array:s=new Is(i);break;case es:s=new cs(i);break;default:if(i instanceof Re)s=new _A(i);else throw new Error("Unexpected content type")}new Ye(Ae(o,Le(r.store,o)),n,n&&n.lastId,null,null,t,A,s).integrate(e,0)},pf=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted?A.content.getContent()[A.length-1]:void 0},em=e=>{let t={};return e._map.forEach((A,i)=>{A.deleted||(t[i]=A.content.getContent()[A.length-1])}),t},tm=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted};var xU=(e,t)=>{let A={};return e._map.forEach((i,n)=>{let r=i;for(;r!==null&&(!t.sv.has(r.id.client)||r.id.clock>=(t.sv.get(r.id.client)||0));)r=r.left;r!==null&&dr(r,t)&&(A[n]=r.content.getContent()[r.length-1])}),A},DI=e=>dE(e.entries(),t=>!t[1].deleted),of=class extends Cr{constructor(t,A){super(t,A),this._transaction=A}},KI=class e extends Re{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let A=new e;return A.push(t),A}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,A){super._callObserver(t,A),VI(this,t,new of(this,t))}insert(t,A){this.doc!==null?de(this.doc,i=>{jE(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}push(t){this.doc!==null?de(this.doc,A=>{NU(A,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,A=1){this.doc!==null?de(this.doc,i=>{$E(i,this,t,A)}):this._prelimContent.splice(t,A)}get(t){return ZE(this,t)}toArray(){return _E(this)}slice(t=0,A=this.length){return TE(this,t,A)}toJSON(){return this.map(t=>t instanceof Re?t.toJSON():t)}map(t){return XE(this,t)}forEach(t){ns(this,t)}[Symbol.iterator](){return UU(this)}_write(t){t.writeTypeRef(jU)}},GU=e=>new KI,sf=class extends Cr{constructor(t,A,i){super(t,A),this.keysChanged=i}},rs=class e extends Re{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,A){super._integrate(t,A),this._prelimContent.forEach((i,n)=>{this.set(n,i)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((A,i)=>{t.set(i,A instanceof Re?A.clone():A)}),t}_callObserver(t,A){VI(this,t,new sf(this,t,A))}toJSON(){let t={};return this._map.forEach((A,i)=>{if(!A.deleted){let n=A.content.getContent()[A.length-1];t[i]=n instanceof Re?n.toJSON():n}}),t}get size(){return[...DI(this._map)].length}keys(){return wI(DI(this._map),t=>t[0])}values(){return wI(DI(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return wI(DI(this._map),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this._map.forEach((A,i)=>{A.deleted||t(A.content.getContent()[A.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimContent.delete(t)}set(t,A){return this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._prelimContent.set(t,A),A}get(t){return pf(this,t)}has(t){return tm(this,t)}clear(){this.doc!==null?de(this.doc,t=>{this.forEach(function(A,i,n){qI(t,n,i)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef($U)}},HU=e=>new rs,ki=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&rE(e,t),os=class{constructor(t,A,i,n){this.left=t,this.right=A,this.index=i,this.currentAttributes=n}forward(){switch(this.right===null&&aA(),this.right.content.constructor){case Je:this.right.deleted||Er(this.currentAttributes,this.right.content);break;default:this.right.deleted||(this.index+=this.right.length);break}this.left=this.right,this.right=this.right.right}},kE=(e,t,A)=>{for(;t.right!==null&&A>0;){switch(t.right.content.constructor){case Je:t.right.deleted||Er(t.currentAttributes,t.right.content);break;default:t.right.deleted||(A{let i=new Map,n=PI(t,A);if(n){let r=new os(n.p.left,n.p,n.index,i);return kE(e,r,A-n.index)}else{let r=new os(null,t._start,0,i);return kE(e,r,A)}},Am=(e,t,A,i)=>{for(;A.right!==null&&(A.right.deleted===!0||A.right.content.constructor===Je&&ki(i.get(A.right.content.key),A.right.content.value));)A.right.deleted||i.delete(A.right.content.key),A.forward();let n=e.doc,r=n.clientID;i.forEach((o,s)=>{let a=A.left,c=A.right,I=new Ye(Ae(r,Le(n.store,r)),a,a&&a.lastId,c,c&&c.id,t,null,new Je(s,o));I.integrate(e,0),A.right=I,A.forward()})},Er=(e,t)=>{let{key:A,value:i}=t;i===null?e.delete(A):e.set(A,i)},im=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===Je&&ki(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},nm=(e,t,A,i)=>{let n=e.doc,r=n.clientID,o=new Map;for(let s in i){let a=i[s],c=A.currentAttributes.get(s)||null;if(!ki(c,a)){o.set(s,c);let{left:I,right:l}=A;A.right=new Ye(Ae(r,Le(n.store,r)),I,I&&I.lastId,l,l&&l.id,t,null,new Je(s,a)),A.right.integrate(e,0),A.forward()}}return o},Wu=(e,t,A,i,n)=>{A.currentAttributes.forEach((u,g)=>{n[g]===void 0&&(n[g]=null)});let r=e.doc,o=r.clientID;im(A,n);let s=nm(e,t,A,n),a=i.constructor===String?new TA(i):i instanceof Re?new _A(i):new fn(i),{left:c,right:I,index:l}=A;t._searchMarker&&is(t._searchMarker,A.index,a.getLength()),I=new Ye(Ae(o,Le(r.store,o)),c,c&&c.lastId,I,I&&I.id,t,null,a),I.integrate(e,0),A.right=I,A.index=l,A.forward(),Am(e,t,A,s)},SE=(e,t,A,i,n)=>{let r=e.doc,o=r.clientID;im(A,n);let s=nm(e,t,A,n);e:for(;A.right!==null&&(i>0||s.size>0&&(A.right.deleted||A.right.content.constructor===Je));){if(!A.right.deleted)switch(A.right.content.constructor){case Je:{let{key:a,value:c}=A.right.content,I=n[a];if(I!==void 0){if(ki(I,c))s.delete(a);else{if(i===0)break e;s.set(a,c)}A.right.delete(e)}else A.currentAttributes.set(a,c);break}default:i0){let a="";for(;i>0;i--)a+=` -`;A.right=new Ye(Ae(o,Le(r.store,o)),A.left,A.left&&A.left.lastId,A.right,A.right&&A.right.id,t,null,new TA(a)),A.right.integrate(e,0),A.forward()}Am(e,t,A,s)},rm=(e,t,A,i,n)=>{let r=t,o=lt();for(;r&&(!r.countable||r.deleted);){if(!r.deleted&&r.content.constructor===Je){let c=r.content;o.set(c.key,c)}r=r.right}let s=0,a=!1;for(;t!==r;){if(A===t&&(a=!0),!t.deleted){let c=t.content;switch(c.constructor){case Je:{let{key:I,value:l}=c,u=i.get(I)||null;(o.get(I)!==c||u===l)&&(t.delete(e),s++,!a&&(n.get(I)||null)===l&&u!==l&&(u===null?n.delete(I):n.set(I,u))),!a&&!t.deleted&&Er(n,c);break}}}t=t.right}return s},MU=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let A=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Je){let i=t.content.key;A.has(i)?t.delete(e):A.add(i)}t=t.left}},vU=e=>{let t=0;return de(e.doc,A=>{let i=e._start,n=e._start,r=lt(),o=uI(r);for(;n;){if(n.deleted===!1)switch(n.content.constructor){case Je:Er(o,n.content);break;default:t+=rm(A,i,n,r,o),r=uI(o),i=n;break}n=n.right}}),t},RU=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&&LE(e,A.store.clients.get(i),r,n,o=>{!o.deleted&&o.content.constructor===Je&&o.constructor!==wt&&t.add(o.parent)})}de(A,i=>{NE(e,e.deleteSet,n=>{if(n instanceof wt||!n.parent._hasFormatting||t.has(n.parent))return;let r=n.parent;n.content.constructor===Je?t.add(r):MU(i,n)});for(let n of t)vU(n)})},UE=(e,t,A)=>{let i=A,n=uI(t.currentAttributes),r=t.right;for(;A>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case _A:case fn:case TA:A{n===null?this.childListChanged=!0:this.keysChanged.add(n)})}get changes(){if(this._changes===null){let t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){let t=this.target.doc,A=[];de(t,i=>{let n=new Map,r=new Map,o=this.target._start,s=null,a={},c="",I=0,l=0,u=()=>{if(s!==null){let g=null;switch(s){case"delete":l>0&&(g={delete:l}),l=0;break;case"insert":(typeof c=="object"||c.length>0)&&(g={insert:c},n.size>0&&(g.attributes={},n.forEach((f,C)=>{f!==null&&(g.attributes[C]=f)}))),c="";break;case"retain":I>0&&(g={retain:I},nE(a)||(g.attributes=AE({},a))),I=0;break}g&&A.push(g),s=null}};for(;o!==null;){switch(o.content.constructor){case _A:case fn:this.adds(o)?this.deletes(o)||(u(),s="insert",c=o.content.getContent()[0],u()):this.deletes(o)?(s!=="delete"&&(u(),s="delete"),l+=1):o.deleted||(s!=="retain"&&(u(),s="retain"),I+=1);break;case TA:this.adds(o)?this.deletes(o)||(s!=="insert"&&(u(),s="insert"),c+=o.content.str):this.deletes(o)?(s!=="delete"&&(u(),s="delete"),l+=o.length):o.deleted||(s!=="retain"&&(u(),s="retain"),I+=o.length);break;case Je:{let{key:g,value:f}=o.content;if(this.adds(o)){if(!this.deletes(o)){let C=n.get(g)||null;ki(C,f)?f!==null&&o.delete(i):(s==="retain"&&u(),ki(f,r.get(g)||null)?delete a[g]:a[g]=f)}}else if(this.deletes(o)){r.set(g,f);let C=n.get(g)||null;ki(C,f)||(s==="retain"&&u(),a[g]=C)}else if(!o.deleted){r.set(g,f);let C=a[g];C!==void 0&&(ki(C,f)?C!==null&&o.delete(i):(s==="retain"&&u(),f===null?delete a[g]:a[g]=f))}o.deleted||(s==="insert"&&u(),Er(n,o.content));break}}o=o.right}for(u();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}},ss=class e extends Re{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,A){super._integrate(t,A);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(t,A){super._callObserver(t,A);let i=new af(this,t,A);VI(this,t,i),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",A=this._start;for(;A!==null;)!A.deleted&&A.countable&&A.content.constructor===TA&&(t+=A.content.str),A=A.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:A=!0}={}){this.doc!==null?de(this.doc,i=>{let n=new os(null,this._start,0,new Map);for(let r=0;r0)&&Wu(i,this,n,s,o.attributes||{})}else o.retain!==void 0?SE(i,this,n,o.retain,o.attributes||{}):o.delete!==void 0&&UE(i,n,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,A,i){let n=[],r=new Map,o=this.doc,s="",a=this._start;function c(){if(s.length>0){let l={},u=!1;r.forEach((f,C)=>{u=!0,l[C]=f});let g={insert:s};u&&(g.attributes=l),n.push(g),s=""}}let I=()=>{for(;a!==null;){if(dr(a,t)||A!==void 0&&dr(a,A))switch(a.content.constructor){case TA:{let l=r.get("ychange");t!==void 0&&!dr(a,t)?(l===void 0||l.user!==a.id.client||l.type!=="removed")&&(c(),r.set("ychange",i?i("removed",a.id):{type:"removed"})):A!==void 0&&!dr(a,A)?(l===void 0||l.user!==a.id.client||l.type!=="added")&&(c(),r.set("ychange",i?i("added",a.id):{type:"added"})):l!==void 0&&(c(),r.delete("ychange")),s+=a.content.str;break}case _A:case fn:{c();let l={insert:a.content.getContent()[0]};if(r.size>0){let u={};l.attributes=u,r.forEach((g,f)=>{u[f]=g})}n.push(l);break}case Je:dr(a,t)&&(c(),Er(r,a.content));break}a=a.right}c()};return t||A?de(o,l=>{t&&tf(l,t),A&&tf(l,A),I()},"cleanup"):I(),n}insert(t,A,i){if(A.length<=0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);i||(i={},o.currentAttributes.forEach((s,a)=>{i[a]=s})),Wu(r,this,o,A,i)}):this._pending.push(()=>this.insert(t,A,i))}insertEmbed(t,A,i={}){let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);Wu(r,this,o,A,i)}):this._pending.push(()=>this.insertEmbed(t,A,i))}delete(t,A){if(A===0)return;let i=this.doc;i!==null?de(i,n=>{UE(n,kI(n,this,t),A)}):this._pending.push(()=>this.delete(t,A))}format(t,A,i){if(A===0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);o.right!==null&&SE(r,this,o,A,i)}):this._pending.push(()=>this.format(t,A,i))}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._pending.push(()=>this.setAttribute(t,A))}getAttribute(t){return pf(this,t)}getAttributes(){return em(this)}_write(t){t.writeTypeRef(eN)}},JU=e=>new ss,jo=class{constructor(t,A=()=>!0){this._filter=A,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,A=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(A)))do if(A=t.content.type,!t.deleted&&(A.constructor===bI||A.constructor===Qr)&&A._start!==null)t=A._start;else for(;t!==null;)if(t.right!==null){t=t.right;break}else t.parent===this._root?t=null:t=t.parent._item;while(t!==null&&(t.deleted||!this._filter(t.content.type)));return this._firstCall=!1,t===null?{value:void 0,done:!0}:(this._currentNode=t,{value:t.content.type,done:!1})}},Qr=class e extends Re{constructor(){super(),this._prelimContent=[]}get firstChild(){let t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new jo(this,t)}querySelector(t){t=t.toUpperCase();let i=new jo(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t).next();return i.done?null:i.value}querySelectorAll(t){return t=t.toUpperCase(),pA(new jo(this,A=>A.nodeName&&A.nodeName.toUpperCase()===t))}_callObserver(t,A){VI(this,t,new If(this,A,t))}toString(){return XE(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),ns(this,r=>{n.insertBefore(r.toDOM(t,A,i),null)}),n}insert(t,A){this.doc!==null?de(this.doc,i=>{jE(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}insertAfter(t,A){if(this.doc!==null)de(this.doc,i=>{let n=t&&t instanceof Re?t._item:t;JI(i,this,n,A)});else{let i=this._prelimContent,n=t===null?0:i.findIndex(r=>r===t)+1;if(n===0&&t!==null)throw EA("Reference item not found");i.splice(n,0,...A)}}delete(t,A=1){this.doc!==null?de(this.doc,i=>{$E(i,this,t,A)}):this._prelimContent.splice(t,A)}toArray(){return _E(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return ZE(this,t)}slice(t=0,A=this.length){return TE(this,t,A)}forEach(t){ns(this,t)}_write(t){t.writeTypeRef(AN)}},qU=e=>new Qr,bI=class e extends Qr{constructor(t="UNDEFINED"){super(),this.nodeName=t,this._prelimAttrs=new Map}get nextSibling(){let t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){let t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,A){super._integrate(t,A),this._prelimAttrs.forEach((i,n)=>{this.setAttribute(n,i)}),this._prelimAttrs=null}_copy(){return new e(this.nodeName)}clone(){let t=new e(this.nodeName),A=this.getAttributes();return iE(A,(i,n)=>{typeof i=="string"&&t.setAttribute(n,i)}),t.insert(0,this.toArray().map(i=>i instanceof Re?i.clone():i)),t}toString(){let t=this.getAttributes(),A=[],i=[];for(let s in t)i.push(s);i.sort();let n=i.length;for(let s=0;s0?" "+A.join(" "):"";return`<${r}${o}>${super.toString()}`}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._prelimAttrs.set(t,A)}getAttribute(t){return pf(this,t)}hasAttribute(t){return tm(this,t)}getAttributes(t){return t?xU(this,t):em(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 ns(this,o=>{n.appendChild(o.toDOM(t,A,i))}),i!==void 0&&i._createAssociation(n,this),n}_write(t){t.writeTypeRef(tN),t.writeKey(this.nodeName)}},KU=e=>new bI(e.readKey()),If=class extends Cr{constructor(t,A,i){super(t,i),this.childListChanged=!1,this.attributesChanged=new Set,A.forEach(n=>{n===null?this.childListChanged=!0:this.attributesChanged.add(n)})}},cf=class e extends rs{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(iN),t.writeKey(this.hookName)}},bU=e=>new cf(e.readKey()),lf=class e extends ss{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.keyn.nodeName=0;n--)i+=``;return i}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(nN)}},OU=e=>new lf,as=class{constructor(t,A){this.id=t,this.length=A}get deleted(){throw sA()}mergeWith(t){return!1}write(t,A,i){throw sA()}integrate(t,A){throw sA()}},LU=0,wt=class extends as{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),OE(t.doc.store,this)}write(t,A){t.writeInfo(LU),t.writeLen(this.length-A)}getMissing(t,A){return null}},Is=class e{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeBuf(this.content)}getRef(){return 3}},YU=e=>new Is(e.readBuf()),OI=class e{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let A=new e(this.len-t);return this.len=t,A}mergeWith(t){return this.len+=t.len,!0}integrate(t,A){NI(t.deleteSet,A.id.client,A.id.clock,this.len),A.markDeleted()}delete(t){}gc(t){}write(t,A){t.writeLen(this.len-A)}getRef(){return 1}},PU=e=>new OI(e.readLen()),om=(e,t)=>new es({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),cs=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(om(this.doc.guid,this.opts))}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.doc._item=A,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,A){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}},VU=e=>new cs(om(e.readString(),e.readAny())),fn=class e{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeJSON(this.embed)}getRef(){return 5}},zU=e=>new fn(e.readJSON()),Je=class e{constructor(t,A){this.key=t,this.value=A}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){let i=A.parent;i._searchMarker=null,i._hasFormatting=!0}delete(t){}gc(t){}write(t,A){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}},TU=e=>new Je(e.readKey(),e.readJSON()),gf=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{let t=e.readLen(),A=[];for(let i=0;i{let t=e.readLen(),A=[];for(let i=0;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}},ZU=e=>new TA(e.readString()),WU=[GU,HU,JU,KU,qU,bU,OU],jU=0,$U=1,eN=2,tN=3,AN=4,iN=5,nN=6,_A=class e{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.type._integrate(t.doc,A)}delete(t){let A=this.type._start;for(;A!==null;)A.deleted?A.id.clock<(t.beforeState.get(A.id.client)||0)&&t._mergeStructs.push(A):A.delete(t),A=A.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(t.beforeState.get(i.id.client)||0)&&t._mergeStructs.push(i):i.delete(t)}),t.changed.delete(this.type)}gc(t){let A=this.type._start;for(;A!==null;)A.gc(t,!0),A=A.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(t,!0),i=i.left}),this.type._map=new Map}write(t,A){this.type._write(t)}getRef(){return 7}},rN=e=>new _A(WU[e.readTypeRef()](e));var LI=(e,t,A)=>{let{client:i,clock:n}=t.id,r=new Ye(Ae(i,n+A),t,Ae(i,n+A-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(A));return t.deleted&&r.markDeleted(),t.keep&&(r.keep=!0),t.redone!==null&&(r.redone=Ae(t.redone.client,t.redone.clock+A)),t.right=r,r.right!==null&&(r.right.left=r),e._mergeStructs.push(r),r.parentSub!==null&&r.right===null&&r.parent._map.set(r.parentSub,r),t.length=A,r};var Ye=class e extends as{constructor(t,A,i,n,r,o,s,a){super(t,a.getLength()),this.origin=i,this.left=A,this.right=n,this.rightOrigin=r,this.parent=o,this.parentSub=s,this.redone=null,this.content=a,this.info=this.content.isCountable()?2:0}set marker(t){(this.info&8)>0!==t&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(t){this.keep!==t&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(t){this.deleted!==t&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,A){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Le(A,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Le(A,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Si&&this.id.client!==this.parent.client&&this.parent.clock>=Le(A,this.parent.client))return this.parent.client;if(this.origin&&(this.left=yE(t,A,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Ni(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===wt||this.right&&this.right.constructor===wt)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Si){let i=Zu(A,this.parent);i.constructor===wt?this.parent=null:this.parent=i.content.type}return null}integrate(t,A){if(A>0&&(this.id.clock+=A,this.left=yE(t,t.doc.store,Ae(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(A),this.length-=A),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let i=this.left,n;if(i!==null)n=i.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,o=new Set;for(;n!==null&&n!==this.right;){if(o.add(n),r.add(n),FI(this.origin,n.origin)){if(n.id.client{i.p===t&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){let A=this.parent;this.countable&&this.parentSub===null&&(A._length-=this.length),this.markDeleted(),NI(t.deleteSet,this.id.client,this.id.clock,this.length),FE(t,A,this.parentSub),this.content.delete(t)}}gc(t,A){if(!this.deleted)throw aA();this.content.gc(t),A?CU(t,this,new wt(this.id,this.length)):this.content=new OI(this.length)}write(t,A){let i=A>0?Ae(this.id.client,this.id.clock+A-1):this.origin,n=this.rightOrigin,r=this.parentSub,o=this.content.getRef()&31|(i===null?0:128)|(n===null?0:64)|(r===null?0:32);if(t.writeInfo(o),i!==null&&t.writeLeftID(i),n!==null&&t.writeRightID(n),i===null&&n===null){let s=this.parent;if(s._item!==void 0){let a=s._item;if(a===null){let c=fU(s);t.writeParentInfo(!0),t.writeString(c)}else t.writeParentInfo(!1),t.writeLeftID(a.id)}else s.constructor===String?(t.writeParentInfo(!0),t.writeString(s)):s.constructor===Si?(t.writeParentInfo(!1),t.writeLeftID(s)):aA();r!==null&&t.writeString(r)}this.content.write(t,A)}},sm=(e,t)=>oN[t&31](e),oN=[()=>{aA()},PU,_U,YU,ZU,zU,TU,rN,XU,VU,()=>{aA()}],sN=10,Ft=class extends as{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(sN),W(t.restEncoder,this.length-A)}getMissing(t,A){return null}},am=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},Im="__ $YJS$ __";am[Im]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");am[Im]=!0;var zI={proxies:new WeakMap,traps:new WeakMap},cm=(e,t,A)=>e.get(t)||e.set(t,new A).get(t),lm=e=>e.join(),gm=(e,t,A,i,n)=>{cm(cm(zI.traps,e,WeakMap),t,Map).set(lm(A),i),zI.proxies.set(i,n)},Ef=(e,t,A)=>{var i,n;return zI.proxies.get((n=(i=zI.traps.get(e))===null||i===void 0?void 0:i.get(t))===null||n===void 0?void 0:n.get(lm(A)))};var IN=Symbol("default"),cN=Object.keys(Object.getOwnPropertyDescriptors(Reflect)),lN=["get","has","set","defineProperty","deleteProperty","getOwnPropertyDescriptor"],gN=(e,t)=>{let A,i,n,r,o,s,a,c;switch(e){case"get":[A,i,r]=t;break;case"set":[A,i,n,r]=t;break;case"deleteProperty":case"defineProperty":[A,s]=t;break;case"has":case"getOwnPropertyDescriptor":[A,i]=t;break;case"apply":[A,a,o]=t;break;case"construct":[A,o]=t;break;case"setPrototypeOf":[A,c]=t;break;default:[A]=t}return{target:A,name:i,receiver:r,val:n,args:o,descriptor:s,thisValue:a,prototype:c}},uN=(e,t)=>{let{trapName:A,handler:i,traps:n,root:r,path:o}=e,{target:s,name:a,val:c,receiver:I,args:l,descriptor:u,thisValue:g,prototype:f}=gN(A,t),C=lN.includes(A)?a:void 0;return{parameters:t,target:s,name:a,val:c,args:l,descriptor:u,receiver:I,thisValue:g,prototype:f,trapName:A,traps:n,path:o,handler:i,key:C,newValue:A==="set"?c:void 0,root:r,get proxy(){return Ef(r,s,o)},get value(){return C&&s[C]},DEFAULT:IN,PROXY:um.bind({root:r,handler:i,path:[...o,C]})}},fN=function(...e){let{trapName:t,handler:A}=this,i=uN(this,e),{PROXY:n,DEFAULT:r}=i,o=A(i);return o===n?n(i.value):o===r?Reflect[t](...e):o},BN=(e,t,A)=>cN.reduce((i,n)=>(i[n]=fN.bind({trapName:n,handler:e,traps:i,root:t,path:A}),i),{}),dN=e=>{if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Deep proxy could be applied to objects and functions only")},CN=({DEFAULT:e})=>e,um=function(e,t,A,i){dN(e);let n=Object.assign({},this),r=t||n.handler||CN,o=A||n.path||[],s=n.root||i||e,a=Ef(s,e,o);if(a)return a;let c=BN(r,s,o),I=new Proxy(e,c);return gm(s,e,o,c,I),I},fm=class{constructor(e,t,A,i){return um(e,t,A,i)}};function us(e,t,A,i){function n(r){return r instanceof A?r:new A(function(o){o(r)})}return new(A||(A=Promise))(function(r,o){function s(I){try{c(i.next(I))}catch(l){o(l)}}function a(I){try{c(i.throw(I))}catch(l){o(l)}}function c(I){I.done?r(I.value):n(I.value).then(s,a)}c((i=i.apply(e,t||[])).next())})}var Ee=class{constructor(){this.mutex=Promise.resolve()}lock(){let t=()=>{};return this.mutex=this.mutex.then(()=>new Promise(t)),new Promise(A=>{t=A})}dispatch(t){return us(this,void 0,void 0,function*(){let A=yield this.lock();try{return yield Promise.resolve(t())}finally{A()}})}},mf;function QN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global}var Ff=QN(),yf=(mf=Ff.Buffer)!==null&&mf!==void 0?mf:null,hN=Ff.TextEncoder?new Ff.TextEncoder:null;function Em(e,t){return(e&15)+(e>>6|e>>3&8)<<4|(t&15)+(t>>6|t>>3&8)}function pN(e,t){let A=t.length>>1;for(let i=0;i>>4;e[i++]=r>9?r+Bm:r+dm,r=t[n]&15,e[i++]=r>9?r+Bm:r+dm}return String.fromCharCode.apply(null,e)}var Qm=yf!==null?e=>{if(typeof e=="string"){let t=yf.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(yf.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 hN.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},hm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gs=new Uint8Array(256);for(let e=0;e>4,n+=1,i[n]=(s&15)<<4|a>>2,n+=1,i[n]=(a&3)<<6|c&63,n+=1}return i}var TI=16*1024,ls=4,wN=new Ee,wf=new Map;function FN(e,t){return us(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=(F,S=0)=>{i.set(F,S)},o=()=>i,s=()=>A.exports,a=F=>{A.exports.Hash_SetMemorySize(F);let S=A.exports.Hash_GetBuffer(),N=A.exports.memory.buffer;i=new Uint8Array(N,S,F)},c=()=>new DataView(A.exports.memory.buffer).getUint32(A.exports.STATE_SIZE,!0),I=wN.dispatch(()=>us(this,void 0,void 0,function*(){if(!wf.has(e.name)){let S=yN(e.data),N=WebAssembly.compile(S);wf.set(e.name,N)}let F=yield wf.get(e.name);A=yield WebAssembly.instantiate(F,{})})),l=()=>us(this,void 0,void 0,function*(){A||(yield I);let F=A.exports.Hash_GetBuffer(),S=A.exports.memory.buffer;i=new Uint8Array(S,F,TI)}),u=(F=null)=>{n=!0,A.exports.Hash_Init(F)},g=F=>{let S=0;for(;S{if(!n)throw new Error("update() called before init()");let S=Qm(F);g(S)},C=new Uint8Array(t*2),D=(F,S=null)=>{if(!n)throw new Error("digest() called before init()");return n=!1,A.exports.Hash_Final(S),F==="binary"?i.slice(0,t):Cm(C,i,t)},d=()=>{if(!n)throw new Error("save() can only be called after init() and before digest()");let F=A.exports.Hash_GetState(),S=c(),N=A.exports.memory.buffer,b=new Uint8Array(N,F,S),q=new Uint8Array(ls+S);return pN(q,e.hash),q.set(b,ls),q},B=F=>{if(!(F instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");let S=A.exports.Hash_GetState(),N=c(),b=ls+N,q=A.exports.memory.buffer;if(F.length!==b)throw new Error(`Bad state length (expected ${b} bytes, got ${F.length})`);if(!EN(e.hash,F.subarray(0,ls)))throw new Error("This state was written by an incompatible hash implementation");let Z=F.subarray(ls);new Uint8Array(q,S,N).set(Z),n=!0},Q=F=>typeof F=="string"?F.length!0;break;case"blake2b":case"blake2s":y=(F,S)=>S<=512&&Q(F);break;case"blake3":y=(F,S)=>S===0&&Q(F);break;case"xxhash64":case"xxhash3":case"xxhash128":y=()=>!1;break}let k=(F,S=null,N=null)=>{if(!y(F,S))return u(S),f(F),D("hex",N);let b=Qm(F);return i.set(b),A.exports.Hash_Calculate(b.length,S,N),Cm(C,i,t)};return yield l(),{getMemory:o,writeMemory:r,getExports:s,setMemorySize:a,init:u,update:f,digest:D,save:d,load:B,calculate:k,hashLength:t}})}function DN(e,t,A){return us(this,void 0,void 0,function*(){let i=yield e.lock(),n=yield FN(t,A);return i(),n})}var av=new Ee;var Iv=new Ee;var cv=new DataView(new ArrayBuffer(4));var lv=new Ee;var gv=new Ee;var uv=new Ee;var fv=new Ee;var Bv=new Ee;var dv=new Ee;var Cv=new Ee;var Qv=new Ee;var hv=new Ee;var pv=new Ee;var Ev=new Ee;var mv=new Ee;var yv=new Ee;var kN="xxhash32",SN="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwcGAAEBAgADBQQBAQICBg4CfwFBsIkFC38AQYAICwdwCAZtZW1vcnkCAA5IYXNoX0dldEJ1ZmZlcgAACUhhc2hfSW5pdAABC0hhc2hfVXBkYXRlAAIKSGFzaF9GaW5hbAADDUhhc2hfR2V0U3RhdGUABA5IYXNoX0NhbGN1bGF0ZQAFClNUQVRFX1NJWkUDAQqxEAYFAEGACQtNAEEAQgA3A6iJAUEAIAA2AoiJAUEAIABBz4yijgZqNgKMiQFBACAAQfeUr694ajYChIkBQQAgAEGoiI2hAmo2AoCJAUEAQQA2AqCJAQu4CAEHfwJAIABFDQBBAEEAKQOoiQEgAK18NwOoiQECQEEAKAKgiQEiASAAakEPSw0AAkACQCAAQQNxIgINAEGACSEDIAAhBAwBCyAAQXxxIQRBgAkhAwNAQQBBACgCoIkBIgVBAWo2AqCJASAFQZCJAWogAy0AADoAACADQQFqIQMgAkF/aiICDQALCyAAQQRJDQEDQEEAQQAoAqCJASICQQFqNgKgiQEgAkGQiQFqIAMtAAA6AAAgA0EBai0AACECQQBBACgCoIkBIgVBAWo2AqC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sgBiADRg0AA0AgAUEBai0AAEGxz9myAWwgAS0AAEGxz9myAWwgAGpBC3dBsfPd8XlsakELd0Gx893xeWwhACABQQJqIgEgBUcNAAsLQQAgAEEPdiAAc0H3lK+veGwiAUENdiABc0G93MqVfGwiAUEQdiABcyIAQRh0IABBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycq03A4AJCwsLAQBBgAgLBDAAAAA=",UN="9e3a00cd",NN={name:kN,data:SN,hash:UN},xN=new Ee,_I=null;function pm(e){return!Number.isInteger(e)||e<0||e>4294967295?new Error("Seed must be a valid 32-bit long unsigned integer."):null}function XI(e,t=0){if(pm(t))return Promise.reject(pm(t));if(_I===null)return DN(xN,NN,4).then(A=>(_I=A,_I.calculate(e,t)));try{let A=_I.calculate(e,t);return Promise.resolve(A)}catch(A){return Promise.reject(A)}}var wv=new Ee;var Fv=new ArrayBuffer(8);var Dv=new Ee;var kv=new ArrayBuffer(8);var Sv=new Ee;var Uv=new ArrayBuffer(8);var Nv=new Ee;var xv=new Ee;var Gv=new Ee;function kf(e){return new Promise((t,A)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>A(e.error)})}function fs(e,t){let A=indexedDB.open(e);A.onupgradeneeded=()=>A.result.createObjectStore(t);let i=kf(A);return(n,r)=>i.then(o=>r(o.transaction(t,n).objectStore(t)))}var Df;function mm(){return Df||(Df=fs("keyval-store","keyval")),Df}function mr(e,t=mm()){return t("readonly",A=>kf(A.get(e)))}function Bs(e,t,A=mm()){return A("readwrite",i=>(i.put(t,e),kf(i.transaction)))}var Uf;try{Uf=new TextDecoder}catch{}var H,zt,h=0;var Mm=[],Nf=Mm,xf=0,ye={},ie,xi,Vt=0,DA=0,Ve,XA,Dt=[],ee,ym={useRecords:!1,mapsAsObjects:!0},ds=class{},Hf=new ds;Hf.name="MessagePack 0xC1";var Gi=!1,vm=2,wm,Fm,Dm;try{new Function("")}catch{vm=1/0}var dn=class e{constructor(t){t&&(t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.sequential&&t.trusted!==!1&&(t.trusted=!0,!t.structures&&t.useRecords!=!1&&(t.structures=[],t.maxSharedStructures||(t.maxSharedStructures=0))),t.structures?t.structures.sharedLength=t.structures.length:t.getStructures&&((t.structures=[]).uninitialized=!0,t.structures.sharedLength=0),t.int64AsNumber&&(t.int64AsType="number")),Object.assign(this,t)}unpack(t,A){if(H)return Km(()=>(WI(),this?this.unpack(t,A):e.prototype.unpack.call(ym,t,A)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t)),typeof A=="object"?(zt=A.end||t.length,h=A.start||0):(h=0,zt=A>-1?A:t.length),xf=0,DA=0,xi=null,Nf=Mm,Ve=null,H=t;try{ee=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw H=null,t instanceof Uint8Array?i:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof e){if(ye=this,this.structures)return ie=this.structures,ZI(A);(!ie||ie.length>0)&&(ie=[])}else ye=ym,(!ie||ie.length>0)&&(ie=[]);return ZI(A)}unpackMultiple(t,A){let i,n=0;try{Gi=!0;let r=t.length,o=this?this.unpack(t,r):$I.unpack(t,r);if(A){if(A(o,n,h)===!1)return;for(;hi.slice(0)));for(let i=0,n=t.length;i=32&&(r.highByte=i-32>>5))}t.sharedLength=t.length;for(let i in A||[])if(i>=0){let n=t[i],r=A[i];r&&(n&&((t.restoreStructures||(t.restoreStructures=[]))[i]=n),t[i]=r)}return this.structures=t}decode(t,A){return this.unpack(t,A)}};function ZI(e){try{if(!ye.trusted&&!Gi){let A=ie.sharedLength||0;A=32&&wm?(t=wm(H,h,zt,ye),H=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),h=zt):t=Ne(),Ve&&(h=Ve.postBundlePosition,Ve=null),Gi&&(ie.restoreStructures=null),h==zt)ie&&ie.restoreStructures&&km(),ie=null,H=null,XA&&(XA=null);else{if(h>zt)throw new Error("Unexpected end of MessagePack data");if(!Gi){let A;try{A=JSON.stringify(t,(i,n)=>typeof n=="bigint"?`${n}n`:n).slice(0,100)}catch(i){A="(JSON view not available "+i+")"}throw new Error("Data read, but end of buffer not reached "+A)}}return t}catch(t){throw ie&&ie.restoreStructures&&km(),WI(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer")||h>zt)&&(t.incomplete=!0),t}}function km(){for(let e in ie.restoreStructures)ie[e]=ie.restoreStructures[e];ie.restoreStructures=null}function Ne(){let e=H[h++];if(e<160)if(e<128){if(e<64)return e;{let t=ie[e&63]||ye.getStructures&&Rm()[e&63];return t?(t.read||(t.read=Mf(t,e&63)),t.read()):e}}else if(e<144)if(e-=128,ye.mapsAsObjects){let t={};for(let A=0;A=h)return xi.slice(h-Vt,(h+=t)-Vt);if(DA==0&&zt<140){let A=t<16?vf(t):Jm(t);if(A!=null)return A}return Gf(t)}else{let t;switch(e){case 192:return null;case 193:return Ve?(t=Ne(),t>0?Ve[1].slice(Ve.position1,Ve.position1+=t):Ve[0].slice(Ve.position0,Ve.position0-=t)):Hf;case 194:return!1;case 195:return!0;case 196:if(t=H[h++],t===void 0)throw new Error("Unexpected end of buffer");return Sf(t);case 197:return t=ee.getUint16(h),h+=2,Sf(t);case 198:return t=ee.getUint32(h),h+=4,Sf(t);case 199:return Bn(H[h++]);case 200:return t=ee.getUint16(h),h+=2,Bn(t);case 201:return t=ee.getUint32(h),h+=4,Bn(t);case 202:if(t=ee.getFloat32(h),ye.useFloat32>2){let A=jI[(H[h]&127)<<1|H[h+1]>>7];return h+=4,(A*t+(t>0?.5:-.5)>>0)/A}return h+=4,t;case 203:return t=ee.getFloat64(h),h+=8,t;case 204:return H[h++];case 205:return t=ee.getUint16(h),h+=2,t;case 206:return t=ee.getUint32(h),h+=4,t;case 207:return ye.int64AsType==="number"?(t=ee.getUint32(h)*4294967296,t+=ee.getUint32(h+4)):ye.int64AsType==="string"?t=ee.getBigUint64(h).toString():ye.int64AsType==="auto"?(t=ee.getBigUint64(h),t<=BigInt(2)<=BigInt(-2)<=h?xi.slice(h-Vt,(h+=t)-Vt):HN(t);case 218:return t=ee.getUint16(h),h+=2,DA>=h?xi.slice(h-Vt,(h+=t)-Vt):MN(t);case 219:return t=ee.getUint32(h),h+=4,DA>=h?xi.slice(h-Vt,(h+=t)-Vt):vN(t);case 220:return t=ee.getUint16(h),h+=2,Um(t);case 221:return t=ee.getUint32(h),h+=4,Um(t);case 222:return t=ee.getUint16(h),h+=2,Nm(t);case 223:return t=ee.getUint32(h),h+=4,Nm(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 GN=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Mf(e,t){function A(){if(A.count++>vm){let n=e.read=new Function("r","return function(){return "+(ye.freezeData?"Object.freeze":"")+"({"+e.map(r=>r==="__proto__"?"__proto_:r()":GN.test(r)?r+":r()":"["+JSON.stringify(r)+"]:r()").join(",")+"})}")(Ne);return e.highByte===0&&(e.read=Sm(t,e.read)),n()}let i={};for(let n=0,r=e.length;nfunction(){let A=H[h++];if(A===0)return t();let i=e<32?-(e+(A<<5)):e+(A<<5),n=ie[i]||Rm()[i];if(!n)throw new Error("Record id is not defined for "+i);return n.read||(n.read=Mf(n,e)),n.read()};function Rm(){let e=Km(()=>(H=null,ye.getStructures()));return ie=ye._mergeStructures(e,ie)}var Gf=Cs,HN=Cs,MN=Cs,vN=Cs;function Cs(e){let t;if(e<16&&(t=vf(e)))return t;if(e>64&&Uf)return Uf.decode(H.subarray(h,h+=e));let A=h+e,i=[];for(t="";h65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a)}else i.push(n);i.length>=4096&&(t+=Pe.apply(String,i),i.length=0)}return i.length>0&&(t+=Pe.apply(String,i)),t}function Um(e){let t=new Array(e);for(let A=0;A0){h=t;return}A[i]=n}return Pe.apply(String,A)}function vf(e){if(e<4)if(e<2){if(e===0)return"";{let t=H[h++];if((t&128)>1){h-=1;return}return Pe(t)}}else{let t=H[h++],A=H[h++];if((t&128)>0||(A&128)>0){h-=2;return}if(e<3)return Pe(t,A);let i=H[h++];if((i&128)>0){h-=3;return}return Pe(t,A,i)}else{let t=H[h++],A=H[h++],i=H[h++],n=H[h++];if((t&128)>0||(A&128)>0||(i&128)>0||(n&128)>0){h-=4;return}if(e<6){if(e===4)return Pe(t,A,i,n);{let r=H[h++];if((r&128)>0){h-=5;return}return Pe(t,A,i,n,r)}}else if(e<8){let r=H[h++],o=H[h++];if((r&128)>0||(o&128)>0){h-=6;return}if(e<7)return Pe(t,A,i,n,r,o);let s=H[h++];if((s&128)>0){h-=7;return}return Pe(t,A,i,n,r,o,s)}else{let r=H[h++],o=H[h++],s=H[h++],a=H[h++];if((r&128)>0||(o&128)>0||(s&128)>0||(a&128)>0){h-=8;return}if(e<10){if(e===8)return Pe(t,A,i,n,r,o,s,a);{let c=H[h++];if((c&128)>0){h-=9;return}return Pe(t,A,i,n,r,o,s,a,c)}}else if(e<12){let c=H[h++],I=H[h++];if((c&128)>0||(I&128)>0){h-=10;return}if(e<11)return Pe(t,A,i,n,r,o,s,a,c,I);let l=H[h++];if((l&128)>0){h-=11;return}return Pe(t,A,i,n,r,o,s,a,c,I,l)}else{let c=H[h++],I=H[h++],l=H[h++],u=H[h++];if((c&128)>0||(I&128)>0||(l&128)>0||(u&128)>0){h-=12;return}if(e<14){if(e===12)return Pe(t,A,i,n,r,o,s,a,c,I,l,u);{let g=H[h++];if((g&128)>0){h-=13;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g)}}else{let g=H[h++],f=H[h++];if((g&128)>0||(f&128)>0){h-=14;return}if(e<15)return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g,f);let C=H[h++];if((C&128)>0){h-=15;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g,f,C)}}}}}function xm(){let e=H[h++],t;if(e<192)t=e-160;else switch(e){case 217:t=H[h++];break;case 218:t=ee.getUint16(h),h+=2;break;case 219:t=ee.getUint32(h),h+=4;break;default:throw new Error("Expected string")}return Cs(t)}function Sf(e){return ye.copyBuffers?Uint8Array.prototype.slice.call(H,h,h+=e):H.subarray(h,h+=e)}function Bn(e){let t=H[h++];if(Dt[t]){let A;return Dt[t](H.subarray(h,A=h+=e),i=>{h=i;try{return Ne()}finally{h=A}})}else throw new Error("Unknown extension type "+t)}var Gm=new Array(4096);function qm(){let e=H[h++];if(e>=160&&e<192){if(e=e-160,DA>=h)return xi.slice(h-Vt,(h+=e)-Vt);if(!(DA==0&&zt<180))return Gf(e)}else return h--,Ne().toString();let t=(e<<5^(e>1?ee.getUint16(h):e>0?H[h]:0))&4095,A=Gm[t],i=h,n=h+e-3,r,o=0;if(A&&A.bytes==e){for(;i{let A=Ne().map(r=>r.toString()),i=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,A.highByte=t);let n=ie[e];return n&&(n.isShared||Gi)&&((ie.restoreStructures||(ie.restoreStructures=[]))[e]=n),ie[e]=A,A.read=Mf(A,i),A.read()};Dt[0]=()=>{};Dt[0].noBuffer=!0;Dt[66]=e=>{let t=e.length,A=BigInt(e[0]&128?e[0]-256:e[0]);for(let i=1;i{let e=Ne();return(RN[e[0]]||Error)(e[1])};Dt[105]=e=>{let t=ee.getUint32(h-4);XA||(XA=new Map);let A=H[h],i;A>=144&&A<160||A==220||A==221?i=[]:i={};let n={target:i};XA.set(t,n);let r=Ne();return n.used?Object.assign(i,r):(n.target=r,r)};Dt[112]=e=>{let t=ee.getUint32(h-4),A=XA.get(t);return A.used=!0,A.target};Dt[115]=()=>new Set(Ne());var Rf=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),JN=typeof globalThis=="object"?globalThis:window;Dt[116]=e=>{let t=e[0],A=Rf[t];if(!A)throw new Error("Could not find typed array for code "+t);return new JN[A](Uint8Array.prototype.slice.call(e,1).buffer)};Dt[120]=()=>{let e=Ne();return new RegExp(e[0],e[1])};var qN=[];Dt[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],A=h;return h+=t-e.length,Ve=qN,Ve=[xm(),xm()],Ve.position0=0,Ve.position1=0,Ve.postBundlePosition=h,h=A,Ne()};Dt[255]=e=>e.length==4?new Date((e[0]*16777216+(e[1]<<16)+(e[2]<<8)+e[3])*1e3):e.length==8?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+((e[3]&3)*4294967296+e[4]*16777216+(e[5]<<16)+(e[6]<<8)+e[7])*1e3):e.length==12?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+((e[4]&128?-281474976710656:0)+e[6]*1099511627776+e[7]*4294967296+e[8]*16777216+(e[9]<<16)+(e[10]<<8)+e[11])*1e3):new Date("invalid");function Km(e){Dm&&Dm();let t=zt,A=h,i=xf,n=Vt,r=DA,o=xi,s=Nf,a=XA,c=Ve,I=new Uint8Array(H.slice(0,zt)),l=ie,u=ie.slice(0,ie.length),g=ye,f=Gi,C=e();return zt=t,h=A,xf=i,Vt=n,DA=r,xi=o,Nf=s,XA=a,Ve=c,H=I,Gi=f,ie=l,ie.splice(0,ie.length,...u),ye=g,ee=new DataView(H.buffer,H.byteOffset,H.byteLength),C}function WI(){H=null,XA=null,ie=null}var jI=new Array(147);for(let e=0;e<256;e++)jI[e]=+("1e"+Math.floor(45.15-e*.30103));var $I=new dn({useRecords:!1}),KN=$I.unpack,bN=$I.unpackMultiple,ON=$I.unpack,ec={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},LN=new Float32Array(1),vv=new Uint8Array(LN.buffer,0,4);var Ac;try{Ac=new TextEncoder}catch{}var Jf,Pm,ic=typeof Buffer<"u",tc=ic?function(e){return Buffer.allocUnsafeSlow(e)}:Uint8Array,Vm=ic?Buffer:Uint8Array,bm=ic?4294967296:2144337920,E,Qs,le,p=0,gt,ke=null,YN,PN=21760,VN=/[\u0080-\uFFFF]/,yr=Symbol("record-id"),Cn=class extends dn{constructor(t){super(t),this.offset=0;let A,i,n,r,o,s=Vm.prototype.utf8Write?function(m,J){return E.utf8Write(m,J,4294967295)}:Ac&&Ac.encodeInto?function(m,J){return Ac.encodeInto(m,E.subarray(J)).written}:!1,a=this;t||(t={});let c=t&&t.sequential,I=t.structures||t.saveStructures,l=t.maxSharedStructures;if(l==null&&(l=I?32:0),l>8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&&t.moreTypes==null&&(this.moreTypes=!0);let u=t.maxOwnStructures;u==null&&(u=I?32:64),!this.structures&&t.useRecords!=!1&&(this.structures=[]);let g=l>32||u+l>64,f=l+64,C=l+u+64;if(C>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let D=[],d=0,B=0;this.pack=this.encode=function(m,J){if(E||(E=new tc(8192),le=E.dataView||(E.dataView=new DataView(E.buffer,0,8192)),p=0),gt=E.length-10,gt-p<2048?(E=new tc(E.length),le=E.dataView||(E.dataView=new DataView(E.buffer,0,E.length)),gt=E.length-10,p=0):p=p+7&2147483640,i=p,J&A3&&(p+=J&255),o=a.structuredClone?new Map:null,a.bundleStrings&&typeof m!="string"?(ke=[],ke.size=1/0):ke=null,r=a.structures,r){r.uninitialized&&(r=a._mergeStructures(a.getStructures()));let U=r.sharedLength||0;if(U>l)throw new Error("Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to "+r.sharedLength);if(!r.transitions){r.transitions=Object.create(null);for(let G=0;Gae.offset>ne.offset?1:-1),z=G.length,O=-1;for(;U&&z>0;){let ae=G[--z].offset+i;aeU.position+i?O>=0&&(O+=6):(O>=0&&(le.setUint32(U.position+i,le.getUint32(U.position+i)+O),O=-1),U=U.previous,z++)}O>=0&&U&&le.setUint32(U.position+i,le.getUint32(U.position+i)+O),p+=G.length*6,p>gt&&q(p),a.offset=p;let L=TN(E.subarray(i,p),G);return o=null,L}return a.offset=p,J&Tm?(E.start=i,E.end=p,E):E.subarray(i,p)}catch(U){throw M=U,U}finally{if(r&&(Q(),n&&a.saveStructures)){let U=r.sharedLength||0,G=E.subarray(i,p),z=_N(r,a);if(!M)return a.saveStructures(z,z.isCompatible)===!1?a.pack(m,J):(a.lastNamedStructuresLength=U,G)}J&t3&&(p=i)}};let Q=()=>{B<10&&B++;let m=r.sharedLength||0;if(r.length>m&&!c&&(r.length=m),d>1e4)r.transitions=null,B=0,d=0,D.length>0&&(D=[]);else if(D.length>0&&!c){for(let J=0,M=D.length;J{var J=m.length;J<16?E[p++]=144|J:J<65536?(E[p++]=220,E[p++]=J>>8,E[p++]=J&255):(E[p++]=221,le.setUint32(p,J),p+=4);for(let M=0;M{p>gt&&(E=q(p));var J=typeof m,M;if(J==="string"){let U=m.length;if(ke&&U>=4&&U<4096){if((ke.size+=U)>PN){let L,ae=(ke[0]?ke[0].length*3+ke[1].length:0)+10;p+ae>gt&&(E=q(p+ae));let ne;ke.position?(ne=ke,E[p]=200,p+=3,E[p++]=98,L=p-i,p+=4,Ym(i,k,0),le.setUint16(L+i-3,p-i-L)):(E[p++]=214,E[p++]=98,L=p-i,p+=4),ke=["",""],ke.previous=ne,ke.size=0,ke.position=L}let O=VN.test(m);ke[O?0:1]+=m,E[p++]=193,k(O?-U:U);return}let G;U<32?G=1:U<256?G=2:U<65536?G=3:G=5;let z=U*3;if(p+z>gt&&(E=q(p+z)),U<64||!s){let O,L,ae,ne=p+G;for(O=0;O>6|192,E[ne++]=L&63|128):(L&64512)===55296&&((ae=m.charCodeAt(O+1))&64512)===56320?(L=65536+((L&1023)<<10)+(ae&1023),O++,E[ne++]=L>>18|240,E[ne++]=L>>12&63|128,E[ne++]=L>>6&63|128,E[ne++]=L&63|128):(E[ne++]=L>>12|224,E[ne++]=L>>6&63|128,E[ne++]=L&63|128);M=ne-p-G}else M=s(m,p+G);M<32?E[p++]=160|M:M<256?(G<2&&E.copyWithin(p+2,p+1,p+1+M),E[p++]=217,E[p++]=M):M<65536?(G<3&&E.copyWithin(p+3,p+2,p+2+M),E[p++]=218,E[p++]=M>>8,E[p++]=M&255):(G<5&&E.copyWithin(p+5,p+3,p+3+M),E[p++]=219,le.setUint32(p,M),p+=4),p+=M}else if(J==="number")if(m>>>0===m)m<32||m<128&&this.useRecords===!1||m<64&&!this.randomAccessStructure?E[p++]=m:m<256?(E[p++]=204,E[p++]=m):m<65536?(E[p++]=205,E[p++]=m>>8,E[p++]=m&255):(E[p++]=206,le.setUint32(p,m),p+=4);else if(m>>0===m)m>=-32?E[p++]=256+m:m>=-128?(E[p++]=208,E[p++]=m+256):m>=-32768?(E[p++]=209,le.setInt16(p,m),p+=2):(E[p++]=210,le.setInt32(p,m),p+=4);else{let U;if((U=this.useFloat32)>0&&m<4294967296&&m>=-2147483648){E[p++]=202,le.setFloat32(p,m);let G;if(U<4||(G=m*jI[(E[p]&127)<<1|E[p+1]>>7])>>0===G){p+=4;return}else p--}E[p++]=203,le.setFloat64(p,m),p+=8}else if(J==="object"||J==="function")if(!m)E[p++]=192;else{if(o){let G=o.get(m);if(G){if(!G.id){let z=o.idsToInsert||(o.idsToInsert=[]);G.id=z.push(G)}E[p++]=214,E[p++]=112,le.setUint32(p,G.id),p+=4;return}else o.set(m,{offset:p-i})}let U=m.constructor;if(U===Object)b(m,!0);else if(U===Array)y(m);else if(U===Map)if(this.mapAsEmptyObject)E[p++]=128;else{M=m.size,M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);for(let[G,z]of m)k(G),k(z)}else{for(let G=0,z=Jf.length;G(E=ae,ae=null,p+=Zt,p>gt&&q(p),{target:E,targetView:le,position:p-Zt}),k)}finally{ae&&(E=ae,le=ne,p=We,gt=E.length-10)}Xt&&(Xt.length+p>gt&&q(Xt.length+p),p=zN(Xt,E,p,L.type));return}}if(Array.isArray(m))y(m);else{if(m.toJSON){let G=m.toJSON();if(G!==m)return k(G)}if(J==="function")return k(this.writeFunction&&this.writeFunction(m));b(m,!m.hasOwnProperty)}}}else if(J==="boolean")E[p++]=m?195:194;else if(J==="bigint"){if(m=-(BigInt(1)<0)E[p++]=207,le.setBigUint64(p,m);else if(this.largeBigIntToFloat)E[p++]=203,le.setFloat64(p,Number(m));else if(this.useBigIntExtension&&m<2n**1023n&&m>-(2n**1023n)){E[p++]=199,p++,E[p++]=66;let U=[],G;do{let z=m&0xffn;G=(z&0x80n)===(m<0n?0x80n:0n),U.push(z),m>>=8n}while(!((m===0n||m===-1n)&&G));E[p-2]=U.length;for(let z=U.length;z>0;)E[p++]=Number(U[--z]);return}else throw new RangeError(m+" was too large to fit in MessagePack 64-bit integer format, use useBigIntExtension or set largeBigIntToFloat to convert to float-64");p+=8}else if(J==="undefined")this.encodeUndefinedAsNil?E[p++]=192:(E[p++]=212,E[p++]=0,E[p++]=0);else throw new Error("Unknown type: "+J)},F=this.variableMapSize||this.coercibleKeyAsNumber?m=>{let J=Object.keys(m),M=J.length;M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);let U;if(this.coercibleKeyAsNumber)for(let G=0;G{E[p++]=222;let M=p-i;p+=2;let U=0;for(let G in m)(J||m.hasOwnProperty(G))&&(k(G),k(m[G]),U++);E[M+++i]=U>>8,E[M+i]=U&255},S=this.useRecords===!1?F:t.progressiveRecords&&!g?(m,J)=>{let M,U=r.transitions||(r.transitions=Object.create(null)),G=p++-i,z;for(let O in m)if(J||m.hasOwnProperty(O)){if(M=U[O],M)U=M;else{let L=Object.keys(m),ae=U;U=r.transitions;let ne=0;for(let We=0,Xt=L.length;We{let M,U=r.transitions||(r.transitions=Object.create(null)),G=0;for(let O in m)(J||m.hasOwnProperty(O))&&(M=U[O],M||(M=U[O]=Object.create(null),G++),U=M);let z=U[yr];z?z>=96&&g?(E[p++]=((z-=96)&31)+96,E[p++]=z>>5):E[p++]=z:Z(U,U.__keys__||Object.keys(m),G);for(let O in m)(J||m.hasOwnProperty(O))&&k(m[O])},N=typeof this.useRecords=="function"&&this.useRecords,b=N?(m,J)=>{N(m)?S(m,J):F(m,J)}:S,q=m=>{let J;if(m>16777216){if(m-i>bm)throw new Error("Packed buffer would be larger than maximum buffer size");J=Math.min(bm,Math.round(Math.max((m-i)*(m>67108864?1.25:2),4194304)/4096)*4096)}else J=(Math.max(m-i<<2,E.length-1)>>12)+1<<12;let M=new tc(J);return le=M.dataView||(M.dataView=new DataView(M.buffer,0,J)),m=Math.min(m,E.length),E.copy?E.copy(M,0,i,m):M.set(E.slice(i,m)),p-=i,i=0,gt=M.length-10,E=M},Z=(m,J,M)=>{let U=r.nextId;U||(U=64),U=C&&(U=f),r.nextId=U+1);let G=J.highByte=U>=96&&g?U-96>>5:-1;m[yr]=U,m.__keys__=J,r[U-64]=J,U=0?(E[p++]=(U&31)+96,E[p++]=G):E[p++]=U):(G>=0?(E[p++]=213,E[p++]=114,E[p++]=(U&31)+96,E[p++]=G):(E[p++]=212,E[p++]=114,E[p++]=U),M&&(d+=B*M),D.length>=u&&(D.shift()[yr]=0),D.push(m),k(J))},xe=(m,J,M,U)=>{let G=E,z=p,O=gt,L=i;E=Qs,p=0,i=0,E||(Qs=E=new tc(8192)),gt=E.length-10,Z(m,J,U),Qs=E;let ae=p;if(E=G,p=z,gt=O,i=L,ae>1){let ne=p+ae-1;ne>gt&&q(ne);let We=M+i;E.copyWithin(We+ae,We+1,p),E.set(Qs.slice(0,ae),We),p=ne}else E[M+i]=Qs[0]},Bt=(m,J)=>{let M=YN(m,E,i,p,r,q,(U,G,z)=>{if(z)return n=!0;p=G;let O=E;return k(U),Q(),O!==E?{position:p,targetView:le,target:E}:p},this);if(M===0)return b(m,!0);p=M}}useBuffer(t){E=t,le=new DataView(E.buffer,E.byteOffset,E.byteLength),p=0}clearSharedData(){this.structures&&(this.structures=[]),this.typedStructs&&(this.typedStructs=[])}};Pm=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,ds];Jf=[{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?Om(e,16,t):Lm(ic?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let A=e.constructor;A!==Vm&&this.moreTypes?Om(e,Rf.indexOf(A.name),t):Lm(e,t)}},{pack(e,t){let{target:A,position:i}=t(1);A[i]=193}}];function Om(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 Lm(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 zN(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 TN(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 Ym(e,t,A){if(ke.length>0){le.setUint32(ke.position+e,p+A-ke.position-e),ke.stringsPosition=p-e;let i=ke;ke=null,t(i[0]),t(i[1])}}function _N(e,t){return e.isCompatible=A=>{let i=!A||(t.lastNamedStructuresLength||0)===A.length;return i||t._mergeStructures(A),i},e}var zm=new Cn({useRecords:!1}),XN=zm.pack,ZN=zm.pack;var{NEVER:WN,ALWAYS:jN,DECIMAL_ROUND:$N,DECIMAL_FIT:e3}=ec,Tm=512,t3=1024,A3=2048;var Lf=K(jm(),1),AR=Lf.default.configure,$m=Lf.default;var ey={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"}},ty={0:"site.list",1:"site.group",2:"site.load",3:"site.update",4:"comp.new",5:"comp.list",6:"comp.group",7:"comp.load",8:"page.list",9:"page.load",10:"page.cache",11:"yjs.um",12:"yjs.sv_local",13:"yjs.diff_local",14:"yjs.sv_remote",15:"client.info",16:"code.load",17:"code.edit",18:"code.action"};var Ce=window;var Ay=e=>fs(`prasi-user-${e}`,"default");var iy=new Cn({structuredClone:!0}),hs={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3};Ce.debug=new Proxy({},{get(e,t,A){if(t==="off")return hs.debug=!1,localStorage.removeItem("prasi-ws-debug"),console.clear(),["WS DEBUG: Deactivated"];if(t==="on")return hs.debug=!0,localStorage.setItem("prasi-ws-debug","1"),console.clear(),["WS DEBUG: Activated"]}});var kA={ws:null,client_id:"",idb:null,event:null},Yf={action:{pending:{}}},ny=(e,t)=>{let A=iy.pack(t);hs.debug&&console.log("%c\u2B06","color:blue",oy(A.length,0),t),e.send(A)},ry=async e=>{let{user_id:t,site_id:A,page_id:i,events:n}=e;return kA.idb=Ay(t),await a3({user_id:t,site_id:A,page_id:i},n),new fm(ey,({target:r,trapName:o,value:s,key:a,DEFAULT:c,PROXY:I})=>{if(o==="set")throw new TypeError("target is immutable");return typeof s=="string"?(...l)=>new Promise(u=>{g3({code:s,resolve:u,args:l})}):o==="get"&&typeof s=="object"&&s!==null?I:c})},a3=(e,t)=>{let{user_id:A,page_id:i,site_id:n}=e;return kA.event=t,Ce.offline?new Promise(async r=>{r();let o="editor_start",s=await l3(o);t[o]&&t[o](s)}):new Promise((r,o)=>{if(!kA.ws){let s=0,a=()=>{let c=new URL(Ce.basehost||location.href);c.pathname="/sync",c.protocol=c.protocol==="http:"?"ws:":"wss:";let I=new WebSocket(`${c.protocol}//${c.host}${c.pathname}`);I.onopen=()=>{ny(I,{type:1,user_id:A,site_id:n,page_id:i}),kA.ws=I,t.opened()},I.onclose=async()=>{t.disconnected().reconnect?setTimeout(async()=>{s++,a()},s*hs.reconnectTimeout):o()},I.onmessage=async l=>{let u=l.data,g=iy.unpack(Buffer.from(await u.arrayBuffer()));if(hs.debug&&console.log("%c\u2B07","color:red",oy(u.size,0),g),g.type===0)kA.client_id=g.client_id,t.shakehand(g.client_id),r();else if(g.type===2){let f=g.event;t[f]&&(I3.includes(f)&&c3(f,g.data),t[f](g.data))}else if(g.type===4){let f=Yf.action.pending[g.argid];if(f){f.resolve(g.val),delete Yf.action.pending[g.argid];let C=kA.idb;C&&await Bs(g.argid,g.val,C)}}}};a()}})},I3=["editor_start"],c3=async(e,t)=>{let A=kA.idb;if(A){let i=await XI(`ev-${e}`);await Bs(i,t,A)}},l3=async e=>{let t=kA.idb;if(t){let A=await XI(`ev-${e}`);return await mr(A,t)}},g3=async e=>{let{args:t,code:A,resolve:i}=e,n=kA.ws,r=kA.idb;if(r){let o=$m(t),s=ty[A],a=await XI(`op-${s}-${o}`);if(n&&n.readyState===n.OPEN)Yf.action.pending[a]={ts:Date.now(),resolve:i},ny(n,{type:3,code:A,args:t,argid:a});else{let c=await mr(a,r);i(c)}}};function oy(e,t){if(e==0)return"0 Bytes";var A=1024,i=t||2,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],r=Math.floor(Math.log(e)/Math.log(A));return parseFloat((e/Math.pow(A,r)).toFixed(i))+" "+n[r]}var wr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Fr(e={}){let t={options:e,rootNode:ay(),staticRoutesMap:{}},A=i=>e.strictTrailingSlash?i:i.replace(/\/$/,"")||"/";if(e.routes)for(let i in e.routes)sy(t,A(i),e.routes[i]);return{ctx:t,lookup:i=>u3(t,A(i)),insert:(i,n)=>sy(t,A(i),n),remove:i=>f3(t,A(i))}}function u3(e,t){let A=e.staticRoutesMap[t];if(A)return A.data;let i=t.split("/"),n={},r=!1,o=null,s=e.rootNode,a=null;for(let c=0;c{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:d3,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var Cy=K(oc());var Qy=e=>{let{item:t,item_comp:A,ids:i}=e,n=QA(A);if(hy(n,i),t.id&&(n.id=t.id),n.component){if(n.component.props&&t.component)for(let r of Object.keys(n.component.props)){let o=t.component.props[r],s=n.component.props[r];o&&(s.value=o.value,s.valueBuilt=o.valueBuilt,s.jsxCalledBy=o.jsxCalledBy,s.content=o.content)}n.component.instances=t.component?.instances,n.component.style=t.component?.style}for(let r of Object.keys(t))delete t[r];for(let[r,o]of Object.entries(n))t[r]=o},hy=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,Cy.createId)()),e.id=t[e.id],e.childs)for(let A of e.childs)hy(A,t)};var py=e=>{for(let[t,A]of Object.entries(e.item_comp.component?.props||{})){let i=QA(A),n=e.item.component?.props;n&&n[t]&&(i.value=n[t].value,i.valueBuilt=n[t].valueBuilt,n[t].content&&(i.content=n[t].content)),i&&e.each(t,i)}};var sc=e=>{let t={};for(let[A,i]of Object.entries(e))if(A==="childs"){if(t.childs=[],i&&Array.isArray(i))for(let n of i)t.childs.push({id:n.id})}else t[A]=i;return t};var Ey=(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]),Qy({item:A,item_comp:i,ids:o})}let r={item:sc(A),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:n};e.on?.visit&&e.on.visit(r,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[A.id]=r),py({item:A,item_comp:i,instance:n?n[A.id]:{},each(o,s){let a=A.component?.id;s.meta?.type==="content-element"&&a&&s.content&&(s.content.name=o,vt({...e,mode:"comp"},{item:s.content,root:t.root||s.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:o},parent:{item:r.item,instance_id:A.id,comp:i,root_instances:n}}))}});for(let o of Object.values(A.childs))o.name.startsWith("jsx:")||vt({...e,mode:"comp"},{item:o,is_root:!1,root:t.root||t.item,parent:{item:A,instance_id:A.id,root_instances:n,comp:i}})}}};var vt=(e,t)=>{let A=t.item;if(A.type==="item"&&A.component?.id&&t.ignore_first_component!==!0){Ey(e,t);return}let i={item:sc(A),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(i.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(i,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[i.item.id]=i),A.childs){for(let[n,r]of Object.entries(A.childs))if(r.id){let o={item:r,is_root:!1,root:t.root||t.item,parent:{item:i.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(o.jsx_prop={...t.jsx_prop,is_root:!1}),vt(e,o)}}};var ac=async(e,t,A,i)=>{let n=new Set,r={root:t};if(vt({...e,on:{visit_component:({component:o})=>{if(o){let{id:s}=o;if(e.comps[s]||(!i||i&&!i.has(s))&&n.add(s),o?.props)for(let[a,c]of Object.entries(o.props))c.meta?.type==="content-element"&&c.content&&vt({...e,on:{visit_component:({component:I})=>{if(I){let{id:l}=I;e.comps[l]||(!i||i&&!i.has(l))&&n.add(l)}},visit(I,l){A.visit&&A.visit(I,l,r)}},set_meta:!1,note:"init-load-comp-prop"},{item:c.content})}},visit(o,s){A.visit&&A.visit(o,s,r)}},set_meta:!1,note:"init-load-comp"},{item:t,ignore_first_component:!0}),A.done&&A.done(r),n.size>0){await A.load([...n]);let o=i;o||(o=new Set),n.forEach(s=>{o&&o.add(s)});for(let s of[...o]){let a=e.comps[s];a&&await ac(e,a,A,o)}}};var D3=fs("prasi-cache","prasi-cache-store"),pn={timeout:null,store:D3},Ic=(e,t)=>{let A=[...my(t,"navigate(",")"),...my(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(pn.timeout),pn.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[i])})},100)},my=(e,t,A)=>{let i=0,n=0,r=[];for(;;){let o=e.indexOf(t,i);if(n=i,o>=0){let s=e[o+t.length];if(s==='"'||s==="'"||s==="`"){let a=e.indexOf(`${s}${A}`,o+t.length+1),c=e.substring(o+t.length+1,a);i=a+2+A.length,r.push(c)}}if(n===i)break}return r};var wy=K(oc());var cc=()=>{let e=document.activeElement;return!!(e&&e.attributes.getNamedItem("contenteditable"))};var yy=K(oc()),lc=e=>{let{m:t,root:A,mitem:i,meta:n}=e;if(t.jsx_prop&&t.parent?.instance_id){let r=n[t.parent?.instance_id];if(r&&t.jsx_prop.is_root){let o=r.item.component?.props[t.jsx_prop.name];o&&(o.content=t.item)}}if(t.parent)if(t.parent.id==="root")t.item.id===A.id&&(t.mitem=i);else{let r=n[t.parent.id];if(r.mitem)if(t.jsx_prop?.is_root===!0){let o=r.mitem.get("component")?.get("props");if(o){let s=o.get(t.jsx_prop.name);if(s){let a=s.get("content");if(!a){let c=new Y.Map;syncronize(c,{id:(0,yy.createId)(),name:t.jsx_prop.name,type:"item",dim:{w:"full",h:"full"},childs:[],adv:{css:""}}),s.set("content",c)}a&&(t.mitem=a)}}}else r.mitem.get("childs")?.forEach(o=>{o&&o.get&&o.get("id")===t.item.id&&(t.mitem=o)});if(t.item.component?.props)for(let[o,s]of Object.entries(t.item.component.props)){let a=t.mitem?.get("component")?.get("props")?.get(o);if(!a){let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}if(s.content)if(a){let c=n[s.content.id];c&&(c.mitem=a.get("content"))}else{let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}}}};var gc=(e,t,A,i)=>{if(t.parent?.id==="root")e.page.doc?.getMap("map").get("root")?.get("childs")?.forEach(n=>{n.get("id")===t.item.id&&(t.mitem=n)});else{let n=A[t.parent?.id||""];n&&n.mitem&&n.mitem.get("childs")?.forEach(r=>{r&&r.get&&r.get("id")===t.item.id&&(t.mitem=r)})}if(!t.item||!t.item.id)return console.warn("Emptry Tree Item ",t),null;if(i.find(n=>n.id===t.item.id))console.warn("Double Tree Item: ",t.item.id,t.item.name);else if(!t.parent?.comp_id)i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t});else if(t.jsx_prop)if(t.jsx_prop.is_root)t.jsx_prop.name!=="child"&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.jsx_prop.name,data:t});else{if(t.jsx_prop.name==="child"&&t.parent.instance_id){let n=A[t.parent.instance_id],r=n.item.component?.props.child.content?.id;r&&n.mitem&&A[r].item.childs.find(s=>t.item.id===s.id)&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.item.name,data:t})}t.parent.id!==t.parent.instance_id&&i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t})}};var fc=async(e,t,A)=>{if(e.comp.list[t])return;let i=new Y.Doc;Y.applyUpdate(i,Et(A));let n=i.getMap("map").get("root");if(n){e.comp.loaded[t]=n.toJSON(),typeof e.comp.list[t]?.on_update=="function"&&i.off("update",e.comp.list[t].on_update);let r=await uc(e,i,t);if(r){let{meta:o,tree:s}=r;e.comp.list[t]?(e.comp.list[t].meta=o,e.comp.list[t].tree=s):(e.comp.list[t]={comp:{id:t,snapshot:A},doc:i,meta:o,tree:s,async on_update(a,c){if(c==="sv_remote"||c==="local")return;let I=await e.sync?.yjs.sv_local("comp",t,Buffer.from(rA(a)));if(I){let l=Y.encodeStateAsUpdate(i,Et(I.sv));Y.applyUpdate(i,Et(I.diff),"local"),await e.sync?.yjs.diff_local("comp",t,Buffer.from(rA(l)));let u=await uc(e,e.comp.list[t].doc,t);if(u&&(e.comp.list[t].meta=u.meta,e.comp.list[t].tree=u.tree),e.comp.loaded[t]=i.getMap("map").get("root")?.toJSON(),cc())return;IA(e),e.render()}}},i.on("update",e.comp.list[t].on_update))}}},uc=async(e,t,A)=>{let i=t.getMap("map").get("root");if(!i)return;let n={},r=[],o=i.toJSON();return e.comp.loaded[A]=o,await ac({comps:e.comp.loaded,meta:n,set_meta:!1,mode:"comp"},o,{load:async s=>{let a=s.filter(I=>!e.comp.loaded[I]),c=await e.sync?.comp.load(a,!0);if(c){let I=Object.entries(c);for(let[l,u]of I)u&&u.snapshot&&!e.comp.list[l]&&await fc(e,l,u.snapshot)}}}),vt({comps:e.comp.loaded,meta:n,mode:"comp",on:{async visit(s){gc(e,s,n,r),lc({m:s,root:o,mitem:i,meta:n,new_prop_jsx(a,c,I,l){zf.list.push(()=>{let u=new Y.Map;l.content&&(l.content.id=(0,wy.createId)()),syncronize(u,l),c.set(I,u)})}})}},note:"load-comp-scan-meta"},{item:o,ignore_first_component:!0}),zf.list.length>0&&e.page.doc?.transact(()=>{for(let s of zf.list)s()}),e.comp.loaded[A]=o,{meta:n,tree:r,item:o}},zf={list:[]};var IA=async(e,t)=>{if(document.activeElement){let o=document.activeElement;if(o.tagName==="DIV"&&o.getAttribute("contenteditable")==="true")return}rc.should_render_main=!0;let A=e.site.layout&&e.site.layout.id===e.page.cur.id&&t?.note==="load-layout page-init";for(let[o,s]of Object.entries(e.comp.list))if(!e.comp.loaded[o]){let c=s.doc.getMap("map").get("root")?.toJSON();c&&(e.comp.loaded[o]=c)}let i=e.page.doc?.getMap("map").get("root"),n=[];i?.get("childs")?.forEach(o=>n.push(o));let r={};e.page.tree=[];for(let o of n){let s=o.toJSON();s&&vt({note:"tree-rebuild",comps:e.comp.loaded,meta:r,mode:"page",on:{async visit(a){A||((a.parent?.instance_id!==a.parent?.id||a.jsx_prop)&&gc(e,a,r,e.page.tree),lc({m:a,root:s,mitem:o,meta:r,new_prop_jsx(c,I,l,u){if(!I.get(l)){let g=new Y.Map;syncronize(g,u),I.set(l,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,a]of Object.entries(e.site.layout.meta))if(a.item.name==="content"){o=a.item.id;break}e.page.root_id=o}if(e.site.layout&&e.site.layout.id===e.page.cur.id)e.page.meta=r;else if(o!=="root"){for(let s of Object.values(r))s.parent?.id==="root"&&(s.parent.id=o);e.page.meta={...e.site.layout.meta,...r}}else e.page.meta=r}};function ms(e,t){return function(){return e.apply(t,arguments)}}var{toString:k3}=Object.prototype,{getPrototypeOf:Xf}=Object,dc=(e=>t=>{let A=k3.call(t);return e[A]||(e[A]=A.slice(8,-1).toLowerCase())})(Object.create(null)),SA=e=>(e=e.toLowerCase(),t=>dc(t)===e),Cc=e=>t=>typeof t===e,{isArray:Dr}=Array,ys=Cc("undefined");function S3(e){return e!==null&&!ys(e)&&e.constructor!==null&&!ys(e.constructor)&&Tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ky=SA("ArrayBuffer");function U3(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ky(e.buffer),t}var N3=Cc("string"),Tt=Cc("function"),Sy=Cc("number"),Qc=e=>e!==null&&typeof e=="object",x3=e=>e===!0||e===!1,Bc=e=>{if(dc(e)!=="object")return!1;let t=Xf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},G3=SA("Date"),H3=SA("File"),M3=SA("Blob"),v3=SA("FileList"),R3=e=>Qc(e)&&Tt(e.pipe),J3=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tt(e.append)&&((t=dc(e))==="formdata"||t==="object"&&Tt(e.toString)&&e.toString()==="[object FormData]"))},q3=SA("URLSearchParams"),K3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(e,t,{allOwnKeys:A=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),Dr(e))for(i=0,n=e.length;i0;)if(n=A[i],t===n.toLowerCase())return n;return null}var Ny=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xy=e=>!ys(e)&&e!==Ny;function _f(){let{caseless:e}=xy(this)&&this||{},t={},A=(i,n)=>{let r=e&&Uy(t,n)||n;Bc(t[r])&&Bc(i)?t[r]=_f(t[r],i):Bc(i)?t[r]=_f({},i):Dr(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i(ws(t,(n,r)=>{A&&Tt(n)?e[r]=ms(n,A):e[r]=n},{allOwnKeys:i}),e),O3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L3=(e,t,A,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),A&&Object.assign(e.prototype,A)},Y3=(e,t,A,i)=>{let n,r,o,s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)o=n[r],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=A!==!1&&Xf(e)}while(e&&(!A||A(e,t))&&e!==Object.prototype);return t},P3=(e,t,A)=>{e=String(e),(A===void 0||A>e.length)&&(A=e.length),A-=t.length;let i=e.indexOf(t,A);return i!==-1&&i===A},V3=e=>{if(!e)return null;if(Dr(e))return e;let t=e.length;if(!Sy(t))return null;let A=new Array(t);for(;t-- >0;)A[t]=e[t];return A},z3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xf(Uint8Array)),T3=(e,t)=>{let i=(e&&e[Symbol.iterator]).call(e),n;for(;(n=i.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},_3=(e,t)=>{let A,i=[];for(;(A=e.exec(t))!==null;)i.push(A);return i},X3=SA("HTMLFormElement"),Z3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(A,i,n){return i.toUpperCase()+n}),Fy=(({hasOwnProperty:e})=>(t,A)=>e.call(t,A))(Object.prototype),W3=SA("RegExp"),Gy=(e,t)=>{let A=Object.getOwnPropertyDescriptors(e),i={};ws(A,(n,r)=>{let o;(o=t(n,r,e))!==!1&&(i[r]=o||n)}),Object.defineProperties(e,i)},j3=e=>{Gy(e,(t,A)=>{if(Tt(e)&&["arguments","caller","callee"].indexOf(A)!==-1)return!1;let i=e[A];if(Tt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+A+"'")})}})},$3=(e,t)=>{let A={},i=n=>{n.forEach(r=>{A[r]=!0})};return Dr(e)?i(e):i(String(e).split(t)),A},ex=()=>{},tx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Tf="abcdefghijklmnopqrstuvwxyz",Dy="0123456789",Hy={DIGIT:Dy,ALPHA:Tf,ALPHA_DIGIT:Tf+Tf.toUpperCase()+Dy},Ax=(e=16,t=Hy.ALPHA_DIGIT)=>{let A="",{length:i}=t;for(;e--;)A+=t[Math.random()*i|0];return A};function ix(e){return!!(e&&Tt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var nx=e=>{let t=new Array(10),A=(i,n)=>{if(Qc(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;let r=Dr(i)?[]:{};return ws(i,(o,s)=>{let a=A(o,n+1);!ys(a)&&(r[s]=a)}),t[n]=void 0,r}}return i};return A(e,0)},rx=SA("AsyncFunction"),ox=e=>e&&(Qc(e)||Tt(e))&&Tt(e.then)&&Tt(e.catch),w={isArray:Dr,isArrayBuffer:ky,isBuffer:S3,isFormData:J3,isArrayBufferView:U3,isString:N3,isNumber:Sy,isBoolean:x3,isObject:Qc,isPlainObject:Bc,isUndefined:ys,isDate:G3,isFile:H3,isBlob:M3,isRegExp:W3,isFunction:Tt,isStream:R3,isURLSearchParams:q3,isTypedArray:z3,isFileList:v3,forEach:ws,merge:_f,extend:b3,trim:K3,stripBOM:O3,inherits:L3,toFlatObject:Y3,kindOf:dc,kindOfTest:SA,endsWith:P3,toArray:V3,forEachEntry:T3,matchAll:_3,isHTMLForm:X3,hasOwnProperty:Fy,hasOwnProp:Fy,reduceDescriptors:Gy,freezeMethods:j3,toObjectSet:$3,toCamelCase:Z3,noop:ex,toFiniteNumber:tx,findKey:Uy,global:Ny,isContextDefined:xy,ALPHABET:Hy,generateString:Ax,isSpecCompliantForm:ix,toJSONObject:nx,isAsyncFn:rx,isThenable:ox};function kr(e,t,A,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),A&&(this.config=A),i&&(this.request=i),n&&(this.response=n)}w.inherits(kr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var My=kr.prototype,vy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vy[e]={value:e}});Object.defineProperties(kr,vy);Object.defineProperty(My,"isAxiosError",{value:!0});kr.from=(e,t,A,i,n,r)=>{let o=Object.create(My);return w.toFlatObject(e,o,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),kr.call(o,e.message,t,A,i,n),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};var j=kr;var hc=null;function Zf(e){return w.isPlainObject(e)||w.isArray(e)}function Jy(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Ry(e,t,A){return e?e.concat(t).map(function(n,r){return n=Jy(n),!A&&r?"["+n+"]":n}).join(A?".":""):t}function sx(e){return w.isArray(e)&&!e.some(Zf)}var ax=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Ix(e,t,A){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(hc||FormData),A=w.toFlatObject(A,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,D){return!w.isUndefined(D[C])});let i=A.metaTokens,n=A.visitor||I,r=A.dots,o=A.indexes,a=(A.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(w.isDate(f))return f.toISOString();if(!a&&w.isBlob(f))throw new j("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(f)||w.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function I(f,C,D){let d=f;if(f&&!D&&typeof f=="object"){if(w.endsWith(C,"{}"))C=i?C:C.slice(0,-2),f=JSON.stringify(f);else if(w.isArray(f)&&sx(f)||(w.isFileList(f)||w.endsWith(C,"[]"))&&(d=w.toArray(f)))return C=Jy(C),d.forEach(function(Q,y){!(w.isUndefined(Q)||Q===null)&&t.append(o===!0?Ry([C],y,r):o===null?C:C+"[]",c(Q))}),!1}return Zf(f)?!0:(t.append(Ry(D,C,r),c(f)),!1)}let l=[],u=Object.assign(ax,{defaultVisitor:I,convertValue:c,isVisitable:Zf});function g(f,C){if(!w.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+C.join("."));l.push(f),w.forEach(f,function(d,B){(!(w.isUndefined(d)||d===null)&&n.call(t,d,w.isString(B)?B.trim():B,C,u))===!0&&g(d,C?C.concat(B):[B])}),l.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return g(e),t}var vi=Ix;function qy(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ky(e,t){this._pairs=[],e&&vi(e,this,t)}var by=Ky.prototype;by.append=function(t,A){this._pairs.push([t,A])};by.toString=function(t){let A=t?function(i){return t.call(this,i,qy)}:qy;return this._pairs.map(function(n){return A(n[0])+"="+A(n[1])},"").join("&")};var pc=Ky;function lx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fs(e,t,A){if(!t)return e;let i=A&&A.encode||lx,n=A&&A.serialize,r;if(n?r=n(t,A):r=w.isURLSearchParams(t)?t.toString():new pc(t,A).toString(i),r){let o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}var Wf=class{constructor(){this.handlers=[]}use(t,A,i){return this.handlers.push({fulfilled:t,rejected:A,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(i){i!==null&&t(i)})}},jf=Wf;var Ec={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Oy=typeof URLSearchParams<"u"?URLSearchParams:pc;var Ly=typeof FormData<"u"?FormData:null;var Yy=typeof Blob<"u"?Blob:null;var Py={isBrowser:!0,classes:{URLSearchParams:Oy,FormData:Ly,Blob:Yy},protocols:["http","https","file","blob","url","data"]};var $f={};L0($f,{hasBrowserEnv:()=>Vy,hasStandardBrowserEnv:()=>gx,hasStandardBrowserWebWorkerEnv:()=>ux});var Vy=typeof window<"u"&&typeof document<"u",gx=(e=>Vy&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ux=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var ut={...$f,...Py};function eB(e,t){return vi(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(A,i,n,r){return ut.isNode&&w.isBuffer(A)?(this.append(i,A.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function fx(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bx(e){let t={},A=Object.keys(e),i,n=A.length,r;for(i=0;i=A.length;return o=!o&&w.isArray(n)?n.length:o,a?(w.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s):((!n[o]||!w.isObject(n[o]))&&(n[o]=[]),t(A,i,n[o],r)&&w.isArray(n[o])&&(n[o]=Bx(n[o])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){let A={};return w.forEachEntry(e,(i,n)=>{t(fx(i),n,A,0)}),A}return null}var mc=dx;function Cx(e,t,A){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(A||JSON.stringify)(e)}var tB={transitional:Ec,adapter:["xhr","http"],transformRequest:[function(t,A){let i=A.getContentType()||"",n=i.indexOf("application/json")>-1,r=w.isObject(t);if(r&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return n?JSON.stringify(mc(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return A.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return eB(t,this.formSerializer).toString();if((s=w.isFileList(t))||i.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return vi(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return r||n?(A.setContentType("application/json",!1),Cx(t)):t}],transformResponse:[function(t){let A=this.transitional||tB.transitional,i=A&&A.forcedJSONParsing,n=this.responseType==="json";if(t&&w.isString(t)&&(i&&!this.responseType||n)){let o=!(A&&A.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{tB.headers[e]={}});var Sr=tB;var Qx=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zy=e=>{let t={},A,i,n;return e&&e.split(` -`).forEach(function(o){n=o.indexOf(":"),A=o.substring(0,n).trim().toLowerCase(),i=o.substring(n+1).trim(),!(!A||t[A]&&Qx[A])&&(A==="set-cookie"?t[A]?t[A].push(i):t[A]=[i]:t[A]=t[A]?t[A]+", "+i:i)}),t};var Ty=Symbol("internals");function Ds(e){return e&&String(e).trim().toLowerCase()}function yc(e){return e===!1||e==null?e:w.isArray(e)?e.map(yc):String(e)}function hx(e){let t=Object.create(null),A=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=A.exec(e);)t[i[1]]=i[2];return t}var px=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AB(e,t,A,i,n){if(w.isFunction(i))return i.call(this,t,A);if(n&&(t=A),!!w.isString(t)){if(w.isString(i))return t.indexOf(i)!==-1;if(w.isRegExp(i))return i.test(t)}}function Ex(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,A,i)=>A.toUpperCase()+i)}function mx(e,t){let A=w.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+A,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}var Ur=class{constructor(t){t&&this.set(t)}set(t,A,i){let n=this;function r(s,a,c){let I=Ds(a);if(!I)throw new Error("header name must be a non-empty string");let l=w.findKey(n,I);(!l||n[l]===void 0||c===!0||c===void 0&&n[l]!==!1)&&(n[l||a]=yc(s))}let o=(s,a)=>w.forEach(s,(c,I)=>r(c,I,a));return w.isPlainObject(t)||t instanceof this.constructor?o(t,A):w.isString(t)&&(t=t.trim())&&!px(t)?o(zy(t),A):t!=null&&r(A,t,i),this}get(t,A){if(t=Ds(t),t){let i=w.findKey(this,t);if(i){let n=this[i];if(!A)return n;if(A===!0)return hx(n);if(w.isFunction(A))return A.call(this,n,i);if(w.isRegExp(A))return A.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,A){if(t=Ds(t),t){let i=w.findKey(this,t);return!!(i&&this[i]!==void 0&&(!A||AB(this,this[i],i,A)))}return!1}delete(t,A){let i=this,n=!1;function r(o){if(o=Ds(o),o){let s=w.findKey(i,o);s&&(!A||AB(i,i[s],s,A))&&(delete i[s],n=!0)}}return w.isArray(t)?t.forEach(r):r(t),n}clear(t){let A=Object.keys(this),i=A.length,n=!1;for(;i--;){let r=A[i];(!t||AB(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){let A=this,i={};return w.forEach(this,(n,r)=>{let o=w.findKey(i,r);if(o){A[o]=yc(n),delete A[r];return}let s=t?Ex(r):String(r).trim();s!==r&&delete A[r],A[s]=yc(n),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let A=Object.create(null);return w.forEach(this,(i,n)=>{i!=null&&i!==!1&&(A[n]=t&&w.isArray(i)?i.join(", "):i)}),A}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,A])=>t+": "+A).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...A){let i=new this(t);return A.forEach(n=>i.set(n)),i}static accessor(t){let i=(this[Ty]=this[Ty]={accessors:{}}).accessors,n=this.prototype;function r(o){let s=Ds(o);i[s]||(mx(n,o),i[s]=!0)}return w.isArray(t)?t.forEach(r):r(t),this}};Ur.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Ur.prototype,({value:e},t)=>{let A=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[A]=i}}});w.freezeMethods(Ur);var ft=Ur;function ks(e,t){let A=this||Sr,i=t||A,n=ft.from(i.headers),r=i.data;return w.forEach(e,function(s){r=s.call(A,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Ss(e){return!!(e&&e.__CANCEL__)}function _y(e,t,A){j.call(this,e??"canceled",j.ERR_CANCELED,t,A),this.name="CanceledError"}w.inherits(_y,j,{__CANCEL__:!0});var Ri=_y;function iB(e,t,A){let i=A.config.validateStatus;!A.status||!i||i(A.status)?e(A):t(new j("Request failed with status code "+A.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(A.status/100)-4],A.config,A.request,A))}var Xy=ut.hasStandardBrowserEnv?{write(e,t,A,i,n,r){let o=[e+"="+encodeURIComponent(t)];w.isNumber(A)&&o.push("expires="+new Date(A).toGMTString()),w.isString(i)&&o.push("path="+i),w.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Us(e,t){return e&&!nB(t)?rB(e,t):t}var Zy=ut.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),A=document.createElement("a"),i;function n(r){let o=r;return t&&(A.setAttribute("href",o),o=A.href),A.setAttribute("href",o),{href:A.href,protocol:A.protocol?A.protocol.replace(/:$/,""):"",host:A.host,search:A.search?A.search.replace(/^\?/,""):"",hash:A.hash?A.hash.replace(/^#/,""):"",hostname:A.hostname,port:A.port,pathname:A.pathname.charAt(0)==="/"?A.pathname:"/"+A.pathname}}return i=n(window.location.href),function(o){let s=w.isString(o)?n(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}();function oB(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yx(e,t){e=e||10;let A=new Array(e),i=new Array(e),n=0,r=0,o;return t=t!==void 0?t:1e3,function(a){let c=Date.now(),I=i[r];o||(o=c),A[n]=a,i[n]=c;let l=r,u=0;for(;l!==n;)u+=A[l++],l=l%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),c-o{let r=n.loaded,o=n.lengthComputable?n.total:void 0,s=r-A,a=i(s),c=r<=o;A=r;let I={loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:a||void 0,estimated:a&&o&&c?(o-r)/a:void 0,event:n};I[t?"download":"upload"]=!0,e(I)}}var wx=typeof XMLHttpRequest<"u",$y=wx&&function(e){return new Promise(function(A,i){let n=e.data,r=ft.from(e.headers).normalize(),{responseType:o,withXSRFToken:s}=e,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let I;if(w.isFormData(n)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((I=r.getContentType())!==!1){let[C,...D]=I?I.split(";").map(d=>d.trim()).filter(Boolean):[];r.setContentType([C||"multipart/form-data",...D].join("; "))}}let l=new XMLHttpRequest;if(e.auth){let C=e.auth.username||"",D=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(C+":"+D))}let u=Us(e.baseURL,e.url);l.open(e.method.toUpperCase(),Fs(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function g(){if(!l)return;let C=ft.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),d={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:C,config:e,request:l};iB(function(Q){A(Q),c()},function(Q){i(Q),c()},d),l=null}if("onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(g)},l.onabort=function(){l&&(i(new j("Request aborted",j.ECONNABORTED,e,l)),l=null)},l.onerror=function(){i(new j("Network Error",j.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let D=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",d=e.transitional||Ec;e.timeoutErrorMessage&&(D=e.timeoutErrorMessage),i(new j(D,d.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,l)),l=null},ut.hasStandardBrowserEnv&&(s&&w.isFunction(s)&&(s=s(e)),s||s!==!1&&Zy(u))){let C=e.xsrfHeaderName&&e.xsrfCookieName&&Xy.read(e.xsrfCookieName);C&&r.set(e.xsrfHeaderName,C)}n===void 0&&r.setContentType(null),"setRequestHeader"in l&&w.forEach(r.toJSON(),function(D,d){l.setRequestHeader(d,D)}),w.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",jy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",jy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=C=>{l&&(i(!C||C.type?new Ri(null,e,l):C),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let f=oB(u);if(f&&ut.protocols.indexOf(f)===-1){i(new j("Unsupported protocol "+f+":",j.ERR_BAD_REQUEST,e));return}l.send(n||null)})};var sB={http:hc,xhr:$y};w.forEach(sB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var ew=e=>`- ${e}`,Fx=e=>w.isFunction(e)||e===null||e===!1,wc={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,A,i,n={};for(let r=0;r`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build")),o=t?r.length>1?`since : + `)})}),r]})})]})};var ct=null;var Su=class extends Error{constructor(t){super(t),this.name="DecompressionError"}},An=0,ku=null,gI=null;function Mp(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 An=r,i}if(typeof t=="string"){let r=An=function(s){let a=0,c=0,I=0,l=s.length;for(;a>>0;ct.free_u8(A,An);let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function Et(e,t){vp(ct);let A=Mp(ct,e,t),i=ct.gzip_decompress(A,An)>>>0;if(ct.free_u8(A,An),i===4294967295){let r=ct.error_message(),o=ct.error_message_len(),s=new Uint8Array(ct.memory.buffer,r,o),a=new TextDecoder().decode(s);throw new Su(a)}let n=ct.buffer()>>>0;return new Uint8Array(ct.memory.buffer,n,i)}function vp(e){if(!e)throw new Error("WASM not initialized")}var lt=()=>new Map,uI=e=>{let t=lt();return e.forEach((A,i)=>{t.set(i,A)}),t},hA=(e,t,A)=>{let i=e.get(t);return i===void 0&&e.set(t,i=A()),i},Rp=(e,t)=>{let A=[];for(let[i,n]of e)A.push(t(n,i));return A},Jp=(e,t)=>{for(let[A,i]of e)if(t(i,A))return!0;return!1};var PA=()=>new Set;var fI=e=>e[e.length-1];var qp=(e,t)=>{for(let A=0;A{this.off(t,i),A(...n)};this.on(t,i)}off(t,A){let i=this._observers.get(t);i!==void 0&&(i.delete(A),i.size===0&&this._observers.delete(t))}emit(t,A){return pA((this._observers.get(t)||lt()).values()).forEach(i=>i(...A))}destroy(){this._observers=lt()}};var Yt=Math.floor;var or=Math.abs;var dI=(e,t)=>ee>t?e:t,QM=Number.isNaN;var CI=e=>e!==0?e<0:1/e<0;var Gu=Number.MAX_SAFE_INTEGER,hM=Number.MIN_SAFE_INTEGER,pM=1<<31;var Kp=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&Yt(e)===e),EM=Number.isNaN,mM=Number.parseInt;var tS=String.fromCharCode,yM=String.fromCodePoint,wM=tS(65535),AS=e=>e.toLowerCase(),iS=/^\s*/g,nS=e=>e.replace(iS,""),rS=/([A-Z])/g,Hu=(e,t)=>nS(e.replace(rS,A=>`${t}${AS(A)}`));var oS=e=>{let t=unescape(encodeURIComponent(e)),A=t.length,i=new Uint8Array(A);for(let n=0;nar.encode(e),Op=ar?sS:oS;var sr=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});sr&&sr.decode(new Uint8Array).length===1&&(sr=null);var nn=class{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}},Yo=()=>new nn;var aS=e=>{let t=e.cpos;for(let A=0;A{let t=new Uint8Array(aS(e)),A=0;for(let i=0;i{let A=e.cbuf.length;A-e.cpos{let A=e.cbuf.length;e.cpos===A&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(A*2),e.cpos=0),e.cbuf[e.cpos++]=t};var pI=Oe;var W=(e,t)=>{for(;t>127;)Oe(e,128|127&t),t=Yt(t/128);Oe(e,127&t)},EI=(e,t)=>{let A=CI(t);for(A&&(t=-t),Oe(e,(t>63?128:0)|(A?64:0)|63&t),t=Yt(t/64);t>0;)Oe(e,(t>127?128:0)|127&t),t=Yt(t/128)},vu=new Uint8Array(3e4),cS=vu.length/3,lS=(e,t)=>{if(t.length{let A=unescape(encodeURIComponent(t)),i=A.length;W(e,i);for(let n=0;n{let A=e.cbuf.length,i=e.cpos,n=dI(A-i,t.length),r=t.length-n;e.cbuf.set(t.subarray(0,n),i),e.cpos+=n,r>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(VA(A*2,r)),e.cbuf.set(t.subarray(n)),e.cpos=r)},mt=(e,t)=>{W(e,t.byteLength),Po(e,t)},Ru=(e,t)=>{IS(e,t);let A=new DataView(e.cbuf.buffer,e.cpos,t);return e.cpos+=t,A},uS=(e,t)=>Ru(e,4).setFloat32(0,t,!1),fS=(e,t)=>Ru(e,8).setFloat64(0,t,!1),BS=(e,t)=>Ru(e,8).setBigInt64(0,t,!1);var Yp=new DataView(new ArrayBuffer(4)),dS=e=>(Yp.setFloat32(0,e),Yp.getFloat32(0)===e),cr=(e,t)=>{switch(typeof t){case"string":Oe(e,119),rn(e,t);break;case"number":Kp(t)&&or(t)<=2147483647?(Oe(e,125),EI(e,t)):dS(t)?(Oe(e,124),uS(e,t)):(Oe(e,123),fS(e,t));break;case"bigint":Oe(e,122),BS(e,t);break;case"object":if(t===null)Oe(e,126);else if(Nu(t)){Oe(e,117),W(e,t.length);for(let A=0;A0&&W(this,this.count-1),this.count=1,this.w(this,t),this.s=t)}};var Pp=e=>{e.count>0&&(EI(e.encoder,e.count===1?e.s:-e.s),e.count>1&&W(e.encoder,e.count-2))},on=class{constructor(){this.encoder=new nn,this.s=0,this.count=0}write(t){this.s===t?this.count++:(Pp(this),this.count=1,this.s=t)}toUint8Array(){return Pp(this),oA(this.encoder)}};var Vp=e=>{if(e.count>0){let t=e.diff*2+(e.count===1?0:1);EI(e.encoder,t),e.count>1&&W(e.encoder,e.count-2)}},lr=class{constructor(){this.encoder=new nn,this.s=0,this.count=0,this.diff=0}write(t){this.diff===t-this.s?(this.s=t,this.count++):(Vp(this),this.count=1,this.diff=t-this.s,this.s=t)}toUint8Array(){return Vp(this),oA(this.encoder)}},hI=class{constructor(){this.sarr=[],this.s="",this.lensE=new on}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 nn;return this.sarr.push(this.s),this.s="",rn(t,this.sarr.join("")),Po(t,this.lensE.toUint8Array()),oA(t)}};var EA=e=>new Error(e),sA=()=>{throw EA("Method unimplemented")},aA=()=>{throw EA("Unexpected case")};var Tp=EA("Unexpected end of array"),_p=EA("Integer out of Range"),gr=class{constructor(t){this.arr=t,this.pos=0}},cn=e=>new gr(e),Xp=e=>e.pos!==e.arr.length;var QS=(e,t)=>{let A=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,t);return e.pos+=t,A},yt=e=>QS(e,X(e));var sn=e=>e.arr[e.pos++];var X=e=>{let t=0,A=1,i=e.arr.length;for(;e.posGu)throw _p}throw Tp},yI=e=>{let t=e.arr[e.pos++],A=t&63,i=64,n=(t&64)>0?-1:1;if(!(t&128))return n*A;let r=e.arr.length;for(;e.posGu)throw _p}throw Tp};var hS=e=>{let t=X(e);if(t===0)return"";{let A=String.fromCodePoint(sn(e));if(--t<100)for(;t--;)A+=String.fromCodePoint(sn(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))}},pS=e=>sr.decode(yt(e)),an=sr?pS:hS;var Ju=(e,t)=>{let A=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,t);return e.pos+=t,A},ES=e=>Ju(e,4).getFloat32(0,!1),mS=e=>Ju(e,8).getFloat64(0,!1),yS=e=>Ju(e,8).getBigInt64(0,!1);var wS=[e=>{},e=>null,yI,ES,mS,yS,e=>!1,e=>!0,an,e=>{let t=X(e),A={};for(let i=0;i{let t=X(e),A=[];for(let i=0;iwS[127-sn(e)](e),Vo=class extends gr{constructor(t,A){super(t),this.reader=A,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),Xp(this)?this.count=X(this)+1:this.count=-1),this.count--,this.s}};var In=class extends gr{constructor(t){super(t),this.s=0,this.count=0}read(){if(this.count===0){this.s=yI(this);let t=CI(this.s);this.count=1,t&&(this.s=-this.s,this.count=X(this)+2)}return this.count--,this.s}};var fr=class extends gr{constructor(t){super(t),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){let t=yI(this),A=t&1;this.diff=Yt(t/2),this.count=1,A&&(this.count=X(this)+2)}return this.s+=this.diff,this.count--,this.s}},mI=class{constructor(t){this.decoder=new In(t),this.str=an(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 kM=crypto.subtle,Zp=crypto.getRandomValues.bind(crypto);var qu=()=>Zp(new Uint32Array(1))[0];var DS="10000000-1000-4000-8000"+-1e11,Wp=()=>DS.replace(/[018]/g,e=>(e^qu()&15>>e/4).toString(16));var jp=Date.now;var Ku=e=>new Promise(e);var NM=Promise.all.bind(Promise);var bu=e=>e===void 0?null:e;var Ou=class{constructor(){this.map=new Map}setItem(t,A){this.map.set(t,A)}getItem(t){return this.map.get(t)}},$p=new Ou,xS=!0;try{typeof localStorage<"u"&&localStorage&&($p=localStorage,xS=!1)}catch{}var eE=$p;var AE=Object.assign,HS=Object.keys,iE=(e,t)=>{for(let A in e)t(e[A],A)};var tE=e=>HS(e).length;var nE=e=>{for(let t in e)return!1;return!0},MS=(e,t)=>{for(let A in e)if(!t(e[A],A))return!1;return!0},vS=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),rE=(e,t)=>e===t||tE(e)===tE(t)&&MS(e,(A,i)=>(A!==void 0||vS(t,i))&&t[i]===A);var zo=(e,t,A=0)=>{try{for(;Ae;var sE=(e,t)=>t.includes(e);var To=typeof process<"u"&&process.release&&/node|io\.js/.test(process.release.name)&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]";var xM=typeof navigator<"u"?/Mac/.test(navigator.platform):!1,mA,JS=[],qS=()=>{if(mA===void 0)if(To){mA=lt();let e=process.argv,t=null;for(let A=0;A{if(e.length!==0){let[t,A]=e.split("=");mA.set(`--${Hu(t,"-")}`,A),mA.set(`-${Hu(t,"-")}`,A)}})):mA=lt();return mA},Lu=e=>qS().has(e);var Yu=e=>To?bu(process.env[e.toUpperCase()]):bu(eE.getItem(e));var KS=e=>Lu("--"+e)||Yu(e)!==null,GM=KS("production"),IE=To&&sE(process.env.FORCE_COLOR,["true","1","2"]),cE=!Lu("no-colors")&&(!To||process.stdout.isTTY||IE)&&(!To||Lu("color")||IE||Yu("COLORTERM")!==null||(Yu("TERM")||"").includes("color"));var OS=e=>new Uint8Array(e);var lE=e=>{let t=OS(e.byteLength);return t.set(e),t};var Pu=class{constructor(t,A){this.left=t,this.right=A}},yA=(e,t)=>new Pu(e,t);var ln=typeof document<"u"?document:{};var HM=typeof DOMParser<"u"?new DOMParser:null;var gE=e=>Rp(e,(t,A)=>`${A}:${t};`).join("");var MM=ln.ELEMENT_NODE,vM=ln.TEXT_NODE,RM=ln.CDATA_SECTION_NODE,JM=ln.COMMENT_NODE,qM=ln.DOCUMENT_NODE,KM=ln.DOCUMENT_TYPE_NODE,bM=ln.DOCUMENT_FRAGMENT_NODE;var wA=Symbol;var _o=wA(),Xo=wA(),Vu=wA(),zu=wA(),Tu=wA(),Zo=wA(),_u=wA(),Wo=wA(),Xu=wA(),uE=e=>{let t=[],A=[],i=0;for(;i{let t=[],A=[],i=lt(),n=[],r=0;for(;r0||a.length>0?(t.push("%c"+o),A.push(a)):t.push(o)}else break}for(r>0&&(n=A,n.unshift(t.join("")));r{console.log(...XS(e)),ZS.forEach(t=>t.print(e))};var ZS=PA();var BE=e=>({[Symbol.iterator](){return this},next:e}),dE=(e,t)=>BE(()=>{let A;do A=e.next();while(!A.done&&!t(A.value));return A}),wI=(e,t)=>BE(()=>{let{done:A,value:i}=e.next();return{done:A,value:A?void 0:t(i)}});var $o=class{constructor(t,A){this.clock=t,this.len=A}},gn=class{constructor(){this.clients=new Map}},NE=(e,t,A)=>t.clients.forEach((i,n)=>{let r=e.doc.store.clients.get(n);for(let o=0;o{let A=0,i=e.length-1;for(;A<=i;){let n=Yt((A+i)/2),r=e[n],o=r.clock;if(o<=t){if(t{let A=e.clients.get(t.client);return A!==void 0&&tU(A,t.clock)!==null},ff=e=>{e.clients.forEach(t=>{t.sort((n,r)=>n.clock-r.clock);let A,i;for(A=1,i=1;A=r.clock?n.len=VA(n.len,r.clock+r.len-n.clock):(i{let t=new gn;for(let A=0;A{if(!t.clients.has(n)){let r=i.slice();for(let o=A+1;o{hA(e.clients,t,()=>[]).push(new $o(A,i))},GE=()=>new gn,iU=e=>{let t=GE();return e.clients.forEach((A,i)=>{let n=[];for(let r=0;r0&&t.clients.set(i,n)}),t},hr=(e,t)=>{W(e.restEncoder,t.clients.size),pA(t.clients.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{e.resetDsCurVal(),W(e.restEncoder,A);let n=i.length;W(e.restEncoder,n);for(let r=0;r{let t=new gn,A=X(e.restDecoder);for(let i=0;i0){let o=hA(t.clients,n,()=>[]);for(let s=0;s{let i=new gn,n=X(e.restDecoder);for(let r=0;r0){let r=new zA;return W(r.restEncoder,0),hr(r,i),r.toUint8Array()}return null};var HE=qu,es=class e extends BI{constructor({guid:t=Wp(),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=HE(),this.guid=t,this.collectionid=A,this.share=new Map,this.store=new vI,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=s,this.autoLoad=o,this.meta=r,this.isLoaded=!1,this.isSynced=!1,this.whenLoaded=Ku(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});let a=()=>Ku(c=>{let I=l=>{(l===void 0||l===!0)&&(this.off("sync",I),c())};this.on("sync",I)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=a()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[])}),this.whenSynced=a()}load(){let t=this._item;t!==null&&!this.shouldLoad&&de(t.parent.doc,A=>{A.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(pA(this.subdocs).map(t=>t.guid))}transact(t,A=null){return de(this,t,A)}get(t,A=Re){let i=hA(this.share,t,()=>{let r=new A;return r._integrate(this,null),r}),n=i.constructor;if(A!==Re&&n!==A)if(n===Re){let r=new A;r._map=i._map,i._map.forEach(o=>{for(;o!==null;o=o.left)o.parent=r}),r._start=i._start;for(let o=r._start;o!==null;o=o.right)o.parent=r;return r._length=i._length,this.share.set(t,r),r._integrate(this,null),r}else throw new Error(`Type with the name ${t} has already been defined with a different constructor`);return i}getArray(t=""){return this.get(t,KI)}getText(t=""){return this.get(t,ss)}getMap(t=""){return this.get(t,rs)}getXmlFragment(t=""){return this.get(t,Cr)}toJSON(){let t={};return this.share.forEach((A,i)=>{t[i]=A.toJSON()}),t}destroy(){pA(this.subdocs).forEach(A=>A.destroy());let t=this._item;if(t!==null){this._item=null;let A=t.content;A.doc=new e({guid:this.guid,...A.opts,shouldLoad:!1}),A.doc._item=t,de(t.parent.doc,i=>{let n=A.doc;t.deleted||i.subdocsAdded.add(n),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}on(t,A){super.on(t,A)}off(t,A){super.off(t,A)}},xI=class{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return X(this.restDecoder)}readDsLen(){return X(this.restDecoder)}},GI=class extends xI{readLeftID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readRightID(){return Ae(X(this.restDecoder),X(this.restDecoder))}readClient(){return X(this.restDecoder)}readInfo(){return sn(this.restDecoder)}readString(){return an(this.restDecoder)}readParentInfo(){return X(this.restDecoder)===1}readTypeRef(){return X(this.restDecoder)}readLen(){return X(this.restDecoder)}readAny(){return ur(this.restDecoder)}readBuf(){return lE(yt(this.restDecoder))}readJSON(){return JSON.parse(an(this.restDecoder))}readKey(){return an(this.restDecoder)}},ju=class{constructor(t){this.dsCurrVal=0,this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=X(this.restDecoder),this.dsCurrVal}readDsLen(){let t=X(this.restDecoder)+1;return this.dsCurrVal+=t,t}},Ui=class extends ju{constructor(t){super(t),this.keys=[],X(t),this.keyClockDecoder=new fr(yt(t)),this.clientDecoder=new In(yt(t)),this.leftClockDecoder=new fr(yt(t)),this.rightClockDecoder=new fr(yt(t)),this.infoDecoder=new Vo(yt(t),sn),this.stringDecoder=new mI(yt(t)),this.parentInfoDecoder=new Vo(yt(t),sn),this.typeRefDecoder=new In(yt(t)),this.lenDecoder=new In(yt(t))}readLeftID(){return new Si(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new Si(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 ur(this.restDecoder)}readBuf(){return yt(this.restDecoder)}readJSON(){return ur(this.restDecoder)}readKey(){let t=this.keyClockDecoder.read();if(t{i=VA(i,t[0].id.clock);let n=FA(t,i);W(e.restEncoder,t.length-n),e.writeClient(A),W(e.restEncoder,i);let r=t[n];r.write(e,i-r.id.clock);for(let o=n+1;o{let i=new Map;A.forEach((n,r)=>{Le(t,r)>n&&i.set(r,n)}),YI(t).forEach((n,r)=>{A.has(r)||i.set(r,0)}),W(e.restEncoder,i.size),pA(i.entries()).sort((n,r)=>r[0]-n[0]).forEach(([n,r])=>{nU(e,t.clients.get(n),n,r)})},rU=(e,t)=>{let A=lt(),i=X(e.restDecoder);for(let n=0;n{let i=[],n=pA(A.keys()).sort((g,f)=>g-f);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 vI,a=new Map,c=(g,f)=>{let C=a.get(g);(C==null||C>f)&&a.set(g,f)},I=o.refs[o.i++],l=new Map,u=()=>{for(let g of i){let f=g.id.client,C=A.get(f);C?(C.i--,s.clients.set(f,C.refs.slice(C.i)),A.delete(f),C.i=0,C.refs=[]):s.clients.set(f,[g]),n=n.filter(D=>D!==f)}i.length=0};for(;;){if(I.constructor!==Ft){let f=hA(l,I.id.client,()=>Le(t,I.id.client))-I.id.clock;if(f<0)i.push(I),c(I.id.client,I.id.clock-1),u();else{let C=I.getMissing(e,t);if(C!==null){i.push(I);let D=A.get(C)||{refs:[],i:0};if(D.refs.length===D.i)c(C,Le(t,C)),u();else{I=D.refs[D.i++];continue}}else(f===0||f0)I=i.pop();else if(o!==null&&o.i0){let g=new zA;return df(g,s,new Map),W(g.restEncoder,0),{missing:a,update:g.toUint8Array()}}return null},sU=(e,t)=>df(e,t.doc.store,t.beforeState),aU=(e,t,A,i=new Ui(e))=>de(t,n=>{n.local=!1;let r=!1,o=n.doc,s=o.store,a=rU(i,o),c=oU(n,s,a),I=s.pendingStructs;if(I){for(let[u,g]of I.missing)if(gg)&&I.missing.set(u,g)}I.update=RI([I.update,c.update])}}else s.pendingStructs=c;let l=hE(i,n,s);if(s.pendingDs){let u=new Ui(cn(s.pendingDs));X(u.restDecoder);let g=hE(u,n,s);l&&g?s.pendingDs=RI([l,g]):s.pendingDs=l||g}else s.pendingDs=l;if(r){let u=s.pendingStructs.update;s.pendingStructs=null,ME(n.doc,u)}},A,!1);var ME=(e,t,A,i=Ui)=>{let n=cn(t);aU(n,e,A,new i(n))},vE=(e,t,A)=>ME(e,t,A,GI),IU=(e,t,A=new Map)=>{df(e,t.store,A),hr(e,iU(t.store))},cU=(e,t=new Uint8Array([0]),A=new zA)=>{let i=JE(t);IU(A,e,i);let n=[A.toUint8Array()];if(e.store.pendingDs&&n.push(e.store.pendingDs),e.store.pendingStructs&&n.push(yU(e.store.pendingStructs.update,t)),n.length>1){if(A.constructor===un)return EU(n.map((r,o)=>o===0?r:FU(r)));if(A.constructor===zA)return RI(n)}return n[0]},RE=(e,t)=>cU(e,t,new un),lU=e=>{let t=new Map,A=X(e.restDecoder);for(let i=0;ilU(new xI(cn(e))),qE=(e,t)=>(W(e.restEncoder,t.size),pA(t.entries()).sort((A,i)=>i[0]-A[0]).forEach(([A,i])=>{W(e.restEncoder,A),W(e.restEncoder,i)}),e),gU=(e,t)=>qE(e,YI(t.store)),uU=(e,t=new MI)=>(e instanceof Map?qE(t,e):gU(t,e),t.toUint8Array()),KE=e=>uU(e,new HI),$u=class{constructor(){this.l=[]}},pE=()=>new $u,EE=(e,t)=>e.l.push(t),mE=(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.")},bE=(e,t,A)=>zo(e.l,[t,A]),Si=class{constructor(t,A){this.client=t,this.clock=A}},FI=(e,t)=>e===t||e!==null&&t!==null&&e.client===t.client&&e.clock===t.clock,Ae=(e,t)=>new Si(e,t);var fU=e=>{for(let[t,A]of e.doc.share.entries())if(A===e)return t;throw aA()};var ef=class{constructor(t,A){this.ds=t,this.sv=A}};var BU=(e,t)=>new ef(e,t),ev=BU(GE(),new Map);var Br=(e,t)=>t===void 0?!e.deleted:t.sv.has(e.id.client)&&(t.sv.get(e.id.client)||0)>e.id.clock&&!xE(t.ds,e.id),tf=(e,t)=>{let A=hA(e.meta,tf,PA),i=e.doc.store;A.has(t)||(t.sv.forEach((n,r)=>{n{}),A.add(t))};var vI=class{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}},YI=e=>{let t=new Map;return e.clients.forEach((A,i)=>{let n=A[A.length-1];t.set(i,n.id.clock+n.length)}),t},Le=(e,t)=>{let A=e.clients.get(t);if(A===void 0)return 0;let i=A[A.length-1];return i.id.clock+i.length},OE=(e,t)=>{let A=e.clients.get(t.id.client);if(A===void 0)A=[],e.clients.set(t.id.client,A);else{let i=A[A.length-1];if(i.id.clock+i.length!==t.id.clock)throw aA()}A.push(t)},FA=(e,t)=>{let A=0,i=e.length-1,n=e[i],r=n.id.clock;if(r===t)return i;let o=Yt(t/(r+n.length-1)*i);for(;A<=i;){if(n=e[o],r=n.id.clock,r<=t){if(t{let A=e.clients.get(t.client);return A[FA(A,t.clock)]},Zu=dU,Af=(e,t,A)=>{let i=FA(t,A),n=t[i];return n.id.clock{let A=e.doc.store.clients.get(t.client);return A[Af(e,A,t.clock)]},yE=(e,t,A)=>{let i=t.clients.get(A.client),n=FA(i,A.clock),r=i[n];return A.clock!==r.id.clock+r.length-1&&r.constructor!==wt&&i.splice(n+1,0,LI(e,r,A.clock-r.id.clock+1)),r},CU=(e,t,A)=>{let i=e.clients.get(t.id.client);i[FA(i,t.id.clock)]=A},LE=(e,t,A,i,n)=>{if(i===0)return;let r=A+i,o=Af(e,t,A),s;do s=t[o++],rt.deleteSet.clients.size===0&&!Jp(t.afterState,(A,i)=>t.beforeState.get(i)!==A)?!1:(ff(t.deleteSet),sU(e,t),hr(e,t.deleteSet),!0),FE=(e,t,A)=>{let i=t._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&hA(e.changed,t,PA).add(A)},SI=(e,t)=>{let A=e[t],i=e[t-1],n=t;for(;n>0;A=i,i=e[--n-1]){if(i.deleted===A.deleted&&i.constructor===A.constructor&&i.mergeWith(A)){A instanceof Ye&&A.parentSub!==null&&A.parent._map.get(A.parentSub)===A&&A.parent._map.set(A.parentSub,i);continue}break}let r=t-n;return r&&e.splice(t+1-r,r),r},QU=(e,t,A)=>{for(let[i,n]of e.clients.entries()){let r=t.clients.get(i);for(let o=n.length-1;o>=0;o--){let s=n[o],a=s.clock+s.len;for(let c=FA(r,s.clock),I=r[c];c{e.clients.forEach((A,i)=>{let n=t.clients.get(i);for(let r=A.length-1;r>=0;r--){let o=A[r],s=dI(n.length-1,1+FA(n,o.clock+o.len-1));for(let a=s,c=n[a];a>0&&c.id.clock>=o.clock;c=n[a])a-=1+SI(n,a)}})};var YE=(e,t)=>{if(ts.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(A,a)})),s.push(()=>{A.changedParentTypes.forEach((a,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(a=a.filter(I=>I.target._item===null||!I.target._item.deleted),a.forEach(I=>{I.currentTarget=c,I._path=null}),a.sort((I,l)=>I.path.length-l.path.length),bE(c._dEH,a,A))})}),s.push(()=>i.emit("afterTransaction",[A,i])),zo(s,[]),A._needFormattingCleanup&&RU(A)}finally{i.gc&&QU(r,n,i.gcFilter),hU(r,n),A.afterState.forEach((I,l)=>{let u=A.beforeState.get(l)||0;if(u!==I){let g=n.clients.get(l),f=VA(FA(g,u),1);for(let C=g.length-1;C>=f;)C-=1+SI(g,C)}});for(let I=o.length-1;I>=0;I--){let{client:l,clock:u}=o[I].id,g=n.clients.get(l),f=FA(g,u);f+11||f>0&&SI(g,f)}if(!A.local&&A.afterState.get(i.clientID)!==A.beforeState.get(i.clientID)&&(fE(Wo,_o,"[yjs] ",Xo,Zo,"Changed the client-id because another client seems to be using it."),i.clientID=HE()),i.emit("afterTransactionCleanup",[A,i]),i._observers.has("update")){let I=new un;wE(I,A)&&i.emit("update",[I.toUint8Array(),A.origin,i,A])}if(i._observers.has("updateV2")){let I=new zA;wE(I,A)&&i.emit("updateV2",[I.toUint8Array(),A.origin,i,A])}let{subdocsAdded:s,subdocsLoaded:a,subdocsRemoved:c}=A;(s.size>0||c.size>0||a.size>0)&&(s.forEach(I=>{I.clientID=i.clientID,I.collectionid==null&&(I.collectionid=i.collectionid),i.subdocs.add(I)}),c.forEach(I=>i.subdocs.delete(I)),i.emit("subdocs",[{loaded:a,added:s,removed:c},i,A]),c.forEach(I=>I.destroy())),e.length<=t+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):YE(e,t+1)}}},de=(e,t,A=null,i=!0)=>{let n=e._transactionCleanups,r=!1,o=null;e._transaction===null&&(r=!0,e._transaction=new nf(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&&YE(n,0)}}return o};function*pU(e){let t=X(e.restDecoder);for(let A=0;ARI(e,GI,un);var mU=(e,t)=>{if(e.constructor===wt){let{client:A,clock:i}=e.id;return new wt(Ae(A,i+t),e.length-t)}else if(e.constructor===Ft){let{client:A,clock:i}=e.id;return new Ft(Ae(A,i+t),e.length-t)}else{let A=e,{client:i,clock:n}=A.id;return new Ye(Ae(i,n+t),null,Ae(i,n+t-1),null,A.rightOrigin,A.parent,A.parentSub,A.content.splice(t))}},RI=(e,t=Ui,A=zA)=>{if(e.length===1)return e[0];let i=e.map(I=>new t(cn(I))),n=i.map(I=>new ts(I,!0)),r=null,o=new A,s=new As(o);for(;n=n.filter(u=>u.curr!==null),n.sort((u,g)=>{if(u.curr.id.client===g.curr.id.client){let f=u.curr.id.clock-g.curr.id.clock;return f===0?u.curr.constructor===g.curr.constructor?0:u.curr.constructor===Ft?1:-1:f}else return g.curr.id.client-u.curr.id.client}),n.length!==0;){let I=n[0],l=I.curr.id.client;if(r!==null){let u=I.curr,g=!1;for(;u!==null&&u.id.clock+u.length<=r.struct.id.clock+r.struct.length&&u.id.client>=r.struct.id.client;)u=I.next(),g=!0;if(u===null||u.id.client!==l||g&&u.id.clock>r.struct.id.clock+r.struct.length)continue;if(l!==r.struct.id.client)Di(s,r.struct,r.offset),r={struct:u,offset:0},I.next();else if(r.struct.id.clock+r.struct.length0&&(r.struct.constructor===Ft?r.struct.length-=f:u=mU(u,f)),r.struct.mergeWith(u)||(Di(s,r.struct,r.offset),r={struct:u,offset:0},I.next())}}else r={struct:I.curr,offset:0},I.next();for(let u=I.curr;u!==null&&u.id.client===l&&u.id.clock===r.struct.id.clock+r.struct.length&&u.constructor!==Ft;u=I.next())Di(s,r.struct,r.offset),r={struct:u,offset:0}}r!==null&&(Di(s,r.struct,r.offset),r=null),Cf(s);let a=i.map(I=>Bf(I)),c=AU(a);return hr(o,c),o.toUint8Array()},yU=(e,t,A=Ui,i=zA)=>{let n=JE(t),r=new i,o=new As(r),s=new A(cn(e)),a=new ts(s,!1);for(;a.curr;){let I=a.curr,l=I.id.client,u=n.get(l)||0;if(a.curr.constructor===Ft){a.next();continue}if(I.id.clock+I.length>u)for(Di(o,I,VA(u-I.id.clock,0)),a.next();a.curr&&a.curr.id.client===l;)Di(o,a.curr,0),a.next();else for(;a.curr&&a.curr.id.client===l&&a.curr.id.clock+a.curr.length<=u;)a.next()}Cf(o);let c=Bf(s);return hr(r,c),r.toUint8Array()};var PE=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:oA(e.encoder.restEncoder)}),e.encoder.restEncoder=Yo(),e.written=0)},Di=(e,t,A)=>{e.written>0&&e.currClient!==t.id.client&&PE(e),e.written===0&&(e.currClient=t.id.client,e.encoder.writeClient(t.id.client),W(e.encoder.restEncoder,t.id.clock+A)),t.write(e.encoder,A),e.written++},Cf=e=>{PE(e);let t=e.encoder.restEncoder;W(t,e.clientStructs.length);for(let A=0;A{let n=new A(cn(e)),r=new ts(n,!1),o=new i,s=new As(o);for(let c=r.curr;c!==null;c=r.next())Di(s,t(c),0);Cf(s);let a=Bf(n);return hr(o,a),o.toUint8Array()};var FU=e=>wU(e,oE,Ui,un),DE="You must not compute changes after the event-handler fired.",dr=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=DU(this.currentTarget,this.target))}deletes(t){return xE(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(DE);let t=new Map,A=this.target;this.transaction.changed.get(A).forEach(n=>{if(n!==null){let r=A._map.get(n),o,s;if(this.adds(r)){let a=r.left;for(;a!==null&&this.adds(a);)a=a.left;if(this.deletes(r))if(a!==null&&this.deletes(a))o="delete",s=fI(a.content.getContent());else return;else a!==null&&this.deletes(a)?(o="update",s=fI(a.content.getContent())):(o="add",s=void 0)}else if(this.deletes(r))o="delete",s=fI(r.content.getContent());else return;t.set(n,{action:o,oldValue:s})}}),this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){if(this.transaction.doc._transactionCleanups.length===0)throw EA(DE);let A=this.target,i=PA(),n=PA(),r=[];if(t={added:i,deleted:n,delta:r,keys:this.keys},this.transaction.changed.get(A).has(null)){let s=null,a=()=>{s&&r.push(s)};for(let c=A._start;c!==null;c=c.right)c.deleted?this.deletes(c)&&!this.adds(c)&&((s===null||s.delete===void 0)&&(a(),s={delete:0}),s.delete+=c.length,n.add(c)):this.adds(c)?((s===null||s.insert===void 0)&&(a(),s={insert:[]}),s.insert=s.insert.concat(c.content.getContent()),i.add(c)):((s===null||s.retain===void 0)&&(a(),s={retain:0}),s.retain+=c.length);s!==null&&s.retain===void 0&&a()}this._changes=t}return t}},DU=(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},VE=80,Qf=0,rf=class{constructor(t,A){t.marker=!0,this.p=t,this.index=A,this.timestamp=Qf++}},kU=e=>{e.timestamp=Qf++},zE=(e,t,A)=>{e.p.marker=!1,e.p=t,t.marker=!0,e.index=A,e.timestamp=Qf++},SU=(e,t,A)=>{if(e.length>=VE){let i=e.reduce((n,r)=>n.timestamp{if(e._start===null||t===0||e._searchMarker===null)return null;let A=e._searchMarker.length===0?null:e._searchMarker.reduce((r,o)=>or(t-r.index)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&&or(A.index-n){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}(t0&&t===n.index)&&(n.index=VA(t,n.index+A))}};var VI=(e,t,A)=>{let i=e,n=t.changedParentTypes;for(;hA(n,e,()=>[]).push(A),e._item!==null;)e=e._item.parent;bE(i._eH,A,t)},Re=class{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=pE(),this._dEH=pE(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,A){this.doc=t,this._item=A}_copy(){throw sA()}clone(){throw sA()}_write(t){}get _first(){let t=this._start;for(;t!==null&&t.deleted;)t=t.right;return t}_callObserver(t,A){!t.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(t){EE(this._eH,t)}observeDeep(t){EE(this._dEH,t)}unobserve(t){mE(this._eH,t)}unobserveDeep(t){mE(this._dEH,t)}toJSON(){}},TE=(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;s0;s++)n.push(o[s]),i--;t=0}}r=r.right}return n},_E=e=>{let t=[],A=e._start;for(;A!==null;){if(A.countable&&!A.deleted){let i=A.content.getContent();for(let n=0;n{let A=0,i=e._start;for(;i!==null;){if(i.countable&&!i.deleted){let n=i.content.getContent();for(let r=0;r{let A=[];return ns(e,(i,n)=>{A.push(t(i,n,e))}),A},UU=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}}}},ZE=(e,t)=>{let A=PI(e,t),i=e._start;for(A!==null&&(i=A.p,t-=A.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(t{let n=A,r=e.doc,o=r.clientID,s=r.store,a=A===null?t._start:A.right,c=[],I=()=>{c.length>0&&(n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new Qr(c)),n.integrate(e,0),c=[])};i.forEach(l=>{if(l===null)c.push(l);else switch(l.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(l);break;default:switch(I(),l.constructor){case Uint8Array:case ArrayBuffer:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new Is(new Uint8Array(l))),n.integrate(e,0);break;case es:n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new cs(l)),n.integrate(e,0);break;default:if(l instanceof Re)n=new Ye(Ae(o,Le(s,o)),n,n&&n.lastId,a,a&&a.id,t,null,new _A(l)),n.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),I()},WE=()=>EA("Length exceeded!"),jE=(e,t,A,i)=>{if(A>t._length)throw WE();if(A===0)return t._searchMarker&&is(t._searchMarker,A,i.length),JI(e,t,null,i);let n=A,r=PI(t,A),o=t._start;for(r!==null&&(o=r.p,A-=r.index,A===0&&(o=o.prev,A+=o&&o.countable&&!o.deleted?o.length:0));o!==null;o=o.right)if(!o.deleted&&o.countable){if(A<=o.length){A{let n=(t._searchMarker||[]).reduce((r,o)=>o.index>r.index?o:r,{index:0,p:t._start}).p;if(n)for(;n.right;)n=n.right;return JI(e,t,n,A)},$E=(e,t,A,i)=>{if(i===0)return;let n=A,r=i,o=PI(t,A),s=t._start;for(o!==null&&(s=o.p,A-=o.index);s!==null&&A>0;s=s.right)!s.deleted&&s.countable&&(A0&&s!==null;)s.deleted||(i0)throw WE();t._searchMarker&&is(t._searchMarker,n,-r+i)},qI=(e,t,A)=>{let i=t._map.get(A);i!==void 0&&i.delete(e)},hf=(e,t,A,i)=>{let n=t._map.get(A)||null,r=e.doc,o=r.clientID,s;if(i==null)s=new Qr([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:s=new Qr([i]);break;case Uint8Array:s=new Is(i);break;case es:s=new cs(i);break;default:if(i instanceof Re)s=new _A(i);else throw new Error("Unexpected content type")}new Ye(Ae(o,Le(r.store,o)),n,n&&n.lastId,null,null,t,A,s).integrate(e,0)},pf=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted?A.content.getContent()[A.length-1]:void 0},em=e=>{let t={};return e._map.forEach((A,i)=>{A.deleted||(t[i]=A.content.getContent()[A.length-1])}),t},tm=(e,t)=>{let A=e._map.get(t);return A!==void 0&&!A.deleted};var xU=(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&&Br(r,t)&&(A[n]=r.content.getContent()[r.length-1])}),A},DI=e=>dE(e.entries(),t=>!t[1].deleted),of=class extends dr{constructor(t,A){super(t,A),this._transaction=A}},KI=class e extends Re{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(t){let A=new e;return A.push(t),A}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,A){super._callObserver(t,A),VI(this,t,new of(this,t))}insert(t,A){this.doc!==null?de(this.doc,i=>{jE(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}push(t){this.doc!==null?de(this.doc,A=>{NU(A,this,t)}):this._prelimContent.push(...t)}unshift(t){this.insert(0,t)}delete(t,A=1){this.doc!==null?de(this.doc,i=>{$E(i,this,t,A)}):this._prelimContent.splice(t,A)}get(t){return ZE(this,t)}toArray(){return _E(this)}slice(t=0,A=this.length){return TE(this,t,A)}toJSON(){return this.map(t=>t instanceof Re?t.toJSON():t)}map(t){return XE(this,t)}forEach(t){ns(this,t)}[Symbol.iterator](){return UU(this)}_write(t){t.writeTypeRef(jU)}},GU=e=>new KI,sf=class extends dr{constructor(t,A,i){super(t,A),this.keysChanged=i}},rs=class e extends Re{constructor(t){super(),this._prelimContent=null,t===void 0?this._prelimContent=new Map:this._prelimContent=new Map(t)}_integrate(t,A){super._integrate(t,A),this._prelimContent.forEach((i,n)=>{this.set(n,i)}),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return this.forEach((A,i)=>{t.set(i,A instanceof Re?A.clone():A)}),t}_callObserver(t,A){VI(this,t,new sf(this,t,A))}toJSON(){let t={};return this._map.forEach((A,i)=>{if(!A.deleted){let n=A.content.getContent()[A.length-1];t[i]=n instanceof Re?n.toJSON():n}}),t}get size(){return[...DI(this._map)].length}keys(){return wI(DI(this._map),t=>t[0])}values(){return wI(DI(this._map),t=>t[1].content.getContent()[t[1].length-1])}entries(){return wI(DI(this._map),t=>[t[0],t[1].content.getContent()[t[1].length-1]])}forEach(t){this._map.forEach((A,i)=>{A.deleted||t(A.content.getContent()[A.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimContent.delete(t)}set(t,A){return this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._prelimContent.set(t,A),A}get(t){return pf(this,t)}has(t){return tm(this,t)}clear(){this.doc!==null?de(this.doc,t=>{this.forEach(function(A,i,n){qI(t,n,i)})}):this._prelimContent.clear()}_write(t){t.writeTypeRef($U)}},HU=e=>new rs,ki=(e,t)=>e===t||typeof e=="object"&&typeof t=="object"&&e&&t&&rE(e,t),os=class{constructor(t,A,i,n){this.left=t,this.right=A,this.index=i,this.currentAttributes=n}forward(){switch(this.right===null&&aA(),this.right.content.constructor){case Je:this.right.deleted||pr(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}},kE=(e,t,A)=>{for(;t.right!==null&&A>0;){switch(t.right.content.constructor){case Je:t.right.deleted||pr(t.currentAttributes,t.right.content);break;default:t.right.deleted||(A{let i=new Map,n=PI(t,A);if(n){let r=new os(n.p.left,n.p,n.index,i);return kE(e,r,A-n.index)}else{let r=new os(null,t._start,0,i);return kE(e,r,A)}},Am=(e,t,A,i)=>{for(;A.right!==null&&(A.right.deleted===!0||A.right.content.constructor===Je&&ki(i.get(A.right.content.key),A.right.content.value));)A.right.deleted||i.delete(A.right.content.key),A.forward();let n=e.doc,r=n.clientID;i.forEach((o,s)=>{let a=A.left,c=A.right,I=new Ye(Ae(r,Le(n.store,r)),a,a&&a.lastId,c,c&&c.id,t,null,new Je(s,o));I.integrate(e,0),A.right=I,A.forward()})},pr=(e,t)=>{let{key:A,value:i}=t;i===null?e.delete(A):e.set(A,i)},im=(e,t)=>{for(;e.right!==null;){if(!(e.right.deleted||e.right.content.constructor===Je&&ki(t[e.right.content.key]||null,e.right.content.value)))break;e.forward()}},nm=(e,t,A,i)=>{let n=e.doc,r=n.clientID,o=new Map;for(let s in i){let a=i[s],c=A.currentAttributes.get(s)||null;if(!ki(c,a)){o.set(s,c);let{left:I,right:l}=A;A.right=new Ye(Ae(r,Le(n.store,r)),I,I&&I.lastId,l,l&&l.id,t,null,new Je(s,a)),A.right.integrate(e,0),A.forward()}}return o},Wu=(e,t,A,i,n)=>{A.currentAttributes.forEach((u,g)=>{n[g]===void 0&&(n[g]=null)});let r=e.doc,o=r.clientID;im(A,n);let s=nm(e,t,A,n),a=i.constructor===String?new TA(i):i instanceof Re?new _A(i):new fn(i),{left:c,right:I,index:l}=A;t._searchMarker&&is(t._searchMarker,A.index,a.getLength()),I=new Ye(Ae(o,Le(r.store,o)),c,c&&c.lastId,I,I&&I.id,t,null,a),I.integrate(e,0),A.right=I,A.index=l,A.forward(),Am(e,t,A,s)},SE=(e,t,A,i,n)=>{let r=e.doc,o=r.clientID;im(A,n);let s=nm(e,t,A,n);e:for(;A.right!==null&&(i>0||s.size>0&&(A.right.deleted||A.right.content.constructor===Je));){if(!A.right.deleted)switch(A.right.content.constructor){case Je:{let{key:a,value:c}=A.right.content,I=n[a];if(I!==void 0){if(ki(I,c))s.delete(a);else{if(i===0)break e;s.set(a,c)}A.right.delete(e)}else A.currentAttributes.set(a,c);break}default:i0){let a="";for(;i>0;i--)a+=` +`;A.right=new Ye(Ae(o,Le(r.store,o)),A.left,A.left&&A.left.lastId,A.right,A.right&&A.right.id,t,null,new TA(a)),A.right.integrate(e,0),A.forward()}Am(e,t,A,s)},rm=(e,t,A,i,n)=>{let r=t,o=lt();for(;r&&(!r.countable||r.deleted);){if(!r.deleted&&r.content.constructor===Je){let c=r.content;o.set(c.key,c)}r=r.right}let s=0,a=!1;for(;t!==r;){if(A===t&&(a=!0),!t.deleted){let c=t.content;switch(c.constructor){case Je:{let{key:I,value:l}=c,u=i.get(I)||null;(o.get(I)!==c||u===l)&&(t.delete(e),s++,!a&&(n.get(I)||null)===l&&u!==l&&(u===null?n.delete(I):n.set(I,u))),!a&&!t.deleted&&pr(n,c);break}}}t=t.right}return s},MU=(e,t)=>{for(;t&&t.right&&(t.right.deleted||!t.right.countable);)t=t.right;let A=new Set;for(;t&&(t.deleted||!t.countable);){if(!t.deleted&&t.content.constructor===Je){let i=t.content.key;A.has(i)?t.delete(e):A.add(i)}t=t.left}},vU=e=>{let t=0;return de(e.doc,A=>{let i=e._start,n=e._start,r=lt(),o=uI(r);for(;n;){if(n.deleted===!1)switch(n.content.constructor){case Je:pr(o,n.content);break;default:t+=rm(A,i,n,r,o),r=uI(o),i=n;break}n=n.right}}),t},RU=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&&LE(e,A.store.clients.get(i),r,n,o=>{!o.deleted&&o.content.constructor===Je&&o.constructor!==wt&&t.add(o.parent)})}de(A,i=>{NE(e,e.deleteSet,n=>{if(n instanceof wt||!n.parent._hasFormatting||t.has(n.parent))return;let r=n.parent;n.content.constructor===Je?t.add(r):MU(i,n)});for(let n of t)vU(n)})},UE=(e,t,A)=>{let i=A,n=uI(t.currentAttributes),r=t.right;for(;A>0&&t.right!==null;){if(t.right.deleted===!1)switch(t.right.content.constructor){case _A:case fn:case TA:A{n===null?this.childListChanged=!0:this.keysChanged.add(n)})}get changes(){if(this._changes===null){let t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){let t=this.target.doc,A=[];de(t,i=>{let n=new Map,r=new Map,o=this.target._start,s=null,a={},c="",I=0,l=0,u=()=>{if(s!==null){let g=null;switch(s){case"delete":l>0&&(g={delete:l}),l=0;break;case"insert":(typeof c=="object"||c.length>0)&&(g={insert:c},n.size>0&&(g.attributes={},n.forEach((f,C)=>{f!==null&&(g.attributes[C]=f)}))),c="";break;case"retain":I>0&&(g={retain:I},nE(a)||(g.attributes=AE({},a))),I=0;break}g&&A.push(g),s=null}};for(;o!==null;){switch(o.content.constructor){case _A:case fn:this.adds(o)?this.deletes(o)||(u(),s="insert",c=o.content.getContent()[0],u()):this.deletes(o)?(s!=="delete"&&(u(),s="delete"),l+=1):o.deleted||(s!=="retain"&&(u(),s="retain"),I+=1);break;case TA:this.adds(o)?this.deletes(o)||(s!=="insert"&&(u(),s="insert"),c+=o.content.str):this.deletes(o)?(s!=="delete"&&(u(),s="delete"),l+=o.length):o.deleted||(s!=="retain"&&(u(),s="retain"),I+=o.length);break;case Je:{let{key:g,value:f}=o.content;if(this.adds(o)){if(!this.deletes(o)){let C=n.get(g)||null;ki(C,f)?f!==null&&o.delete(i):(s==="retain"&&u(),ki(f,r.get(g)||null)?delete a[g]:a[g]=f)}}else if(this.deletes(o)){r.set(g,f);let C=n.get(g)||null;ki(C,f)||(s==="retain"&&u(),a[g]=C)}else if(!o.deleted){r.set(g,f);let C=a[g];C!==void 0&&(ki(C,f)?C!==null&&o.delete(i):(s==="retain"&&u(),f===null?delete a[g]:a[g]=f))}o.deleted||(s==="insert"&&u(),pr(n,o.content));break}}o=o.right}for(u();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}},ss=class e extends Re{constructor(t){super(),this._pending=t!==void 0?[()=>this.insert(0,t)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this._length}_integrate(t,A){super._integrate(t,A);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new e}clone(){let t=new e;return t.applyDelta(this.toDelta()),t}_callObserver(t,A){super._callObserver(t,A);let i=new af(this,t,A);VI(this,t,i),!t.local&&this._hasFormatting&&(t._needFormattingCleanup=!0)}toString(){let t="",A=this._start;for(;A!==null;)!A.deleted&&A.countable&&A.content.constructor===TA&&(t+=A.content.str),A=A.right;return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:A=!0}={}){this.doc!==null?de(this.doc,i=>{let n=new os(null,this._start,0,new Map);for(let r=0;r0)&&Wu(i,this,n,s,o.attributes||{})}else o.retain!==void 0?SE(i,this,n,o.retain,o.attributes||{}):o.delete!==void 0&&UE(i,n,o.delete)}}):this._pending.push(()=>this.applyDelta(t))}toDelta(t,A,i){let n=[],r=new Map,o=this.doc,s="",a=this._start;function c(){if(s.length>0){let l={},u=!1;r.forEach((f,C)=>{u=!0,l[C]=f});let g={insert:s};u&&(g.attributes=l),n.push(g),s=""}}let I=()=>{for(;a!==null;){if(Br(a,t)||A!==void 0&&Br(a,A))switch(a.content.constructor){case TA:{let l=r.get("ychange");t!==void 0&&!Br(a,t)?(l===void 0||l.user!==a.id.client||l.type!=="removed")&&(c(),r.set("ychange",i?i("removed",a.id):{type:"removed"})):A!==void 0&&!Br(a,A)?(l===void 0||l.user!==a.id.client||l.type!=="added")&&(c(),r.set("ychange",i?i("added",a.id):{type:"added"})):l!==void 0&&(c(),r.delete("ychange")),s+=a.content.str;break}case _A:case fn:{c();let l={insert:a.content.getContent()[0]};if(r.size>0){let u={};l.attributes=u,r.forEach((g,f)=>{u[f]=g})}n.push(l);break}case Je:Br(a,t)&&(c(),pr(r,a.content));break}a=a.right}c()};return t||A?de(o,l=>{t&&tf(l,t),A&&tf(l,A),I()},"cleanup"):I(),n}insert(t,A,i){if(A.length<=0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);i||(i={},o.currentAttributes.forEach((s,a)=>{i[a]=s})),Wu(r,this,o,A,i)}):this._pending.push(()=>this.insert(t,A,i))}insertEmbed(t,A,i={}){let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);Wu(r,this,o,A,i)}):this._pending.push(()=>this.insertEmbed(t,A,i))}delete(t,A){if(A===0)return;let i=this.doc;i!==null?de(i,n=>{UE(n,kI(n,this,t),A)}):this._pending.push(()=>this.delete(t,A))}format(t,A,i){if(A===0)return;let n=this.doc;n!==null?de(n,r=>{let o=kI(r,this,t);o.right!==null&&SE(r,this,o,A,i)}):this._pending.push(()=>this.format(t,A,i))}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._pending.push(()=>this.removeAttribute(t))}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._pending.push(()=>this.setAttribute(t,A))}getAttribute(t){return pf(this,t)}getAttributes(){return em(this)}_write(t){t.writeTypeRef(eN)}},JU=e=>new ss,jo=class{constructor(t,A=()=>!0){this._filter=A,this._root=t,this._currentNode=t._start,this._firstCall=!0}[Symbol.iterator](){return this}next(){let t=this._currentNode,A=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(A)))do if(A=t.content.type,!t.deleted&&(A.constructor===bI||A.constructor===Cr)&&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})}},Cr=class e extends Re{constructor(){super(),this._prelimContent=[]}get firstChild(){let t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,A){super._integrate(t,A),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new e}clone(){let t=new e;return t.insert(0,this.toArray().map(A=>A instanceof Re?A.clone():A)),t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new jo(this,t)}querySelector(t){t=t.toUpperCase();let i=new jo(this,n=>n.nodeName&&n.nodeName.toUpperCase()===t).next();return i.done?null:i.value}querySelectorAll(t){return t=t.toUpperCase(),pA(new jo(this,A=>A.nodeName&&A.nodeName.toUpperCase()===t))}_callObserver(t,A){VI(this,t,new If(this,A,t))}toString(){return XE(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),ns(this,r=>{n.insertBefore(r.toDOM(t,A,i),null)}),n}insert(t,A){this.doc!==null?de(this.doc,i=>{jE(i,this,t,A)}):this._prelimContent.splice(t,0,...A)}insertAfter(t,A){if(this.doc!==null)de(this.doc,i=>{let n=t&&t instanceof Re?t._item:t;JI(i,this,n,A)});else{let i=this._prelimContent,n=t===null?0:i.findIndex(r=>r===t)+1;if(n===0&&t!==null)throw EA("Reference item not found");i.splice(n,0,...A)}}delete(t,A=1){this.doc!==null?de(this.doc,i=>{$E(i,this,t,A)}):this._prelimContent.splice(t,A)}toArray(){return _E(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return ZE(this,t)}slice(t=0,A=this.length){return TE(this,t,A)}forEach(t){ns(this,t)}_write(t){t.writeTypeRef(AN)}},qU=e=>new Cr,bI=class e extends Cr{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 iE(A,(i,n)=>{typeof i=="string"&&t.setAttribute(n,i)}),t.insert(0,this.toArray().map(i=>i instanceof Re?i.clone():i)),t}toString(){let t=this.getAttributes(),A=[],i=[];for(let s in t)i.push(s);i.sort();let n=i.length;for(let s=0;s0?" "+A.join(" "):"";return`<${r}${o}>${super.toString()}`}removeAttribute(t){this.doc!==null?de(this.doc,A=>{qI(A,this,t)}):this._prelimAttrs.delete(t)}setAttribute(t,A){this.doc!==null?de(this.doc,i=>{hf(i,this,t,A)}):this._prelimAttrs.set(t,A)}getAttribute(t){return pf(this,t)}hasAttribute(t){return tm(this,t)}getAttributes(t){return t?xU(this,t):em(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 ns(this,o=>{n.appendChild(o.toDOM(t,A,i))}),i!==void 0&&i._createAssociation(n,this),n}_write(t){t.writeTypeRef(tN),t.writeKey(this.nodeName)}},KU=e=>new bI(e.readKey()),If=class extends dr{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)})}},cf=class e extends rs{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(iN),t.writeKey(this.hookName)}},bU=e=>new cf(e.readKey()),lf=class e extends ss{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.keyn.nodeName=0;n--)i+=``;return i}).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(nN)}},OU=e=>new lf,as=class{constructor(t,A){this.id=t,this.length=A}get deleted(){throw sA()}mergeWith(t){return!1}write(t,A,i){throw sA()}integrate(t,A){throw sA()}},LU=0,wt=class extends as{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),OE(t.doc.store,this)}write(t,A){t.writeInfo(LU),t.writeLen(this.length-A)}getMissing(t,A){return null}},Is=class e{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new e(this.content)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeBuf(this.content)}getRef(){return 3}},YU=e=>new Is(e.readBuf()),OI=class e{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.len)}splice(t){let A=new e(this.len-t);return this.len=t,A}mergeWith(t){return this.len+=t.len,!0}integrate(t,A){NI(t.deleteSet,A.id.client,A.id.clock,this.len),A.markDeleted()}delete(t){}gc(t){}write(t,A){t.writeLen(this.len-A)}getRef(){return 1}},PU=e=>new OI(e.readLen()),om=(e,t)=>new es({guid:e,...t,shouldLoad:t.shouldLoad||t.autoLoad||!1}),cs=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(om(this.doc.guid,this.opts))}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.doc._item=A,t.subdocsAdded.add(this.doc),this.doc.shouldLoad&&t.subdocsLoaded.add(this.doc)}delete(t){t.subdocsAdded.has(this.doc)?t.subdocsAdded.delete(this.doc):t.subdocsRemoved.add(this.doc)}gc(t){}write(t,A){t.writeString(this.doc.guid),t.writeAny(this.opts)}getRef(){return 9}},VU=e=>new cs(om(e.readString(),e.readAny())),fn=class e{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new e(this.embed)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){}delete(t){}gc(t){}write(t,A){t.writeJSON(this.embed)}getRef(){return 5}},zU=e=>new fn(e.readJSON()),Je=class e{constructor(t,A){this.key=t,this.value=A}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new e(this.key,this.value)}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){let i=A.parent;i._searchMarker=null,i._hasFormatting=!0}delete(t){}gc(t){}write(t,A){t.writeKey(this.key),t.writeJSON(this.value)}getRef(){return 6}},TU=e=>new Je(e.readKey(),e.readJSON()),gf=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{let t=e.readLen(),A=[];for(let i=0;i{let t=e.readLen(),A=[];for(let i=0;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}},ZU=e=>new TA(e.readString()),WU=[GU,HU,JU,KU,qU,bU,OU],jU=0,$U=1,eN=2,tN=3,AN=4,iN=5,nN=6,_A=class e{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new e(this.type._copy())}splice(t){throw sA()}mergeWith(t){return!1}integrate(t,A){this.type._integrate(t.doc,A)}delete(t){let A=this.type._start;for(;A!==null;)A.deleted?A.id.clock<(t.beforeState.get(A.id.client)||0)&&t._mergeStructs.push(A):A.delete(t),A=A.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(t.beforeState.get(i.id.client)||0)&&t._mergeStructs.push(i):i.delete(t)}),t.changed.delete(this.type)}gc(t){let A=this.type._start;for(;A!==null;)A.gc(t,!0),A=A.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(t,!0),i=i.left}),this.type._map=new Map}write(t,A){this.type._write(t)}getRef(){return 7}},rN=e=>new _A(WU[e.readTypeRef()](e));var LI=(e,t,A)=>{let{client:i,clock:n}=t.id,r=new Ye(Ae(i,n+A),t,Ae(i,n+A-1),t.right,t.rightOrigin,t.parent,t.parentSub,t.content.splice(A));return t.deleted&&r.markDeleted(),t.keep&&(r.keep=!0),t.redone!==null&&(r.redone=Ae(t.redone.client,t.redone.clock+A)),t.right=r,r.right!==null&&(r.right.left=r),e._mergeStructs.push(r),r.parentSub!==null&&r.right===null&&r.parent._map.set(r.parentSub,r),t.length=A,r};var Ye=class e extends as{constructor(t,A,i,n,r,o,s,a){super(t,a.getLength()),this.origin=i,this.left=A,this.right=n,this.rightOrigin=r,this.parent=o,this.parentSub=s,this.redone=null,this.content=a,this.info=this.content.isCountable()?2:0}set marker(t){(this.info&8)>0!==t&&(this.info^=8)}get marker(){return(this.info&8)>0}get keep(){return(this.info&1)>0}set keep(t){this.keep!==t&&(this.info^=1)}get countable(){return(this.info&2)>0}get deleted(){return(this.info&4)>0}set deleted(t){this.deleted!==t&&(this.info^=4)}markDeleted(){this.info|=4}getMissing(t,A){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Le(A,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Le(A,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===Si&&this.id.client!==this.parent.client&&this.parent.clock>=Le(A,this.parent.client))return this.parent.client;if(this.origin&&(this.left=yE(t,A,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Ni(t,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===wt||this.right&&this.right.constructor===wt)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===e&&(this.parent=this.left.parent,this.parentSub=this.left.parentSub),this.right&&this.right.constructor===e&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===Si){let i=Zu(A,this.parent);i.constructor===wt?this.parent=null:this.parent=i.content.type}return null}integrate(t,A){if(A>0&&(this.id.clock+=A,this.left=yE(t,t.doc.store,Ae(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(A),this.length-=A),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let i=this.left,n;if(i!==null)n=i.right;else if(this.parentSub!==null)for(n=this.parent._map.get(this.parentSub)||null;n!==null&&n.left!==null;)n=n.left;else n=this.parent._start;let r=new Set,o=new Set;for(;n!==null&&n!==this.right;){if(o.add(n),r.add(n),FI(this.origin,n.origin)){if(n.id.client{i.p===t&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),t.keep&&(this.keep=!0),this.right=t.right,this.right!==null&&(this.right.left=this),this.length+=t.length,!0}return!1}delete(t){if(!this.deleted){let A=this.parent;this.countable&&this.parentSub===null&&(A._length-=this.length),this.markDeleted(),NI(t.deleteSet,this.id.client,this.id.clock,this.length),FE(t,A,this.parentSub),this.content.delete(t)}}gc(t,A){if(!this.deleted)throw aA();this.content.gc(t),A?CU(t,this,new wt(this.id,this.length)):this.content=new OI(this.length)}write(t,A){let i=A>0?Ae(this.id.client,this.id.clock+A-1):this.origin,n=this.rightOrigin,r=this.parentSub,o=this.content.getRef()&31|(i===null?0:128)|(n===null?0:64)|(r===null?0:32);if(t.writeInfo(o),i!==null&&t.writeLeftID(i),n!==null&&t.writeRightID(n),i===null&&n===null){let s=this.parent;if(s._item!==void 0){let a=s._item;if(a===null){let c=fU(s);t.writeParentInfo(!0),t.writeString(c)}else t.writeParentInfo(!1),t.writeLeftID(a.id)}else s.constructor===String?(t.writeParentInfo(!0),t.writeString(s)):s.constructor===Si?(t.writeParentInfo(!1),t.writeLeftID(s)):aA();r!==null&&t.writeString(r)}this.content.write(t,A)}},sm=(e,t)=>oN[t&31](e),oN=[()=>{aA()},PU,_U,YU,ZU,zU,TU,rN,XU,VU,()=>{aA()}],sN=10,Ft=class extends as{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(sN),W(t.restEncoder,this.length-A)}getMissing(t,A){return null}},am=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:{},Im="__ $YJS$ __";am[Im]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438");am[Im]=!0;var zI={proxies:new WeakMap,traps:new WeakMap},cm=(e,t,A)=>e.get(t)||e.set(t,new A).get(t),lm=e=>e.join(),gm=(e,t,A,i,n)=>{cm(cm(zI.traps,e,WeakMap),t,Map).set(lm(A),i),zI.proxies.set(i,n)},Ef=(e,t,A)=>{var i,n;return zI.proxies.get((n=(i=zI.traps.get(e))===null||i===void 0?void 0:i.get(t))===null||n===void 0?void 0:n.get(lm(A)))};var IN=Symbol("default"),cN=Object.keys(Object.getOwnPropertyDescriptors(Reflect)),lN=["get","has","set","defineProperty","deleteProperty","getOwnPropertyDescriptor"],gN=(e,t)=>{let A,i,n,r,o,s,a,c;switch(e){case"get":[A,i,r]=t;break;case"set":[A,i,n,r]=t;break;case"deleteProperty":case"defineProperty":[A,s]=t;break;case"has":case"getOwnPropertyDescriptor":[A,i]=t;break;case"apply":[A,a,o]=t;break;case"construct":[A,o]=t;break;case"setPrototypeOf":[A,c]=t;break;default:[A]=t}return{target:A,name:i,receiver:r,val:n,args:o,descriptor:s,thisValue:a,prototype:c}},uN=(e,t)=>{let{trapName:A,handler:i,traps:n,root:r,path:o}=e,{target:s,name:a,val:c,receiver:I,args:l,descriptor:u,thisValue:g,prototype:f}=gN(A,t),C=lN.includes(A)?a:void 0;return{parameters:t,target:s,name:a,val:c,args:l,descriptor:u,receiver:I,thisValue:g,prototype:f,trapName:A,traps:n,path:o,handler:i,key:C,newValue:A==="set"?c:void 0,root:r,get proxy(){return Ef(r,s,o)},get value(){return C&&s[C]},DEFAULT:IN,PROXY:um.bind({root:r,handler:i,path:[...o,C]})}},fN=function(...e){let{trapName:t,handler:A}=this,i=uN(this,e),{PROXY:n,DEFAULT:r}=i,o=A(i);return o===n?n(i.value):o===r?Reflect[t](...e):o},BN=(e,t,A)=>cN.reduce((i,n)=>(i[n]=fN.bind({trapName:n,handler:e,traps:i,root:t,path:A}),i),{}),dN=e=>{if(e===null||typeof e!="object"&&typeof e!="function")throw new TypeError("Deep proxy could be applied to objects and functions only")},CN=({DEFAULT:e})=>e,um=function(e,t,A,i){dN(e);let n=Object.assign({},this),r=t||n.handler||CN,o=A||n.path||[],s=n.root||i||e,a=Ef(s,e,o);if(a)return a;let c=BN(r,s,o),I=new Proxy(e,c);return gm(s,e,o,c,I),I},fm=class{constructor(e,t,A,i){return um(e,t,A,i)}};function us(e,t,A,i){function n(r){return r instanceof A?r:new A(function(o){o(r)})}return new(A||(A=Promise))(function(r,o){function s(I){try{c(i.next(I))}catch(l){o(l)}}function a(I){try{c(i.throw(I))}catch(l){o(l)}}function c(I){I.done?r(I.value):n(I.value).then(s,a)}c((i=i.apply(e,t||[])).next())})}var Ee=class{constructor(){this.mutex=Promise.resolve()}lock(){let t=()=>{};return this.mutex=this.mutex.then(()=>new Promise(t)),new Promise(A=>{t=A})}dispatch(t){return us(this,void 0,void 0,function*(){let A=yield this.lock();try{return yield Promise.resolve(t())}finally{A()}})}},mf;function QN(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global}var Ff=QN(),yf=(mf=Ff.Buffer)!==null&&mf!==void 0?mf:null,hN=Ff.TextEncoder?new Ff.TextEncoder:null;function Em(e,t){return(e&15)+(e>>6|e>>3&8)<<4|(t&15)+(t>>6|t>>3&8)}function pN(e,t){let A=t.length>>1;for(let i=0;i>>4;e[i++]=r>9?r+Bm:r+dm,r=t[n]&15,e[i++]=r>9?r+Bm:r+dm}return String.fromCharCode.apply(null,e)}var Qm=yf!==null?e=>{if(typeof e=="string"){let t=yf.from(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.length)}if(yf.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 hN.encode(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Invalid data type!")},hm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gs=new Uint8Array(256);for(let e=0;e>4,n+=1,i[n]=(s&15)<<4|a>>2,n+=1,i[n]=(a&3)<<6|c&63,n+=1}return i}var TI=16*1024,ls=4,wN=new Ee,wf=new Map;function FN(e,t){return us(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=(F,S=0)=>{i.set(F,S)},o=()=>i,s=()=>A.exports,a=F=>{A.exports.Hash_SetMemorySize(F);let S=A.exports.Hash_GetBuffer(),N=A.exports.memory.buffer;i=new Uint8Array(N,S,F)},c=()=>new DataView(A.exports.memory.buffer).getUint32(A.exports.STATE_SIZE,!0),I=wN.dispatch(()=>us(this,void 0,void 0,function*(){if(!wf.has(e.name)){let S=yN(e.data),N=WebAssembly.compile(S);wf.set(e.name,N)}let F=yield wf.get(e.name);A=yield WebAssembly.instantiate(F,{})})),l=()=>us(this,void 0,void 0,function*(){A||(yield I);let F=A.exports.Hash_GetBuffer(),S=A.exports.memory.buffer;i=new Uint8Array(S,F,TI)}),u=(F=null)=>{n=!0,A.exports.Hash_Init(F)},g=F=>{let S=0;for(;S{if(!n)throw new Error("update() called before init()");let S=Qm(F);g(S)},C=new Uint8Array(t*2),D=(F,S=null)=>{if(!n)throw new Error("digest() called before init()");return n=!1,A.exports.Hash_Final(S),F==="binary"?i.slice(0,t):Cm(C,i,t)},d=()=>{if(!n)throw new Error("save() can only be called after init() and before digest()");let F=A.exports.Hash_GetState(),S=c(),N=A.exports.memory.buffer,b=new Uint8Array(N,F,S),q=new Uint8Array(ls+S);return pN(q,e.hash),q.set(b,ls),q},B=F=>{if(!(F instanceof Uint8Array))throw new Error("load() expects an Uint8Array generated by save()");let S=A.exports.Hash_GetState(),N=c(),b=ls+N,q=A.exports.memory.buffer;if(F.length!==b)throw new Error(`Bad state length (expected ${b} bytes, got ${F.length})`);if(!EN(e.hash,F.subarray(0,ls)))throw new Error("This state was written by an incompatible hash implementation");let Z=F.subarray(ls);new Uint8Array(q,S,N).set(Z),n=!0},Q=F=>typeof F=="string"?F.length!0;break;case"blake2b":case"blake2s":y=(F,S)=>S<=512&&Q(F);break;case"blake3":y=(F,S)=>S===0&&Q(F);break;case"xxhash64":case"xxhash3":case"xxhash128":y=()=>!1;break}let k=(F,S=null,N=null)=>{if(!y(F,S))return u(S),f(F),D("hex",N);let b=Qm(F);return i.set(b),A.exports.Hash_Calculate(b.length,S,N),Cm(C,i,t)};return yield l(),{getMemory:o,writeMemory:r,getExports:s,setMemorySize:a,init:u,update:f,digest:D,save:d,load:B,calculate:k,hashLength:t}})}function DN(e,t,A){return us(this,void 0,void 0,function*(){let i=yield e.lock(),n=yield FN(t,A);return i(),n})}var av=new Ee;var Iv=new Ee;var cv=new DataView(new ArrayBuffer(4));var lv=new Ee;var gv=new Ee;var uv=new Ee;var fv=new Ee;var Bv=new Ee;var dv=new Ee;var Cv=new Ee;var Qv=new Ee;var hv=new Ee;var pv=new Ee;var Ev=new Ee;var mv=new Ee;var yv=new Ee;var kN="xxhash32",SN="AGFzbQEAAAABEQRgAAF/YAF/AGAAAGACf38AAwcGAAEBAgADBQQBAQICBg4CfwFBsIkFC38AQYAICwdwCAZtZW1vcnkCAA5IYXNoX0dldEJ1ZmZlcgAACUhhc2hfSW5pdAABC0hhc2hfVXBkYXRlAAIKSGFzaF9GaW5hbAADDUhhc2hfR2V0U3RhdGUABA5IYXNoX0NhbGN1bGF0ZQAFClNUQVRFX1NJWkUDAQqxEAYFAEGACQtNAEEA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BqIiNoQJqNgKAiQFBAEEANgKgiQEgABACQQApA6iJASICpyEBAkACQCACQhBUDQBBACgChIkBQQd3QQAoAoCJAUEBd2pBACgCiIkBQQx3akEAKAKMiQFBEndqIQAMAQtBACgCiIkBQbHP2bIBaiEACyAAIAFqIQBBkIkBIQMCQEEAKAKgiQEiBEGQiQFqIgVBlIkBSQ0AQZCJASEBA0AgASgCAEG93MqVfGwgAGpBEXdBr9bTvgJsIQAgAUEIaiEGIAFBBGoiAyEBIAYgBU0NAAsLAkAgAyAFRg0AIARBj4kBaiEGAkACQCAEIANrQQFxDQAgAyEBDAELIANBAWohASADLQAAQbHP2bIBbCAAakELd0Gx893xeWwhAAsgBiADRg0AA0AgAUEBai0AAEGxz9myAWwgAS0AAEGxz9myAWwgAGpBC3dBsfPd8XlsakELd0Gx893xeWwhACABQQJqIgEgBUcNAAsLQQAgAEEPdiAAc0H3lK+veGwiAUENdiABc0G93MqVfGwiAUEQdiABcyIAQRh0IABBgP4DcUEIdHIgAUEIdkGA/gNxIAFBGHZycq03A4AJCwsLAQBBgAgLBDAAAAA=",UN="9e3a00cd",NN={name:kN,data:SN,hash:UN},xN=new Ee,_I=null;function pm(e){return!Number.isInteger(e)||e<0||e>4294967295?new Error("Seed must be a valid 32-bit long unsigned integer."):null}function XI(e,t=0){if(pm(t))return Promise.reject(pm(t));if(_I===null)return DN(xN,NN,4).then(A=>(_I=A,_I.calculate(e,t)));try{let A=_I.calculate(e,t);return Promise.resolve(A)}catch(A){return Promise.reject(A)}}var wv=new Ee;var Fv=new ArrayBuffer(8);var Dv=new Ee;var kv=new ArrayBuffer(8);var Sv=new Ee;var Uv=new ArrayBuffer(8);var Nv=new Ee;var xv=new Ee;var Gv=new Ee;function kf(e){return new Promise((t,A)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>A(e.error)})}function fs(e,t){let A=indexedDB.open(e);A.onupgradeneeded=()=>A.result.createObjectStore(t);let i=kf(A);return(n,r)=>i.then(o=>r(o.transaction(t,n).objectStore(t)))}var Df;function mm(){return Df||(Df=fs("keyval-store","keyval")),Df}function Er(e,t=mm()){return t("readonly",A=>kf(A.get(e)))}function Bs(e,t,A=mm()){return A("readwrite",i=>(i.put(t,e),kf(i.transaction)))}var Uf;try{Uf=new TextDecoder}catch{}var H,zt,h=0;var Mm=[],Nf=Mm,xf=0,ye={},ie,xi,Vt=0,DA=0,Ve,XA,Dt=[],ee,ym={useRecords:!1,mapsAsObjects:!0},ds=class{},Hf=new ds;Hf.name="MessagePack 0xC1";var Gi=!1,vm=2,wm,Fm,Dm;try{new Function("")}catch{vm=1/0}var dn=class e{constructor(t){t&&(t.useRecords===!1&&t.mapsAsObjects===void 0&&(t.mapsAsObjects=!0),t.sequential&&t.trusted!==!1&&(t.trusted=!0,!t.structures&&t.useRecords!=!1&&(t.structures=[],t.maxSharedStructures||(t.maxSharedStructures=0))),t.structures?t.structures.sharedLength=t.structures.length:t.getStructures&&((t.structures=[]).uninitialized=!0,t.structures.sharedLength=0),t.int64AsNumber&&(t.int64AsType="number")),Object.assign(this,t)}unpack(t,A){if(H)return Km(()=>(WI(),this?this.unpack(t,A):e.prototype.unpack.call(ym,t,A)));!t.buffer&&t.constructor===ArrayBuffer&&(t=typeof Buffer<"u"?Buffer.from(t):new Uint8Array(t)),typeof A=="object"?(zt=A.end||t.length,h=A.start||0):(h=0,zt=A>-1?A:t.length),xf=0,DA=0,xi=null,Nf=Mm,Ve=null,H=t;try{ee=t.dataView||(t.dataView=new DataView(t.buffer,t.byteOffset,t.byteLength))}catch(i){throw H=null,t instanceof Uint8Array?i:new Error("Source must be a Uint8Array or Buffer but was a "+(t&&typeof t=="object"?t.constructor.name:typeof t))}if(this instanceof e){if(ye=this,this.structures)return ie=this.structures,ZI(A);(!ie||ie.length>0)&&(ie=[])}else ye=ym,(!ie||ie.length>0)&&(ie=[]);return ZI(A)}unpackMultiple(t,A){let i,n=0;try{Gi=!0;let r=t.length,o=this?this.unpack(t,r):$I.unpack(t,r);if(A){if(A(o,n,h)===!1)return;for(;hi.slice(0)));for(let i=0,n=t.length;i=32&&(r.highByte=i-32>>5))}t.sharedLength=t.length;for(let i in A||[])if(i>=0){let n=t[i],r=A[i];r&&(n&&((t.restoreStructures||(t.restoreStructures=[]))[i]=n),t[i]=r)}return this.structures=t}decode(t,A){return this.unpack(t,A)}};function ZI(e){try{if(!ye.trusted&&!Gi){let A=ie.sharedLength||0;A=32&&wm?(t=wm(H,h,zt,ye),H=null,!(e&&e.lazy)&&t&&(t=t.toJSON()),h=zt):t=Ne(),Ve&&(h=Ve.postBundlePosition,Ve=null),Gi&&(ie.restoreStructures=null),h==zt)ie&&ie.restoreStructures&&km(),ie=null,H=null,XA&&(XA=null);else{if(h>zt)throw new Error("Unexpected end of MessagePack data");if(!Gi){let A;try{A=JSON.stringify(t,(i,n)=>typeof n=="bigint"?`${n}n`:n).slice(0,100)}catch(i){A="(JSON view not available "+i+")"}throw new Error("Data read, but end of buffer not reached "+A)}}return t}catch(t){throw ie&&ie.restoreStructures&&km(),WI(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer")||h>zt)&&(t.incomplete=!0),t}}function km(){for(let e in ie.restoreStructures)ie[e]=ie.restoreStructures[e];ie.restoreStructures=null}function Ne(){let e=H[h++];if(e<160)if(e<128){if(e<64)return e;{let t=ie[e&63]||ye.getStructures&&Rm()[e&63];return t?(t.read||(t.read=Mf(t,e&63)),t.read()):e}}else if(e<144)if(e-=128,ye.mapsAsObjects){let t={};for(let A=0;A=h)return xi.slice(h-Vt,(h+=t)-Vt);if(DA==0&&zt<140){let A=t<16?vf(t):Jm(t);if(A!=null)return A}return Gf(t)}else{let t;switch(e){case 192:return null;case 193:return Ve?(t=Ne(),t>0?Ve[1].slice(Ve.position1,Ve.position1+=t):Ve[0].slice(Ve.position0,Ve.position0-=t)):Hf;case 194:return!1;case 195:return!0;case 196:if(t=H[h++],t===void 0)throw new Error("Unexpected end of buffer");return Sf(t);case 197:return t=ee.getUint16(h),h+=2,Sf(t);case 198:return t=ee.getUint32(h),h+=4,Sf(t);case 199:return Bn(H[h++]);case 200:return t=ee.getUint16(h),h+=2,Bn(t);case 201:return t=ee.getUint32(h),h+=4,Bn(t);case 202:if(t=ee.getFloat32(h),ye.useFloat32>2){let A=jI[(H[h]&127)<<1|H[h+1]>>7];return h+=4,(A*t+(t>0?.5:-.5)>>0)/A}return h+=4,t;case 203:return t=ee.getFloat64(h),h+=8,t;case 204:return H[h++];case 205:return t=ee.getUint16(h),h+=2,t;case 206:return t=ee.getUint32(h),h+=4,t;case 207:return ye.int64AsType==="number"?(t=ee.getUint32(h)*4294967296,t+=ee.getUint32(h+4)):ye.int64AsType==="string"?t=ee.getBigUint64(h).toString():ye.int64AsType==="auto"?(t=ee.getBigUint64(h),t<=BigInt(2)<=BigInt(-2)<=h?xi.slice(h-Vt,(h+=t)-Vt):HN(t);case 218:return t=ee.getUint16(h),h+=2,DA>=h?xi.slice(h-Vt,(h+=t)-Vt):MN(t);case 219:return t=ee.getUint32(h),h+=4,DA>=h?xi.slice(h-Vt,(h+=t)-Vt):vN(t);case 220:return t=ee.getUint16(h),h+=2,Um(t);case 221:return t=ee.getUint32(h),h+=4,Um(t);case 222:return t=ee.getUint16(h),h+=2,Nm(t);case 223:return t=ee.getUint32(h),h+=4,Nm(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 GN=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function Mf(e,t){function A(){if(A.count++>vm){let n=e.read=new Function("r","return function(){return "+(ye.freezeData?"Object.freeze":"")+"({"+e.map(r=>r==="__proto__"?"__proto_:r()":GN.test(r)?r+":r()":"["+JSON.stringify(r)+"]:r()").join(",")+"})}")(Ne);return e.highByte===0&&(e.read=Sm(t,e.read)),n()}let i={};for(let n=0,r=e.length;nfunction(){let A=H[h++];if(A===0)return t();let i=e<32?-(e+(A<<5)):e+(A<<5),n=ie[i]||Rm()[i];if(!n)throw new Error("Record id is not defined for "+i);return n.read||(n.read=Mf(n,e)),n.read()};function Rm(){let e=Km(()=>(H=null,ye.getStructures()));return ie=ye._mergeStructures(e,ie)}var Gf=Cs,HN=Cs,MN=Cs,vN=Cs;function Cs(e){let t;if(e<16&&(t=vf(e)))return t;if(e>64&&Uf)return Uf.decode(H.subarray(h,h+=e));let A=h+e,i=[];for(t="";h65535&&(a-=65536,i.push(a>>>10&1023|55296),a=56320|a&1023),i.push(a)}else i.push(n);i.length>=4096&&(t+=Pe.apply(String,i),i.length=0)}return i.length>0&&(t+=Pe.apply(String,i)),t}function Um(e){let t=new Array(e);for(let A=0;A0){h=t;return}A[i]=n}return Pe.apply(String,A)}function vf(e){if(e<4)if(e<2){if(e===0)return"";{let t=H[h++];if((t&128)>1){h-=1;return}return Pe(t)}}else{let t=H[h++],A=H[h++];if((t&128)>0||(A&128)>0){h-=2;return}if(e<3)return Pe(t,A);let i=H[h++];if((i&128)>0){h-=3;return}return Pe(t,A,i)}else{let t=H[h++],A=H[h++],i=H[h++],n=H[h++];if((t&128)>0||(A&128)>0||(i&128)>0||(n&128)>0){h-=4;return}if(e<6){if(e===4)return Pe(t,A,i,n);{let r=H[h++];if((r&128)>0){h-=5;return}return Pe(t,A,i,n,r)}}else if(e<8){let r=H[h++],o=H[h++];if((r&128)>0||(o&128)>0){h-=6;return}if(e<7)return Pe(t,A,i,n,r,o);let s=H[h++];if((s&128)>0){h-=7;return}return Pe(t,A,i,n,r,o,s)}else{let r=H[h++],o=H[h++],s=H[h++],a=H[h++];if((r&128)>0||(o&128)>0||(s&128)>0||(a&128)>0){h-=8;return}if(e<10){if(e===8)return Pe(t,A,i,n,r,o,s,a);{let c=H[h++];if((c&128)>0){h-=9;return}return Pe(t,A,i,n,r,o,s,a,c)}}else if(e<12){let c=H[h++],I=H[h++];if((c&128)>0||(I&128)>0){h-=10;return}if(e<11)return Pe(t,A,i,n,r,o,s,a,c,I);let l=H[h++];if((l&128)>0){h-=11;return}return Pe(t,A,i,n,r,o,s,a,c,I,l)}else{let c=H[h++],I=H[h++],l=H[h++],u=H[h++];if((c&128)>0||(I&128)>0||(l&128)>0||(u&128)>0){h-=12;return}if(e<14){if(e===12)return Pe(t,A,i,n,r,o,s,a,c,I,l,u);{let g=H[h++];if((g&128)>0){h-=13;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g)}}else{let g=H[h++],f=H[h++];if((g&128)>0||(f&128)>0){h-=14;return}if(e<15)return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g,f);let C=H[h++];if((C&128)>0){h-=15;return}return Pe(t,A,i,n,r,o,s,a,c,I,l,u,g,f,C)}}}}}function xm(){let e=H[h++],t;if(e<192)t=e-160;else switch(e){case 217:t=H[h++];break;case 218:t=ee.getUint16(h),h+=2;break;case 219:t=ee.getUint32(h),h+=4;break;default:throw new Error("Expected string")}return Cs(t)}function Sf(e){return ye.copyBuffers?Uint8Array.prototype.slice.call(H,h,h+=e):H.subarray(h,h+=e)}function Bn(e){let t=H[h++];if(Dt[t]){let A;return Dt[t](H.subarray(h,A=h+=e),i=>{h=i;try{return Ne()}finally{h=A}})}else throw new Error("Unknown extension type "+t)}var Gm=new Array(4096);function qm(){let e=H[h++];if(e>=160&&e<192){if(e=e-160,DA>=h)return xi.slice(h-Vt,(h+=e)-Vt);if(!(DA==0&&zt<180))return Gf(e)}else return h--,Ne().toString();let t=(e<<5^(e>1?ee.getUint16(h):e>0?H[h]:0))&4095,A=Gm[t],i=h,n=h+e-3,r,o=0;if(A&&A.bytes==e){for(;i{let A=Ne().map(r=>r.toString()),i=e;t!==void 0&&(e=e<32?-((t<<5)+e):(t<<5)+e,A.highByte=t);let n=ie[e];return n&&(n.isShared||Gi)&&((ie.restoreStructures||(ie.restoreStructures=[]))[e]=n),ie[e]=A,A.read=Mf(A,i),A.read()};Dt[0]=()=>{};Dt[0].noBuffer=!0;Dt[66]=e=>{let t=e.length,A=BigInt(e[0]&128?e[0]-256:e[0]);for(let i=1;i{let e=Ne();return(RN[e[0]]||Error)(e[1])};Dt[105]=e=>{let t=ee.getUint32(h-4);XA||(XA=new Map);let A=H[h],i;A>=144&&A<160||A==220||A==221?i=[]:i={};let n={target:i};XA.set(t,n);let r=Ne();return n.used?Object.assign(i,r):(n.target=r,r)};Dt[112]=e=>{let t=ee.getUint32(h-4),A=XA.get(t);return A.used=!0,A.target};Dt[115]=()=>new Set(Ne());var Rf=["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64","BigInt64","BigUint64"].map(e=>e+"Array"),JN=typeof globalThis=="object"?globalThis:window;Dt[116]=e=>{let t=e[0],A=Rf[t];if(!A)throw new Error("Could not find typed array for code "+t);return new JN[A](Uint8Array.prototype.slice.call(e,1).buffer)};Dt[120]=()=>{let e=Ne();return new RegExp(e[0],e[1])};var qN=[];Dt[98]=e=>{let t=(e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3],A=h;return h+=t-e.length,Ve=qN,Ve=[xm(),xm()],Ve.position0=0,Ve.position1=0,Ve.postBundlePosition=h,h=A,Ne()};Dt[255]=e=>e.length==4?new Date((e[0]*16777216+(e[1]<<16)+(e[2]<<8)+e[3])*1e3):e.length==8?new Date(((e[0]<<22)+(e[1]<<14)+(e[2]<<6)+(e[3]>>2))/1e6+((e[3]&3)*4294967296+e[4]*16777216+(e[5]<<16)+(e[6]<<8)+e[7])*1e3):e.length==12?new Date(((e[0]<<24)+(e[1]<<16)+(e[2]<<8)+e[3])/1e6+((e[4]&128?-281474976710656:0)+e[6]*1099511627776+e[7]*4294967296+e[8]*16777216+(e[9]<<16)+(e[10]<<8)+e[11])*1e3):new Date("invalid");function Km(e){Dm&&Dm();let t=zt,A=h,i=xf,n=Vt,r=DA,o=xi,s=Nf,a=XA,c=Ve,I=new Uint8Array(H.slice(0,zt)),l=ie,u=ie.slice(0,ie.length),g=ye,f=Gi,C=e();return zt=t,h=A,xf=i,Vt=n,DA=r,xi=o,Nf=s,XA=a,Ve=c,H=I,Gi=f,ie=l,ie.splice(0,ie.length,...u),ye=g,ee=new DataView(H.buffer,H.byteOffset,H.byteLength),C}function WI(){H=null,XA=null,ie=null}var jI=new Array(147);for(let e=0;e<256;e++)jI[e]=+("1e"+Math.floor(45.15-e*.30103));var $I=new dn({useRecords:!1}),KN=$I.unpack,bN=$I.unpackMultiple,ON=$I.unpack,ec={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4},LN=new Float32Array(1),vv=new Uint8Array(LN.buffer,0,4);var Ac;try{Ac=new TextEncoder}catch{}var Jf,Pm,ic=typeof Buffer<"u",tc=ic?function(e){return Buffer.allocUnsafeSlow(e)}:Uint8Array,Vm=ic?Buffer:Uint8Array,bm=ic?4294967296:2144337920,E,Qs,le,p=0,gt,ke=null,YN,PN=21760,VN=/[\u0080-\uFFFF]/,mr=Symbol("record-id"),Cn=class extends dn{constructor(t){super(t),this.offset=0;let A,i,n,r,o,s=Vm.prototype.utf8Write?function(m,J){return E.utf8Write(m,J,4294967295)}:Ac&&Ac.encodeInto?function(m,J){return Ac.encodeInto(m,E.subarray(J)).written}:!1,a=this;t||(t={});let c=t&&t.sequential,I=t.structures||t.saveStructures,l=t.maxSharedStructures;if(l==null&&(l=I?32:0),l>8160)throw new Error("Maximum maxSharedStructure is 8160");t.structuredClone&&t.moreTypes==null&&(this.moreTypes=!0);let u=t.maxOwnStructures;u==null&&(u=I?32:64),!this.structures&&t.useRecords!=!1&&(this.structures=[]);let g=l>32||u+l>64,f=l+64,C=l+u+64;if(C>8256)throw new Error("Maximum maxSharedStructure + maxOwnStructure is 8192");let D=[],d=0,B=0;this.pack=this.encode=function(m,J){if(E||(E=new tc(8192),le=E.dataView||(E.dataView=new DataView(E.buffer,0,8192)),p=0),gt=E.length-10,gt-p<2048?(E=new tc(E.length),le=E.dataView||(E.dataView=new DataView(E.buffer,0,E.length)),gt=E.length-10,p=0):p=p+7&2147483640,i=p,J&A3&&(p+=J&255),o=a.structuredClone?new Map:null,a.bundleStrings&&typeof m!="string"?(ke=[],ke.size=1/0):ke=null,r=a.structures,r){r.uninitialized&&(r=a._mergeStructures(a.getStructures()));let U=r.sharedLength||0;if(U>l)throw new Error("Shared structures is larger than maximum shared structures, try increasing maxSharedStructures to "+r.sharedLength);if(!r.transitions){r.transitions=Object.create(null);for(let G=0;Gae.offset>ne.offset?1:-1),z=G.length,O=-1;for(;U&&z>0;){let ae=G[--z].offset+i;aeU.position+i?O>=0&&(O+=6):(O>=0&&(le.setUint32(U.position+i,le.getUint32(U.position+i)+O),O=-1),U=U.previous,z++)}O>=0&&U&&le.setUint32(U.position+i,le.getUint32(U.position+i)+O),p+=G.length*6,p>gt&&q(p),a.offset=p;let L=TN(E.subarray(i,p),G);return o=null,L}return a.offset=p,J&Tm?(E.start=i,E.end=p,E):E.subarray(i,p)}catch(U){throw M=U,U}finally{if(r&&(Q(),n&&a.saveStructures)){let U=r.sharedLength||0,G=E.subarray(i,p),z=_N(r,a);if(!M)return a.saveStructures(z,z.isCompatible)===!1?a.pack(m,J):(a.lastNamedStructuresLength=U,G)}J&t3&&(p=i)}};let Q=()=>{B<10&&B++;let m=r.sharedLength||0;if(r.length>m&&!c&&(r.length=m),d>1e4)r.transitions=null,B=0,d=0,D.length>0&&(D=[]);else if(D.length>0&&!c){for(let J=0,M=D.length;J{var J=m.length;J<16?E[p++]=144|J:J<65536?(E[p++]=220,E[p++]=J>>8,E[p++]=J&255):(E[p++]=221,le.setUint32(p,J),p+=4);for(let M=0;M{p>gt&&(E=q(p));var J=typeof m,M;if(J==="string"){let U=m.length;if(ke&&U>=4&&U<4096){if((ke.size+=U)>PN){let L,ae=(ke[0]?ke[0].length*3+ke[1].length:0)+10;p+ae>gt&&(E=q(p+ae));let ne;ke.position?(ne=ke,E[p]=200,p+=3,E[p++]=98,L=p-i,p+=4,Ym(i,k,0),le.setUint16(L+i-3,p-i-L)):(E[p++]=214,E[p++]=98,L=p-i,p+=4),ke=["",""],ke.previous=ne,ke.size=0,ke.position=L}let O=VN.test(m);ke[O?0:1]+=m,E[p++]=193,k(O?-U:U);return}let G;U<32?G=1:U<256?G=2:U<65536?G=3:G=5;let z=U*3;if(p+z>gt&&(E=q(p+z)),U<64||!s){let O,L,ae,ne=p+G;for(O=0;O>6|192,E[ne++]=L&63|128):(L&64512)===55296&&((ae=m.charCodeAt(O+1))&64512)===56320?(L=65536+((L&1023)<<10)+(ae&1023),O++,E[ne++]=L>>18|240,E[ne++]=L>>12&63|128,E[ne++]=L>>6&63|128,E[ne++]=L&63|128):(E[ne++]=L>>12|224,E[ne++]=L>>6&63|128,E[ne++]=L&63|128);M=ne-p-G}else M=s(m,p+G);M<32?E[p++]=160|M:M<256?(G<2&&E.copyWithin(p+2,p+1,p+1+M),E[p++]=217,E[p++]=M):M<65536?(G<3&&E.copyWithin(p+3,p+2,p+2+M),E[p++]=218,E[p++]=M>>8,E[p++]=M&255):(G<5&&E.copyWithin(p+5,p+3,p+3+M),E[p++]=219,le.setUint32(p,M),p+=4),p+=M}else if(J==="number")if(m>>>0===m)m<32||m<128&&this.useRecords===!1||m<64&&!this.randomAccessStructure?E[p++]=m:m<256?(E[p++]=204,E[p++]=m):m<65536?(E[p++]=205,E[p++]=m>>8,E[p++]=m&255):(E[p++]=206,le.setUint32(p,m),p+=4);else if(m>>0===m)m>=-32?E[p++]=256+m:m>=-128?(E[p++]=208,E[p++]=m+256):m>=-32768?(E[p++]=209,le.setInt16(p,m),p+=2):(E[p++]=210,le.setInt32(p,m),p+=4);else{let U;if((U=this.useFloat32)>0&&m<4294967296&&m>=-2147483648){E[p++]=202,le.setFloat32(p,m);let G;if(U<4||(G=m*jI[(E[p]&127)<<1|E[p+1]>>7])>>0===G){p+=4;return}else p--}E[p++]=203,le.setFloat64(p,m),p+=8}else if(J==="object"||J==="function")if(!m)E[p++]=192;else{if(o){let G=o.get(m);if(G){if(!G.id){let z=o.idsToInsert||(o.idsToInsert=[]);G.id=z.push(G)}E[p++]=214,E[p++]=112,le.setUint32(p,G.id),p+=4;return}else o.set(m,{offset:p-i})}let U=m.constructor;if(U===Object)b(m,!0);else if(U===Array)y(m);else if(U===Map)if(this.mapAsEmptyObject)E[p++]=128;else{M=m.size,M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);for(let[G,z]of m)k(G),k(z)}else{for(let G=0,z=Jf.length;G(E=ae,ae=null,p+=Zt,p>gt&&q(p),{target:E,targetView:le,position:p-Zt}),k)}finally{ae&&(E=ae,le=ne,p=We,gt=E.length-10)}Xt&&(Xt.length+p>gt&&q(Xt.length+p),p=zN(Xt,E,p,L.type));return}}if(Array.isArray(m))y(m);else{if(m.toJSON){let G=m.toJSON();if(G!==m)return k(G)}if(J==="function")return k(this.writeFunction&&this.writeFunction(m));b(m,!m.hasOwnProperty)}}}else if(J==="boolean")E[p++]=m?195:194;else if(J==="bigint"){if(m=-(BigInt(1)<0)E[p++]=207,le.setBigUint64(p,m);else if(this.largeBigIntToFloat)E[p++]=203,le.setFloat64(p,Number(m));else if(this.useBigIntExtension&&m<2n**1023n&&m>-(2n**1023n)){E[p++]=199,p++,E[p++]=66;let U=[],G;do{let z=m&0xffn;G=(z&0x80n)===(m<0n?0x80n:0n),U.push(z),m>>=8n}while(!((m===0n||m===-1n)&&G));E[p-2]=U.length;for(let z=U.length;z>0;)E[p++]=Number(U[--z]);return}else throw new RangeError(m+" was too large to fit in MessagePack 64-bit integer format, use useBigIntExtension or set largeBigIntToFloat to convert to float-64");p+=8}else if(J==="undefined")this.encodeUndefinedAsNil?E[p++]=192:(E[p++]=212,E[p++]=0,E[p++]=0);else throw new Error("Unknown type: "+J)},F=this.variableMapSize||this.coercibleKeyAsNumber?m=>{let J=Object.keys(m),M=J.length;M<16?E[p++]=128|M:M<65536?(E[p++]=222,E[p++]=M>>8,E[p++]=M&255):(E[p++]=223,le.setUint32(p,M),p+=4);let U;if(this.coercibleKeyAsNumber)for(let G=0;G{E[p++]=222;let M=p-i;p+=2;let U=0;for(let G in m)(J||m.hasOwnProperty(G))&&(k(G),k(m[G]),U++);E[M+++i]=U>>8,E[M+i]=U&255},S=this.useRecords===!1?F:t.progressiveRecords&&!g?(m,J)=>{let M,U=r.transitions||(r.transitions=Object.create(null)),G=p++-i,z;for(let O in m)if(J||m.hasOwnProperty(O)){if(M=U[O],M)U=M;else{let L=Object.keys(m),ae=U;U=r.transitions;let ne=0;for(let We=0,Xt=L.length;We{let M,U=r.transitions||(r.transitions=Object.create(null)),G=0;for(let O in m)(J||m.hasOwnProperty(O))&&(M=U[O],M||(M=U[O]=Object.create(null),G++),U=M);let z=U[mr];z?z>=96&&g?(E[p++]=((z-=96)&31)+96,E[p++]=z>>5):E[p++]=z:Z(U,U.__keys__||Object.keys(m),G);for(let O in m)(J||m.hasOwnProperty(O))&&k(m[O])},N=typeof this.useRecords=="function"&&this.useRecords,b=N?(m,J)=>{N(m)?S(m,J):F(m,J)}:S,q=m=>{let J;if(m>16777216){if(m-i>bm)throw new Error("Packed buffer would be larger than maximum buffer size");J=Math.min(bm,Math.round(Math.max((m-i)*(m>67108864?1.25:2),4194304)/4096)*4096)}else J=(Math.max(m-i<<2,E.length-1)>>12)+1<<12;let M=new tc(J);return le=M.dataView||(M.dataView=new DataView(M.buffer,0,J)),m=Math.min(m,E.length),E.copy?E.copy(M,0,i,m):M.set(E.slice(i,m)),p-=i,i=0,gt=M.length-10,E=M},Z=(m,J,M)=>{let U=r.nextId;U||(U=64),U=C&&(U=f),r.nextId=U+1);let G=J.highByte=U>=96&&g?U-96>>5:-1;m[mr]=U,m.__keys__=J,r[U-64]=J,U=0?(E[p++]=(U&31)+96,E[p++]=G):E[p++]=U):(G>=0?(E[p++]=213,E[p++]=114,E[p++]=(U&31)+96,E[p++]=G):(E[p++]=212,E[p++]=114,E[p++]=U),M&&(d+=B*M),D.length>=u&&(D.shift()[mr]=0),D.push(m),k(J))},xe=(m,J,M,U)=>{let G=E,z=p,O=gt,L=i;E=Qs,p=0,i=0,E||(Qs=E=new tc(8192)),gt=E.length-10,Z(m,J,U),Qs=E;let ae=p;if(E=G,p=z,gt=O,i=L,ae>1){let ne=p+ae-1;ne>gt&&q(ne);let We=M+i;E.copyWithin(We+ae,We+1,p),E.set(Qs.slice(0,ae),We),p=ne}else E[M+i]=Qs[0]},Bt=(m,J)=>{let M=YN(m,E,i,p,r,q,(U,G,z)=>{if(z)return n=!0;p=G;let O=E;return k(U),Q(),O!==E?{position:p,targetView:le,target:E}:p},this);if(M===0)return b(m,!0);p=M}}useBuffer(t){E=t,le=new DataView(E.buffer,E.byteOffset,E.byteLength),p=0}clearSharedData(){this.structures&&(this.structures=[]),this.typedStructs&&(this.typedStructs=[])}};Pm=[Date,Set,Error,RegExp,ArrayBuffer,Object.getPrototypeOf(Uint8Array.prototype).constructor,ds];Jf=[{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?Om(e,16,t):Lm(ic?Buffer.from(e):new Uint8Array(e),t)}},{pack(e,t){let A=e.constructor;A!==Vm&&this.moreTypes?Om(e,Rf.indexOf(A.name),t):Lm(e,t)}},{pack(e,t){let{target:A,position:i}=t(1);A[i]=193}}];function Om(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 Lm(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 zN(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 TN(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 Ym(e,t,A){if(ke.length>0){le.setUint32(ke.position+e,p+A-ke.position-e),ke.stringsPosition=p-e;let i=ke;ke=null,t(i[0]),t(i[1])}}function _N(e,t){return e.isCompatible=A=>{let i=!A||(t.lastNamedStructuresLength||0)===A.length;return i||t._mergeStructures(A),i},e}var zm=new Cn({useRecords:!1}),XN=zm.pack,ZN=zm.pack;var{NEVER:WN,ALWAYS:jN,DECIMAL_ROUND:$N,DECIMAL_FIT:e3}=ec,Tm=512,t3=1024,A3=2048;var Lf=K(jm(),1),AR=Lf.default.configure,$m=Lf.default;var ey={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"}},ty={0:"site.list",1:"site.group",2:"site.load",3:"site.update",4:"comp.new",5:"comp.list",6:"comp.group",7:"comp.load",8:"page.list",9:"page.load",10:"page.cache",11:"yjs.um",12:"yjs.sv_local",13:"yjs.diff_local",14:"yjs.sv_remote",15:"client.info",16:"code.load",17:"code.edit",18:"code.action"};var Ce=window;var Ay=e=>fs(`prasi-user-${e}`,"default");var iy=new Cn({structuredClone:!0}),hs={debug:!!localStorage.getItem("prasi-ws-debug"),reconnectTimeout:1e3};Ce.debug=new Proxy({},{get(e,t,A){if(t==="off")return hs.debug=!1,localStorage.removeItem("prasi-ws-debug"),console.clear(),["WS DEBUG: Deactivated"];if(t==="on")return hs.debug=!0,localStorage.setItem("prasi-ws-debug","1"),console.clear(),["WS DEBUG: Activated"]}});var kA={ws:null,client_id:"",idb:null,event:null},Yf={action:{pending:{}}},ny=(e,t)=>{let A=iy.pack(t);hs.debug&&console.log("%c\u2B06","color:blue",oy(A.length,0),t),e.send(A)},ry=async e=>{let{user_id:t,site_id:A,page_id:i,events:n}=e;return kA.idb=Ay(t),await a3({user_id:t,site_id:A,page_id:i},n),new fm(ey,({target:r,trapName:o,value:s,key:a,DEFAULT:c,PROXY:I})=>{if(o==="set")throw new TypeError("target is immutable");return typeof s=="string"?(...l)=>new Promise(u=>{g3({code:s,resolve:u,args:l})}):o==="get"&&typeof s=="object"&&s!==null?I:c})},a3=(e,t)=>{let{user_id:A,page_id:i,site_id:n}=e;return kA.event=t,Ce.offline?new Promise(async r=>{r();let o="editor_start",s=await l3(o);t[o]&&t[o](s)}):new Promise((r,o)=>{if(!kA.ws){let s=0,a=()=>{let c=new URL(Ce.basehost||location.href);c.pathname="/sync",c.protocol=c.protocol==="http:"?"ws:":"wss:";let I=new WebSocket(`${c.protocol}//${c.host}${c.pathname}`);I.onopen=()=>{ny(I,{type:1,user_id:A,site_id:n,page_id:i}),kA.ws=I,t.opened()},I.onclose=async()=>{t.disconnected().reconnect?setTimeout(async()=>{s++,a()},s*hs.reconnectTimeout):o()},I.onmessage=async l=>{let u=l.data,g=iy.unpack(Buffer.from(await u.arrayBuffer()));if(hs.debug&&console.log("%c\u2B07","color:red",oy(u.size,0),g),g.type===0)kA.client_id=g.client_id,t.shakehand(g.client_id),r();else if(g.type===2){let f=g.event;t[f]&&(I3.includes(f)&&c3(f,g.data),t[f](g.data))}else if(g.type===4){let f=Yf.action.pending[g.argid];if(f){f.resolve(g.val),delete Yf.action.pending[g.argid];let C=kA.idb;C&&await Bs(g.argid,g.val,C)}}}};a()}})},I3=["editor_start"],c3=async(e,t)=>{let A=kA.idb;if(A){let i=await XI(`ev-${e}`);await Bs(i,t,A)}},l3=async e=>{let t=kA.idb;if(t){let A=await XI(`ev-${e}`);return await Er(A,t)}},g3=async e=>{let{args:t,code:A,resolve:i}=e,n=kA.ws,r=kA.idb;if(r){let o=$m(t),s=ty[A],a=await XI(`op-${s}-${o}`);if(n&&n.readyState===n.OPEN)Yf.action.pending[a]={ts:Date.now(),resolve:i},ny(n,{type:3,code:A,args:t,argid:a});else{let c=await Er(a,r);i(c)}}};function oy(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 yr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function wr(e={}){let t={options:e,rootNode:ay(),staticRoutesMap:{}},A=i=>e.strictTrailingSlash?i:i.replace(/\/$/,"")||"/";if(e.routes)for(let i in e.routes)sy(t,A(i),e.routes[i]);return{ctx:t,lookup:i=>u3(t,A(i)),insert:(i,n)=>sy(t,A(i),n),remove:i=>f3(t,A(i))}}function u3(e,t){let A=e.staticRoutesMap[t];if(A)return A.data;let i=t.split("/"),n={},r=!1,o=null,s=e.rootNode,a=null;for(let c=0;c{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:d3,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var Cy=K(oc());var Qy=e=>{let{item:t,item_comp:A,ids:i}=e,n=QA(A);if(hy(n,i),t.id&&(n.id=t.id),n.component){if(n.component.props&&t.component)for(let r of Object.keys(n.component.props)){let o=t.component.props[r],s=n.component.props[r];o&&(s.value=o.value,s.valueBuilt=o.valueBuilt,s.jsxCalledBy=o.jsxCalledBy,s.content=o.content)}n.component.instances=t.component?.instances,n.component.style=t.component?.style}for(let r of Object.keys(t))delete t[r];for(let[r,o]of Object.entries(n))t[r]=o},hy=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,Cy.createId)()),e.id=t[e.id],e.childs)for(let A of e.childs)hy(A,t)};var py=e=>{for(let[t,A]of Object.entries(e.item_comp.component?.props||{})){let i=QA(A),n=e.item.component?.props;n&&n[t]&&(i.value=n[t].value,i.valueBuilt=n[t].valueBuilt,n[t].content&&(i.content=n[t].content)),i&&e.each(t,i)}};var sc=e=>{let t={};for(let[A,i]of Object.entries(e))if(A==="childs"){if(t.childs=[],i&&Array.isArray(i))for(let n of i)t.childs.push({id:n.id})}else t[A]=i;return t};var Ey=(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]),Qy({item:A,item_comp:i,ids:o})}let r={item:sc(A),jsx_prop:t.jsx_prop,parent:{id:t.parent.item.id,comp_id:t.parent?.comp?.component?.id,instance_id:t.parent?.instance_id},instances:n};e.on?.visit&&e.on.visit(r,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[A.id]=r),py({item:A,item_comp:i,instance:n?n[A.id]:{},each(o,s){let a=A.component?.id;s.meta?.type==="content-element"&&a&&s.content&&(s.content.name=o,vt({...e,mode:"comp"},{item:s.content,root:t.root||s.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:o},parent:{item:r.item,instance_id:A.id,comp:i,root_instances:n}}))}});for(let o of Object.values(A.childs))o.name.startsWith("jsx:")||vt({...e,mode:"comp"},{item:o,is_root:!1,root:t.root||t.item,parent:{item:A,instance_id:A.id,root_instances:n,comp:i}})}}};var vt=(e,t)=>{let A=t.item;if(A.type==="item"&&A.component?.id&&t.ignore_first_component!==!0){Ey(e,t);return}let i={item:sc(A),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(i.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(i,A,t.root||t.item),A.id&&e.set_meta!==!1&&(e.meta[i.item.id]=i),A.childs){for(let[n,r]of Object.entries(A.childs))if(r.id){let o={item:r,is_root:!1,root:t.root||t.item,parent:{item:i.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(o.jsx_prop={...t.jsx_prop,is_root:!1}),vt(e,o)}}};var ac=async(e,t,A,i)=>{let n=new Set,r={root:t};if(vt({...e,on:{visit_component:({component:o})=>{if(o){let{id:s}=o;if(e.comps[s]||(!i||i&&!i.has(s))&&n.add(s),o?.props)for(let[a,c]of Object.entries(o.props))c.meta?.type==="content-element"&&c.content&&vt({...e,on:{visit_component:({component:I})=>{if(I){let{id:l}=I;e.comps[l]||(!i||i&&!i.has(l))&&n.add(l)}},visit(I,l){A.visit&&A.visit(I,l,r)}},set_meta:!1,note:"init-load-comp-prop"},{item:c.content})}},visit(o,s){A.visit&&A.visit(o,s,r)}},set_meta:!1,note:"init-load-comp"},{item:t,ignore_first_component:!0}),A.done&&A.done(r),n.size>0){await A.load([...n]);let o=i;o||(o=new Set),n.forEach(s=>{o&&o.add(s)});for(let s of[...o]){let a=e.comps[s];a&&await ac(e,a,A,o)}}};var D3=fs("prasi-cache","prasi-cache-store"),pn={timeout:null,store:D3},Ic=(e,t)=>{let A=[...my(t,"navigate(",")"),...my(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(pn.timeout),pn.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[i])})},100)},my=(e,t,A)=>{let i=0,n=0,r=[];for(;;){let o=e.indexOf(t,i);if(n=i,o>=0){let s=e[o+t.length];if(s==='"'||s==="'"||s==="`"){let a=e.indexOf(`${s}${A}`,o+t.length+1),c=e.substring(o+t.length+1,a);i=a+2+A.length,r.push(c)}}if(n===i)break}return r};var wy=K(oc());var cc=()=>{let e=document.activeElement;return!!(e&&e.attributes.getNamedItem("contenteditable"))};var yy=K(oc()),lc=e=>{let{m:t,root:A,mitem:i,meta:n}=e;if(t.jsx_prop&&t.parent?.instance_id){let r=n[t.parent?.instance_id];if(r&&t.jsx_prop.is_root){let o=r.item.component?.props[t.jsx_prop.name];o&&(o.content=t.item)}}if(t.parent)if(t.parent.id==="root")t.item.id===A.id&&(t.mitem=i);else{let r=n[t.parent.id];if(r.mitem)if(t.jsx_prop?.is_root===!0){let o=r.mitem.get("component")?.get("props");if(o){let s=o.get(t.jsx_prop.name);if(s){let a=s.get("content");if(!a){let c=new Y.Map;syncronize(c,{id:(0,yy.createId)(),name:t.jsx_prop.name,type:"item",dim:{w:"full",h:"full"},childs:[],adv:{css:""}}),s.set("content",c)}a&&(t.mitem=a)}}}else r.mitem.get("childs")?.forEach(o=>{o&&o.get&&o.get("id")===t.item.id&&(t.mitem=o)});if(t.item.component?.props)for(let[o,s]of Object.entries(t.item.component.props)){let a=t.mitem?.get("component")?.get("props")?.get(o);if(!a){let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}if(s.content)if(a){let c=n[s.content.id];c&&(c.mitem=a.get("content"))}else{let c=t.mitem?.get("component")?.get("props");c&&e.new_prop_jsx(t,c,o,s)}}}};var gc=(e,t,A,i)=>{if(t.parent?.id==="root")e.page.doc?.getMap("map").get("root")?.get("childs")?.forEach(n=>{n.get("id")===t.item.id&&(t.mitem=n)});else{let n=A[t.parent?.id||""];n&&n.mitem&&n.mitem.get("childs")?.forEach(r=>{r&&r.get&&r.get("id")===t.item.id&&(t.mitem=r)})}if(!t.item||!t.item.id)return console.warn("Emptry Tree Item ",t),null;if(i.find(n=>n.id===t.item.id))console.warn("Double Tree Item: ",t.item.id,t.item.name);else if(!t.parent?.comp_id)i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t});else if(t.jsx_prop)if(t.jsx_prop.is_root)t.jsx_prop.name!=="child"&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.jsx_prop.name,data:t});else{if(t.jsx_prop.name==="child"&&t.parent.instance_id){let n=A[t.parent.instance_id],r=n.item.component?.props.child.content?.id;r&&n.mitem&&A[r].item.childs.find(s=>t.item.id===s.id)&&i.push({id:t.item.id,parent:t.parent?.instance_id||"root",text:t.item.name,data:t})}t.parent.id!==t.parent.instance_id&&i.push({id:t.item.id,parent:t.parent?.id||"root",text:t.item.name,data:t})}};var fc=async(e,t,A)=>{if(e.comp.list[t])return;let i=new Y.Doc;Y.applyUpdate(i,Et(A));let n=i.getMap("map").get("root");if(n){e.comp.loaded[t]=n.toJSON(),typeof e.comp.list[t]?.on_update=="function"&&i.off("update",e.comp.list[t].on_update);let r=await uc(e,i,t);if(r){let{meta:o,tree:s}=r;e.comp.list[t]?(e.comp.list[t].meta=o,e.comp.list[t].tree=s):(e.comp.list[t]={comp:{id:t,snapshot:A},doc:i,meta:o,tree:s,async on_update(a,c){if(c==="sv_remote"||c==="local")return;let I=await e.sync?.yjs.sv_local("comp",t,Buffer.from(rA(a)));if(I){let l=Y.encodeStateAsUpdate(i,Et(I.sv));Y.applyUpdate(i,Et(I.diff),"local"),await e.sync?.yjs.diff_local("comp",t,Buffer.from(rA(l)));let u=await uc(e,e.comp.list[t].doc,t);if(u&&(e.comp.list[t].meta=u.meta,e.comp.list[t].tree=u.tree),e.comp.loaded[t]=i.getMap("map").get("root")?.toJSON(),cc())return;IA(e),e.render()}}},i.on("update",e.comp.list[t].on_update))}}},uc=async(e,t,A)=>{let i=t.getMap("map").get("root");if(!i)return;let n={},r=[],o=i.toJSON();return e.comp.loaded[A]=o,await ac({comps:e.comp.loaded,meta:n,set_meta:!1,mode:"comp"},o,{load:async s=>{let a=s.filter(I=>!e.comp.loaded[I]),c=await e.sync?.comp.load(a,!0);if(c){let I=Object.entries(c);for(let[l,u]of I)u&&u.snapshot&&!e.comp.list[l]&&await fc(e,l,u.snapshot)}}}),vt({comps:e.comp.loaded,meta:n,mode:"comp",on:{async visit(s){gc(e,s,n,r),lc({m:s,root:o,mitem:i,meta:n,new_prop_jsx(a,c,I,l){zf.list.push(()=>{let u=new Y.Map;l.content&&(l.content.id=(0,wy.createId)()),syncronize(u,l),c.set(I,u)})}})}},note:"load-comp-scan-meta"},{item:o,ignore_first_component:!0}),zf.list.length>0&&e.page.doc?.transact(()=>{for(let s of zf.list)s()}),e.comp.loaded[A]=o,{meta:n,tree:r,item:o}},zf={list:[]};var IA=async(e,t)=>{if(document.activeElement){let o=document.activeElement;if(o.tagName==="DIV"&&o.getAttribute("contenteditable")==="true")return}rc.should_render_main=!0;let A=e.site.layout&&e.site.layout.id===e.page.cur.id&&t?.note==="load-layout page-init";for(let[o,s]of Object.entries(e.comp.list))if(!e.comp.loaded[o]){let c=s.doc.getMap("map").get("root")?.toJSON();c&&(e.comp.loaded[o]=c)}let i=e.page.doc?.getMap("map").get("root"),n=[];i?.get("childs")?.forEach(o=>n.push(o));let r={};e.page.tree=[];for(let o of n){let s=o.toJSON();s&&vt({note:"tree-rebuild",comps:e.comp.loaded,meta:r,mode:"page",on:{async visit(a){A||((a.parent?.instance_id!==a.parent?.id||a.jsx_prop)&&gc(e,a,r,e.page.tree),lc({m:a,root:s,mitem:o,meta:r,new_prop_jsx(c,I,l,u){if(!I.get(l)){let g=new Y.Map;syncronize(g,u),I.set(l,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,a]of Object.entries(e.site.layout.meta))if(a.item.name==="content"){o=a.item.id;break}e.page.root_id=o}if(e.site.layout&&e.site.layout.id===e.page.cur.id)e.page.meta=r;else if(o!=="root"){for(let s of Object.values(r))s.parent?.id==="root"&&(s.parent.id=o);e.page.meta={...e.site.layout.meta,...r}}else e.page.meta=r}};function ms(e,t){return function(){return e.apply(t,arguments)}}var{toString:k3}=Object.prototype,{getPrototypeOf:Xf}=Object,dc=(e=>t=>{let A=k3.call(t);return e[A]||(e[A]=A.slice(8,-1).toLowerCase())})(Object.create(null)),SA=e=>(e=e.toLowerCase(),t=>dc(t)===e),Cc=e=>t=>typeof t===e,{isArray:Fr}=Array,ys=Cc("undefined");function S3(e){return e!==null&&!ys(e)&&e.constructor!==null&&!ys(e.constructor)&&Tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var ky=SA("ArrayBuffer");function U3(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ky(e.buffer),t}var N3=Cc("string"),Tt=Cc("function"),Sy=Cc("number"),Qc=e=>e!==null&&typeof e=="object",x3=e=>e===!0||e===!1,Bc=e=>{if(dc(e)!=="object")return!1;let t=Xf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},G3=SA("Date"),H3=SA("File"),M3=SA("Blob"),v3=SA("FileList"),R3=e=>Qc(e)&&Tt(e.pipe),J3=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tt(e.append)&&((t=dc(e))==="formdata"||t==="object"&&Tt(e.toString)&&e.toString()==="[object FormData]"))},q3=SA("URLSearchParams"),K3=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ws(e,t,{allOwnKeys:A=!1}={}){if(e===null||typeof e>"u")return;let i,n;if(typeof e!="object"&&(e=[e]),Fr(e))for(i=0,n=e.length;i0;)if(n=A[i],t===n.toLowerCase())return n;return null}var Ny=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,xy=e=>!ys(e)&&e!==Ny;function _f(){let{caseless:e}=xy(this)&&this||{},t={},A=(i,n)=>{let r=e&&Uy(t,n)||n;Bc(t[r])&&Bc(i)?t[r]=_f(t[r],i):Bc(i)?t[r]=_f({},i):Fr(i)?t[r]=i.slice():t[r]=i};for(let i=0,n=arguments.length;i(ws(t,(n,r)=>{A&&Tt(n)?e[r]=ms(n,A):e[r]=n},{allOwnKeys:i}),e),O3=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),L3=(e,t,A,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),A&&Object.assign(e.prototype,A)},Y3=(e,t,A,i)=>{let n,r,o,s={};if(t=t||{},e==null)return t;do{for(n=Object.getOwnPropertyNames(e),r=n.length;r-- >0;)o=n[r],(!i||i(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=A!==!1&&Xf(e)}while(e&&(!A||A(e,t))&&e!==Object.prototype);return t},P3=(e,t,A)=>{e=String(e),(A===void 0||A>e.length)&&(A=e.length),A-=t.length;let i=e.indexOf(t,A);return i!==-1&&i===A},V3=e=>{if(!e)return null;if(Fr(e))return e;let t=e.length;if(!Sy(t))return null;let A=new Array(t);for(;t-- >0;)A[t]=e[t];return A},z3=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xf(Uint8Array)),T3=(e,t)=>{let i=(e&&e[Symbol.iterator]).call(e),n;for(;(n=i.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},_3=(e,t)=>{let A,i=[];for(;(A=e.exec(t))!==null;)i.push(A);return i},X3=SA("HTMLFormElement"),Z3=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(A,i,n){return i.toUpperCase()+n}),Fy=(({hasOwnProperty:e})=>(t,A)=>e.call(t,A))(Object.prototype),W3=SA("RegExp"),Gy=(e,t)=>{let A=Object.getOwnPropertyDescriptors(e),i={};ws(A,(n,r)=>{let o;(o=t(n,r,e))!==!1&&(i[r]=o||n)}),Object.defineProperties(e,i)},j3=e=>{Gy(e,(t,A)=>{if(Tt(e)&&["arguments","caller","callee"].indexOf(A)!==-1)return!1;let i=e[A];if(Tt(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+A+"'")})}})},$3=(e,t)=>{let A={},i=n=>{n.forEach(r=>{A[r]=!0})};return Fr(e)?i(e):i(String(e).split(t)),A},ex=()=>{},tx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Tf="abcdefghijklmnopqrstuvwxyz",Dy="0123456789",Hy={DIGIT:Dy,ALPHA:Tf,ALPHA_DIGIT:Tf+Tf.toUpperCase()+Dy},Ax=(e=16,t=Hy.ALPHA_DIGIT)=>{let A="",{length:i}=t;for(;e--;)A+=t[Math.random()*i|0];return A};function ix(e){return!!(e&&Tt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var nx=e=>{let t=new Array(10),A=(i,n)=>{if(Qc(i)){if(t.indexOf(i)>=0)return;if(!("toJSON"in i)){t[n]=i;let r=Fr(i)?[]:{};return ws(i,(o,s)=>{let a=A(o,n+1);!ys(a)&&(r[s]=a)}),t[n]=void 0,r}}return i};return A(e,0)},rx=SA("AsyncFunction"),ox=e=>e&&(Qc(e)||Tt(e))&&Tt(e.then)&&Tt(e.catch),w={isArray:Fr,isArrayBuffer:ky,isBuffer:S3,isFormData:J3,isArrayBufferView:U3,isString:N3,isNumber:Sy,isBoolean:x3,isObject:Qc,isPlainObject:Bc,isUndefined:ys,isDate:G3,isFile:H3,isBlob:M3,isRegExp:W3,isFunction:Tt,isStream:R3,isURLSearchParams:q3,isTypedArray:z3,isFileList:v3,forEach:ws,merge:_f,extend:b3,trim:K3,stripBOM:O3,inherits:L3,toFlatObject:Y3,kindOf:dc,kindOfTest:SA,endsWith:P3,toArray:V3,forEachEntry:T3,matchAll:_3,isHTMLForm:X3,hasOwnProperty:Fy,hasOwnProp:Fy,reduceDescriptors:Gy,freezeMethods:j3,toObjectSet:$3,toCamelCase:Z3,noop:ex,toFiniteNumber:tx,findKey:Uy,global:Ny,isContextDefined:xy,ALPHABET:Hy,generateString:Ax,isSpecCompliantForm:ix,toJSONObject:nx,isAsyncFn:rx,isThenable:ox};function Dr(e,t,A,i,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),A&&(this.config=A),i&&(this.request=i),n&&(this.response=n)}w.inherits(Dr,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:w.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var My=Dr.prototype,vy={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{vy[e]={value:e}});Object.defineProperties(Dr,vy);Object.defineProperty(My,"isAxiosError",{value:!0});Dr.from=(e,t,A,i,n,r)=>{let o=Object.create(My);return w.toFlatObject(e,o,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),Dr.call(o,e.message,t,A,i,n),o.cause=e,o.name=e.name,r&&Object.assign(o,r),o};var j=Dr;var hc=null;function Zf(e){return w.isPlainObject(e)||w.isArray(e)}function Jy(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function Ry(e,t,A){return e?e.concat(t).map(function(n,r){return n=Jy(n),!A&&r?"["+n+"]":n}).join(A?".":""):t}function sx(e){return w.isArray(e)&&!e.some(Zf)}var ax=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Ix(e,t,A){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(hc||FormData),A=w.toFlatObject(A,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,D){return!w.isUndefined(D[C])});let i=A.metaTokens,n=A.visitor||I,r=A.dots,o=A.indexes,a=(A.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(n))throw new TypeError("visitor must be a function");function c(f){if(f===null)return"";if(w.isDate(f))return f.toISOString();if(!a&&w.isBlob(f))throw new j("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(f)||w.isTypedArray(f)?a&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function I(f,C,D){let d=f;if(f&&!D&&typeof f=="object"){if(w.endsWith(C,"{}"))C=i?C:C.slice(0,-2),f=JSON.stringify(f);else if(w.isArray(f)&&sx(f)||(w.isFileList(f)||w.endsWith(C,"[]"))&&(d=w.toArray(f)))return C=Jy(C),d.forEach(function(Q,y){!(w.isUndefined(Q)||Q===null)&&t.append(o===!0?Ry([C],y,r):o===null?C:C+"[]",c(Q))}),!1}return Zf(f)?!0:(t.append(Ry(D,C,r),c(f)),!1)}let l=[],u=Object.assign(ax,{defaultVisitor:I,convertValue:c,isVisitable:Zf});function g(f,C){if(!w.isUndefined(f)){if(l.indexOf(f)!==-1)throw Error("Circular reference detected in "+C.join("."));l.push(f),w.forEach(f,function(d,B){(!(w.isUndefined(d)||d===null)&&n.call(t,d,w.isString(B)?B.trim():B,C,u))===!0&&g(d,C?C.concat(B):[B])}),l.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return g(e),t}var vi=Ix;function qy(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function Ky(e,t){this._pairs=[],e&&vi(e,this,t)}var by=Ky.prototype;by.append=function(t,A){this._pairs.push([t,A])};by.toString=function(t){let A=t?function(i){return t.call(this,i,qy)}:qy;return this._pairs.map(function(n){return A(n[0])+"="+A(n[1])},"").join("&")};var pc=Ky;function lx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Fs(e,t,A){if(!t)return e;let i=A&&A.encode||lx,n=A&&A.serialize,r;if(n?r=n(t,A):r=w.isURLSearchParams(t)?t.toString():new pc(t,A).toString(i),r){let o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+r}return e}var Wf=class{constructor(){this.handlers=[]}use(t,A,i){return this.handlers.push({fulfilled:t,rejected:A,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){w.forEach(this.handlers,function(i){i!==null&&t(i)})}},jf=Wf;var Ec={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var Oy=typeof URLSearchParams<"u"?URLSearchParams:pc;var Ly=typeof FormData<"u"?FormData:null;var Yy=typeof Blob<"u"?Blob:null;var Py={isBrowser:!0,classes:{URLSearchParams:Oy,FormData:Ly,Blob:Yy},protocols:["http","https","file","blob","url","data"]};var $f={};L0($f,{hasBrowserEnv:()=>Vy,hasStandardBrowserEnv:()=>gx,hasStandardBrowserWebWorkerEnv:()=>ux});var Vy=typeof window<"u"&&typeof document<"u",gx=(e=>Vy&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),ux=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var ut={...$f,...Py};function eB(e,t){return vi(e,new ut.classes.URLSearchParams,Object.assign({visitor:function(A,i,n,r){return ut.isNode&&w.isBuffer(A)?(this.append(i,A.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}function fx(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Bx(e){let t={},A=Object.keys(e),i,n=A.length,r;for(i=0;i=A.length;return o=!o&&w.isArray(n)?n.length:o,a?(w.hasOwnProp(n,o)?n[o]=[n[o],i]:n[o]=i,!s):((!n[o]||!w.isObject(n[o]))&&(n[o]=[]),t(A,i,n[o],r)&&w.isArray(n[o])&&(n[o]=Bx(n[o])),!s)}if(w.isFormData(e)&&w.isFunction(e.entries)){let A={};return w.forEachEntry(e,(i,n)=>{t(fx(i),n,A,0)}),A}return null}var mc=dx;function Cx(e,t,A){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(A||JSON.stringify)(e)}var tB={transitional:Ec,adapter:["xhr","http"],transformRequest:[function(t,A){let i=A.getContentType()||"",n=i.indexOf("application/json")>-1,r=w.isObject(t);if(r&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return n?JSON.stringify(mc(t)):t;if(w.isArrayBuffer(t)||w.isBuffer(t)||w.isStream(t)||w.isFile(t)||w.isBlob(t))return t;if(w.isArrayBufferView(t))return t.buffer;if(w.isURLSearchParams(t))return A.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(r){if(i.indexOf("application/x-www-form-urlencoded")>-1)return eB(t,this.formSerializer).toString();if((s=w.isFileList(t))||i.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return vi(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return r||n?(A.setContentType("application/json",!1),Cx(t)):t}],transformResponse:[function(t){let A=this.transitional||tB.transitional,i=A&&A.forcedJSONParsing,n=this.responseType==="json";if(t&&w.isString(t)&&(i&&!this.responseType||n)){let o=!(A&&A.silentJSONParsing)&&n;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?j.from(s,j.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};w.forEach(["delete","get","head","post","put","patch"],e=>{tB.headers[e]={}});var kr=tB;var Qx=w.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),zy=e=>{let t={},A,i,n;return e&&e.split(` +`).forEach(function(o){n=o.indexOf(":"),A=o.substring(0,n).trim().toLowerCase(),i=o.substring(n+1).trim(),!(!A||t[A]&&Qx[A])&&(A==="set-cookie"?t[A]?t[A].push(i):t[A]=[i]:t[A]=t[A]?t[A]+", "+i:i)}),t};var Ty=Symbol("internals");function Ds(e){return e&&String(e).trim().toLowerCase()}function yc(e){return e===!1||e==null?e:w.isArray(e)?e.map(yc):String(e)}function hx(e){let t=Object.create(null),A=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=A.exec(e);)t[i[1]]=i[2];return t}var px=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AB(e,t,A,i,n){if(w.isFunction(i))return i.call(this,t,A);if(n&&(t=A),!!w.isString(t)){if(w.isString(i))return t.indexOf(i)!==-1;if(w.isRegExp(i))return i.test(t)}}function Ex(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,A,i)=>A.toUpperCase()+i)}function mx(e,t){let A=w.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+A,{value:function(n,r,o){return this[i].call(this,t,n,r,o)},configurable:!0})})}var Sr=class{constructor(t){t&&this.set(t)}set(t,A,i){let n=this;function r(s,a,c){let I=Ds(a);if(!I)throw new Error("header name must be a non-empty string");let l=w.findKey(n,I);(!l||n[l]===void 0||c===!0||c===void 0&&n[l]!==!1)&&(n[l||a]=yc(s))}let o=(s,a)=>w.forEach(s,(c,I)=>r(c,I,a));return w.isPlainObject(t)||t instanceof this.constructor?o(t,A):w.isString(t)&&(t=t.trim())&&!px(t)?o(zy(t),A):t!=null&&r(A,t,i),this}get(t,A){if(t=Ds(t),t){let i=w.findKey(this,t);if(i){let n=this[i];if(!A)return n;if(A===!0)return hx(n);if(w.isFunction(A))return A.call(this,n,i);if(w.isRegExp(A))return A.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,A){if(t=Ds(t),t){let i=w.findKey(this,t);return!!(i&&this[i]!==void 0&&(!A||AB(this,this[i],i,A)))}return!1}delete(t,A){let i=this,n=!1;function r(o){if(o=Ds(o),o){let s=w.findKey(i,o);s&&(!A||AB(i,i[s],s,A))&&(delete i[s],n=!0)}}return w.isArray(t)?t.forEach(r):r(t),n}clear(t){let A=Object.keys(this),i=A.length,n=!1;for(;i--;){let r=A[i];(!t||AB(this,this[r],r,t,!0))&&(delete this[r],n=!0)}return n}normalize(t){let A=this,i={};return w.forEach(this,(n,r)=>{let o=w.findKey(i,r);if(o){A[o]=yc(n),delete A[r];return}let s=t?Ex(r):String(r).trim();s!==r&&delete A[r],A[s]=yc(n),i[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let A=Object.create(null);return w.forEach(this,(i,n)=>{i!=null&&i!==!1&&(A[n]=t&&w.isArray(i)?i.join(", "):i)}),A}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,A])=>t+": "+A).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...A){let i=new this(t);return A.forEach(n=>i.set(n)),i}static accessor(t){let i=(this[Ty]=this[Ty]={accessors:{}}).accessors,n=this.prototype;function r(o){let s=Ds(o);i[s]||(mx(n,o),i[s]=!0)}return w.isArray(t)?t.forEach(r):r(t),this}};Sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(Sr.prototype,({value:e},t)=>{let A=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[A]=i}}});w.freezeMethods(Sr);var ft=Sr;function ks(e,t){let A=this||kr,i=t||A,n=ft.from(i.headers),r=i.data;return w.forEach(e,function(s){r=s.call(A,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function Ss(e){return!!(e&&e.__CANCEL__)}function _y(e,t,A){j.call(this,e??"canceled",j.ERR_CANCELED,t,A),this.name="CanceledError"}w.inherits(_y,j,{__CANCEL__:!0});var Ri=_y;function iB(e,t,A){let i=A.config.validateStatus;!A.status||!i||i(A.status)?e(A):t(new j("Request failed with status code "+A.status,[j.ERR_BAD_REQUEST,j.ERR_BAD_RESPONSE][Math.floor(A.status/100)-4],A.config,A.request,A))}var Xy=ut.hasStandardBrowserEnv?{write(e,t,A,i,n,r){let o=[e+"="+encodeURIComponent(t)];w.isNumber(A)&&o.push("expires="+new Date(A).toGMTString()),w.isString(i)&&o.push("path="+i),w.isString(n)&&o.push("domain="+n),r===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function nB(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rB(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Us(e,t){return e&&!nB(t)?rB(e,t):t}var Zy=ut.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),A=document.createElement("a"),i;function n(r){let o=r;return t&&(A.setAttribute("href",o),o=A.href),A.setAttribute("href",o),{href:A.href,protocol:A.protocol?A.protocol.replace(/:$/,""):"",host:A.host,search:A.search?A.search.replace(/^\?/,""):"",hash:A.hash?A.hash.replace(/^#/,""):"",hostname:A.hostname,port:A.port,pathname:A.pathname.charAt(0)==="/"?A.pathname:"/"+A.pathname}}return i=n(window.location.href),function(o){let s=w.isString(o)?n(o):o;return s.protocol===i.protocol&&s.host===i.host}}():function(){return function(){return!0}}();function oB(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yx(e,t){e=e||10;let A=new Array(e),i=new Array(e),n=0,r=0,o;return t=t!==void 0?t:1e3,function(a){let c=Date.now(),I=i[r];o||(o=c),A[n]=a,i[n]=c;let l=r,u=0;for(;l!==n;)u+=A[l++],l=l%e;if(n=(n+1)%e,n===r&&(r=(r+1)%e),c-o{let r=n.loaded,o=n.lengthComputable?n.total:void 0,s=r-A,a=i(s),c=r<=o;A=r;let I={loaded:r,total:o,progress:o?r/o:void 0,bytes:s,rate:a||void 0,estimated:a&&o&&c?(o-r)/a:void 0,event:n};I[t?"download":"upload"]=!0,e(I)}}var wx=typeof XMLHttpRequest<"u",$y=wx&&function(e){return new Promise(function(A,i){let n=e.data,r=ft.from(e.headers).normalize(),{responseType:o,withXSRFToken:s}=e,a;function c(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let I;if(w.isFormData(n)){if(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv)r.setContentType(!1);else if((I=r.getContentType())!==!1){let[C,...D]=I?I.split(";").map(d=>d.trim()).filter(Boolean):[];r.setContentType([C||"multipart/form-data",...D].join("; "))}}let l=new XMLHttpRequest;if(e.auth){let C=e.auth.username||"",D=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";r.set("Authorization","Basic "+btoa(C+":"+D))}let u=Us(e.baseURL,e.url);l.open(e.method.toUpperCase(),Fs(u,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function g(){if(!l)return;let C=ft.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),d={data:!o||o==="text"||o==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:C,config:e,request:l};iB(function(Q){A(Q),c()},function(Q){i(Q),c()},d),l=null}if("onloadend"in l?l.onloadend=g:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(g)},l.onabort=function(){l&&(i(new j("Request aborted",j.ECONNABORTED,e,l)),l=null)},l.onerror=function(){i(new j("Network Error",j.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let D=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",d=e.transitional||Ec;e.timeoutErrorMessage&&(D=e.timeoutErrorMessage),i(new j(D,d.clarifyTimeoutError?j.ETIMEDOUT:j.ECONNABORTED,e,l)),l=null},ut.hasStandardBrowserEnv&&(s&&w.isFunction(s)&&(s=s(e)),s||s!==!1&&Zy(u))){let C=e.xsrfHeaderName&&e.xsrfCookieName&&Xy.read(e.xsrfCookieName);C&&r.set(e.xsrfHeaderName,C)}n===void 0&&r.setContentType(null),"setRequestHeader"in l&&w.forEach(r.toJSON(),function(D,d){l.setRequestHeader(d,D)}),w.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),o&&o!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",jy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",jy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=C=>{l&&(i(!C||C.type?new Ri(null,e,l):C),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let f=oB(u);if(f&&ut.protocols.indexOf(f)===-1){i(new j("Unsupported protocol "+f+":",j.ERR_BAD_REQUEST,e));return}l.send(n||null)})};var sB={http:hc,xhr:$y};w.forEach(sB,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var ew=e=>`- ${e}`,Fx=e=>w.isFunction(e)||e===null||e===!1,wc={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,A,i,n={};for(let r=0;r`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build")),o=t?r.length>1?`since : `+r.map(ew).join(` -`):" "+ew(r[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:sB};function aB(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ri(null,e)}function Fc(e){return aB(e),e.headers=ft.from(e.headers),e.data=ks.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wc.getAdapter(e.adapter||Sr.adapter)(e).then(function(i){return aB(e),i.data=ks.call(e,e.transformResponse,i),i.headers=ft.from(i.headers),i},function(i){return Ss(i)||(aB(e),i&&i.response&&(i.response.data=ks.call(e,e.transformResponse,i.response),i.response.headers=ft.from(i.response.headers))),Promise.reject(i)})}var tw=e=>e instanceof ft?e.toJSON():e;function ZA(e,t){t=t||{};let A={};function i(c,I,l){return w.isPlainObject(c)&&w.isPlainObject(I)?w.merge.call({caseless:l},c,I):w.isPlainObject(I)?w.merge({},I):w.isArray(I)?I.slice():I}function n(c,I,l){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c,l)}else return i(c,I,l)}function r(c,I){if(!w.isUndefined(I))return i(void 0,I)}function o(c,I){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c)}else return i(void 0,I)}function s(c,I,l){if(l in t)return i(c,I);if(l in e)return i(void 0,c)}let a={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,I)=>n(tw(c),tw(I),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(I){let l=a[I]||n,u=l(e[I],t[I],I);w.isUndefined(u)&&l!==s||(A[I]=u)}),A}var Dc="1.6.7";var IB={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{IB[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var Aw={};IB.transitional=function(t,A,i){function n(r,o){return"[Axios v"+Dc+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,s)=>{if(t===!1)throw new j(n(o," has been removed"+(A?" in "+A:"")),j.ERR_DEPRECATED);return A&&!Aw[o]&&(Aw[o]=!0,console.warn(n(o," has been deprecated since v"+A+" and will be removed in the near future"))),t?t(r,o,s):!0}};function Dx(e,t,A){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let r=i[n],o=t[r];if(o){let s=e[r],a=s===void 0||o(s,r,e);if(a!==!0)throw new j("option "+r+" must be "+a,j.ERR_BAD_OPTION_VALUE);continue}if(A!==!0)throw new j("Unknown option "+r,j.ERR_BAD_OPTION)}}var kc={assertOptions:Dx,validators:IB};var Ji=kc.validators,Nr=class{constructor(t){this.defaults=t,this.interceptors={request:new jf,response:new jf}}async request(t,A){try{return await this._request(t,A)}catch(i){if(i instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;let r=n.stack?n.stack.replace(/^.+\n/,""):"";i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=` -`+r):i.stack=r}throw i}}_request(t,A){typeof t=="string"?(A=A||{},A.url=t):A=t||{},A=ZA(this.defaults,A);let{transitional:i,paramsSerializer:n,headers:r}=A;i!==void 0&&kc.assertOptions(i,{silentJSONParsing:Ji.transitional(Ji.boolean),forcedJSONParsing:Ji.transitional(Ji.boolean),clarifyTimeoutError:Ji.transitional(Ji.boolean)},!1),n!=null&&(w.isFunction(n)?A.paramsSerializer={serialize:n}:kc.assertOptions(n,{encode:Ji.function,serialize:Ji.function},!0)),A.method=(A.method||this.defaults.method||"get").toLowerCase();let o=r&&w.merge(r.common,r[A.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),A.headers=ft.concat(o,r);let s=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(A)===!1||(a=a&&C.synchronous,s.unshift(C.fulfilled,C.rejected))});let c=[];this.interceptors.response.forEach(function(C){c.push(C.fulfilled,C.rejected)});let I,l=0,u;if(!a){let f=[Fc.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),u=f.length,I=Promise.resolve(A);l{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r,o=new Promise(s=>{i.subscribe(s),r=s}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,s){i.reason||(i.reason=new Ri(r,o,s),A(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let A=this._listeners.indexOf(t);A!==-1&&this._listeners.splice(A,1)}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},iw=cB;function lB(e){return function(A){return e.apply(null,A)}}function gB(e){return w.isObject(e)&&e.isAxiosError===!0}var uB={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uB).forEach(([e,t])=>{uB[t]=e});var nw=uB;function rw(e){let t=new Ns(e),A=ms(Ns.prototype.request,t);return w.extend(A,Ns.prototype,t,{allOwnKeys:!0}),w.extend(A,t,null,{allOwnKeys:!0}),A.create=function(n){return rw(ZA(e,n))},A}var He=rw(Sr);He.Axios=Ns;He.CanceledError=Ri;He.CancelToken=iw;He.isCancel=Ss;He.VERSION=Dc;He.toFormData=vi;He.AxiosError=j;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=lB;He.isAxiosError=gB;He.mergeConfig=ZA;He.AxiosHeaders=ft;He.formToJSON=e=>mc(w.isHTMLForm(e)?new FormData(e):e);He.getAdapter=wc.getAdapter;He.HttpStatusCode=nw;He.default=He;var Sc=He;var{Axios:O1,AxiosError:L1,CanceledError:Y1,isCancel:P1,CancelToken:V1,VERSION:z1,all:T1,Cancel:_1,isAxiosError:X1,spread:Z1,toFormData:W1,AxiosHeaders:j1,HttpStatusCode:$1,formToJSON:eq,getAdapter:tq,mergeConfig:Aq}=Sc;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var kx=typeof window<"u"?window:null,ow=typeof global<"u"?global:void 0,xr=async(e,t,A)=>{let i={...A},n=null,r=!1,o=null,s=[];if(Array.isArray(t))for(let l of t)l instanceof File&&(s.push(l),r=!0),typeof l=="function"&&(o=l);else t instanceof File&&(r=!0,s.push(t));if(!r)n=JSON.stringify(t),i["content-type"]="aplication/json";else{let l=new FormData;for(let u of s)l.append(u.name,u);n=l,delete i["content-type"],i.enctype="multipart/form-data;"}let a=new URL(e);if(kx!==null){let l=new URL(location.href),u="";if(a.host===l.host||ow&&typeof ow.server_hook=="function"?u=a.toString():u=`${l.protocol}//${l.host}/_proxy/${encodeURIComponent(a.toString())}`,u){if(o)return(await Sc({method:t?"post":void 0,url:u,data:n,onUploadProgress:o})).data;{let f=await(await fetch(u,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(f,sw)}catch{return f}}}}let I=await(await fetch(a,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(I,sw)}catch{return I}},sw=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Fw=K(ww());var Gr=async(e,t)=>{let A=(0,Fw.default)(e,"/"),i=await xr(iG(A,"/_prasi/_")),n="";i&&i.prasi&&(n=i.prasi);let r=AG(A);if(n==="v2")await new Promise(o=>{let s=document,a=s.createElement("script");a.onload=async()=>{o()},localStorage.getItem("api-ts-"+A)||localStorage.setItem("api-ts-"+A,Date.now().toString());let c=localStorage.getItem("api-ts-"+A);t?a.src=`${r}/_prasi/load.js?url=${A}&v3&dev=1&ts=${c}`:a.src=`${r}/_prasi/load.js?url=${A}&v3&ts=${c}`,document.querySelector(`script[src="${a.src}"]`)?o():s.body.appendChild(a)});else{let o=await fetch(r+"/_prasi/api-entry");if(Ce.prasiApi[A]={apiEntry:(await o.json()).srv},t){let s=await fetch(r+"/_prasi/api-types");Ce.prasiApi[A].apiTypes=await s.text(),Ce.prasiApi[A].prismaTypes={"prisma.d.ts":await CB(`${r}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await CB(`${r}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await CB(`${r}/_prasi/prisma/runtime/library.d.ts`)}}}},AG=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},iG=(e,t)=>{let A=new URL(e);return A.pathname=t,A.toString()},CB=async(e,t)=>await(await fetch(e)).text();var xs={},En=e=>{Ce.prasiApi||(Ce.prasiApi={});try{let t=new URL(e),A=`${t.protocol}//${t.host}`;return Ce.prasiApi[A]||xs[A]||(xs[A]=Gr(A,location.hostname.includes("prasi"))),new Proxy({},{get:(i,n)=>{if(n==="_url")return(o,s)=>{let a=new URL(A);a.pathname=o.split("/").filter(l=>l).join("/");let c=new URL(location.href),I="";return a.host===c.host||s===!1?I=a.toString():I=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,I};let r=o=>function(...s){return new Promise(async(a,c)=>{try{let I=Ce.prasiApi[A];if(!I&&xs&&typeof xs[A]=="object"&&(await xs[A],I=Ce.prasiApi[A]),I){if(o==="_raw"){let g=s[0],f=`${A}${g}`,C=await Dw(f,s.slice(1));a(C);return}if(I.apiEntry||(I.apiEntry={}),I.apiEntry&&!I.apiEntry[o]){c(`API ${o.toString()} not found, existing API: +`):" "+ew(r[0]):"as no adapter specified";throw new j("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return i},adapters:sB};function aB(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ri(null,e)}function Fc(e){return aB(e),e.headers=ft.from(e.headers),e.data=ks.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),wc.getAdapter(e.adapter||kr.adapter)(e).then(function(i){return aB(e),i.data=ks.call(e,e.transformResponse,i),i.headers=ft.from(i.headers),i},function(i){return Ss(i)||(aB(e),i&&i.response&&(i.response.data=ks.call(e,e.transformResponse,i.response),i.response.headers=ft.from(i.response.headers))),Promise.reject(i)})}var tw=e=>e instanceof ft?e.toJSON():e;function ZA(e,t){t=t||{};let A={};function i(c,I,l){return w.isPlainObject(c)&&w.isPlainObject(I)?w.merge.call({caseless:l},c,I):w.isPlainObject(I)?w.merge({},I):w.isArray(I)?I.slice():I}function n(c,I,l){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c,l)}else return i(c,I,l)}function r(c,I){if(!w.isUndefined(I))return i(void 0,I)}function o(c,I){if(w.isUndefined(I)){if(!w.isUndefined(c))return i(void 0,c)}else return i(void 0,I)}function s(c,I,l){if(l in t)return i(c,I);if(l in e)return i(void 0,c)}let a={url:r,method:r,data:r,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,I)=>n(tw(c),tw(I),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(I){let l=a[I]||n,u=l(e[I],t[I],I);w.isUndefined(u)&&l!==s||(A[I]=u)}),A}var Dc="1.6.7";var IB={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{IB[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var Aw={};IB.transitional=function(t,A,i){function n(r,o){return"[Axios v"+Dc+"] Transitional option '"+r+"'"+o+(i?". "+i:"")}return(r,o,s)=>{if(t===!1)throw new j(n(o," has been removed"+(A?" in "+A:"")),j.ERR_DEPRECATED);return A&&!Aw[o]&&(Aw[o]=!0,console.warn(n(o," has been deprecated since v"+A+" and will be removed in the near future"))),t?t(r,o,s):!0}};function Dx(e,t,A){if(typeof e!="object")throw new j("options must be an object",j.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),n=i.length;for(;n-- >0;){let r=i[n],o=t[r];if(o){let s=e[r],a=s===void 0||o(s,r,e);if(a!==!0)throw new j("option "+r+" must be "+a,j.ERR_BAD_OPTION_VALUE);continue}if(A!==!0)throw new j("Unknown option "+r,j.ERR_BAD_OPTION)}}var kc={assertOptions:Dx,validators:IB};var Ji=kc.validators,Ur=class{constructor(t){this.defaults=t,this.interceptors={request:new jf,response:new jf}}async request(t,A){try{return await this._request(t,A)}catch(i){if(i instanceof Error){let n;Error.captureStackTrace?Error.captureStackTrace(n={}):n=new Error;let r=n.stack?n.stack.replace(/^.+\n/,""):"";i.stack?r&&!String(i.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(i.stack+=` +`+r):i.stack=r}throw i}}_request(t,A){typeof t=="string"?(A=A||{},A.url=t):A=t||{},A=ZA(this.defaults,A);let{transitional:i,paramsSerializer:n,headers:r}=A;i!==void 0&&kc.assertOptions(i,{silentJSONParsing:Ji.transitional(Ji.boolean),forcedJSONParsing:Ji.transitional(Ji.boolean),clarifyTimeoutError:Ji.transitional(Ji.boolean)},!1),n!=null&&(w.isFunction(n)?A.paramsSerializer={serialize:n}:kc.assertOptions(n,{encode:Ji.function,serialize:Ji.function},!0)),A.method=(A.method||this.defaults.method||"get").toLowerCase();let o=r&&w.merge(r.common,r[A.method]);r&&w.forEach(["delete","get","head","post","put","patch","common"],f=>{delete r[f]}),A.headers=ft.concat(o,r);let s=[],a=!0;this.interceptors.request.forEach(function(C){typeof C.runWhen=="function"&&C.runWhen(A)===!1||(a=a&&C.synchronous,s.unshift(C.fulfilled,C.rejected))});let c=[];this.interceptors.response.forEach(function(C){c.push(C.fulfilled,C.rejected)});let I,l=0,u;if(!a){let f=[Fc.bind(this),void 0];for(f.unshift.apply(f,s),f.push.apply(f,c),u=f.length,I=Promise.resolve(A);l{if(!i._listeners)return;let r=i._listeners.length;for(;r-- >0;)i._listeners[r](n);i._listeners=null}),this.promise.then=n=>{let r,o=new Promise(s=>{i.subscribe(s),r=s}).then(n);return o.cancel=function(){i.unsubscribe(r)},o},t(function(r,o,s){i.reason||(i.reason=new Ri(r,o,s),A(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let A=this._listeners.indexOf(t);A!==-1&&this._listeners.splice(A,1)}static source(){let t;return{token:new e(function(n){t=n}),cancel:t}}},iw=cB;function lB(e){return function(A){return e.apply(null,A)}}function gB(e){return w.isObject(e)&&e.isAxiosError===!0}var uB={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uB).forEach(([e,t])=>{uB[t]=e});var nw=uB;function rw(e){let t=new Ns(e),A=ms(Ns.prototype.request,t);return w.extend(A,Ns.prototype,t,{allOwnKeys:!0}),w.extend(A,t,null,{allOwnKeys:!0}),A.create=function(n){return rw(ZA(e,n))},A}var He=rw(kr);He.Axios=Ns;He.CanceledError=Ri;He.CancelToken=iw;He.isCancel=Ss;He.VERSION=Dc;He.toFormData=vi;He.AxiosError=j;He.Cancel=He.CanceledError;He.all=function(t){return Promise.all(t)};He.spread=lB;He.isAxiosError=gB;He.mergeConfig=ZA;He.AxiosHeaders=ft;He.formToJSON=e=>mc(w.isHTMLForm(e)?new FormData(e):e);He.getAdapter=wc.getAdapter;He.HttpStatusCode=nw;He.default=He;var Sc=He;var{Axios:O1,AxiosError:L1,CanceledError:Y1,isCancel:P1,CancelToken:V1,VERSION:z1,all:T1,Cancel:_1,isAxiosError:X1,spread:Z1,toFormData:W1,AxiosHeaders:j1,HttpStatusCode:$1,formToJSON:eq,getAdapter:tq,mergeConfig:Aq}=Sc;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var kx=typeof window<"u"?window:null,ow=typeof global<"u"?global:void 0,Nr=async(e,t,A)=>{let i={...A},n=null,r=!1,o=null,s=[];if(Array.isArray(t))for(let l of t)l instanceof File&&(s.push(l),r=!0),typeof l=="function"&&(o=l);else t instanceof File&&(r=!0,s.push(t));if(!r)n=JSON.stringify(t),i["content-type"]="aplication/json";else{let l=new FormData;for(let u of s)l.append(u.name,u);n=l,delete i["content-type"],i.enctype="multipart/form-data;"}let a=new URL(e);if(kx!==null){let l=new URL(location.href),u="";if(a.host===l.host||ow&&typeof ow.server_hook=="function"?u=a.toString():u=`${l.protocol}//${l.host}/_proxy/${encodeURIComponent(a.toString())}`,u){if(o)return(await Sc({method:t?"post":void 0,url:u,data:n,onUploadProgress:o})).data;{let f=await(await fetch(u,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(f,sw)}catch{return f}}}}let I=await(await fetch(a,t?{method:"POST",body:n,headers:i}:void 0)).text();try{return JSON.parse(I,sw)}catch{return I}},sw=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Fw=K(ww());var xr=async(e,t)=>{let A=(0,Fw.default)(e,"/"),i=await Nr(iG(A,"/_prasi/_")),n="";i&&i.prasi&&(n=i.prasi);let r=AG(A);if(n==="v2")await new Promise(o=>{let s=document,a=s.createElement("script");a.onload=async()=>{o()},localStorage.getItem("api-ts-"+A)||localStorage.setItem("api-ts-"+A,Date.now().toString());let c=localStorage.getItem("api-ts-"+A);t?a.src=`${r}/_prasi/load.js?url=${A}&v3&dev=1&ts=${c}`:a.src=`${r}/_prasi/load.js?url=${A}&v3&ts=${c}`,document.querySelector(`script[src="${a.src}"]`)?o():s.body.appendChild(a)});else{let o=await fetch(r+"/_prasi/api-entry");if(Ce.prasiApi[A]={apiEntry:(await o.json()).srv},t){let s=await fetch(r+"/_prasi/api-types");Ce.prasiApi[A].apiTypes=await s.text(),Ce.prasiApi[A].prismaTypes={"prisma.d.ts":await CB(`${r}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await CB(`${r}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await CB(`${r}/_prasi/prisma/runtime/library.d.ts`)}}}},AG=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},iG=(e,t)=>{let A=new URL(e);return A.pathname=t,A.toString()},CB=async(e,t)=>await(await fetch(e)).text();var xs={},En=e=>{Ce.prasiApi||(Ce.prasiApi={});try{let t=new URL(e),A=`${t.protocol}//${t.host}`;return Ce.prasiApi[A]||xs[A]||(xs[A]=xr(A,location.hostname.includes("prasi"))),new Proxy({},{get:(i,n)=>{if(n==="_url")return(o,s)=>{let a=new URL(A);a.pathname=o.split("/").filter(l=>l).join("/");let c=new URL(location.href),I="";return a.host===c.host||s===!1?I=a.toString():I=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,I};let r=o=>function(...s){return new Promise(async(a,c)=>{try{let I=Ce.prasiApi[A];if(!I&&xs&&typeof xs[A]=="object"&&(await xs[A],I=Ce.prasiApi[A]),I){if(o==="_raw"){let g=s[0],f=`${A}${g}`,C=await Dw(f,s.slice(1));a(C);return}if(I.apiEntry||(I.apiEntry={}),I.apiEntry&&!I.apiEntry[o]){c(`API ${o.toString()} not found, existing API: - ${Object.keys(I.apiEntry||{}).join(` - - `)}`);return}let l=I.apiEntry[o].url,u=I.apiEntry[o].args;if(l&&u){if(s.length>0&&u.length>0)for(let[C,D]of Object.entries(s)){let d=u[parseInt(C)];u&&u.includes(d)&&D&&typeof D!="string"&&typeof D!="number"||(l=l.replace(`:${d}?`,D+""),l=l.replace(`:${d}`,D+""))}let g=`${A}${l}`,f=await Dw(g,s);a(f)}else console.error(`API Not Found: ${o.toString()}`)}else c("Failed to load API [Proxy]: "+A)}catch(I){c(I)}})};return n==="then"?new Proxy({},{get:(o,s)=>r(s)}):r(n)}})}catch{return null}},Dw=async(e,t)=>await xr(e,t,{"content-type":"application/json"});var Nw=K(Uw());var mn=e=>{let t="";return new Proxy({},{get(A,i){return i==="_batch"?{update:async n=>Hr({name:t,action:"batch_update",table:"",params:{batch:n}},e)}:i==="_schema"?{tables:async()=>Hr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async n=>Hr({name:t,action:"schema_columns",table:n,params:[]},e),rels:async n=>Hr({name:t,action:"schema_rels",table:n,params:[]},e)}:i.startsWith("$")?(...n)=>Hr({name:t,action:"query",table:i,params:n},e):new Proxy({},{get(n,r){return async(...o)=>(i==="query"&&(i=r,r="query"),await Hr({name:t,action:r,table:i,params:o},e))}})}})},Uc={},Hr=async(e,t)=>{let A=new URL(t);A.pathname="/_dbs",e.table&&(A.pathname+=`/${e.table}`);let i=A.toString(),n=(0,Nw.default)(e),r=Uc[n];if(!r||r&&Date.now()-r.timestamp>1e3){Uc[n]={timestamp:Date.now(),promise:xr(i,e,{"content-type":"application/json"}),result:null};let o=await Uc[n].promise;return Uc[n].result=o,o}return await r.promise};function aG(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function IG(e){return e?new Promise((t,A)=>{let i="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),r=()=>{delete window[i],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer=!0,n.type="module",n.onerror=()=>{A(new Error(`Failed to import: ${e}`)),r()},n.onload=()=>{t(window[i]),r()};let s=`import * as m from "${Ce.basehost?Ce.basehost+e:aG(e)}"; window.${i} = m;`,a=new Blob([s],{type:"text/javascript"});n.src=URL.createObjectURL(a),document.head.appendChild(n)}):""}var Nc=IG;var Mr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var xc=async e=>{let t=window;t.exports||(t.exports={});let A=await _db.site.findFirst({where:{id:e.site.id},include:{component_site:!0}});if(A){if(A.component_site)for(let o of A.component_site){let s=`/npm/site/${o.id_site}/site.js`;await Nc(s)}let i=e.site.api_url;if(i||(i=(A.config||{}).api_url||""),!i)return;try{let o=new URL(i);if(i&&o.hostname)try{await Gr(i,!0)}catch{console.warn("Failed to load API [Legacy]:",i)}}catch{}let n=`/npm/site/${e.site.id}/site.js`;await Nc(n),e.site.db.get()||e.site.db.set(mn(i)),e.site.api.get()||e.site.api.set(En(i));let r=window;if(A.js_compiled){let o=A.config,s=(c,I)=>(o.api_url&&!I.api&&(I.api=e.site.api.get(),I.db=e.site.db.get()),I.params=r.params,I.module={},new Function(...Object.keys(I),c)(...Object.values(I))),a={...Mr({site:e.site,mode:e.mode}),types:{},exports:r.exports,load:Nc,render:e.render,module:{exports:{}}};if(await s(A.js_compiled,a),a.module.exports)for(let[c,I]of Object.entries(a.module.exports))r.exports[c]=I}}};var xw=(e,t=0)=>{let A=3735928559^t,i=1103547991^t;for(let n=0,r;n>>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 cG=new TextEncoder,Hw=async e=>{let t=e.site.config.api_url;try{let A=new URL(t);if(t&&A.hostname){await Gr(t,!0);let i=Ce.prasiApi[t];if(i&&i.apiTypes&&i.prismaTypes){let n=JSON.stringify({api:i.apiTypes,prisma:i.prismaTypes}),r=xw(n),o=await e.sync?.code.action({type:"check-typings",site_id:e.site.id,hash:r});if(o?.type==="check-typings"&&!o.hash){let s=Buffer.from(rA(cG.encode(n)));e.sync?.code.action({type:"push-typings",site_id:e.site.id,body:s,hash:r})}}e.script.db||(e.script.db=mn(t)),e.script.api||(e.script.api=En(t))}}catch(A){A&&!A.message.toLowerCase().includes("invalid url")&&console.warn("Failed to load API [Snapshot]:",t)}if(e.site.code.snapshot)for(let[A,i]of Object.entries(e.site.code.snapshot)){let n=new Y.Doc;Y.applyUpdate(n,Et(i.bin)),e.code[A]={doc:n};let r=e.code[A].doc;if(r){let o=r.getMap("map").get("files")?.get("index.js");Gw(e,o),IA(e),e.render(),r.on("update",(s,a)=>{let c=r.getMap("map").get("files")?.get("index.js");Gw(e,c),IA(e),e.render()})}}},Gw=(e,t)=>{if(t){let A=window;e.site.config.api_url&&(A.db=mn(e.site.config.api_url),A.api=En(e.site.config.api_url));let i=Gc(t);if(e.global_prop=Object.keys(i),typeof i=="object")for(let[n,r]of Object.entries(i))A[n]=r}};var QB=async(e,t,A)=>{e.site=t,!e.script.db&&!e.script.api&&(e.site.code.mode==="old"&&!location.pathname.startsWith("/ed/")?await xc({mode:e.mode,site:{api_url:e.site.config.api_url,id:e.site.id,api:{get(){return e.script.api},set(i){e.script.api=i}},db:{get(){return e.script.db},set(i){e.script.db=i}}},render:()=>{}}):await Hw(e))};var Mw=async(e,t,A,i)=>{if(!e.sync)return;e.status="reload";let n=await e.sync.page.load(t);if(!n){e.status="page-not-found",e.render();return}if(n.comps)for(let[r,o]of Object.entries(n.comps))o&&o.snapshot&&await fc(e,r,o.snapshot);if(e.page.cur=n,n.snapshot){let r=new Y.Doc;Y.applyUpdate(r,Et(n.snapshot));let o=e.page.list[n.id];o||(e.page.list[n.id]={},o=e.page.list[n.id]),o.on_update&&o.doc&&o.doc.off("update",o.on_update),o.on_update=async(s,a)=>{if(a==="local"||!e.sync)return;if(o.page.id!==n.id){alert(`Page ID Mismatch! - Refreshing to preventing data loss...`),location.reload();return}let c=await e.sync.yjs.sv_local("page",e.page.cur.id,Buffer.from(rA(s)));if(c){let I=Y.encodeStateAsUpdate(r,Et(c.sv));Y.applyUpdate(r,Et(c.diff),"local"),cc()||await IA(e,{note:A+" page-on-update"}),await e.sync.yjs.diff_local("page",e.page.cur.id,Buffer.from(rA(I))),e.ui.syncing=!1,e.page.entry=r.getMap("map").get("root")?.get("childs")?.map(l=>l.get("id")),rc.should_render_main&&e.render()}},r.on("update",o.on_update),e.page.doc=r,e.page.doc&&(o.page=e.page.cur,o.doc=e.page.doc,e.page.entry=e.page.doc.getMap("map").get("root")?.get("childs")?.map(s=>s.get("id")),Array.isArray(e.page.entry)||e.sync.code.action({type:"flush-page-cache",page_id:t}).then(()=>{location.reload()})),e.page.doc&&await IA(e,{note:A+" page-init"})}e.status="ready",i!==!1&&e.render()};var vw=K(se()),lG=new TextDecoder,yn={list:[],route:null},gG=e=>{let t=JSON.parse(localStorage.getItem("prasi-session")||"null");if(!t&&location.pathname.startsWith("/ed/"))return location.href="/login",(0,vw.jsx)(tn,{note:"logging in"});t?.data?.user?(e.user.id=t.data.user.id,e.user.username=t.data.user.username):(e.user.id="ab1390f5-40d5-448e-a8c3-84b0fb600930",e.user.username="anonymous")},uG=e=>{if(gG(e),location.pathname.startsWith("/vi/")){if(yn.list.length===0){_db.page.findMany({where:{id_site:params.site_id,is_deleted:!1,is_default_layout:!1},select:{id:!0,url:!0}}).then(i=>{yn.list=i,uG(e)});return}if(!yn.route){yn.route=Fr();for(let i of yn.list)yn.route.insert(i.url,i)}let A="/"+location.pathname.split("/").slice(3).join("/");if(!params.page_id){let i=yn.route.lookup(A);if(i&&(params.page_id=i.id,i.params))for(let[n,r]of Object.entries(i.params))["site_id","page_id"].includes(n)||(params[n]=r)}}if(e.sync){if(e.site.id==="--loading--")return!1;if(params.site_id!==e.site.id)return e.site=QA(Pf),e.site.id="--loading--",e.ui.popup.code.init=!1,e.sync.site.load(params.site_id).then(async t=>{t?(await QB(e,t,"from-sync"),e.render()):(alert("Site not found. redirecting..."),location.href="/ed/")}),!1;if(!e.page.cur.id&&!params.page_id&¶ms.site_id&&location.pathname.startsWith("/ed/"))return _db.page.findFirst({where:{is_deleted:!1,is_default_layout:!1,id_site:params.site_id},select:{id:!0}}).then(t=>{if(params.site_id==="_"){alert("asdsa");return}t&&(location.href=`/ed/${params.site_id}/${t.id}`)}),!1}return!e.sync&&!e.sync_assigned?(e.sync_assigned=!0,ry({user_id:e.user.id,site_id:params.site_id,page_id:params.page_id,events:{opened(){Ce.offline?(console.log("reconnected!"),Ce.offline=!1,e.ui.syncing=!0,e.render()):(Ce.offline=!1,e.render())},shakehand(t){e.user.client_id=t},disconnected(){return console.log("offline, reconnecting..."),Ce.offline=!0,e.render(),{reconnect:!0}},async editor_start(t){params.site_id!==t.site_id||params.page_id!==t.page_id?e.page.cur.id||(e.site.id=t.site_id,e.page.cur.id=t.page_id,location.pathname.startsWith("/ed/")&&(location.href=`/ed/${t.site_id}/${t.page_id}`)):(e.site.id=t.site_id,e.page.cur.id=t.page_id,e.render())},site_updated(t){for(let[A,i]of Object.entries(t))A==="js"||A==="js_compiled"?e.site[A]=lG.decode(Et(i)):e.site[A]=i;e.render()},async remote_svlocal(t){let A=null;if(t.type==="page"&&e.page.cur.id===t.id?A=e.page.doc:t.type==="comp"&&e.comp.list[t.id]?A=e.comp.list[t.id].doc:t.type==="code"&&(A=e.code.site.doc),A&&e.sync){let i=RE(A,Et(t.sv_local)),n=KE(A),r=Buffer.from(rA(n)),o=Buffer.from(rA(i)),s=await e.sync.yjs.sv_remote(t.type,t.id,r,o);if(s){if(vE(A,Et(s.diff),"sv_remote"),t.type==="page")delete e.preview.meta_cache[t.id],await IA(e,{note:"sv_remote"});else if(t.type==="comp"){let a=await uc(e,A,t.id);a&&(e.comp.list[t.id].meta=a.meta,e.comp.list[t.id].tree=a.tree),await IA(e,{note:"sv_remote"})}e.render()}}}}}).then(t=>{e.sync=t}),!1):params.page_id!==e.page.cur.id&&location.pathname.startsWith("/ed")?(Mw(e,params.page_id,"change page"),!1):!0},Gc=src=>{if(src){let module={exports:{__esModule:!0}};eval(`try { + - `)}`);return}let l=I.apiEntry[o].url,u=I.apiEntry[o].args;if(l&&u){if(s.length>0&&u.length>0)for(let[C,D]of Object.entries(s)){let d=u[parseInt(C)];u&&u.includes(d)&&D&&typeof D!="string"&&typeof D!="number"||(l=l.replace(`:${d}?`,D+""),l=l.replace(`:${d}`,D+""))}let g=`${A}${l}`,f=await Dw(g,s);a(f)}else console.error(`API Not Found: ${o.toString()}`)}else c("Failed to load API [Proxy]: "+A)}catch(I){c(I)}})};return n==="then"?new Proxy({},{get:(o,s)=>r(s)}):r(n)}})}catch{return null}},Dw=async(e,t)=>await Nr(e,t,{"content-type":"application/json"});var Nw=K(Uw());var mn=e=>{let t="";return new Proxy({},{get(A,i){return i==="_batch"?{update:async n=>Gr({name:t,action:"batch_update",table:"",params:{batch:n}},e)}:i==="_schema"?{tables:async()=>Gr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async n=>Gr({name:t,action:"schema_columns",table:n,params:[]},e),rels:async n=>Gr({name:t,action:"schema_rels",table:n,params:[]},e)}:i.startsWith("$")?(...n)=>Gr({name:t,action:"query",table:i,params:n},e):new Proxy({},{get(n,r){return async(...o)=>(i==="query"&&(i=r,r="query"),await Gr({name:t,action:r,table:i,params:o},e))}})}})},Uc={},Gr=async(e,t)=>{let A=new URL(t);A.pathname="/_dbs",e.table&&(A.pathname+=`/${e.table}`);let i=A.toString(),n=(0,Nw.default)(e),r=Uc[n];if(!r||r&&Date.now()-r.timestamp>1e3){Uc[n]={timestamp:Date.now(),promise:Nr(i,e,{"content-type":"application/json"}),result:null};let o=await Uc[n].promise;return Uc[n].result=o,o}return await r.promise};function aG(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function IG(e){return e?new Promise((t,A)=>{let i="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),r=()=>{delete window[i],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer=!0,n.type="module",n.onerror=()=>{A(new Error(`Failed to import: ${e}`)),r()},n.onload=()=>{t(window[i]),r()};let s=`import * as m from "${Ce.basehost?Ce.basehost+e:aG(e)}"; window.${i} = m;`,a=new Blob([s],{type:"text/javascript"});n.src=URL.createObjectURL(a),document.head.appendChild(n)}):""}var Nc=IG;var Hr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var xc=async e=>{let t=window;t.exports||(t.exports={});let A=await _db.site.findFirst({where:{id:e.site.id},include:{component_site:!0}});if(A){if(A.component_site)for(let o of A.component_site){let s=`/npm/site/${o.id_site}/site.js`;await Nc(s)}let i=e.site.api_url;if(i||(i=(A.config||{}).api_url||""),!i)return;try{let o=new URL(i);if(i&&o.hostname)try{await xr(i,!0)}catch{console.warn("Failed to load API [Legacy]:",i)}}catch{}let n=`/npm/site/${e.site.id}/site.js`;await Nc(n),e.site.db.get()||e.site.db.set(mn(i)),e.site.api.get()||e.site.api.set(En(i));let r=window;if(A.js_compiled){let o=A.config,s=(c,I)=>(o.api_url&&!I.api&&(I.api=e.site.api.get(),I.db=e.site.db.get()),I.params=r.params,I.module={},new Function(...Object.keys(I),c)(...Object.values(I))),a={...Hr({site:e.site,mode:e.mode}),types:{},exports:r.exports,load:Nc,render:e.render,module:{exports:{}}};if(await s(A.js_compiled,a),a.module.exports)for(let[c,I]of Object.entries(a.module.exports))r.exports[c]=I}}};var xw=(e,t=0)=>{let A=3735928559^t,i=1103547991^t;for(let n=0,r;n>>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 cG=new TextEncoder,Hw=async e=>{let t=e.site.config.api_url;try{let A=new URL(t);if(t&&A.hostname){await xr(t,!0);let i=Ce.prasiApi[t];if(i&&i.apiTypes&&i.prismaTypes){let n=JSON.stringify({api:i.apiTypes,prisma:i.prismaTypes}),r=xw(n),o=await e.sync?.code.action({type:"check-typings",site_id:e.site.id,hash:r});if(o?.type==="check-typings"&&!o.hash){let s=Buffer.from(rA(cG.encode(n)));e.sync?.code.action({type:"push-typings",site_id:e.site.id,body:s,hash:r})}}e.script.db||(e.script.db=mn(t)),e.script.api||(e.script.api=En(t))}}catch(A){A&&!A.message.toLowerCase().includes("invalid url")&&console.warn("Failed to load API [Snapshot]:",t)}if(e.site.code.snapshot)for(let[A,i]of Object.entries(e.site.code.snapshot)){let n=new Y.Doc;Y.applyUpdate(n,Et(i.bin)),e.code[A]={doc:n};let r=e.code[A].doc;if(r){let o=r.getMap("map").get("files")?.get("index.js");Gw(e,o),IA(e),e.render(),r.on("update",(s,a)=>{let c=r.getMap("map").get("files")?.get("index.js");Gw(e,c),IA(e),e.render()})}}},Gw=(e,t)=>{if(t){let A=window;e.site.config.api_url&&(A.db=mn(e.site.config.api_url),A.api=En(e.site.config.api_url));let i=Gc(t);if(e.global_prop=Object.keys(i),typeof i=="object")for(let[n,r]of Object.entries(i))A[n]=r}};var QB=async(e,t,A)=>{e.site=t,!e.script.db&&!e.script.api&&(e.site.code.mode==="old"&&!location.pathname.startsWith("/ed/")?await xc({mode:e.mode,site:{api_url:e.site.config.api_url,id:e.site.id,api:{get(){return e.script.api},set(i){e.script.api=i}},db:{get(){return e.script.db},set(i){e.script.db=i}}},render:()=>{}}):await Hw(e))};var Mw=async(e,t,A,i)=>{if(!e.sync)return;e.status="reload";let n=await e.sync.page.load(t);if(!n){e.status="page-not-found",e.render();return}if(n.comps)for(let[r,o]of Object.entries(n.comps))o&&o.snapshot&&await fc(e,r,o.snapshot);if(e.page.cur=n,n.snapshot){let r=new Y.Doc;Y.applyUpdate(r,Et(n.snapshot));let o=e.page.list[n.id];o||(e.page.list[n.id]={},o=e.page.list[n.id]),o.on_update&&o.doc&&o.doc.off("update",o.on_update),o.on_update=async(s,a)=>{if(a==="local"||!e.sync)return;if(o.page.id!==n.id){alert(`Page ID Mismatch! + Refreshing to preventing data loss...`),location.reload();return}let c=await e.sync.yjs.sv_local("page",e.page.cur.id,Buffer.from(rA(s)));if(c){let I=Y.encodeStateAsUpdate(r,Et(c.sv));Y.applyUpdate(r,Et(c.diff),"local"),cc()||await IA(e,{note:A+" page-on-update"}),await e.sync.yjs.diff_local("page",e.page.cur.id,Buffer.from(rA(I))),e.ui.syncing=!1,e.page.entry=r.getMap("map").get("root")?.get("childs")?.map(l=>l.get("id")),rc.should_render_main&&e.render()}},r.on("update",o.on_update),e.page.doc=r,e.page.doc&&(o.page=e.page.cur,o.doc=e.page.doc,e.page.entry=e.page.doc.getMap("map").get("root")?.get("childs")?.map(s=>s.get("id")),Array.isArray(e.page.entry)||e.sync.code.action({type:"flush-page-cache",page_id:t}).then(()=>{location.reload()})),e.page.doc&&await IA(e,{note:A+" page-init"})}e.status="ready",i!==!1&&e.render()};var vw=K(se()),lG=new TextDecoder,yn={list:[],route:null},gG=e=>{let t=JSON.parse(localStorage.getItem("prasi-session")||"null");if(!t&&location.pathname.startsWith("/ed/"))return location.href="/login",(0,vw.jsx)(tn,{note:"logging in"});t?.data?.user?(e.user.id=t.data.user.id,e.user.username=t.data.user.username):(e.user.id="ab1390f5-40d5-448e-a8c3-84b0fb600930",e.user.username="anonymous")},uG=e=>{if(gG(e),location.pathname.startsWith("/vi/")){if(yn.list.length===0){_db.page.findMany({where:{id_site:params.site_id,is_deleted:!1,is_default_layout:!1},select:{id:!0,url:!0}}).then(i=>{yn.list=i,uG(e)});return}if(!yn.route){yn.route=wr();for(let i of yn.list)yn.route.insert(i.url,i)}let A="/"+location.pathname.split("/").slice(3).join("/");if(!params.page_id){let i=yn.route.lookup(A);if(i&&(params.page_id=i.id,i.params))for(let[n,r]of Object.entries(i.params))["site_id","page_id"].includes(n)||(params[n]=r)}}if(e.sync){if(e.site.id==="--loading--")return!1;if(params.site_id!==e.site.id)return e.site=QA(Pf),e.site.id="--loading--",e.ui.popup.code.init=!1,e.sync.site.load(params.site_id).then(async t=>{t?(await QB(e,t,"from-sync"),e.render()):(alert("Site not found. redirecting..."),location.href="/ed/")}),!1;if(!e.page.cur.id&&!params.page_id&¶ms.site_id&&location.pathname.startsWith("/ed/"))return _db.page.findFirst({where:{is_deleted:!1,is_default_layout:!1,id_site:params.site_id},select:{id:!0}}).then(t=>{if(params.site_id==="_"){alert("asdsa");return}t&&(location.href=`/ed/${params.site_id}/${t.id}`)}),!1}return!e.sync&&!e.sync_assigned?(e.sync_assigned=!0,ry({user_id:e.user.id,site_id:params.site_id,page_id:params.page_id,events:{opened(){Ce.offline?(console.log("reconnected!"),Ce.offline=!1,e.ui.syncing=!0,e.render()):(Ce.offline=!1,e.render())},shakehand(t){e.user.client_id=t},disconnected(){return console.log("offline, reconnecting..."),Ce.offline=!0,e.render(),{reconnect:!0}},async editor_start(t){params.site_id!==t.site_id||params.page_id!==t.page_id?e.page.cur.id||(e.site.id=t.site_id,e.page.cur.id=t.page_id,location.pathname.startsWith("/ed/")&&(location.href=`/ed/${t.site_id}/${t.page_id}`)):(e.site.id=t.site_id,e.page.cur.id=t.page_id,e.render())},site_updated(t){for(let[A,i]of Object.entries(t))A==="js"||A==="js_compiled"?e.site[A]=lG.decode(Et(i)):e.site[A]=i;e.render()},async remote_svlocal(t){let A=null;if(t.type==="page"&&e.page.cur.id===t.id?A=e.page.doc:t.type==="comp"&&e.comp.list[t.id]?A=e.comp.list[t.id].doc:t.type==="code"&&(A=e.code.site.doc),A&&e.sync){let i=RE(A,Et(t.sv_local)),n=KE(A),r=Buffer.from(rA(n)),o=Buffer.from(rA(i)),s=await e.sync.yjs.sv_remote(t.type,t.id,r,o);if(s){if(vE(A,Et(s.diff),"sv_remote"),t.type==="page")delete e.preview.meta_cache[t.id],await IA(e,{note:"sv_remote"});else if(t.type==="comp"){let a=await uc(e,A,t.id);a&&(e.comp.list[t.id].meta=a.meta,e.comp.list[t.id].tree=a.tree),await IA(e,{note:"sv_remote"})}e.render()}}}}}).then(t=>{e.sync=t}),!1):params.page_id!==e.page.cur.id&&location.pathname.startsWith("/ed")?(Mw(e,params.page_id,"change page"),!1):!0},Gc=src=>{if(src){let module={exports:{__esModule:!0}};eval(`try { ${src} } catch(e) { console.error(e); @@ -90,7 +90,7 @@ ${d}`),f.pop(),`{${k}}`}case"number":return isFinite(g)?String(g):t?t(g):"null"; > img { opacity: 0.6; } - `);var Rr=window,s0=(e,t)=>{let A=kt(e,"font",t,{});if(A.family){Rr.loadedFonts||(Rr.loadedFonts=[]);let n=`:wght@${[300,400,500,600].join(";")}`,r=A.family.replace(/ /g,"+");if(Rr.loadedFonts.indexOf(A.family)<0){Rr.loadedFonts.push(A.family);let o=document,s=`https://prasi.avolut.com/_font/css2?family=${r}${n}`;if(!o.querySelector(`link[href="${s}]`)){let a=o.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=s,o.head.appendChild(a)}}}return!A.family&&Rr.defaultFont&&(A.family=Rr.defaultFont),cx(A.color&&` + `);var vr=window,s0=(e,t)=>{let A=kt(e,"font",t,{});if(A.family){vr.loadedFonts||(vr.loadedFonts=[]);let n=`:wght@${[300,400,500,600].join(";")}`,r=A.family.replace(/ /g,"+");if(vr.loadedFonts.indexOf(A.family)<0){vr.loadedFonts.push(A.family);let o=document,s=`https://prasi.avolut.com/_font/css2?family=${r}${n}`;if(!o.querySelector(`link[href="${s}]`)){let a=o.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=s,o.head.appendChild(a)}}}return!A.family&&vr.defaultFont&&(A.family=vr.defaultFont),cx(A.color&&` color: ${A.color}; `,A.whitespace==="whitespace-normal"&&` word-break: break-word; @@ -127,13 +127,13 @@ ${d}`),f.pop(),`{${k}}`}case"number":return isFinite(g)?String(g):t?t(g):"null"; ${n0(e,t.mode)} ${Lw(e,t.mode)} ${s0(e,t.mode)} - `,(t?.hover||t?.active)&&o0({item:e,hover:t?.hover,active:t?.active}),Ow(e,t.mode)])}catch(A){console.log(A)}return cx([])};var c0=K(se()),Hs=(e,t,A,i)=>{let n=t.item,r;n.component?.style&&(r={style:n.component.style,className:FB(n.component.style,{mode:e.mode})});let o={className:FB(n,{mode:e.mode}),inherit:r},s={},a=t.item.childs,c;return t.item.type==="text"?(c=null,o.dangerouslySetInnerHTML={__html:t.item.html||""}):c=Array.isArray(a)&&a?.map(I=>{if(!I)return null;let{id:l}=I,u=A?e.layout?.meta[l]:e.meta[l];return u?(0,c0.jsx)(Jr,{meta:u,is_layout:A,passprop:i},l):null}),o.children=c,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete o.children,delete o.dangerouslySetInnerHTML),{props:o,text_props:s}};var Q0=K(ze());var Jc=K(ze());var vc=K(ze());var DB=K(ze());var u0=K(se()),g0=(e,t,A)=>i=>{if(A.item.script||(A.item.script={}),A.item.script.passprop||(A.item.script.passprop={}),A.item.script.passprop){let n=!1;for(let[r,o]of Object.entries(i))["children","key"].includes(r)||(n=!0,A.item.script.passprop[r]={end:0,start:0,value:o})}if(!Array.isArray(i.children)&&!(0,DB.isValidElement)(i.children)&&typeof i.children=="object"){let n=i.children.id;if(n){let r=e.meta[n];return(0,u0.jsx)(Ms,{is_layout:t,meta:r})}}return kB(i,A.script?.scope)},kB=(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(l0(n,A,t));return i}return l0(A.children,A,t)},l0=(e,t,A)=>{if((0,DB.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,passprop:{...A,...i}}}}return e};var f0=(e,t,A)=>i=>{let{children:n}=i,r=e.script?.init_local_effect,o=t?e.layout?.meta:e.meta,a=(0,vc.useRef)(i.value).current;return a.render=A.render,Rc(e,A,A.script?.scope),i.hook&&i.hook(a),(0,vc.useEffect)(()=>{let c=A.item.id;if(A.parent?.instance_id&&o){let l=o[A.parent?.instance_id];if(l&&l.instances){for(let[u,g]of Object.entries(l.instances[A.parent.instance_id]))if(g===A.item.id){c=u;break}}}return!r[c]&&(typeof r=="object"&&(r[c]=!0),(async()=>i.effect&&await i.effect(a))()),()=>{}},[location.pathname]),kB(n,{...A.script?.scope,[i.name]:a})};var SB=K(se()),B0=(e,t,A,i)=>{let n=Hs(e,t,A,i);e.visit&&e.visit(t,n),t.script?t.script.scope=i:t.script={scope:i,result:null,Local:f0(e,A,t),PassProp:g0(e,A,t)};let r=t.script,o=window.exports,s={useEffect:Jc.useEffect,children:n.props.children,props:n.props,Local:r.Local,db:e.site.db,api:e.site.api,PassProp:r?.PassProp,ErrorBox:UA,newElement:()=>{},render:l=>{r.result=(0,SB.jsx)(Jc.Suspense,{children:l})},params,...Mr(e),...o,...i};if(typeof i=="object"){for(let[l,u]of Object.entries(i))if(typeof u=="object"&&u&&u._jsx){let g=u;s[l]=(0,SB.jsx)(lH,{fn:g.fn,passprop:i,meta:t})}}!Ce.isEditor&&t.item.adv?.js&&Ic(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",c=NB(a,UB)||"";new Function(...Object.keys(s),`// ${t.item.name}: ${t.item.id} + `,(t?.hover||t?.active)&&o0({item:e,hover:t?.hover,active:t?.active}),Ow(e,t.mode)])}catch(A){console.log(A)}return cx([])};var c0=K(se()),Hs=(e,t,A,i)=>{let n=t.item,r;n.component?.style&&(r={style:n.component.style,className:FB(n.component.style,{mode:e.mode})});let o={className:FB(n,{mode:e.mode}),inherit:r},s={},a=t.item.childs,c;return t.item.type==="text"?(c=null,o.dangerouslySetInnerHTML={__html:t.item.html||""}):c=Array.isArray(a)&&a?.map(I=>{if(!I)return null;let{id:l}=I,u=A?e.layout?.meta[l]:e.meta[l];return u?(0,c0.jsx)(Rr,{meta:u,is_layout:A,passprop:i},l):null}),o.children=c,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete o.children,delete o.dangerouslySetInnerHTML),{props:o,text_props:s}};var Q0=K(ze());var Jc=K(ze());var vc=K(ze());var DB=K(ze());var u0=K(se()),g0=(e,t,A)=>i=>{if(A.item.script||(A.item.script={}),A.item.script.passprop||(A.item.script.passprop={}),A.item.script.passprop){let n=!1;for(let[r,o]of Object.entries(i))["children","key"].includes(r)||(n=!0,A.item.script.passprop[r]={end:0,start:0,value:o})}if(!Array.isArray(i.children)&&!(0,DB.isValidElement)(i.children)&&typeof i.children=="object"){let n=i.children.id;if(n){let r=e.meta[n];return(0,u0.jsx)(Ms,{is_layout:t,meta:r})}}return kB(i,A.script?.scope)},kB=(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(l0(n,A,t));return i}return l0(A.children,A,t)},l0=(e,t,A)=>{if((0,DB.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,passprop:{...A,...i}}}}return e};var f0=(e,t,A)=>i=>{let{children:n}=i,r=e.script?.init_local_effect,o=t?e.layout?.meta:e.meta,a=(0,vc.useRef)(i.value).current;return a.render=A.render,Rc(e,A,A.script?.scope),i.hook&&i.hook(a),(0,vc.useEffect)(()=>{let c=A.item.id;if(A.parent?.instance_id&&o){let l=o[A.parent?.instance_id];if(l&&l.instances){for(let[u,g]of Object.entries(l.instances[A.parent.instance_id]))if(g===A.item.id){c=u;break}}}return!r[c]&&(typeof r=="object"&&(r[c]=!0),(async()=>i.effect&&await i.effect(a))()),()=>{}},[location.pathname]),kB(n,{...A.script?.scope,[i.name]:a})};var SB=K(se()),B0=(e,t,A,i)=>{let n=Hs(e,t,A,i);e.visit&&e.visit(t,n),t.script?t.script.scope=i:t.script={scope:i,result:null,Local:f0(e,A,t),PassProp:g0(e,A,t)};let r=t.script,o=window.exports,s={useEffect:Jc.useEffect,children:n.props.children,props:n.props,Local:r.Local,db:e.site.db,api:e.site.api,PassProp:r?.PassProp,ErrorBox:UA,newElement:()=>{},render:l=>{r.result=(0,SB.jsx)(Jc.Suspense,{children:l})},params,...Hr(e),...o,...i};if(typeof i=="object"){for(let[l,u]of Object.entries(i))if(typeof u=="object"&&u&&u._jsx){let g=u;s[l]=(0,SB.jsx)(lH,{fn:g.fn,passprop:i,meta:t})}}!Ce.isEditor&&t.item.adv?.js&&Ic(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",c=NB(a,UB)||"";new Function(...Object.keys(s),`// ${t.item.name}: ${t.item.id} ${c} - `)(...Object.values(s)),Rc(e,t,i)},lH=({fn:e,meta:t,passprop:A})=>e({passprop:A,meta:t}),UB={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},NB=(e,t)=>{let A=e;for(let[i,n]of Object.entries(t))A=A.replaceAll(i,n);return A};var C0=K(se()),d0=(e,t,A,i)=>{if(t.item.component?.id){t.item.script||(t.item.script={});let r={...window.exports,db:e.site.db,api:e.site.api,...Mr(e),...i,params};t.item.script.props={};let o=new Set;if(t.item.component.props)for(let[s,a]of Object.entries(t.item.component.props))try{if(a.meta?.type==="content-element"){let g={_jsx:!0,fn:f=>{let C=a.content?.id;if(C){let D=A?e.layout?.meta[C]:e.meta[C];if(!D)return null;let d=t.instances;if(!f.meta.item.originalId||!d||!d[t.item.id])return null;let Q=f.meta.item.originalId;if(D.mitem&&(a.jsxCalledBy&&(!a.jsxCalledBy.includes(Q)||a.jsxCalledBy.length!==2)||!a.jsxCalledBy)){let y=t.mitem?.get("component")?.get("props")?.get(s);if(y){let k=y.get("jsxCalledBy");!k||typeof k!="object"?y.set("jsxCalledBy",[t.item.id,Q]):(!k.includes(Q)||k.length!==2||k[0]!==t.item.id||k[1]!==Q)&&y.set("jsxCalledBy",[t.item.id,Q])}}return(0,C0.jsx)(Jr,{meta:D,passprop:f.passprop,is_layout:A})}return null}};r[s]=g,i&&(i[s]=g);continue}a.value&&Ic(e,a.value);let c=a.valueBuilt||"",I=NB(c,UB)||"",l=new Function(...Object.keys(r),`// [${t.item.name}] ${s}: ${t.item.id} + `)(...Object.values(s)),Rc(e,t,i)},lH=({fn:e,meta:t,passprop:A})=>e({passprop:A,meta:t}),UB={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},NB=(e,t)=>{let A=e;for(let[i,n]of Object.entries(t))A=A.replaceAll(i,n);return A};var C0=K(se()),d0=(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,...Hr(e),...i,params};t.item.script.props={};let o=new Set;if(t.item.component.props)for(let[s,a]of Object.entries(t.item.component.props))try{if(a.meta?.type==="content-element"){let g={_jsx:!0,fn:f=>{let C=a.content?.id;if(C){let D=A?e.layout?.meta[C]:e.meta[C];if(!D)return null;let d=t.instances;if(!f.meta.item.originalId||!d||!d[t.item.id])return null;let Q=f.meta.item.originalId;if(D.mitem&&(a.jsxCalledBy&&(!a.jsxCalledBy.includes(Q)||a.jsxCalledBy.length!==2)||!a.jsxCalledBy)){let y=t.mitem?.get("component")?.get("props")?.get(s);if(y){let k=y.get("jsxCalledBy");!k||typeof k!="object"?y.set("jsxCalledBy",[t.item.id,Q]):(!k.includes(Q)||k.length!==2||k[0]!==t.item.id||k[1]!==Q)&&y.set("jsxCalledBy",[t.item.id,Q])}}return(0,C0.jsx)(Rr,{meta:D,passprop:f.passprop,is_layout:A})}return null}};r[s]=g,i&&(i[s]=g);continue}a.value&&Ic(e,a.value);let c=a.valueBuilt||"",I=NB(c,UB)||"",l=new Function(...Object.keys(r),`// [${t.item.name}] ${s}: ${t.item.id} return ${I} `);t.item.script.props[s]={value:I};let u=l(...Object.values(r));typeof u=="function"&&(t.item.script.props[s].fn=u,u=(...g)=>t.item.script?.props?.[s].fn(...g)),r[s]=u,i&&(i[s]=u)}catch{o.add(s)}}},Rc=(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 h0=K(se()),xB=({meta:e,passprop:t,is_layout:A})=>{let i=wi(qi,"VI"),[n,r]=(0,Q0.useState)({});e.render=()=>{r({})};let o=t;return e.item.component?.id&&(o||(o={}),d0(i,e,A,o)),e.item.adv?.js&&(B0(i,e,A,o),e.script)?e.script.result:(0,h0.jsx)(Ms,{meta:e,passprop:o,is_layout:A})};var Ze=K(se()),gH=70,qc={enabled:!1,meta:{}},Jr=({meta:e,children:t,passprop:A,is_layout:i})=>{if(qc.enabled){let n=qc.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>gH)return(0,Ze.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Ze.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,Ze.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",n[e.item.id]?.count," times in less than 1 second."]})]})}return!e||e.item.hidden?null:e.item.adv?.js||e.item.component?.id?(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(xB,{meta:e,is_layout:i,passprop:A})}):(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(Ms,{meta:e,passprop:A,is_layout:i})})},Ms=({meta:e,passprop:t,is_layout:A})=>{let i=wi(qi,"VI");if(A&&e.item.name==="children"){let r=[];for(let o of i.entry){let s=i.meta[o];if(s.item.adv?.js||s.item.component?.id)r.push((0,Ze.jsx)(UA,{meta:s,children:(0,Ze.jsx)(xB,{meta:s,is_layout:!1,passprop:t})}));else{let a=Hs(i,s,!1,t);i.visit&&i.visit(s,a),r.push((0,Ze.jsx)("div",{...a.props}))}}return(0,Ze.jsx)(Ze.Fragment,{children:r.map((o,s)=>(0,Ze.jsx)(p0.Fragment,{children:o},s))})}let n=Hs(i,e,A,t);return i.visit&&i.visit(e,n),(0,Ze.jsx)("div",{...n.props})};var qr=K(se()),E0=({})=>{let e=wi(qi,"VI"),t=Ei({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,qr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,qr.jsx)(tn,{backdrop:!1})});let A=!!e.layout?.entry&&e.layout.entry.length>0,i=e.entry;return A&&e.layout?.entry&&(i=e.layout?.entry),(0,qr.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(i)&&i.map(n=>{let r=A?e.layout?.meta[n]:e.meta[n];return r&&Element?(0,qr.jsx)(UA,{children:(0,qr.jsx)(Jr,{meta:r,is_layout:A})},r.item.id):null})})};var bc=K(se()),Kc=window,m0=({meta:e,entry:t,api_url:A,site_id:i,api:n,mode:r,db:o,visit:s,script:a,page_id:c,render_stat:I,on_status_changed:l,on_preload:u,layout:g})=>{let f=wi(qi,"VI");return f.mode=r,f.entry=t,f.on_preload=u,Kc.siteurl=C=>{if(f.site.api_url&&(f.site_url||(f.site_url=new URL(f.site.api_url))),f.site_url){let D=f.site_url,d=C;return d.startsWith("/")||(d="/"+d),`${D.protocol}//${D.hostname}${d}`}return C},Kc.isMobile=r==="mobile",Kc.isDesktop=r==="desktop",Kc.preload=C=>{f.page.navs[c]||(f.page.navs[c]=new Set);let D=typeof C=="string"?[C]:C;for(let d of D)f.page.navs[c].add(d);return clearTimeout(pn.timeout),pn.timeout=setTimeout(()=>{f.on_preload&&f.on_preload({urls:Array.from(f.page.navs[c])})},100),""},f.layout=g,f.page.cur.id=c,f.on_status_changes=l,I==="disabled"&&(qc.enabled=!1),f.meta!==e&&(f.meta=e),a&&(f.script.init_local_effect=a.init_local_effect),f.visit=s,f.status==="init"&&(f.site.db=o,f.site.api=n,Rw(f,{api_url:A,site_id:i})),u&&(0,Oc.useEffect)(()=>{setTimeout(()=>{let C=f.page.navs[f.page.cur.id];C&&u({urls:Array.from(C)})},500)},[f.page.cur.id]),(0,bc.jsx)(UA,{children:(0,bc.jsx)(Oc.Suspense,{children:(0,bc.jsx)(E0,{})})})};var GB=window,v={root:null,url(...e){let t=e.map(i=>Array.isArray(i)?i.join(""):i).join(""),A=this.root.toString();return A.endsWith("/")&&(A=A.substring(0,A.length-1)),t.startsWith("/")?A+t:A+"/"+t},get pathname(){let e=location.pathname.substring(v.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:GB._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:new Set},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},y0=()=>{if(!v.root){let e=new URL(location.href);GB._prasi.basepath&&(e.pathname=GB._prasi.basepath),v.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),v.root.pathname.endsWith("/")&&(v.root.pathname=v.root.pathname.substring(0,v.root.length-1))}};var Dn=async e=>{let t=v.comp;for(let A of e)A&&A.type!=="text"&&HB(A);if(t.pending.size>0){let A=!0,i=[];if(A){for(let n of[...t.pending])t.pending.delete(n);await Dn(i);return}}if(t.pending.size>0)try{let A=await(await fetch(v.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...t.pending]})})).json();for(let[i,n]of Object.entries(A))t.pending.delete(i),t.list[i]=n,await Bs(`comp-${i}`,n);await Dn(Object.values(A))}catch{}},HB=e=>{let t=v.comp;if(e.type==="item"){let A=e.component?.id;if(A){!t.list[A]&&!t.pending.has(A)&&t.pending.add(A);for(let i of Object.values(e.component?.props||{}))i.content&&i.meta?.type==="content-element"&&HB(i.content)}}if(e.childs)for(let A of e.childs)A&&A.type!=="text"&&HB(A)};var w0=e=>new Promise(async t=>{let A=!1,i=await mr(`page-${e}`);i&&(t(i),A=!0);let n=await(await fetch(v.url`_prasi/page/${e}`)).json();A||t(n)}),uH=e=>new Promise(async t=>{let A={},i=[...new Set(e)],n=!0;for(let o of i){let s=await mr(`page-${o}`);if(s)A[o]=s;else{n=!1;break}}n&&t(A);let r=await(await fetch(v.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:i})})).json();n||t(r)}),F0=async e=>{let t=e.map(A=>v.route.router?.lookup(A)).filter(A=>A&&A.id);return await uH(t.map(A=>A?.id))};var k0=K(D0()),S0=()=>{let e=v;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,k0.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 fH=()=>new Promise(async e=>{let t=!1,A=await(await fetch(v.url`_prasi/route`)).json();t||e(A)}),U0=async()=>{let e=Fr(),t=[];try{let A=await fH();if(A&&A.site&&A.urls){A.layout&&(v.layout.id=A.layout.id,v.layout.root=A.layout.root,v.layout.meta={},v.layout.root&&(await Dn(v.layout.root.childs),Yc(v.layout.meta,v.layout.root))),v.site=A.site,v.site.code={mode:"vsc"},await BH(),v.site.api=En(v.site.api_url),v.site.db=mn(v.site.api_url);let i=window;i.serverurl=v.site.api_url,i.db=v.site.db,i.api=v.site.api;for(let n of A.urls)e.insert(n.url,n),t.push(n)}}catch{}return{router:e,pages:t}},BH=()=>new Promise(e=>{let t=document,A=t.createElement("script");A.onload=async()=>{e()};let i=v.site.api_url;try{new URL(i)}catch{location.hostname==="localhost"?i="http://localhost:4550":i="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+i)||localStorage.setItem("api-ts-"+i,Date.now().toString());let n=localStorage.getItem("api-ts-"+i);A.src=`${i}/_prasi/load.js?url=${i}&v3&ts=${n}`,document.querySelector(`script[src="${A.src}"]`)?e():t.body.appendChild(A)}),Yc=(e,t)=>{for(let A of t.childs)vt({comps:v.comp.list,meta:e,mode:"page"},{item:A})};var kn=window;var jA=K(se()),MB=()=>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",x0=()=>{let e=Ei({page_id:""}),[t,A]=(0,N0.useState)({}),i=()=>A({});kn.prasiContext.render=i;let n=mu.Provider,r=MB()&&location.pathname.startsWith("/prod");if(v.route.status!=="ready")return v.route.status==="init"&&(v.route.status="loading",U0().then(async({router:I,pages:l})=>{S0(),v.route.status="ready",v.route.router=I,v.route.pages=l;let u=Gc(await(await fetch(`${kn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"))).text());if(u)for(let[g,f]of Object.entries(u))window[g]=f;i()})),(0,jA.jsx)(tn,{});let o=v.route.router;if(!o)return(0,jA.jsx)(Du,{children:"Failed to create Router"});let s="";if(r){let I=location.pathname.split("/");Fu(I[3])&&(s=I[3])}let a=o.lookup(v.pathname);if(s){let I=v.route.pages.find(l=>s===l.id);I&&(a=I)}if(!a)return(0,jA.jsx)(Du,{children:"Page Not Found"});a.id!==e.page_id&&(v.init_local_effect={}),kn.params=a.params||{},v.page.id=a.id,v.page.url=a.url;let c=v.page.cache[a.id];if(c)v.page.root=c.root,v.page.meta=c.meta;else return w0(a.id).then(async({root:I})=>{if(a){let l={id:a.id,url:a.url,root:I,meta:{}};await Dn(I.childs),Yc(l.meta,I),v.page.cache[l.id]=l,i()}}).catch(()=>{i()}),(0,jA.jsx)(tn,{note:"Loading page"});return(0,jA.jsx)(n,{value:kn.prasiContext,children:(0,jA.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,jA.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",v.mode==="mobile"?css` + `);r.fn=o(...Object.values(i))}}};var h0=K(se()),xB=({meta:e,passprop:t,is_layout:A})=>{let i=wi(qi,"VI"),[n,r]=(0,Q0.useState)({});e.render=()=>{r({})};let o=t;return e.item.component?.id&&(o||(o={}),d0(i,e,A,o)),e.item.adv?.js&&(B0(i,e,A,o),e.script)?e.script.result:(0,h0.jsx)(Ms,{meta:e,passprop:o,is_layout:A})};var Ze=K(se()),gH=70,qc={enabled:!1,meta:{}},Rr=({meta:e,children:t,passprop:A,is_layout:i})=>{if(qc.enabled){let n=qc.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>gH)return(0,Ze.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Ze.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,Ze.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",n[e.item.id]?.count," times in less than 1 second."]})]})}return!e||e.item.hidden?null:e.item.adv?.js||e.item.component?.id?(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(xB,{meta:e,is_layout:i,passprop:A})}):(0,Ze.jsx)(UA,{meta:e,children:(0,Ze.jsx)(Ms,{meta:e,passprop:A,is_layout:i})})},Ms=({meta:e,passprop:t,is_layout:A})=>{let i=wi(qi,"VI");if(A&&e.item.name==="children"){let r=[];for(let o of i.entry){let s=i.meta[o];if(s.item.adv?.js||s.item.component?.id)r.push((0,Ze.jsx)(UA,{meta:s,children:(0,Ze.jsx)(xB,{meta:s,is_layout:!1,passprop:t})}));else{let a=Hs(i,s,!1,t);i.visit&&i.visit(s,a),r.push((0,Ze.jsx)("div",{...a.props}))}}return(0,Ze.jsx)(Ze.Fragment,{children:r.map((o,s)=>(0,Ze.jsx)(p0.Fragment,{children:o},s))})}let n=Hs(i,e,A,t);return i.visit&&i.visit(e,n),(0,Ze.jsx)("div",{...n.props})};var Jr=K(se()),E0=({})=>{let e=wi(qi,"VI"),t=Ei({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,Jr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,Jr.jsx)(tn,{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,Jr.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,Jr.jsx)(UA,{children:(0,Jr.jsx)(Rr,{meta:r,is_layout:A})},r.item.id):null})})};var bc=K(se()),Kc=window,m0=({meta:e,entry:t,api_url:A,site_id:i,api:n,mode:r,db:o,visit:s,script:a,page_id:c,render_stat:I,on_status_changed:l,on_preload:u,layout:g})=>{let f=wi(qi,"VI");return f.mode=r,f.entry=t,f.on_preload=u,Kc.siteurl=C=>{if(f.site.api_url&&(f.site_url||(f.site_url=new URL(f.site.api_url))),f.site_url){let D=f.site_url,d=C;return d.startsWith("/")||(d="/"+d),`${D.protocol}//${D.hostname}${d}`}return C},Kc.isMobile=r==="mobile",Kc.isDesktop=r==="desktop",Kc.preload=C=>{f.page.navs[c]||(f.page.navs[c]=new Set);let D=typeof C=="string"?[C]:C;for(let d of D)f.page.navs[c].add(d);return clearTimeout(pn.timeout),pn.timeout=setTimeout(()=>{f.on_preload&&f.on_preload({urls:Array.from(f.page.navs[c])})},100),""},f.layout=g,f.page.cur.id=c,f.on_status_changes=l,I==="disabled"&&(qc.enabled=!1),f.meta!==e&&(f.meta=e),a&&(f.script.init_local_effect=a.init_local_effect),f.visit=s,f.status==="init"&&(f.site.db=o,f.site.api=n,Rw(f,{api_url:A,site_id:i})),u&&(0,Oc.useEffect)(()=>{setTimeout(()=>{let C=f.page.navs[f.page.cur.id];C&&u({urls:Array.from(C)})},500)},[f.page.cur.id]),(0,bc.jsx)(UA,{children:(0,bc.jsx)(Oc.Suspense,{children:(0,bc.jsx)(E0,{})})})};var GB=window,v={root:null,url(...e){let t=e.map(i=>Array.isArray(i)?i.join(""):i).join(""),A=this.root.toString();return A.endsWith("/")&&(A=A.substring(0,A.length-1)),t.startsWith("/")?A+t:A+"/"+t},get pathname(){let e=location.pathname.substring(v.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:GB._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:new Set},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},y0=()=>{if(!v.root){let e=new URL(location.href);GB._prasi.basepath&&(e.pathname=GB._prasi.basepath),v.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),v.root.pathname.endsWith("/")&&(v.root.pathname=v.root.pathname.substring(0,v.root.length-1))}};var qr=async e=>{let t=v.comp;for(let A of e)A&&A.type!=="text"&&HB(A);if(t.pending.size>0)try{let A=await(await fetch(v.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...t.pending]})})).json();for(let[i,n]of Object.entries(A))t.pending.delete(i),t.list[i]=n,await Bs(`comp-${i}`,n);await qr(Object.values(A))}catch{}},HB=e=>{let t=v.comp;if(e.type==="item"){let A=e.component?.id;if(A){!t.list[A]&&!t.pending.has(A)&&t.pending.add(A);for(let i of Object.values(e.component?.props||{}))i.content&&i.meta?.type==="content-element"&&HB(i.content)}}if(e.childs)for(let A of e.childs){let i=A;i&&i.type!=="text"&&HB(i)}};var w0=e=>new Promise(async t=>{let A=!1,i=await Er(`page-${e}`);i&&(t(i),A=!0);let n=await(await fetch(v.url`_prasi/page/${e}`)).json();A||t(n)}),uH=e=>new Promise(async t=>{let A={},i=[...new Set(e)],n=!0;for(let o of i){let s=await Er(`page-${o}`);if(s)A[o]=s;else{n=!1;break}}n&&t(A);let r=await(await fetch(v.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:i})})).json();n||t(r)}),F0=async e=>{let t=e.map(A=>v.route.router?.lookup(A)).filter(A=>A&&A.id);return await uH(t.map(A=>A?.id))};var k0=K(D0()),S0=()=>{let e=v;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,k0.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 fH=()=>new Promise(async e=>{let t=!1,A=await(await fetch(v.url`_prasi/route`)).json();t||e(A)}),U0=async()=>{let e=wr(),t=[];try{let A=await fH();if(A&&A.site&&A.urls){A.layout&&(v.layout.id=A.layout.id,v.layout.root=A.layout.root,v.layout.meta={},v.layout.root&&(await qr(v.layout.root.childs),Yc(v.layout.meta,v.layout.root))),v.site=A.site,v.site.code={mode:"vsc"},await BH(),v.site.api=En(v.site.api_url),v.site.db=mn(v.site.api_url);let i=window;i.serverurl=v.site.api_url,i.db=v.site.db,i.api=v.site.api;for(let n of A.urls)e.insert(n.url,n),t.push(n)}}catch{}return{router:e,pages:t}},BH=()=>new Promise(e=>{let t=document,A=t.createElement("script");A.onload=async()=>{e()};let i=v.site.api_url;try{new URL(i)}catch{location.hostname==="localhost"?i="http://localhost:4550":i="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+i)||localStorage.setItem("api-ts-"+i,Date.now().toString());let n=localStorage.getItem("api-ts-"+i);A.src=`${i}/_prasi/load.js?url=${i}&v3&ts=${n}`,document.querySelector(`script[src="${A.src}"]`)?e():t.body.appendChild(A)}),Yc=(e,t)=>{for(let A of t.childs)vt({comps:v.comp.list,meta:e,mode:"page"},{item:A})};var Dn=window;var jA=K(se()),MB=()=>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",x0=()=>{let e=Ei({page_id:""}),[t,A]=(0,N0.useState)({}),i=()=>A({});Dn.prasiContext.render=i;let n=mu.Provider,r=MB()&&location.pathname.startsWith("/prod");if(v.route.status!=="ready")return v.route.status==="init"&&(v.route.status="loading",U0().then(async({router:I,pages:l})=>{S0(),v.route.status="ready",v.route.router=I,v.route.pages=l;let u=Gc(await(await fetch(`${Dn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"))).text());if(u)for(let[g,f]of Object.entries(u))window[g]=f;i()})),(0,jA.jsx)(tn,{});let o=v.route.router;if(!o)return(0,jA.jsx)(Du,{children:"Failed to create Router"});let s="";if(r){let I=location.pathname.split("/");Fu(I[3])&&(s=I[3])}let a=o.lookup(v.pathname);if(s){let I=v.route.pages.find(l=>s===l.id);I&&(a=I)}if(!a)return(0,jA.jsx)(Du,{children:"Page Not Found"});a.id!==e.page_id&&(v.init_local_effect={}),Dn.params=a.params||{},v.page.id=a.id,v.page.url=a.url;let c=v.page.cache[a.id];if(c)v.page.root=c.root,v.page.meta=c.meta;else return w0(a.id).then(async({root:I})=>{if(a){let l={id:a.id,url:a.url,root:I,meta:{}};await qr(I.childs),Yc(l.meta,I),v.page.cache[l.id]=l,i()}}).catch(()=>{i()}),(0,jA.jsx)(tn,{note:"Loading page"});return(0,jA.jsx)(n,{value:Dn.prasiContext,children:(0,jA.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,jA.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",v.mode==="mobile"?css` @media (min-width: 768px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; @@ -152,7 +152,7 @@ ${c} } `:"inset-0 overflow-auto",css` contain: content; - `),children:(0,jA.jsx)(m0,{api_url:v.site.api_url,entry:Object.values(v.page.root.childs).filter(I=>I).map(I=>I.id),meta:v.page.meta,mode:v.mode,page_id:v.page.id,site_id:v.site.id,db:v.site.db,api:v.site.api,layout:v.layout.id&&v.layout.root&&v.layout.meta?{id:v.layout.id,meta:v.layout.meta,entry:Object.values(v.layout.root.childs).filter(I=>I).map(I=>I.id)}:void 0,script:{init_local_effect:v.init_local_effect},on_preload:async({urls:I})=>{let l=[];if(v.cache.urls)for(let u of I)v.cache.urls.has(u)||(l.push(u),v.cache.urls.add(u));if(l.length>0){let u=await F0(l);if(Array.isArray(u))for(let g of u){let f={id:g.id,url:g.url,root:g.root,meta:{}};await Dn(g.root.childs),Yc(f.meta,g.root),v.page.cache[f.id]=f}}}})})})})};var H0=K(se());(async()=>{y0();let e=document.getElementById("root");if(e){let t=(0,G0.createRoot)(e);await Np(!1),Fp(),kn.navigateOverride=A=>(A&&A.startsWith("/")&&MB()&&location.pathname.startsWith("/prod")&&!A.startsWith("/prod")&&(A=`/prod/${location.pathname.split("/")[2]}${A}`),A),t.render((0,H0.jsx)(x0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); + `),children:(0,jA.jsx)(m0,{api_url:v.site.api_url,entry:Object.values(v.page.root.childs).filter(I=>I).map(I=>I.id),meta:v.page.meta,mode:v.mode,page_id:v.page.id,site_id:v.site.id,db:v.site.db,api:v.site.api,layout:v.layout.id&&v.layout.root&&v.layout.meta?{id:v.layout.id,meta:v.layout.meta,entry:Object.values(v.layout.root.childs).filter(I=>I).map(I=>I.id)}:void 0,script:{init_local_effect:v.init_local_effect},on_preload:async({urls:I})=>{let l=[];if(v.cache.urls)for(let u of I)v.cache.urls.has(u)||(l.push(u),v.cache.urls.add(u));if(l.length>0){let u=await F0(l);if(Array.isArray(u))for(let g of u){let f={id:g.id,url:g.url,root:g.root,meta:{}};await qr(g.root.childs),Yc(f.meta,g.root),v.page.cache[f.id]=f}}}})})})})};var H0=K(se());(async()=>{y0();let e=document.getElementById("root");if(e){let t=(0,G0.createRoot)(e);await Np(!1),Fp(),Dn.navigateOverride=A=>(A&&A.startsWith("/")&&MB()&&location.pathname.startsWith("/prod")&&!A.startsWith("/prod")&&(A=`/prod/${location.pathname.split("/")[2]}${A}`),A),t.render((0,H0.jsx)(x0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); /*! Bundled license information: react/cjs/react.production.min.js: diff --git a/app/srv/package.json b/app/srv/package.json index f0440012..ee399a10 100644 --- a/app/srv/package.json +++ b/app/srv/package.json @@ -17,5 +17,8 @@ "y-pojo": "^0.0.8", "yjs": "^13.6.10", "yjs-types": "^0.0.1" + }, + "devDependencies": { + "bun-types": "^1.0.30" } -} +} \ No newline at end of file diff --git a/app/web/src/nova/prod/base/component.tsx b/app/web/src/nova/prod/base/component.tsx index e2b72921..cc6eb10b 100644 --- a/app/web/src/nova/prod/base/component.tsx +++ b/app/web/src/nova/prod/base/component.tsx @@ -13,18 +13,6 @@ export const scanComponent = async (items: IContent[]) => { } } - if (comp.pending.size > 0) { - let all_found = true; - const founds: any = []; - if (all_found) { - for (const id of [...comp.pending]) { - comp.pending.delete(id); - } - await scanComponent(founds); - return; - } - } - if (comp.pending.size > 0) { try { const res = (await ( @@ -48,6 +36,7 @@ const scanSingle = (item: IItem | ISection) => { const comp = base.comp; if (item.type === "item") { const comp_id = item.component?.id; + if (comp_id) { if (!comp.list[comp_id] && !comp.pending.has(comp_id)) { comp.pending.add(comp_id); @@ -63,8 +52,9 @@ const scanSingle = (item: IItem | ISection) => { if (item.childs) { for (const child of item.childs) { - if (child && child.type !== "text") { - scanSingle(child); + let c = child; + if (c && c.type !== "text") { + scanSingle(c); } } } diff --git a/bun.lockb b/bun.lockb index 342899171790d06578a0e78ad52aeb592a0f897d..3980ab3847eef0acee012f2ebed797a08b3570bf 100755 GIT binary patch delta 43745 zcmeFacU)E1)&+XbhNB!33pP-&*H}PAJSYfaZz!lJYAh%y*bo853Rt3I#jP&85@RnB zyHOKs6x1jt_Lx``TTD!%SED9xjJ?(Ylbht;?|a{Sf93p`XRJBaTyyoZH+w_s#iG;B z6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(CcDWQx&w5!2Xt?s75 zZS&1(5;LHab_ZgSEU%)gft;_Zu1Z*AS%*h2oqIxgk?oa&vcTk@QY{Q?z~S(4Yw@Nn zVv#+bAp0`TtEP$|42ll&V95T7p*ad~Hza6%WwWbE2ZZX)Hr`y;WL>PQrW--X9s_G= zP%vVe@Cvl=7ckx;u7=d?(YzX(8_cDOGivB;FlWRy5ELj&(#PXcs<<{ zkY_Ox9;{~BHeA5IYY1Kk?KD3GOYkwR#E<+X;4Ivn|E=Hqp^8cs;EdM?13ajfj)b7T z{939H0iRJ^E6m38L6JeUa^DOd$s4{v?@Wfp3W~vx!&Rg3jlS2fId=EHKPH$OfZpYC z!`S~V;@cpjLzB5hVr4za)nMg7jHRpLdQd&(;}=`#m(^GdeeBlq^CS&L*n3IwpQEB@{f!Y~9W8AUu7dP3CBlgPJ4$vcd1OSd=S%qk>^PDmJ>xIM5E8q?QC zY$FW`$6LIU4n?5KS_%#4(i|$#Z$p4DZ@QOUq%Zvfc$SvH65k&(DgUKYPB+6jKl!RA zp?%g@+?^JUNw5W&?P>sQd41^37jH+MP>{Mw)1|y+NbelsnDW?G82?PuGYj@vK46R&&{Xw2FLf5LBsR0O4 zE@gvD=m^ll{P#_s?yezG|>@<8X7JN^Ke2CSQM z01#WY(5^_#JTQ2dA~ECbTIfL}mpbr%G>4FYH)0G&Is0)!Br}Q|OM9X?wawJg!t^^i zZRDvXEjr_DdJ@GsiBidCD(AH3YY%}7tJ`q2r)p;0{)3R&lxZ`3s8qgx@f!CB>u7qx?p?EEEgrBA|8-VPyhWNXOh z0+Qkg+(iU#Q1CHy@5(w&MG5(O=Hl{gQ)VS2dJL-K0!S<-1&N!x%r4*~zegW=yBsP+_O Mou>&p%1!d%Z`&|%MgRZ+ diff --git a/package.json b/package.json index 574e5a32..ac4b2a98 100644 --- a/package.json +++ b/package.json @@ -19,9 +19,6 @@ "app/*", "pkgs/*" ], - "devDependencies": { - "bun-types": "latest" - }, "peerDependencies": { "typescript": "^5.0.0" },