diff --git a/app/srv/core/main.js b/app/srv/core/main.js index 9ae102ad..27d6821c 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -1,11 +1,11 @@ -var w0=Object.create;var pl=Object.defineProperty;var x0=Object.getOwnPropertyDescriptor;var S0=Object.getOwnPropertyNames;var _0=Object.getPrototypeOf,k0=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),E0=(e,t)=>{for(var n in t)pl(e,n,{get:t[n],enumerable:!0})},C0=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of S0(t))!k0.call(e,o)&&o!==n&&pl(e,o,{get:()=>t[o],enumerable:!(r=x0(t,o))||r.enumerable});return e};var O=(e,t,n)=>(n=e!=null?w0(_0(e)):{},C0(t||!e||!e.__esModule?pl(n,"default",{value:e,enumerable:!0}):n,e));var af=q(j=>{"use strict";var Nr=Symbol.for("react.element"),R0=Symbol.for("react.portal"),P0=Symbol.for("react.fragment"),N0=Symbol.for("react.strict_mode"),O0=Symbol.for("react.profiler"),T0=Symbol.for("react.provider"),b0=Symbol.for("react.context"),I0=Symbol.for("react.forward_ref"),L0=Symbol.for("react.suspense"),A0=Symbol.for("react.memo"),j0=Symbol.for("react.lazy"),Jc=Symbol.iterator;function M0(e){return e===null||typeof e!="object"?null:(e=Jc&&e[Jc]||e["@@iterator"],typeof e=="function"?e:null)}var ef={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tf=Object.assign,nf={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=nf,this.updater=n||ef}Ln.prototype.isReactComponent={};Ln.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")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function rf(){}rf.prototype=Ln.prototype;function hl(e,t,n){this.props=e,this.context=t,this.refs=nf,this.updater=n||ef}var yl=hl.prototype=new rf;yl.constructor=hl;tf(yl,Ln.prototype);yl.isPureReactComponent=!0;var Yc=Array.isArray,of=Object.prototype.hasOwnProperty,gl={current:null},sf={key:!0,ref:!0,__self:!0,__source:!0};function lf(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)of.call(t,r)&&!sf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1{"use strict";uf.exports=af()});var wf=q(H=>{"use strict";function _l(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;rni(l,n))ani(f,l)?(e[r]=f,e[a]=n,r=a):(e[r]=l,e[s]=n,r=s);else if(ani(f,n))e[r]=f,e[a]=n,r=a;else break e}}return t}function ni(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(cf=performance,H.unstable_now=function(){return cf.now()}):(wl=Date,ff=wl.now(),H.unstable_now=function(){return wl.now()-ff});var cf,wl,ff,at=[],jt=[],B0=1,Ve=null,ye=3,ii=!1,dn=!1,Tr=!1,mf=typeof setTimeout=="function"?setTimeout:null,hf=typeof clearTimeout=="function"?clearTimeout:null,df=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function kl(e){for(var t=Ye(jt);t!==null;){if(t.callback===null)oi(jt);else if(t.startTime<=e)oi(jt),t.sortIndex=t.expirationTime,_l(at,t);else break;t=Ye(jt)}}function El(e){if(Tr=!1,kl(e),!dn)if(Ye(at)!==null)dn=!0,Rl(Cl);else{var t=Ye(jt);t!==null&&Pl(El,t.startTime-e)}}function Cl(e,t){dn=!1,Tr&&(Tr=!1,hf(br),br=-1),ii=!0;var n=ye;try{for(kl(t),Ve=Ye(at);Ve!==null&&(!(Ve.expirationTime>t)||e&&!vf());){var r=Ve.callback;if(typeof r=="function"){Ve.callback=null,ye=Ve.priorityLevel;var o=r(Ve.expirationTime<=t);t=H.unstable_now(),typeof o=="function"?Ve.callback=o:Ve===Ye(at)&&oi(at),kl(t)}else oi(at);Ve=Ye(at)}if(Ve!==null)var i=!0;else{var s=Ye(jt);s!==null&&Pl(El,s.startTime-t),i=!1}return i}finally{Ve=null,ye=n,ii=!1}}var si=!1,ri=null,br=-1,yf=5,gf=-1;function vf(){return!(H.unstable_now()-gfe||125r?(e.sortIndex=n,_l(jt,e),Ye(at)===null&&e===Ye(jt)&&(Tr?(hf(br),br=-1):Tr=!0,Pl(El,n-r))):(e.sortIndex=o,_l(at,e),dn||ii||(dn=!0,Rl(Cl))),e};H.unstable_shouldYield=vf;H.unstable_wrapCallback=function(e){var t=ye;return function(){var n=ye;ye=t;try{return e.apply(this,arguments)}finally{ye=n}}}});var Sf=q((U_,xf)=>{"use strict";xf.exports=wf()});var Pm=q($e=>{"use strict";var Nd=ce(),Ue=Sf();function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xl=Object.prototype.hasOwnProperty,$0=/^[: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]*$/,_f={},kf={};function V0(e){return Xl.call(kf,e)?!0:Xl.call(_f,e)?!1:$0.test(e)?kf[e]=!0:(_f[e]=!0,!1)}function H0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function W0(e,t,n,r){if(t===null||typeof t>"u"||H0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Ce(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var $a=/[\-:]([a-z])/g;function Va(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($a,Va);pe[t]=new Ce(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($a,Va);pe[t]=new Ce(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($a,Va);pe[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ha(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2()=>(t||e((t={exports:{}}).exports,t),t.exports),C0=(e,t)=>{for(var n in t)ml(e,n,{get:t[n],enumerable:!0})},R0=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of _0(t))!E0.call(e,o)&&o!==n&&ml(e,o,{get:()=>t[o],enumerable:!(r=S0(t,o))||r.enumerable});return e};var O=(e,t,n)=>(n=e!=null?x0(k0(e)):{},R0(t||!e||!e.__esModule?ml(n,"default",{value:e,enumerable:!0}):n,e));var uf=q(j=>{"use strict";var Or=Symbol.for("react.element"),P0=Symbol.for("react.portal"),N0=Symbol.for("react.fragment"),O0=Symbol.for("react.strict_mode"),T0=Symbol.for("react.profiler"),b0=Symbol.for("react.provider"),I0=Symbol.for("react.context"),L0=Symbol.for("react.forward_ref"),A0=Symbol.for("react.suspense"),j0=Symbol.for("react.memo"),M0=Symbol.for("react.lazy"),Yc=Symbol.iterator;function F0(e){return e===null||typeof e!="object"?null:(e=Yc&&e[Yc]||e["@@iterator"],typeof e=="function"?e:null)}var tf={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},nf=Object.assign,rf={};function Ln(e,t,n){this.props=e,this.context=t,this.refs=rf,this.updater=n||tf}Ln.prototype.isReactComponent={};Ln.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")};Ln.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function of(){}of.prototype=Ln.prototype;function yl(e,t,n){this.props=e,this.context=t,this.refs=rf,this.updater=n||tf}var gl=yl.prototype=new of;gl.constructor=yl;nf(gl,Ln.prototype);gl.isPureReactComponent=!0;var Zc=Array.isArray,sf=Object.prototype.hasOwnProperty,vl={current:null},lf={key:!0,ref:!0,__self:!0,__source:!0};function af(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)sf.call(t,r)&&!lf.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1{"use strict";cf.exports=uf()});var xf=q(H=>{"use strict";function kl(e,t){var n=e.length;e.push(t);e:for(;0>>1,o=e[r];if(0>>1;roi(l,n))aoi(f,l)?(e[r]=f,e[a]=n,r=a):(e[r]=l,e[s]=n,r=s);else if(aoi(f,n))e[r]=f,e[a]=n,r=a;else break e}}return t}function oi(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ff=performance,H.unstable_now=function(){return ff.now()}):(xl=Date,df=xl.now(),H.unstable_now=function(){return xl.now()-df});var ff,xl,df,at=[],jt=[],$0=1,Ve=null,ye=3,li=!1,dn=!1,br=!1,hf=typeof setTimeout=="function"?setTimeout:null,yf=typeof clearTimeout=="function"?clearTimeout:null,pf=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function El(e){for(var t=Ye(jt);t!==null;){if(t.callback===null)si(jt);else if(t.startTime<=e)si(jt),t.sortIndex=t.expirationTime,kl(at,t);else break;t=Ye(jt)}}function Cl(e){if(br=!1,El(e),!dn)if(Ye(at)!==null)dn=!0,Pl(Rl);else{var t=Ye(jt);t!==null&&Nl(Cl,t.startTime-e)}}function Rl(e,t){dn=!1,br&&(br=!1,yf(Ir),Ir=-1),li=!0;var n=ye;try{for(El(t),Ve=Ye(at);Ve!==null&&(!(Ve.expirationTime>t)||e&&!wf());){var r=Ve.callback;if(typeof r=="function"){Ve.callback=null,ye=Ve.priorityLevel;var o=r(Ve.expirationTime<=t);t=H.unstable_now(),typeof o=="function"?Ve.callback=o:Ve===Ye(at)&&si(at),El(t)}else si(at);Ve=Ye(at)}if(Ve!==null)var i=!0;else{var s=Ye(jt);s!==null&&Nl(Cl,s.startTime-t),i=!1}return i}finally{Ve=null,ye=n,li=!1}}var ai=!1,ii=null,Ir=-1,gf=5,vf=-1;function wf(){return!(H.unstable_now()-vfe||125r?(e.sortIndex=n,kl(jt,e),Ye(at)===null&&e===Ye(jt)&&(br?(yf(Ir),Ir=-1):br=!0,Nl(Cl,n-r))):(e.sortIndex=o,kl(at,e),dn||li||(dn=!0,Pl(Rl))),e};H.unstable_shouldYield=wf;H.unstable_wrapCallback=function(e){var t=ye;return function(){var n=ye;ye=t;try{return e.apply(this,arguments)}finally{ye=n}}}});var _f=q((B_,Sf)=>{"use strict";Sf.exports=xf()});var Nm=q($e=>{"use strict";var Od=ce(),Ue=_f();function S(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Jl=Object.prototype.hasOwnProperty,V0=/^[: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]*$/,kf={},Ef={};function H0(e){return Jl.call(Ef,e)?!0:Jl.call(kf,e)?!1:V0.test(e)?Ef[e]=!0:(kf[e]=!0,!1)}function W0(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G0(e,t,n,r){if(t===null||typeof t>"u"||W0(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.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 Ce(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){pe[e]=new Ce(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];pe[t]=new Ce(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){pe[e]=new Ce(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){pe[e]=new Ce(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){pe[e]=new Ce(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){pe[e]=new Ce(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){pe[e]=new Ce(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){pe[e]=new Ce(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){pe[e]=new Ce(e,5,!1,e.toLowerCase(),null,!1,!1)});var Va=/[\-:]([a-z])/g;function Ha(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(Va,Ha);pe[t]=new Ce(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(Va,Ha);pe[t]=new Ce(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(Va,Ha);pe[t]=new Ce(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!1,!1)});pe.xlinkHref=new Ce("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){pe[e]=new Ce(e,1,!1,e.toLowerCase(),null,!0,!0)});function Wa(e,t,n,r){var o=pe.hasOwnProperty(t)?pe[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` -`+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Ol=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Ur(e):""}function G0(e){switch(e.tag){case 5:return Ur(e.type);case 16:return Ur("Lazy");case 13:return Ur("Suspense");case 19:return Ur("SuspenseList");case 0:case 2:case 15:return e=Tl(e.type,!1),e;case 11:return e=Tl(e.type.render,!1),e;case 1:return e=Tl(e.type,!0),e;default:return""}}function ea(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 Fn:return"Fragment";case Mn:return"Portal";case Jl:return"Profiler";case Wa:return"StrictMode";case Yl:return"Suspense";case Zl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case bd:return(e.displayName||"Context")+".Consumer";case Td:return(e._context.displayName||"Context")+".Provider";case Ga:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Qa:return t=e.displayName||null,t!==null?t:ea(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return ea(e(t))}catch{}}return null}function Q0(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 ea(t);case 8:return t===Wa?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ld(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function K0(e){var t=Ld(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ai(e){e._valueTracker||(e._valueTracker=K0(e))}function Ad(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ld(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mi(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 ta(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Cf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jd(e,t){t=t.checked,t!=null&&Ha(e,"checked",t,!1)}function na(e,t){jd(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ra(e,t.type,n):t.hasOwnProperty("defaultValue")&&ra(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ra(e,t,n){(t!=="number"||Mi(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Br=Array.isArray;function Kn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=ui.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eo(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Hr={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},q0=["Webkit","ms","Moz","O"];Object.keys(Hr).forEach(function(e){q0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Hr[t]=Hr[e]})});function zd(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Hr.hasOwnProperty(e)&&Hr[e]?(""+t).trim():t+"px"}function Ud(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=zd(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var X0=Z({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 sa(e,t){if(t){if(X0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function la(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 aa=null;function Ka(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ua=null,qn=null,Xn=null;function Of(e){if(e=wo(e)){if(typeof ua!="function")throw Error(S(280));var t=e.stateNode;t&&(t=cs(t),ua(e.stateNode,e.type,t))}}function Bd(e){qn?Xn?Xn.push(e):Xn=[e]:qn=e}function $d(){if(qn){var e=qn,t=Xn;if(Xn=qn=null,Of(e),t)for(e=0;e>>=0,e===0?32:31-(lv(e)/av|0)|0}var ci=64,fi=4194304;function $r(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 Ui(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=$r(l):(i&=s,i!==0&&(r=$r(i)))}else s=n&~o,s!==0?r=$r(s):i!==0&&(r=$r(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function go(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function dv(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=Gr),Df=" ",zf=!1;function ap(e,t){switch(e){case"keyup":return Uv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function up(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function $v(e,t){switch(e){case"compositionend":return up(t);case"keypress":return t.which!==32?null:(zf=!0,Df);case"textInput":return e=t.data,e===Df&&zf?null:e;default:return null}}function Vv(e,t){if(Dn)return e==="compositionend"||!nu&&ap(e,t)?(e=sp(),Pi=Za=Bt=null,Dn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$f(n)}}function pp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mp(){for(var e=window,t=Mi();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mi(e.document)}return t}function ru(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 Yv(e){var t=mp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pp(n.ownerDocument.documentElement,n)){if(r!==null&&ru(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Vf(n,i);var s=Vf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zn=null,ha=null,Kr=null,ya=!1;function Hf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ya||zn==null||zn!==Mi(r)||(r=zn,"selectionStart"in r&&ru(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Kr&&so(Kr,r)||(Kr=r,r=Vi(ha,"onSelect"),0$n||(e.current=_a[$n],_a[$n]=null,$n--)}function W(e,t){$n++,_a[$n]=e.current,e.current=t}var Yt={},xe=en(Yt),Ie=en(!1),xn=Yt;function tr(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Le(e){return e=e.childContextTypes,e!=null}function Wi(){K(Ie),K(xe)}function Zf(e,t,n){if(xe.current!==Yt)throw Error(S(168));W(xe,t),W(Ie,n)}function kp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(S(108,Q0(e)||"Unknown",o));return Z({},n,r)}function Gi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,xn=xe.current,W(xe,e),W(Ie,Ie.current),!0}function ed(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=kp(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,K(Ie),K(xe),W(xe,e)):K(Ie),W(Ie,n)}var vt=null,fs=!1,Bl=!1;function Ep(e){vt===null?vt=[e]:vt.push(e)}function aw(e){fs=!0,Ep(e)}function tn(){if(!Bl&&vt!==null){Bl=!0;var e=0,t=B;try{var n=vt;for(B=1;e>=s,o-=s,wt=1<<32-rt(t)+o|n<N?(te=R,R=null):te=R.sibling;var M=d(h,R,g[N],x);if(M===null){R===null&&(R=te);break}e&&R&&M.alternate===null&&t(h,R),p=i(M,p,N),P===null?k=M:P.sibling=M,P=M,R=te}if(N===g.length)return n(h,R),X&&pn(h,N),k;if(R===null){for(;NN?(te=R,R=null):te=R.sibling;var he=d(h,R,M.value,x);if(he===null){R===null&&(R=te);break}e&&R&&he.alternate===null&&t(h,R),p=i(he,p,N),P===null?k=he:P.sibling=he,P=he,R=te}if(M.done)return n(h,R),X&&pn(h,N),k;if(R===null){for(;!M.done;N++,M=g.next())M=c(h,M.value,x),M!==null&&(p=i(M,p,N),P===null?k=M:P.sibling=M,P=M);return X&&pn(h,N),k}for(R=r(h,R);!M.done;N++,M=g.next())M=y(R,h,N,M.value,x),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?N:M.key),p=i(M,p,N),P===null?k=M:P.sibling=M,P=M);return e&&R.forEach(function(bn){return t(h,bn)}),X&&pn(h,N),k}function C(h,p,g,x){if(typeof g=="object"&&g!==null&&g.type===Fn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case li:e:{for(var k=g.key,P=p;P!==null;){if(P.key===k){if(k=g.type,k===Fn){if(P.tag===7){n(h,P.sibling),p=o(P,g.props.children),p.return=h,h=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ft&&ld(k)===P.type){n(h,P.sibling),p=o(P,g.props),p.ref=Mr(h,P,g),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}g.type===Fn?(p=wn(g.props.children,h.mode,x,g.key),p.return=h,h=p):(x=ji(g.type,g.key,g.props,null,h.mode,x),x.ref=Mr(h,p,g),x.return=h,h=x)}return s(h);case Mn:e:{for(P=g.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=o(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=ql(g,h.mode,x),p.return=h,h=p}return s(h);case Ft:return P=g._init,C(h,p,P(g._payload),x)}if(Br(g))return m(h,p,g,x);if(Ir(g))return v(h,p,g,x);_i(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,g),p.return=h,h=p):(n(h,p),p=Kl(g,h.mode,x),p.return=h,h=p),s(h)):n(h,p)}return C}var rr=Ip(!0),Lp=Ip(!1),xo={},pt=en(xo),co=en(xo),fo=en(xo);function gn(e){if(e===xo)throw Error(S(174));return e}function du(e,t){switch(W(fo,t),W(co,e),W(pt,xo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ia(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ia(t,e)}K(pt),W(pt,t)}function or(){K(pt),K(co),K(fo)}function Ap(e){gn(fo.current);var t=gn(pt.current),n=ia(t,e.type);t!==n&&(W(co,e),W(pt,n))}function pu(e){co.current===e&&(K(pt),K(co))}var J=en(0);function Yi(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 $l=[];function mu(){for(var e=0;e<$l.length;e++)$l[e]._workInProgressVersionPrimary=null;$l.length=0}var Ti=Rt.ReactCurrentDispatcher,Vl=Rt.ReactCurrentBatchConfig,_n=0,Y=null,ie=null,ae=null,Zi=!1,qr=!1,po=0,cw=0;function ge(){throw Error(S(321))}function hu(e,t){if(t===null)return!1;for(var n=0;nn?n:4,e(!0);var r=Vl.transition;Vl.transition={};try{e(!1),t()}finally{B=n,Vl.transition=r}}function Xp(){return qe().memoizedState}function dw(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jp(e))Yp(t,n);else if(n=Np(e,t,n,r),n!==null){var o=Ee();ot(n,e,r,o),Zp(n,t,r)}}function pw(e,t,n){var r=qt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jp(e))Yp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,it(l,s)){var a=t.interleaved;a===null?(o.next=o,cu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Np(e,t,o,r),n!==null&&(o=Ee(),ot(n,e,r,o),Zp(n,t,r))}}function Jp(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Yp(e,t){qr=Zi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Zp(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Xa(e,n)}}var es={readContext:Ke,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},mw={readContext:Ke,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:ud,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,bi(4194308,4,Wp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return bi(4194308,4,e,t)},useInsertionEffect:function(e,t){return bi(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dw.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:ad,useDebugValue:wu,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=ad(!1),t=e[0];return e=fw.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=ct();if(X){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ue===null)throw Error(S(349));_n&30||Fp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ud(zp.bind(null,r,i,e),[e]),r.flags|=2048,ho(9,Dp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=ue.identifierPrefix;if(X){var n=xt,r=wt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=po++,0")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{Tl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Br(e):""}function Q0(e){switch(e.tag){case 5:return Br(e.type);case 16:return Br("Lazy");case 13:return Br("Suspense");case 19:return Br("SuspenseList");case 0:case 2:case 15:return e=bl(e.type,!1),e;case 11:return e=bl(e.type.render,!1),e;case 1:return e=bl(e.type,!0),e;default:return""}}function ta(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 Fn:return"Fragment";case Mn:return"Portal";case Yl:return"Profiler";case Ga:return"StrictMode";case Zl:return"Suspense";case ea:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Id:return(e.displayName||"Context")+".Consumer";case bd:return(e._context.displayName||"Context")+".Provider";case Qa:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Ka:return t=e.displayName||null,t!==null?t:ta(e.type)||"Memo";case Ft:t=e._payload,e=e._init;try{return ta(e(t))}catch{}}return null}function K0(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 ta(t);case 8:return t===Ga?"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 Jt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ad(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q0(e){var t=Ad(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ci(e){e._valueTracker||(e._valueTracker=q0(e))}function jd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ad(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Di(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 na(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Rf(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Jt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Md(e,t){t=t.checked,t!=null&&Wa(e,"checked",t,!1)}function ra(e,t){Md(e,t);var n=Jt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?oa(e,t.type,n):t.hasOwnProperty("defaultValue")&&oa(e,t.type,Jt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Pf(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function oa(e,t,n){(t!=="number"||Di(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $r=Array.isArray;function Kn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=fi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function to(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Wr={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},X0=["Webkit","ms","Moz","O"];Object.keys(Wr).forEach(function(e){X0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wr[t]=Wr[e]})});function Ud(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}function Bd(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Ud(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var J0=Z({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 la(e,t){if(t){if(J0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(S(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(S(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(S(61))}if(t.style!=null&&typeof t.style!="object")throw Error(S(62))}}function aa(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 ua=null;function qa(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ca=null,qn=null,Xn=null;function Tf(e){if(e=xo(e)){if(typeof ca!="function")throw Error(S(280));var t=e.stateNode;t&&(t=ds(t),ca(e.stateNode,e.type,t))}}function $d(e){qn?Xn?Xn.push(e):Xn=[e]:qn=e}function Vd(){if(qn){var e=qn,t=Xn;if(Xn=qn=null,Tf(e),t)for(e=0;e>>=0,e===0?32:31-(av(e)/uv|0)|0}var di=64,pi=4194304;function Vr(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 $i(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=Vr(l):(i&=s,i!==0&&(r=Vr(i)))}else s=n&~o,s!==0?r=Vr(s):i!==0&&(r=Vr(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vo(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-rt(t),e[t]=n}function pv(e,t){var n=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 r=e.eventTimes;for(e=e.expirationTimes;0=Qr),zf=" ",Uf=!1;function up(e,t){switch(e){case"keyup":return Bv.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dn=!1;function Vv(e,t){switch(e){case"compositionend":return cp(t);case"keypress":return t.which!==32?null:(Uf=!0,zf);case"textInput":return e=t.data,e===zf&&Uf?null:e;default:return null}}function Hv(e,t){if(Dn)return e==="compositionend"||!ru&&up(e,t)?(e=lp(),Oi=eu=Bt=null,Dn=!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:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vf(n)}}function mp(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?mp(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function hp(){for(var e=window,t=Di();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Di(e.document)}return t}function ou(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 Zv(e){var t=hp(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&mp(n.ownerDocument.documentElement,n)){if(r!==null&&ou(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Hf(n,i);var s=Hf(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,zn=null,ya=null,qr=null,ga=!1;function Wf(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ga||zn==null||zn!==Di(r)||(r=zn,"selectionStart"in r&&ou(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),qr&&lo(qr,r)||(qr=r,r=Wi(ya,"onSelect"),0$n||(e.current=ka[$n],ka[$n]=null,$n--)}function W(e,t){$n++,ka[$n]=e.current,e.current=t}var Yt={},xe=en(Yt),Ie=en(!1),xn=Yt;function tr(e,t){var n=e.type.contextTypes;if(!n)return Yt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Le(e){return e=e.childContextTypes,e!=null}function Qi(){K(Ie),K(xe)}function ed(e,t,n){if(xe.current!==Yt)throw Error(S(168));W(xe,t),W(Ie,n)}function Ep(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(S(108,K0(e)||"Unknown",o));return Z({},n,r)}function Ki(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yt,xn=xe.current,W(xe,e),W(Ie,Ie.current),!0}function td(e,t,n){var r=e.stateNode;if(!r)throw Error(S(169));n?(e=Ep(e,t,xn),r.__reactInternalMemoizedMergedChildContext=e,K(Ie),K(xe),W(xe,e)):K(Ie),W(Ie,n)}var vt=null,ps=!1,$l=!1;function Cp(e){vt===null?vt=[e]:vt.push(e)}function uw(e){ps=!0,Cp(e)}function tn(){if(!$l&&vt!==null){$l=!0;var e=0,t=B;try{var n=vt;for(B=1;e>=s,o-=s,wt=1<<32-rt(t)+o|n<N?(te=R,R=null):te=R.sibling;var M=d(h,R,g[N],x);if(M===null){R===null&&(R=te);break}e&&R&&M.alternate===null&&t(h,R),p=i(M,p,N),P===null?k=M:P.sibling=M,P=M,R=te}if(N===g.length)return n(h,R),X&&pn(h,N),k;if(R===null){for(;NN?(te=R,R=null):te=R.sibling;var he=d(h,R,M.value,x);if(he===null){R===null&&(R=te);break}e&&R&&he.alternate===null&&t(h,R),p=i(he,p,N),P===null?k=he:P.sibling=he,P=he,R=te}if(M.done)return n(h,R),X&&pn(h,N),k;if(R===null){for(;!M.done;N++,M=g.next())M=c(h,M.value,x),M!==null&&(p=i(M,p,N),P===null?k=M:P.sibling=M,P=M);return X&&pn(h,N),k}for(R=r(h,R);!M.done;N++,M=g.next())M=y(R,h,N,M.value,x),M!==null&&(e&&M.alternate!==null&&R.delete(M.key===null?N:M.key),p=i(M,p,N),P===null?k=M:P.sibling=M,P=M);return e&&R.forEach(function(bn){return t(h,bn)}),X&&pn(h,N),k}function C(h,p,g,x){if(typeof g=="object"&&g!==null&&g.type===Fn&&g.key===null&&(g=g.props.children),typeof g=="object"&&g!==null){switch(g.$$typeof){case ui:e:{for(var k=g.key,P=p;P!==null;){if(P.key===k){if(k=g.type,k===Fn){if(P.tag===7){n(h,P.sibling),p=o(P,g.props.children),p.return=h,h=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===Ft&&ad(k)===P.type){n(h,P.sibling),p=o(P,g.props),p.ref=Fr(h,P,g),p.return=h,h=p;break e}n(h,P);break}else t(h,P);P=P.sibling}g.type===Fn?(p=wn(g.props.children,h.mode,x,g.key),p.return=h,h=p):(x=Fi(g.type,g.key,g.props,null,h.mode,x),x.ref=Fr(h,p,g),x.return=h,h=x)}return s(h);case Mn:e:{for(P=g.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===g.containerInfo&&p.stateNode.implementation===g.implementation){n(h,p.sibling),p=o(p,g.children||[]),p.return=h,h=p;break e}else{n(h,p);break}else t(h,p);p=p.sibling}p=Xl(g,h.mode,x),p.return=h,h=p}return s(h);case Ft:return P=g._init,C(h,p,P(g._payload),x)}if($r(g))return m(h,p,g,x);if(Lr(g))return v(h,p,g,x);Ei(h,g)}return typeof g=="string"&&g!==""||typeof g=="number"?(g=""+g,p!==null&&p.tag===6?(n(h,p.sibling),p=o(p,g),p.return=h,h=p):(n(h,p),p=ql(g,h.mode,x),p.return=h,h=p),s(h)):n(h,p)}return C}var rr=Lp(!0),Ap=Lp(!1),So={},pt=en(So),fo=en(So),po=en(So);function gn(e){if(e===So)throw Error(S(174));return e}function pu(e,t){switch(W(po,t),W(fo,e),W(pt,So),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:sa(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=sa(t,e)}K(pt),W(pt,t)}function or(){K(pt),K(fo),K(po)}function jp(e){gn(po.current);var t=gn(pt.current),n=sa(t,e.type);t!==n&&(W(fo,e),W(pt,n))}function mu(e){fo.current===e&&(K(pt),K(fo))}var J=en(0);function es(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.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 Vl=[];function hu(){for(var e=0;en?n:4,e(!0);var r=Hl.transition;Hl.transition={};try{e(!1),t()}finally{B=n,Hl.transition=r}}function Jp(){return qe().memoizedState}function pw(e,t,n){var r=qt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yp(e))Zp(t,n);else if(n=Op(e,t,n,r),n!==null){var o=Ee();ot(n,e,r,o),em(n,t,r)}}function mw(e,t,n){var r=qt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yp(e))Zp(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,it(l,s)){var a=t.interleaved;a===null?(o.next=o,fu(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Op(e,t,o,r),n!==null&&(o=Ee(),ot(n,e,r,o),em(n,t,r))}}function Yp(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Zp(e,t){Xr=ts=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function em(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ja(e,n)}}var ns={readContext:Ke,useCallback:ge,useContext:ge,useEffect:ge,useImperativeHandle:ge,useInsertionEffect:ge,useLayoutEffect:ge,useMemo:ge,useReducer:ge,useRef:ge,useState:ge,useDebugValue:ge,useDeferredValue:ge,useTransition:ge,useMutableSource:ge,useSyncExternalStore:ge,useId:ge,unstable_isNewReconciler:!1},hw={readContext:Ke,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:Ke,useEffect:cd,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Li(4194308,4,Gp.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){return Li(4,2,e,t)},useMemo:function(e,t){var n=ct();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ct();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=pw.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:ud,useDebugValue:xu,useDeferredValue:function(e){return ct().memoizedState=e},useTransition:function(){var e=ud(!1),t=e[0];return e=dw.bind(null,e[1]),ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=ct();if(X){if(n===void 0)throw Error(S(407));n=n()}else{if(n=t(),ue===null)throw Error(S(349));_n&30||Dp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,cd(Up.bind(null,r,i,e),[e]),r.flags|=2048,yo(9,zp.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=ct(),t=ue.identifierPrefix;if(X){var n=xt,r=wt;n=(r&~(1<<32-rt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ft]=t,e[uo]=r,am(e,t,!1,!1),t.stateNode=e;e:{switch(s=la(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;osr&&(t.flags|=128,r=!0,Fr(i,!1),t.lanes=4194304)}else{if(!r)if(e=Yi(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!X)return ve(t),null}else 2*ne()-i.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Fr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=J.current,W(J,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Cu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function _w(e,t){switch(iu(t),t.tag){case 1:return Le(t.type)&&Wi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),K(Ie),K(xe),mu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return pu(t),null;case 13:if(K(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(J),null;case 4:return or(),null;case 10:return uu(t.type._context),null;case 22:case 23:return Cu(),null;case 24:return null;default:return null}}var Ei=!1,we=!1,kw=typeof WeakSet=="function"?WeakSet:Set,E=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function Aa(e,t,n){try{n()}catch(r){ee(e,t,r)}}var vd=!1;function Ew(e,t){if(ga=Bi,e=mp(),ru(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,u=0,c=e,d=null;t:for(;;){for(var y;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++f===o&&(l=s),d===i&&++u===r&&(a=s),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(va={focusedElem:e,selectionRange:n},Bi=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return m=vd,vd=!1,m}function Xr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Aa(t,n,i)}o=o.next}while(o!==r)}}function ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ja(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function fm(e){var t=e.alternate;t!==null&&(e.alternate=null,fm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[uo],delete t[Sa],delete t[sw],delete t[lw])),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 dm(e){return e.tag===5||e.tag===3||e.tag===4}function wd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dm(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 Ma(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Hi));else if(r!==4&&(e=e.child,e!==null))for(Ma(e,t,n),e=e.sibling;e!==null;)Ma(e,t,n),e=e.sibling}function Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}var fe=null,tt=!1;function Mt(e,t,n){for(n=n.child;n!==null;)pm(e,t,n),n=n.sibling}function pm(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(ss,n)}catch{}switch(n.tag){case 5:we||Gn(n,t);case 6:var r=fe,o=tt;fe=null,Mt(e,t,n),fe=r,tt=o,fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?Ul(e.parentNode,n):e.nodeType===1&&Ul(e,n),oo(e)):Ul(fe,n.stateNode));break;case 4:r=fe,o=tt,fe=n.stateNode.containerInfo,tt=!0,Mt(e,t,n),fe=r,tt=o;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Aa(n,t,s),o=o.next}while(o!==r)}Mt(e,t,n);break;case 1:if(!we&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Mt(e,t,n),we=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function xd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new kw),t.forEach(function(r){var o=Lw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Rw(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,rs=0,D&6)throw Error(S(331));var o=D;for(D|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ane()-ku?vn(e,0):_u|=n),Ae(e,t)}function Sm(e,t){t===0&&(e.mode&1?(t=fi,fi<<=1,!(fi&130023424)&&(fi=4194304)):t=1);var n=Ee();e=Et(e,t),e!==null&&(go(e,t,n),Ae(e,n))}function Iw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sm(e,n)}function Lw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),Sm(e,n)}var _m;_m=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,xw(e,t,n);be=!!(e.flags&131072)}else be=!1,X&&t.flags&1048576&&Cp(t,Ki,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ii(e,t),e=t.pendingProps;var o=tr(t,xe.current);Yn(t,n),o=yu(null,t,r,e,o,n);var i=gu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Gi(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,fu(t),o.updater=ds,t.stateNode=o,o._reactInternals=t,Pa(t,r,e,n),t=Ta(null,t,r,!0,i,n)):(t.tag=0,X&&i&&ou(t),ke(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ii(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=jw(r),e=et(r,e),o){case 0:t=Oa(null,t,r,e,n);break e;case 1:t=hd(null,t,r,e,n);break e;case 11:t=pd(null,t,r,e,n);break e;case 14:t=md(null,t,r,et(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Oa(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),hd(e,t,r,o,n);case 3:e:{if(im(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Op(e,t),Ji(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ir(Error(S(423)),t),t=yd(e,t,r,n,o);break e}else if(r!==o){o=ir(Error(S(424)),t),t=yd(e,t,r,n,o);break e}else for(De=Gt(t.stateNode.containerInfo.firstChild),ze=t,X=!0,nt=null,n=Lp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nr(),r===o){t=Ct(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return Ap(t),e===null&&Ea(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,wa(r,o)?s=null:i!==null&&wa(r,i)&&(t.flags|=32),om(e,t),ke(e,t,s,n),t.child;case 6:return e===null&&Ea(t),null;case 13:return sm(e,t,n);case 4:return du(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rr(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),pd(e,t,r,o,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,W(qi,r._currentValue),r._currentValue=s,i!==null)if(it(i.value,s)){if(i.children===o.children&&!Ie.current){t=Ct(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=St(-1,n&-n),a.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?a.next=a:(a.next=u.next,u.next=a),f.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ca(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(S(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ca(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ke(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yn(t,n),o=Ke(o),r=r(o),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,o=et(r,t.pendingProps),o=et(r.type,o),md(e,t,r,o,n);case 15:return nm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Ii(e,t),t.tag=1,Le(r)?(e=!0,Gi(t)):e=!1,Yn(t,n),bp(t,r,o),Pa(t,r,o,n),Ta(null,t,r,!0,e,n);case 19:return lm(e,t,n);case 22:return rm(e,t,n)}throw Error(S(156,t.tag))};function km(e,t){return qd(e,t)}function Aw(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new Aw(e,t,n,r)}function Pu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jw(e){if(typeof e=="function")return Pu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Ga)return 11;if(e===Qa)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ji(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Pu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return wn(n.children,o,i,t);case Wa:s=8,o|=8;break;case Jl:return e=Ge(12,n,t,o|2),e.elementType=Jl,e.lanes=i,e;case Yl:return e=Ge(13,n,t,o),e.elementType=Yl,e.lanes=i,e;case Zl:return e=Ge(19,n,t,o),e.elementType=Zl,e.lanes=i,e;case Id:return ys(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Td:s=10;break e;case bd:s=9;break e;case Ga:s=11;break e;case Qa:s=14;break e;case Ft:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ge(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function wn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function ys(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Id,e.lanes=n,e.stateNode={isHidden:!1},e}function Kl(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function ql(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mw(e,t,n,r,o){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=Il(0),this.expirationTimes=Il(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Il(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Nu(e,t,n,r,o,i,s,l,a){return e=new Mw(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},fu(i),e}function Fw(e,t,n){var r=3{"use strict";function Nm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Nm)}catch(e){console.error(e)}}Nm(),Om.exports=Pm()});var bm=q(Lu=>{"use strict";var Tm=Iu();Lu.createRoot=Tm.createRoot,Lu.hydrateRoot=Tm.hydrateRoot;var V_});var Fm=q(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.output=Re.exists=Re.hash=Re.bytes=Re.bool=Re.number=void 0;function Ss(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}Re.number=Ss;function Lm(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}Re.bool=Lm;function Vw(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function Au(e,...t){if(!Vw(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}`)}Re.bytes=Au;function Am(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ss(e.outputLen),Ss(e.blockLen)}Re.hash=Am;function jm(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")}Re.exists=jm;function Mm(e,t){Au(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.add5L=T.add5H=T.add4H=T.add4L=T.add3H=T.add3L=T.add=T.rotlBL=T.rotlBH=T.rotlSL=T.rotlSH=T.rotr32L=T.rotr32H=T.rotrBL=T.rotrBH=T.rotrSL=T.rotrSH=T.shrSL=T.shrSH=T.toBig=T.split=T.fromBig=void 0;var _s=BigInt(2**32-1),ju=BigInt(32);function Mu(e,t=!1){return t?{h:Number(e&_s),l:Number(e>>ju&_s)}:{h:Number(e>>ju&_s)|0,l:Number(e&_s)|0}}T.fromBig=Mu;function Dm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);T.toBig=zm;var Um=(e,t,n)=>e>>>n;T.shrSH=Um;var Bm=(e,t,n)=>e<<32-n|t>>>n;T.shrSL=Bm;var $m=(e,t,n)=>e>>>n|t<<32-n;T.rotrSH=$m;var Vm=(e,t,n)=>e<<32-n|t>>>n;T.rotrSL=Vm;var Hm=(e,t,n)=>e<<64-n|t>>>n-32;T.rotrBH=Hm;var Wm=(e,t,n)=>e>>>n-32|t<<64-n;T.rotrBL=Wm;var Gm=(e,t)=>t;T.rotr32H=Gm;var Qm=(e,t)=>e;T.rotr32L=Qm;var Km=(e,t,n)=>e<>>32-n;T.rotlSH=Km;var qm=(e,t,n)=>t<>>32-n;T.rotlSL=qm;var Xm=(e,t,n)=>t<>>64-n;T.rotlBH=Xm;var Jm=(e,t,n)=>e<>>64-n;T.rotlBL=Jm;function Ym(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}T.add=Ym;var Zm=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);T.add3L=Zm;var eh=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;T.add3H=eh;var th=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);T.add4L=th;var nh=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;T.add4H=nh;var rh=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);T.add5L=rh;var oh=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;T.add5H=oh;var Ww={fromBig:Mu,split:Dm,toBig:zm,shrSH:Um,shrSL:Bm,rotrSH:$m,rotrSL:Vm,rotrBH:Hm,rotrBL:Wm,rotr32H:Gm,rotr32L:Qm,rotlSH:Km,rotlSL:qm,rotlBH:Xm,rotlBL:Jm,add:Ym,add3L:Zm,add3H:eh,add4L:th,add4H:nh,add5H:oh,add5L:rh};T.default=Ww});var sh=q(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.crypto=void 0;ks.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var uh=q(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.randomBytes=L.wrapXOFConstructorWithOpts=L.wrapConstructorWithOpts=L.wrapConstructor=L.checkOpts=L.Hash=L.concatBytes=L.toBytes=L.utf8ToBytes=L.asyncLoop=L.nextTick=L.hexToBytes=L.bytesToHex=L.isLE=L.rotr=L.createView=L.u32=L.u8=void 0;var Fu=sh(),Gw=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);L.u8=Gw;var Qw=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));L.u32=Qw;function zu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var Kw=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);L.createView=Kw;var qw=(e,t)=>e<<32-t|e>>>t;L.rotr=qw;L.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!L.isLE)throw new Error("Non little-endian hardware is not supported");var Xw=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Jw(e){if(!zu(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n=Pt._0&&e<=Pt._9)return e-Pt._0;if(e>=Pt._A&&e<=Pt._F)return e-(Pt._A-10);if(e>=Pt._a&&e<=Pt._f)return e-(Pt._a-10)}function Yw(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o{};L.nextTick=Zw;async function e1(e,t,n){let r=Date.now();for(let o=0;o=0&&ie().update(Es(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}L.wrapConstructor=o1;function i1(e){let t=(r,o)=>e(o).update(Es(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapConstructorWithOpts=i1;function s1(e){let t=(r,o)=>e(o).update(Es(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapXOFConstructorWithOpts=s1;function l1(e=32){if(Fu.crypto&&typeof Fu.crypto.getRandomValues=="function")return Fu.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}L.randomBytes=l1});var Uu=q(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.shake256=G.shake128=G.keccak_512=G.keccak_384=G.keccak_256=G.keccak_224=G.sha3_512=G.sha3_384=G.sha3_256=G.sha3_224=G.Keccak=G.keccakP=void 0;var cr=Fm(),ko=ih(),_o=uh(),[dh,ph,mh]=[[],[],[]],a1=BigInt(0),So=BigInt(1),u1=BigInt(2),c1=BigInt(7),f1=BigInt(256),d1=BigInt(113);for(let e=0,t=So,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],dh.push(2*(5*r+n)),ph.push((e+1)*(e+2)/2%64);let o=a1;for(let i=0;i<7;i++)t=(t<>c1)*d1)%f1,t&u1&&(o^=So<<(So<n>32?(0,ko.rotlBH)(e,t,n):(0,ko.rotlSH)(e,t,n),fh=(e,t,n)=>n>32?(0,ko.rotlBL)(e,t,n):(0,ko.rotlSL)(e,t,n);function hh(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,a=(s+2)%10,f=n[a],u=n[a+1],c=ch(f,u,1)^n[l],d=fh(f,u,1)^n[l+1];for(let y=0;y<50;y+=10)e[s+y]^=c,e[s+y+1]^=d}let o=e[2],i=e[3];for(let s=0;s<24;s++){let l=ph[s],a=ch(o,i,l),f=fh(o,i,l),u=dh[s];o=e[u],i=e[u+1],e[u]=a,e[u+1]=f}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=p1[r],e[1]^=m1[r]}n.fill(0)}G.keccakP=hh;var Eo=class e extends _o.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,cr.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,_o.u32)(this.state)}keccak(){hh(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,cr.exists)(this);let{blockLen:n,state:r}=this;t=(0,_o.toBytes)(t);let o=t.length;for(let i=0;i=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}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,cr.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,cr.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:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}};G.Keccak=Eo;var rn=(e,t,n)=>(0,_o.wrapConstructor)(()=>new Eo(t,e,n));G.sha3_224=rn(6,144,224/8);G.sha3_256=rn(6,136,256/8);G.sha3_384=rn(6,104,384/8);G.sha3_512=rn(6,72,512/8);G.keccak_224=rn(1,144,224/8);G.keccak_256=rn(1,136,256/8);G.keccak_384=rn(1,104,384/8);G.keccak_512=rn(1,72,512/8);var yh=(e,t,n)=>(0,_o.wrapXOFConstructorWithOpts)((r={})=>new Eo(t,e,r.dkLen===void 0?n:r.dkLen,!0));G.shake128=yh(31,168,128/8);G.shake256=yh(31,136,256/8)});var Eh=q((ek,on)=>{var{sha3_512:h1}=Uu(),vh=24,Co=32,Bu=(e=4,t=Math.random)=>{let n="";for(;n.lengthwh(h1(e)).toString(36).slice(1),gh=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),y1=e=>gh[Math.floor(e()*gh.length)],Sh=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),n=t.length?t+Bu(Co):Bu(Co);return xh(n).substring(0,Co)},_h=e=>()=>e++,g1=476782367,kh=({random:e=Math.random,counter:t=_h(Math.floor(e()*g1)),length:n=vh,fingerprint:r=Sh()}={})=>function(){let i=y1(e),s=Date.now().toString(36),l=t().toString(36),a=Bu(n,e),f=`${s+a+l+r}`;return`${i+xh(f).substring(1,n)}`},v1=kh(),w1=(e,{minLength:t=2,maxLength:n=Co}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};on.exports.getConstants=()=>({defaultLength:vh,bigLength:Co});on.exports.init=kh;on.exports.createId=v1;on.exports.bufToBigInt=wh;on.exports.createCounter=_h;on.exports.createFingerprint=Sh;on.exports.isCuid=w1});var Ch=q((tk,Ro)=>{var{createId:x1,init:S1,getConstants:_1,isCuid:k1}=Eh();Ro.exports.createId=x1;Ro.exports.init=S1;Ro.exports.getConstants=_1;Ro.exports.isCuid=k1});var Ph=q(Vu=>{"use strict";var E1=Symbol.for("react.fragment");Vu.Fragment=E1;Vu.jsxDEV=void 0});var Oh=q((ik,Nh)=>{"use strict";Nh.exports=Ph()});var bh=q(Cs=>{"use strict";var C1=ce(),R1=Symbol.for("react.element"),P1=Symbol.for("react.fragment"),N1=Object.prototype.hasOwnProperty,O1=C1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,T1={key:!0,ref:!0,__self:!0,__source:!0};function Th(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)N1.call(t,r)&&!T1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:R1,type:e,key:i,ref:s,props:o,_owner:O1.current}}Cs.Fragment=P1;Cs.jsx=Th;Cs.jsxs=Th});var $=q((lk,Ih)=>{"use strict";Ih.exports=bh()});var Hy=q((bC,Vy)=>{var Dx=1/0,zx="[object Symbol]",Ux=/^\s+|\s+$/g,yc="\\ud800-\\udfff",Iy="\\u0300-\\u036f\\ufe20-\\ufe23",Ly="\\u20d0-\\u20f0",Ay="\\ufe0e\\ufe0f",Bx="["+yc+"]",mc="["+Iy+Ly+"]",hc="\\ud83c[\\udffb-\\udfff]",$x="(?:"+mc+"|"+hc+")",jy="[^"+yc+"]",My="(?:\\ud83c[\\udde6-\\uddff]){2}",Fy="[\\ud800-\\udbff][\\udc00-\\udfff]",Dy="\\u200d",zy=$x+"?",Uy="["+Ay+"]?",Vx="(?:"+Dy+"(?:"+[jy,My,Fy].join("|")+")"+Uy+zy+")*",Hx=Uy+zy+Vx,Wx="(?:"+[jy+mc+"?",mc,My,Fy,Bx].join("|")+")",Gx=RegExp(hc+"(?="+hc+")|"+Wx+Hx,"g"),Qx=RegExp("["+Dy+yc+Iy+Ly+Ay+"]"),Kx=typeof global=="object"&&global&&global.Object===Object&&global,qx=typeof self=="object"&&self&&self.Object===Object&&self,Xx=Kx||qx||Function("return this")();function Jx(e){return e.split("")}function Yx(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1;);return n}function tS(e,t){for(var n=e.length;n--&&By(t,e[n],0)>-1;);return n}function nS(e){return Qx.test(e)}function Ny(e){return nS(e)?rS(e):Jx(e)}function rS(e){return e.match(Gx)||[]}var oS=Object.prototype,iS=oS.toString,Oy=Xx.Symbol,Ty=Oy?Oy.prototype:void 0,by=Ty?Ty.toString:void 0;function sS(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:sS(e,t,n)}function aS(e){return!!e&&typeof e=="object"}function uS(e){return typeof e=="symbol"||aS(e)&&iS.call(e)==zx}function cS(e){return e==null?"":$y(e)}function fS(e,t,n){if(e=cS(e),e&&(n||t===void 0))return e.replace(Ux,"");if(!e||!(t=$y(t)))return e;var r=Ny(e),o=Ny(t),i=eS(r,o),s=tS(r,o)+1;return lS(r,i,s).join("")}Vy.exports=fS});var qy=q((zC,Ky)=>{"use strict";function mS(e,t){for(;e.length{var SS="Expected a function",ug="__lodash_hash_undefined__",cg=1/0,_S="[object Function]",kS="[object GeneratorFunction]",ES="[object Symbol]",CS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,RS=/^\w*$/,PS=/^\./,NS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,OS=/[\\^$.*+?()[\]{}|]/g,TS=/\\(\\)?/g,bS=/^\[object .+?Constructor\]$/,IS=typeof global=="object"&&global&&global.Object===Object&&global,LS=typeof self=="object"&&self&&self.Object===Object&&self,xc=IS||LS||Function("return this")();function AS(e,t){return e?.[t]}function jS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var MS=Array.prototype,FS=Function.prototype,fg=Object.prototype,wc=xc["__core-js_shared__"],ig=function(){var e=/[^.]+$/.exec(wc&&wc.keys&&wc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),dg=FS.toString,Sc=fg.hasOwnProperty,pg=fg.toString,DS=RegExp("^"+dg.call(Sc).replace(OS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sg=xc.Symbol,zS=MS.splice,US=mg(xc,"Map"),zo=mg(Object,"create"),lg=sg?sg.prototype:void 0,ag=lg?lg.toString:void 0;function Nn(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function XS(e,t){var n=this.__data__,r=Gs(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}xr.prototype.clear=GS;xr.prototype.delete=QS;xr.prototype.get=KS;xr.prototype.has=qS;xr.prototype.set=XS;function On(e){var t=-1,n=e?e.length:0;for(this.clear();++t{(function(e,t){"use strict";var n="1.0.37",r="",o="?",i="function",s="undefined",l="object",a="string",f="major",u="model",c="name",d="type",y="vendor",m="version",v="architecture",C="console",h="mobile",p="tablet",g="smarttv",x="wearable",k="embedded",P=500,R="Amazon",N="Apple",te="ASUS",M="BlackBerry",he="Browser",bn="Chrome",h0="Edge",Go="Firefox",Qo="Google",Bc="Huawei",sl="LG",ll="Microsoft",$c="Motorola",Ko="Opera",qo="Samsung",Vc="Sharp",Xo="Sony",al="Xiaomi",ul="Zebra",Hc="Facebook",Wc="Chromium OS",Gc="Mac OS",y0=function(F,U){var I={};for(var V in F)U[V]&&U[V].length%2===0?I[V]=U[V].concat(F[V]):I[V]=F[V];return I},Jo=function(F){for(var U={},I=0;I0?z.length===2?typeof z[1]==i?this[z[0]]=z[1].call(this,lt):this[z[0]]=z[1]:z.length===3?typeof z[1]===i&&!(z[1].exec&&z[1].test)?this[z[0]]=lt?z[1].call(this,lt,z[2]):t:this[z[0]]=lt?lt.replace(z[1],z[2]):t:z.length===4&&(this[z[0]]=lt?z[3].call(this,lt.replace(z[1],z[2])):t):this[z]=lt||t;I+=2}},fl=function(F,U){for(var I in U)if(typeof U[I]===l&&U[I].length>0){for(var V=0;V2&&(b[u]="iPad",b[d]=p),b},this.getEngine=function(){var b={};return b[c]=t,b[m]=t,Pr.call(b,V,st.engine),b},this.getOS=function(){var b={};return b[c]=t,b[m]=t,Pr.call(b,V,st.os),z&&!b[c]&&At&&At.platform!="Unknown"&&(b[c]=At.platform.replace(/chrome os/i,Wc).replace(/macos/i,Gc)),b},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 V},this.setUA=function(b){return V=typeof b===a&&b.length>P?cl(b,P):b,this},this.setUA(V),this};Me.VERSION=n,Me.BROWSER=Jo([c,m,f]),Me.CPU=Jo([v]),Me.DEVICE=Jo([u,y,d,C,h,g,p,x,k]),Me.ENGINE=Me.OS=Jo([c,m]),typeof Vo!==s?(typeof rl!==s&&rl.exports&&(Vo=rl.exports=Me),Vo.UAParser=Me):typeof define===i&&define.amd?define(function(){return Me}):typeof e!==s&&(e.UAParser=Me);var In=typeof e!==s&&(e.jQuery||e.Zepto);if(In&&!In.ua){var Yo=new Me;In.ua=Yo.getResult(),In.ua.get=function(){return Yo.getUA()},In.ua.set=function(F){Yo.setUA(F);var U=Yo.getResult();for(var I in U)In.ua[I]=U[I]}}})(typeof window=="object"?window:Vo)});var r0=q((qP,fn)=>{var{sha3_512:E_}=Uu(),Jg=24,Ho=32,Dc=(e=4,t=Math.random)=>{let n="";for(;n.lengthYg(E_(e)).toString(36).slice(1),Xg=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),C_=e=>Xg[Math.floor(e()*Xg.length)],e0=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+Dc(Ho,t):Dc(Ho,t);return Zg(r).substring(0,Ho)},t0=e=>()=>e++,R_=476782367,n0=({random:e=Math.random,counter:t=t0(Math.floor(e()*R_)),length:n=Jg,fingerprint:r=e0({random:e})}={})=>function(){let i=C_(e),s=Date.now().toString(36),l=t().toString(36),a=Dc(n,e),f=`${s+a+l+r}`;return`${i+Zg(f).substring(1,n)}`},P_=n0(),N_=(e,{minLength:t=2,maxLength:n=Ho}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};fn.exports.getConstants=()=>({defaultLength:Jg,bigLength:Ho});fn.exports.init=n0;fn.exports.createId=P_;fn.exports.bufToBigInt=Yg;fn.exports.createCounter=t0;fn.exports.createFingerprint=e0;fn.exports.isCuid=N_});var o0=q((XP,Wo)=>{var{createId:O_,init:T_,getConstants:b_,isCuid:I_}=r0();Wo.exports.createId=O_;Wo.exports.init=T_;Wo.exports.getConstants=b_;Wo.exports.isCuid=I_});var p0=O(bm());var ur=O(ce()),nn=(e,t,n)=>{let[,r]=(0,ur.useState)({}),i=(0,ur.useRef)({data:e,deps:n||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,ur.useEffect)(()=>{i.ready=!0,t&&t({init:!0})},[]),i.ready===!1){i._loading={};for(let[s,l]of Object.entries(e))if(!i.promisedKeys.has(s)){let a=l;typeof a=="object"&&a instanceof Promise&&(i._loading[s]=!0,i.promisedKeys.add(s),i.data[s]=null,a.then(f=>{i.data[s]=f,i._loading[s]=!1,i.data.render()}))}i.data.render=()=>{i.ready&&r({})}}else if(i.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(i.deps[s]!==l){i.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return i.data};var Im=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let o=0,i=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(i),n()),o>100&&clearInterval(i)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var $w=O(ce());var Rh=O(Ch()),Nt=O(ce()),$u=(0,Nt.createContext)({global:{},render:()=>{}});var sn=(e,t,n)=>{let r=window;r.globalValueID||(r.globalValueID=new WeakMap);let o=typeof t=="string"?t:n;o||(r.globalValueID.has(e)||r.globalValueID.set(e,(0,Rh.createId)()),o=r.globalValueID.get(e)||""),o||(o="GLOBAL_DEFAULT");let i=(0,Nt.useContext)($u),{global:s,render:l}=i;s[o]||(s[o]=e),(0,Nt.useEffect)(()=>{let f=null;if(typeof t=="function")try{f=t()}catch(u){console.log(u)}return()=>{typeof f=="function"?f():f instanceof Promise&&f.then(u=>{typeof u=="function"&&u()})}},[]);let a=s[o];return a?a.render=f=>{f&&(s[o]=void 0),(0,Nt.startTransition)(l)}:console.log(e,o),a},fr=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(o=>fr(o));var n={};for(var r in e)typeof e[r]=="object"?n[r]=fr(e[r]):n[r]=e[r];return n};var hk=O(ce());var Hu=O(ce()),Lh=O(Iu()),Ah=O(Oh()),jh=O($()),Mh=()=>{let e=typeof window=="object"?window:globalThis;e.React=Hu.default,e.ReactDOM=Lh.default,e.JSXRuntime=jh.default,e.JSXDevRuntime=Ah.default,e.Fragment=Hu.default.Fragment};var b1={data:""},Dh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||b1,zh=e=>{let t=Dh(e),n=t.data;return t.data="",n},I1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,L1=/\/\*[^]*?\*\/| +/g,Fh=/\n+/g,Pn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Pn(s,i):i+"{"+Pn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Pn(s,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Pn.p?Pn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Ot={},Uh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Uh(e[n]);return t}return e},A1=(e,t,n,r,o)=>{let i=Uh(e),s=Ot[i]||(Ot[i]=(a=>{let f=0,u=11;for(;f>>0;return"go"+u})(i));if(!Ot[s]){let a=i!==e?e:(f=>{let u,c,d=[{}];for(;u=I1.exec(f.replace(L1,""));)u[4]?d.shift():u[3]?(c=u[3].replace(Fh," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][u[1]]=u[2].replace(Fh," ").trim();return d[0]})(e);Ot[s]=Pn(o?{["@keyframes "+s]:a}:a,n?"":"."+s)}let l=n&&Ot.g?Ot.g:null;return n&&(Ot.g=Ot[s]),((a,f,u,c)=>{c?f.data=f.data.replace(c,a):f.data.indexOf(a)===-1&&(f.data=u?a+f.data:f.data+a)})(Ot[s],t,r,l),s},j1=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Pn(l,""):l===!1?"":l}return r+o+(s??"")},"");function Rs(e){let t=this||{},n=e.call?e(t.p):e;return A1(n.unshift?n.raw?j1(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,Dh(t.target),t.g,t.o,t.k)}var uk=Rs.bind({g:1}),ck=Rs.bind({k:1});var Bh=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Im(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",o=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let i=n.port;t.baseurl=o+"://"+r+(i?":"+i:"")+"/",t.basepath||(t.basepath="/"),t.css=Rs,t.extractCss=zh,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let f of a)typeof f=="string"&&f.trim()&&l.push(f.trim());else l.push(a.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};var f0=O(ce());var $h=/^(?:[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 M1(e){return typeof e=="string"&&$h.test(e)}var Wu=M1;var Po=O($()),Gu=({children:e,back:t})=>(0,Po.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,Po.jsx)("div",{children:e}),(0,Po.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Hh=O(ce());var Se=O($()),Vh=window,No=({children:e,className:t,show:n,backdrop:r,note:o,alt:i})=>{let s=nn({icon:(0,Se.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Hh.useEffect)(()=>(s.ival=setInterval(()=>{s.value+=.1333,s.value>=1.3&&(s.value=0),s.render()},200),Vh.loadingIcon&&(s.icon=(0,Se.jsx)("img",{alt:"loading",src:Vh.loadingIcon,className:css` +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ql(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Oa(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var vw=typeof WeakMap=="function"?WeakMap:Map;function tm(e,t,n){n=St(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){os||(os=!0,za=r),Oa(e,t)},n}function nm(e,t,n){n=St(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){Oa(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){Oa(e,t),typeof r!="function"&&(Kt===null?Kt=new Set([this]):Kt.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function fd(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new vw;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Iw.bind(null,e,t,n),t.then(e,e))}function dd(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function pd(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=St(-1,1),t.tag=2,Qt(n,t,1))),n.lanes|=1),e)}var ww=Rt.ReactCurrentOwner,be=!1;function ke(e,t,n,r){t.child=e===null?Ap(t,null,n,r):rr(t,e.child,n,r)}function md(e,t,n,r,o){n=n.render;var i=t.ref;return Yn(t,o),r=gu(e,t,n,r,i,o),n=vu(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ct(e,t,o)):(X&&n&&iu(t),t.flags|=1,ke(e,t,r,o),t.child)}function hd(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Nu(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,rm(e,t,i,r,o)):(e=Fi(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:lo,n(s,r)&&e.ref===t.ref)return Ct(e,t,o)}return t.flags|=1,e=Xt(i,r),e.ref=t.ref,e.return=t,t.child=e}function rm(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(lo(i,r)&&e.ref===t.ref)if(be=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(be=!0);else return t.lanes=e.lanes,Ct(e,t,o)}return Ta(e,t,n,r,o)}function om(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},W(Qn,Fe),Fe|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,W(Qn,Fe),Fe|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,W(Qn,Fe),Fe|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,W(Qn,Fe),Fe|=r;return ke(e,t,o,n),t.child}function im(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ta(e,t,n,r,o){var i=Le(n)?xn:xe.current;return i=tr(t,i),Yn(t,o),n=gu(e,t,n,r,i,o),r=vu(),e!==null&&!be?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Ct(e,t,o)):(X&&r&&iu(t),t.flags|=1,ke(e,t,n,o),t.child)}function yd(e,t,n,r,o){if(Le(n)){var i=!0;Ki(t)}else i=!1;if(Yn(t,o),t.stateNode===null)Ai(e,t),Ip(t,n,r),Na(t,n,r,o),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var a=s.context,f=n.contextType;typeof f=="object"&&f!==null?f=Ke(f):(f=Le(n)?xn:xe.current,f=tr(t,f));var u=n.getDerivedStateFromProps,c=typeof u=="function"||typeof s.getSnapshotBeforeUpdate=="function";c||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||a!==f)&&ld(t,s,r,f),Dt=!1;var d=t.memoizedState;s.state=d,Zi(t,r,s,o),a=t.memoizedState,l!==r||d!==a||Ie.current||Dt?(typeof u=="function"&&(Pa(t,n,u,r),a=t.memoizedState),(l=Dt||sd(t,n,l,r,d,a,f))?(c||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),s.props=r,s.state=a,s.context=f,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Tp(e,t),l=t.memoizedProps,f=t.type===t.elementType?l:et(t.type,l),s.props=f,c=t.pendingProps,d=s.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ke(a):(a=Le(n)?xn:xe.current,a=tr(t,a));var y=n.getDerivedStateFromProps;(u=typeof y=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==c||d!==a)&&ld(t,s,r,a),Dt=!1,d=t.memoizedState,s.state=d,Zi(t,r,s,o);var m=t.memoizedState;l!==c||d!==m||Ie.current||Dt?(typeof y=="function"&&(Pa(t,n,y,r),m=t.memoizedState),(f=Dt||sd(t,n,f,r,d,m,a)||!1)?(u||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,m,a),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,m,a)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),s.props=r,s.state=m,s.context=a,r=f):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return ba(e,t,n,r,i,o)}function ba(e,t,n,r,o,i){im(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return o&&td(t,n,!1),Ct(e,t,i);r=t.stateNode,ww.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=rr(t,e.child,null,i),t.child=rr(t,null,l,i)):ke(e,t,l,i),t.memoizedState=r.state,o&&td(t,n,!0),t.child}function sm(e){var t=e.stateNode;t.pendingContext?ed(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ed(e,t.context,!1),pu(e,t.containerInfo)}function gd(e,t,n,r,o){return nr(),lu(o),t.flags|=256,ke(e,t,n,r),t.child}var Ia={dehydrated:null,treeContext:null,retryLane:0};function La(e){return{baseLanes:e,cachePool:null,transitions:null}}function lm(e,t,n){var r=t.pendingProps,o=J.current,i=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(o&2)!==0),l?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),W(J,o&1),e===null)return Ca(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,i?(r=t.mode,i=t.child,s={mode:"hidden",children:s},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=s):i=vs(s,r,0,null),e=wn(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=La(n),t.memoizedState=Ia,e):Su(t,s));if(o=e.memoizedState,o!==null&&(l=o.dehydrated,l!==null))return xw(e,t,s,r,l,o,n);if(i){i=r.fallback,s=t.mode,o=e.child,l=o.sibling;var a={mode:"hidden",children:r.children};return!(s&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Xt(o,a),r.subtreeFlags=o.subtreeFlags&14680064),l!==null?i=Xt(l,i):(i=wn(i,s,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,s=e.child.memoizedState,s=s===null?La(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},i.memoizedState=s,i.childLanes=e.childLanes&~n,t.memoizedState=Ia,r}return i=e.child,e=i.sibling,r=Xt(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function Su(e,t){return t=vs({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Ci(e,t,n,r){return r!==null&&lu(r),rr(t,e.child,null,n),e=Su(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xw(e,t,n,r,o,i,s){if(n)return t.flags&256?(t.flags&=-257,r=Ql(Error(S(422))),Ci(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=vs({mode:"visible",children:r.children},o,0,null),i=wn(i,o,s,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&rr(t,e.child,null,s),t.child.memoizedState=La(s),t.memoizedState=Ia,i);if(!(t.mode&1))return Ci(e,t,s,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,i=Error(S(419)),r=Ql(i,r,void 0),Ci(e,t,s,r)}if(l=(s&e.childLanes)!==0,be||l){if(r=ue,r!==null){switch(s&-s){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|s)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Et(e,o),ot(r,e,o,-1))}return Pu(),r=Ql(Error(S(421))),Ci(e,t,s,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=Lw.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,De=Gt(o.nextSibling),ze=t,X=!0,nt=null,e!==null&&(He[We++]=wt,He[We++]=xt,He[We++]=Sn,wt=e.id,xt=e.overflow,Sn=t),t=Su(t,r.children),t.flags|=4096,t)}function vd(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ra(e.return,t,n)}function Kl(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function am(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ke(e,t,r.children,n),r=J.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vd(e,n,t);else if(e.tag===19)vd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(W(J,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&es(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Kl(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&es(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Kl(t,!0,n,null,i);break;case"together":Kl(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ai(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ct(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),kn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,n=Xt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Xt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sw(e,t,n){switch(t.tag){case 3:sm(t),nr();break;case 5:jp(t);break;case 1:Le(t.type)&&Ki(t);break;case 4:pu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;W(Ji,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(W(J,J.current&1),t.flags|=128,null):n&t.child.childLanes?lm(e,t,n):(W(J,J.current&1),e=Ct(e,t,n),e!==null?e.sibling:null);W(J,J.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return am(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),W(J,J.current),r)break;return null;case 22:case 23:return t.lanes=0,om(e,t,n)}return Ct(e,t,n)}var um,Aa,cm,fm;um=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Aa=function(){};cm=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,gn(pt.current);var i=null;switch(n){case"input":o=na(e,o),r=na(e,r),i=[];break;case"select":o=Z({},o,{value:void 0}),r=Z({},r,{value:void 0}),i=[];break;case"textarea":o=ia(e,o),r=ia(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Gi)}la(n,r);var s;n=null;for(f in o)if(!r.hasOwnProperty(f)&&o.hasOwnProperty(f)&&o[f]!=null)if(f==="style"){var l=o[f];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else f!=="dangerouslySetInnerHTML"&&f!=="children"&&f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(eo.hasOwnProperty(f)?i||(i=[]):(i=i||[]).push(f,null));for(f in r){var a=r[f];if(l=o?.[f],r.hasOwnProperty(f)&&a!==l&&(a!=null||l!=null))if(f==="style")if(l){for(s in l)!l.hasOwnProperty(s)||a&&a.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in a)a.hasOwnProperty(s)&&l[s]!==a[s]&&(n||(n={}),n[s]=a[s])}else n||(i||(i=[]),i.push(f,n)),n=a;else f==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,l=l?l.__html:void 0,a!=null&&l!==a&&(i=i||[]).push(f,a)):f==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(f,""+a):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&(eo.hasOwnProperty(f)?(a!=null&&f==="onScroll"&&Q("scroll",e),i||l===a||(i=[])):(i=i||[]).push(f,a))}n&&(i=i||[]).push("style",n);var f=i;(t.updateQueue=f)&&(t.flags|=4)}};fm=function(e,t,n,r){n!==r&&(t.flags|=4)};function Dr(e,t){if(!X)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ve(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function _w(e,t,n){var r=t.pendingProps;switch(su(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ve(t),null;case 1:return Le(t.type)&&Qi(),ve(t),null;case 3:return r=t.stateNode,or(),K(Ie),K(xe),hu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(ki(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,nt!==null&&($a(nt),nt=null))),Aa(e,t),ve(t),null;case 5:mu(t);var o=gn(po.current);if(n=t.type,e!==null&&t.stateNode!=null)cm(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(S(166));return ve(t),null}if(e=gn(pt.current),ki(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ft]=t,r[co]=i,e=(t.mode&1)!==0,n){case"dialog":Q("cancel",r),Q("close",r);break;case"iframe":case"object":case"embed":Q("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[ft]=t,e[co]=r,um(e,t,!1,!1),t.stateNode=e;e:{switch(s=aa(n,r),n){case"dialog":Q("cancel",e),Q("close",e),o=r;break;case"iframe":case"object":case"embed":Q("load",e),o=r;break;case"video":case"audio":for(o=0;osr&&(t.flags|=128,r=!0,Dr(i,!1),t.lanes=4194304)}else{if(!r)if(e=es(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Dr(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!X)return ve(t),null}else 2*ne()-i.renderingStartTime>sr&&n!==1073741824&&(t.flags|=128,r=!0,Dr(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=J.current,W(J,r?n&1|2:n&1),t):(ve(t),null);case 22:case 23:return Ru(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Fe&1073741824&&(ve(t),t.subtreeFlags&6&&(t.flags|=8192)):ve(t),null;case 24:return null;case 25:return null}throw Error(S(156,t.tag))}function kw(e,t){switch(su(t),t.tag){case 1:return Le(t.type)&&Qi(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return or(),K(Ie),K(xe),hu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return mu(t),null;case 13:if(K(J),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));nr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return K(J),null;case 4:return or(),null;case 10:return cu(t.type._context),null;case 22:case 23:return Ru(),null;case 24:return null;default:return null}}var Ri=!1,we=!1,Ew=typeof WeakSet=="function"?WeakSet:Set,E=null;function Gn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function ja(e,t,n){try{n()}catch(r){ee(e,t,r)}}var wd=!1;function Cw(e,t){if(va=Vi,e=hp(),ou(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,f=0,u=0,c=e,d=null;t:for(;;){for(var y;c!==n||o!==0&&c.nodeType!==3||(l=s+o),c!==i||r!==0&&c.nodeType!==3||(a=s+r),c.nodeType===3&&(s+=c.nodeValue.length),(y=c.firstChild)!==null;)d=c,c=y;for(;;){if(c===e)break t;if(d===n&&++f===o&&(l=s),d===i&&++u===r&&(a=s),(y=c.nextSibling)!==null)break;c=d,d=c.parentNode}c=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(wa={focusedElem:e,selectionRange:n},Vi=!1,E=t;E!==null;)if(t=E,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,E=e;else for(;E!==null;){t=E;try{var m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,C=m.memoizedState,h=t.stateNode,p=h.getSnapshotBeforeUpdate(t.elementType===t.type?v:et(t.type,v),C);h.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var g=t.stateNode.containerInfo;g.nodeType===1?g.textContent="":g.nodeType===9&&g.documentElement&&g.removeChild(g.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(x){ee(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,E=e;break}E=t.return}return m=wd,wd=!1,m}function Jr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&ja(t,n,i)}o=o.next}while(o!==r)}}function ys(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ma(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function dm(e){var t=e.alternate;t!==null&&(e.alternate=null,dm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ft],delete t[co],delete t[_a],delete t[lw],delete t[aw])),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 pm(e){return e.tag===5||e.tag===3||e.tag===4}function xd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||pm(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 Fa(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Gi));else if(r!==4&&(e=e.child,e!==null))for(Fa(e,t,n),e=e.sibling;e!==null;)Fa(e,t,n),e=e.sibling}function Da(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Da(e,t,n),e=e.sibling;e!==null;)Da(e,t,n),e=e.sibling}var fe=null,tt=!1;function Mt(e,t,n){for(n=n.child;n!==null;)mm(e,t,n),n=n.sibling}function mm(e,t,n){if(dt&&typeof dt.onCommitFiberUnmount=="function")try{dt.onCommitFiberUnmount(as,n)}catch{}switch(n.tag){case 5:we||Gn(n,t);case 6:var r=fe,o=tt;fe=null,Mt(e,t,n),fe=r,tt=o,fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):fe.removeChild(n.stateNode));break;case 18:fe!==null&&(tt?(e=fe,n=n.stateNode,e.nodeType===8?Bl(e.parentNode,n):e.nodeType===1&&Bl(e,n),io(e)):Bl(fe,n.stateNode));break;case 4:r=fe,o=tt,fe=n.stateNode.containerInfo,tt=!0,Mt(e,t,n),fe=r,tt=o;break;case 0:case 11:case 14:case 15:if(!we&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&ja(n,t,s),o=o.next}while(o!==r)}Mt(e,t,n);break;case 1:if(!we&&(Gn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){ee(n,t,l)}Mt(e,t,n);break;case 21:Mt(e,t,n);break;case 22:n.mode&1?(we=(r=we)||n.memoizedState!==null,Mt(e,t,n),we=r):Mt(e,t,n);break;default:Mt(e,t,n)}}function Sd(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Ew),t.forEach(function(r){var o=Aw.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function Ze(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Pw(r/1960))-r,10e?16:e,$t===null)var r=!1;else{if(e=$t,$t=null,is=0,D&6)throw Error(S(331));var o=D;for(D|=4,E=e.current;E!==null;){var i=E,s=i.child;if(E.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ane()-Eu?vn(e,0):ku|=n),Ae(e,t)}function _m(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=Ee();e=Et(e,t),e!==null&&(vo(e,t,n),Ae(e,n))}function Lw(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),_m(e,n)}function Aw(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(S(314))}r!==null&&r.delete(t),_m(e,n)}var km;km=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ie.current)be=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return be=!1,Sw(e,t,n);be=!!(e.flags&131072)}else be=!1,X&&t.flags&1048576&&Rp(t,Xi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ai(e,t),e=t.pendingProps;var o=tr(t,xe.current);Yn(t,n),o=gu(null,t,r,e,o,n);var i=vu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Le(r)?(i=!0,Ki(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,du(t),o.updater=ms,t.stateNode=o,o._reactInternals=t,Na(t,r,e,n),t=ba(null,t,r,!0,i,n)):(t.tag=0,X&&i&&iu(t),ke(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ai(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Mw(r),e=et(r,e),o){case 0:t=Ta(null,t,r,e,n);break e;case 1:t=yd(null,t,r,e,n);break e;case 11:t=md(null,t,r,e,n);break e;case 14:t=hd(null,t,r,et(r.type,e),n);break e}throw Error(S(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Ta(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),yd(e,t,r,o,n);case 3:e:{if(sm(t),e===null)throw Error(S(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Tp(e,t),Zi(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=ir(Error(S(423)),t),t=gd(e,t,r,n,o);break e}else if(r!==o){o=ir(Error(S(424)),t),t=gd(e,t,r,n,o);break e}else for(De=Gt(t.stateNode.containerInfo.firstChild),ze=t,X=!0,nt=null,n=Ap(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(nr(),r===o){t=Ct(e,t,n);break e}ke(e,t,r,n)}t=t.child}return t;case 5:return jp(t),e===null&&Ca(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,xa(r,o)?s=null:i!==null&&xa(r,i)&&(t.flags|=32),im(e,t),ke(e,t,s,n),t.child;case 6:return e===null&&Ca(t),null;case 13:return lm(e,t,n);case 4:return pu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=rr(t,null,r,n):ke(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),md(e,t,r,o,n);case 7:return ke(e,t,t.pendingProps,n),t.child;case 8:return ke(e,t,t.pendingProps.children,n),t.child;case 12:return ke(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,W(Ji,r._currentValue),r._currentValue=s,i!==null)if(it(i.value,s)){if(i.children===o.children&&!Ie.current){t=Ct(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=St(-1,n&-n),a.tag=2;var f=i.updateQueue;if(f!==null){f=f.shared;var u=f.pending;u===null?a.next=a:(a.next=u.next,u.next=a),f.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ra(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(S(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ra(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}ke(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Yn(t,n),o=Ke(o),r=r(o),t.flags|=1,ke(e,t,r,n),t.child;case 14:return r=t.type,o=et(r,t.pendingProps),o=et(r.type,o),hd(e,t,r,o,n);case 15:return rm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:et(r,o),Ai(e,t),t.tag=1,Le(r)?(e=!0,Ki(t)):e=!1,Yn(t,n),Ip(t,r,o),Na(t,r,o,n),ba(null,t,r,!0,e,n);case 19:return am(e,t,n);case 22:return om(e,t,n)}throw Error(S(156,t.tag))};function Em(e,t){return Xd(e,t)}function jw(e,t,n,r){this.tag=e,this.key=n,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ge(e,t,n,r){return new jw(e,t,n,r)}function Nu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mw(e){if(typeof e=="function")return Nu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Qa)return 11;if(e===Ka)return 14}return 2}function Xt(e,t){var n=e.alternate;return n===null?(n=Ge(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Fi(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Nu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Fn:return wn(n.children,o,i,t);case Ga:s=8,o|=8;break;case Yl:return e=Ge(12,n,t,o|2),e.elementType=Yl,e.lanes=i,e;case Zl:return e=Ge(13,n,t,o),e.elementType=Zl,e.lanes=i,e;case ea:return e=Ge(19,n,t,o),e.elementType=ea,e.lanes=i,e;case Ld:return vs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bd:s=10;break e;case Id:s=9;break e;case Qa:s=11;break e;case Ka:s=14;break e;case Ft:s=16,r=null;break e}throw Error(S(130,e==null?e:typeof e,""))}return t=Ge(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function wn(e,t,n,r){return e=Ge(7,e,r,t),e.lanes=n,e}function vs(e,t,n,r){return e=Ge(22,e,r,t),e.elementType=Ld,e.lanes=n,e.stateNode={isHidden:!1},e}function ql(e,t,n){return e=Ge(6,e,null,t),e.lanes=n,e}function Xl(e,t,n){return t=Ge(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fw(e,t,n,r,o){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=Ll(0),this.expirationTimes=Ll(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ll(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ou(e,t,n,r,o,i,s,l,a){return e=new Fw(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ge(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},du(i),e}function Dw(e,t,n){var r=3{"use strict";function Om(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Om)}catch(e){console.error(e)}}Om(),Tm.exports=Nm()});var Im=q(Au=>{"use strict";var bm=Lu();Au.createRoot=bm.createRoot,Au.hydrateRoot=bm.hydrateRoot;var H_});var Dm=q(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re.output=Re.exists=Re.hash=Re.bytes=Re.bool=Re.number=void 0;function ks(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Wrong positive integer: ${e}`)}Re.number=ks;function Am(e){if(typeof e!="boolean")throw new Error(`Expected boolean, not ${e}`)}Re.bool=Am;function Hw(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}function ju(e,...t){if(!Hw(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}`)}Re.bytes=ju;function jm(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");ks(e.outputLen),ks(e.blockLen)}Re.hash=jm;function Mm(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")}Re.exists=Mm;function Fm(e,t){ju(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.add5L=T.add5H=T.add4H=T.add4L=T.add3H=T.add3L=T.add=T.rotlBL=T.rotlBH=T.rotlSL=T.rotlSH=T.rotr32L=T.rotr32H=T.rotrBL=T.rotrBH=T.rotrSL=T.rotrSH=T.shrSL=T.shrSH=T.toBig=T.split=T.fromBig=void 0;var Es=BigInt(2**32-1),Mu=BigInt(32);function Fu(e,t=!1){return t?{h:Number(e&Es),l:Number(e>>Mu&Es)}:{h:Number(e>>Mu&Es)|0,l:Number(e&Es)|0}}T.fromBig=Fu;function zm(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;oBigInt(e>>>0)<>>0);T.toBig=Um;var Bm=(e,t,n)=>e>>>n;T.shrSH=Bm;var $m=(e,t,n)=>e<<32-n|t>>>n;T.shrSL=$m;var Vm=(e,t,n)=>e>>>n|t<<32-n;T.rotrSH=Vm;var Hm=(e,t,n)=>e<<32-n|t>>>n;T.rotrSL=Hm;var Wm=(e,t,n)=>e<<64-n|t>>>n-32;T.rotrBH=Wm;var Gm=(e,t,n)=>e>>>n-32|t<<64-n;T.rotrBL=Gm;var Qm=(e,t)=>t;T.rotr32H=Qm;var Km=(e,t)=>e;T.rotr32L=Km;var qm=(e,t,n)=>e<>>32-n;T.rotlSH=qm;var Xm=(e,t,n)=>t<>>32-n;T.rotlSL=Xm;var Jm=(e,t,n)=>t<>>64-n;T.rotlBH=Jm;var Ym=(e,t,n)=>e<>>64-n;T.rotlBL=Ym;function Zm(e,t,n,r){let o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:o|0}}T.add=Zm;var eh=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);T.add3L=eh;var th=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;T.add3H=th;var nh=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);T.add4L=nh;var rh=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0;T.add4H=rh;var oh=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0);T.add5L=oh;var ih=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0;T.add5H=ih;var Gw={fromBig:Fu,split:zm,toBig:Um,shrSH:Bm,shrSL:$m,rotrSH:Vm,rotrSL:Hm,rotrBH:Wm,rotrBL:Gm,rotr32H:Qm,rotr32L:Km,rotlSH:qm,rotlSL:Xm,rotlBH:Jm,rotlBL:Ym,add:Zm,add3L:eh,add3H:th,add4L:nh,add4H:rh,add5H:ih,add5L:oh};T.default=Gw});var lh=q(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.crypto=void 0;Cs.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var ch=q(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.randomBytes=L.wrapXOFConstructorWithOpts=L.wrapConstructorWithOpts=L.wrapConstructor=L.checkOpts=L.Hash=L.concatBytes=L.toBytes=L.utf8ToBytes=L.asyncLoop=L.nextTick=L.hexToBytes=L.bytesToHex=L.isLE=L.rotr=L.createView=L.u32=L.u8=void 0;var Du=lh(),Qw=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);L.u8=Qw;var Kw=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));L.u32=Kw;function Uu(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}var qw=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);L.createView=qw;var Xw=(e,t)=>e<<32-t|e>>>t;L.rotr=Xw;L.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;if(!L.isLE)throw new Error("Non little-endian hardware is not supported");var Jw=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Yw(e){if(!Uu(e))throw new Error("Uint8Array expected");let t="";for(let n=0;n=Pt._0&&e<=Pt._9)return e-Pt._0;if(e>=Pt._A&&e<=Pt._F)return e-(Pt._A-10);if(e>=Pt._a&&e<=Pt._f)return e-(Pt._a-10)}function Zw(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);let t=e.length,n=t/2;if(t%2)throw new Error("padded hex string expected, got unpadded hex of length "+t);let r=new Uint8Array(n);for(let o=0,i=0;o{};L.nextTick=e1;async function t1(e,t,n){let r=Date.now();for(let o=0;o=0&&ie().update(Rs(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}L.wrapConstructor=i1;function s1(e){let t=(r,o)=>e(o).update(Rs(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapConstructorWithOpts=s1;function l1(e){let t=(r,o)=>e(o).update(Rs(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}L.wrapXOFConstructorWithOpts=l1;function a1(e=32){if(Du.crypto&&typeof Du.crypto.getRandomValues=="function")return Du.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}L.randomBytes=a1});var Bu=q(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.shake256=G.shake128=G.keccak_512=G.keccak_384=G.keccak_256=G.keccak_224=G.sha3_512=G.sha3_384=G.sha3_256=G.sha3_224=G.Keccak=G.keccakP=void 0;var cr=Dm(),Eo=sh(),ko=ch(),[ph,mh,hh]=[[],[],[]],u1=BigInt(0),_o=BigInt(1),c1=BigInt(2),f1=BigInt(7),d1=BigInt(256),p1=BigInt(113);for(let e=0,t=_o,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],ph.push(2*(5*r+n)),mh.push((e+1)*(e+2)/2%64);let o=u1;for(let i=0;i<7;i++)t=(t<<_o^(t>>f1)*p1)%d1,t&c1&&(o^=_o<<(_o<n>32?(0,Eo.rotlBH)(e,t,n):(0,Eo.rotlSH)(e,t,n),dh=(e,t,n)=>n>32?(0,Eo.rotlBL)(e,t,n):(0,Eo.rotlSL)(e,t,n);function yh(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let l=(s+8)%10,a=(s+2)%10,f=n[a],u=n[a+1],c=fh(f,u,1)^n[l],d=dh(f,u,1)^n[l+1];for(let y=0;y<50;y+=10)e[s+y]^=c,e[s+y+1]^=d}let o=e[2],i=e[3];for(let s=0;s<24;s++){let l=mh[s],a=fh(o,i,l),f=dh(o,i,l),u=ph[s];o=e[u],i=e[u+1],e[u]=a,e[u+1]=f}for(let s=0;s<50;s+=10){for(let l=0;l<10;l++)n[l]=e[s+l];for(let l=0;l<10;l++)e[s+l]^=~n[(l+2)%10]&n[(l+4)%10]}e[0]^=m1[r],e[1]^=h1[r]}n.fill(0)}G.keccakP=yh;var Co=class e extends ko.Hash{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,cr.number)(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,ko.u32)(this.state)}keccak(){yh(this.state32,this.rounds),this.posOut=0,this.pos=0}update(t){(0,cr.exists)(this);let{blockLen:n,state:r}=this;t=(0,ko.toBytes)(t);let o=t.length;for(let i=0;i=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}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,cr.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,cr.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:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}};G.Keccak=Co;var rn=(e,t,n)=>(0,ko.wrapConstructor)(()=>new Co(t,e,n));G.sha3_224=rn(6,144,224/8);G.sha3_256=rn(6,136,256/8);G.sha3_384=rn(6,104,384/8);G.sha3_512=rn(6,72,512/8);G.keccak_224=rn(1,144,224/8);G.keccak_256=rn(1,136,256/8);G.keccak_384=rn(1,104,384/8);G.keccak_512=rn(1,72,512/8);var gh=(e,t,n)=>(0,ko.wrapXOFConstructorWithOpts)((r={})=>new Co(t,e,r.dkLen===void 0?n:r.dkLen,!0));G.shake128=gh(31,168,128/8);G.shake256=gh(31,136,256/8)});var Ch=q((tk,on)=>{var{sha3_512:y1}=Bu(),wh=24,Ro=32,$u=(e=4,t=Math.random)=>{let n="";for(;n.lengthxh(y1(e)).toString(36).slice(1),vh=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),g1=e=>vh[Math.floor(e()*vh.length)],_h=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{}}={})=>{let t=Object.keys(e).toString(),n=t.length?t+$u(Ro):$u(Ro);return Sh(n).substring(0,Ro)},kh=e=>()=>e++,v1=476782367,Eh=({random:e=Math.random,counter:t=kh(Math.floor(e()*v1)),length:n=wh,fingerprint:r=_h()}={})=>function(){let i=g1(e),s=Date.now().toString(36),l=t().toString(36),a=$u(n,e),f=`${s+a+l+r}`;return`${i+Sh(f).substring(1,n)}`},w1=Eh(),x1=(e,{minLength:t=2,maxLength:n=Ro}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};on.exports.getConstants=()=>({defaultLength:wh,bigLength:Ro});on.exports.init=Eh;on.exports.createId=w1;on.exports.bufToBigInt=xh;on.exports.createCounter=kh;on.exports.createFingerprint=_h;on.exports.isCuid=x1});var Rh=q((nk,Po)=>{var{createId:S1,init:_1,getConstants:k1,isCuid:E1}=Ch();Po.exports.createId=S1;Po.exports.init=_1;Po.exports.getConstants=k1;Po.exports.isCuid=E1});var Nh=q(Hu=>{"use strict";var C1=Symbol.for("react.fragment");Hu.Fragment=C1;Hu.jsxDEV=void 0});var Th=q((sk,Oh)=>{"use strict";Oh.exports=Nh()});var Ih=q(Ps=>{"use strict";var R1=ce(),P1=Symbol.for("react.element"),N1=Symbol.for("react.fragment"),O1=Object.prototype.hasOwnProperty,T1=R1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,b1={key:!0,ref:!0,__self:!0,__source:!0};function bh(e,t,n){var r,o={},i=null,s=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)O1.call(t,r)&&!b1.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:P1,type:e,key:i,ref:s,props:o,_owner:T1.current}}Ps.Fragment=N1;Ps.jsx=bh;Ps.jsxs=bh});var $=q((ak,Lh)=>{"use strict";Lh.exports=Ih()});var Wy=q((IC,Hy)=>{var zx=1/0,Ux="[object Symbol]",Bx=/^\s+|\s+$/g,gc="\\ud800-\\udfff",Ly="\\u0300-\\u036f\\ufe20-\\ufe23",Ay="\\u20d0-\\u20f0",jy="\\ufe0e\\ufe0f",$x="["+gc+"]",hc="["+Ly+Ay+"]",yc="\\ud83c[\\udffb-\\udfff]",Vx="(?:"+hc+"|"+yc+")",My="[^"+gc+"]",Fy="(?:\\ud83c[\\udde6-\\uddff]){2}",Dy="[\\ud800-\\udbff][\\udc00-\\udfff]",zy="\\u200d",Uy=Vx+"?",By="["+jy+"]?",Hx="(?:"+zy+"(?:"+[My,Fy,Dy].join("|")+")"+By+Uy+")*",Wx=By+Uy+Hx,Gx="(?:"+[My+hc+"?",hc,Fy,Dy,$x].join("|")+")",Qx=RegExp(yc+"(?="+yc+")|"+Gx+Wx,"g"),Kx=RegExp("["+zy+gc+Ly+Ay+jy+"]"),qx=typeof global=="object"&&global&&global.Object===Object&&global,Xx=typeof self=="object"&&self&&self.Object===Object&&self,Jx=qx||Xx||Function("return this")();function Yx(e){return e.split("")}function Zx(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i-1;);return n}function nS(e,t){for(var n=e.length;n--&&$y(t,e[n],0)>-1;);return n}function rS(e){return Kx.test(e)}function Oy(e){return rS(e)?oS(e):Yx(e)}function oS(e){return e.match(Qx)||[]}var iS=Object.prototype,sS=iS.toString,Ty=Jx.Symbol,by=Ty?Ty.prototype:void 0,Iy=by?by.toString:void 0;function lS(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),n=n>o?o:n,n<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r=r?e:lS(e,t,n)}function uS(e){return!!e&&typeof e=="object"}function cS(e){return typeof e=="symbol"||uS(e)&&sS.call(e)==Ux}function fS(e){return e==null?"":Vy(e)}function dS(e,t,n){if(e=fS(e),e&&(n||t===void 0))return e.replace(Bx,"");if(!e||!(t=Vy(t)))return e;var r=Oy(e),o=Oy(t),i=tS(r,o),s=nS(r,o)+1;return aS(r,i,s).join("")}Hy.exports=dS});var Xy=q((UC,qy)=>{"use strict";function hS(e,t){for(;e.length{var _S="Expected a function",cg="__lodash_hash_undefined__",fg=1/0,kS="[object Function]",ES="[object GeneratorFunction]",CS="[object Symbol]",RS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,PS=/^\w*$/,NS=/^\./,OS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TS=/[\\^$.*+?()[\]{}|]/g,bS=/\\(\\)?/g,IS=/^\[object .+?Constructor\]$/,LS=typeof global=="object"&&global&&global.Object===Object&&global,AS=typeof self=="object"&&self&&self.Object===Object&&self,Sc=LS||AS||Function("return this")();function jS(e,t){return e?.[t]}function MS(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var FS=Array.prototype,DS=Function.prototype,dg=Object.prototype,xc=Sc["__core-js_shared__"],sg=function(){var e=/[^.]+$/.exec(xc&&xc.keys&&xc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),pg=DS.toString,_c=dg.hasOwnProperty,mg=dg.toString,zS=RegExp("^"+pg.call(_c).replace(TS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),lg=Sc.Symbol,US=FS.splice,BS=hg(Sc,"Map"),Uo=hg(Object,"create"),ag=lg?lg.prototype:void 0,ug=ag?ag.toString:void 0;function Nn(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function JS(e,t){var n=this.__data__,r=Ks(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}xr.prototype.clear=QS;xr.prototype.delete=KS;xr.prototype.get=qS;xr.prototype.has=XS;xr.prototype.set=JS;function On(e){var t=-1,n=e?e.length:0;for(this.clear();++t{(function(e,t){"use strict";var n="1.0.37",r="",o="?",i="function",s="undefined",l="object",a="string",f="major",u="model",c="name",d="type",y="vendor",m="version",v="architecture",C="console",h="mobile",p="tablet",g="smarttv",x="wearable",k="embedded",P=500,R="Amazon",N="Apple",te="ASUS",M="BlackBerry",he="Browser",bn="Chrome",y0="Edge",Ko="Firefox",qo="Google",$c="Huawei",ll="LG",al="Microsoft",Vc="Motorola",Xo="Opera",Jo="Samsung",Hc="Sharp",Yo="Sony",ul="Xiaomi",cl="Zebra",Wc="Facebook",Gc="Chromium OS",Qc="Mac OS",g0=function(F,U){var I={};for(var V in F)U[V]&&U[V].length%2===0?I[V]=U[V].concat(F[V]):I[V]=F[V];return I},Zo=function(F){for(var U={},I=0;I0?z.length===2?typeof z[1]==i?this[z[0]]=z[1].call(this,lt):this[z[0]]=z[1]:z.length===3?typeof z[1]===i&&!(z[1].exec&&z[1].test)?this[z[0]]=lt?z[1].call(this,lt,z[2]):t:this[z[0]]=lt?lt.replace(z[1],z[2]):t:z.length===4&&(this[z[0]]=lt?z[3].call(this,lt.replace(z[1],z[2])):t):this[z]=lt||t;I+=2}},dl=function(F,U){for(var I in U)if(typeof U[I]===l&&U[I].length>0){for(var V=0;V2&&(b[u]="iPad",b[d]=p),b},this.getEngine=function(){var b={};return b[c]=t,b[m]=t,Nr.call(b,V,st.engine),b},this.getOS=function(){var b={};return b[c]=t,b[m]=t,Nr.call(b,V,st.os),z&&!b[c]&&At&&At.platform!="Unknown"&&(b[c]=At.platform.replace(/chrome os/i,Gc).replace(/macos/i,Qc)),b},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 V},this.setUA=function(b){return V=typeof b===a&&b.length>P?fl(b,P):b,this},this.setUA(V),this};Me.VERSION=n,Me.BROWSER=Zo([c,m,f]),Me.CPU=Zo([v]),Me.DEVICE=Zo([u,y,d,C,h,g,p,x,k]),Me.ENGINE=Me.OS=Zo([c,m]),typeof Wo!==s?(typeof ol!==s&&ol.exports&&(Wo=ol.exports=Me),Wo.UAParser=Me):typeof define===i&&define.amd?define(function(){return Me}):typeof e!==s&&(e.UAParser=Me);var In=typeof e!==s&&(e.jQuery||e.Zepto);if(In&&!In.ua){var ei=new Me;In.ua=ei.getResult(),In.ua.get=function(){return ei.getUA()},In.ua.set=function(F){ei.setUA(F);var U=ei.getResult();for(var I in U)In.ua[I]=U[I]}}})(typeof window=="object"?window:Wo)});var o0=q((XP,fn)=>{var{sha3_512:C_}=Bu(),Yg=24,Go=32,zc=(e=4,t=Math.random)=>{let n="";for(;n.lengthZg(C_(e)).toString(36).slice(1),Jg=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),R_=e=>Jg[Math.floor(e()*Jg.length)],t0=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+zc(Go,t):zc(Go,t);return e0(r).substring(0,Go)},n0=e=>()=>e++,P_=476782367,r0=({random:e=Math.random,counter:t=n0(Math.floor(e()*P_)),length:n=Yg,fingerprint:r=t0({random:e})}={})=>function(){let i=R_(e),s=Date.now().toString(36),l=t().toString(36),a=zc(n,e),f=`${s+a+l+r}`;return`${i+e0(f).substring(1,n)}`},N_=r0(),O_=(e,{minLength:t=2,maxLength:n=Go}={})=>{let r=e.length,o=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&o.test(e))return!0}finally{}return!1};fn.exports.getConstants=()=>({defaultLength:Yg,bigLength:Go});fn.exports.init=r0;fn.exports.createId=N_;fn.exports.bufToBigInt=Zg;fn.exports.createCounter=n0;fn.exports.createFingerprint=t0;fn.exports.isCuid=O_});var i0=q((JP,Qo)=>{var{createId:T_,init:b_,getConstants:I_,isCuid:L_}=o0();Qo.exports.createId=T_;Qo.exports.init=b_;Qo.exports.getConstants=I_;Qo.exports.isCuid=L_});var m0=O(Im());var ur=O(ce()),nn=(e,t,n)=>{let[,r]=(0,ur.useState)({}),i=(0,ur.useRef)({data:e,deps:n||[],promisedKeys:new Set,ready:!1,_loading:{}}).current;if((0,ur.useEffect)(()=>{i.ready=!0,t&&t({init:!0})},[]),i.ready===!1){i._loading={};for(let[s,l]of Object.entries(e))if(!i.promisedKeys.has(s)){let a=l;typeof a=="object"&&a instanceof Promise&&(i._loading[s]=!0,i.promisedKeys.add(s),i.data[s]=null,a.then(f=>{i.data[s]=f,i._loading[s]=!1,i.data.render()}))}i.data.render=()=>{i.ready&&r({})}}else if(i.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(i.deps[s]!==l){i.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return i.data};var Lm=(e,t)=>new Promise(async n=>{if(typeof e=="function"){let r=null;if(t&&(r=setTimeout(n,t)),await e()){clearTimeout(r),n();return}let o=0,i=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(i),n()),o>100&&clearInterval(i)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var Vw=O(ce());var Ph=O(Rh()),Nt=O(ce()),Vu=(0,Nt.createContext)({global:{},render:()=>{}});var sn=(e,t,n)=>{let r=window;r.globalValueID||(r.globalValueID=new WeakMap);let o=typeof t=="string"?t:n;o||(r.globalValueID.has(e)||r.globalValueID.set(e,(0,Ph.createId)()),o=r.globalValueID.get(e)||""),o||(o="GLOBAL_DEFAULT");let i=(0,Nt.useContext)(Vu),{global:s,render:l}=i;s[o]||(s[o]=e),(0,Nt.useEffect)(()=>{let f=null;if(typeof t=="function")try{f=t()}catch(u){console.log(u)}return()=>{typeof f=="function"?f():f instanceof Promise&&f.then(u=>{typeof u=="function"&&u()})}},[]);let a=s[o];return a?a.render=f=>{f&&(s[o]=void 0),(0,Nt.startTransition)(l)}:console.log(e,o),a},fr=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(o=>fr(o));var n={};for(var r in e)typeof e[r]=="object"?n[r]=fr(e[r]):n[r]=e[r];return n};var yk=O(ce());var Wu=O(ce()),Ah=O(Lu()),jh=O(Th()),Mh=O($()),Fh=()=>{let e=typeof window=="object"?window:globalThis;e.React=Wu.default,e.ReactDOM=Ah.default,e.JSXRuntime=Mh.default,e.JSXDevRuntime=jh.default,e.Fragment=Wu.default.Fragment};var I1={data:""},zh=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||I1,Uh=e=>{let t=zh(e),n=t.data;return t.data="",n},L1=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,A1=/\/\*[^]*?\*\/| +/g,Dh=/\n+/g,Pn=(e,t)=>{let n="",r="",o="";for(let i in e){let s=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+s+";":r+=i[1]=="f"?Pn(s,i):i+"{"+Pn(s,i[1]=="k"?"":t)+"}":typeof s=="object"?r+=Pn(s,t?t.replace(/([^,])+/g,l=>i.replace(/(^:.*)|([^,])+/g,a=>/&/.test(a)?a.replace(/&/g,l):l?l+" "+a:a)):i):s!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Pn.p?Pn.p(i,s):i+":"+s+";")}return n+(t&&o?t+"{"+o+"}":o)+r},Ot={},Bh=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Bh(e[n]);return t}return e},j1=(e,t,n,r,o)=>{let i=Bh(e),s=Ot[i]||(Ot[i]=(a=>{let f=0,u=11;for(;f>>0;return"go"+u})(i));if(!Ot[s]){let a=i!==e?e:(f=>{let u,c,d=[{}];for(;u=L1.exec(f.replace(A1,""));)u[4]?d.shift():u[3]?(c=u[3].replace(Dh," ").trim(),d.unshift(d[0][c]=d[0][c]||{})):d[0][u[1]]=u[2].replace(Dh," ").trim();return d[0]})(e);Ot[s]=Pn(o?{["@keyframes "+s]:a}:a,n?"":"."+s)}let l=n&&Ot.g?Ot.g:null;return n&&(Ot.g=Ot[s]),((a,f,u,c)=>{c?f.data=f.data.replace(c,a):f.data.indexOf(a)===-1&&(f.data=u?a+f.data:f.data+a)})(Ot[s],t,r,l),s},M1=(e,t,n)=>e.reduce((r,o,i)=>{let s=t[i];if(s&&s.call){let l=s(n),a=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=a?"."+a:l&&typeof l=="object"?l.props?"":Pn(l,""):l===!1?"":l}return r+o+(s??"")},"");function Ns(e){let t=this||{},n=e.call?e(t.p):e;return j1(n.unshift?n.raw?M1(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,zh(t.target),t.g,t.o,t.k)}var ck=Ns.bind({g:1}),fk=Ns.bind({k:1});var $h=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await Lm(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",o=n.protocol!="https:"||/localhost|127.0.0.1|0.0.0.0/.test(r)?"http":"https";if(t.__SRV_URL__){t.serverurl=t.__SRV_URL__;let s=new URL(t.serverurl);(s.hostname==="localhost"||s.hostname==="127.0.0.1")&&(s.hostname=n.hostname,s.pathname=s.pathname==="/"?"":s.pathname,t.serverurl=s.toString(),t.serverurl.endsWith("/")&&(t.serverurl=t.serverurl.substring(0,t.serverurl.length-1)))}let i=n.port;t.baseurl=o+"://"+r+(i?":"+i:"")+"/",t.basepath||(t.basepath="/"),t.css=Ns,t.extractCss=Uh,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(a=>a?(typeof a=="string"&&a.trim(),!0):!1).forEach(a=>{if(Array.isArray(a))for(let f of a)typeof f=="string"&&f.trim()&&l.push(f.trim());else l.push(a.trim())}),l.join(" ")},t.navigate=s=>{let l=s;if(typeof t.navigateOverride=="function"&&(l=t.navigateOverride(s),!l))return null;history.pushState({prevUrl:window.location.href},"",l),t.pathname=s,t.prasiContext&&t.prasiContext.render&&t.prasiContext.render()},typeof window=="object"&&window.addEventListener("popstate",()=>{let s=navigator.serviceWorker.controller;if(s&&s.postMessage({type:"add-cache",url:n.href}),t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};var d0=O(ce());var Vh=/^(?:[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 F1(e){return typeof e=="string"&&Vh.test(e)}var Gu=F1;var No=O($()),Qu=({children:e,back:t})=>(0,No.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,No.jsx)("div",{children:e}),(0,No.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var Wh=O(ce());var Se=O($()),Hh=window,Oo=({children:e,className:t,show:n,backdrop:r,note:o,alt:i})=>{let s=nn({icon:(0,Se.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,Wh.useEffect)(()=>(s.ival=setInterval(()=>{s.value+=.1333,s.value>=1.3&&(s.value=0),s.render()},200),Hh.loadingIcon&&(s.icon=(0,Se.jsx)("img",{alt:"loading",src:Hh.loadingIcon,className:css` width: 42px; height: 42px; `}),s.render()),()=>{clearInterval(s.ival)}),[]),(0,Se.jsxs)(Se.Fragment,{children:[r!==!1&&(0,Se.jsx)("div",{className:cx("flex items-center z-40 bg-white pointer-events-none","w-full h-full fixed transition-all duration-1000",typeof n<"u"?n?"opacity-50":"opacity-0":"opacity-50"),onContextMenuCapture:l=>{l.preventDefault()}}),e?(0,Se.jsx)("div",{onContextMenuCapture:l=>{l.preventDefault()},className:cx("flex flex-1 items-center justify-center z-40 transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Se.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,Se.jsx)("div",{className:"text-sm",children:e})})}):(0,Se.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 pointer-events-none transition-all",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Se.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` @@ -15,16 +15,16 @@ Error generating stack: `+i.message+` } `),children:[(0,Se.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:o}),(0,Se.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,Se.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css` transform: translate(${-100+s.value*200}%); - `)})}),i]})})]})};var tl=O(ce());var Pe=window;function Oo(e,t){return function(){return e.apply(t,arguments)}}var{toString:F1}=Object.prototype,{getPrototypeOf:qu}=Object,Ns=(e=>t=>{let n=F1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mt=e=>(e=e.toLowerCase(),t=>Ns(t)===e),Os=e=>t=>typeof t===e,{isArray:dr}=Array,To=Os("undefined");function D1(e){return e!==null&&!To(e)&&e.constructor!==null&&!To(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Qh=mt("ArrayBuffer");function z1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Qh(e.buffer),t}var U1=Os("string"),Xe=Os("function"),Kh=Os("number"),Ts=e=>e!==null&&typeof e=="object",B1=e=>e===!0||e===!1,Ps=e=>{if(Ns(e)!=="object")return!1;let t=qu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},$1=mt("Date"),V1=mt("File"),H1=mt("Blob"),W1=mt("FileList"),G1=e=>Ts(e)&&Xe(e.pipe),Q1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Ns(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},K1=mt("URLSearchParams"),q1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function bo(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}var Xh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Jh=e=>!To(e)&&e!==Xh;function Ku(){let{caseless:e}=Jh(this)&&this||{},t={},n=(r,o)=>{let i=e&&qh(t,o)||o;Ps(t[i])&&Ps(r)?t[i]=Ku(t[i],r):Ps(r)?t[i]=Ku({},r):dr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(bo(t,(o,i)=>{n&&Xe(o)?e[i]=Oo(o,n):e[i]=o},{allOwnKeys:r}),e),J1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Y1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Z1=(e,t,n,r)=>{let o,i,s,l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&qu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ex=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},tx=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!Kh(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},nx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&qu(Uint8Array)),rx=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),o;for(;(o=r.next())&&!o.done;){let i=o.value;t.call(e,i[0],i[1])}},ox=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ix=mt("HTMLFormElement"),sx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Wh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),lx=mt("RegExp"),Yh=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};bo(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},ax=e=>{Yh(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ux=(e,t)=>{let n={},r=o=>{o.forEach(i=>{n[i]=!0})};return dr(e)?r(e):r(String(e).split(t)),n},fx=()=>{},dx=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Qu="abcdefghijklmnopqrstuvwxyz",Gh="0123456789",Zh={DIGIT:Gh,ALPHA:Qu,ALPHA_DIGIT:Qu+Qu.toUpperCase()+Gh},px=(e=16,t=Zh.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function mx(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var hx=e=>{let t=new Array(10),n=(r,o)=>{if(Ts(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;let i=dr(r)?[]:{};return bo(r,(s,l)=>{let a=n(s,o+1);!To(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},yx=mt("AsyncFunction"),gx=e=>e&&(Ts(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),w={isArray:dr,isArrayBuffer:Qh,isBuffer:D1,isFormData:Q1,isArrayBufferView:z1,isString:U1,isNumber:Kh,isBoolean:B1,isObject:Ts,isPlainObject:Ps,isUndefined:To,isDate:$1,isFile:V1,isBlob:H1,isRegExp:lx,isFunction:Xe,isStream:G1,isURLSearchParams:K1,isTypedArray:nx,isFileList:W1,forEach:bo,merge:Ku,extend:X1,trim:q1,stripBOM:J1,inherits:Y1,toFlatObject:Z1,kindOf:Ns,kindOfTest:mt,endsWith:ex,toArray:tx,forEachEntry:rx,matchAll:ox,isHTMLForm:ix,hasOwnProperty:Wh,hasOwnProp:Wh,reduceDescriptors:Yh,freezeMethods:ax,toObjectSet:ux,toCamelCase:sx,noop:fx,toFiniteNumber:dx,findKey:qh,global:Xh,isContextDefined:Jh,ALPHABET:Zh,generateString:px,isSpecCompliantForm:mx,toJSONObject:hx,isAsyncFn:yx,isThenable:gx};function pr(e,t,n,r,o){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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}w.inherits(pr,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 ey=pr.prototype,ty={};["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=>{ty[e]={value:e}});Object.defineProperties(pr,ty);Object.defineProperty(ey,"isAxiosError",{value:!0});pr.from=(e,t,n,r,o,i)=>{let s=Object.create(ey);return w.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),pr.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var A=pr;var bs=null;function Xu(e){return w.isPlainObject(e)||w.isArray(e)}function ry(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function ny(e,t,n){return e?e.concat(t).map(function(o,i){return o=ry(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function vx(e){return w.isArray(e)&&!e.some(Xu)}var wx=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function xx(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(bs||FormData),n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!w.isUndefined(C[v])});let r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(w.isDate(m))return m.toISOString();if(!a&&w.isBlob(m))throw new A("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(m)||w.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,C){let h=m;if(m&&!C&&typeof m=="object"){if(w.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(w.isArray(m)&&vx(m)||(w.isFileList(m)||w.endsWith(v,"[]"))&&(h=w.toArray(m)))return v=ry(v),h.forEach(function(g,x){!(w.isUndefined(g)||g===null)&&t.append(s===!0?ny([v],x,i):s===null?v:v+"[]",f(g))}),!1}return Xu(m)?!0:(t.append(ny(C,v,i),f(m)),!1)}let c=[],d=Object.assign(wx,{defaultVisitor:u,convertValue:f,isVisitable:Xu});function y(m,v){if(!w.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(m),w.forEach(m,function(h,p){(!(w.isUndefined(h)||h===null)&&o.call(t,h,w.isString(p)?p.trim():p,v,d))===!0&&y(h,v?v.concat(p):[p])}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return y(e),t}var ln=xx;function oy(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function iy(e,t){this._pairs=[],e&&ln(e,this,t)}var sy=iy.prototype;sy.append=function(t,n){this._pairs.push([t,n])};sy.toString=function(t){let n=t?function(r){return t.call(this,r,oy)}:oy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};var Is=iy;function Sx(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Io(e,t,n){if(!t)return e;let r=n&&n.encode||Sx,o=n&&n.serialize,i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new Is(t,n).toString(r),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Ju=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}},Yu=Ju;var Ls={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var ly=typeof URLSearchParams<"u"?URLSearchParams:Is;var ay=typeof FormData<"u"?FormData:null;var uy=typeof Blob<"u"?Blob:null;var cy={isBrowser:!0,classes:{URLSearchParams:ly,FormData:ay,Blob:uy},protocols:["http","https","file","blob","url","data"]};var Zu={};E0(Zu,{hasBrowserEnv:()=>fy,hasStandardBrowserEnv:()=>_x,hasStandardBrowserWebWorkerEnv:()=>kx});var fy=typeof window<"u"&&typeof document<"u",_x=(e=>fy&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),kx=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Ne={...Zu,...cy};function ec(e,t){return ln(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ne.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Ex(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cx(e){let t={},n=Object.keys(e),r,o=n.length,i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,a?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=Cx(o[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){let n={};return w.forEachEntry(e,(r,o)=>{t(Ex(r),o,n,0)}),n}return null}var As=Rx;function Px(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var tc={transitional:Ls,adapter:["xhr","http"],transformRequest:[function(t,n){let r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(As(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 n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ec(t,this.formSerializer).toString();if((l=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return ln(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Px(t)):t}],transformResponse:[function(t){let n=this.transitional||tc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||o)){let s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?A.from(l,A.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.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=>{tc.headers[e]={}});var mr=tc;var Nx=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"]),dy=e=>{let t={},n,r,o;return e&&e.split(` -`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Nx[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var py=Symbol("internals");function Lo(e){return e&&String(e).trim().toLowerCase()}function js(e){return e===!1||e==null?e:w.isArray(e)?e.map(js):String(e)}function Ox(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var Tx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nc(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function bx(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ix(e,t){let n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}var hr=class{constructor(t){t&&this.set(t)}set(t,n,r){let o=this;function i(l,a,f){let u=Lo(a);if(!u)throw new Error("header name must be a non-empty string");let c=w.findKey(o,u);(!c||o[c]===void 0||f===!0||f===void 0&&o[c]!==!1)&&(o[c||a]=js(l))}let s=(l,a)=>w.forEach(l,(f,u)=>i(f,u,a));return w.isPlainObject(t)||t instanceof this.constructor?s(t,n):w.isString(t)&&(t=t.trim())&&!Tx(t)?s(dy(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Lo(t),t){let r=w.findKey(this,t);if(r){let o=this[r];if(!n)return o;if(n===!0)return Ox(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Lo(t),t){let r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nc(this,this[r],r,n)))}return!1}delete(t,n){let r=this,o=!1;function i(s){if(s=Lo(s),s){let l=w.findKey(r,s);l&&(!n||nc(r,r[l],l,n))&&(delete r[l],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){let n=Object.keys(this),r=n.length,o=!1;for(;r--;){let i=n[r];(!t||nc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){let n=this,r={};return w.forEach(this,(o,i)=>{let s=w.findKey(r,i);if(s){n[s]=js(o),delete n[i];return}let l=t?bx(i):String(i).trim();l!==i&&delete n[i],n[l]=js(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` -`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){let r=(this[py]=this[py]={accessors:{}}).accessors,o=this.prototype;function i(s){let l=Lo(s);r[l]||(Ix(o,s),r[l]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};hr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(hr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(hr);var Oe=hr;function Ao(e,t){let n=this||mr,r=t||n,o=Oe.from(r.headers),i=r.data;return w.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function jo(e){return!!(e&&e.__CANCEL__)}function my(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(my,A,{__CANCEL__:!0});var an=my;function rc(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var hy=Ne.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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 oc(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ic(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Mo(e,t){return e&&!oc(t)?ic(e,t):t}var yy=Ne.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){let l=w.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function sc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lx(e,t){e=e||10;let n=new Array(e),r=new Array(e),o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){let f=Date.now(),u=r[i];s||(s=f),n[o]=a,r[o]=f;let c=i,d=0;for(;c!==o;)d+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),f=i<=s;n=i;let u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var Ax=typeof XMLHttpRequest<"u",wy=Ax&&function(e){return new Promise(function(n,r){let o=e.data,i=Oe.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e,a;function f(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let u;if(w.isFormData(o)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){let[v,...C]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([v||"multipart/form-data",...C].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let v=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+C))}let d=Mo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Io(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let v=Oe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};rc(function(g){n(g),f()},function(g){r(g),f()},h),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(r(new A("Request aborted",A.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",h=e.transitional||Ls;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),r(new A(C,h.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,c)),c=null},Ne.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&yy(d))){let v=e.xsrfHeaderName&&e.xsrfCookieName&&hy.read(e.xsrfCookieName);v&&i.set(e.xsrfHeaderName,v)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&w.forEach(i.toJSON(),function(C,h){c.setRequestHeader(h,C)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",vy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",vy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{c&&(r(!v||v.type?new an(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let m=sc(d);if(m&&Ne.protocols.indexOf(m)===-1){r(new A("Unsupported protocol "+m+":",A.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var lc={http:bs,xhr:wy};w.forEach(lc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var xy=e=>`- ${e}`,jx=e=>w.isFunction(e)||e===null||e===!1,Ms={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,n,r,o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build")),s=t?i.length>1?`since : -`+i.map(xy).join(` -`):" "+xy(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:lc};function ac(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new an(null,e)}function Fs(e){return ac(e),e.headers=Oe.from(e.headers),e.data=Ao.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ms.getAdapter(e.adapter||mr.adapter)(e).then(function(r){return ac(e),r.data=Ao.call(e,e.transformResponse,r),r.headers=Oe.from(r.headers),r},function(r){return jo(r)||(ac(e),r&&r.response&&(r.response.data=Ao.call(e,e.transformResponse,r.response),r.response.headers=Oe.from(r.response.headers))),Promise.reject(r)})}var Sy=e=>e instanceof Oe?e.toJSON():e;function Tt(e,t){t=t||{};let n={};function r(f,u,c){return w.isPlainObject(f)&&w.isPlainObject(u)?w.merge.call({caseless:c},f,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(f,u,c){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f,c)}else return r(f,u,c)}function i(f,u){if(!w.isUndefined(u))return r(void 0,u)}function s(f,u){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,c){if(c in t)return r(f,u);if(c in e)return r(void 0,f)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u)=>o(Sy(f),Sy(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){let c=a[u]||o,d=c(e[u],t[u],u);w.isUndefined(d)&&c!==l||(n[u]=d)}),n}var Ds="1.6.7";var uc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{uc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var _y={};uc.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Ds+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new A(o(s," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!_y[s]&&(_y[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Mx(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],s=t[i];if(s){let l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new A("option "+i+" must be "+a,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}var zs={assertOptions:Mx,validators:uc};var un=zs.validators,yr=class{constructor(t){this.defaults=t,this.interceptors={request:new Yu,response:new Yu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;let i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tt(this.defaults,n);let{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&zs.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:zs.assertOptions(o,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Oe.concat(s,i);let l=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});let f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,c=0,d;if(!a){let m=[Fs.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,f),d=m.length,u=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i,s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new an(i,s,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},ky=cc;function fc(e){return function(n){return e.apply(null,n)}}function dc(e){return w.isObject(e)&&e.isAxiosError===!0}var pc={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(pc).forEach(([e,t])=>{pc[t]=e});var Ey=pc;function Cy(e){let t=new Fo(e),n=Oo(Fo.prototype.request,t);return w.extend(n,Fo.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Cy(Tt(e,o))},n}var oe=Cy(mr);oe.Axios=Fo;oe.CanceledError=an;oe.CancelToken=ky;oe.isCancel=jo;oe.VERSION=Ds;oe.toFormData=ln;oe.AxiosError=A;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=fc;oe.isAxiosError=dc;oe.mergeConfig=Tt;oe.AxiosHeaders=Oe;oe.formToJSON=e=>As(w.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Ms.getAdapter;oe.HttpStatusCode=Ey;oe.default=oe;var Us=oe;var{Axios:dC,AxiosError:pC,CanceledError:mC,isCancel:hC,CancelToken:yC,VERSION:gC,all:vC,Cancel:wC,isAxiosError:xC,spread:SC,toFormData:_C,AxiosHeaders:kC,HttpStatusCode:EC,formToJSON:CC,getAdapter:RC,mergeConfig:PC}=Us;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var Fx=typeof window<"u"?window:null,Ry=typeof global<"u"?global:void 0,gr=async(e,t,n)=>{let r={...n},o=null,i=!1,s=null,l=[];if(Array.isArray(t))for(let c of t)c instanceof File&&(l.push(c),i=!0),typeof c=="function"&&(s=c);else t instanceof File&&(i=!0,l.push(t));if(!i)o=JSON.stringify(t),r["content-type"]="aplication/json";else{let c=new FormData;for(let d of l)c.append(d.name,d);o=c,delete r["content-type"],r.enctype="multipart/form-data;"}let a=new URL(e);if(Fx!==null){let c=new URL(location.href),d="";if(a.host===c.host||Ry&&typeof Ry.server_hook=="function"?d=a.toString():d=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,d){if(s)return(await Us({method:t?"post":void 0,url:d,data:o,onUploadProgress:s})).data;{let m=await(await fetch(d,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(m,Py)}catch{return m}}}}let u=await(await fetch(a,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(u,Py)}catch{return u}},Py=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Wy=O(Hy());var Bs=async(e,t)=>{let n=(0,Wy.default)(e,"/"),r=await gr(pS(n,"/_prasi/_")),o="";r&&r.prasi&&(o=r.prasi);let i=dS(n);if(o==="v2")await new Promise(s=>{let l=document,a=l.createElement("script");a.onload=async()=>{s()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let f=localStorage.getItem("api-ts-"+n);t?a.src=`${i}/_prasi/load.js?url=${n}&v3&dev=1&ts=${f}`:a.src=`${i}/_prasi/load.js?url=${n}&v3&ts=${f}`,document.querySelector(`script[src="${a.src}"]`)?s():l.body.appendChild(a)});else{let s=await fetch(i+"/_prasi/api-entry");if(Pe.prasiApi[n]={apiEntry:(await s.json()).srv},t){let l=await fetch(i+"/_prasi/api-types");Pe.prasiApi[n].apiTypes=await l.text(),Pe.prasiApi[n].prismaTypes={"prisma.d.ts":await gc(`${i}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await gc(`${i}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await gc(`${i}/_prasi/prisma/runtime/library.d.ts`)}}}},dS=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},pS=(e,t)=>{let n=new URL(e);return n.pathname=t,n.toString()},gc=async(e,t)=>await(await fetch(e)).text();var Do={},$s=e=>{Pe.prasiApi||(Pe.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Pe.prasiApi[n]||Do[n]||(Do[n]=Bs(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,o)=>{if(o==="_url")return(s,l)=>{let a=new URL(n);a.pathname=s.split("/").filter(c=>c).join("/");let f=new URL(location.href),u="";return a.host===f.host||l===!1?u=a.toString():u=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(a.toString())}`,u};let i=s=>function(...l){return new Promise(async(a,f)=>{try{let u=Pe.prasiApi[n];if(!u&&Do&&typeof Do[n]=="object"&&(await Do[n],u=Pe.prasiApi[n]),u){if(s==="_raw"){let y=l[0],m=`${n}${y}`,v=await Gy(m,l.slice(1));a(v);return}if(u.apiEntry||(u.apiEntry={}),u.apiEntry&&!u.apiEntry[s]){f(`API ${s.toString()} not found, existing API: + `)})}),i]})})]})};var nl=O(ce());var Pe=window;function To(e,t){return function(){return e.apply(t,arguments)}}var{toString:D1}=Object.prototype,{getPrototypeOf:Xu}=Object,Ts=(e=>t=>{let n=D1.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mt=e=>(e=e.toLowerCase(),t=>Ts(t)===e),bs=e=>t=>typeof t===e,{isArray:dr}=Array,bo=bs("undefined");function z1(e){return e!==null&&!bo(e)&&e.constructor!==null&&!bo(e.constructor)&&Xe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Kh=mt("ArrayBuffer");function U1(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Kh(e.buffer),t}var B1=bs("string"),Xe=bs("function"),qh=bs("number"),Is=e=>e!==null&&typeof e=="object",$1=e=>e===!0||e===!1,Os=e=>{if(Ts(e)!=="object")return!1;let t=Xu(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},V1=mt("Date"),H1=mt("File"),W1=mt("Blob"),G1=mt("FileList"),Q1=e=>Is(e)&&Xe(e.pipe),K1=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xe(e.append)&&((t=Ts(e))==="formdata"||t==="object"&&Xe(e.toString)&&e.toString()==="[object FormData]"))},q1=mt("URLSearchParams"),X1=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Io(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),dr(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}var Jh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Yh=e=>!bo(e)&&e!==Jh;function qu(){let{caseless:e}=Yh(this)&&this||{},t={},n=(r,o)=>{let i=e&&Xh(t,o)||o;Os(t[i])&&Os(r)?t[i]=qu(t[i],r):Os(r)?t[i]=qu({},r):dr(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Io(t,(o,i)=>{n&&Xe(o)?e[i]=To(o,n):e[i]=o},{allOwnKeys:r}),e),Y1=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Z1=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},ex=(e,t,n,r)=>{let o,i,s,l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)s=o[i],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Xu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},tx=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return r!==-1&&r===n},nx=e=>{if(!e)return null;if(dr(e))return e;let t=e.length;if(!qh(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},rx=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xu(Uint8Array)),ox=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),o;for(;(o=r.next())&&!o.done;){let i=o.value;t.call(e,i[0],i[1])}},ix=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sx=mt("HTMLFormElement"),lx=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Gh=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ax=mt("RegExp"),Zh=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Io(n,(o,i)=>{let s;(s=t(o,i,e))!==!1&&(r[i]=s||o)}),Object.defineProperties(e,r)},ux=e=>{Zh(e,(t,n)=>{if(Xe(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(Xe(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},fx=(e,t)=>{let n={},r=o=>{o.forEach(i=>{n[i]=!0})};return dr(e)?r(e):r(String(e).split(t)),n},dx=()=>{},px=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ku="abcdefghijklmnopqrstuvwxyz",Qh="0123456789",ey={DIGIT:Qh,ALPHA:Ku,ALPHA_DIGIT:Ku+Ku.toUpperCase()+Qh},mx=(e=16,t=ey.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function hx(e){return!!(e&&Xe(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var yx=e=>{let t=new Array(10),n=(r,o)=>{if(Is(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;let i=dr(r)?[]:{};return Io(r,(s,l)=>{let a=n(s,o+1);!bo(a)&&(i[l]=a)}),t[o]=void 0,i}}return r};return n(e,0)},gx=mt("AsyncFunction"),vx=e=>e&&(Is(e)||Xe(e))&&Xe(e.then)&&Xe(e.catch),w={isArray:dr,isArrayBuffer:Kh,isBuffer:z1,isFormData:K1,isArrayBufferView:U1,isString:B1,isNumber:qh,isBoolean:$1,isObject:Is,isPlainObject:Os,isUndefined:bo,isDate:V1,isFile:H1,isBlob:W1,isRegExp:ax,isFunction:Xe,isStream:Q1,isURLSearchParams:q1,isTypedArray:rx,isFileList:G1,forEach:Io,merge:qu,extend:J1,trim:X1,stripBOM:Y1,inherits:Z1,toFlatObject:ex,kindOf:Ts,kindOfTest:mt,endsWith:tx,toArray:nx,forEachEntry:ox,matchAll:ix,isHTMLForm:sx,hasOwnProperty:Gh,hasOwnProp:Gh,reduceDescriptors:Zh,freezeMethods:ux,toObjectSet:fx,toCamelCase:lx,noop:dx,toFiniteNumber:px,findKey:Xh,global:Jh,isContextDefined:Yh,ALPHABET:ey,generateString:mx,isSpecCompliantForm:hx,toJSONObject:yx,isAsyncFn:gx,isThenable:vx};function pr(e,t,n,r,o){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),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}w.inherits(pr,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 ty=pr.prototype,ny={};["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=>{ny[e]={value:e}});Object.defineProperties(pr,ny);Object.defineProperty(ty,"isAxiosError",{value:!0});pr.from=(e,t,n,r,o,i)=>{let s=Object.create(ty);return w.toFlatObject(e,s,function(a){return a!==Error.prototype},l=>l!=="isAxiosError"),pr.call(s,e.message,t,n,r,o),s.cause=e,s.name=e.name,i&&Object.assign(s,i),s};var A=pr;var Ls=null;function Ju(e){return w.isPlainObject(e)||w.isArray(e)}function oy(e){return w.endsWith(e,"[]")?e.slice(0,-2):e}function ry(e,t,n){return e?e.concat(t).map(function(o,i){return o=oy(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function wx(e){return w.isArray(e)&&!e.some(Ju)}var xx=w.toFlatObject(w,{},null,function(t){return/^is[A-Z]/.test(t)});function Sx(e,t,n){if(!w.isObject(e))throw new TypeError("target must be an object");t=t||new(Ls||FormData),n=w.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,C){return!w.isUndefined(C[v])});let r=n.metaTokens,o=n.visitor||u,i=n.dots,s=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&w.isSpecCompliantForm(t);if(!w.isFunction(o))throw new TypeError("visitor must be a function");function f(m){if(m===null)return"";if(w.isDate(m))return m.toISOString();if(!a&&w.isBlob(m))throw new A("Blob is not supported. Use a Buffer instead.");return w.isArrayBuffer(m)||w.isTypedArray(m)?a&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function u(m,v,C){let h=m;if(m&&!C&&typeof m=="object"){if(w.endsWith(v,"{}"))v=r?v:v.slice(0,-2),m=JSON.stringify(m);else if(w.isArray(m)&&wx(m)||(w.isFileList(m)||w.endsWith(v,"[]"))&&(h=w.toArray(m)))return v=oy(v),h.forEach(function(g,x){!(w.isUndefined(g)||g===null)&&t.append(s===!0?ry([v],x,i):s===null?v:v+"[]",f(g))}),!1}return Ju(m)?!0:(t.append(ry(C,v,i),f(m)),!1)}let c=[],d=Object.assign(xx,{defaultVisitor:u,convertValue:f,isVisitable:Ju});function y(m,v){if(!w.isUndefined(m)){if(c.indexOf(m)!==-1)throw Error("Circular reference detected in "+v.join("."));c.push(m),w.forEach(m,function(h,p){(!(w.isUndefined(h)||h===null)&&o.call(t,h,w.isString(p)?p.trim():p,v,d))===!0&&y(h,v?v.concat(p):[p])}),c.pop()}}if(!w.isObject(e))throw new TypeError("data must be an object");return y(e),t}var ln=Sx;function iy(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function sy(e,t){this._pairs=[],e&&ln(e,this,t)}var ly=sy.prototype;ly.append=function(t,n){this._pairs.push([t,n])};ly.toString=function(t){let n=t?function(r){return t.call(this,r,iy)}:iy;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};var As=sy;function _x(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Lo(e,t,n){if(!t)return e;let r=n&&n.encode||_x,o=n&&n.serialize,i;if(o?i=o(t,n):i=w.isURLSearchParams(t)?t.toString():new As(t,n).toString(r),i){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}var Yu=class{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.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(r){r!==null&&t(r)})}},Zu=Yu;var js={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var ay=typeof URLSearchParams<"u"?URLSearchParams:As;var uy=typeof FormData<"u"?FormData:null;var cy=typeof Blob<"u"?Blob:null;var fy={isBrowser:!0,classes:{URLSearchParams:ay,FormData:uy,Blob:cy},protocols:["http","https","file","blob","url","data"]};var ec={};C0(ec,{hasBrowserEnv:()=>dy,hasStandardBrowserEnv:()=>kx,hasStandardBrowserWebWorkerEnv:()=>Ex});var dy=typeof window<"u"&&typeof document<"u",kx=(e=>dy&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Ex=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function";var Ne={...ec,...fy};function tc(e,t){return ln(e,new Ne.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Ne.isNode&&w.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Cx(e){return w.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Rx(e){let t={},n=Object.keys(e),r,o=n.length,i;for(r=0;r=n.length;return s=!s&&w.isArray(o)?o.length:s,a?(w.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!w.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],i)&&w.isArray(o[s])&&(o[s]=Rx(o[s])),!l)}if(w.isFormData(e)&&w.isFunction(e.entries)){let n={};return w.forEachEntry(e,(r,o)=>{t(Cx(r),o,n,0)}),n}return null}var Ms=Px;function Nx(e,t,n){if(w.isString(e))try{return(t||JSON.parse)(e),w.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var nc={transitional:js,adapter:["xhr","http"],transformRequest:[function(t,n){let r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=w.isObject(t);if(i&&w.isHTMLForm(t)&&(t=new FormData(t)),w.isFormData(t))return o?JSON.stringify(Ms(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 n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return tc(t,this.formSerializer).toString();if((l=w.isFileList(t))||r.indexOf("multipart/form-data")>-1){let a=this.env&&this.env.FormData;return ln(l?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Nx(t)):t}],transformResponse:[function(t){let n=this.transitional||nc.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&w.isString(t)&&(r&&!this.responseType||o)){let s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?A.from(l,A.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ne.classes.FormData,Blob:Ne.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=>{nc.headers[e]={}});var mr=nc;var Ox=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"]),py=e=>{let t={},n,r,o;return e&&e.split(` +`).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Ox[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var my=Symbol("internals");function Ao(e){return e&&String(e).trim().toLowerCase()}function Fs(e){return e===!1||e==null?e:w.isArray(e)?e.map(Fs):String(e)}function Tx(e){let t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}var bx=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rc(e,t,n,r,o){if(w.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!w.isString(t)){if(w.isString(r))return t.indexOf(r)!==-1;if(w.isRegExp(r))return r.test(t)}}function Ix(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Lx(e,t){let n=w.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,s){return this[r].call(this,t,o,i,s)},configurable:!0})})}var hr=class{constructor(t){t&&this.set(t)}set(t,n,r){let o=this;function i(l,a,f){let u=Ao(a);if(!u)throw new Error("header name must be a non-empty string");let c=w.findKey(o,u);(!c||o[c]===void 0||f===!0||f===void 0&&o[c]!==!1)&&(o[c||a]=Fs(l))}let s=(l,a)=>w.forEach(l,(f,u)=>i(f,u,a));return w.isPlainObject(t)||t instanceof this.constructor?s(t,n):w.isString(t)&&(t=t.trim())&&!bx(t)?s(py(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Ao(t),t){let r=w.findKey(this,t);if(r){let o=this[r];if(!n)return o;if(n===!0)return Tx(o);if(w.isFunction(n))return n.call(this,o,r);if(w.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Ao(t),t){let r=w.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rc(this,this[r],r,n)))}return!1}delete(t,n){let r=this,o=!1;function i(s){if(s=Ao(s),s){let l=w.findKey(r,s);l&&(!n||rc(r,r[l],l,n))&&(delete r[l],o=!0)}}return w.isArray(t)?t.forEach(i):i(t),o}clear(t){let n=Object.keys(this),r=n.length,o=!1;for(;r--;){let i=n[r];(!t||rc(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){let n=this,r={};return w.forEach(this,(o,i)=>{let s=w.findKey(r,i);if(s){n[s]=Fs(o),delete n[i];return}let l=t?Ix(i):String(i).trim();l!==i&&delete n[i],n[l]=Fs(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return w.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&w.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){let r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){let r=(this[my]=this[my]={accessors:{}}).accessors,o=this.prototype;function i(s){let l=Ao(s);r[l]||(Lx(o,s),r[l]=!0)}return w.isArray(t)?t.forEach(i):i(t),this}};hr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);w.reduceDescriptors(hr.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});w.freezeMethods(hr);var Oe=hr;function jo(e,t){let n=this||mr,r=t||n,o=Oe.from(r.headers),i=r.data;return w.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Mo(e){return!!(e&&e.__CANCEL__)}function hy(e,t,n){A.call(this,e??"canceled",A.ERR_CANCELED,t,n),this.name="CanceledError"}w.inherits(hy,A,{__CANCEL__:!0});var an=hy;function oc(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new A("Request failed with status code "+n.status,[A.ERR_BAD_REQUEST,A.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}var yy=Ne.hasStandardBrowserEnv?{write(e,t,n,r,o,i){let s=[e+"="+encodeURIComponent(t)];w.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),w.isString(r)&&s.push("path="+r),w.isString(o)&&s.push("domain="+o),i===!0&&s.push("secure"),document.cookie=s.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 ic(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sc(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Fo(e,t){return e&&!ic(t)?sc(e,t):t}var gy=Ne.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function o(i){let s=i;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(s){let l=w.isString(s)?o(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function lc(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ax(e,t){e=e||10;let n=new Array(e),r=new Array(e),o=0,i=0,s;return t=t!==void 0?t:1e3,function(a){let f=Date.now(),u=r[i];s||(s=f),n[o]=a,r[o]=f;let c=i,d=0;for(;c!==o;)d+=n[c++],c=c%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-s{let i=o.loaded,s=o.lengthComputable?o.total:void 0,l=i-n,a=r(l),f=i<=s;n=i;let u={loaded:i,total:s,progress:s?i/s:void 0,bytes:l,rate:a||void 0,estimated:a&&s&&f?(s-i)/a:void 0,event:o};u[t?"download":"upload"]=!0,e(u)}}var jx=typeof XMLHttpRequest<"u",xy=jx&&function(e){return new Promise(function(n,r){let o=e.data,i=Oe.from(e.headers).normalize(),{responseType:s,withXSRFToken:l}=e,a;function f(){e.cancelToken&&e.cancelToken.unsubscribe(a),e.signal&&e.signal.removeEventListener("abort",a)}let u;if(w.isFormData(o)){if(Ne.hasStandardBrowserEnv||Ne.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){let[v,...C]=u?u.split(";").map(h=>h.trim()).filter(Boolean):[];i.setContentType([v||"multipart/form-data",...C].join("; "))}}let c=new XMLHttpRequest;if(e.auth){let v=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(v+":"+C))}let d=Fo(e.baseURL,e.url);c.open(e.method.toUpperCase(),Lo(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function y(){if(!c)return;let v=Oe.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),h={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:v,config:e,request:c};oc(function(g){n(g),f()},function(g){r(g),f()},h),c=null}if("onloadend"in c?c.onloadend=y:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(y)},c.onabort=function(){c&&(r(new A("Request aborted",A.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new A("Network Error",A.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let C=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",h=e.transitional||js;e.timeoutErrorMessage&&(C=e.timeoutErrorMessage),r(new A(C,h.clarifyTimeoutError?A.ETIMEDOUT:A.ECONNABORTED,e,c)),c=null},Ne.hasStandardBrowserEnv&&(l&&w.isFunction(l)&&(l=l(e)),l||l!==!1&&gy(d))){let v=e.xsrfHeaderName&&e.xsrfCookieName&&yy.read(e.xsrfCookieName);v&&i.set(e.xsrfHeaderName,v)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&w.forEach(i.toJSON(),function(C,h){c.setRequestHeader(h,C)}),w.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),s&&s!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",wy(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",wy(e.onUploadProgress)),(e.cancelToken||e.signal)&&(a=v=>{c&&(r(!v||v.type?new an(null,e,c):v),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(a),e.signal&&(e.signal.aborted?a():e.signal.addEventListener("abort",a)));let m=lc(d);if(m&&Ne.protocols.indexOf(m)===-1){r(new A("Unsupported protocol "+m+":",A.ERR_BAD_REQUEST,e));return}c.send(o||null)})};var ac={http:Ls,xhr:xy};w.forEach(ac,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var Sy=e=>`- ${e}`,Mx=e=>w.isFunction(e)||e===null||e===!1,Ds={getAdapter:e=>{e=w.isArray(e)?e:[e];let{length:t}=e,n,r,o={};for(let i=0;i`adapter ${l} `+(a===!1?"is not supported by the environment":"is not available in the build")),s=t?i.length>1?`since : +`+i.map(Sy).join(` +`):" "+Sy(i[0]):"as no adapter specified";throw new A("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ac};function uc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new an(null,e)}function zs(e){return uc(e),e.headers=Oe.from(e.headers),e.data=jo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ds.getAdapter(e.adapter||mr.adapter)(e).then(function(r){return uc(e),r.data=jo.call(e,e.transformResponse,r),r.headers=Oe.from(r.headers),r},function(r){return Mo(r)||(uc(e),r&&r.response&&(r.response.data=jo.call(e,e.transformResponse,r.response),r.response.headers=Oe.from(r.response.headers))),Promise.reject(r)})}var _y=e=>e instanceof Oe?e.toJSON():e;function Tt(e,t){t=t||{};let n={};function r(f,u,c){return w.isPlainObject(f)&&w.isPlainObject(u)?w.merge.call({caseless:c},f,u):w.isPlainObject(u)?w.merge({},u):w.isArray(u)?u.slice():u}function o(f,u,c){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f,c)}else return r(f,u,c)}function i(f,u){if(!w.isUndefined(u))return r(void 0,u)}function s(f,u){if(w.isUndefined(u)){if(!w.isUndefined(f))return r(void 0,f)}else return r(void 0,u)}function l(f,u,c){if(c in t)return r(f,u);if(c in e)return r(void 0,f)}let a={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(f,u)=>o(_y(f),_y(u),!0)};return w.forEach(Object.keys(Object.assign({},e,t)),function(u){let c=a[u]||o,d=c(e[u],t[u],u);w.isUndefined(d)&&c!==l||(n[u]=d)}),n}var Us="1.6.7";var cc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cc[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var ky={};cc.transitional=function(t,n,r){function o(i,s){return"[Axios v"+Us+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,l)=>{if(t===!1)throw new A(o(s," has been removed"+(n?" in "+n:"")),A.ERR_DEPRECATED);return n&&!ky[s]&&(ky[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,l):!0}};function Fx(e,t,n){if(typeof e!="object")throw new A("options must be an object",A.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],s=t[i];if(s){let l=e[i],a=l===void 0||s(l,i,e);if(a!==!0)throw new A("option "+i+" must be "+a,A.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new A("Unknown option "+i,A.ERR_BAD_OPTION)}}var Bs={assertOptions:Fx,validators:cc};var un=Bs.validators,yr=class{constructor(t){this.defaults=t,this.interceptors={request:new Zu,response:new Zu}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o;Error.captureStackTrace?Error.captureStackTrace(o={}):o=new Error;let i=o.stack?o.stack.replace(/^.+\n/,""):"";r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+i):r.stack=i}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Tt(this.defaults,n);let{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Bs.assertOptions(r,{silentJSONParsing:un.transitional(un.boolean),forcedJSONParsing:un.transitional(un.boolean),clarifyTimeoutError:un.transitional(un.boolean)},!1),o!=null&&(w.isFunction(o)?n.paramsSerializer={serialize:o}:Bs.assertOptions(o,{encode:un.function,serialize:un.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&w.merge(i.common,i[n.method]);i&&w.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),n.headers=Oe.concat(s,i);let l=[],a=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(n)===!1||(a=a&&v.synchronous,l.unshift(v.fulfilled,v.rejected))});let f=[];this.interceptors.response.forEach(function(v){f.push(v.fulfilled,v.rejected)});let u,c=0,d;if(!a){let m=[zs.bind(this),void 0];for(m.unshift.apply(m,l),m.push.apply(m,f),d=m.length,u=Promise.resolve(n);c{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i,s=new Promise(l=>{r.subscribe(l),i=l}).then(o);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,l){r.reason||(r.reason=new an(i,s,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},Ey=fc;function dc(e){return function(n){return e.apply(null,n)}}function pc(e){return w.isObject(e)&&e.isAxiosError===!0}var mc={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(mc).forEach(([e,t])=>{mc[t]=e});var Cy=mc;function Ry(e){let t=new Do(e),n=To(Do.prototype.request,t);return w.extend(n,Do.prototype,t,{allOwnKeys:!0}),w.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Ry(Tt(e,o))},n}var oe=Ry(mr);oe.Axios=Do;oe.CanceledError=an;oe.CancelToken=Ey;oe.isCancel=Mo;oe.VERSION=Us;oe.toFormData=ln;oe.AxiosError=A;oe.Cancel=oe.CanceledError;oe.all=function(t){return Promise.all(t)};oe.spread=dc;oe.isAxiosError=pc;oe.mergeConfig=Tt;oe.AxiosHeaders=Oe;oe.formToJSON=e=>Ms(w.isHTMLForm(e)?new FormData(e):e);oe.getAdapter=Ds.getAdapter;oe.HttpStatusCode=Cy;oe.default=oe;var $s=oe;var{Axios:pC,AxiosError:mC,CanceledError:hC,isCancel:yC,CancelToken:gC,VERSION:vC,all:wC,Cancel:xC,isAxiosError:SC,spread:_C,toFormData:kC,AxiosHeaders:EC,HttpStatusCode:CC,formToJSON:RC,getAdapter:PC,mergeConfig:NC}=$s;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var Dx=typeof window<"u"?window:null,Py=typeof global<"u"?global:void 0,gr=async(e,t,n)=>{let r={...n},o=null,i=!1,s=null,l=[];if(Array.isArray(t))for(let c of t)c instanceof File&&(l.push(c),i=!0),typeof c=="function"&&(s=c);else t instanceof File&&(i=!0,l.push(t));if(!i)o=JSON.stringify(t),r["content-type"]="aplication/json";else{let c=new FormData;for(let d of l)c.append(d.name,d);o=c,delete r["content-type"],r.enctype="multipart/form-data;"}let a=new URL(e);if(Dx!==null){let c=new URL(location.href),d="";if(a.host===c.host||Py&&typeof Py.server_hook=="function"?d=a.toString():d=`${c.protocol}//${c.host}/_proxy/${encodeURIComponent(a.toString())}`,d){if(s)return(await $s({method:t?"post":void 0,url:d,data:o,onUploadProgress:s})).data;{let m=await(await fetch(d,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(m,Ny)}catch{return m}}}}let u=await(await fetch(a,t?{method:"POST",body:o,headers:r}:void 0)).text();try{return JSON.parse(u,Ny)}catch{return u}},Ny=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var Gy=O(Wy());var Vs=async(e,t)=>{let n=(0,Gy.default)(e,"/"),r=await gr(mS(n,"/_prasi/_")),o="";r&&r.prasi&&(o=r.prasi);let i=pS(n);if(o==="v2")await new Promise(s=>{let l=document,a=l.createElement("script");a.onload=async()=>{s()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let f=localStorage.getItem("api-ts-"+n);t?a.src=`${i}/_prasi/load.js?url=${n}&v3&dev=1&ts=${f}`:a.src=`${i}/_prasi/load.js?url=${n}&v3&ts=${f}`,document.querySelector(`script[src="${a.src}"]`)?s():l.body.appendChild(a)});else{let s=await fetch(i+"/_prasi/api-entry");if(Pe.prasiApi[n]={apiEntry:(await s.json()).srv},t){let l=await fetch(i+"/_prasi/api-types");Pe.prasiApi[n].apiTypes=await l.text(),Pe.prasiApi[n].prismaTypes={"prisma.d.ts":await vc(`${i}/_prasi/prisma/index.d.ts`),"runtime/index.d.ts":await vc(`${i}/_prasi/prisma/runtime/index.d.ts`),"runtime/library.d.ts":await vc(`${i}/_prasi/prisma/runtime/library.d.ts`)}}}},pS=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`},mS=(e,t)=>{let n=new URL(e);return n.pathname=t,n.toString()},vc=async(e,t)=>await(await fetch(e)).text();var zo={},Hs=e=>{Pe.prasiApi||(Pe.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Pe.prasiApi[n]||zo[n]||(zo[n]=Vs(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,o)=>{if(o==="_url")return(s,l)=>{let a=new URL(n);a.pathname=s.split("/").filter(c=>c).join("/");let f=new URL(location.href),u="";return a.host===f.host||l===!1?u=a.toString():u=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(a.toString())}`,u};let i=s=>function(...l){return new Promise(async(a,f)=>{try{let u=Pe.prasiApi[n];if(!u&&zo&&typeof zo[n]=="object"&&(await zo[n],u=Pe.prasiApi[n]),u){if(s==="_raw"){let y=l[0],m=`${n}${y}`,v=await Qy(m,l.slice(1));a(v);return}if(u.apiEntry||(u.apiEntry={}),u.apiEntry&&!u.apiEntry[s]){f(`API ${s.toString()} not found, existing API: - ${Object.keys(u.apiEntry||{}).join(` - - `)}`);return}let c=u.apiEntry[s].url,d=u.apiEntry[s].args;if(c&&d){if(l.length>0&&d.length>0)for(let[v,C]of Object.entries(l)){let h=d[parseInt(v)];d&&d.includes(h)&&C&&typeof C!="string"&&typeof C!="number"||(c=c.replace(`:${h}?`,C+""),c=c.replace(`:${h}`,C+""))}let y=`${n}${c}`,m=await Gy(y,l);a(m)}else console.error(`API Not Found: ${s.toString()}`)}else f("Failed to load API [Proxy]: "+n)}catch(u){f(u)}})};return o==="then"?new Proxy({},{get:(s,l)=>i(l)}):i(o)}})}catch{return null}},Gy=async(e,t)=>await gr(e,t,{"content-type":"application/json"});var Xy=O(qy());var Hs=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async o=>vr({name:t,action:"batch_update",table:"",params:{batch:o}},e)}:r==="_schema"?{tables:async()=>vr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async o=>vr({name:t,action:"schema_columns",table:o,params:[]},e),rels:async o=>vr({name:t,action:"schema_rels",table:o,params:[]},e)}:r.startsWith("$")?(...o)=>vr({name:t,action:"query",table:r,params:o},e):new Proxy({},{get(o,i){return async(...s)=>(r==="query"&&(r=i,i="query"),await vr({name:t,action:i,table:r,params:s},e))}})}})},Vs={},vr=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString(),o=(0,Xy.default)(e),i=Vs[o];if(!i||i&&Date.now()-i.timestamp>1e3){Vs[o]={timestamp:Date.now(),promise:gr(r,e,{"content-type":"application/json"}),result:null};let s=await Vs[o].promise;return Vs[o].result=s,s}return await i.promise};function vS(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function wS(e){return e?new Promise((t,n)=>{let r="$importModule$"+Math.random().toString(32).slice(2),o=document.createElement("script"),i=()=>{delete window[r],o.onerror=null,o.onload=null,o.remove(),URL.revokeObjectURL(o.src),o.src=""};o.defer=!0,o.type="module",o.onerror=()=>{n(new Error(`Failed to import: ${e}`)),i()},o.onload=()=>{t(window[r]),i()};let l=`import * as m from "${Pe.basehost?Pe.basehost+e:vS(e)}"; window.${r} = m;`,a=new Blob([l],{type:"text/javascript"});o.src=URL.createObjectURL(a),document.head.appendChild(o)}):""}var Ws=wS;var wr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var Jy=async e=>{let t=window;t.exports||(t.exports={});let n=await _db.site.findFirst({where:{id:e.site.id},include:{component_site:!0}});if(n){if(n.component_site)for(let s of n.component_site){let l=`/npm/site/${s.id_site}/site.js`;await Ws(l)}let r=e.site.api_url;if(r||(r=(n.config||{}).api_url||""),!r)return;try{let s=new URL(r);if(r&&s.hostname)try{await Bs(r,!0)}catch{console.warn("Failed to load API [Legacy]:",r)}}catch{}let o=`/npm/site/${e.site.id}/site.js`;await Ws(o),e.site.db.get()||e.site.db.set(Hs(r)),e.site.api.get()||e.site.api.set($s(r));let i=window;if(n.js_compiled){let s=n.config,l=(f,u)=>(s.api_url&&!u.api&&(u.api=e.site.api.get(),u.db=e.site.db.get()),u.params=i.params,u.module={},new Function(...Object.keys(u),f)(...Object.values(u))),a={...wr({site:e.site,mode:e.mode}),types:{},exports:i.exports,load:Ws,render:e.render,module:{exports:{}}};if(await l(n.js_compiled,a),a.module.exports)for(let[f,u]of Object.entries(a.module.exports))i.exports[f]=u}}};var Yy=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,!e.site.api&&!e.site.db?e.site.code.mode==="old"&&Jy({site:{id:e.site.id,api_url:e.site.api_url,api:{get(){return e.site.api},set(n){e.site.api=n}},db:{get(){return e.site.db},set(n){e.site.db=n}}},render:e.render}).then(()=>{e.status="ready",e.on_status_changes&&e.on_status_changes(e.status),e.render()}):(e.status="ready",e.on_status_changes&&e.on_status_changes(e.status))};var cn={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{}},on_preload:void 0};var Dg=O(ce());var le=O(ce()),vc=class extends le.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},xS=()=>!1,Zy=(0,le.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:xS});function eg({children:e}){let[t,n]=(0,le.useState)(),r=(0,le.useRef)(),o=(0,le.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return le.default.createElement(Zy.Provider,{value:o},le.default.createElement(vc,{error:t,onError:(i,s)=>{n(i),r.current?.(i,s)}},e))}eg.displayName="ReactUseErrorBoundaryContext";function tg(e){function t(n){return le.default.createElement(eg,null,le.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function ng(e){let t=(0,le.useContext)(Zy);t.componentDidCatch.current=e;let n=(0,le.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var Je=O($()),ht=tg(({children:e,meta:t,id:n,silent:r=!0})=>{let o=nn({retrying:!1,meta:t}),[i,s]=ng((a,f)=>{r!==!0&&console.warn(a)});t&&o.meta!==t&&(o.meta=t,setTimeout(s));let l=t;return i?(0,Je.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Je.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,Je.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:o.retrying?(0,Je.jsx)(Je.Fragment,{children:"Retrying..."}):(0,Je.jsx)(Je.Fragment,{children:i.message})}),(0,Je.jsx)("div",{className:"p-1",children:(0,Je.jsx)("button",{onClick:()=>{o.retrying=!0,o.render(),setTimeout(()=>{o.retrying=!1,o.render(),s()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});var je=(e,t,n,r)=>{let o=e[t];return n==="desktop"||!n?!o&&e.mobile&&e.mobile[t]&&(o=e.mobile[t]):e.mobile&&e.mobile[t]&&(o=e.mobile[t]),o||(o=r),o};var rg=(e,t)=>{let n=je(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` + - `)}`);return}let c=u.apiEntry[s].url,d=u.apiEntry[s].args;if(c&&d){if(l.length>0&&d.length>0)for(let[v,C]of Object.entries(l)){let h=d[parseInt(v)];d&&d.includes(h)&&C&&typeof C!="string"&&typeof C!="number"||(c=c.replace(`:${h}?`,C+""),c=c.replace(`:${h}`,C+""))}let y=`${n}${c}`,m=await Qy(y,l);a(m)}else console.error(`API Not Found: ${s.toString()}`)}else f("Failed to load API [Proxy]: "+n)}catch(u){f(u)}})};return o==="then"?new Proxy({},{get:(s,l)=>i(l)}):i(o)}})}catch{return null}},Qy=async(e,t)=>await gr(e,t,{"content-type":"application/json"});var Jy=O(Xy());var Gs=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async o=>vr({name:t,action:"batch_update",table:"",params:{batch:o}},e)}:r==="_schema"?{tables:async()=>vr({name:t,action:"schema_tables",table:"",params:[]},e),columns:async o=>vr({name:t,action:"schema_columns",table:o,params:[]},e),rels:async o=>vr({name:t,action:"schema_rels",table:o,params:[]},e)}:r.startsWith("$")?(...o)=>vr({name:t,action:"query",table:r,params:o},e):new Proxy({},{get(o,i){return async(...s)=>(r==="query"&&(r=i,i="query"),await vr({name:t,action:i,table:r,params:s},e))}})}})},Ws={},vr=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString(),o=(0,Jy.default)(e),i=Ws[o];if(!i||i&&Date.now()-i.timestamp>1e3){Ws[o]={timestamp:Date.now(),promise:gr(r,e,{"content-type":"application/json"}),result:null};let s=await Ws[o].promise;return Ws[o].result=s,s}return await i.promise};function wS(e){let t=document.createElement("a");return t.setAttribute("href",e),t.cloneNode(!1).href}function xS(e){return e?new Promise((t,n)=>{let r="$importModule$"+Math.random().toString(32).slice(2),o=document.createElement("script"),i=()=>{delete window[r],o.onerror=null,o.onload=null,o.remove(),URL.revokeObjectURL(o.src),o.src=""};o.defer=!0,o.type="module",o.onerror=()=>{n(new Error(`Failed to import: ${e}`)),i()},o.onload=()=>{t(window[r]),i()};let l=`import * as m from "${Pe.basehost?Pe.basehost+e:wS(e)}"; window.${r} = m;`,a=new Blob([l],{type:"text/javascript"});o.src=URL.createObjectURL(a),document.head.appendChild(o)}):""}var Qs=xS;var wr=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var Yy=async e=>{let t=window;t.exports||(t.exports={});let n=await _db.site.findFirst({where:{id:e.site.id},include:{component_site:!0}});if(n){if(n.component_site)for(let s of n.component_site){let l=`/npm/site/${s.id_site}/site.js`;await Qs(l)}let r=e.site.api_url;if(r||(r=(n.config||{}).api_url||""),!r)return;try{let s=new URL(r);if(r&&s.hostname)try{await Vs(r,!0)}catch{console.warn("Failed to load API [Legacy]:",r)}}catch{}let o=`/npm/site/${e.site.id}/site.js`;await Qs(o),e.site.db.get()||e.site.db.set(Gs(r)),e.site.api.get()||e.site.api.set(Hs(r));let i=window;if(n.js_compiled){let s=n.config,l=(f,u)=>(s.api_url&&!u.api&&(u.api=e.site.api.get(),u.db=e.site.db.get()),u.params=i.params,u.module={},new Function(...Object.keys(u),f)(...Object.values(u))),a={...wr({site:e.site,mode:e.mode}),types:{},exports:i.exports,load:Qs,render:e.render,module:{exports:{}}};if(await l(n.js_compiled,a),a.module.exports)for(let[f,u]of Object.entries(a.module.exports))i.exports[f]=u}}};var Zy=(e,t)=>{e.status="loading",e.on_status_changes&&e.on_status_changes(e.status),e.site.id=t.site_id,e.site.api_url=t.api_url,!e.site.api&&!e.site.db?e.site.code.mode==="old"&&Yy({site:{id:e.site.id,api_url:e.site.api_url,api:{get(){return e.site.api},set(n){e.site.api=n}},db:{get(){return e.site.db},set(n){e.site.db=n}}},render:e.render}).then(()=>{e.status="ready",e.on_status_changes&&e.on_status_changes(e.status),e.render()}):(e.status="ready",e.on_status_changes&&e.on_status_changes(e.status))};var cn={ts:0,status:"init",meta:{},entry:[],tick:0,mode:"desktop",site:{id:"",api_url:"",api:null,db:null},site_url:null,script:{init_local_effect:void 0},visit:void 0,on_status_changes:void 0,layout:void 0,page:{cur:{id:""},navs:{}},on_preload:void 0};var zg=O(ce());var le=O(ce()),wc=class extends le.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},SS=()=>!1,eg=(0,le.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:SS});function tg({children:e}){let[t,n]=(0,le.useState)(),r=(0,le.useRef)(),o=(0,le.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return le.default.createElement(eg.Provider,{value:o},le.default.createElement(wc,{error:t,onError:(i,s)=>{n(i),r.current?.(i,s)}},e))}tg.displayName="ReactUseErrorBoundaryContext";function ng(e){function t(n){return le.default.createElement(tg,null,le.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function rg(e){let t=(0,le.useContext)(eg);t.componentDidCatch.current=e;let n=(0,le.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var Je=O($()),ht=ng(({children:e,meta:t,id:n,silent:r=!0})=>{let o=nn({retrying:!1,meta:t}),[i,s]=rg((a,f)=>{r!==!0&&console.warn(a)});t&&o.meta!==t&&(o.meta=t,setTimeout(s));let l=t;return i?(0,Je.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Je.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,Je.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:o.retrying?(0,Je.jsx)(Je.Fragment,{children:"Retrying..."}):(0,Je.jsx)(Je.Fragment,{children:i.message})}),(0,Je.jsx)("div",{className:"p-1",children:(0,Je.jsx)("button",{onClick:()=>{o.retrying=!0,o.render(),setTimeout(()=>{o.retrying=!1,o.render(),s()},100)},className:"bg-white border border-white hover:border-red-400 hover:bg-red-50 rounded px-2",children:"Try again"})})]}):e});var je=(e,t,n,r)=>{let o=e[t];return n==="desktop"||!n?!o&&e.mobile&&e.mobile[t]&&(o=e.mobile[t]):e.mobile&&e.mobile[t]&&(o=e.mobile[t]),o||(o=r),o};var og=(e,t)=>{let n=je(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` ${n.css} - `,t):""};var og=(e,t)=>{let n=je(e,"bg",t,{size:"contain",pos:"center"}),r=`${serverurl}${n.url}`;return n&&n.url&&n.url.startsWith("http")&&(r=n.url),cx(` + `,t):""};var ig=(e,t)=>{let n=je(e,"bg",t,{size:"contain",pos:"center"}),r=`${serverurl}${n.url}`;return n&&n.url&&n.url.startsWith("http")&&(r=n.url),cx(` background-repeat: no-repeat; `,n.color&&` background-color: ${n.color}; @@ -34,7 +34,7 @@ Error generating stack: `+i.message+` background-size: ${n.size}; `,n.pos&&` background-position: ${n.pos}; - `)};var vg=O(Ec());var wg=(e,t)=>{let n=je(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(yt(n,"stroke.l","border-left-width"),yt(n,"stroke.r","border-right-width"),yt(n,"stroke.b","border-bottom-width"),yt(n,"stroke.t","border-top-width"),yt(n,"color","border-color","transparent"),yt(n,"style","border-style","dashed"),yt(n,"rounded.tl","border-top-left-radius"),yt(n,"rounded.tr","border-top-right-radius"),yt(n,"rounded.bl","border-bottom-left-radius"),yt(n,"rounded.br","border-bottom-right-radius"))},yt=(e,t,n,r)=>{let o=(0,vg.default)(e,t);if(r)return o?`${n}: ${o};`:`${n}: ${r};`;if(o)return`${n}: ${o}px;`};var xg=(e,t,n)=>{let r=je(e,"dim",t,{h:"fit",w:"fit"});return r.w==="full"&&r.h==="full"?` + `)};var wg=O(Cc());var xg=(e,t)=>{let n=je(e,"border",t,{style:"solid",stroke:{},rounded:{tr:0,tl:0,bl:0,br:0},color:"transparent"});return cx(yt(n,"stroke.l","border-left-width"),yt(n,"stroke.r","border-right-width"),yt(n,"stroke.b","border-bottom-width"),yt(n,"stroke.t","border-top-width"),yt(n,"color","border-color","transparent"),yt(n,"style","border-style","dashed"),yt(n,"rounded.tl","border-top-left-radius"),yt(n,"rounded.tr","border-top-right-radius"),yt(n,"rounded.bl","border-bottom-left-radius"),yt(n,"rounded.br","border-bottom-right-radius"))},yt=(e,t,n,r)=>{let o=(0,wg.default)(e,t);if(r)return o?`${n}: ${o};`:`${n}: ${r};`;if(o)return`${n}: ${o}px;`};var Sg=(e,t,n)=>{let r=je(e,"dim",t,{h:"fit",w:"fit"});return r.w==="full"&&r.h==="full"?` width:100%; height:100%; flex:1; @@ -53,7 +53,7 @@ Error generating stack: `+i.message+` `,r.h&&typeof r.h=="number"&&r.h>=0&&` height: ${r.h}${r.hUnit||"px"}; overflow-y: clip; - `)};var Sg=({item:e,hover:t,active:n})=>cx(t&&css` + `)};var _g=({item:e,hover:t,active:n})=>cx(t&&css` & { box-shadow: inset 0 0 0px 3px #bae3fd; > img { @@ -65,7 +65,7 @@ Error generating stack: `+i.message+` > img { opacity: 0.6; } - `);var Sr=window,_g=(e,t)=>{let n=je(e,"font",t,{});if(n.family){Sr.loadedFonts||(Sr.loadedFonts=[]);let o=`:wght@${[300,400,500,600].join(";")}`,i=n.family.replace(/ /g,"+");if(Sr.loadedFonts.indexOf(n.family)<0){Sr.loadedFonts.push(n.family);let s=document,l=`https://prasi.avolut.com/_font/css2?family=${i}${o}`;if(!s.querySelector(`link[href="${l}]`)){let a=s.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=l,s.head.appendChild(a)}}}return!n.family&&Sr.defaultFont&&(n.family=Sr.defaultFont),cx(n.color&&` + `);var Sr=window,kg=(e,t)=>{let n=je(e,"font",t,{});if(n.family){Sr.loadedFonts||(Sr.loadedFonts=[]);let o=`:wght@${[300,400,500,600].join(";")}`,i=n.family.replace(/ /g,"+");if(Sr.loadedFonts.indexOf(n.family)<0){Sr.loadedFonts.push(n.family);let s=document,l=`https://prasi.avolut.com/_font/css2?family=${i}${o}`;if(!s.querySelector(`link[href="${l}]`)){let a=s.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=l,s.head.appendChild(a)}}}return!n.family&&Sr.defaultFont&&(n.family=Sr.defaultFont),cx(n.color&&` color: ${n.color}; `,n.whitespace==="whitespace-normal"&&` word-break: break-word; @@ -81,10 +81,10 @@ Error generating stack: `+i.message+` line-height: ${n.height==="auto"?"normal":`${n.height}%`}; `,n.family&&` font-family: ${n.family}; - `)};var kg=(e,t)=>{let n=[],r=je(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(r)r.wrap&&n.push(r.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),r.dir.startsWith("col")?(r.dir==="col"?n.push("flex-direction: column;"):r.dir==="col-reverse"&&n.push("flex-direction: column-reverse;"),r.gap==="auto"?(r.align==="left"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="right"&&n.push("align-items:end; justify-content: space-between;")):(n.push(`gap: ${r.gap}px;`),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:center; justify-content: start;"),r.align==="top-right"&&n.push("align-items:end; justify-content: start;"),r.align==="left"&&n.push("align-items:start; justify-content: center;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-left"&&n.push("align-items:start; justify-content: end;"),r.align==="bottom-center"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;"))):(r.dir==="row"?n.push("flex-direction: row;"):r.dir==="row-reverse"&&n.push("flex-direction: row-reverse;"),r.gap==="auto"?(r.align==="top"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="bottom"&&n.push("align-items:end; justify-content: space-between;")):(n.push(` + `)};var Eg=(e,t)=>{let n=[],r=je(e,"layout",t,{dir:"col",align:"top-left",gap:0,wrap:void 0});if(r)r.wrap&&n.push(r.wrap==="flex-wrap"?"flex-wrap: wrap;":"flex-wrap: nowrap;"),r.dir.startsWith("col")?(r.dir==="col"?n.push("flex-direction: column;"):r.dir==="col-reverse"&&n.push("flex-direction: column-reverse;"),r.gap==="auto"?(r.align==="left"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="right"&&n.push("align-items:end; justify-content: space-between;")):(n.push(`gap: ${r.gap}px;`),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:center; justify-content: start;"),r.align==="top-right"&&n.push("align-items:end; justify-content: start;"),r.align==="left"&&n.push("align-items:start; justify-content: center;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-left"&&n.push("align-items:start; justify-content: end;"),r.align==="bottom-center"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;"))):(r.dir==="row"?n.push("flex-direction: row;"):r.dir==="row-reverse"&&n.push("flex-direction: row-reverse;"),r.gap==="auto"?(r.align==="top"&&n.push("align-items:start; justify-content: space-between;"),r.align==="center"&&n.push("align-items:center; justify-content: space-between;"),r.align==="bottom"&&n.push("align-items:end; justify-content: space-between;")):(n.push(` gap: ${r.gap}px; `),r.align==="top-left"&&n.push("align-items:start; justify-content: start;"),r.align==="top-center"&&n.push("align-items:start; justify-content: center;"),r.align==="top-right"&&n.push("align-items:start; justify-content: end;"),r.align==="left"&&n.push("align-items:center; justify-content: start;"),r.align==="center"&&n.push("align-items:center; justify-content: center;"),r.align==="right"&&n.push("align-items:center; justify-content: end;"),r.align==="bottom-left"&&n.push("align-items:end; justify-content: start;"),r.align==="bottom-center"&&n.push("align-items:end; justify-content: center;"),r.align==="bottom-right"&&n.push("align-items:end; justify-content: end;")));else return"flex-direction:column; align-items:start; justify-content: start;";return n.join(` - `).trim()};var Eg=(e,t)=>{let n=je(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(n.l!==void 0&&` + `).trim()};var Cg=(e,t)=>{let n=je(e,"padding",t,{l:0,b:0,t:0,r:0});return cx(n.l!==void 0&&` padding-left: ${n.l}px; `,n.r!==void 0&&` padding-right: ${n.r}px; @@ -92,23 +92,23 @@ Error generating stack: `+i.message+` padding-bottom: ${n.b}px; `,n.t!==void 0&&` padding-top: ${n.t}px; - `)};var Cc=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css` + `)};var Rc=(e,t)=>{try{return cx([e.id?`s-${e.id}`:"",css` display: flex; position: relative; user-select: none; - ${kg(e,t.mode)} ${Eg(e,t.mode)} - ${xg(e,t.mode,t?.editor)} - ${wg(e,t.mode)} - ${og(e,t.mode)} - ${_g(e,t.mode)} - `,(t?.hover||t?.active)&&Sg({item:e,hover:t?.hover,active:t?.active}),rg(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Cg=O($()),Uo=(e,t,n,r)=>{let o=t.item,i;o.component?.style&&(i={style:o.component.style,className:Cc(o.component.style,{mode:e.mode})});let s={className:Cc(o,{mode:e.mode}),inherit:i},l={},a=t.item.childs,f;return t.item.type==="text"?(f=null,s.dangerouslySetInnerHTML={__html:t.item.html||""}):f=Array.isArray(a)&&a?.map(u=>{if(!u)return null;let{id:c}=u,d=n?e.layout?.meta[c]:e.meta[c];return d?(0,Cg.jsx)(It,{meta:d,is_layout:n,passprop:r},c):null}),s.children=f,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete s.children,delete s.dangerouslySetInnerHTML),{props:s,text_props:l}};var Mg=O(ce());var Js=O(ce());function Pc(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Nc(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=Pc(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}var Rc;function Rg(){return Rc||(Rc=Nc("keyval-store","keyval")),Rc}function Oc(e,t=Rg()){return t("readonly",n=>Pc(n.get(e)))}function Pg(e,t,n=Rg()){return n("readwrite",r=>(r.put(t,e),Pc(r.transaction)))}var g_=Nc("prasi-cache","prasi-cache-store"),Bo={timeout:null,store:g_},Ks=(e,t)=>{let n=[...Ng(t,"navigate(",")"),...Ng(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let o of n)e.page.navs[r].add(o);clearTimeout(Bo.timeout),Bo.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Ng=(e,t,n)=>{let r=0,o=0,i=[];for(;;){let s=e.indexOf(t,r);if(o=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let a=e.indexOf(`${l}${n}`,s+t.length+1),f=e.substring(s+t.length+1,a);r=a+2+n.length,i.push(f)}}if(o===r)break}return i};var qs=O(ce());var Tg=O(Ec()),$o=O(ce());var Tc=O($()),bg=(e,t,n,r)=>o=>{n.item.script||(n.item.script={}),n.item.script.passprop||(n.item.script.passprop={});let i={};if(n.item.script.passprop){let a=!1;for(let[f,u]of Object.entries(o))["children","key"].includes(f)||(a=!0,i[f]=u,n.item.script.passprop[f]={end:0,start:0,value:u})}let s={...r,...i};if(!Array.isArray(o.children)&&(0,$o.isValidElement)(o.children)&&typeof o.children=="object"){let a=(0,Tg.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(a)){let f=!0;for(let u of a)!(0,$o.isValidElement)(u)&&typeof u=="object"||(f=!1);if(f)return a.map(u=>{let c=e.meta[u.id];return c?(0,Tc.jsx)(It,{is_layout:t,meta:c,passprop:s},u.id):null})}}if(!Array.isArray(o.children)&&!(0,$o.isValidElement)(o.children)&&typeof o.children=="object"){let a=o.children.id;if(a){let f=e.meta[a];return(0,Tc.jsx)(It,{is_layout:t,meta:f,passprop:s})}}return bc(o,n.script?.scope)},bc=(e,t)=>{let n={};if(Array.isArray(e)?n.children=e:n=e,Array.isArray(n.children)){let r=[];for(let o of n.children)r.push(Og(o,n,t));return r}return Og(n.children,n,t)},Og=(e,t,n)=>{if((0,$o.isValidElement)(e)){let r={...t};return delete r.children,{...e,props:{...e.props,passprop:{...n,...r}}}}return e};var Ig=(e,t,n)=>r=>{let{children:o}=r,i=e.script?.init_local_effect,s=t?e.layout?.meta:e.meta,a=(0,qs.useRef)(r.value).current;return a.render=n.render,Xs(e,n,n.script?.scope),r.hook&&r.hook(a),(0,qs.useEffect)(()=>{let f=n.item.id;if(n.parent?.instance_id&&s){let c=s[n.parent?.instance_id];if(c&&c.instances){for(let[d,y]of Object.entries(c.instances[n.parent.instance_id]))if(y===n.item.id){f=d;break}}}return!i[f]&&(typeof i=="object"&&(i[f]=!0),(async()=>r.effect&&await r.effect(a))()),()=>{}},[location.pathname]),bc(o,{...n.script?.scope,[r.name]:a})};var Ic=O($()),Lg=(e,t,n,r)=>{let o=Uo(e,t,n,r);e.visit&&e.visit(t,o),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:Ig(e,n,t),PassProp:bg(e,n,t,r)};let i=t.script,s=window.exports,l={useEffect:Js.useEffect,children:o.props.children,props:o.props,Local:i.Local,db:e.site.db,api:e.site.api,PassProp:i?.PassProp,ErrorBox:ht,newElement:()=>{},render:c=>{i.result=(0,Ic.jsx)(Js.Suspense,{children:c})},params,...wr(e),...s,...r};if(typeof r=="object"){for(let[c,d]of Object.entries(r))if(typeof d=="object"&&d&&d._jsx){let y=d;l[c]=(0,Ic.jsx)(v_,{fn:y.fn,passprop:r,meta:t})}}!Pe.isEditor&&t.item.adv?.js&&Ks(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",f=Ac(a,Lc)||"";new Function(...Object.keys(l),`// ${t.item.name}: ${t.item.id} + ${Cg(e,t.mode)} + ${Sg(e,t.mode,t?.editor)} + ${xg(e,t.mode)} + ${ig(e,t.mode)} + ${kg(e,t.mode)} + `,(t?.hover||t?.active)&&_g({item:e,hover:t?.hover,active:t?.active}),og(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Rg=O($()),Bo=(e,t,n,r)=>{let o=t.item,i;o.component?.style&&(i={style:o.component.style,className:Rc(o.component.style,{mode:e.mode})});let s={className:Rc(o,{mode:e.mode}),inherit:i},l={},a=t.item.childs,f;return t.item.type==="text"?(f=null,s.dangerouslySetInnerHTML={__html:t.item.html||""}):f=Array.isArray(a)&&a?.map(u=>{if(!u)return null;let{id:c}=u,d=n?e.layout?.meta[c]:e.meta[c];return d?(0,Rg.jsx)(It,{meta:d,is_layout:n,passprop:r},c):null}),s.children=f,t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete s.children,delete s.dangerouslySetInnerHTML),{props:s,text_props:l}};var Fg=O(ce());var Ys=O(ce());function Nc(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function Oc(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=Nc(n);return(o,i)=>r.then(s=>i(s.transaction(t,o).objectStore(t)))}var Pc;function Pg(){return Pc||(Pc=Oc("keyval-store","keyval")),Pc}function Tc(e,t=Pg()){return t("readonly",n=>Nc(n.get(e)))}function Ng(e,t,n=Pg()){return n("readwrite",r=>(r.put(t,e),Nc(r.transaction)))}var v_=Oc("prasi-cache","prasi-cache-store"),$o={timeout:null,store:v_},Xs=(e,t)=>{let n=[...Og(t,"navigate(",")"),...Og(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let o of n)e.page.navs[r].add(o);clearTimeout($o.timeout),$o.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Og=(e,t,n)=>{let r=0,o=0,i=[];for(;;){let s=e.indexOf(t,r);if(o=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let a=e.indexOf(`${l}${n}`,s+t.length+1),f=e.substring(s+t.length+1,a);r=a+2+n.length,i.push(f)}}if(o===r)break}return i};var Ho=O(ce());var bg=O(Cc()),Vo=O(ce());var bc=O($()),Ig=(e,t,n,r)=>o=>{n.item.script||(n.item.script={}),n.item.script.passprop||(n.item.script.passprop={});let i={};if(n.item.script.passprop){let a=!1;for(let[f,u]of Object.entries(o))["children","key"].includes(f)||(a=!0,i[f]=u,n.item.script.passprop[f]={end:0,start:0,value:u})}let s={...r,...i};if(!Array.isArray(o.children)&&(0,Vo.isValidElement)(o.children)&&typeof o.children=="object"){let a=(0,bg.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(a)){let f=!0;for(let u of a)!(0,Vo.isValidElement)(u)&&typeof u=="object"||(f=!1);if(f)return a.map(u=>{let c=e.meta[u.id];return c?(0,bc.jsx)(It,{is_layout:t,meta:c,passprop:s},u.id):null})}}if(!Array.isArray(o.children)&&!(0,Vo.isValidElement)(o.children)&&typeof o.children=="object"){let a=o.children.id;if(a){let f=e.meta[a];return(0,bc.jsx)(It,{is_layout:t,meta:f,passprop:s})}}return Ic(o,n.script?.scope)},Ic=(e,t)=>{let n={};if(Array.isArray(e)?n.children=e:n=e,Array.isArray(n.children)){let r=[];for(let o of n.children)r.push(Tg(o,n,t));return r}return Tg(n.children,n,t)},Tg=(e,t,n)=>{if((0,Vo.isValidElement)(e)){let r={...t};return delete r.children,{...e,props:{...e.props,passprop:{...n,...r}}}}return e};var _r={},Lg=(e,t,n)=>r=>{let o=["localhost","prasi.avolut.com"].includes(location.hostname)&&location.pathname.startsWith("/ed/"),i=n.item.id,{children:s}=r,l=e.script?.init_local_effect,a=t?e.layout?.meta:e.meta,u=(0,Ho.useRef)(_r[i]?_r[i]:r.value).current;return u.render=n.render,Js(e,n,n.script?.scope),r.hook&&r.hook(u),(0,Ho.useEffect)(()=>{if(n.parent?.instance_id&&a){let d=a[n.parent?.instance_id];if(d&&d.instances){for(let[y,m]of Object.entries(d.instances[n.parent.instance_id]))if(m===n.item.id){i=y;break}}}return!l[i]&&(typeof l=="object"&&(l[i]=!0),(async()=>r.effect&&(await r.effect(u),o&&(_r[i]=u)))()),()=>{}},[location.pathname]),(0,Ho.useEffect)(()=>{o&&_r[i]===null&&(async()=>r.effect&&(await r.effect(u),o&&(_r[i]=u)))()},[_r[i]]),Ic(s,{...n.script?.scope,[r.name]:u})};var Lc=O($()),Ag=(e,t,n,r)=>{let o=Bo(e,t,n,r);e.visit&&e.visit(t,o),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:Lg(e,n,t),PassProp:Ig(e,n,t,r)};let i=t.script,s=window.exports,l={useEffect:Ys.useEffect,children:o.props.children,props:o.props,Local:i.Local,db:e.site.db,api:e.site.api,PassProp:i?.PassProp,ErrorBox:ht,newElement:()=>{},render:c=>{i.result=(0,Lc.jsx)(Ys.Suspense,{children:c})},params,...wr(e),...s,...r};if(typeof r=="object"){for(let[c,d]of Object.entries(r))if(typeof d=="object"&&d&&d._jsx){let y=d;l[c]=(0,Lc.jsx)(w_,{fn:y.fn,passprop:r,meta:t})}}!Pe.isEditor&&t.item.adv?.js&&Xs(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",f=jc(a,Ac)||"";new Function(...Object.keys(l),`// ${t.item.name}: ${t.item.id} ${f} - `)(...Object.values(l)),Xs(e,t,r)},v_=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),Lc={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},Ac=(e,t)=>{let n=e;for(let[r,o]of Object.entries(t))n=n.replaceAll(r,o);return n};var jg=O($()),Ag=(e,t,n,r)=>{if(t.item.component?.id){t.item.script||(t.item.script={});let i={...window.exports,db:e.site.db,api:e.site.api,...wr(e),...r,params};t.item.script.props={};let s=new Set;if(t.item.component.props)for(let[l,a]of Object.entries(t.item.component.props))try{if(a.meta?.type==="content-element"){let y={_jsx:!0,fn:m=>{let v=a.content?.id;if(v){let C=n?e.layout?.meta[v]:e.meta[v];if(!C)return null;let h=t.instances;if(!m.meta.item.originalId||!h||!h[t.item.id])return null;let g=m.meta.item.originalId;if(C.mitem&&(a.jsxCalledBy&&(!a.jsxCalledBy.includes(g)||a.jsxCalledBy.length!==2)||!a.jsxCalledBy)){let x=t.mitem?.get("component")?.get("props")?.get(l);if(x){let k=x.get("jsxCalledBy");!k||typeof k!="object"?x.set("jsxCalledBy",[t.item.id,g]):(!k.includes(g)||k.length!==2||k[0]!==t.item.id||k[1]!==g)&&x.set("jsxCalledBy",[t.item.id,g])}}return(0,jg.jsx)(It,{meta:C,passprop:m.passprop,is_layout:n})}return null}};i[l]=y,r&&(r[l]=y);continue}a.value&&Ks(e,a.value);let f=a.valueBuilt||"",u=Ac(f,Lc)||"",c=new Function(...Object.keys(i),`// [${t.item.name}] ${l}: ${t.item.id} + `)(...Object.values(l)),Js(e,t,r)},w_=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),Ac={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},jc=(e,t)=>{let n=e;for(let[r,o]of Object.entries(t))n=n.replaceAll(r,o);return n};var Mg=O($()),jg=(e,t,n,r)=>{if(t.item.component?.id){t.item.script||(t.item.script={});let i={...window.exports,db:e.site.db,api:e.site.api,...wr(e),...r,params};t.item.script.props={};let s=new Set;if(t.item.component.props)for(let[l,a]of Object.entries(t.item.component.props))try{if(a.meta?.type==="content-element"){let y={_jsx:!0,fn:m=>{let v=a.content?.id;if(v){let C=n?e.layout?.meta[v]:e.meta[v];if(!C)return null;let h=t.instances;if(!m.meta.item.originalId||!h||!h[t.item.id])return null;let g=m.meta.item.originalId;if(C.mitem&&(a.jsxCalledBy&&(!a.jsxCalledBy.includes(g)||a.jsxCalledBy.length!==2)||!a.jsxCalledBy)){let x=t.mitem?.get("component")?.get("props")?.get(l);if(x){let k=x.get("jsxCalledBy");!k||typeof k!="object"?x.set("jsxCalledBy",[t.item.id,g]):(!k.includes(g)||k.length!==2||k[0]!==t.item.id||k[1]!==g)&&x.set("jsxCalledBy",[t.item.id,g])}}return(0,Mg.jsx)(It,{meta:C,passprop:m.passprop,is_layout:n})}return null}};i[l]=y,r&&(r[l]=y);continue}a.value&&Xs(e,a.value);let f=a.valueBuilt||"",u=jc(f,Ac)||"",c=new Function(...Object.keys(i),`// [${t.item.name}] ${l}: ${t.item.id} return ${u} - `);t.item.script.props[l]={value:u};let d=c(...Object.values(i));typeof d=="function"&&(t.item.script.props[l].fn=d,d=(...y)=>t.item.script?.props?.[l].fn(...y)),i[l]=d,r&&(r[l]=d)}catch{s.add(l)}}},Xs=(e,t,n)=>{if(t.item.script?.props){let r={...n,api:e.site.api,db:e.site.db};for(let[o,i]of Object.entries(t.item.script.props))if(i.fn){let s=new Function(...Object.keys(r),`// [${t.item.name}] ${o}: ${t.item.id} + `);t.item.script.props[l]={value:u};let d=c(...Object.values(i));typeof d=="function"&&(t.item.script.props[l].fn=d,d=(...y)=>t.item.script?.props?.[l].fn(...y)),i[l]=d,r&&(r[l]=d)}catch{s.add(l)}}},Js=(e,t,n)=>{if(t.item.script?.props){let r={...n,api:e.site.api,db:e.site.db};for(let[o,i]of Object.entries(t.item.script.props))if(i.fn){let s=new Function(...Object.keys(r),`// [${t.item.name}] ${o}: ${t.item.id} return ${i.value||""} - `);i.fn=s(...Object.values(r))}}};var Fg=O($()),jc=({meta:e,passprop:t,is_layout:n})=>{let r=sn(cn,"VI"),[o,i]=(0,Mg.useState)({});e.render=()=>{i({})};let s=t;return e.item.component?.id&&(s||(s={}),Ag(r,e,n,s)),e.item.adv?.js&&(Lg(r,e,n,s),e.script)?e.script.result:(0,Fg.jsx)(Mc,{meta:e,passprop:s,is_layout:n})};var me=O($()),w_=70,Ys={enabled:!1,meta:{}},It=({meta:e,children:t,passprop:n,is_layout:r})=>{if(Ys.enabled){let o=Ys.meta;if(o[e.item.id]?o[e.item.id].last_render===Math.floor(Date.now()/1e3)?o[e.item.id].count++:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},o[e.item.id]?.count>w_)return(0,me.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,me.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,me.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",o[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,me.jsx)(ht,{meta:e,children:(0,me.jsx)(jc,{meta:e,is_layout:r,passprop:n})}):(0,me.jsx)(ht,{meta:e,children:(0,me.jsx)(Mc,{meta:e,passprop:n,is_layout:r})})},Mc=({meta:e,passprop:t,is_layout:n})=>{let r=sn(cn,"VI");if(n&&e.item.name==="children"){let i=[];for(let s of r.entry){let l=r.meta[s];if(l.item.adv?.js||l.item.component?.id)i.push((0,me.jsx)(ht,{meta:l,children:(0,me.jsx)(jc,{meta:l,is_layout:!1,passprop:t})}));else{let a=Uo(r,l,!1,t);r.visit&&r.visit(l,a),i.push((0,me.jsx)("div",{...a.props}))}}return(0,me.jsx)(me.Fragment,{children:i.map((s,l)=>(0,me.jsx)(Dg.Fragment,{children:s},l))})}let o=Uo(r,e,n,t);return r.visit&&r.visit(e,o),(0,me.jsx)("div",{...o.props})};var _r=O($()),zg=({})=>{let e=sn(cn,"VI"),t=nn({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,_r.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,_r.jsx)(No,{backdrop:!1})});let n=!!e.layout?.entry&&e.layout.entry.length>0,r=e.entry;return n&&e.layout?.entry&&(r=e.layout?.entry),(0,_r.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(o=>{let i=n?e.layout?.meta[o]:e.meta[o];return i&&Element?(0,_r.jsx)(ht,{children:(0,_r.jsx)(It,{meta:i,is_layout:n})},i.item.id):null})})};var el=O($()),Zs=window,Ug=({meta:e,entry:t,api_url:n,site_id:r,api:o,mode:i,db:s,visit:l,script:a,page_id:f,render_stat:u,on_status_changed:c,on_preload:d,layout:y})=>{let m=sn(cn,"VI");return m.mode=i,m.entry=t,m.on_preload=d,Zs.siteurl=(v,C)=>{if(v.startsWith("http://")||v.startsWith("https://"))return v;try{["prasi.avolut.com","localhost"].includes(location.hostname)?m.site.api_url&&(m.site_url||(m.site_url=new URL(m.site.api_url))):m.site_url||(C&&m.site.api_url?m.site_url=new URL(m.site.api_url):m.site_url=new URL(location.href),m.site_url.pathname="")}catch{}if(m.site_url){let h=m.site_url,p=v;return p.startsWith("/")||(p="/"+p),`${h.protocol}//${h.hostname}${p}`}return v},Zs.isMobile=i==="mobile",Zs.isDesktop=i==="desktop",Zs.preload=(v,C)=>{m.page.navs[f]||(m.page.navs[f]=new Set);let h=typeof v=="string"?[v]:v;for(let p of h)m.page.navs[f].add(p);return clearTimeout(Bo.timeout),Bo.timeout=setTimeout(()=>{m.on_preload&&m.on_preload({urls:Array.from(m.page.navs[f]),opt:{on_load:C?.on_load}})},100),""},m.layout=y,m.page.cur.id=f,m.on_status_changes=c,u==="disabled"&&(Ys.enabled=!1),m.meta!==e&&(m.meta=e),a&&(m.script.init_local_effect=a.init_local_effect),m.visit=l,m.status==="init"&&(m.site.db=s,m.site.api=o,Yy(m,{api_url:n,site_id:r})),d&&(0,tl.useEffect)(()=>{setTimeout(()=>{let v=m.page.navs[m.page.cur.id];v&&d({urls:Array.from(v),opt:{on_load(C){}}})},500)},[m.page.cur.id]),(0,el.jsx)(ht,{children:(0,el.jsx)(tl.Suspense,{children:(0,el.jsx)(zg,{})})})};var Fc=window,_={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(_.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:Fc._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:{}}},Bg=()=>{if(!_.root){let e=new URL(location.href);Fc._prasi.basepath&&(e.pathname=Fc._prasi.basepath),_.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),_.root.pathname.endsWith("/")&&(_.root.pathname=_.root.pathname.substring(0,_.root.length-1))}};var kr=async(e,t)=>{let n=_.comp,r=t||{};for(let o of e)o&&o.type!=="text"&&nl(o,r);if(n.pending.size>0)try{let o=await(await fetch(_.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...n.pending]})})).json();for(let[i,s]of Object.entries(o))n.pending.delete(i),n.list[i]=s,await Pg(`comp-${i}`,s);await kr(Object.values(o),r)}catch{}},nl=(e,t)=>{let n=_.comp;if(e.type==="item"){let r=e.component?.id;if(r&&(!n.list[r]&&!n.pending.has(r)&&n.pending.add(r),n.pending.has(r)&&(t[r]||(t[r]=[]),t[r].push(e)),t[r])){if(n.list[r]){for(let o of t[r])for(let i of Object.values(o.component?.props||{}))i.content&&nl(i.content,t);delete t[r]}else if(e.component?.props)for(let o of Object.values(e.component?.props||{}))o.content&&nl(o.content,t)}}if(e.childs)for(let r of e.childs){let o=r;o&&o.type!=="text"&&nl(o,t)}};var $g=e=>new Promise(async t=>{let n=!1,r=await Oc(`page-${e}`);r&&(t(r),n=!0);let o=await(await fetch(_.url`_prasi/page/${e}`)).json();n||t(o)}),x_=e=>new Promise(async t=>{let n={},r=[...new Set(e)],o=!0;for(let s of r){let l=await Oc(`page-${s}`);if(l)n[s]=l;else{o=!1;break}}o&&t(n);let i=await(await fetch(_.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();o||t(i)}),Vg=async e=>{let t=e.map(r=>_.route.router?.lookup(r)).filter(r=>r&&r.id);return await x_(t.map(r=>r?.id))};var Wg=O(Hg()),Gg=()=>{let e=_;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Wg.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 Er={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Kg(e={}){let t={options:e,rootNode:qg(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)Qg(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>S_(t,n(r)),insert:(r,o)=>Qg(t,n(r),o),remove:r=>__(t,n(r))}}function S_(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),o={},i=!1,s=null,l=e.rootNode,a=null;for(let f=0;f{let{item:t,item_comp:n,ids:r}=e,o=fr(n);if(l0(o,r),t.id&&(o.id=t.id),o.component){if(o.component.props&&t.component)for(let i of Object.keys(o.component.props)){let s=t.component.props[i],l=o.component.props[i];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}o.component.instances=t.component?.instances,o.component.style=t.component?.style}for(let i of Object.keys(t))delete t[i];for(let[i,s]of Object.entries(o))t[i]=s},l0=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,i0.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)l0(n,t)};var a0=e=>{for(let[t,n]of Object.entries(e.item_comp.component?.props||{})){let r=fr(n),o=e.item.component?.props;o&&o[t]&&(r.value=o[t].value,r.valueBuilt=o[t].valueBuilt,o[t].content&&(r.content=o[t].content)),r&&e.each(t,r)}};var ol=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let o of r)t.childs.push({id:o.id})}else t[n]=r;return t};var u0=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let o;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),o=n.component.instances):o=t.parent?.root_instances,o){let s=o[n.id];o[n.id]||(o[n.id]={},s=o[n.id]),s0({item:n,item_comp:r,ids:s})}let i={item:ol(n),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:o};e.on?.visit&&e.on.visit(i,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=i),a0({item:n,item_comp:r,instance:o?o[n.id]:{},each(s,l){let a=n.component?.id;l.meta?.type==="content-element"&&a&&l.content&&(l.content.name=s,Cr({...e,mode:"comp"},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:s},parent:{item:i.item,instance_id:n.id,comp:r,root_instances:o}}))}});for(let s of Object.values(n.childs))s.name.startsWith("jsx:")||Cr({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:o,comp:r}})}}};var Cr=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){u0(e,t);return}let r={item:ol(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[o,i]of Object.entries(n.childs))if(i.id){let s={item:i,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),Cr(e,s)}}};var L_=()=>new Promise(async e=>{let t=!1,n=await(await fetch(_.url`_prasi/route`)).json();t||e(n)}),c0=async()=>{let e=Kg(),t=[];try{let n=await L_();if(n&&n.site&&n.urls){n.layout&&(_.layout.id=n.layout.id,_.layout.root=n.layout.root,_.layout.meta={},_.layout.root&&(await kr(_.layout.root.childs),il(_.layout.meta,_.layout.root))),_.site=n.site,_.site.code={mode:"vsc"},await A_(),_.site.api=$s(_.site.api_url),_.site.db=Hs(_.site.api_url);let r=window;r.serverurl=_.site.api_url,r.db=_.site.db,r.api=_.site.api;for(let o of n.urls)e.insert(o.url,o),t.push(o)}}catch{}return{router:e,pages:t}},A_=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=_.site.api_url;try{new URL(r)}catch{location.hostname==="localhost"?r="http://localhost:4550":r="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let o=localStorage.getItem("api-ts-"+r);n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${o}`,document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),il=(e,t)=>{for(let n of t.childs)Cr({set_meta:!0,comps:_.comp.list,meta:e,mode:"page"},{item:n})};var Tn=window;var Lt=O($()),Uc=()=>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",d0=()=>{let e=nn({page_id:""}),[t,n]=(0,f0.useState)({}),r=()=>n({});Tn.prasiContext.render=r;let o=$u.Provider,i=Uc()&&location.pathname.startsWith("/prod");if(_.route.status!=="ready")return _.route.status==="init"&&(_.route.status="loading",c0().then(async({router:u,pages:c})=>{Gg(),_.route.status="ready",_.route.router=u,_.route.pages=c;let d=await import(`${Tn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"));if(d)for(let[y,m]of Object.entries(d))window[y]=m;r()})),(0,Lt.jsx)(No,{});let s=_.route.router;if(!s)return(0,Lt.jsx)(Gu,{children:"Failed to create Router"});let l="";if(i){let u=location.pathname.split("/");Wu(u[3])&&(l=u[3])}let a=s.lookup(_.pathname);if(l){let u=_.route.pages.find(c=>l===c.id);u&&(a=u)}if(!a)return(0,Lt.jsx)(Gu,{children:"Page Not Found"});a.id!==e.page_id&&(_.init_local_effect={}),Tn.params=a.params||{},_.page.id=a.id,_.page.url=a.url;let f=_.page.cache[a.id];if(f)_.page.root=f.root,_.page.meta=f.meta;else return $g(a.id).then(async({root:u})=>{if(a){let c={id:a.id,url:a.url,root:u,meta:{}};await kr(u.childs),il(c.meta,u),_.page.cache[c.id]=c,r()}}).catch(()=>{r()}),(0,Lt.jsx)(No,{note:"Loading page"});return(0,Lt.jsx)(o,{value:Tn.prasiContext,children:(0,Lt.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,Lt.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",_.mode==="mobile"?css` + `);i.fn=s(...Object.values(r))}}};var Dg=O($()),Mc=({meta:e,passprop:t,is_layout:n})=>{let r=sn(cn,"VI"),[o,i]=(0,Fg.useState)({});e.render=()=>{i({})};let s=t;return e.item.component?.id&&(s||(s={}),jg(r,e,n,s)),e.item.adv?.js&&(Ag(r,e,n,s),e.script)?e.script.result:(0,Dg.jsx)(Fc,{meta:e,passprop:s,is_layout:n})};var me=O($()),x_=70,Zs={enabled:!1,meta:{}},It=({meta:e,children:t,passprop:n,is_layout:r})=>{if(Zs.enabled){let o=Zs.meta;if(o[e.item.id]?o[e.item.id].last_render===Math.floor(Date.now()/1e3)?o[e.item.id].count++:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1}:o[e.item.id]={last_render:Math.floor(Date.now()/1e3),count:1},o[e.item.id]?.count>x_)return(0,me.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,me.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,me.jsxs)("p",{className:"border-b border-orange-300 px-1 pb-1 min-w-[100px]",children:["Rendered ",o[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,me.jsx)(ht,{meta:e,children:(0,me.jsx)(Mc,{meta:e,is_layout:r,passprop:n})}):(0,me.jsx)(ht,{meta:e,children:(0,me.jsx)(Fc,{meta:e,passprop:n,is_layout:r})})},Fc=({meta:e,passprop:t,is_layout:n})=>{let r=sn(cn,"VI");if(n&&e.item.name==="children"){let i=[];for(let s of r.entry){let l=r.meta[s];if(l.item.adv?.js||l.item.component?.id)i.push((0,me.jsx)(ht,{meta:l,children:(0,me.jsx)(Mc,{meta:l,is_layout:!1,passprop:t})}));else{let a=Bo(r,l,!1,t);r.visit&&r.visit(l,a),i.push((0,me.jsx)("div",{...a.props}))}}return(0,me.jsx)(me.Fragment,{children:i.map((s,l)=>(0,me.jsx)(zg.Fragment,{children:s},l))})}let o=Bo(r,e,n,t);return r.visit&&r.visit(e,o),(0,me.jsx)("div",{...o.props})};var kr=O($()),Ug=({})=>{let e=sn(cn,"VI"),t=nn({tick:Date.now()});if(e.tick=t.tick,e.status!=="ready")return(0,kr.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,kr.jsx)(Oo,{backdrop:!1})});let n=!!e.layout?.entry&&e.layout.entry.length>0,r=e.entry;return n&&e.layout?.entry&&(r=e.layout?.entry),(0,kr.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(o=>{let i=n?e.layout?.meta[o]:e.meta[o];return i&&Element?(0,kr.jsx)(ht,{children:(0,kr.jsx)(It,{meta:i,is_layout:n})},i.item.id):null})})};var tl=O($()),el=window,Bg=({meta:e,entry:t,api_url:n,site_id:r,api:o,mode:i,db:s,visit:l,script:a,page_id:f,render_stat:u,on_status_changed:c,on_preload:d,layout:y})=>{let m=sn(cn,"VI");return m.mode=i,m.entry=t,m.on_preload=d,el.siteurl=(v,C)=>{if(v.startsWith("http://")||v.startsWith("https://"))return v;try{["prasi.avolut.com","localhost"].includes(location.hostname)?m.site.api_url&&(m.site_url||(m.site_url=new URL(m.site.api_url))):m.site_url||(C&&m.site.api_url?m.site_url=new URL(m.site.api_url):m.site_url=new URL(location.href),m.site_url.pathname="")}catch{}if(m.site_url){let h=m.site_url,p=v;return p.startsWith("/")||(p="/"+p),`${h.protocol}//${h.hostname}${p}`}return v},el.isMobile=i==="mobile",el.isDesktop=i==="desktop",el.preload=(v,C)=>{m.page.navs[f]||(m.page.navs[f]=new Set);let h=typeof v=="string"?[v]:v;for(let p of h)m.page.navs[f].add(p);return clearTimeout($o.timeout),$o.timeout=setTimeout(()=>{m.on_preload&&m.on_preload({urls:Array.from(m.page.navs[f]),opt:{on_load:C?.on_load}})},100),""},m.layout=y,m.page.cur.id=f,m.on_status_changes=c,u==="disabled"&&(Zs.enabled=!1),m.meta!==e&&(m.meta=e),a&&(m.script.init_local_effect=a.init_local_effect),m.visit=l,m.status==="init"&&(m.site.db=s,m.site.api=o,Zy(m,{api_url:n,site_id:r})),d&&(0,nl.useEffect)(()=>{setTimeout(()=>{let v=m.page.navs[m.page.cur.id];v&&d({urls:Array.from(v),opt:{on_load(C){}}})},500)},[m.page.cur.id]),(0,tl.jsx)(ht,{children:(0,tl.jsx)(nl.Suspense,{children:(0,tl.jsx)(Ug,{})})})};var Dc=window,_={root:null,url(...e){let t=e.map(r=>Array.isArray(r)?r.join(""):r).join(""),n=this.root.toString();return n.endsWith("/")&&(n=n.substring(0,n.length-1)),t.startsWith("/")?n+t:n+"/"+t},get pathname(){let e=location.pathname.substring(_.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:Dc._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:{}}},$g=()=>{if(!_.root){let e=new URL(location.href);Dc._prasi.basepath&&(e.pathname=Dc._prasi.basepath),_.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),_.root.pathname.endsWith("/")&&(_.root.pathname=_.root.pathname.substring(0,_.root.length-1))}};var Er=async(e,t)=>{let n=_.comp,r=t||{};for(let o of e)o&&o.type!=="text"&&rl(o,r);if(n.pending.size>0)try{let o=await(await fetch(_.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...n.pending]})})).json();for(let[i,s]of Object.entries(o))n.pending.delete(i),n.list[i]=s,await Ng(`comp-${i}`,s);await Er(Object.values(o),r)}catch{}},rl=(e,t)=>{let n=_.comp;if(e.type==="item"){let r=e.component?.id;if(r&&(!n.list[r]&&!n.pending.has(r)&&n.pending.add(r),n.pending.has(r)&&(t[r]||(t[r]=[]),t[r].push(e)),t[r])){if(n.list[r]){for(let o of t[r])for(let i of Object.values(o.component?.props||{}))i.content&&rl(i.content,t);delete t[r]}else if(e.component?.props)for(let o of Object.values(e.component?.props||{}))o.content&&rl(o.content,t)}}if(e.childs)for(let r of e.childs){let o=r;o&&o.type!=="text"&&rl(o,t)}};var Vg=e=>new Promise(async t=>{let n=!1,r=await Tc(`page-${e}`);r&&(t(r),n=!0);let o=await(await fetch(_.url`_prasi/page/${e}`)).json();n||t(o)}),S_=e=>new Promise(async t=>{let n={},r=[...new Set(e)],o=!0;for(let s of r){let l=await Tc(`page-${s}`);if(l)n[s]=l;else{o=!1;break}}o&&t(n);let i=await(await fetch(_.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();o||t(i)}),Hg=async e=>{let t=e.map(r=>_.route.router?.lookup(r)).filter(r=>r&&r.id);return await S_(t.map(r=>r?.id))};var Gg=O(Wg()),Qg=()=>{let e=_;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Gg.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 Cr={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function qg(e={}){let t={options:e,rootNode:Xg(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)Kg(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>__(t,n(r)),insert:(r,o)=>Kg(t,n(r),o),remove:r=>k_(t,n(r))}}function __(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),o={},i=!1,s=null,l=e.rootNode,a=null;for(let f=0;f{let{item:t,item_comp:n,ids:r}=e,o=fr(n);if(a0(o,r),t.id&&(o.id=t.id),o.component){if(o.component.props&&t.component)for(let i of Object.keys(o.component.props)){let s=t.component.props[i],l=o.component.props[i];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}o.component.instances=t.component?.instances,o.component.style=t.component?.style}for(let i of Object.keys(t))delete t[i];for(let[i,s]of Object.entries(o))t[i]=s},a0=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,s0.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)a0(n,t)};var u0=e=>{for(let[t,n]of Object.entries(e.item_comp.component?.props||{})){let r=fr(n),o=e.item.component?.props;o&&o[t]&&(r.value=o[t].value,r.valueBuilt=o[t].valueBuilt,o[t].content&&(r.content=o[t].content)),r&&e.each(t,r)}};var il=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let o of r)t.childs.push({id:o.id})}else t[n]=r;return t};var c0=(e,t)=>{let{item:n}=t;if(n.type==="item"&&n.component?.id&&t.parent?.item.id){let r=e.comps[n.component.id];if(e.on?.visit_component&&e.on.visit_component(n,t.root||t.item),!r)return;if(r){let o;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),o=n.component.instances):o=t.parent?.root_instances,o){let s=o[n.id];o[n.id]||(o[n.id]={},s=o[n.id]),l0({item:n,item_comp:r,ids:s})}let i={item:il(n),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:o};e.on?.visit&&e.on.visit(i,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=i),u0({item:n,item_comp:r,instance:o?o[n.id]:{},each(s,l){let a=n.component?.id;l.meta?.type==="content-element"&&a&&l.content&&(l.content.name=s,Rr({...e,mode:"comp"},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:a,name:s},parent:{item:i.item,instance_id:n.id,comp:r,root_instances:o}}))}});for(let s of Object.values(n.childs))s.name.startsWith("jsx:")||Rr({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:o,comp:r}})}}};var Rr=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){c0(e,t);return}let r={item:il(n),parent:{id:t.parent?.item.id||"root",instance_id:t.parent?.instance_id,comp_id:t.parent?.comp?.component?.id}};if(t.jsx_prop&&(r.jsx_prop=t.jsx_prop),e.on?.visit&&e.on.visit(r,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[r.item.id]=r),n.childs){for(let[o,i]of Object.entries(n.childs))if(i.id){let s={item:i,is_root:!1,root:t.root||t.item,parent:{item:r.item,instance_id:t.parent?.instance_id,comp:t.parent?.comp,root_instances:t.parent?.root_instances}};t.jsx_prop&&(s.jsx_prop={...t.jsx_prop,is_root:!1}),Rr(e,s)}}};var A_=()=>new Promise(async e=>{let t=!1,n=await(await fetch(_.url`_prasi/route`)).json();t||e(n)}),f0=async()=>{let e=qg(),t=[];try{let n=await A_();if(n&&n.site&&n.urls){n.layout&&(_.layout.id=n.layout.id,_.layout.root=n.layout.root,_.layout.meta={},_.layout.root&&(await Er(_.layout.root.childs),sl(_.layout.meta,_.layout.root))),_.site=n.site,_.site.code={mode:"vsc"},await j_(),_.site.api=Hs(_.site.api_url),_.site.db=Gs(_.site.api_url);let r=window;r.serverurl=_.site.api_url,r.db=_.site.db,r.api=_.site.api;for(let o of n.urls)e.insert(o.url,o),t.push(o)}}catch{}return{router:e,pages:t}},j_=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=_.site.api_url;try{new URL(r)}catch{location.hostname==="localhost"?r="http://localhost:4550":r="https://prasi.avolut.com"}localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let o=localStorage.getItem("api-ts-"+r);n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${o}`,document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),sl=(e,t)=>{for(let n of t.childs)Rr({set_meta:!0,comps:_.comp.list,meta:e,mode:"page"},{item:n})};var Tn=window;var Lt=O($()),Bc=()=>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",p0=()=>{let e=nn({page_id:""}),[t,n]=(0,d0.useState)({}),r=()=>n({});Tn.prasiContext.render=r;let o=Vu.Provider,i=Bc()&&location.pathname.startsWith("/prod");if(_.route.status!=="ready")return _.route.status==="init"&&(_.route.status="loading",f0().then(async({router:u,pages:c})=>{Qg(),_.route.status="ready",_.route.router=u,_.route.pages=c;let d=await import(`${Tn._prasi.basepath}/_prasi/code/index.js`.replace("//","/"));if(d)for(let[y,m]of Object.entries(d))window[y]=m;r()})),(0,Lt.jsx)(Oo,{});let s=_.route.router;if(!s)return(0,Lt.jsx)(Qu,{children:"Failed to create Router"});let l="";if(i){let u=location.pathname.split("/");Gu(u[3])&&(l=u[3])}let a=s.lookup(_.pathname);if(l){let u=_.route.pages.find(c=>l===c.id);u&&(a=u)}if(!a)return(0,Lt.jsx)(Qu,{children:"Page Not Found"});a.id!==e.page_id&&(_.init_local_effect={}),Tn.params=a.params||{},_.page.id=a.id,_.page.url=a.url;let f=_.page.cache[a.id];if(f)_.page.root=f.root,_.page.meta=f.meta;else return Vg(a.id).then(async({root:u})=>{if(a){let c={id:a.id,url:a.url,root:u,meta:{}};await Er(u.childs),sl(c.meta,u),_.page.cache[c.id]=c,r()}}).catch(()=>{r()}),(0,Lt.jsx)(Oo,{note:"Loading page"});return(0,Lt.jsx)(o,{value:Tn.prasiContext,children:(0,Lt.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,Lt.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",_.mode==="mobile"?css` @media (min-width: 768px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; @@ -127,7 +127,7 @@ ${f} } `:"inset-0 overflow-auto",css` contain: content; - `),children:(0,Lt.jsx)(Ug,{api_url:_.site.api_url,entry:Object.values(_.page.root.childs).filter(u=>u).map(u=>u.id),meta:_.page.meta,mode:_.mode,page_id:_.page.id,site_id:_.site.id,db:_.site.db,api:_.site.api,layout:_.layout.id&&_.layout.root&&_.layout.meta?{id:_.layout.id,meta:_.layout.meta,entry:Object.values(_.layout.root.childs).filter(u=>u).map(u=>u.id)}:void 0,script:{init_local_effect:_.init_local_effect},on_preload:async({urls:u,opt:c})=>{let d=[],y={};if(_.cache.urls)for(let m of u)_.cache.urls.has(m)||(d.push(m),_.cache.urls.add(m));if(d.length>0){let m=await Vg(d);if(c?.on_load&&c.on_load(m,j_),Array.isArray(m))for(let v of m){let C={id:v.id,url:v.url,root:v.root,meta:{}};await kr(v.root.childs),il(C.meta,v.root),_.page.cache[C.id]=C}}}})})})})},j_=(e,t)=>{for(let n of e)for(let r of n.root.childs)zc(r,t)},zc=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&zc(n.content,t);for(let n of e.childs)zc(n,t)}};var m0=O($());(async()=>{Bg();let e=document.getElementById("root");if(e){let t=(0,p0.createRoot)(e);await Bh(!1),Mh(),Tn.navigateOverride=n=>(n&&n.startsWith("/")&&Uc()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.render((0,m0.jsx)(d0,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); + `),children:(0,Lt.jsx)(Bg,{api_url:_.site.api_url,entry:Object.values(_.page.root.childs).filter(u=>u).map(u=>u.id),meta:_.page.meta,mode:_.mode,page_id:_.page.id,site_id:_.site.id,db:_.site.db,api:_.site.api,layout:_.layout.id&&_.layout.root&&_.layout.meta?{id:_.layout.id,meta:_.layout.meta,entry:Object.values(_.layout.root.childs).filter(u=>u).map(u=>u.id)}:void 0,script:{init_local_effect:_.init_local_effect},on_preload:async({urls:u,opt:c})=>{let d=[],y={};if(_.cache.urls)for(let m of u)_.cache.urls.has(m)||(d.push(m),_.cache.urls.add(m));if(d.length>0){let m=await Hg(d);if(c?.on_load&&c.on_load(m,M_),Array.isArray(m))for(let v of m){let C={id:v.id,url:v.url,root:v.root,meta:{}};await Er(v.root.childs),sl(C.meta,v.root),_.page.cache[C.id]=C}}}})})})})},M_=(e,t)=>{for(let n of e)for(let r of n.root.childs)Uc(r,t)},Uc=(e,t)=>{if(t(e),e.type!=="text"){if(e.type==="item"&&e.component?.props)for(let n of Object.values(e.component.props))n.content&&Uc(n.content,t);for(let n of e.childs)Uc(n,t)}};var h0=O($());(async()=>{$g();let e=document.getElementById("root");if(e){let t=(0,m0.createRoot)(e);await $h(!1),Fh(),Tn.navigateOverride=n=>(n&&n.startsWith("/")&&Bc()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.render((0,h0.jsx)(p0,{})),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/web/src/nova/ed/panel/popup/script/monaco.tsx b/app/web/src/nova/ed/panel/popup/script/monaco.tsx index 3235d914..f9a66bcf 100644 --- a/app/web/src/nova/ed/panel/popup/script/monaco.tsx +++ b/app/web/src/nova/ed/panel/popup/script/monaco.tsx @@ -16,6 +16,7 @@ import { declareScope } from "./scope/scope"; // @ts-ignore import { FNCompDef } from "../../../../../utils/types/meta-fn"; +import { editorLocalValue } from "../../../../vi/render/script/local"; const scriptEdit = { timeout: null as any, @@ -142,7 +143,7 @@ export const EdScriptMonaco: FC<{}> = () => { case "prop-instance": { types._raw = declareScope(p, meta, monaco); - + const nmodel = monaco.editor.createModel( trim(val), "typescript", @@ -363,6 +364,8 @@ export const EdScriptMonaco: FC<{}> = () => { scope = code_result; } } else { + editorLocalValue[active.item_id] = null; + const code_result = await p.sync.code.edit({ type: "adv", mode: mode, diff --git a/app/web/src/nova/vi/render/script/local.tsx b/app/web/src/nova/vi/render/script/local.tsx index b25a9a72..3efc0a8a 100644 --- a/app/web/src/nova/vi/render/script/local.tsx +++ b/app/web/src/nova/vi/render/script/local.tsx @@ -4,6 +4,8 @@ import { updatePropScope } from "./eval-prop"; import { modifyChild } from "./passprop"; import { VG } from "../global"; +export const editorLocalValue = {} as Record; + export const createViLocal = ( vi: { layout: VG["layout"]; @@ -23,10 +25,17 @@ export const createViLocal = ( hook?: (local: T) => void; effect?: (local: T) => void | Promise; }) => { + const isEditor = + ["localhost", "prasi.avolut.com"].includes(location.hostname) && + location.pathname.startsWith("/ed/"); + let id = meta.item.id; + const { children } = arg; const init_local_effect = vi.script?.init_local_effect; const metas = is_layout ? vi.layout?.meta : vi.meta; - const ref = useRef(arg.value); + const ref = useRef( + editorLocalValue[id] ? editorLocalValue[id] : arg.value + ); const local = ref.current; local.render = meta.render; @@ -37,8 +46,6 @@ export const createViLocal = ( } useEffect(() => { - let id = meta.item.id; - if (meta.parent?.instance_id && metas) { const parent_meta = metas[meta.parent?.instance_id]; if (parent_meta && parent_meta.instances) { @@ -61,6 +68,9 @@ export const createViLocal = ( const fn = async () => { if (arg.effect) { await arg.effect(local); + if (isEditor) { + editorLocalValue[id] = local; + } } }; @@ -70,6 +80,22 @@ export const createViLocal = ( return () => {}; }, [location.pathname]); + useEffect(() => { + if (isEditor) { + if (editorLocalValue[id] === null) { + const fn = async () => { + if (arg.effect) { + await arg.effect(local); + if (isEditor) { + editorLocalValue[id] = local; + } + } + }; + fn(); + } + } + }, [editorLocalValue[id]]); + return modifyChild(children, { ...meta.script?.scope, [arg.name]: local,