diff --git a/app/srv/core/main.css b/app/srv/core/main.css new file mode 100644 index 00000000..99135f34 --- /dev/null +++ b/app/srv/core/main.css @@ -0,0 +1,2 @@ +@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-cyrillic-ext-400-normal.woff2) format("woff2"),url(./files/source-sans-3-cyrillic-ext-400-normal.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-cyrillic-400-normal.woff2) format("woff2"),url(./files/source-sans-3-cyrillic-400-normal.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-greek-ext-400-normal.woff2) format("woff2"),url(./files/source-sans-3-greek-ext-400-normal.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-greek-400-normal.woff2) format("woff2"),url(./files/source-sans-3-greek-400-normal.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-vietnamese-400-normal.woff2) format("woff2"),url(./files/source-sans-3-vietnamese-400-normal.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-latin-ext-400-normal.woff2) format("woff2"),url(./files/source-sans-3-latin-ext-400-normal.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:"Source Sans 3";font-style:normal;font-display:swap;font-weight:400;src:url(./files/source-sans-3-latin-400-normal.woff2) format("woff2"),url(./files/source-sans-3-latin-400-normal.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD} +/*# sourceMappingURL=main.css.map */ diff --git a/app/srv/core/main.js b/app/srv/core/main.js index 01c70607..c4c75b75 100644 --- a/app/srv/core/main.js +++ b/app/srv/core/main.js @@ -1,11 +1,11 @@ -var H1=Object.create;var Ba=Object.defineProperty;var V1=Object.getOwnPropertyDescriptor;var W1=Object.getOwnPropertyNames;var G1=Object.getPrototypeOf,Z1=Object.prototype.hasOwnProperty;var ie=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),K1=(e,t)=>{for(var n in t)Ba(e,n,{get:t[n],enumerable:!0})},Q1=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of W1(t))!Z1.call(e,i)&&i!==n&&Ba(e,i,{get:()=>t[i],enumerable:!(r=V1(t,i))||r.enumerable});return e};var P=(e,t,n)=>(n=e!=null?H1(G1(e)):{},Q1(t||!e||!e.__esModule?Ba(n,"default",{value:e,enumerable:!0}):n,e));var yp=ie(j=>{"use strict";var Ti=Symbol.for("react.element"),q1=Symbol.for("react.portal"),X1=Symbol.for("react.fragment"),J1=Symbol.for("react.strict_mode"),Y1=Symbol.for("react.profiler"),ew=Symbol.for("react.provider"),tw=Symbol.for("react.context"),nw=Symbol.for("react.forward_ref"),rw=Symbol.for("react.suspense"),iw=Symbol.for("react.memo"),ow=Symbol.for("react.lazy"),lp=Symbol.iterator;function sw(e){return e===null||typeof e!="object"?null:(e=lp&&e[lp]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fp=Object.assign,dp={};function xr(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||cp}xr.prototype.isReactComponent={};xr.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")};xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pp(){}pp.prototype=xr.prototype;function Ha(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||cp}var Va=Ha.prototype=new pp;Va.constructor=Ha;fp(Va,xr.prototype);Va.isPureReactComponent=!0;var ap=Array.isArray,mp=Object.prototype.hasOwnProperty,Wa={current:null},hp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)mp.call(t,r)&&!hp.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{"use strict";_p.exports=yp()});var Ip=ie(K=>{"use strict";function qa(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(0>>1;rgs(l,n))cgs(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else if(cgs(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function gs(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(vp=performance,K.unstable_now=function(){return vp.now()}):(Za=Date,wp=Za.now(),K.unstable_now=function(){return Za.now()-wp});var vp,Za,wp,bt=[],cn=[],fw=1,tt=null,be=3,vs=!1,Vn=!1,Ni=!1,Sp=typeof setTimeout=="function"?setTimeout:null,Ep=typeof clearTimeout=="function"?clearTimeout:null,xp=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Xa(e){for(var t=pt(cn);t!==null;){if(t.callback===null)_s(cn);else if(t.startTime<=e)_s(cn),t.sortIndex=t.expirationTime,qa(bt,t);else break;t=pt(cn)}}function Ja(e){if(Ni=!1,Xa(e),!Vn)if(pt(bt)!==null)Vn=!0,eu(Ya);else{var t=pt(cn);t!==null&&tu(Ja,t.startTime-e)}}function Ya(e,t){Vn=!1,Ni&&(Ni=!1,Ep(Pi),Pi=-1),vs=!0;var n=be;try{for(Xa(t),tt=pt(bt);tt!==null&&(!(tt.expirationTime>t)||e&&!Cp());){var r=tt.callback;if(typeof r=="function"){tt.callback=null,be=tt.priorityLevel;var i=r(tt.expirationTime<=t);t=K.unstable_now(),typeof i=="function"?tt.callback=i:tt===pt(bt)&&_s(bt),Xa(t)}else _s(bt);tt=pt(bt)}if(tt!==null)var o=!0;else{var s=pt(cn);s!==null&&tu(Ja,s.startTime-t),o=!1}return o}finally{tt=null,be=n,vs=!1}}var ws=!1,ys=null,Pi=-1,bp=5,Rp=-1;function Cp(){return!(K.unstable_now()-Rpe||125r?(e.sortIndex=n,qa(cn,e),pt(bt)===null&&e===pt(cn)&&(Ni?(Ep(Pi),Pi=-1):Ni=!0,tu(Ja,n-r))):(e.sortIndex=i,qa(bt,e),Vn||vs||(Vn=!0,eu(Ya))),e};K.unstable_shouldYield=Cp;K.unstable_wrapCallback=function(e){var t=be;return function(){var n=be;be=t;try{return e.apply(this,arguments)}finally{be=n}}}});var Op=ie((p3,Tp)=>{"use strict";Tp.exports=Ip()});var M0=ie(Xe=>{"use strict";var zm=_e(),Qe=Op();function E(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"),Eu=Object.prototype.hasOwnProperty,dw=/^[: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]*$/,Np={},Pp={};function pw(e){return Eu.call(Pp,e)?!0:Eu.call(Np,e)?!1:dw.test(e)?Pp[e]=!0:(Np[e]=!0,!1)}function mw(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 hw(e,t,n,r){if(t===null||typeof t>"u"||mw(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 De(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var gc=/[\-:]([a-z])/g;function yc(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(gc,yc);xe[t]=new De(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(gc,yc);xe[t]=new De(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(gc,yc);xe[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2()=>(t||e((t={exports:{}}).exports,t),t.exports),Kv=(e,t)=>{for(var n in t)Ba(e,n,{get:t[n],enumerable:!0})},Qv=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Wv(t))!Zv.call(e,i)&&i!==n&&Ba(e,i,{get:()=>t[i],enumerable:!(r=Vv(t,i))||r.enumerable});return e};var P=(e,t,n)=>(n=e!=null?Hv(Gv(e)):{},Qv(t||!e||!e.__esModule?Ba(n,"default",{value:e,enumerable:!0}):n,e));var yp=ie(F=>{"use strict";var Ti=Symbol.for("react.element"),qv=Symbol.for("react.portal"),Xv=Symbol.for("react.fragment"),Jv=Symbol.for("react.strict_mode"),Yv=Symbol.for("react.profiler"),ew=Symbol.for("react.provider"),tw=Symbol.for("react.context"),nw=Symbol.for("react.forward_ref"),rw=Symbol.for("react.suspense"),iw=Symbol.for("react.memo"),ow=Symbol.for("react.lazy"),lp=Symbol.iterator;function sw(e){return e===null||typeof e!="object"?null:(e=lp&&e[lp]||e["@@iterator"],typeof e=="function"?e:null)}var cp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},fp=Object.assign,dp={};function xr(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||cp}xr.prototype.isReactComponent={};xr.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")};xr.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function pp(){}pp.prototype=xr.prototype;function Ha(e,t,n){this.props=e,this.context=t,this.refs=dp,this.updater=n||cp}var Va=Ha.prototype=new pp;Va.constructor=Ha;fp(Va,xr.prototype);Va.isPureReactComponent=!0;var ap=Array.isArray,mp=Object.prototype.hasOwnProperty,Wa={current:null},hp={key:!0,ref:!0,__self:!0,__source:!0};function gp(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)mp.call(t,r)&&!hp.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{"use strict";_p.exports=yp()});var Ip=ie(K=>{"use strict";function qa(e,t){var n=e.length;e.push(t);e:for(;0>>1,i=e[r];if(0>>1;rgs(l,n))cgs(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else if(cgs(u,n))e[r]=u,e[c]=n,r=c;else break e}}return t}function gs(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(vp=performance,K.unstable_now=function(){return vp.now()}):(Za=Date,wp=Za.now(),K.unstable_now=function(){return Za.now()-wp});var vp,Za,wp,bt=[],cn=[],fw=1,tt=null,be=3,vs=!1,Vn=!1,Ni=!1,kp=typeof setTimeout=="function"?setTimeout:null,Ep=typeof clearTimeout=="function"?clearTimeout:null,xp=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Xa(e){for(var t=pt(cn);t!==null;){if(t.callback===null)_s(cn);else if(t.startTime<=e)_s(cn),t.sortIndex=t.expirationTime,qa(bt,t);else break;t=pt(cn)}}function Ja(e){if(Ni=!1,Xa(e),!Vn)if(pt(bt)!==null)Vn=!0,eu(Ya);else{var t=pt(cn);t!==null&&tu(Ja,t.startTime-e)}}function Ya(e,t){Vn=!1,Ni&&(Ni=!1,Ep(Pi),Pi=-1),vs=!0;var n=be;try{for(Xa(t),tt=pt(bt);tt!==null&&(!(tt.expirationTime>t)||e&&!Cp());){var r=tt.callback;if(typeof r=="function"){tt.callback=null,be=tt.priorityLevel;var i=r(tt.expirationTime<=t);t=K.unstable_now(),typeof i=="function"?tt.callback=i:tt===pt(bt)&&_s(bt),Xa(t)}else _s(bt);tt=pt(bt)}if(tt!==null)var o=!0;else{var s=pt(cn);s!==null&&tu(Ja,s.startTime-t),o=!1}return o}finally{tt=null,be=n,vs=!1}}var ws=!1,ys=null,Pi=-1,bp=5,Rp=-1;function Cp(){return!(K.unstable_now()-Rpe||125r?(e.sortIndex=n,qa(cn,e),pt(bt)===null&&e===pt(cn)&&(Ni?(Ep(Pi),Pi=-1):Ni=!0,tu(Ja,n-r))):(e.sortIndex=i,qa(bt,e),Vn||vs||(Vn=!0,eu(Ya))),e};K.unstable_shouldYield=Cp;K.unstable_wrapCallback=function(e){var t=be;return function(){var n=be;be=t;try{return e.apply(this,arguments)}finally{be=n}}}});var Op=ie((p3,Tp)=>{"use strict";Tp.exports=Ip()});var M0=ie(Xe=>{"use strict";var zm=_e(),Qe=Op();function E(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"),Eu=Object.prototype.hasOwnProperty,dw=/^[: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]*$/,Np={},Pp={};function pw(e){return Eu.call(Pp,e)?!0:Eu.call(Np,e)?!1:dw.test(e)?Pp[e]=!0:(Np[e]=!0,!1)}function mw(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 hw(e,t,n,r){if(t===null||typeof t>"u"||mw(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 De(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var xe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){xe[e]=new De(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];xe[t]=new De(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){xe[e]=new De(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){xe[e]=new De(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){xe[e]=new De(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){xe[e]=new De(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){xe[e]=new De(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){xe[e]=new De(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){xe[e]=new De(e,5,!1,e.toLowerCase(),null,!1,!1)});var gc=/[\-:]([a-z])/g;function yc(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(gc,yc);xe[t]=new De(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(gc,yc);xe[t]=new De(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(gc,yc);xe[t]=new De(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!1,!1)});xe.xlinkHref=new De("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){xe[e]=new De(e,1,!1,e.toLowerCase(),null,!0,!0)});function _c(e,t,n,r){var i=xe.hasOwnProperty(t)?xe[t]:null;(i!==null?i.type!==0:r||!(2l||i[s]!==o[l]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function gw(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=iu(e.type,!1),e;case 11:return e=iu(e.type.render,!1),e;case 1:return e=iu(e.type,!0),e;default:return""}}function Iu(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 br:return"Fragment";case Er:return"Portal";case bu:return"Profiler";case vc:return"StrictMode";case Ru:return"Suspense";case Cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Um:return(e.displayName||"Context")+".Consumer";case Fm:return(e._context.displayName||"Context")+".Provider";case wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xc:return t=e.displayName||null,t!==null?t:Iu(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return Iu(e(t))}catch{}}return null}function yw(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 Iu(t);case 8:return t===vc?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $m(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _w(e){var t=$m(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 ks(e){e._valueTracker||(e._valueTracker=_w(e))}function Hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$m(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qs(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 Tu(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 Vm(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function Ou(e,t){Vm(e,t);var n=Rn(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")?Nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nu(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dp(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 Nu(e,t,n){(t!=="number"||qs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $i=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=Ss.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 Wi={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},vw=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){vw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function Qm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ww=re({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 Lu(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Du(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 Mu=null;function kc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zu=null,zr=null,jr=null;function jp(e){if(e=wo(e)){if(typeof zu!="function")throw Error(E(280));var t=e.stateNode;t&&(t=El(t),zu(e.stateNode,e.type,t))}}function qm(e){zr?jr?jr.push(e):jr=[e]:zr=e}function Xm(){if(zr){var e=zr,t=jr;if(jr=zr=null,jp(e),t)for(e=0;e>>=0,e===0?32:31-(Nw(e)/Pw|0)|0}var Es=64,bs=4194304;function Hi(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 el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Hi(l):(o&=s,o!==0&&(r=Hi(o)))}else s=n&~i,s!==0?r=Hi(s):o!==0&&(r=Hi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 _o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Mw(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=Zi),Zp=" ",Kp=!1;function yh(e,t){switch(e){case"keyup":return fx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function px(e,t){switch(e){case"compositionend":return _h(t);case"keypress":return t.which!==32?null:(Kp=!0,Zp);case"textInput":return e=t.data,e===Zp&&Kp?null:e;default:return null}}function mx(e,t){if(Rr)return e==="compositionend"||!Oc&&yh(e,t)?(e=hh(),Bs=Cc=gn=null,Rr=!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=Xp(n)}}function kh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?kh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Sh(){for(var e=window,t=qs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qs(e.document)}return t}function Nc(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 Sx(e){var t=Sh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&kh(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Jp(n,o);var s=Jp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Cr=null,Hu=null,Qi=null,Vu=!1;function Yp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vu||Cr==null||Cr!==qs(r)||(r=Cr,"selectionStart"in r&&Nc(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}),Qi&&lo(Qi,r)||(Qi=r,r=rl(Hu,"onSelect"),0Or||(e.current=qu[Or],qu[Or]=null,Or--)}function Q(e,t){Or++,qu[Or]=e.current,e.current=t}var Cn={},Te=Tn(Cn),Ue=Tn(!1),Jn=Cn;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Be(e){return e=e.childContextTypes,e!=null}function ol(){J(Ue),J(Te)}function am(e,t,n){if(Te.current!==Cn)throw Error(E(168));Q(Te,t),Q(Ue,n)}function Ph(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,yw(e)||"Unknown",i));return re({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Jn=Te.current,Q(Te,e),Q(Ue,Ue.current),!0}function um(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ph(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,J(Ue),J(Te),Q(Te,e)):J(Ue),Q(Ue,n)}var Ht=null,bl=!1,hu=!1;function Ah(e){Ht===null?Ht=[e]:Ht.push(e)}function Ax(e){bl=!0,Ah(e)}function On(){if(!hu&&Ht!==null){hu=!0;var e=0,t=W;try{var n=Ht;for(W=1;e>=s,i-=s,Vt=1<<32-_t(t)+i|n<R?(O=k,k=null):O=k.sibling;var I=f(m,k,y[R],v);if(I===null){k===null&&(k=O);break}e&&k&&I.alternate===null&&t(m,k),h=o(I,h,R),b===null?S=I:b.sibling=I,b=I,k=O}if(R===y.length)return n(m,k),Y&&Wn(m,R),S;if(k===null){for(;RR?(O=k,k=null):O=k.sibling;var N=f(m,k,I.value,v);if(N===null){k===null&&(k=O);break}e&&k&&N.alternate===null&&t(m,k),h=o(N,h,R),b===null?S=N:b.sibling=N,b=N,k=O}if(I.done)return n(m,k),Y&&Wn(m,R),S;if(k===null){for(;!I.done;R++,I=y.next())I=p(m,I.value,v),I!==null&&(h=o(I,h,R),b===null?S=I:b.sibling=I,b=I);return Y&&Wn(m,R),S}for(k=r(m,k);!I.done;R++,I=y.next())I=d(k,m,R,I.value,v),I!==null&&(e&&I.alternate!==null&&k.delete(I.key===null?R:I.key),h=o(I,h,R),b===null?S=I:b.sibling=I,b=I);return e&&k.forEach(function(ze){return t(m,ze)}),Y&&Wn(m,R),S}function _(m,h,y,v){if(typeof y=="object"&&y!==null&&y.type===br&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xs:e:{for(var S=y.key,b=h;b!==null;){if(b.key===S){if(S=y.type,S===br){if(b.tag===7){n(m,b.sibling),h=i(b,y.props.children),h.return=m,m=h;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===dn&&gm(S)===b.type){n(m,b.sibling),h=i(b,y.props),h.ref=zi(m,b,y),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}y.type===br?(h=Xn(y.props.children,m.mode,v,y.key),h.return=m,m=h):(v=Qs(y.type,y.key,y.props,null,m.mode,v),v.ref=zi(m,h,y),v.return=m,m=v)}return s(m);case Er:e:{for(b=y.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=i(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=Su(y,m.mode,v),h.return=m,m=h}return s(m);case dn:return b=y._init,_(m,h,b(y._payload),v)}if($i(y))return g(m,h,y,v);if(Ai(y))return w(m,h,y,v);Ms(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,y),h.return=m,m=h):(n(m,h),h=ku(y,m.mode,v),h.return=m,m=h),s(m)):n(m,h)}return _}var Wr=Bh(!0),$h=Bh(!1),xo={},Ot=Tn(xo),fo=Tn(xo),po=Tn(xo);function Qn(e){if(e===xo)throw Error(E(174));return e}function Uc(e,t){switch(Q(po,t),Q(fo,e),Q(Ot,xo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Au(t,e)}J(Ot),Q(Ot,t)}function Gr(){J(Ot),J(fo),J(po)}function Hh(e){Qn(po.current);var t=Qn(Ot.current),n=Au(t,e.type);t!==n&&(Q(fo,e),Q(Ot,n))}function Bc(e){fo.current===e&&(J(Ot),J(fo))}var te=Tn(0);function dl(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 gu=[];function $c(){for(var e=0;en?n:4,e(!0);var r=yu.transition;yu.transition={};try{e(!1),t()}finally{W=n,yu.transition=r}}function o0(){return lt().memoizedState}function zx(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s0(e))l0(t,n);else if(n=zh(e,t,n,r),n!==null){var i=Le();vt(n,e,r,i),a0(n,t,r)}}function jx(e,t,n){var r=En(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s0(e))l0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,wt(l,s)){var c=t.interleaved;c===null?(i.next=i,jc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=zh(e,t,i,r),n!==null&&(i=Le(),vt(n,e,r,i),a0(n,t,r))}}function s0(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function l0(e,t){qi=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ec(e,n)}}var ml={readContext:st,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},Fx={readContext:st,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:_m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ws(4194308,4,e0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ws(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=zx.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:ym,useDebugValue:Zc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=ym(!1),t=e[0];return e=Mx.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,i=Ct();if(Y){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),he===null)throw Error(E(349));er&30||Gh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_m(Kh.bind(null,r,o,e),[e]),r.flags|=2048,go(9,Zh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ct(),t=he.identifierPrefix;if(Y){var n=Wt,r=Vt;n=(r&~(1<<32-_t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mo++,0")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=l);break}}}finally{ru=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Bi(e):""}function gw(e){switch(e.tag){case 5:return Bi(e.type);case 16:return Bi("Lazy");case 13:return Bi("Suspense");case 19:return Bi("SuspenseList");case 0:case 2:case 15:return e=iu(e.type,!1),e;case 11:return e=iu(e.type.render,!1),e;case 1:return e=iu(e.type,!0),e;default:return""}}function Iu(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 br:return"Fragment";case Er:return"Portal";case bu:return"Profiler";case vc:return"StrictMode";case Ru:return"Suspense";case Cu:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Um:return(e.displayName||"Context")+".Consumer";case jm:return(e._context.displayName||"Context")+".Provider";case wc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xc:return t=e.displayName||null,t!==null?t:Iu(e.type)||"Memo";case dn:t=e._payload,e=e._init;try{return Iu(e(t))}catch{}}return null}function yw(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 Iu(t);case 8:return t===vc?"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 Rn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $m(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _w(e){var t=$m(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 i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.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 Ss(e){e._valueTracker||(e._valueTracker=_w(e))}function Hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$m(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function qs(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 Tu(e,t){var n=t.checked;return re({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lp(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Rn(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 Vm(e,t){t=t.checked,t!=null&&_c(e,"checked",t,!1)}function Ou(e,t){Vm(e,t);var n=Rn(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")?Nu(e,t.type,n):t.hasOwnProperty("defaultValue")&&Nu(e,t.type,Rn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Dp(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 Nu(e,t,n){(t!=="number"||qs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var $i=Array.isArray;function Mr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=ks.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 Wi={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},vw=["Webkit","ms","Moz","O"];Object.keys(Wi).forEach(function(e){vw.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Wi[t]=Wi[e]})});function Km(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Wi.hasOwnProperty(e)&&Wi[e]?(""+t).trim():t+"px"}function Qm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Km(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ww=re({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 Lu(e,t){if(t){if(ww[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(E(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(E(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(E(61))}if(t.style!=null&&typeof t.style!="object")throw Error(E(62))}}function Du(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 Mu=null;function Sc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zu=null,zr=null,Fr=null;function Fp(e){if(e=wo(e)){if(typeof zu!="function")throw Error(E(280));var t=e.stateNode;t&&(t=El(t),zu(e.stateNode,e.type,t))}}function qm(e){zr?Fr?Fr.push(e):Fr=[e]:zr=e}function Xm(){if(zr){var e=zr,t=Fr;if(Fr=zr=null,Fp(e),t)for(e=0;e>>=0,e===0?32:31-(Nw(e)/Pw|0)|0}var Es=64,bs=4194304;function Hi(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 el(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~i;l!==0?r=Hi(l):(o&=s,o!==0&&(r=Hi(o)))}else s=n&~i,s!==0?r=Hi(s):o!==0&&(r=Hi(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&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 _o(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_t(t),e[t]=n}function Mw(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=Zi),Zp=" ",Kp=!1;function yh(e,t){switch(e){case"keyup":return fx.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _h(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rr=!1;function px(e,t){switch(e){case"compositionend":return _h(t);case"keypress":return t.which!==32?null:(Kp=!0,Zp);case"textInput":return e=t.data,e===Zp&&Kp?null:e;default:return null}}function mx(e,t){if(Rr)return e==="compositionend"||!Oc&&yh(e,t)?(e=hh(),Bs=Cc=gn=null,Rr=!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=Xp(n)}}function Sh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function kh(){for(var e=window,t=qs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=qs(e.document)}return t}function Nc(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 kx(e){var t=kh(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sh(n.ownerDocument.documentElement,n)){if(r!==null&&Nc(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 i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Jp(n,o);var s=Jp(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>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,Cr=null,Hu=null,Qi=null,Vu=!1;function Yp(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Vu||Cr==null||Cr!==qs(r)||(r=Cr,"selectionStart"in r&&Nc(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}),Qi&&lo(Qi,r)||(Qi=r,r=rl(Hu,"onSelect"),0Or||(e.current=qu[Or],qu[Or]=null,Or--)}function Q(e,t){Or++,qu[Or]=e.current,e.current=t}var Cn={},Te=Tn(Cn),Ue=Tn(!1),Jn=Cn;function Hr(e,t){var n=e.type.contextTypes;if(!n)return Cn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Be(e){return e=e.childContextTypes,e!=null}function ol(){J(Ue),J(Te)}function am(e,t,n){if(Te.current!==Cn)throw Error(E(168));Q(Te,t),Q(Ue,n)}function Ph(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(E(108,yw(e)||"Unknown",i));return re({},n,r)}function sl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Cn,Jn=Te.current,Q(Te,e),Q(Ue,Ue.current),!0}function um(e,t,n){var r=e.stateNode;if(!r)throw Error(E(169));n?(e=Ph(e,t,Jn),r.__reactInternalMemoizedMergedChildContext=e,J(Ue),J(Te),Q(Te,e)):J(Ue),Q(Ue,n)}var Ht=null,bl=!1,hu=!1;function Ah(e){Ht===null?Ht=[e]:Ht.push(e)}function Ax(e){bl=!0,Ah(e)}function On(){if(!hu&&Ht!==null){hu=!0;var e=0,t=W;try{var n=Ht;for(W=1;e>=s,i-=s,Vt=1<<32-_t(t)+i|n<R?(O=S,S=null):O=S.sibling;var I=f(m,S,y[R],v);if(I===null){S===null&&(S=O);break}e&&S&&I.alternate===null&&t(m,S),h=o(I,h,R),b===null?k=I:b.sibling=I,b=I,S=O}if(R===y.length)return n(m,S),Y&&Wn(m,R),k;if(S===null){for(;RR?(O=S,S=null):O=S.sibling;var N=f(m,S,I.value,v);if(N===null){S===null&&(S=O);break}e&&S&&N.alternate===null&&t(m,S),h=o(N,h,R),b===null?k=N:b.sibling=N,b=N,S=O}if(I.done)return n(m,S),Y&&Wn(m,R),k;if(S===null){for(;!I.done;R++,I=y.next())I=p(m,I.value,v),I!==null&&(h=o(I,h,R),b===null?k=I:b.sibling=I,b=I);return Y&&Wn(m,R),k}for(S=r(m,S);!I.done;R++,I=y.next())I=d(S,m,R,I.value,v),I!==null&&(e&&I.alternate!==null&&S.delete(I.key===null?R:I.key),h=o(I,h,R),b===null?k=I:b.sibling=I,b=I);return e&&S.forEach(function(ze){return t(m,ze)}),Y&&Wn(m,R),k}function _(m,h,y,v){if(typeof y=="object"&&y!==null&&y.type===br&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case xs:e:{for(var k=y.key,b=h;b!==null;){if(b.key===k){if(k=y.type,k===br){if(b.tag===7){n(m,b.sibling),h=i(b,y.props.children),h.return=m,m=h;break e}}else if(b.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===dn&&gm(k)===b.type){n(m,b.sibling),h=i(b,y.props),h.ref=zi(m,b,y),h.return=m,m=h;break e}n(m,b);break}else t(m,b);b=b.sibling}y.type===br?(h=Xn(y.props.children,m.mode,v,y.key),h.return=m,m=h):(v=Qs(y.type,y.key,y.props,null,m.mode,v),v.ref=zi(m,h,y),v.return=m,m=v)}return s(m);case Er:e:{for(b=y.key;h!==null;){if(h.key===b)if(h.tag===4&&h.stateNode.containerInfo===y.containerInfo&&h.stateNode.implementation===y.implementation){n(m,h.sibling),h=i(h,y.children||[]),h.return=m,m=h;break e}else{n(m,h);break}else t(m,h);h=h.sibling}h=ku(y,m.mode,v),h.return=m,m=h}return s(m);case dn:return b=y._init,_(m,h,b(y._payload),v)}if($i(y))return g(m,h,y,v);if(Ai(y))return w(m,h,y,v);Ms(m,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,h!==null&&h.tag===6?(n(m,h.sibling),h=i(h,y),h.return=m,m=h):(n(m,h),h=Su(y,m.mode,v),h.return=m,m=h),s(m)):n(m,h)}return _}var Wr=Bh(!0),$h=Bh(!1),xo={},Ot=Tn(xo),fo=Tn(xo),po=Tn(xo);function Qn(e){if(e===xo)throw Error(E(174));return e}function Uc(e,t){switch(Q(po,t),Q(fo,e),Q(Ot,xo),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Au(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Au(t,e)}J(Ot),Q(Ot,t)}function Gr(){J(Ot),J(fo),J(po)}function Hh(e){Qn(po.current);var t=Qn(Ot.current),n=Au(t,e.type);t!==n&&(Q(fo,e),Q(Ot,n))}function Bc(e){fo.current===e&&(J(Ot),J(fo))}var te=Tn(0);function dl(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 gu=[];function $c(){for(var e=0;en?n:4,e(!0);var r=yu.transition;yu.transition={};try{e(!1),t()}finally{W=n,yu.transition=r}}function o0(){return lt().memoizedState}function zx(e,t,n){var r=En(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},s0(e))l0(t,n);else if(n=zh(e,t,n,r),n!==null){var i=Le();vt(n,e,r,i),a0(n,t,r)}}function Fx(e,t,n){var r=En(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(s0(e))l0(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,l=o(s,n);if(i.hasEagerState=!0,i.eagerState=l,wt(l,s)){var c=t.interleaved;c===null?(i.next=i,Fc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=zh(e,t,i,r),n!==null&&(i=Le(),vt(n,e,r,i),a0(n,t,r))}}function s0(e){var t=e.alternate;return e===ne||t!==null&&t===ne}function l0(e,t){qi=pl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function a0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ec(e,n)}}var ml={readContext:st,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},jx={readContext:st,useCallback:function(e,t){return Ct().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:_m,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Ws(4194308,4,e0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ws(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ws(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=zx.bind(null,ne,e),[r.memoizedState,e]},useRef:function(e){var t=Ct();return e={current:e},t.memoizedState=e},useState:ym,useDebugValue:Zc,useDeferredValue:function(e){return Ct().memoizedState=e},useTransition:function(){var e=ym(!1),t=e[0];return e=Mx.bind(null,e[1]),Ct().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ne,i=Ct();if(Y){if(n===void 0)throw Error(E(407));n=n()}else{if(n=t(),he===null)throw Error(E(349));er&30||Gh(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_m(Kh.bind(null,r,o,e),[e]),r.flags|=2048,go(9,Zh.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Ct(),t=he.identifierPrefix;if(Y){var n=Wt,r=Vt;n=(r&~(1<<32-_t(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[It]=t,e[co]=r,y0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Du(n,r),n){case"dialog":X("cancel",e),X("close",e),i=r;break;case"iframe":case"object":case"embed":X("load",e),i=r;break;case"video":case"audio":for(i=0;iKr&&(t.flags|=128,r=!0,ji(o,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ji(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Y)return Ce(t),null}else 2*se()-o.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,ji(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=se(),t.sibling=null,n=te.current,Q(te,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Zx(e,t){switch(Ac(t),t.tag){case 1:return Be(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),J(Ue),J(Te),$c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bc(t),null;case 13:if(J(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(te),null;case 4:return Gr(),null;case 10:return zc(t.type._context),null;case 22:case 23:return Yc(),null;case 24:return null;default:return null}}var js=!1,Ie=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,T=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ac(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Cm=!1;function Qx(e,t){if(Wu=tl,e=Sh(),Nc(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,u=0,a=0,p=e,f=null;t:for(;;){for(var d;p!==n||i!==0&&p.nodeType!==3||(l=s+i),p!==o||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)f=p,p=d;for(;;){if(p===e)break t;if(f===n&&++u===i&&(l=s),f===o&&++a===r&&(c=s),(d=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=d}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gu={focusedElem:e,selectionRange:n},tl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,_=g.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:ht(t.type,w),_);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(v){oe(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Cm,Cm=!1,g}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ac(t,n,o)}i=i.next}while(i!==r)}}function Il(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 uc(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 w0(e){var t=e.alternate;t!==null&&(e.alternate=null,w0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[co],delete t[Qu],delete t[Nx],delete t[Px])),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 x0(e){return e.tag===5||e.tag===3||e.tag===4}function Im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x0(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 cc(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=il));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function fc(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(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}var ve=null,gt=!1;function fn(e,t,n){for(n=n.child;n!==null;)k0(e,t,n),n=n.sibling}function k0(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:Ie||Lr(n,t);case 6:var r=ve,i=gt;ve=null,fn(e,t,n),ve=r,gt=i,ve!==null&&(gt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(gt?(e=ve,n=n.stateNode,e.nodeType===8?mu(e.parentNode,n):e.nodeType===1&&mu(e,n),oo(e)):mu(ve,n.stateNode));break;case 4:r=ve,i=gt,ve=n.stateNode.containerInfo,gt=!0,fn(e,t,n),ve=r,gt=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ac(n,t,s),i=i.next}while(i!==r)}fn(e,t,n);break;case 1:if(!Ie&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){oe(n,t,l)}fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,fn(e,t,n),Ie=r):fn(e,t,n);break;default:fn(e,t,n)}}function Tm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kx),t.forEach(function(r){var i=ik.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xx(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,yl=0,B&6)throw Error(E(331));var i=B;for(B|=4,T=e.current;T!==null;){var o=T,s=o.child;if(T.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cse()-Xc?qn(e,0):qc|=n),$e(e,t)}function O0(e,t){t===0&&(e.mode&1?(t=bs,bs<<=1,!(bs&130023424)&&(bs=4194304)):t=1);var n=Le();e=Qt(e,t),e!==null&&(_o(e,t,n),$e(e,n))}function rk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),O0(e,n)}function ik(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),O0(e,n)}var N0;N0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)Fe=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Fe=!1,Wx(e,t,n);Fe=!!(e.flags&131072)}else Fe=!1,Y&&t.flags&1048576&&Lh(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var i=Hr(t,Te.current);Ur(t,n),i=Vc(null,t,r,e,i,n);var o=Wc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(o=!0,sl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Fc(t),i.updater=Rl,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Pc(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=sk(r),e=ht(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=Em(null,t,r,e,n);break e;case 11:t=km(null,t,r,e,n);break e;case 14:t=Sm(null,t,r,ht(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Em(e,t,r,i,n);case 3:e:{if(m0(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,jh(e,t),fl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Zr(Error(E(423)),t),t=bm(e,t,r,n,i);break e}else if(r!==i){i=Zr(Error(E(424)),t),t=bm(e,t,r,n,i);break e}else for(Ze=xn(t.stateNode.containerInfo.firstChild),Ke=t,Y=!0,yt=null,n=$h(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vr(),r===i){t=qt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Hh(t),e===null&&Ju(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Zu(r,i)?s=null:o!==null&&Zu(r,o)&&(t.flags|=32),p0(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&Ju(t),null;case 13:return h0(e,t,n);case 4:return Uc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),km(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Q(ul,r._currentValue),r._currentValue=s,o!==null)if(wt(o.value,s)){if(o.children===i.children&&!Ue.current){t=qt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Gt(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var a=u.pending;a===null?c.next=c:(c.next=a.next,a.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Yu(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(E(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Yu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ur(t,n),i=st(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),Sm(e,t,r,i,n);case 15:return f0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Gs(e,t),t.tag=1,Be(r)?(e=!0,sl(t)):e=!1,Ur(t,n),Uh(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return g0(e,t,n);case 22:return d0(e,t,n)}throw Error(E(156,t.tag))};function P0(e,t){return ih(e,t)}function ok(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 it(e,t,n,r){return new ok(e,t,n,r)}function tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sk(e){if(typeof e=="function")return tf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wc)return 11;if(e===xc)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=it(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 Qs(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")tf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return Xn(n.children,i,o,t);case vc:s=8,i|=8;break;case bu:return e=it(12,n,t,i|2),e.elementType=bu,e.lanes=o,e;case Ru:return e=it(13,n,t,i),e.elementType=Ru,e.lanes=o,e;case Cu:return e=it(19,n,t,i),e.elementType=Cu,e.lanes=o,e;case Bm:return Ol(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Fm:s=10;break e;case Um:s=9;break e;case wc:s=11;break e;case xc:s=14;break e;case dn:s=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=it(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=it(22,e,r,t),e.elementType=Bm,e.lanes=n,e.stateNode={isHidden:!1},e}function ku(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function Su(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lk(e,t,n,r,i){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=su(0),this.expirationTimes=su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nf(e,t,n,r,i,o,s,l,c){return e=new lk(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Fc(o),e}function ak(e,t,n){var r=3{"use strict";function z0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z0)}catch(e){console.error(e)}}z0(),j0.exports=M0()});var U0=ie(af=>{"use strict";var F0=lf();af.createRoot=F0.createRoot,af.hydrateRoot=F0.hydrateRoot;var g3});var $0=ie(ff=>{"use strict";var mk=Symbol.for("react.fragment");ff.Fragment=mk;ff.jsxDEV=void 0});var V0=ie((C3,H0)=>{"use strict";H0.exports=$0()});var G0=ie(Dl=>{"use strict";var hk=_e(),gk=Symbol.for("react.element"),yk=Symbol.for("react.fragment"),_k=Object.prototype.hasOwnProperty,vk=hk.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wk={key:!0,ref:!0,__self:!0,__source:!0};function W0(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)_k.call(t,r)&&!wk.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:gk,type:e,key:o,ref:s,props:i,_owner:vk.current}}Dl.Fragment=yk;Dl.jsx=W0;Dl.jsxs=W0});var G=ie((T3,Z0)=>{"use strict";Z0.exports=G0()});var Rf=ie((yI,Cg)=>{var Ik="Expected a function",vg="__lodash_hash_undefined__",wg=1/0,Tk="[object Function]",Ok="[object GeneratorFunction]",Nk="[object Symbol]",Pk=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ak=/^\w*$/,Lk=/^\./,Dk=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mk=/[\\^$.*+?()[\]{}|]/g,zk=/\\(\\)?/g,jk=/^\[object .+?Constructor\]$/,Fk=typeof global=="object"&&global&&global.Object===Object&&global,Uk=typeof self=="object"&&self&&self.Object===Object&&self,kf=Fk||Uk||Function("return this")();function Bk(e,t){return e?.[t]}function $k(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var Hk=Array.prototype,Vk=Function.prototype,xg=Object.prototype,xf=kf["__core-js_shared__"],hg=function(){var e=/[^.]+$/.exec(xf&&xf.keys&&xf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),kg=Vk.toString,Sf=xg.hasOwnProperty,Sg=xg.toString,Wk=RegExp("^"+kg.call(Sf).replace(Mk,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gg=kf.Symbol,Gk=Hk.splice,Zk=Eg(kf,"Map"),Eo=Eg(Object,"create"),yg=gg?gg.prototype:void 0,_g=yg?yg.toString:void 0;function sr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function rS(e,t){var n=this.__data__,r=jl(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Yr.prototype.clear=Yk;Yr.prototype.delete=eS;Yr.prototype.get=tS;Yr.prototype.has=nS;Yr.prototype.set=rS;function lr(e){var t=-1,n=e?e.length:0;for(this.clear();++t{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.output=ke.exists=ke.hash=ke.bytes=ke.bool=ke.number=ke.isBytes=void 0;function Ul(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}ke.number=Ul;function Mg(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}ke.bool=Mg;function zg(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}ke.isBytes=zg;function If(e,...t){if(!zg(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}ke.bytes=If;function jg(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ul(e.outputLen),Ul(e.blockLen)}ke.hash=jg;function Fg(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")}ke.exists=Fg;function Ug(e,t){If(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.add5L=L.add5H=L.add4H=L.add4L=L.add3H=L.add3L=L.add=L.rotlBL=L.rotlBH=L.rotlSL=L.rotlSH=L.rotr32L=L.rotr32H=L.rotrBL=L.rotrBH=L.rotrSL=L.rotrSH=L.shrSL=L.shrSH=L.toBig=L.split=L.fromBig=void 0;var Bl=BigInt(2**32-1),Of=BigInt(32);function Nf(e,t=!1){return t?{h:Number(e&Bl),l:Number(e>>Of&Bl)}:{h:Number(e>>Of&Bl)|0,l:Number(e&Bl)|0}}L.fromBig=Nf;function Bg(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);L.toBig=$g;var Hg=(e,t,n)=>e>>>n;L.shrSH=Hg;var Vg=(e,t,n)=>e<<32-n|t>>>n;L.shrSL=Vg;var Wg=(e,t,n)=>e>>>n|t<<32-n;L.rotrSH=Wg;var Gg=(e,t,n)=>e<<32-n|t>>>n;L.rotrSL=Gg;var Zg=(e,t,n)=>e<<64-n|t>>>n-32;L.rotrBH=Zg;var Kg=(e,t,n)=>e>>>n-32|t<<64-n;L.rotrBL=Kg;var Qg=(e,t)=>t;L.rotr32H=Qg;var qg=(e,t)=>e;L.rotr32L=qg;var Xg=(e,t,n)=>e<>>32-n;L.rotlSH=Xg;var Jg=(e,t,n)=>t<>>32-n;L.rotlSL=Jg;var Yg=(e,t,n)=>t<>>64-n;L.rotlBH=Yg;var ey=(e,t,n)=>e<>>64-n;L.rotlBL=ey;function ty(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}L.add=ty;var ny=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);L.add3L=ny;var ry=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;L.add3H=ry;var iy=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);L.add4L=iy;var oy=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;L.add4H=oy;var sy=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);L.add5L=sy;var ly=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;L.add5H=ly;var bS={fromBig:Nf,split:Bg,toBig:$g,shrSH:Hg,shrSL:Vg,rotrSH:Wg,rotrSL:Gg,rotrBH:Zg,rotrBL:Kg,rotr32H:Qg,rotr32L:qg,rotlSH:Xg,rotlSL:Jg,rotlBH:Yg,rotlBL:ey,add:ty,add3L:ny,add3H:ry,add4L:iy,add4H:oy,add5H:ly,add5L:sy};L.default=bS});var uy=ie($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.crypto=void 0;$l.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var dy=ie(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.randomBytes=A.wrapXOFConstructorWithOpts=A.wrapConstructorWithOpts=A.wrapConstructor=A.checkOpts=A.Hash=A.concatBytes=A.toBytes=A.utf8ToBytes=A.asyncLoop=A.nextTick=A.hexToBytes=A.bytesToHex=A.byteSwap32=A.byteSwapIfBE=A.byteSwap=A.isLE=A.rotl=A.rotr=A.createView=A.u32=A.u8=A.isBytes=void 0;var Pf=uy(),Lf=Tf();function RS(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}A.isBytes=RS;var CS=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);A.u8=CS;var IS=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));A.u32=IS;var TS=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);A.createView=TS;var OS=(e,t)=>e<<32-t|e>>>t;A.rotr=OS;var NS=(e,t)=>e<>>32-t>>>0;A.rotl=NS;A.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var PS=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;A.byteSwap=PS;A.byteSwapIfBE=A.isLE?e=>e:e=>(0,A.byteSwap)(e);function AS(e){for(let t=0;tt.toString(16).padStart(2,"0"));function DS(e){(0,Lf.bytes)(e);let t="";for(let n=0;n=tn._0&&e<=tn._9)return e-tn._0;if(e>=tn._A&&e<=tn._F)return e-(tn._A-10);if(e>=tn._a&&e<=tn._f)return e-(tn._a-10)}function MS(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 i=0,o=0;i{};A.nextTick=zS;async function jS(e,t,n){let r=Date.now();for(let i=0;i=0&&oe().update(Hl(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}A.wrapConstructor=$S;function HS(e){let t=(r,i)=>e(i).update(Hl(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}A.wrapConstructorWithOpts=HS;function VS(e){let t=(r,i)=>e(i).update(Hl(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}A.wrapXOFConstructorWithOpts=VS;function WS(e=32){if(Pf.crypto&&typeof Pf.crypto.getRandomValues=="function")return Pf.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}A.randomBytes=WS});var wy=ie(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.shake256=q.shake128=q.keccak_512=q.keccak_384=q.keccak_256=q.keccak_224=q.sha3_512=q.sha3_384=q.sha3_256=q.sha3_224=q.Keccak=q.keccakP=void 0;var ti=Tf(),Co=ay(),nn=dy(),hy=[],gy=[],yy=[],GS=BigInt(0),Ro=BigInt(1),ZS=BigInt(2),KS=BigInt(7),QS=BigInt(256),qS=BigInt(113);for(let e=0,t=Ro,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],hy.push(2*(5*r+n)),gy.push((e+1)*(e+2)/2%64);let i=GS;for(let o=0;o<7;o++)t=(t<>KS)*qS)%QS,t&ZS&&(i^=Ro<<(Ro<n>32?(0,Co.rotlBH)(e,t,n):(0,Co.rotlSH)(e,t,n),my=(e,t,n)=>n>32?(0,Co.rotlBL)(e,t,n):(0,Co.rotlSL)(e,t,n);function _y(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,c=(s+2)%10,u=n[c],a=n[c+1],p=py(u,a,1)^n[l],f=my(u,a,1)^n[l+1];for(let d=0;d<50;d+=10)e[s+d]^=p,e[s+d+1]^=f}let i=e[2],o=e[3];for(let s=0;s<24;s++){let l=gy[s],c=py(i,o,l),u=my(i,o,l),a=hy[s];i=e[a],o=e[a+1],e[a]=c,e[a+1]=u}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]^=XS[r],e[1]^=JS[r]}n.fill(0)}q.keccakP=_y;var Io=class e extends nn.Hash{constructor(t,n,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,ti.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,nn.u32)(this.state)}keccak(){nn.isLE||(0,nn.byteSwap32)(this.state32),_y(this.state32,this.rounds),nn.isLE||(0,nn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,ti.exists)(this);let{blockLen:n,state:r}=this;t=(0,nn.toBytes)(t);let i=t.length;for(let o=0;o=r&&this.keccak();let s=Math.min(r-this.posOut,o-i);t.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=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,ti.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,ti.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:i,rounds:o,enableXOF:s}=this;return t||(t=new e(n,r,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};q.Keccak=Io;var Ln=(e,t,n)=>(0,nn.wrapConstructor)(()=>new Io(t,e,n));q.sha3_224=Ln(6,144,224/8);q.sha3_256=Ln(6,136,256/8);q.sha3_384=Ln(6,104,384/8);q.sha3_512=Ln(6,72,512/8);q.keccak_224=Ln(1,144,224/8);q.keccak_256=Ln(1,136,256/8);q.keccak_384=Ln(1,104,384/8);q.keccak_512=Ln(1,72,512/8);var vy=(e,t,n)=>(0,nn.wrapXOFConstructorWithOpts)((r={})=>new Io(t,e,r.dkLen===void 0?n:r.dkLen,!0));q.shake128=vy(31,168,128/8);q.shake256=vy(31,136,256/8)});var Iy=ie((GI,Dn)=>{var{sha3_512:YS}=wy(),ky=24,To=32,Df=(e=4,t=Math.random)=>{let n="";for(;n.lengthSy(YS(e)).toString(36).slice(1),xy=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),eE=e=>xy[Math.floor(e()*xy.length)],by=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+Df(To,t):Df(To,t);return Ey(r).substring(0,To)},Ry=e=>()=>e++,tE=476782367,Cy=({random:e=Math.random,counter:t=Ry(Math.floor(e()*tE)),length:n=ky,fingerprint:r=by({random:e})}={})=>function(){let o=eE(e),s=Date.now().toString(36),l=t().toString(36),c=Df(n,e),u=`${s+c+l+r}`;return`${o+Ey(u).substring(1,n)}`},nE=Cy(),rE=(e,{minLength:t=2,maxLength:n=To}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};Dn.exports.getConstants=()=>({defaultLength:ky,bigLength:To});Dn.exports.init=Cy;Dn.exports.createId=nE;Dn.exports.bufToBigInt=Sy;Dn.exports.createCounter=Ry;Dn.exports.createFingerprint=by;Dn.exports.isCuid=rE});var Vl=ie((ZI,Oo)=>{var{createId:iE,init:oE,getConstants:sE,isCuid:lE}=Iy();Oo.exports.createId=iE;Oo.exports.init=oE;Oo.exports.getConstants=sE;Oo.exports.isCuid=lE});var Ky=ie((Po,ta)=>{(function(e,t){"use strict";var n="1.0.38",r="",i="?",o="function",s="undefined",l="object",c="string",u="major",a="model",p="name",f="type",d="vendor",g="version",w="architecture",_="console",m="mobile",h="tablet",y="smarttv",v="wearable",S="embedded",b=500,k="Amazon",R="Apple",O="ASUS",I="BlackBerry",N="Browser",ze="Chrome",as="Edge",Ft="Firefox",Ut="Google",Xd="Huawei",La="LG",Da="Microsoft",Jd="Motorola",Ri="Opera",us="Samsung",Yd="Sharp",cs="Sony",Ma="Xiaomi",za="Zebra",ep="Facebook",tp="Chromium OS",np="Mac OS",U1=function(F,V){var z={};for(var Z in F)V[Z]&&V[Z].length%2===0?z[Z]=V[Z].concat(F[Z]):z[Z]=F[Z];return z},fs=function(F){for(var V={},z=0;z0?H.length===2?typeof H[1]==o?this[H[0]]=H[1].call(this,Et):this[H[0]]=H[1]:H.length===3?typeof H[1]===o&&!(H[1].exec&&H[1].test)?this[H[0]]=Et?H[1].call(this,Et,H[2]):t:this[H[0]]=Et?Et.replace(H[1],H[2]):t:H.length===4&&(this[H[0]]=Et?H[3].call(this,Et.replace(H[1],H[2])):t):this[H]=Et||t;z+=2}},Fa=function(F,V){for(var z in V)if(typeof V[z]===l&&V[z].length>0){for(var Z=0;Z2&&(M[a]="iPad",M[f]=h),M},this.getEngine=function(){var M={};return M[p]=t,M[g]=t,Ii.call(M,Z,St.engine),M},this.getOS=function(){var M={};return M[p]=t,M[g]=t,Ii.call(M,Z,St.os),H&&!M[p]&&Bt&&Bt.platform&&Bt.platform!="Unknown"&&(M[p]=Bt.platform.replace(/chrome os/i,tp).replace(/macos/i,np)),M},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 Z},this.setUA=function(M){return Z=typeof M===c&&M.length>b?ja(M,b):M,this},this.setUA(Z),this};We.VERSION=n,We.BROWSER=fs([p,g,u]),We.CPU=fs([w]),We.DEVICE=fs([a,d,f,_,m,y,h,v,S]),We.ENGINE=We.OS=fs([p,g]),typeof Po!==s?(typeof ta!==s&&ta.exports&&(Po=ta.exports=We),Po.UAParser=We):typeof define===o&&define.amd?define(function(){return We}):typeof e!==s&&(e.UAParser=We);var wr=typeof e!==s&&(e.jQuery||e.Zepto);if(wr&&!wr.ua){var ds=new We;wr.ua=ds.getResult(),wr.ua.get=function(){return ds.getUA()},wr.ua.set=function(F){ds.setUA(F);var V=ds.getResult();for(var z in V)wr.ua[z]=V[z]}}})(typeof window=="object"?window:Po)});var ev=ie((WA,Y_)=>{var P2=1/0,A2="[object Symbol]",L2=/^\s+|\s+$/g,_d="\\ud800-\\udfff",$_="\\u0300-\\u036f\\ufe20-\\ufe23",H_="\\u20d0-\\u20f0",V_="\\ufe0e\\ufe0f",D2="["+_d+"]",gd="["+$_+H_+"]",yd="\\ud83c[\\udffb-\\udfff]",M2="(?:"+gd+"|"+yd+")",W_="[^"+_d+"]",G_="(?:\\ud83c[\\udde6-\\uddff]){2}",Z_="[\\ud800-\\udbff][\\udc00-\\udfff]",K_="\\u200d",Q_=M2+"?",q_="["+V_+"]?",z2="(?:"+K_+"(?:"+[W_,G_,Z_].join("|")+")"+q_+Q_+")*",j2=q_+Q_+z2,F2="(?:"+[W_+gd+"?",gd,G_,Z_,D2].join("|")+")",U2=RegExp(yd+"(?="+yd+")|"+F2+j2,"g"),B2=RegExp("["+K_+_d+$_+H_+V_+"]"),$2=typeof global=="object"&&global&&global.Object===Object&&global,H2=typeof self=="object"&&self&&self.Object===Object&&self,V2=$2||H2||Function("return this")();function W2(e){return e.split("")}function G2(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1;);return n}function Q2(e,t){for(var n=e.length;n--&&X_(t,e[n],0)>-1;);return n}function q2(e){return B2.test(e)}function j_(e){return q2(e)?X2(e):W2(e)}function X2(e){return e.match(U2)||[]}var J2=Object.prototype,Y2=J2.toString,F_=V2.Symbol,U_=F_?F_.prototype:void 0,B_=U_?U_.toString:void 0;function eb(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:eb(e,t,n)}function nb(e){return!!e&&typeof e=="object"}function rb(e){return typeof e=="symbol"||nb(e)&&Y2.call(e)==A2}function ib(e){return e==null?"":J_(e)}function ob(e,t,n){if(e=ib(e),e&&(n||t===void 0))return e.replace(L2,"");if(!e||!(t=J_(t)))return e;var r=j_(e),i=j_(t),o=K2(r,i),s=Q2(r,i)+1;return tb(r,o,s).join("")}Y_.exports=ob});var lv=ie((XA,sv)=>{"use strict";function lb(e,t){for(;e.length{let[,r]=(0,Xr.useState)({}),o=(0,Xr.useRef)({data:e,deps:n||[],ready:!1,_loading:{},lastRender:0,lastRenderCount:0}).current;if((0,Xr.useEffect)(()=>{o.ready=!0,t&&t({init:!0})},[]),o.ready===!1)o._loading={},o.data.render=()=>{if(o.ready){if(Date.now()-o.lastRender<300?o.lastRenderCount++:o.lastRenderCount=0,o.lastRenderCount>300)throw new Error("local.render more than 300 times in less than 300ms");o.lastRender=Date.now(),r({})}};else if(o.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(o.deps[s]!==l){o.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return o.data};var B0=(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 i=0,o=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(o),n()),i>100&&clearInterval(o)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var pk=P(_e());var Jt=P(_e());function uf(e){let t=new WeakMap;function n(r,i=[]){if(!(r!==null&&typeof r=="object"))return r;let o=t.get(r);if(o)return`[Circular *${o.join(".")}]`;t.set(r,i);let s=Array.isArray(r)?[]:{};for(let[l,c]of Object.entries(r))s[l]=n(c,[...i,l]);return t.delete(r),s}return n(e)}var cf=(0,Jt.createContext)({global:{},render:()=>{}});var Pn=(e,t)=>{let n=(0,Jt.useContext)(cf),{global:r,render:i}=n;r[t]||(r[t]=e),(0,Jt.useEffect)(()=>{let s=null;return()=>{typeof s=="function"?s():s instanceof Promise&&s.then(l=>{typeof l=="function"&&l()})}},[]);let o=r[t];return o&&(o.render=s=>{s&&(r[t]=void 0),(0,Jt.startTransition)(i)}),o},Jr=uf;var z3=P(_e());var df=P(_e()),K0=P(lf()),Q0=P(V0()),q0=P(G()),X0=()=>{let e=typeof window=="object"?window:globalThis;e.React=df.default,e.ReactDOM=K0.default,e.JSXRuntime=q0.default,e.JSXDevRuntime=Q0.default,e.Fragment=df.default.Fragment};var xk={data:""},Y0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xk,eg=e=>{let t=Y0(e),n=t.data;return t.data="",n},kk=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Sk=/\/\*[^]*?\*\/| +/g,J0=/\n+/g,or=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?or(s,o):o+"{"+or(s,o[1]=="k"?"":t)+"}":typeof s=="object"?r+=or(s,t?t.replace(/([^,])+/g,l=>o.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=or.p?or.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Yt={},tg=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+tg(e[n]);return t}return e},Ek=(e,t,n,r,i)=>{let o=tg(e),s=Yt[o]||(Yt[o]=(c=>{let u=0,a=11;for(;u>>0;return"go"+a})(o));if(!Yt[s]){let c=o!==e?e:(u=>{let a,p,f=[{}];for(;a=kk.exec(u.replace(Sk,""));)a[4]?f.shift():a[3]?(p=a[3].replace(J0," ").trim(),f.unshift(f[0][p]=f[0][p]||{})):f[0][a[1]]=a[2].replace(J0," ").trim();return f[0]})(e);Yt[s]=or(i?{["@keyframes "+s]:c}:c,n?"":"."+s)}let l=n&&Yt.g?Yt.g:null;return n&&(Yt.g=Yt[s]),((c,u,a,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=a?c+u.data:u.data+c)})(Yt[s],t,r,l),s},bk=(e,t,n)=>e.reduce((r,i,o)=>{let s=t[o];if(s&&s.call){let l=s(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=c?"."+c:l&&typeof l=="object"?l.props?"":or(l,""):l===!1?"":l}return r+i+(s??"")},"");function Ml(e){let t=this||{},n=e.call?e(t.p):e;return Ek(n.unshift?n.raw?bk(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Y0(t.target),t.g,t.o,t.k)}var N3=Ml.bind({g:1}),P3=Ml.bind({k:1});var ng=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await B0(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",i=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 o=n.port;t.baseurl=i+"://"+r+(o?":"+o:"")+"/",t.basepath||(t.basepath="/"),t.css=Ml,t.extractCss=eg,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(c=>c?(typeof c=="string"&&c.trim(),!0):!1).forEach(c=>{if(Array.isArray(c))for(let u of c)typeof u=="string"&&u.trim()&&l.push(u.trim());else l.push(c.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.prasiContext.popState){t.prasiContext.popState();return}if(t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};var pf=window,C={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(C.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:pf._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:{}},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},rg=()=>{if(!C.root){let e=new URL(location.href);pf._prasi.basepath&&(e.pathname=pf._prasi.basepath),C.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),C.root.pathname.endsWith("/")&&(C.root.pathname=C.root.pathname.substring(0,C.root.length-1))}};function hf(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function gf(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=hf(n);return(i,o)=>r.then(s=>o(s.transaction(t,i).objectStore(t)))}var mf;function ig(){return mf||(mf=gf("keyval-store","keyval")),mf}function yf(e,t=ig()){return t("readonly",n=>hf(n.get(e)))}function zl(e,t,n=ig()){return n("readwrite",r=>(r.put(t,e),hf(r.transaction)))}var M1=P(_e());var og=/^(?:[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 Rk(e){return typeof e=="string"&&og.test(e)}var _f=Rk;var ko=P(G()),vf=({children:e,back:t})=>(0,ko.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,ko.jsx)("div",{children:e}),(0,ko.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var lg=P(_e());var Oe=P(G()),sg=window,So=({children:e,className:t,show:n,backdrop:r,note:i,alt:o,pointer:s})=>{let l=Nn({icon:(0,Oe.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,lg.useEffect)(()=>(l.ival=setInterval(()=>{l.value+=.1333,l.value>=1.3&&(l.value=0),l.render()},200),sg.loadingIcon&&(l.icon=(0,Oe.jsx)("img",{alt:"loading",src:sg.loadingIcon,className:css` +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function wu(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function nc(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var $x=typeof WeakMap=="function"?WeakMap:Map;function u0(e,t,n){n=Gt(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){gl||(gl=!0,dc=r),nc(e,t)},n}function c0(e,t,n){n=Gt(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){nc(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){nc(e,t),typeof r!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function vm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new $x;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=nS.bind(null,e,t,n),t.then(e,e))}function wm(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 xm(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,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=Gt(-1,1),t.tag=2,Sn(n,t,1))),n.lanes|=1),e)}var Hx=Xt.ReactCurrentOwner,je=!1;function Ae(e,t,n,r){t.child=e===null?$h(t,null,n,r):Wr(t,e.child,n,r)}function Sm(e,t,n,r,i){n=n.render;var o=t.ref;return Ur(t,i),r=Vc(e,t,n,r,o,i),n=Wc(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(Y&&n&&Pc(t),t.flags|=1,Ae(e,t,r,i),t.child)}function km(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!tf(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,f0(e,t,o,r,i)):(e=Qs(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:lo,n(s,r)&&e.ref===t.ref)return qt(e,t,i)}return t.flags|=1,e=bn(o,r),e.ref=t.ref,e.return=t,t.child=e}function f0(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(lo(o,r)&&e.ref===t.ref)if(je=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(je=!0);else return t.lanes=e.lanes,qt(e,t,i)}return rc(e,t,n,r,i)}function d0(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Q(Dr,Ge),Ge|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Q(Dr,Ge),Ge|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,Q(Dr,Ge),Ge|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,Q(Dr,Ge),Ge|=r;return Ae(e,t,i,n),t.child}function p0(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function rc(e,t,n,r,i){var o=Be(n)?Jn:Te.current;return o=Hr(t,o),Ur(t,i),n=Vc(e,t,n,r,o,i),r=Wc(),e!==null&&!je?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,qt(e,t,i)):(Y&&r&&Pc(t),t.flags|=1,Ae(e,t,n,i),t.child)}function Em(e,t,n,r,i){if(Be(n)){var o=!0;sl(t)}else o=!1;if(Ur(t,i),t.stateNode===null)Gs(e,t),Uh(t,n,r),tc(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,l=t.memoizedProps;s.props=l;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=st(u):(u=Be(n)?Jn:Te.current,u=Hr(t,u));var a=n.getDerivedStateFromProps,p=typeof a=="function"||typeof s.getSnapshotBeforeUpdate=="function";p||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==r||c!==u)&&hm(t,s,r,u),pn=!1;var f=t.memoizedState;s.state=f,fl(t,r,s,i),c=t.memoizedState,l!==r||f!==c||Ue.current||pn?(typeof a=="function"&&(ec(t,n,a,r),c=t.memoizedState),(l=pn||mm(t,n,l,r,f,c,u))?(p||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=l):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,Fh(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ht(t.type,l),s.props=u,p=t.pendingProps,f=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=st(c):(c=Be(n)?Jn:Te.current,c=Hr(t,c));var d=n.getDerivedStateFromProps;(a=typeof d=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(l!==p||f!==c)&&hm(t,s,r,c),pn=!1,f=t.memoizedState,s.state=f,fl(t,r,s,i);var g=t.memoizedState;l!==p||f!==g||Ue.current||pn?(typeof d=="function"&&(ec(t,n,d,r),g=t.memoizedState),(u=pn||mm(t,n,u,r,f,g,c)||!1)?(a||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,g,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,g,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),s.props=r,s.state=g,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return ic(e,t,n,r,o,i)}function ic(e,t,n,r,i,o){p0(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&um(t,n,!1),qt(e,t,o);r=t.stateNode,Hx.current=t;var l=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Wr(t,e.child,null,o),t.child=Wr(t,null,l,o)):Ae(e,t,l,o),t.memoizedState=r.state,i&&um(t,n,!0),t.child}function m0(e){var t=e.stateNode;t.pendingContext?am(e,t.pendingContext,t.pendingContext!==t.context):t.context&&am(e,t.context,!1),Uc(e,t.containerInfo)}function bm(e,t,n,r,i){return Vr(),Lc(i),t.flags|=256,Ae(e,t,n,r),t.child}var oc={dehydrated:null,treeContext:null,retryLane:0};function sc(e){return{baseLanes:e,cachePool:null,transitions:null}}function h0(e,t,n){var r=t.pendingProps,i=te.current,o=!1,s=(t.flags&128)!==0,l;if((l=s)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Q(te,i&1),e===null)return Ju(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,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ol(s,r,0,null),e=Xn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=sc(n),t.memoizedState=oc,e):Kc(t,s));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return Vx(e,t,s,r,l,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=bn(i,c),r.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=bn(l,o):(o=Xn(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?sc(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=oc,r}return o=e.child,e=o.sibling,r=bn(o,{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 Kc(e,t){return t=Ol({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zs(e,t,n,r){return r!==null&&Lc(r),Wr(t,e.child,null,n),e=Kc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Vx(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=wu(Error(E(422))),zs(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ol({mode:"visible",children:r.children},i,0,null),o=Xn(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Wr(t,e.child,null,s),t.child.memoizedState=sc(s),t.memoizedState=oc,o);if(!(t.mode&1))return zs(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var l=r.dgst;return r=l,o=Error(E(419)),r=wu(o,r,void 0),zs(e,t,s,r)}if(l=(s&e.childLanes)!==0,je||l){if(r=he,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=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:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Qt(e,i),vt(r,e,i,-1))}return ef(),r=wu(Error(E(421))),zs(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=rS.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ze=xn(i.nextSibling),Ke=t,Y=!0,yt=null,e!==null&&(nt[rt++]=Vt,nt[rt++]=Wt,nt[rt++]=Yn,Vt=e.id,Wt=e.overflow,Yn=t),t=Kc(t,r.children),t.flags|=4096,t)}function Rm(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Yu(e.return,t,n)}function xu(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function g0(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Ae(e,t,r.children,n),r=te.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&&Rm(e,n,t);else if(e.tag===19)Rm(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(Q(te,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&dl(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),xu(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&dl(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}xu(t,!0,n,null,o);break;case"together":xu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Gs(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),tr|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(E(153));if(t.child!==null){for(e=t.child,n=bn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=bn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Wx(e,t,n){switch(t.tag){case 3:m0(t),Vr();break;case 5:Hh(t);break;case 1:Be(t.type)&&sl(t);break;case 4:Uc(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Q(ul,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(Q(te,te.current&1),t.flags|=128,null):n&t.child.childLanes?h0(e,t,n):(Q(te,te.current&1),e=qt(e,t,n),e!==null?e.sibling:null);Q(te,te.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return g0(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Q(te,te.current),r)break;return null;case 22:case 23:return t.lanes=0,d0(e,t,n)}return qt(e,t,n)}var y0,lc,_0,v0;y0=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}};lc=function(){};_0=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Qn(Ot.current);var o=null;switch(n){case"input":i=Tu(e,i),r=Tu(e,r),o=[];break;case"select":i=re({},i,{value:void 0}),r=re({},r,{value:void 0}),o=[];break;case"textarea":i=Pu(e,i),r=Pu(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=il)}Lu(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(s in l)l.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(eo.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(l=i?.[u],r.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(eo.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&X("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};v0=function(e,t,n,r){n!==r&&(t.flags|=4)};function Fi(e,t){if(!Y)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 Ce(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Gx(e,t,n){var r=t.pendingProps;switch(Ac(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ce(t),null;case 1:return Be(t.type)&&ol(),Ce(t),null;case 3:return r=t.stateNode,Gr(),J(Ue),J(Te),$c(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(Ds(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,yt!==null&&(hc(yt),yt=null))),lc(e,t),Ce(t),null;case 5:Bc(t);var i=Qn(po.current);if(n=t.type,e!==null&&t.stateNode!=null)_0(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(E(166));return Ce(t),null}if(e=Qn(Ot.current),Ds(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[It]=t,r[co]=o,e=(t.mode&1)!==0,n){case"dialog":X("cancel",r),X("close",r);break;case"iframe":case"object":case"embed":X("load",r);break;case"video":case"audio":for(i=0;i<\/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[It]=t,e[co]=r,y0(e,t,!1,!1),t.stateNode=e;e:{switch(s=Du(n,r),n){case"dialog":X("cancel",e),X("close",e),i=r;break;case"iframe":case"object":case"embed":X("load",e),i=r;break;case"video":case"audio":for(i=0;iKr&&(t.flags|=128,r=!0,Fi(o,!1),t.lanes=4194304)}else{if(!r)if(e=dl(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Fi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!Y)return Ce(t),null}else 2*se()-o.renderingStartTime>Kr&&n!==1073741824&&(t.flags|=128,r=!0,Fi(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=se(),t.sibling=null,n=te.current,Q(te,r?n&1|2:n&1),t):(Ce(t),null);case 22:case 23:return Yc(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ge&1073741824&&(Ce(t),t.subtreeFlags&6&&(t.flags|=8192)):Ce(t),null;case 24:return null;case 25:return null}throw Error(E(156,t.tag))}function Zx(e,t){switch(Ac(t),t.tag){case 1:return Be(t.type)&&ol(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gr(),J(Ue),J(Te),$c(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Bc(t),null;case 13:if(J(te),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(E(340));Vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(te),null;case 4:return Gr(),null;case 10:return zc(t.type._context),null;case 22:case 23:return Yc(),null;case 24:return null;default:return null}}var Fs=!1,Ie=!1,Kx=typeof WeakSet=="function"?WeakSet:Set,T=null;function Lr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){oe(e,t,r)}else n.current=null}function ac(e,t,n){try{n()}catch(r){oe(e,t,r)}}var Cm=!1;function Qx(e,t){if(Wu=tl,e=kh(),Nc(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 i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,l=-1,c=-1,u=0,a=0,p=e,f=null;t:for(;;){for(var d;p!==n||i!==0&&p.nodeType!==3||(l=s+i),p!==o||r!==0&&p.nodeType!==3||(c=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)f=p,p=d;for(;;){if(p===e)break t;if(f===n&&++u===i&&(l=s),f===o&&++a===r&&(c=s),(d=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=d}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Gu={focusedElem:e,selectionRange:n},tl=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,_=g.memoizedState,m=t.stateNode,h=m.getSnapshotBeforeUpdate(t.elementType===t.type?w:ht(t.type,w),_);m.__reactInternalSnapshotBeforeUpdate=h}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(E(163))}}catch(v){oe(t,t.return,v)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return g=Cm,Cm=!1,g}function Xi(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ac(t,n,o)}i=i.next}while(i!==r)}}function Il(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 uc(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 w0(e){var t=e.alternate;t!==null&&(e.alternate=null,w0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[It],delete t[co],delete t[Qu],delete t[Nx],delete t[Px])),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 x0(e){return e.tag===5||e.tag===3||e.tag===4}function Im(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||x0(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 cc(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=il));else if(r!==4&&(e=e.child,e!==null))for(cc(e,t,n),e=e.sibling;e!==null;)cc(e,t,n),e=e.sibling}function fc(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(fc(e,t,n),e=e.sibling;e!==null;)fc(e,t,n),e=e.sibling}var ve=null,gt=!1;function fn(e,t,n){for(n=n.child;n!==null;)S0(e,t,n),n=n.sibling}function S0(e,t,n){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 5:Ie||Lr(n,t);case 6:var r=ve,i=gt;ve=null,fn(e,t,n),ve=r,gt=i,ve!==null&&(gt?(e=ve,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ve.removeChild(n.stateNode));break;case 18:ve!==null&&(gt?(e=ve,n=n.stateNode,e.nodeType===8?mu(e.parentNode,n):e.nodeType===1&&mu(e,n),oo(e)):mu(ve,n.stateNode));break;case 4:r=ve,i=gt,ve=n.stateNode.containerInfo,gt=!0,fn(e,t,n),ve=r,gt=i;break;case 0:case 11:case 14:case 15:if(!Ie&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&ac(n,t,s),i=i.next}while(i!==r)}fn(e,t,n);break;case 1:if(!Ie&&(Lr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){oe(n,t,l)}fn(e,t,n);break;case 21:fn(e,t,n);break;case 22:n.mode&1?(Ie=(r=Ie)||n.memoizedState!==null,fn(e,t,n),Ie=r):fn(e,t,n);break;default:fn(e,t,n)}}function Tm(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Kx),t.forEach(function(r){var i=iS.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function mt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=se()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xx(r/1960))-r,10e?16:e,yn===null)var r=!1;else{if(e=yn,yn=null,yl=0,B&6)throw Error(E(331));var i=B;for(B|=4,T=e.current;T!==null;){var o=T,s=o.child;if(T.flags&16){var l=o.deletions;if(l!==null){for(var c=0;cse()-Xc?qn(e,0):qc|=n),$e(e,t)}function O0(e,t){t===0&&(e.mode&1?(t=bs,bs<<=1,!(bs&130023424)&&(bs=4194304)):t=1);var n=Le();e=Qt(e,t),e!==null&&(_o(e,t,n),$e(e,n))}function rS(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),O0(e,n)}function iS(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(E(314))}r!==null&&r.delete(t),O0(e,n)}var N0;N0=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ue.current)je=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return je=!1,Wx(e,t,n);je=!!(e.flags&131072)}else je=!1,Y&&t.flags&1048576&&Lh(t,al,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Gs(e,t),e=t.pendingProps;var i=Hr(t,Te.current);Ur(t,n),i=Vc(null,t,r,e,i,n);var o=Wc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Be(r)?(o=!0,sl(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,jc(t),i.updater=Rl,t.stateNode=i,i._reactInternals=t,tc(t,r,e,n),t=ic(null,t,r,!0,o,n)):(t.tag=0,Y&&o&&Pc(t),Ae(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Gs(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=sS(r),e=ht(r,e),i){case 0:t=rc(null,t,r,e,n);break e;case 1:t=Em(null,t,r,e,n);break e;case 11:t=Sm(null,t,r,e,n);break e;case 14:t=km(null,t,r,ht(r.type,e),n);break e}throw Error(E(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),rc(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Em(e,t,r,i,n);case 3:e:{if(m0(t),e===null)throw Error(E(387));r=t.pendingProps,o=t.memoizedState,i=o.element,Fh(e,t),fl(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Zr(Error(E(423)),t),t=bm(e,t,r,n,i);break e}else if(r!==i){i=Zr(Error(E(424)),t),t=bm(e,t,r,n,i);break e}else for(Ze=xn(t.stateNode.containerInfo.firstChild),Ke=t,Y=!0,yt=null,n=$h(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Vr(),r===i){t=qt(e,t,n);break e}Ae(e,t,r,n)}t=t.child}return t;case 5:return Hh(t),e===null&&Ju(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,Zu(r,i)?s=null:o!==null&&Zu(r,o)&&(t.flags|=32),p0(e,t),Ae(e,t,s,n),t.child;case 6:return e===null&&Ju(t),null;case 13:return h0(e,t,n);case 4:return Uc(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Wr(t,null,r,n):Ae(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Sm(e,t,r,i,n);case 7:return Ae(e,t,t.pendingProps,n),t.child;case 8:return Ae(e,t,t.pendingProps.children,n),t.child;case 12:return Ae(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Q(ul,r._currentValue),r._currentValue=s,o!==null)if(wt(o.value,s)){if(o.children===i.children&&!Ue.current){t=qt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){s=o.child;for(var c=l.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Gt(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var a=u.pending;a===null?c.next=c:(c.next=a.next,a.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Yu(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(E(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Yu(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Ae(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Ur(t,n),i=st(i),r=r(i),t.flags|=1,Ae(e,t,r,n),t.child;case 14:return r=t.type,i=ht(r,t.pendingProps),i=ht(r.type,i),km(e,t,r,i,n);case 15:return f0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:ht(r,i),Gs(e,t),t.tag=1,Be(r)?(e=!0,sl(t)):e=!1,Ur(t,n),Uh(t,r,i),tc(t,r,i,n),ic(null,t,r,!0,e,n);case 19:return g0(e,t,n);case 22:return d0(e,t,n)}throw Error(E(156,t.tag))};function P0(e,t){return ih(e,t)}function oS(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 it(e,t,n,r){return new oS(e,t,n,r)}function tf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sS(e){if(typeof e=="function")return tf(e)?1:0;if(e!=null){if(e=e.$$typeof,e===wc)return 11;if(e===xc)return 14}return 2}function bn(e,t){var n=e.alternate;return n===null?(n=it(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 Qs(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")tf(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case br:return Xn(n.children,i,o,t);case vc:s=8,i|=8;break;case bu:return e=it(12,n,t,i|2),e.elementType=bu,e.lanes=o,e;case Ru:return e=it(13,n,t,i),e.elementType=Ru,e.lanes=o,e;case Cu:return e=it(19,n,t,i),e.elementType=Cu,e.lanes=o,e;case Bm:return Ol(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case jm:s=10;break e;case Um:s=9;break e;case wc:s=11;break e;case xc:s=14;break e;case dn:s=16,r=null;break e}throw Error(E(130,e==null?e:typeof e,""))}return t=it(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Xn(e,t,n,r){return e=it(7,e,r,t),e.lanes=n,e}function Ol(e,t,n,r){return e=it(22,e,r,t),e.elementType=Bm,e.lanes=n,e.stateNode={isHidden:!1},e}function Su(e,t,n){return e=it(6,e,null,t),e.lanes=n,e}function ku(e,t,n){return t=it(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lS(e,t,n,r,i){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=su(0),this.expirationTimes=su(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function nf(e,t,n,r,i,o,s,l,c){return e=new lS(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=it(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},jc(o),e}function aS(e,t,n){var r=3{"use strict";function z0(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(z0)}catch(e){console.error(e)}}z0(),F0.exports=M0()});var U0=ie(af=>{"use strict";var j0=lf();af.createRoot=j0.createRoot,af.hydrateRoot=j0.hydrateRoot;var g3});var $0=ie(ff=>{"use strict";var mS=Symbol.for("react.fragment");ff.Fragment=mS;ff.jsxDEV=void 0});var V0=ie((C3,H0)=>{"use strict";H0.exports=$0()});var G0=ie(Dl=>{"use strict";var hS=_e(),gS=Symbol.for("react.element"),yS=Symbol.for("react.fragment"),_S=Object.prototype.hasOwnProperty,vS=hS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,wS={key:!0,ref:!0,__self:!0,__source:!0};function W0(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)_S.call(t,r)&&!wS.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:gS,type:e,key:o,ref:s,props:i,_owner:vS.current}}Dl.Fragment=yS;Dl.jsx=W0;Dl.jsxs=W0});var G=ie((T3,Z0)=>{"use strict";Z0.exports=G0()});var Rf=ie((yI,Cg)=>{var IS="Expected a function",vg="__lodash_hash_undefined__",wg=1/0,TS="[object Function]",OS="[object GeneratorFunction]",NS="[object Symbol]",PS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,AS=/^\w*$/,LS=/^\./,DS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,MS=/[\\^$.*+?()[\]{}|]/g,zS=/\\(\\)?/g,FS=/^\[object .+?Constructor\]$/,jS=typeof global=="object"&&global&&global.Object===Object&&global,US=typeof self=="object"&&self&&self.Object===Object&&self,Sf=jS||US||Function("return this")();function BS(e,t){return e?.[t]}function $S(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}var HS=Array.prototype,VS=Function.prototype,xg=Object.prototype,xf=Sf["__core-js_shared__"],hg=function(){var e=/[^.]+$/.exec(xf&&xf.keys&&xf.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sg=VS.toString,kf=xg.hasOwnProperty,kg=xg.toString,WS=RegExp("^"+Sg.call(kf).replace(MS,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),gg=Sf.Symbol,GS=HS.splice,ZS=Eg(Sf,"Map"),Eo=Eg(Object,"create"),yg=gg?gg.prototype:void 0,_g=yg?yg.toString:void 0;function sr(e){var t=-1,n=e?e.length:0;for(this.clear();++t-1}function rk(e,t){var n=this.__data__,r=Fl(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Yr.prototype.clear=YS;Yr.prototype.delete=ek;Yr.prototype.get=tk;Yr.prototype.has=nk;Yr.prototype.set=rk;function lr(e){var t=-1,n=e?e.length:0;for(this.clear();++t{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.output=Se.exists=Se.hash=Se.bytes=Se.bool=Se.number=Se.isBytes=void 0;function Ul(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`positive integer expected, not ${e}`)}Se.number=Ul;function Mg(e){if(typeof e!="boolean")throw new Error(`boolean expected, not ${e}`)}Se.bool=Mg;function zg(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}Se.isBytes=zg;function If(e,...t){if(!zg(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}Se.bytes=If;function Fg(e){if(typeof e!="function"||typeof e.create!="function")throw new Error("Hash should be wrapped by utils.wrapConstructor");Ul(e.outputLen),Ul(e.blockLen)}Se.hash=Fg;function jg(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")}Se.exists=jg;function Ug(e,t){If(e);let n=t.outputLen;if(e.length{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.add5L=L.add5H=L.add4H=L.add4L=L.add3H=L.add3L=L.add=L.rotlBL=L.rotlBH=L.rotlSL=L.rotlSH=L.rotr32L=L.rotr32H=L.rotrBL=L.rotrBH=L.rotrSL=L.rotrSH=L.shrSL=L.shrSH=L.toBig=L.split=L.fromBig=void 0;var Bl=BigInt(2**32-1),Of=BigInt(32);function Nf(e,t=!1){return t?{h:Number(e&Bl),l:Number(e>>Of&Bl)}:{h:Number(e>>Of&Bl)|0,l:Number(e&Bl)|0}}L.fromBig=Nf;function Bg(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let i=0;iBigInt(e>>>0)<>>0);L.toBig=$g;var Hg=(e,t,n)=>e>>>n;L.shrSH=Hg;var Vg=(e,t,n)=>e<<32-n|t>>>n;L.shrSL=Vg;var Wg=(e,t,n)=>e>>>n|t<<32-n;L.rotrSH=Wg;var Gg=(e,t,n)=>e<<32-n|t>>>n;L.rotrSL=Gg;var Zg=(e,t,n)=>e<<64-n|t>>>n-32;L.rotrBH=Zg;var Kg=(e,t,n)=>e>>>n-32|t<<64-n;L.rotrBL=Kg;var Qg=(e,t)=>t;L.rotr32H=Qg;var qg=(e,t)=>e;L.rotr32L=qg;var Xg=(e,t,n)=>e<>>32-n;L.rotlSH=Xg;var Jg=(e,t,n)=>t<>>32-n;L.rotlSL=Jg;var Yg=(e,t,n)=>t<>>64-n;L.rotlBH=Yg;var ey=(e,t,n)=>e<>>64-n;L.rotlBL=ey;function ty(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/2**32|0)|0,l:i|0}}L.add=ty;var ny=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0);L.add3L=ny;var ry=(e,t,n,r)=>t+n+r+(e/2**32|0)|0;L.add3H=ry;var iy=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0);L.add4L=iy;var oy=(e,t,n,r,i)=>t+n+r+i+(e/2**32|0)|0;L.add4H=oy;var sy=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0);L.add5L=sy;var ly=(e,t,n,r,i,o)=>t+n+r+i+o+(e/2**32|0)|0;L.add5H=ly;var bk={fromBig:Nf,split:Bg,toBig:$g,shrSH:Hg,shrSL:Vg,rotrSH:Wg,rotrSL:Gg,rotrBH:Zg,rotrBL:Kg,rotr32H:Qg,rotr32L:qg,rotlSH:Xg,rotlSL:Jg,rotlBH:Yg,rotlBL:ey,add:ty,add3L:ny,add3H:ry,add4L:iy,add4H:oy,add5H:ly,add5L:sy};L.default=bk});var uy=ie($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.crypto=void 0;$l.crypto=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0});var dy=ie(A=>{"use strict";Object.defineProperty(A,"__esModule",{value:!0});A.randomBytes=A.wrapXOFConstructorWithOpts=A.wrapConstructorWithOpts=A.wrapConstructor=A.checkOpts=A.Hash=A.concatBytes=A.toBytes=A.utf8ToBytes=A.asyncLoop=A.nextTick=A.hexToBytes=A.bytesToHex=A.byteSwap32=A.byteSwapIfBE=A.byteSwap=A.isLE=A.rotl=A.rotr=A.createView=A.u32=A.u8=A.isBytes=void 0;var Pf=uy(),Lf=Tf();function Rk(e){return e instanceof Uint8Array||e!=null&&typeof e=="object"&&e.constructor.name==="Uint8Array"}A.isBytes=Rk;var Ck=e=>new Uint8Array(e.buffer,e.byteOffset,e.byteLength);A.u8=Ck;var Ik=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4));A.u32=Ik;var Tk=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);A.createView=Tk;var Ok=(e,t)=>e<<32-t|e>>>t;A.rotr=Ok;var Nk=(e,t)=>e<>>32-t>>>0;A.rotl=Nk;A.isLE=new Uint8Array(new Uint32Array([287454020]).buffer)[0]===68;var Pk=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;A.byteSwap=Pk;A.byteSwapIfBE=A.isLE?e=>e:e=>(0,A.byteSwap)(e);function Ak(e){for(let t=0;tt.toString(16).padStart(2,"0"));function Dk(e){(0,Lf.bytes)(e);let t="";for(let n=0;n=tn._0&&e<=tn._9)return e-tn._0;if(e>=tn._A&&e<=tn._F)return e-(tn._A-10);if(e>=tn._a&&e<=tn._f)return e-(tn._a-10)}function Mk(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 i=0,o=0;i{};A.nextTick=zk;async function Fk(e,t,n){let r=Date.now();for(let i=0;i=0&&oe().update(Hl(r)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}A.wrapConstructor=$k;function Hk(e){let t=(r,i)=>e(i).update(Hl(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}A.wrapConstructorWithOpts=Hk;function Vk(e){let t=(r,i)=>e(i).update(Hl(r)).digest(),n=e({});return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=r=>e(r),t}A.wrapXOFConstructorWithOpts=Vk;function Wk(e=32){if(Pf.crypto&&typeof Pf.crypto.getRandomValues=="function")return Pf.crypto.getRandomValues(new Uint8Array(e));throw new Error("crypto.getRandomValues must be defined")}A.randomBytes=Wk});var wy=ie(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.shake256=q.shake128=q.keccak_512=q.keccak_384=q.keccak_256=q.keccak_224=q.sha3_512=q.sha3_384=q.sha3_256=q.sha3_224=q.Keccak=q.keccakP=void 0;var ti=Tf(),Co=ay(),nn=dy(),hy=[],gy=[],yy=[],Gk=BigInt(0),Ro=BigInt(1),Zk=BigInt(2),Kk=BigInt(7),Qk=BigInt(256),qk=BigInt(113);for(let e=0,t=Ro,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],hy.push(2*(5*r+n)),gy.push((e+1)*(e+2)/2%64);let i=Gk;for(let o=0;o<7;o++)t=(t<>Kk)*qk)%Qk,t&Zk&&(i^=Ro<<(Ro<n>32?(0,Co.rotlBH)(e,t,n):(0,Co.rotlSH)(e,t,n),my=(e,t,n)=>n>32?(0,Co.rotlBL)(e,t,n):(0,Co.rotlSL)(e,t,n);function _y(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,c=(s+2)%10,u=n[c],a=n[c+1],p=py(u,a,1)^n[l],f=my(u,a,1)^n[l+1];for(let d=0;d<50;d+=10)e[s+d]^=p,e[s+d+1]^=f}let i=e[2],o=e[3];for(let s=0;s<24;s++){let l=gy[s],c=py(i,o,l),u=my(i,o,l),a=hy[s];i=e[a],o=e[a+1],e[a]=c,e[a+1]=u}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]^=Xk[r],e[1]^=Jk[r]}n.fill(0)}q.keccakP=_y;var Io=class e extends nn.Hash{constructor(t,n,r,i=!1,o=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=i,this.rounds=o,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,ti.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,nn.u32)(this.state)}keccak(){nn.isLE||(0,nn.byteSwap32)(this.state32),_y(this.state32,this.rounds),nn.isLE||(0,nn.byteSwap32)(this.state32),this.posOut=0,this.pos=0}update(t){(0,ti.exists)(this);let{blockLen:n,state:r}=this;t=(0,nn.toBytes)(t);let i=t.length;for(let o=0;o=r&&this.keccak();let s=Math.min(r-this.posOut,o-i);t.set(n.subarray(this.posOut,this.posOut+s),i),this.posOut+=s,i+=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,ti.number)(t),this.xofInto(new Uint8Array(t))}digestInto(t){if((0,ti.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:i,rounds:o,enableXOF:s}=this;return t||(t=new e(n,r,i,s,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=s,t.destroyed=this.destroyed,t}};q.Keccak=Io;var Ln=(e,t,n)=>(0,nn.wrapConstructor)(()=>new Io(t,e,n));q.sha3_224=Ln(6,144,224/8);q.sha3_256=Ln(6,136,256/8);q.sha3_384=Ln(6,104,384/8);q.sha3_512=Ln(6,72,512/8);q.keccak_224=Ln(1,144,224/8);q.keccak_256=Ln(1,136,256/8);q.keccak_384=Ln(1,104,384/8);q.keccak_512=Ln(1,72,512/8);var vy=(e,t,n)=>(0,nn.wrapXOFConstructorWithOpts)((r={})=>new Io(t,e,r.dkLen===void 0?n:r.dkLen,!0));q.shake128=vy(31,168,128/8);q.shake256=vy(31,136,256/8)});var Iy=ie((GI,Dn)=>{var{sha3_512:Yk}=wy(),Sy=24,To=32,Df=(e=4,t=Math.random)=>{let n="";for(;n.lengthky(Yk(e)).toString(36).slice(1),xy=Array.from({length:26},(e,t)=>String.fromCharCode(t+97)),e2=e=>xy[Math.floor(e()*xy.length)],by=({globalObj:e=typeof global<"u"?global:typeof window<"u"?window:{},random:t=Math.random}={})=>{let n=Object.keys(e).toString(),r=n.length?n+Df(To,t):Df(To,t);return Ey(r).substring(0,To)},Ry=e=>()=>e++,t2=476782367,Cy=({random:e=Math.random,counter:t=Ry(Math.floor(e()*t2)),length:n=Sy,fingerprint:r=by({random:e})}={})=>function(){let o=e2(e),s=Date.now().toString(36),l=t().toString(36),c=Df(n,e),u=`${s+c+l+r}`;return`${o+Ey(u).substring(1,n)}`},n2=Cy(),r2=(e,{minLength:t=2,maxLength:n=To}={})=>{let r=e.length,i=/^[0-9a-z]+$/;try{if(typeof e=="string"&&r>=t&&r<=n&&i.test(e))return!0}finally{}return!1};Dn.exports.getConstants=()=>({defaultLength:Sy,bigLength:To});Dn.exports.init=Cy;Dn.exports.createId=n2;Dn.exports.bufToBigInt=ky;Dn.exports.createCounter=Ry;Dn.exports.createFingerprint=by;Dn.exports.isCuid=r2});var Vl=ie((ZI,Oo)=>{var{createId:i2,init:o2,getConstants:s2,isCuid:l2}=Iy();Oo.exports.createId=i2;Oo.exports.init=o2;Oo.exports.getConstants=s2;Oo.exports.isCuid=l2});var Ky=ie((Po,ta)=>{(function(e,t){"use strict";var n="1.0.38",r="",i="?",o="function",s="undefined",l="object",c="string",u="major",a="model",p="name",f="type",d="vendor",g="version",w="architecture",_="console",m="mobile",h="tablet",y="smarttv",v="wearable",k="embedded",b=500,S="Amazon",R="Apple",O="ASUS",I="BlackBerry",N="Browser",ze="Chrome",as="Edge",jt="Firefox",Ut="Google",Xd="Huawei",La="LG",Da="Microsoft",Jd="Motorola",Ri="Opera",us="Samsung",Yd="Sharp",cs="Sony",Ma="Xiaomi",za="Zebra",ep="Facebook",tp="Chromium OS",np="Mac OS",Uv=function(j,V){var z={};for(var Z in j)V[Z]&&V[Z].length%2===0?z[Z]=V[Z].concat(j[Z]):z[Z]=j[Z];return z},fs=function(j){for(var V={},z=0;z0?H.length===2?typeof H[1]==o?this[H[0]]=H[1].call(this,Et):this[H[0]]=H[1]:H.length===3?typeof H[1]===o&&!(H[1].exec&&H[1].test)?this[H[0]]=Et?H[1].call(this,Et,H[2]):t:this[H[0]]=Et?Et.replace(H[1],H[2]):t:H.length===4&&(this[H[0]]=Et?H[3].call(this,Et.replace(H[1],H[2])):t):this[H]=Et||t;z+=2}},ja=function(j,V){for(var z in V)if(typeof V[z]===l&&V[z].length>0){for(var Z=0;Z2&&(M[a]="iPad",M[f]=h),M},this.getEngine=function(){var M={};return M[p]=t,M[g]=t,Ii.call(M,Z,kt.engine),M},this.getOS=function(){var M={};return M[p]=t,M[g]=t,Ii.call(M,Z,kt.os),H&&!M[p]&&Bt&&Bt.platform&&Bt.platform!="Unknown"&&(M[p]=Bt.platform.replace(/chrome os/i,tp).replace(/macos/i,np)),M},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 Z},this.setUA=function(M){return Z=typeof M===c&&M.length>b?Fa(M,b):M,this},this.setUA(Z),this};We.VERSION=n,We.BROWSER=fs([p,g,u]),We.CPU=fs([w]),We.DEVICE=fs([a,d,f,_,m,y,h,v,k]),We.ENGINE=We.OS=fs([p,g]),typeof Po!==s?(typeof ta!==s&&ta.exports&&(Po=ta.exports=We),Po.UAParser=We):typeof define===o&&define.amd?define(function(){return We}):typeof e!==s&&(e.UAParser=We);var wr=typeof e!==s&&(e.jQuery||e.Zepto);if(wr&&!wr.ua){var ds=new We;wr.ua=ds.getResult(),wr.ua.get=function(){return ds.getUA()},wr.ua.set=function(j){ds.setUA(j);var V=ds.getResult();for(var z in V)wr.ua[z]=V[z]}}})(typeof window=="object"?window:Po)});var e1=ie((WA,Y_)=>{var PE=1/0,AE="[object Symbol]",LE=/^\s+|\s+$/g,_d="\\ud800-\\udfff",$_="\\u0300-\\u036f\\ufe20-\\ufe23",H_="\\u20d0-\\u20f0",V_="\\ufe0e\\ufe0f",DE="["+_d+"]",gd="["+$_+H_+"]",yd="\\ud83c[\\udffb-\\udfff]",ME="(?:"+gd+"|"+yd+")",W_="[^"+_d+"]",G_="(?:\\ud83c[\\udde6-\\uddff]){2}",Z_="[\\ud800-\\udbff][\\udc00-\\udfff]",K_="\\u200d",Q_=ME+"?",q_="["+V_+"]?",zE="(?:"+K_+"(?:"+[W_,G_,Z_].join("|")+")"+q_+Q_+")*",FE=q_+Q_+zE,jE="(?:"+[W_+gd+"?",gd,G_,Z_,DE].join("|")+")",UE=RegExp(yd+"(?="+yd+")|"+jE+FE,"g"),BE=RegExp("["+K_+_d+$_+H_+V_+"]"),$E=typeof global=="object"&&global&&global.Object===Object&&global,HE=typeof self=="object"&&self&&self.Object===Object&&self,VE=$E||HE||Function("return this")();function WE(e){return e.split("")}function GE(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o-1;);return n}function QE(e,t){for(var n=e.length;n--&&X_(t,e[n],0)>-1;);return n}function qE(e){return BE.test(e)}function F_(e){return qE(e)?XE(e):WE(e)}function XE(e){return e.match(UE)||[]}var JE=Object.prototype,YE=JE.toString,j_=VE.Symbol,U_=j_?j_.prototype:void 0,B_=U_?U_.toString:void 0;function eb(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r=r?e:eb(e,t,n)}function nb(e){return!!e&&typeof e=="object"}function rb(e){return typeof e=="symbol"||nb(e)&&YE.call(e)==AE}function ib(e){return e==null?"":J_(e)}function ob(e,t,n){if(e=ib(e),e&&(n||t===void 0))return e.replace(LE,"");if(!e||!(t=J_(t)))return e;var r=F_(e),i=F_(t),o=KE(r,i),s=QE(r,i)+1;return tb(r,o,s).join("")}Y_.exports=ob});var l1=ie((XA,s1)=>{"use strict";function lb(e,t){for(;e.length{let[,r]=(0,Xr.useState)({}),o=(0,Xr.useRef)({data:e,deps:n||[],ready:!1,_loading:{},lastRender:0,lastRenderCount:0}).current;if((0,Xr.useEffect)(()=>{o.ready=!0,t&&t({init:!0})},[]),o.ready===!1)o._loading={},o.data.render=()=>{if(o.ready){if(Date.now()-o.lastRender<300?o.lastRenderCount++:o.lastRenderCount=0,o.lastRenderCount>300)throw new Error("local.render more than 300 times in less than 300ms");o.lastRender=Date.now(),r({})}};else if(o.deps.length>0&&n){for(let[s,l]of Object.entries(n))if(o.deps[s]!==l){o.deps[s]=l,t&&setTimeout(()=>{t({init:!1})});break}}return o.data};var B0=(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 i=0,o=setInterval(async()=>{await e()&&(r&&clearTimeout(r),clearInterval(o),n()),i>100&&clearInterval(o)},10)}else typeof e=="number"&&setTimeout(()=>{n()},e)});var pS=P(_e());var Jt=P(_e());function uf(e){let t=new WeakMap;function n(r,i=[]){if(!(r!==null&&typeof r=="object"))return r;let o=t.get(r);if(o)return`[Circular *${o.join(".")}]`;t.set(r,i);let s=Array.isArray(r)?[]:{};for(let[l,c]of Object.entries(r))s[l]=n(c,[...i,l]);return t.delete(r),s}return n(e)}var cf=(0,Jt.createContext)({global:{},render:()=>{}});var Pn=(e,t)=>{let n=(0,Jt.useContext)(cf),{global:r,render:i}=n;r[t]||(r[t]=e),(0,Jt.useEffect)(()=>{let s=null;return()=>{typeof s=="function"?s():s instanceof Promise&&s.then(l=>{typeof l=="function"&&l()})}},[]);let o=r[t];return o&&(o.render=s=>{s&&(r[t]=void 0),(0,Jt.startTransition)(i)}),o},Jr=uf;var z3=P(_e());var df=P(_e()),K0=P(lf()),Q0=P(V0()),q0=P(G()),X0=()=>{let e=typeof window=="object"?window:globalThis;e.React=df.default,e.ReactDOM=K0.default,e.JSXRuntime=q0.default,e.JSXDevRuntime=Q0.default,e.Fragment=df.default.Fragment};var xS={data:""},Y0=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||xS,eg=e=>{let t=Y0(e),n=t.data;return t.data="",n},SS=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,kS=/\/\*[^]*?\*\/| +/g,J0=/\n+/g,or=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+s+";":r+=o[1]=="f"?or(s,o):o+"{"+or(s,o[1]=="k"?"":t)+"}":typeof s=="object"?r+=or(s,t?t.replace(/([^,])+/g,l=>o.replace(/(^:.*)|([^,])+/g,c=>/&/.test(c)?c.replace(/&/g,l):l?l+" "+c:c)):o):s!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=or.p?or.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},Yt={},tg=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+tg(e[n]);return t}return e},ES=(e,t,n,r,i)=>{let o=tg(e),s=Yt[o]||(Yt[o]=(c=>{let u=0,a=11;for(;u>>0;return"go"+a})(o));if(!Yt[s]){let c=o!==e?e:(u=>{let a,p,f=[{}];for(;a=SS.exec(u.replace(kS,""));)a[4]?f.shift():a[3]?(p=a[3].replace(J0," ").trim(),f.unshift(f[0][p]=f[0][p]||{})):f[0][a[1]]=a[2].replace(J0," ").trim();return f[0]})(e);Yt[s]=or(i?{["@keyframes "+s]:c}:c,n?"":"."+s)}let l=n&&Yt.g?Yt.g:null;return n&&(Yt.g=Yt[s]),((c,u,a,p)=>{p?u.data=u.data.replace(p,c):u.data.indexOf(c)===-1&&(u.data=a?c+u.data:u.data+c)})(Yt[s],t,r,l),s},bS=(e,t,n)=>e.reduce((r,i,o)=>{let s=t[o];if(s&&s.call){let l=s(n),c=l&&l.props&&l.props.className||/^go/.test(l)&&l;s=c?"."+c:l&&typeof l=="object"?l.props?"":or(l,""):l===!1?"":l}return r+i+(s??"")},"");function Ml(e){let t=this||{},n=e.call?e(t.p):e;return ES(n.unshift?n.raw?bS(n,[].slice.call(arguments,1),t.p):n.reduce((r,i)=>Object.assign(r,i&&i.call?i(t.p):i),{}):n,Y0(t.target),t.g,t.o,t.k)}var N3=Ml.bind({g:1}),P3=Ml.bind({k:1});var ng=async(e=!0)=>{let t=typeof window=="object"?window:globalThis;e&&await B0(()=>t.__SRV_URL__),t.prasiContext={global:{},render(){}};let n=window.location,r=n.protocol.indexOf("http")===0?n.hostname:"localhost",i=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 o=n.port;t.baseurl=i+"://"+r+(o?":"+o:"")+"/",t.basepath||(t.basepath="/"),t.css=Ml,t.extractCss=eg,t.pathname=n.pathname,t.cx=(...s)=>{let l=[];return s.filter(c=>c?(typeof c=="string"&&c.trim(),!0):!1).forEach(c=>{if(Array.isArray(c))for(let u of c)typeof u=="string"&&u.trim()&&l.push(u.trim());else l.push(c.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.prasiContext.popState){t.prasiContext.popState();return}if(t.preventPopRender){t.preventPopRender=!1;return}t.prasiContext&&t.prasiContext.render&&(t.pathname=n.pathname,t.prasiContext.render())})};var pf=window,C={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(C.root.pathname.length);return e.startsWith("/")?e:`/${e}`},site:{id:pf._prasi?.site_id},init_local_effect:{},mode:"",route:{status:"init",pages:[],router:null},comp:{list:{},pending:{}},layout:{id:"",root:null,meta:null},cache:{urls:new Set},page:{id:"",url:"",root:null,meta:null,cache:{}}},rg=()=>{if(!C.root){let e=new URL(location.href);pf._prasi.basepath&&(e.pathname=pf._prasi.basepath),C.root=new URL(`${e.protocol}//${e.host}${e.pathname}`),C.root.pathname.endsWith("/")&&(C.root.pathname=C.root.pathname.substring(0,C.root.length-1))}};function hf(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function gf(e,t){let n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);let r=hf(n);return(i,o)=>r.then(s=>o(s.transaction(t,i).objectStore(t)))}var mf;function ig(){return mf||(mf=gf("keyval-store","keyval")),mf}function yf(e,t=ig()){return t("readonly",n=>hf(n.get(e)))}function zl(e,t,n=ig()){return n("readwrite",r=>(r.put(t,e),hf(r.transaction)))}var Mv=P(_e());var og=/^(?:[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 RS(e){return typeof e=="string"&&og.test(e)}var _f=RS;var So=P(G()),vf=({children:e,back:t})=>(0,So.jsxs)("div",{className:"flex items-center justify-center w-full h-full fixed inset-0 flex-col",children:[(0,So.jsx)("div",{children:e}),(0,So.jsxs)("div",{className:"border mt-2 rounded-md p-2 cursor-pointer",onClick:t||(()=>{history.back()}),children:[" ","Go Back"]})]});var lg=P(_e());var Oe=P(G()),sg=window,ko=({children:e,className:t,show:n,backdrop:r,note:i,alt:o,pointer:s})=>{let l=Nn({icon:(0,Oe.jsx)("div",{className:"px-4 py-1",children:"Loading..."}),value:.111,ival:null},()=>{});return(0,lg.useEffect)(()=>(l.ival=setInterval(()=>{l.value+=.1333,l.value>=1.3&&(l.value=0),l.render()},200),sg.loadingIcon&&(l.icon=(0,Oe.jsx)("img",{alt:"loading",src:sg.loadingIcon,className:css` width: 42px; height: 42px; `}),l.render()),()=>{clearInterval(l.ival)}),[]),(0,Oe.jsxs)(Oe.Fragment,{children:[r!==!1&&(0,Oe.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:c=>{c.preventDefault()}}),e?(0,Oe.jsx)("div",{onContextMenuCapture:c=>{c.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,Oe.jsx)("div",{className:"flex items-center justify-center flex-col space-y-3 bg-white p-4 rounded-lg select-none",children:(0,Oe.jsx)("div",{className:"text-sm",children:e})})}):(0,Oe.jsx)("div",{className:cx("flex flex-1 items-center justify-center z-40 transition-all",s!==!0&&"pointer-events-none",t||(r!==!1?"w-full h-full fixed":""),typeof n<"u"?n?"":"hidden":""),children:(0,Oe.jsxs)("div",{className:cx("w-1/6 flex flex-col items-center justify-center",css` @@ -15,7 +15,7 @@ Error generating stack: `+o.message+` } `),children:[(0,Oe.jsx)("div",{className:"text-[10px] text-slate-400 whitespace-nowrap",children:i}),(0,Oe.jsx)("div",{className:"pr-outer w-full h-[3px] flex items-stretch rounded-sm overflow-hidden",children:(0,Oe.jsx)("div",{className:cx("bg-blue-800 transition-all duration-200 rounded-sm w-full",css` transform: translate(${-100+l.value*200}%); - `)})}),o]})})]})};var Yl=P(_e());var ag=(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.status="ready",e.on_status_changes&&e.on_status_changes(e.status)};var An={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:{},preload:[]},comp:{load:async()=>null},on_preload:void 0};var By=P(_e());var de=P(_e()),wf=class extends de.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},Ck=()=>!1,ug=(0,de.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:Ck});function cg({children:e}){let[t,n]=(0,de.useState)(),r=(0,de.useRef)(),i=(0,de.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return de.default.createElement(ug.Provider,{value:i},de.default.createElement(wf,{error:t,onError:(o,s)=>{n(o),r.current?.(o,s)}},e))}cg.displayName="ReactUseErrorBoundaryContext";function fg(e){function t(n){return de.default.createElement(cg,null,de.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function dg(e){let t=(0,de.useContext)(ug);t.componentDidCatch.current=e;let n=(0,de.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var at=P(G()),Nt=fg(({children:e,meta:t,id:n,silent:r=!0})=>{let i=Nn({retrying:!1,meta:t}),[o,s]=dg((c,u)=>{r!==!0&&console.warn(c)});t&&i.meta!==t&&(i.meta=t,setTimeout(s));let l=t;return o?(0,at.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,at.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,at.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:i.retrying?(0,at.jsx)(at.Fragment,{children:"Retrying..."}):(0,at.jsx)(at.Fragment,{children:o.message})}),(0,at.jsx)("div",{className:"p-1",children:(0,at.jsx)("button",{onClick:()=>{i.retrying=!0,i.render(),setTimeout(()=>{i.retrying=!1,i.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 He=(e,t,n,r)=>{let i=e[t];return n==="desktop"||!n?!i&&e.mobile&&e.mobile[t]&&(i=e.mobile[t]):e.mobile&&e.mobile[t]&&(i=e.mobile[t]),i||(i=r),i};var pg=(e,t)=>{let n=He(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` + `)})}),o]})})]})};var Yl=P(_e());var ag=(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.status="ready",e.on_status_changes&&e.on_status_changes(e.status)};var An={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:{},preload:[]},comp:{load:async()=>null},on_preload:void 0};var By=P(_e());var de=P(_e()),wf=class extends de.Component{displayName="ReactUseErrorBoundary";componentDidCatch(...t){this.setState({}),this.props.onError(...t)}render(){return this.props.children}},CS=()=>!1,ug=(0,de.createContext)({componentDidCatch:{current:void 0},error:void 0,setError:CS});function cg({children:e}){let[t,n]=(0,de.useState)(),r=(0,de.useRef)(),i=(0,de.useMemo)(()=>({componentDidCatch:r,error:t,setError:n}),[t]);return de.default.createElement(ug.Provider,{value:i},de.default.createElement(wf,{error:t,onError:(o,s)=>{n(o),r.current?.(o,s)}},e))}cg.displayName="ReactUseErrorBoundaryContext";function fg(e){function t(n){return de.default.createElement(cg,null,de.default.createElement(e,{key:"WrappedComponent",...n}))}return t.displayName=`WithErrorBoundary(${e.displayName??e.name??"Component"})`,t}function dg(e){let t=(0,de.useContext)(ug);t.componentDidCatch.current=e;let n=(0,de.useCallback)(()=>{t.setError(void 0)},[]);return[t.error,n]}var at=P(G()),Nt=fg(({children:e,meta:t,id:n,silent:r=!0})=>{let i=Nn({retrying:!1,meta:t}),[o,s]=dg((c,u)=>{r!==!0&&console.warn(c)});t&&i.meta!==t&&(i.meta=t,setTimeout(s));let l=t;return o?(0,at.jsxs)("div",{className:"bg-red-100 border border-red-300 rounded-sm text-xs flex flex-col items-center",children:[(0,at.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["ERROR ",l?.item.name?"["+l.item.name+"]:":""]}),(0,at.jsx)("p",{className:"border-b border-red-300 px-1 pb-1 min-w-[100px]",children:i.retrying?(0,at.jsx)(at.Fragment,{children:"Retrying..."}):(0,at.jsx)(at.Fragment,{children:o.message})}),(0,at.jsx)("div",{className:"p-1",children:(0,at.jsx)("button",{onClick:()=>{i.retrying=!0,i.render(),setTimeout(()=>{i.retrying=!1,i.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 He=(e,t,n,r)=>{let i=e[t];return n==="desktop"||!n?!i&&e.mobile&&e.mobile[t]&&(i=e.mobile[t]):e.mobile&&e.mobile[t]&&(i=e.mobile[t]),i||(i=r),i};var pg=(e,t)=>{let n=He(e,"adv",t,{});return typeof n.css=="string"&&n.css.trim()?cx(css` ${n.css} `,t):""};var mg=(e,t)=>{let n=He(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; @@ -93,27 +93,27 @@ Error generating stack: `+o.message+` ${Tg(e,t.mode)} ${mg(e,t.mode)} ${Pg(e,t.mode)} - `,(t?.hover||t?.active)&&Ng({item:e,hover:t?.hover,active:t?.active}),pg(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Dg=P(G()),bo=(e,t,n,r,i)=>{let o=t.item,s;o.component?.style&&(s={style:o.component.style,className:Cf(o.component.style,{mode:e.mode})});let l={className:Cf(o,{mode:e.mode}),inherit:s},c={},u=t.item.childs,a;return t.item.type==="text"?(a=null,l.dangerouslySetInnerHTML={__html:t.item.html||""}):a=Array.isArray(u)&&u?.map(p=>{if(!p)return null;let{id:f}=p,d=n?e.layout?.meta[f]:e.meta[f];return d?(0,Dg.jsx)(en,{meta:d,is_layout:n,passprop:{...r},depth:i+1},f):(p.type==="item"&&p.component?.id&&console.warn(`Warning component ${p.name} - ${p.component.id} failed to load.`),null)}),l.children=a,t.item.adv?.html?(delete l.children,l.dangerouslySetInnerHTML={__html:t.item.adv?.html}):t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete l.children,delete l.dangerouslySetInnerHTML),{props:l,text_props:c}};var Uy=P(_e());var zy=P(Vl());var ni={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Wl(e={}){let t={options:e,rootNode:Oy(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)Ty(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>aE(t,n(r)),insert:(r,i)=>Ty(t,n(r),i),remove:r=>uE(t,n(r))}}function aE(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),i={},o=!1,s=null,l=e.rootNode,c=null;for(let u=0;u1){let f=r.length-u;l=l.placeholderChildren.find(d=>d.maxDepth===f)||null}else l=l.placeholderChildren[0]||null;if(!l)break;l.paramName&&(i[l.paramName]=a),o=!0}else l=p}return(l===null||l.data===null)&&s!==null&&(l=s,i[l.paramName||"_"]=c,o=!0),l?o?{...l.data,params:o?i:void 0}:l.data:null}function Ty(e,t,n){let r=!0,i=t.split("/"),o=e.rootNode,s=0,l=[o];for(let c of i){let u;if(u=o.children.get(c))o=u;else{let a=cE(c);u=Oy({type:a,parent:o}),o.children.set(c,u),a===ni.PLACEHOLDER?(u.paramName=c==="*"?`_${s++}`:c.slice(1),o.placeholderChildren.push(u),r=!1):a===ni.WILDCARD&&(o.wildcardChildNode=u,u.paramName=c.slice(3)||"_",r=!1),l.push(u),o=u}}for(let[c,u]of l.entries())u.maxDepth=Math.max(l.length-c,u.maxDepth||0);return o.data=n,r===!0&&(e.staticRoutesMap[t]=o),o}function uE(e,t){let n=!1,r=t.split("/"),i=e.rootNode;for(let o of r)if(i=i.children.get(o),!i)return n;if(i.data){let o=r.at(-1)||"";i.data=null,Object.keys(i.children).length===0&&i.parent&&(i.parent.children.delete(o),i.parent.wildcardChildNode=null,i.parent.placeholderChildren=[]),n=!0}return n}function Oy(e={}){return{type:e.type||ni.NORMAL,maxDepth:0,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildren:[]}}function cE(e){return e.startsWith("**")?ni.WILDCARD:e[0]===":"||e==="*"?ni.PLACEHOLDER:ni.NORMAL}var fE={id:"",name:"",domain:"",config:{api_url:""},js:"",js_compiled:"",responsive:"",layout:{id:"--",meta:void 0,entry:[]}},dE={id:"",name:"",url:"",snapshot:null,comps:{}};var Ne={active_id:!1,comp_id:!1,instance_comp_id:!1,instance_item_id:!1},ri={should_render_main:!0,hover:{id:""},scope:{},script_nav:{list:[],idx:-1},text:{id:"",content:"",timeout:null,el:null},get item_id(){return Ne.active_id===!1&&(Ne.active_id=localStorage.getItem("prasi-active-id")||""),Ne.active_id||""},set item_id(e){localStorage.setItem("prasi-active-id",e||""),Ne.active_id=e||""},get comp_id(){return Ne.comp_id===!1&&(Ne.comp_id=localStorage.getItem("prasi-comp-id")||""),Ne.comp_id||""},set comp_id(e){localStorage.setItem("prasi-comp-id",e||""),Ne.comp_id=e||""},instance:{get comp_id(){return Ne.instance_comp_id===!1&&(Ne.instance_comp_id=localStorage.getItem("prasi-instance-comp-id")||""),Ne.instance_comp_id||""},set comp_id(e){localStorage.setItem("prasi-instance-comp-id",e||""),Ne.instance_comp_id=e||""},get item_id(){return Ne.instance_item_id===!1&&(Ne.instance_item_id=localStorage.getItem("prasi-instance-item-id")||""),Ne.instance_item_id||""},set item_id(e){localStorage.setItem("prasi-instance-item-id",e||""),Ne.instance_item_id=e||""}}},XI={mode:"",user:{id:"",username:"",client_id:""},clients:{},status:"init",preview:{url_cache:new Set,route_cache:Wl(),page_cache:{},meta_cache:{}},sync:null,sync_assigned:!1,site:Jr(fE),site_tstamp:Date.now(),site_exports:{},site_dts:"",site_dts_entry:{},prisma_ext:"",script:{site_types:{},loaded:!1,do_edit:async(e,t)=>{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:dE,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{monaco:null,comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,rebuilding:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var Gl=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var cr=P(_e());var Mn=window;var pE=gf("prasi-cache","prasi-cache-store"),Ny={timeout:null,store:pE},Zl=(e,t)=>{let n=[...Py(t,"navigate(",")"),...Py(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let i of n)e.page.navs[r].add(i);clearTimeout(Ny.timeout),Ny.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Py=(e,t,n)=>{let r=0,i=0,o=[];for(;;){let s=e.indexOf(t,r);if(i=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let c=e.indexOf(`${l}${n}`,s+t.length+1),u=e.substring(s+t.length+1,c);r=c+2+n.length,o.push(u)}}if(i===r)break}return o};var ur=P(_e());var Ay=P(Rf()),ar=P(_e());var zf=P(G()),Ly=(e,t,n,r,i)=>o=>{let[s,l]=(0,ar.useState)({}),c=o.internal_key;n.item.script||(n.item.script={});let u=n.item.script;c&&(n.item.script_keyed||(n.item.script_keyed={}),n.item.script_keyed[c]||(n.item.script_keyed[c]={}),u=n.item.script_keyed[c]),u.passprop||(u.passprop={});let a={};if(u.passprop){let d=!1;for(let[g,w]of Object.entries(o))["children","key"].includes(g)||(d=!0,a[g]=w)}let p={...r,...a};if(n.editor_props=p,!Array.isArray(o.children)&&(0,ar.isValidElement)(o.children)&&typeof o.children=="object"){let d=(0,Ay.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(d)){let g=!0;for(let w of d)!(0,ar.isValidElement)(w)&&typeof w=="object"||(g=!1);if(g)return d.map(w=>{let _=e.meta[w.id];if(_||(e.meta[w.id]={item:w},_=e.meta[w.id]),_){if(Object.keys(_.item).length<=3&&_.mitem){let m={..._.item},h=_.mitem.toJSON();_.item={...h,...m}}return(0,zf.jsx)(en,{is_layout:t,meta:_,passprop:p,parent_key:o.internal_key,depth:i},w.id)}return null})}}if(!Array.isArray(o.children)&&!(0,ar.isValidElement)(o.children)&&typeof o.children=="object"){let d=o.children.id;if(d){let g=e.meta[d];if(!g){e.meta[d]={item:o.children},g=e.meta[d];let w=g.item.component?.id;w&&e.comp.load(w).then(_=>{if(_){for(let[h,y]of Object.entries(_)){let v=g.item;v[h]||(v[h]=y)}let m=g.item.component?.props;for(let[h,y]of Object.entries(_.component?.props||{}))m[h]||(m[h]=y);l({})}})}return(0,zf.jsx)(en,{is_layout:t,meta:g,passprop:p,parent_key:o.internal_key,depth:i})}}return jf(o,p,c?{parent_key:c}:void 0)},jf=(e,t,n)=>{let r={};if(Array.isArray(e)?r.children=e:r=e,Array.isArray(r.children)){if(r.children.length===1)return Mf(r.children[0],r,t,n);let i=[];for(let o of r.children)i.push(Mf(o,r,t,n));return i}return Mf(r.children,r,t,n)},Mf=(e,t,n,r)=>{if((0,ar.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,...r,passprop:{...n,...i}}}}return e};var ii={},Dy=(e,t,n)=>r=>{let i=(["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550")&&location.pathname.startsWith("/ed/"),o=n.item.id,{children:s,parent_key:l}=r,c=e.script?.init_local_effect,u=t?e.layout?.meta:e.meta,a=(0,ur.useRef)(ii[o]?ii[o]:r.value),[p,f]=(0,ur.useState)({}),d=a.current;return d.render=()=>{window.prasiContext.render?window.prasiContext.render():f({})},Kl(e,n,n.script?.scope,l),r.hook&&r.hook(d),(0,ur.useEffect)(()=>{if(n.parent?.instance_id&&u){let w=u[n.parent?.instance_id];if(w&&w.instances){for(let[_,m]of Object.entries(w.instances[n.parent.instance_id]))if(m===n.item.id){o=_;break}}}return!c[o]&&(typeof c=="object"&&(c[o]=!0),(async()=>r.effect&&(await r.effect(d),i&&(ii[o]=d)))()),()=>{}},[...r.deps||[],location.pathname]),(0,ur.useEffect)(()=>{i&&ii[o]===null&&(async()=>r.effect&&(await r.effect(d),i&&(ii[o]=d)))()},[ii[o]]),jf(s,{...n.script?.scope,[r.name]:d})};var Ff=P(Vl()),No=window,oi=(e,t,n)=>{No.prasiEditDevItem||(No.prasiEditDevItem={});let r=No.prasiEditDevItem[n];r||(No.prasiEditDevItem[n]={},r=No.prasiEditDevItem[n]);let i=()=>{let s=t.get("id")||"",l=r[s];return l||(r[s]=[],l=r[s]),l},o=t.toJSON();return{...o,edit:{get props(){if(o.component?.props){let s={};for(let[l,c]of Object.entries(o.component.props))if(c.content){let u=t.get("component")?.get("props")?.get(l)?.get("content");u?s[l]={mode:"jsx",value:oi(e,u,n)}:s[l]={mode:"jsx",value:null}}else{let u=typeof c.valueBuilt=="string"?c.valueBuilt.trim():"";if(u.endsWith(`; -`)&&(u=u.substring(0,u.length-2)),u&&u===c.value.trim()){let a=new Function(`return ${c.value}`);s[l]={mode:"string",value:a()}}else s[l]={mode:"raw",value:c.value,valueBuilt:c.valueBuilt}}return s}},get pending(){return[]},async commit(){let s={},l={};if(t){for(let[c,u]of Object.entries(r)){let a=e[c];if(!a||!a.mitem)continue;let f=a.mitem.toJSON();if(f&&f.component){let d=f?.component?.props;if(!d){console.log(f,d);return}let g={};for(let _ of u)if(_.type==="prop"&&d)d[_.name]&&(_.mode==="string"?(d[_.name].value=JSON.stringify(_.value),d[_.name].valueBuilt=JSON.stringify(_.value)):_.mode==="raw"?(d[_.name].value=_.value,_.valueBuilt?d[_.name].valueBuilt=_.valueBuilt:g[_.name]=_.value):_.mode==="jsx"&&(d[_.name]||(d[_.name]={meta:{type:"content-element"}}),_.value&&(d[_.name].content=si([_.value],l)[0])));else if(_.type==="set"&&typeof _.value=="object")for(let[m,h]of Object.entries(_.value))f[m]=h;else if(_.type==="child"&&Array.isArray(_.childs))if(f.component?.id)f.component.props||(f.component.props={}),f.component.props.child={meta:{type:"content-element"},content:{type:"item",id:(0,Ff.createId)(),name:"child",childs:si(_.childs.filter(m=>m),l)}};else{let m=si(_.childs.filter(h=>h),l);f.childs=m}for(let[_,m]of Object.entries(l))g[_]=m.value;let w=await _api.code_build(g);if(d)for(let[_,m]of Object.entries(w))d[_]?d[_].valueBuilt=m:l[_]&&(l[_].valueBuilt=m);s[c]=f}}t.doc?.transact(()=>{for(let[c,u]of Object.entries(s)){let a=e[c];a.mitem&&syncronize(a.mitem,u)}})}},setValue(s,l){let c=i(),u=l;if(s==="childs")throw new Error("Please modify childs via .child");c.push({type:"set",name:s,value:u})},setProp(s,l){let c=i();typeof l=="string"?c.push({type:"prop",mode:"string",name:s,value:l}):l.mode==="string"?c.push({type:"prop",mode:"string",name:s,value:l.value}):l.mode==="raw"?c.push({type:"prop",mode:"raw",name:s,value:l.value,valueBuilt:l.valueBuilt}):l.mode==="jsx"&&c.push({type:"prop",mode:"jsx",name:s,value:l.value})},setChilds(s){i().push({type:"child",childs:s})},get childs(){let s=t?.toJSON();if(s.component?.id){if((s.component?.props.child).content){let c=t.get("component")?.get("props")?.get("child")?.get("content");if(c)return[oi(e,c,n)]}return[]}return s.childs?s.childs.map(l=>{if(l){let c=e[l.id];if(c&&c.mitem)return oi(e,c.mitem,n)}}).filter(l=>l):[]},get parent(){if(t){let s=t.parent.toJSON();if(Array.isArray(s)){let l=(t.parent?.parent).get("id"),c=e[l].mitem;if(c)return{item:oi(e,c,n),child_type:"child",child_idx:s.findIndex(u=>u.id===o.id)}}}return null}}}},mE=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))i.mode?i.mode==="string"?n[r]={value:JSON.stringify(i.value),valueBuilt:JSON.stringify(i.value),meta:{type:"text"}}:i.mode==="jsx"&&i.value?n[r]={value:"",valueBuilt:"",content:si([i.value],t)[0],meta:{type:"content-element"}}:i.mode==="raw"&&(n[r]={value:i.value,valueBuilt:i.valueBuilt,meta:{type:"text"}}):n[r]=i;return n},si=(e,t)=>{let n=t||{};return e.map(i=>{let o={...i};if(delete o.edit,o.id||(o.id=(0,Ff.createId)()),o.component&&(o.component.instances||(o.component.instances={}),o.component.ref_ids||(o.component.ref_ids={}),o.component?.props)){o.component.props=mE(o.component.props,n);for(let[s,l]of Object.entries(o.component.props))!l.valueBuilt&&l.value&&(n[o.id+"|||"+s]=l),l.content&&(l.content=si([l.content],n)[0])}return o.childs?o.childs=si(o.childs,n):o.childs=[],o})};var li=(e,t,n)=>({...t,edit:{setChilds(r){},get childs(){if(t.component?.id){let r=t.component?.props.child;return r.content?[li(e,r.content,n)]:[]}return t.childs?t.childs.map(r=>{if(r){let i=e[r.id];if(i&&i.item)return li(e,i.item,n)}}).filter(r=>r):[]},get props(){if(t.component?.props){let r={};for(let[i,o]of Object.entries(t.component.props))if(o.content){let s=t.component?.props?.[i]?.content;s?r[i]={mode:"jsx",value:li(e,s,n)}:r[i]={mode:"jsx",value:null}}else{let s=typeof o.valueBuilt=="string"?o.valueBuilt.trim():"";if(s.endsWith(`; -`)&&(s=s.substring(0,s.length-2)),s&&s===o.value.trim()){let l=new Function(`return ${o.value}`);r[i]={mode:"string",value:l()}}else r[i]={mode:"raw",value:o.value,valueBuilt:o.valueBuilt}}return r}},async commit(){},get parent(){let r=e[t.id];if(r&&r.parent?.id){let i=e[r.parent.id];return li(e,i.item,n)}return null},pending:[],setProp(r,i){},setValue(r,i){}}});var Uf=P(G()),My=(e,t,n,r,i,o)=>{let s=bo(e,t,n,r,i);e.visit&&e.visit(t,s),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:Dy(e,n,t),PassProp:Ly(e,n,t,r,i)};let l=t.script,c=window.exports,u={useEffect:cr.useEffect,children:s.props.children,props:s.props,Local:l?.Local,db:e.site.db,api:e.site.api,PassProp:l?.PassProp,ErrorBox:Nt,newElement:()=>{},__props:r,_item:t.mitem?oi(e.meta,t.mitem,e.page.cur.id):li(e.meta,t.item,e.page.cur.id),_meta:e.meta,render:f=>{let d=f;if((0,cr.isValidElement)(f)&&f.props.children){let g=_=>{let m=!1,h=[];if((0,cr.isValidElement)(_)){if(_.type===t.script?.PassProp)return{should_replace:!0,el:{..._,props:{..._.props,internal_key:_.key}}};if(Array.isArray(_.props?.children))for(let y of _.props?.children)if(Array.isArray(y)){let v=[],S=!1;for(let b of y){let k=g(b);k.should_replace?(v.push(k.el),S=!0):v.push(b)}S?(m=!0,h.push(v)):h.push(y)}else typeof y=="object"&&y?y.type===t.script?.PassProp&&(m=!0,h.push({...y,props:{...y.props,internal_key:y.props.key}})):h.push(y)}return{should_replace:m,el:{..._,props:{..._.props,children:h}}}},w=g(f);w.should_replace&&(d=w.el)}l&&(l.result=(0,Uf.jsx)(cr.Suspense,{children:d}))},params,...Gl(e),...c,...r};if(typeof r=="object"){for(let[f,d]of Object.entries(r))if(typeof d=="object"&&d&&d._jsx){let g=d;u[f]=(0,Uf.jsx)(hE,{fn:g.fn,passprop:{...r},meta:t})}}!Mn.isEditor&&t.item.adv?.js&&Zl(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",p=$f(a,Bf)||"";try{new Function(...Object.keys(u),"___js",`// ${t.item.name}: ${t.item.id} + `,(t?.hover||t?.active)&&Ng({item:e,hover:t?.hover,active:t?.active}),pg(e,t.mode)])}catch(n){console.log(n)}return cx([])};var Dg=P(G()),bo=(e,t,n,r,i)=>{let o=t.item,s;o.component?.style&&(s={style:o.component.style,className:Cf(o.component.style,{mode:e.mode})});let l={className:Cf(o,{mode:e.mode}),inherit:s},c={},u=t.item.childs,a;return t.item.type==="text"?(a=null,l.dangerouslySetInnerHTML={__html:t.item.html||""}):a=Array.isArray(u)&&u?.map(p=>{if(!p)return null;let{id:f}=p,d=n?e.layout?.meta[f]:e.meta[f];return d?(0,Dg.jsx)(en,{meta:d,is_layout:n,passprop:{...r},depth:i+1},f):(p.type==="item"&&p.component?.id&&console.warn(`Warning component ${p.name} - ${p.component.id} failed to load.`),null)}),l.children=a,t.item.adv?.html?(delete l.children,l.dangerouslySetInnerHTML={__html:t.item.adv?.html}):t.item.adv?.js&&!t.item.adv.js.includes("children")&&(delete l.children,delete l.dangerouslySetInnerHTML),{props:l,text_props:c}};var Uy=P(_e());var zy=P(Vl());var ni={NORMAL:0,WILDCARD:1,PLACEHOLDER:2};function Wl(e={}){let t={options:e,rootNode:Oy(),staticRoutesMap:{}},n=r=>e.strictTrailingSlash?r:r.replace(/\/$/,"")||"/";if(e.routes)for(let r in e.routes)Ty(t,n(r),e.routes[r]);return{ctx:t,lookup:r=>a2(t,n(r)),insert:(r,i)=>Ty(t,n(r),i),remove:r=>u2(t,n(r))}}function a2(e,t){let n=e.staticRoutesMap[t];if(n)return n.data;let r=t.split("/"),i={},o=!1,s=null,l=e.rootNode,c=null;for(let u=0;u1){let f=r.length-u;l=l.placeholderChildren.find(d=>d.maxDepth===f)||null}else l=l.placeholderChildren[0]||null;if(!l)break;l.paramName&&(i[l.paramName]=a),o=!0}else l=p}return(l===null||l.data===null)&&s!==null&&(l=s,i[l.paramName||"_"]=c,o=!0),l?o?{...l.data,params:o?i:void 0}:l.data:null}function Ty(e,t,n){let r=!0,i=t.split("/"),o=e.rootNode,s=0,l=[o];for(let c of i){let u;if(u=o.children.get(c))o=u;else{let a=c2(c);u=Oy({type:a,parent:o}),o.children.set(c,u),a===ni.PLACEHOLDER?(u.paramName=c==="*"?`_${s++}`:c.slice(1),o.placeholderChildren.push(u),r=!1):a===ni.WILDCARD&&(o.wildcardChildNode=u,u.paramName=c.slice(3)||"_",r=!1),l.push(u),o=u}}for(let[c,u]of l.entries())u.maxDepth=Math.max(l.length-c,u.maxDepth||0);return o.data=n,r===!0&&(e.staticRoutesMap[t]=o),o}function u2(e,t){let n=!1,r=t.split("/"),i=e.rootNode;for(let o of r)if(i=i.children.get(o),!i)return n;if(i.data){let o=r.at(-1)||"";i.data=null,Object.keys(i.children).length===0&&i.parent&&(i.parent.children.delete(o),i.parent.wildcardChildNode=null,i.parent.placeholderChildren=[]),n=!0}return n}function Oy(e={}){return{type:e.type||ni.NORMAL,maxDepth:0,parent:e.parent||null,children:new Map,data:e.data||null,paramName:e.paramName||null,wildcardChildNode:null,placeholderChildren:[]}}function c2(e){return e.startsWith("**")?ni.WILDCARD:e[0]===":"||e==="*"?ni.PLACEHOLDER:ni.NORMAL}var f2={id:"",name:"",domain:"",config:{api_url:""},js:"",js_compiled:"",responsive:"",layout:{id:"--",meta:void 0,entry:[]}},d2={id:"",name:"",url:"",snapshot:null,comps:{}};var Ne={active_id:!1,comp_id:!1,instance_comp_id:!1,instance_item_id:!1},ri={should_render_main:!0,hover:{id:""},scope:{},script_nav:{list:[],idx:-1},text:{id:"",content:"",timeout:null,el:null},get item_id(){return Ne.active_id===!1&&(Ne.active_id=localStorage.getItem("prasi-active-id")||""),Ne.active_id||""},set item_id(e){localStorage.setItem("prasi-active-id",e||""),Ne.active_id=e||""},get comp_id(){return Ne.comp_id===!1&&(Ne.comp_id=localStorage.getItem("prasi-comp-id")||""),Ne.comp_id||""},set comp_id(e){localStorage.setItem("prasi-comp-id",e||""),Ne.comp_id=e||""},instance:{get comp_id(){return Ne.instance_comp_id===!1&&(Ne.instance_comp_id=localStorage.getItem("prasi-instance-comp-id")||""),Ne.instance_comp_id||""},set comp_id(e){localStorage.setItem("prasi-instance-comp-id",e||""),Ne.instance_comp_id=e||""},get item_id(){return Ne.instance_item_id===!1&&(Ne.instance_item_id=localStorage.getItem("prasi-instance-item-id")||""),Ne.instance_item_id||""},set item_id(e){localStorage.setItem("prasi-instance-item-id",e||""),Ne.instance_item_id=e||""}}},XI={mode:"",user:{id:"",username:"",client_id:""},clients:{},status:"init",preview:{url_cache:new Set,route_cache:Wl(),page_cache:{},meta_cache:{}},sync:null,sync_assigned:!1,site:Jr(f2),site_tstamp:Date.now(),site_exports:{},site_dts:"",site_dts_entry:{},prisma_ext:"",script:{site_types:{},loaded:!1,do_edit:async(e,t)=>{},db:null,api:null,init_local_effect:{}},page:{history:{id:"",show:!1},root_id:"root",cur:d2,doc:null,list:{},building:!1,meta:{},entry:[],tree:[],render:()=>{}},comp:{doc:null,item:null,loaded:{},list:{},group:{}},code:{},global_prop:[],ui:{monaco:null,comp_editable:localStorage.getItem("prasi-comp-editable")==="yes",zoom:localStorage.zoom||"100%",side:{prop:!0},layout:{left:parseInt(localStorage.getItem("prasi-layout-left")||"250"),right:parseInt(localStorage.getItem("prasi-layout-right")||"250")},prevent_indent_hook:!1,syncing:!1,tree:{item_loading:[],search:"",search_ref:null,search_mode:{Name:!0,JS:!1,HTML:!1,CSS:!1},rename_id:"",open:{}},popup:{file:{enabled:!1,open:!1,picker:{value:"",on_pick:!1,multi:!1},path:"/",expanded:JSON.parse(localStorage.getItem("panel-file-expanded")||"{}"),entry:{},selected:new Set,action:null,file_renaming:"",file_ctx_menu_event:null,tree:[],tree_renaming:"",tree_ctx_path:"",tree_ctx_menu_event:null,preview:!0,upload:{started:!1,progress:{}}},code:{init:!1,open:!1,name:"site",log:"",loading:!1,rebuilding:!1,startup_status:"init",error:!1,show_log:!1,list:{}},page:{open:null,form:null},script:{open:!1,mode:"js",lastMode:"js",type:"item",prop_kind:"",prop_name:"",on_close:()=>{},typings:{status:"ok",err_msg:""},wb_render:()=>{}},site:null,site_form:null,comp:{preview_id:"",open:null,import:!1},comp_group:null,api:{open:!1}}}};var Gl=e=>({isMobile:e.mode==="mobile",isDesktop:e.mode==="desktop",isEditor:location.pathname.startsWith("/ed/")});var cr=P(_e());var Mn=window;var p2=gf("prasi-cache","prasi-cache-store"),Ny={timeout:null,store:p2},Zl=(e,t)=>{let n=[...Py(t,"navigate(",")"),...Py(t,"href = ",";")],r=e.page.cur.id;e.page.navs[r]||(e.page.navs[r]=new Set);for(let i of n)e.page.navs[r].add(i);clearTimeout(Ny.timeout),Ny.timeout=setTimeout(()=>{e.on_nav_loaded&&e.on_nav_loaded({urls:Array.from(e.page.navs[r])})},100)},Py=(e,t,n)=>{let r=0,i=0,o=[];for(;;){let s=e.indexOf(t,r);if(i=r,s>=0){let l=e[s+t.length];if(l==='"'||l==="'"||l==="`"){let c=e.indexOf(`${l}${n}`,s+t.length+1),u=e.substring(s+t.length+1,c);r=c+2+n.length,o.push(u)}}if(i===r)break}return o};var ur=P(_e());var Ay=P(Rf()),ar=P(_e());var zf=P(G()),Ly=(e,t,n,r,i)=>o=>{let[s,l]=(0,ar.useState)({}),c=o.internal_key;n.item.script||(n.item.script={});let u=n.item.script;c&&(n.item.script_keyed||(n.item.script_keyed={}),n.item.script_keyed[c]||(n.item.script_keyed[c]={}),u=n.item.script_keyed[c]),u.passprop||(u.passprop={});let a={};if(u.passprop){let d=!1;for(let[g,w]of Object.entries(o))["children","key"].includes(g)||(d=!0,a[g]=w)}let p={...r,...a};if(n.editor_props=p,!Array.isArray(o.children)&&(0,ar.isValidElement)(o.children)&&typeof o.children=="object"){let d=(0,Ay.default)(o.children,"props.meta.item.component.props.child.content.childs");if(Array.isArray(d)){let g=!0;for(let w of d)!(0,ar.isValidElement)(w)&&typeof w=="object"||(g=!1);if(g)return d.map(w=>{let _=e.meta[w.id];if(_||(e.meta[w.id]={item:w},_=e.meta[w.id]),_){if(Object.keys(_.item).length<=3&&_.mitem){let m={..._.item},h=_.mitem.toJSON();_.item={...h,...m}}return(0,zf.jsx)(en,{is_layout:t,meta:_,passprop:p,parent_key:o.internal_key,depth:i},w.id)}return null})}}if(!Array.isArray(o.children)&&!(0,ar.isValidElement)(o.children)&&typeof o.children=="object"){let d=o.children.id;if(d){let g=e.meta[d];if(!g){e.meta[d]={item:o.children},g=e.meta[d];let w=g.item.component?.id;w&&e.comp.load(w).then(_=>{if(_){for(let[h,y]of Object.entries(_)){let v=g.item;v[h]||(v[h]=y)}let m=g.item.component?.props;for(let[h,y]of Object.entries(_.component?.props||{}))m[h]||(m[h]=y);l({})}})}return(0,zf.jsx)(en,{is_layout:t,meta:g,passprop:p,parent_key:o.internal_key,depth:i})}}return Ff(o,p,c?{parent_key:c}:void 0)},Ff=(e,t,n)=>{let r={};if(Array.isArray(e)?r.children=e:r=e,Array.isArray(r.children)){if(r.children.length===1)return Mf(r.children[0],r,t,n);let i=[];for(let o of r.children)i.push(Mf(o,r,t,n));return i}return Mf(r.children,r,t,n)},Mf=(e,t,n,r)=>{if((0,ar.isValidElement)(e)){let i={...t};return delete i.children,{...e,props:{...e.props,...r,passprop:{...n,...i}}}}return e};var ii={},Dy=(e,t,n)=>r=>{let i=(["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550")&&location.pathname.startsWith("/ed/"),o=n.item.id,{children:s,parent_key:l}=r,c=e.script?.init_local_effect,u=t?e.layout?.meta:e.meta,a=(0,ur.useRef)(ii[o]?ii[o]:r.value),[p,f]=(0,ur.useState)({}),d=a.current;return d.render=()=>{window.prasiContext.render?window.prasiContext.render():f({})},Kl(e,n,n.script?.scope,l),r.hook&&r.hook(d),(0,ur.useEffect)(()=>{if(n.parent?.instance_id&&u){let w=u[n.parent?.instance_id];if(w&&w.instances){for(let[_,m]of Object.entries(w.instances[n.parent.instance_id]))if(m===n.item.id){o=_;break}}}return!c[o]&&(typeof c=="object"&&(c[o]=!0),(async()=>r.effect&&(await r.effect(d),i&&(ii[o]=d)))()),()=>{}},[...r.deps||[],location.pathname]),(0,ur.useEffect)(()=>{i&&ii[o]===null&&(async()=>r.effect&&(await r.effect(d),i&&(ii[o]=d)))()},[ii[o]]),Ff(s,{...n.script?.scope,[r.name]:d})};var jf=P(Vl()),No=window,oi=(e,t,n)=>{No.prasiEditDevItem||(No.prasiEditDevItem={});let r=No.prasiEditDevItem[n];r||(No.prasiEditDevItem[n]={},r=No.prasiEditDevItem[n]);let i=()=>{let s=t.get("id")||"",l=r[s];return l||(r[s]=[],l=r[s]),l},o=t.toJSON();return{...o,edit:{get props(){if(o.component?.props){let s={};for(let[l,c]of Object.entries(o.component.props))if(c.content){let u=t.get("component")?.get("props")?.get(l)?.get("content");u?s[l]={mode:"jsx",value:oi(e,u,n)}:s[l]={mode:"jsx",value:null}}else{let u=typeof c.valueBuilt=="string"?c.valueBuilt.trim():"";if(u.endsWith(`; +`)&&(u=u.substring(0,u.length-2)),u&&u===c.value.trim()){let a=new Function(`return ${c.value}`);s[l]={mode:"string",value:a()}}else s[l]={mode:"raw",value:c.value,valueBuilt:c.valueBuilt}}return s}},get pending(){return[]},async commit(){let s={},l={};if(t){for(let[c,u]of Object.entries(r)){let a=e[c];if(!a||!a.mitem)continue;let f=a.mitem.toJSON();if(f&&f.component){let d=f?.component?.props;if(!d){console.log(f,d);return}let g={};for(let _ of u)if(_.type==="prop"&&d)d[_.name]&&(_.mode==="string"?(d[_.name].value=JSON.stringify(_.value),d[_.name].valueBuilt=JSON.stringify(_.value)):_.mode==="raw"?(d[_.name].value=_.value,_.valueBuilt?d[_.name].valueBuilt=_.valueBuilt:g[_.name]=_.value):_.mode==="jsx"&&(d[_.name]||(d[_.name]={meta:{type:"content-element"}}),_.value&&(d[_.name].content=si([_.value],l)[0])));else if(_.type==="set"&&typeof _.value=="object")for(let[m,h]of Object.entries(_.value))f[m]=h;else if(_.type==="child"&&Array.isArray(_.childs))if(f.component?.id)f.component.props||(f.component.props={}),f.component.props.child={meta:{type:"content-element"},content:{type:"item",id:(0,jf.createId)(),name:"child",childs:si(_.childs.filter(m=>m),l)}};else{let m=si(_.childs.filter(h=>h),l);f.childs=m}for(let[_,m]of Object.entries(l))g[_]=m.value;let w=await _api.code_build(g);if(d)for(let[_,m]of Object.entries(w))d[_]?d[_].valueBuilt=m:l[_]&&(l[_].valueBuilt=m);s[c]=f}}t.doc?.transact(()=>{for(let[c,u]of Object.entries(s)){let a=e[c];a.mitem&&syncronize(a.mitem,u)}})}},setValue(s,l){let c=i(),u=l;if(s==="childs")throw new Error("Please modify childs via .child");c.push({type:"set",name:s,value:u})},setProp(s,l){let c=i();typeof l=="string"?c.push({type:"prop",mode:"string",name:s,value:l}):l.mode==="string"?c.push({type:"prop",mode:"string",name:s,value:l.value}):l.mode==="raw"?c.push({type:"prop",mode:"raw",name:s,value:l.value,valueBuilt:l.valueBuilt}):l.mode==="jsx"&&c.push({type:"prop",mode:"jsx",name:s,value:l.value})},setChilds(s){i().push({type:"child",childs:s})},get childs(){let s=t?.toJSON();if(s.component?.id){if((s.component?.props.child).content){let c=t.get("component")?.get("props")?.get("child")?.get("content");if(c)return[oi(e,c,n)]}return[]}return s.childs?s.childs.map(l=>{if(l){let c=e[l.id];if(c&&c.mitem)return oi(e,c.mitem,n)}}).filter(l=>l):[]},get parent(){if(t){let s=t.parent.toJSON();if(Array.isArray(s)){let l=(t.parent?.parent).get("id"),c=e[l].mitem;if(c)return{item:oi(e,c,n),child_type:"child",child_idx:s.findIndex(u=>u.id===o.id)}}}return null}}}},m2=(e,t)=>{let n={};for(let[r,i]of Object.entries(e))i.mode?i.mode==="string"?n[r]={value:JSON.stringify(i.value),valueBuilt:JSON.stringify(i.value),meta:{type:"text"}}:i.mode==="jsx"&&i.value?n[r]={value:"",valueBuilt:"",content:si([i.value],t)[0],meta:{type:"content-element"}}:i.mode==="raw"&&(n[r]={value:i.value,valueBuilt:i.valueBuilt,meta:{type:"text"}}):n[r]=i;return n},si=(e,t)=>{let n=t||{};return e.map(i=>{let o={...i};if(delete o.edit,o.id||(o.id=(0,jf.createId)()),o.component&&(o.component.instances||(o.component.instances={}),o.component.ref_ids||(o.component.ref_ids={}),o.component?.props)){o.component.props=m2(o.component.props,n);for(let[s,l]of Object.entries(o.component.props))!l.valueBuilt&&l.value&&(n[o.id+"|||"+s]=l),l.content&&(l.content=si([l.content],n)[0])}return o.childs?o.childs=si(o.childs,n):o.childs=[],o})};var li=(e,t,n)=>({...t,edit:{setChilds(r){},get childs(){if(t.component?.id){let r=t.component?.props.child;return r.content?[li(e,r.content,n)]:[]}return t.childs?t.childs.map(r=>{if(r){let i=e[r.id];if(i&&i.item)return li(e,i.item,n)}}).filter(r=>r):[]},get props(){if(t.component?.props){let r={};for(let[i,o]of Object.entries(t.component.props))if(o.content){let s=t.component?.props?.[i]?.content;s?r[i]={mode:"jsx",value:li(e,s,n)}:r[i]={mode:"jsx",value:null}}else{let s=typeof o.valueBuilt=="string"?o.valueBuilt.trim():"";if(s.endsWith(`; +`)&&(s=s.substring(0,s.length-2)),s&&s===o.value.trim()){let l=new Function(`return ${o.value}`);r[i]={mode:"string",value:l()}}else r[i]={mode:"raw",value:o.value,valueBuilt:o.valueBuilt}}return r}},async commit(){},get parent(){let r=e[t.id];if(r&&r.parent?.id){let i=e[r.parent.id];return li(e,i.item,n)}return null},pending:[],setProp(r,i){},setValue(r,i){}}});var Uf=P(G()),My=(e,t,n,r,i,o)=>{let s=bo(e,t,n,r,i);e.visit&&e.visit(t,s),t.script?t.script.scope=r:t.script={scope:r,result:null,Local:Dy(e,n,t),PassProp:Ly(e,n,t,r,i)};let l=t.script,c=window.exports,u={useEffect:cr.useEffect,children:s.props.children,props:s.props,Local:l?.Local,db:e.site.db,api:e.site.api,PassProp:l?.PassProp,ErrorBox:Nt,newElement:()=>{},__props:r,_item:t.mitem?oi(e.meta,t.mitem,e.page.cur.id):li(e.meta,t.item,e.page.cur.id),_meta:e.meta,render:f=>{let d=f;if((0,cr.isValidElement)(f)&&f.props.children){let g=_=>{let m=!1,h=[];if((0,cr.isValidElement)(_)){if(_.type===t.script?.PassProp)return{should_replace:!0,el:{..._,props:{..._.props,internal_key:_.key}}};if(Array.isArray(_.props?.children))for(let y of _.props?.children)if(Array.isArray(y)){let v=[],k=!1;for(let b of y){let S=g(b);S.should_replace?(v.push(S.el),k=!0):v.push(b)}k?(m=!0,h.push(v)):h.push(y)}else typeof y=="object"&&y?y.type===t.script?.PassProp&&(m=!0,h.push({...y,props:{...y.props,internal_key:y.props.key}})):h.push(y)}return{should_replace:m,el:{..._,props:{..._.props,children:h}}}},w=g(f);w.should_replace&&(d=w.el)}l&&(l.result=(0,Uf.jsx)(cr.Suspense,{children:d}))},params,...Gl(e),...c,...r};if(typeof r=="object"){for(let[f,d]of Object.entries(r))if(typeof d=="object"&&d&&d._jsx){let g=d;u[f]=(0,Uf.jsx)(h2,{fn:g.fn,passprop:{...r},meta:t})}}!Mn.isEditor&&t.item.adv?.js&&Zl(e,t.item.adv.js);let a=t.item.adv?.jsBuilt||"",p=$f(a,Bf)||"";try{new Function(...Object.keys(u),"___js",`// ${t.item.name}: ${t.item.id} try { ${p} } catch(e) { console.warn("Error at item ${t.item.name}:", ___js); console.error(e); } - `)(...Object.values(u),t.item.adv?.js)}catch(f){console.warn(`Error at item ${t.item.name}:`,t.item.adv?.js),console.error(f)}Kl(e,t,r,o)},hE=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),Bf={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},$f=(e,t)=>{let n=e;for(let[r,i]of Object.entries(t))n=n.replaceAll(r,i);return n};var Fy=P(G());var jy=(e,t,n,r,i,o)=>{if(t.item.component?.id){let s=t.item.script;if(o?(t.item.script_keyed||(t.item.script_keyed={}),t.item.script_keyed[o]||(t.item.script_keyed[o]={}),s=t.item.script_keyed[o]):(t.item.script||(t.item.script={}),s=t.item.script),!s)return;let c={...window.exports,db:e.site.db,api:e.site.api,...Gl(e),...r,params};s.props={};let u=new Set;if(t.item.component.props){let a={};for(let[p,f]of Object.entries(t.item.component.props))try{if(f.meta?.type==="content-element"){let m={_jsx:!0,fn:h=>{let y=f.content?.id;if(y){let v=n?e.layout?.meta[y]:e.meta[y];if(!v)return null;let S=t.instances;if(!h.meta.item.originalId||!S||!S[t.item.id])return null;let k=h.meta.item.originalId;if(v.mitem&&(f.jsxCalledBy&&(!f.jsxCalledBy.includes(k)||f.jsxCalledBy.length!==2)||!f.jsxCalledBy)){let R=t.mitem?.get("component")?.get("props")?.get(p);if(R){let O=R.get("jsxCalledBy");!O||typeof O!="object"?R.set("jsxCalledBy",[t.item.id,k]):Array.isArray(O)&&(!O.includes(k)||O.length!==2||O[0]!==t.item.id||O[1]!==k)&&R.set("jsxCalledBy",[t.item.id,k])}}return(0,Fy.jsx)(en,{meta:v,passprop:h.passprop,is_layout:n,depth:i+1})}return null}};c[p]=m,r&&(r[p]=m);continue}if(f.value&&Zl(e,f.value),!f.valueBuilt&&f.value&&t.mitem){let m=t.mitem?.get("component")?.get("props")?.get(p);if(m){gE(m,f.value);return}}let d=f.valueBuilt||"",g=$f(d,Bf)||"",w=new Function(...Object.keys(c),`// [${t.item.name}] ${p}: ${t.item.id} + `)(...Object.values(u),t.item.adv?.js)}catch(f){console.warn(`Error at item ${t.item.name}:`,t.item.adv?.js),console.error(f)}Kl(e,t,r,o)},h2=({fn:e,meta:t,passprop:n})=>e({passprop:n,meta:t}),Bf={"stroke-width":"strokeWidth","fill-rule":"fillRule","clip-rule":"clipRule","stroke-linejoin":"strokeLinejoin","stroke-linecap":"strokeLinecap","clip-path":"clipPath"},$f=(e,t)=>{let n=e;for(let[r,i]of Object.entries(t))n=n.replaceAll(r,i);return n};var jy=P(G());var Fy=(e,t,n,r,i,o)=>{if(t.item.component?.id){let s=t.item.script;if(o?(t.item.script_keyed||(t.item.script_keyed={}),t.item.script_keyed[o]||(t.item.script_keyed[o]={}),s=t.item.script_keyed[o]):(t.item.script||(t.item.script={}),s=t.item.script),!s)return;let c={...window.exports,db:e.site.db,api:e.site.api,...Gl(e),...r,params};s.props={};let u=new Set;if(t.item.component.props){let a={};for(let[p,f]of Object.entries(t.item.component.props))try{if(f.meta?.type==="content-element"){let m={_jsx:!0,fn:h=>{let y=f.content?.id;if(y){let v=n?e.layout?.meta[y]:e.meta[y];if(!v)return null;let k=t.instances;if(!h.meta.item.originalId||!k||!k[t.item.id])return null;let S=h.meta.item.originalId;if(v.mitem&&(f.jsxCalledBy&&(!f.jsxCalledBy.includes(S)||f.jsxCalledBy.length!==2)||!f.jsxCalledBy)){let R=t.mitem?.get("component")?.get("props")?.get(p);if(R){let O=R.get("jsxCalledBy");!O||typeof O!="object"?R.set("jsxCalledBy",[t.item.id,S]):Array.isArray(O)&&(!O.includes(S)||O.length!==2||O[0]!==t.item.id||O[1]!==S)&&R.set("jsxCalledBy",[t.item.id,S])}}return(0,jy.jsx)(en,{meta:v,passprop:h.passprop,is_layout:n,depth:i+1})}return null}};c[p]=m,r&&(r[p]=m);continue}if(f.value&&Zl(e,f.value),!f.valueBuilt&&f.value&&t.mitem){let m=t.mitem?.get("component")?.get("props")?.get(p);if(m){g2(m,f.value);return}}let d=f.valueBuilt||"",g=$f(d,Bf)||"",w=new Function(...Object.keys(c),`// [${t.item.name}] ${p}: ${t.item.id} return ${g} - `);s.props[p]={value:g,valueBuilt:g};let _=w(...Object.values(c));typeof _=="function"&&(s.props[p].fn=_,_=(...m)=>t.item.script?.props?.[p].fn(...m)),c[p]=_,a[p]=_,r&&(r[p]=_)}catch{u.add(p)}if(location.pathname.startsWith("/ed/")&&ri.item_id&&t.item.id===ri.item_id){ri.scope={};for(let[p,f]of Object.entries(r))ri.scope[p]=f;ri.scope.self_props=a}}}},ut={timeout:null,set:new WeakSet,map:{},src:{}},gE=(e,t)=>{if(!ut.set.has(e)){ut.set.add(e);let n=(0,zy.createId)();ut.map[n]={mprop:e},ut.src[n]=t}clearTimeout(ut.timeout),ut.timeout=setTimeout(async()=>{let n=await _api.code_build(ut.src),r=null;for(let[i,o]of Object.entries(n)){let s=ut.map[i].mprop;if(!r&&s.doc){r=s.doc;break}}r&&(r.transact(()=>{for(let[i,o]of Object.entries(n))ut.map[i].mprop.set("valueBuilt",o)}),ut.set=new WeakSet,ut.map={},ut.src={})},300)},Kl=(e,t,n,r)=>{let i=r?t.item.script_keyed?.[r]:t.item.script;if(i&&i.props){let o={...n,api:e.site.api,db:e.site.db};for(let[s,l]of Object.entries(i.props))if(l.fn){let c=new Function(...Object.keys(o),`// [${t.item.name}] ${s}: ${t.item.id} + `);s.props[p]={value:g,valueBuilt:g};let _=w(...Object.values(c));typeof _=="function"&&(s.props[p].fn=_,_=(...m)=>t.item.script?.props?.[p].fn(...m)),c[p]=_,a[p]=_,r&&(r[p]=_)}catch{u.add(p)}if(location.pathname.startsWith("/ed/")&&ri.item_id&&t.item.id===ri.item_id){ri.scope={};for(let[p,f]of Object.entries(r))ri.scope[p]=f;ri.scope.self_props=a}}}},ut={timeout:null,set:new WeakSet,map:{},src:{}},g2=(e,t)=>{if(!ut.set.has(e)){ut.set.add(e);let n=(0,zy.createId)();ut.map[n]={mprop:e},ut.src[n]=t}clearTimeout(ut.timeout),ut.timeout=setTimeout(async()=>{let n=await _api.code_build(ut.src),r=null;for(let[i,o]of Object.entries(n)){let s=ut.map[i].mprop;if(!r&&s.doc){r=s.doc;break}}r&&(r.transact(()=>{for(let[i,o]of Object.entries(n))ut.map[i].mprop.set("valueBuilt",o)}),ut.set=new WeakSet,ut.map={},ut.src={})},300)},Kl=(e,t,n,r)=>{let i=r?t.item.script_keyed?.[r]:t.item.script;if(i&&i.props){let o={...n,api:e.site.api,db:e.site.db};for(let[s,l]of Object.entries(i.props))if(l.fn){let c=new Function(...Object.keys(o),`// [${t.item.name}] ${s}: ${t.item.id} return ${l.value||""} - `);l.fn=c(...Object.values(o))}}};var Hf=P(G()),Vf=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{let o=Pn(An,"VI"),[s,l]=(0,Uy.useState)({});e.render=()=>{l({})};let c=t;return e.item.component?.id&&(c||(c={}),jy(o,e,n,c,i,r)),e.item.adv?.html?(0,Hf.jsx)(Ql,{meta:e,passprop:c,is_layout:n,depth:i}):e.item.adv?.js&&(My(o,e,n,c,i,r),e.script)?e.script.result:(0,Hf.jsx)(Ql,{meta:e,passprop:c,is_layout:n,depth:i})};var Se=P(G()),yE=70,_E={debug:!!localStorage.getItem("prasi-js-debug")},ql={enabled:!1,meta:{}},en=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{if(ql.enabled){let o=ql.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>yE)return(0,Se.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,Se.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,Se.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."]})]})}if(!e||e.item.hidden)return null;if(_E.debug){let o="";for(let s=0;s{let o=Pn(An,"VI");if(n&&e.item.name==="children"){let l=[];for(let c of o.entry){let u=o.meta[c];if(u.item.adv?.js||u.item.component?.id)l.push((0,Se.jsx)(Nt,{meta:u,children:(0,Se.jsx)(Vf,{meta:u,is_layout:!1,passprop:{...t},parent_key:r,depth:i+1})}));else{let a=bo(o,u,!1,t,i);o.visit&&o.visit(u,a),l.push((0,Se.jsx)("div",{...a.props}))}}return(0,Se.jsx)(Se.Fragment,{children:l.map((c,u)=>(0,Se.jsx)(By.Fragment,{children:c},u))})}let s=bo(o,e,n,t,i);return o.visit&&o.visit(e,s),(0,Se.jsx)("div",{...s.props})};var Je=window,$y=async(e,t)=>{window.parent&&(window.addEventListener("message",async({data:n})=>{if(typeof n=="object"&&n.mobile){let r=n,i=async o=>{if(!Je.notif?.onTap){let s=null,l=0;await new Promise(()=>{s=setInterval(()=>{l++,l>20&&clearInterval(s),o()&&clearInterval(s)},500)});return}};switch(r.type){case"notification-token":t.notif={token:r.token},Je.notif={async send(o){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof o.user_id=="string"?o.user_id:o.user_id.toString(),body:o.body,title:o.title,data:o.data})},async register(o){if(e&&e.site.api&&t.notif?.token)return await e.site.api._notif("register",{type:"register",id:typeof o=="string"?o:o.toString(),token:t.notif.token})},onReceive(o){},onTap(o){}};break;case"notification-tap":if(!Je.notif?.onTap){i(()=>Je.notif?.onTap?(Je.notif?.onTap(r.notif),!0):!1);return}Je.notif?.onTap&&Je.notif?.onTap(r.notif);break;case"notification-receive":Je.notif?.onReceive||i(()=>Je.notif?.onReceive?(Je.notif?.onReceive(r.notif),!0):!1),Je.notif?.onReceive&&Je.notif?.onReceive(r.notif);break}}}),window.parent.postMessage({mobile:!0,type:"ready"},"*")),Je.notif={async send(n){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof n.user_id=="string"?n.user_id:n.user_id.toString(),body:n.body,title:n.title,data:n.data})}}};var Wf=window;Wf.prasi_ext||(Wf.prasi_ext={});var Xl=Wf.prasi_ext;var Hy=async e=>{let t=Xl[e.site.id];if(t||(Xl[e.site.id]={status:"init"},t=Xl[e.site.id]),t.status==="init"){if(t.status="loading",window.parent!==window){let n=r=>{window.parent.postMessage({mobile:!0,...r},"*")};window.addEventListener("message",async({data:r})=>{console.log(r),typeof r=="object"&&r.mobile}),n({type:"ready"})}await $y(e,t),t.status="ready"}};var ai=P(G()),Vy=({})=>{let e=Pn(An,"VI"),t=Nn({tick:Date.now()});if(e.tick=t.tick,Hy(e),e.status!=="ready")return(0,ai.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,ai.jsx)(So,{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,ai.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(i=>{let o=n?e.layout?.meta[i]:e.meta[i];return o&&Element?(0,ai.jsx)(Nt,{children:(0,ai.jsx)(en,{meta:o,is_layout:n,depth:0})},o.item.id):null})})};var Jl=P(G()),At=window;At.prasi_internal||(At.prasi_internal={page:{id:""}});var Wy=({meta:e,entry:t,api_url:n,site_id:r,api:i,mode:o,db:s,visit:l,script:c,preloaded:u,page_id:a,render_stat:p,on_status_changed:f,on_preload:d,layout:g,comp_load:w})=>{let _=Pn(An,"VI");return _.mode=o,_.entry=t,_.on_preload=d,_.comp.load=w,a&&(At.prasi_internal.page.id=a),At.siteurl=(m,h)=>{if(m.startsWith("http://")||m.startsWith("https://"))return m;try{["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550"?_.site.api_url&&(_.site_url||(_.site_url=new URL(_.site.api_url))):_.site_url||(h&&_.site.api_url?_.site_url=new URL(_.site.api_url):_.site_url=new URL(location.href),_.site_url.pathname="")}catch{}if(_.site_url){let y=_.site_url,v=m;return v.startsWith("/")||(v="/"+v),At.prasiContext.siteUrl&&(v=At.prasiContext.siteUrl(v)),`${y.protocol}//${y.host}${v}`}return m},At.isMobile=o==="mobile",At.isDesktop=o==="desktop",At.preloaded=u||(m=>{}),At.preload=(m,h)=>{if(_.on_preload)return new Promise(y=>{_.page.navs[a]||(_.page.navs[a]=new Set);let v=_.page.navs[a],S=typeof m=="string"?[m]:m,b=!0;for(let k of S)v.has(k)||(v.add(k),b=!1);b?y():(_.page.preload.push(y),_.on_preload?.({urls:Array.from(_.page.navs[a]),opt:{on_load:(...k)=>{h?.on_load?.(...k);for(let R of _.page.preload)R();_.page.preload=[],_.render()}}}))})},_.layout=g,_.page.cur.id=a,_.on_status_changes=f,p==="disabled"&&(ql.enabled=!1),_.meta!==e&&(_.meta=e),c&&(_.script.init_local_effect=c.init_local_effect),_.visit=l,_.status==="init"&&(_.site.db=s,_.site.api=i,ag(_,{api_url:n,site_id:r})),d&&(0,Yl.useEffect)(()=>{setTimeout(()=>{let m=_.page.navs[_.page.cur.id];m&&d({urls:Array.from(m),opt:{on_load(h){}}})},500)},[_.page.cur.id]),(0,Jl.jsx)(Nt,{children:(0,Jl.jsx)(Yl.Suspense,{children:(0,Jl.jsx)(Vy,{})})})};var ui=async(e,t)=>{let n=C.comp;for(let i of e)i&&i.type!=="text"&&ea(i,t);let r=Object.keys(n.pending);if(r.length>0)try{let i=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...r]})})).json();for(let[o,s]of Object.entries(i))delete n.pending[o],n.list[o]=s,await zl(`comp-${o}`,s);if(Object.keys(n.pending).length>0){console.warn(`Warning: component not found: ${Object.keys(n.pending)}`);return}await ui(Object.values(i))}catch(i){console.error(i)}},ea=(e,t)=>{let n=C.comp;if(e.type==="item"){let r=e.component?.id;if(r){if(!n.list[r]&&!n.pending[r]&&(n.pending[r]=[]),n.pending[r]&&(n.pending[r].find(i=>i.id===e.id)||n.pending[r].push(e)),n.pending[r]&&n.list[r]){for(let i of n.pending[r])for(let o of Object.values(i.component?.props||{}))o.content&&ea(o.content,t);delete n.pending[r]}if(e.component?.props)for(let i of Object.values(e.component?.props||{}))i.content&&ea(i.content,t)}}if(e.childs)for(let r of e.childs){let i=r;i&&i.type!=="text"&&ea(i,t)}};var Gy=e=>new Promise(async t=>{let n=!1,r=await yf(`page-${e}`);r&&(t(r),n=!0);let i=await(await fetch(C.url`_prasi/page/${e}`)).json();n||t(i)}),vE=e=>new Promise(async t=>{let n={},r=[...new Set(e)],i=!0;for(let s of r){let l=await yf(`page-${s}`);if(l)n[s]=l;else{i=!1;break}}i&&t(n);let o=await(await fetch(C.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();i||t(o)}),Zy=async e=>{let t=e.map(r=>C.route.router?.lookup(r)).filter(r=>r&&r.id);return await vE(t.map(r=>r?.id))};var Qy=P(Ky()),qy=()=>{let e=C;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Qy.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"))}};function Ao(e,t){return function(){return e.apply(t,arguments)}}var{toString:wE}=Object.prototype,{getPrototypeOf:Kf}=Object,ra=(e=>t=>{let n=wE.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>ra(t)===e),ia=e=>t=>typeof t===e,{isArray:ci}=Array,Lo=ia("undefined");function xE(e){return e!==null&&!Lo(e)&&e.constructor!==null&&!Lo(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Yy=xt("ArrayBuffer");function kE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yy(e.buffer),t}var SE=ia("string"),ct=ia("function"),e_=ia("number"),oa=e=>e!==null&&typeof e=="object",EE=e=>e===!0||e===!1,na=e=>{if(ra(e)!=="object")return!1;let t=Kf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},bE=xt("Date"),RE=xt("File"),CE=xt("Blob"),IE=xt("FileList"),TE=e=>oa(e)&&ct(e.pipe),OE=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=ra(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},NE=xt("URLSearchParams"),[PE,AE,LE,DE]=["ReadableStream","Request","Response","Headers"].map(xt),ME=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Do(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ci(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var n_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,r_=e=>!Lo(e)&&e!==n_;function Zf(){let{caseless:e}=r_(this)&&this||{},t={},n=(r,i)=>{let o=e&&t_(t,i)||i;na(t[o])&&na(r)?t[o]=Zf(t[o],r):na(r)?t[o]=Zf({},r):ci(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Do(t,(i,o)=>{n&&ct(i)?e[o]=Ao(i,n):e[o]=i},{allOwnKeys:r}),e),jE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),FE=(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)},UE=(e,t,n,r)=>{let i,o,s,l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Kf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},BE=(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},$E=e=>{if(!e)return null;if(ci(e))return e;let t=e.length;if(!e_(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},HE=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kf(Uint8Array)),VE=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),i;for(;(i=r.next())&&!i.done;){let o=i.value;t.call(e,o[0],o[1])}},WE=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},GE=xt("HTMLFormElement"),ZE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),KE=xt("RegExp"),i_=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Do(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},QE=e=>{i_(e,(t,n)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(ct(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+"'")})}})},qE=(e,t)=>{let n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ci(e)?r(e):r(String(e).split(t)),n},XE=()=>{},JE=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Gf="abcdefghijklmnopqrstuvwxyz",Jy="0123456789",o_={DIGIT:Jy,ALPHA:Gf,ALPHA_DIGIT:Gf+Gf.toUpperCase()+Jy},YE=(e=16,t=o_.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function e2(e){return!!(e&&ct(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var t2=e=>{let t=new Array(10),n=(r,i)=>{if(oa(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;let o=ci(r)?[]:{};return Do(r,(s,l)=>{let c=n(s,i+1);!Lo(c)&&(o[l]=c)}),t[i]=void 0,o}}return r};return n(e,0)},n2=xt("AsyncFunction"),r2=e=>e&&(oa(e)||ct(e))&&ct(e.then)&&ct(e.catch),x={isArray:ci,isArrayBuffer:Yy,isBuffer:xE,isFormData:OE,isArrayBufferView:kE,isString:SE,isNumber:e_,isBoolean:EE,isObject:oa,isPlainObject:na,isReadableStream:PE,isRequest:AE,isResponse:LE,isHeaders:DE,isUndefined:Lo,isDate:bE,isFile:RE,isBlob:CE,isRegExp:KE,isFunction:ct,isStream:TE,isURLSearchParams:NE,isTypedArray:HE,isFileList:IE,forEach:Do,merge:Zf,extend:zE,trim:ME,stripBOM:jE,inherits:FE,toFlatObject:UE,kindOf:ra,kindOfTest:xt,endsWith:BE,toArray:$E,forEachEntry:VE,matchAll:WE,isHTMLForm:GE,hasOwnProperty:Xy,hasOwnProp:Xy,reduceDescriptors:i_,freezeMethods:QE,toObjectSet:qE,toCamelCase:ZE,noop:XE,toFiniteNumber:JE,findKey:t_,global:n_,isContextDefined:r_,ALPHABET:o_,generateString:YE,isSpecCompliantForm:e2,toJSONObject:t2,isAsyncFn:n2,isThenable:r2};function fi(e,t,n,r,i){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),i&&(this.response=i)}x.inherits(fi,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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s_=fi.prototype,l_={};["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=>{l_[e]={value:e}});Object.defineProperties(fi,l_);Object.defineProperty(s_,"isAxiosError",{value:!0});fi.from=(e,t,n,r,i,o)=>{let s=Object.create(s_);return x.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),fi.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var D=fi;var sa=null;function Qf(e){return x.isPlainObject(e)||x.isArray(e)}function u_(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function a_(e,t,n){return e?e.concat(t).map(function(i,o){return i=u_(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function i2(e){return x.isArray(e)&&!e.some(Qf)}var o2=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function s2(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new(sa||FormData),n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!x.isUndefined(_[w])});let r=n.metaTokens,i=n.visitor||a,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(x.isDate(g))return g.toISOString();if(!c&&x.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(g)||x.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function a(g,w,_){let m=g;if(g&&!_&&typeof g=="object"){if(x.endsWith(w,"{}"))w=r?w:w.slice(0,-2),g=JSON.stringify(g);else if(x.isArray(g)&&i2(g)||(x.isFileList(g)||x.endsWith(w,"[]"))&&(m=x.toArray(g)))return w=u_(w),m.forEach(function(y,v){!(x.isUndefined(y)||y===null)&&t.append(s===!0?a_([w],v,o):s===null?w:w+"[]",u(y))}),!1}return Qf(g)?!0:(t.append(a_(_,w,o),u(g)),!1)}let p=[],f=Object.assign(o2,{defaultVisitor:a,convertValue:u,isVisitable:Qf});function d(g,w){if(!x.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(g),x.forEach(g,function(m,h){(!(x.isUndefined(m)||m===null)&&i.call(t,m,x.isString(h)?h.trim():h,w,f))===!0&&d(m,w?w.concat(h):[h])}),p.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return d(e),t}var zn=s2;function c_(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function f_(e,t){this._pairs=[],e&&zn(e,this,t)}var d_=f_.prototype;d_.append=function(t,n){this._pairs.push([t,n])};d_.toString=function(t){let n=t?function(r){return t.call(this,r,c_)}:c_;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};var la=f_;function l2(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mo(e,t,n){if(!t)return e;let r=n&&n.encode||l2,i=n&&n.serialize,o;if(i?o=i(t,n):o=x.isURLSearchParams(t)?t.toString():new la(t,n).toString(r),o){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var qf=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){x.forEach(this.handlers,function(r){r!==null&&t(r)})}},Xf=qf;var aa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var p_=typeof URLSearchParams<"u"?URLSearchParams:la;var m_=typeof FormData<"u"?FormData:null;var h_=typeof Blob<"u"?Blob:null;var g_={isBrowser:!0,classes:{URLSearchParams:p_,FormData:m_,Blob:h_},protocols:["http","https","file","blob","url","data"]};var Yf={};K1(Yf,{hasBrowserEnv:()=>Jf,hasStandardBrowserEnv:()=>a2,hasStandardBrowserWebWorkerEnv:()=>u2,origin:()=>c2});var Jf=typeof window<"u"&&typeof document<"u",a2=(e=>Jf&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),u2=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",c2=Jf&&window.location.href||"http://localhost";var ge={...Yf,...g_};function ed(e,t){return zn(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ge.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function f2(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function d2(e){let t={},n=Object.keys(e),r,i=n.length,o;for(r=0;r=n.length;return s=!s&&x.isArray(i)?i.length:s,c?(x.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!x.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&x.isArray(i[s])&&(i[s]=d2(i[s])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){let n={};return x.forEachEntry(e,(r,i)=>{t(f2(r),i,n,0)}),n}return null}var ua=p2;function m2(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var td={transitional:aa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return i?JSON.stringify(ua(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ed(t,this.formSerializer).toString();if((l=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return zn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),m2(t)):t}],transformResponse:[function(t){let n=this.transitional||td.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(r&&!this.responseType||i)){let s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?D.from(l,D.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:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{td.headers[e]={}});var di=td;var h2=x.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"]),y_=e=>{let t={},n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&h2[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var __=Symbol("internals");function zo(e){return e&&String(e).trim().toLowerCase()}function ca(e){return e===!1||e==null?e:x.isArray(e)?e.map(ca):String(e)}function g2(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 y2=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nd(e,t,n,r,i){if(x.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function _2(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function v2(e,t){let n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}var pi=class{constructor(t){t&&this.set(t)}set(t,n,r){let i=this;function o(l,c,u){let a=zo(c);if(!a)throw new Error("header name must be a non-empty string");let p=x.findKey(i,a);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||c]=ca(l))}let s=(l,c)=>x.forEach(l,(u,a)=>o(u,a,c));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(x.isString(t)&&(t=t.trim())&&!y2(t))s(y_(t),n);else if(x.isHeaders(t))for(let[l,c]of t.entries())o(c,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=zo(t),t){let r=x.findKey(this,t);if(r){let i=this[r];if(!n)return i;if(n===!0)return g2(i);if(x.isFunction(n))return n.call(this,i,r);if(x.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zo(t),t){let r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nd(this,this[r],r,n)))}return!1}delete(t,n){let r=this,i=!1;function o(s){if(s=zo(s),s){let l=x.findKey(r,s);l&&(!n||nd(r,r[l],l,n))&&(delete r[l],i=!0)}}return x.isArray(t)?t.forEach(o):o(t),i}clear(t){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let o=n[r];(!t||nd(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){let n=this,r={};return x.forEach(this,(i,o)=>{let s=x.findKey(r,o);if(s){n[s]=ca(i),delete n[o];return}let l=t?_2(o):String(o).trim();l!==o&&delete n[o],n[l]=ca(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return x.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&x.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(i=>r.set(i)),r}static accessor(t){let r=(this[__]=this[__]={accessors:{}}).accessors,i=this.prototype;function o(s){let l=zo(s);r[l]||(v2(i,s),r[l]=!0)}return x.isArray(t)?t.forEach(o):o(t),this}};pi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(pi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(pi);var pe=pi;function jo(e,t){let n=this||di,r=t||n,i=pe.from(r.headers),o=r.data;return x.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function Fo(e){return!!(e&&e.__CANCEL__)}function v_(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(v_,D,{__CANCEL__:!0});var Lt=v_;function Uo(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rd(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function w2(e,t){e=e||10;let n=new Array(e),r=new Array(e),i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){let u=Date.now(),a=r[o];s||(s=u),n[i]=c,r[i]=u;let p=o,f=0;for(;p!==i;)f+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-sr)return i&&(clearTimeout(i),i=null),n=l,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}var x_=x2;var mi=(e,t,n=3)=>{let r=0,i=w_(50,250);return x_(o=>{let s=o.loaded,l=o.lengthComputable?o.total:void 0,c=s-r,u=i(c),a=s<=l;r=s;let p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-s)/u:void 0,event:o,lengthComputable:l!=null};p[t?"download":"upload"]=!0,e(p)},n)};var k_=ge.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){let s=o;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=i(window.location.href),function(s){let l=x.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();var S_=ge.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let s=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),x.isString(r)&&s.push("path="+r),x.isString(i)&&s.push("domain="+i),o===!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 id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function od(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bo(e,t){return e&&!id(t)?od(e,t):t}var E_=e=>e instanceof pe?{...e}:e;function kt(e,t){t=t||{};let n={};function r(u,a,p){return x.isPlainObject(u)&&x.isPlainObject(a)?x.merge.call({caseless:p},u,a):x.isPlainObject(a)?x.merge({},a):x.isArray(a)?a.slice():a}function i(u,a,p){if(x.isUndefined(a)){if(!x.isUndefined(u))return r(void 0,u,p)}else return r(u,a,p)}function o(u,a){if(!x.isUndefined(a))return r(void 0,a)}function s(u,a){if(x.isUndefined(a)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,a)}function l(u,a,p){if(p in t)return r(u,a);if(p in e)return r(void 0,u)}let c={url:o,method:o,data:o,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:(u,a)=>i(E_(u),E_(a),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(a){let p=c[a]||i,f=p(e[a],t[a],a);x.isUndefined(f)&&p!==l||(n[a]=f)}),n}var fa=e=>{let t=kt({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=pe.from(s),t.url=Mo(Bo(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){let[u,...a]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...a].join("; "))}}if(ge.hasStandardBrowserEnv&&(r&&x.isFunction(r)&&(r=r(t)),r||r!==!1&&k_(t.url))){let u=i&&o&&S_.read(o);u&&s.set(i,u)}return t};var k2=typeof XMLHttpRequest<"u",b_=k2&&function(e){return new Promise(function(n,r){let i=fa(e),o=i.data,s=pe.from(i.headers).normalize(),{responseType:l}=i,c;function u(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let a=new XMLHttpRequest;a.open(i.method.toUpperCase(),i.url,!0),a.timeout=i.timeout;function p(){if(!a)return;let d=pe.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:d,config:e,request:a};Uo(function(m){n(m),u()},function(m){r(m),u()},w),a=null}"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(p)},a.onabort=function(){a&&(r(new D("Request aborted",D.ECONNABORTED,i,a)),a=null)},a.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,i,a)),a=null},a.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",w=i.transitional||aa;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new D(g,w.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,i,a)),a=null},o===void 0&&s.setContentType(null),"setRequestHeader"in a&&x.forEach(s.toJSON(),function(g,w){a.setRequestHeader(w,g)}),x.isUndefined(i.withCredentials)||(a.withCredentials=!!i.withCredentials),l&&l!=="json"&&(a.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&a.addEventListener("progress",mi(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",mi(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=d=>{a&&(r(!d||d.type?new Lt(null,e,a):d),a.abort(),a=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));let f=rd(i.url);if(f&&ge.protocols.indexOf(f)===-1){r(new D("Unsupported protocol "+f+":",D.ERR_BAD_REQUEST,e));return}a.send(o||null)})};var S2=(e,t)=>{let n=new AbortController,r,i=function(c){if(!r){r=!0,s();let u=c instanceof Error?c:this.reason;n.abort(u instanceof D?u:new Lt(u instanceof Error?u.message:u))}},o=t&&setTimeout(()=>{i(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));let{signal:l}=n;return l.unsubscribe=s,[l,()=>{o&&clearTimeout(o),o=null}]},R_=S2;var E2=function*(e,t){let n=e.byteLength;if(!t||n{let o=b2(e,t,i),s=0;return new ReadableStream({type:"bytes",async pull(l){let{done:c,value:u}=await o.next();if(c){l.close(),r();return}let a=u.byteLength;n&&n(s+=a),l.enqueue(new Uint8Array(u))},cancel(l){return r(l),o.return()}},{highWaterMark:2})};var C_=(e,t)=>{let n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",T_=pa&&typeof ReadableStream=="function",ld=pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),R2=T_&&(()=>{let e=!1,t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),I_=64*1024,ad=T_&&!!(()=>{try{return x.isReadableStream(new Response("").body)}catch{}})(),da={stream:ad&&(e=>e.body)};pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!da[t]&&(da[t]=x.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,r)})})})(new Response);var C2=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await ld(e)).byteLength},I2=async(e,t)=>{let n=x.toFiniteNumber(e.getContentLength());return n??C2(t)},O_=pa&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:p="same-origin",fetchOptions:f}=fa(e);u=u?(u+"").toLowerCase():"text";let[d,g]=i||o||s?R_([i,o],s):[],w,_,m=()=>{!w&&setTimeout(()=>{d&&d.unsubscribe()}),w=!0},h;try{if(c&&R2&&n!=="get"&&n!=="head"&&(h=await I2(a,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),k;x.isFormData(r)&&(k=b.headers.get("content-type"))&&a.setContentType(k),b.body&&(r=sd(b.body,I_,C_(h,mi(c)),null,ld))}x.isString(p)||(p=p?"cors":"omit"),_=new Request(t,{...f,signal:d,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:p});let y=await fetch(_),v=ad&&(u==="stream"||u==="response");if(ad&&(l||v)){let b={};["status","statusText","headers"].forEach(R=>{b[R]=y[R]});let k=x.toFiniteNumber(y.headers.get("content-length"));y=new Response(sd(y.body,I_,l&&C_(k,mi(l,!0)),v&&m,ld),b)}u=u||"text";let S=await da[x.findKey(da,u)||"text"](y,e);return!v&&m(),g&&g(),await new Promise((b,k)=>{Uo(b,k,{data:S,headers:pe.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:_})})}catch(y){throw m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,_),{cause:y.cause||y}):D.from(y,y&&y.code,e,_)}});var ud={http:sa,xhr:b_,fetch:O_};x.forEach(ud,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var N_=e=>`- ${e}`,T2=e=>x.isFunction(e)||e===null||e===!1,ma={getAdapter:e=>{e=x.isArray(e)?e:[e];let{length:t}=e,n,r,i={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),s=t?o.length>1?`since : + `);l.fn=c(...Object.values(o))}}};var Hf=P(G()),Vf=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{let o=Pn(An,"VI"),[s,l]=(0,Uy.useState)({});e.render=()=>{l({})};let c=t;return e.item.component?.id&&(c||(c={}),Fy(o,e,n,c,i,r)),e.item.adv?.html?(0,Hf.jsx)(Ql,{meta:e,passprop:c,is_layout:n,depth:i}):e.item.adv?.js&&(My(o,e,n,c,i,r),e.script)?e.script.result:(0,Hf.jsx)(Ql,{meta:e,passprop:c,is_layout:n,depth:i})};var ke=P(G()),y2=70,_2={debug:!!localStorage.getItem("prasi-js-debug")},ql={enabled:!1,meta:{}},en=({meta:e,passprop:t,is_layout:n,parent_key:r,depth:i})=>{if(ql.enabled){let o=ql.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>y2)return(0,ke.jsxs)("div",{className:"bg-orange-100 border border-orange-300 rounded-sm text-xs flex flex-col items-center",children:[(0,ke.jsxs)("div",{className:"text-[10px] font-bold text-red-900 self-stretch px-1",children:["WARNING: Render loop detected in [",e.item.name,"]"]}),(0,ke.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."]})]})}if(!e||e.item.hidden)return null;if(_2.debug){let o="";for(let s=0;s{let o=Pn(An,"VI");if(n&&e.item.name==="children"){let l=[];for(let c of o.entry){let u=o.meta[c];if(u.item.adv?.js||u.item.component?.id)l.push((0,ke.jsx)(Nt,{meta:u,children:(0,ke.jsx)(Vf,{meta:u,is_layout:!1,passprop:{...t},parent_key:r,depth:i+1})}));else{let a=bo(o,u,!1,t,i);o.visit&&o.visit(u,a),l.push((0,ke.jsx)("div",{...a.props}))}}return(0,ke.jsx)(ke.Fragment,{children:l.map((c,u)=>(0,ke.jsx)(By.Fragment,{children:c},u))})}let s=bo(o,e,n,t,i);return o.visit&&o.visit(e,s),(0,ke.jsx)("div",{...s.props})};var Je=window,$y=async(e,t)=>{window.parent&&(window.addEventListener("message",async({data:n})=>{if(typeof n=="object"&&n.mobile){let r=n,i=async o=>{if(!Je.notif?.onTap){let s=null,l=0;await new Promise(()=>{s=setInterval(()=>{l++,l>20&&clearInterval(s),o()&&clearInterval(s)},500)});return}};switch(r.type){case"notification-token":t.notif={token:r.token},Je.notif={async send(o){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof o.user_id=="string"?o.user_id:o.user_id.toString(),body:o.body,title:o.title,data:o.data})},async register(o){if(e&&e.site.api&&t.notif?.token)return await e.site.api._notif("register",{type:"register",id:typeof o=="string"?o:o.toString(),token:t.notif.token})},onReceive(o){},onTap(o){}};break;case"notification-tap":if(!Je.notif?.onTap){i(()=>Je.notif?.onTap?(Je.notif?.onTap(r.notif),!0):!1);return}Je.notif?.onTap&&Je.notif?.onTap(r.notif);break;case"notification-receive":Je.notif?.onReceive||i(()=>Je.notif?.onReceive?(Je.notif?.onReceive(r.notif),!0):!1),Je.notif?.onReceive&&Je.notif?.onReceive(r.notif);break}}}),window.parent.postMessage({mobile:!0,type:"ready"},"*")),Je.notif={async send(n){if(e&&e.site.api)return await e.site.api._notif("send",{type:"send",id:typeof n.user_id=="string"?n.user_id:n.user_id.toString(),body:n.body,title:n.title,data:n.data})}}};var Wf=window;Wf.prasi_ext||(Wf.prasi_ext={});var Xl=Wf.prasi_ext;var Hy=async e=>{let t=Xl[e.site.id];if(t||(Xl[e.site.id]={status:"init"},t=Xl[e.site.id]),t.status==="init"){if(t.status="loading",window.parent!==window){let n=r=>{window.parent.postMessage({mobile:!0,...r},"*")};window.addEventListener("message",async({data:r})=>{console.log(r),typeof r=="object"&&r.mobile}),n({type:"ready"})}await $y(e,t),t.status="ready"}};var ai=P(G()),Vy=({})=>{let e=Pn(An,"VI"),t=Nn({tick:Date.now()});if(e.tick=t.tick,Hy(e),e.status!=="ready")return(0,ai.jsx)("div",{className:"flex flex-1 flex-col relative",children:(0,ai.jsx)(ko,{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,ai.jsx)("div",{className:"flex flex-1 flex-col relative",children:Array.isArray(r)&&r.map(i=>{let o=n?e.layout?.meta[i]:e.meta[i];return o&&Element?(0,ai.jsx)(Nt,{children:(0,ai.jsx)(en,{meta:o,is_layout:n,depth:0})},o.item.id):null})})};var Jl=P(G()),At=window;At.prasi_internal||(At.prasi_internal={page:{id:""}});var Wy=({meta:e,entry:t,api_url:n,site_id:r,api:i,mode:o,db:s,visit:l,script:c,preloaded:u,page_id:a,render_stat:p,on_status_changed:f,on_preload:d,layout:g,comp_load:w})=>{let _=Pn(An,"VI");return _.mode=o,_.entry=t,_.on_preload=d,_.comp.load=w,a&&(At.prasi_internal.page.id=a),At.siteurl=(m,h)=>{if(m.startsWith("http://")||m.startsWith("https://"))return m;try{["prasi.avolut.com"].includes(location.hostname)||location.host==="localhost:4550"?_.site.api_url&&(_.site_url||(_.site_url=new URL(_.site.api_url))):_.site_url||(h&&_.site.api_url?_.site_url=new URL(_.site.api_url):_.site_url=new URL(location.href),_.site_url.pathname="")}catch{}if(_.site_url){let y=_.site_url,v=m;return v.startsWith("/")||(v="/"+v),At.prasiContext.siteUrl&&(v=At.prasiContext.siteUrl(v)),`${y.protocol}//${y.host}${v}`}return m},At.isMobile=o==="mobile",At.isDesktop=o==="desktop",At.preloaded=u||(m=>{}),At.preload=(m,h)=>{if(_.on_preload)return new Promise(y=>{_.page.navs[a]||(_.page.navs[a]=new Set);let v=_.page.navs[a],k=typeof m=="string"?[m]:m,b=!0;for(let S of k)v.has(S)||(v.add(S),b=!1);b?y():(_.page.preload.push(y),_.on_preload?.({urls:Array.from(_.page.navs[a]),opt:{on_load:(...S)=>{h?.on_load?.(...S);for(let R of _.page.preload)R();_.page.preload=[],_.render()}}}))})},_.layout=g,_.page.cur.id=a,_.on_status_changes=f,p==="disabled"&&(ql.enabled=!1),_.meta!==e&&(_.meta=e),c&&(_.script.init_local_effect=c.init_local_effect),_.visit=l,_.status==="init"&&(_.site.db=s,_.site.api=i,ag(_,{api_url:n,site_id:r})),d&&(0,Yl.useEffect)(()=>{setTimeout(()=>{let m=_.page.navs[_.page.cur.id];m&&d({urls:Array.from(m),opt:{on_load(h){}}})},500)},[_.page.cur.id]),(0,Jl.jsx)(Nt,{children:(0,Jl.jsx)(Yl.Suspense,{children:(0,Jl.jsx)(Vy,{})})})};var ui=async(e,t)=>{let n=C.comp;for(let i of e)i&&i.type!=="text"&&ea(i,t);let r=Object.keys(n.pending);if(r.length>0)try{let i=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[...r]})})).json();for(let[o,s]of Object.entries(i))delete n.pending[o],n.list[o]=s,await zl(`comp-${o}`,s);if(Object.keys(n.pending).length>0){console.warn(`Warning: component not found: ${Object.keys(n.pending)}`);return}await ui(Object.values(i))}catch(i){console.error(i)}},ea=(e,t)=>{let n=C.comp;if(e.type==="item"){let r=e.component?.id;if(r){if(!n.list[r]&&!n.pending[r]&&(n.pending[r]=[]),n.pending[r]&&(n.pending[r].find(i=>i.id===e.id)||n.pending[r].push(e)),n.pending[r]&&n.list[r]){for(let i of n.pending[r])for(let o of Object.values(i.component?.props||{}))o.content&&ea(o.content,t);delete n.pending[r]}if(e.component?.props)for(let i of Object.values(e.component?.props||{}))i.content&&ea(i.content,t)}}if(e.childs)for(let r of e.childs){let i=r;i&&i.type!=="text"&&ea(i,t)}};var Gy=e=>new Promise(async t=>{let n=!1,r=await yf(`page-${e}`);r&&(t(r),n=!0);let i=await(await fetch(C.url`_prasi/page/${e}`)).json();n||t(i)}),v2=e=>new Promise(async t=>{let n={},r=[...new Set(e)],i=!0;for(let s of r){let l=await yf(`page-${s}`);if(l)n[s]=l;else{i=!1;break}}i&&t(n);let o=await(await fetch(C.url`_prasi/pages`,{method:"POST",body:JSON.stringify({ids:r})})).json();i||t(o)}),Zy=async e=>{let t=e.map(r=>C.route.router?.lookup(r)).filter(r=>r&&r.id);return await v2(t.map(r=>r?.id))};var Qy=P(Ky()),qy=()=>{let e=C;if(e.site.id){if(!e.mode&&e.site.responsive)if(e.site.responsive!=="mobile-only"&&e.site.responsive!=="desktop-only"){let t=(0,Qy.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"))}};function Ao(e,t){return function(){return e.apply(t,arguments)}}var{toString:w2}=Object.prototype,{getPrototypeOf:Kf}=Object,ra=(e=>t=>{let n=w2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xt=e=>(e=e.toLowerCase(),t=>ra(t)===e),ia=e=>t=>typeof t===e,{isArray:ci}=Array,Lo=ia("undefined");function x2(e){return e!==null&&!Lo(e)&&e.constructor!==null&&!Lo(e.constructor)&&ct(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var Yy=xt("ArrayBuffer");function S2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yy(e.buffer),t}var k2=ia("string"),ct=ia("function"),e_=ia("number"),oa=e=>e!==null&&typeof e=="object",E2=e=>e===!0||e===!1,na=e=>{if(ra(e)!=="object")return!1;let t=Kf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},b2=xt("Date"),R2=xt("File"),C2=xt("Blob"),I2=xt("FileList"),T2=e=>oa(e)&&ct(e.pipe),O2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ct(e.append)&&((t=ra(e))==="formdata"||t==="object"&&ct(e.toString)&&e.toString()==="[object FormData]"))},N2=xt("URLSearchParams"),[P2,A2,L2,D2]=["ReadableStream","Request","Response","Headers"].map(xt),M2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Do(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),ci(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}var n_=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,r_=e=>!Lo(e)&&e!==n_;function Zf(){let{caseless:e}=r_(this)&&this||{},t={},n=(r,i)=>{let o=e&&t_(t,i)||i;na(t[o])&&na(r)?t[o]=Zf(t[o],r):na(r)?t[o]=Zf({},r):ci(r)?t[o]=r.slice():t[o]=r};for(let r=0,i=arguments.length;r(Do(t,(i,o)=>{n&&ct(i)?e[o]=Ao(i,n):e[o]=i},{allOwnKeys:r}),e),F2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),j2=(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)},U2=(e,t,n,r)=>{let i,o,s,l={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)s=i[o],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&Kf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},B2=(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},$2=e=>{if(!e)return null;if(ci(e))return e;let t=e.length;if(!e_(t))return null;let n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},H2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Kf(Uint8Array)),V2=(e,t)=>{let r=(e&&e[Symbol.iterator]).call(e),i;for(;(i=r.next())&&!i.done;){let o=i.value;t.call(e,o[0],o[1])}},W2=(e,t)=>{let n,r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},G2=xt("HTMLFormElement"),Z2=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),Xy=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),K2=xt("RegExp"),i_=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};Do(n,(i,o)=>{let s;(s=t(i,o,e))!==!1&&(r[o]=s||i)}),Object.defineProperties(e,r)},Q2=e=>{i_(e,(t,n)=>{if(ct(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;let r=e[n];if(ct(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+"'")})}})},q2=(e,t)=>{let n={},r=i=>{i.forEach(o=>{n[o]=!0})};return ci(e)?r(e):r(String(e).split(t)),n},X2=()=>{},J2=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,Gf="abcdefghijklmnopqrstuvwxyz",Jy="0123456789",o_={DIGIT:Jy,ALPHA:Gf,ALPHA_DIGIT:Gf+Gf.toUpperCase()+Jy},Y2=(e=16,t=o_.ALPHA_DIGIT)=>{let n="",{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function eE(e){return!!(e&&ct(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}var tE=e=>{let t=new Array(10),n=(r,i)=>{if(oa(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;let o=ci(r)?[]:{};return Do(r,(s,l)=>{let c=n(s,i+1);!Lo(c)&&(o[l]=c)}),t[i]=void 0,o}}return r};return n(e,0)},nE=xt("AsyncFunction"),rE=e=>e&&(oa(e)||ct(e))&&ct(e.then)&&ct(e.catch),x={isArray:ci,isArrayBuffer:Yy,isBuffer:x2,isFormData:O2,isArrayBufferView:S2,isString:k2,isNumber:e_,isBoolean:E2,isObject:oa,isPlainObject:na,isReadableStream:P2,isRequest:A2,isResponse:L2,isHeaders:D2,isUndefined:Lo,isDate:b2,isFile:R2,isBlob:C2,isRegExp:K2,isFunction:ct,isStream:T2,isURLSearchParams:N2,isTypedArray:H2,isFileList:I2,forEach:Do,merge:Zf,extend:z2,trim:M2,stripBOM:F2,inherits:j2,toFlatObject:U2,kindOf:ra,kindOfTest:xt,endsWith:B2,toArray:$2,forEachEntry:V2,matchAll:W2,isHTMLForm:G2,hasOwnProperty:Xy,hasOwnProp:Xy,reduceDescriptors:i_,freezeMethods:Q2,toObjectSet:q2,toCamelCase:Z2,noop:X2,toFiniteNumber:J2,findKey:t_,global:n_,isContextDefined:r_,ALPHABET:o_,generateString:Y2,isSpecCompliantForm:eE,toJSONObject:tE,isAsyncFn:nE,isThenable:rE};function fi(e,t,n,r,i){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),i&&(this.response=i)}x.inherits(fi,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:x.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var s_=fi.prototype,l_={};["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=>{l_[e]={value:e}});Object.defineProperties(fi,l_);Object.defineProperty(s_,"isAxiosError",{value:!0});fi.from=(e,t,n,r,i,o)=>{let s=Object.create(s_);return x.toFlatObject(e,s,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),fi.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,o&&Object.assign(s,o),s};var D=fi;var sa=null;function Qf(e){return x.isPlainObject(e)||x.isArray(e)}function u_(e){return x.endsWith(e,"[]")?e.slice(0,-2):e}function a_(e,t,n){return e?e.concat(t).map(function(i,o){return i=u_(i),!n&&o?"["+i+"]":i}).join(n?".":""):t}function iE(e){return x.isArray(e)&&!e.some(Qf)}var oE=x.toFlatObject(x,{},null,function(t){return/^is[A-Z]/.test(t)});function sE(e,t,n){if(!x.isObject(e))throw new TypeError("target must be an object");t=t||new(sa||FormData),n=x.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(w,_){return!x.isUndefined(_[w])});let r=n.metaTokens,i=n.visitor||a,o=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&x.isSpecCompliantForm(t);if(!x.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(x.isDate(g))return g.toISOString();if(!c&&x.isBlob(g))throw new D("Blob is not supported. Use a Buffer instead.");return x.isArrayBuffer(g)||x.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function a(g,w,_){let m=g;if(g&&!_&&typeof g=="object"){if(x.endsWith(w,"{}"))w=r?w:w.slice(0,-2),g=JSON.stringify(g);else if(x.isArray(g)&&iE(g)||(x.isFileList(g)||x.endsWith(w,"[]"))&&(m=x.toArray(g)))return w=u_(w),m.forEach(function(y,v){!(x.isUndefined(y)||y===null)&&t.append(s===!0?a_([w],v,o):s===null?w:w+"[]",u(y))}),!1}return Qf(g)?!0:(t.append(a_(_,w,o),u(g)),!1)}let p=[],f=Object.assign(oE,{defaultVisitor:a,convertValue:u,isVisitable:Qf});function d(g,w){if(!x.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+w.join("."));p.push(g),x.forEach(g,function(m,h){(!(x.isUndefined(m)||m===null)&&i.call(t,m,x.isString(h)?h.trim():h,w,f))===!0&&d(m,w?w.concat(h):[h])}),p.pop()}}if(!x.isObject(e))throw new TypeError("data must be an object");return d(e),t}var zn=sE;function c_(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function f_(e,t){this._pairs=[],e&&zn(e,this,t)}var d_=f_.prototype;d_.append=function(t,n){this._pairs.push([t,n])};d_.toString=function(t){let n=t?function(r){return t.call(this,r,c_)}:c_;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};var la=f_;function lE(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mo(e,t,n){if(!t)return e;let r=n&&n.encode||lE,i=n&&n.serialize,o;if(i?o=i(t,n):o=x.isURLSearchParams(t)?t.toString():new la(t,n).toString(r),o){let s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}var qf=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){x.forEach(this.handlers,function(r){r!==null&&t(r)})}},Xf=qf;var aa={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};var p_=typeof URLSearchParams<"u"?URLSearchParams:la;var m_=typeof FormData<"u"?FormData:null;var h_=typeof Blob<"u"?Blob:null;var g_={isBrowser:!0,classes:{URLSearchParams:p_,FormData:m_,Blob:h_},protocols:["http","https","file","blob","url","data"]};var Yf={};Kv(Yf,{hasBrowserEnv:()=>Jf,hasStandardBrowserEnv:()=>aE,hasStandardBrowserWebWorkerEnv:()=>uE,origin:()=>cE});var Jf=typeof window<"u"&&typeof document<"u",aE=(e=>Jf&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),uE=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cE=Jf&&window.location.href||"http://localhost";var ge={...Yf,...g_};function ed(e,t){return zn(e,new ge.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ge.isNode&&x.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},t))}function fE(e){return x.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function dE(e){let t={},n=Object.keys(e),r,i=n.length,o;for(r=0;r=n.length;return s=!s&&x.isArray(i)?i.length:s,c?(x.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!l):((!i[s]||!x.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],o)&&x.isArray(i[s])&&(i[s]=dE(i[s])),!l)}if(x.isFormData(e)&&x.isFunction(e.entries)){let n={};return x.forEachEntry(e,(r,i)=>{t(fE(r),i,n,0)}),n}return null}var ua=pE;function mE(e,t,n){if(x.isString(e))try{return(t||JSON.parse)(e),x.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var td={transitional:aa,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){let r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=x.isObject(t);if(o&&x.isHTMLForm(t)&&(t=new FormData(t)),x.isFormData(t))return i?JSON.stringify(ua(t)):t;if(x.isArrayBuffer(t)||x.isBuffer(t)||x.isStream(t)||x.isFile(t)||x.isBlob(t)||x.isReadableStream(t))return t;if(x.isArrayBufferView(t))return t.buffer;if(x.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ed(t,this.formSerializer).toString();if((l=x.isFileList(t))||r.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return zn(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),mE(t)):t}],transformResponse:[function(t){let n=this.transitional||td.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(x.isResponse(t)||x.isReadableStream(t))return t;if(t&&x.isString(t)&&(r&&!this.responseType||i)){let s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?D.from(l,D.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:ge.classes.FormData,Blob:ge.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};x.forEach(["delete","get","head","post","put","patch"],e=>{td.headers[e]={}});var di=td;var hE=x.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"]),y_=e=>{let t={},n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&hE[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};var __=Symbol("internals");function zo(e){return e&&String(e).trim().toLowerCase()}function ca(e){return e===!1||e==null?e:x.isArray(e)?e.map(ca):String(e)}function gE(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 yE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nd(e,t,n,r,i){if(x.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!x.isString(t)){if(x.isString(r))return t.indexOf(r)!==-1;if(x.isRegExp(r))return r.test(t)}}function _E(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function vE(e,t){let n=x.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,o,s){return this[r].call(this,t,i,o,s)},configurable:!0})})}var pi=class{constructor(t){t&&this.set(t)}set(t,n,r){let i=this;function o(l,c,u){let a=zo(c);if(!a)throw new Error("header name must be a non-empty string");let p=x.findKey(i,a);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||c]=ca(l))}let s=(l,c)=>x.forEach(l,(u,a)=>o(u,a,c));if(x.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(x.isString(t)&&(t=t.trim())&&!yE(t))s(y_(t),n);else if(x.isHeaders(t))for(let[l,c]of t.entries())o(c,l,r);else t!=null&&o(n,t,r);return this}get(t,n){if(t=zo(t),t){let r=x.findKey(this,t);if(r){let i=this[r];if(!n)return i;if(n===!0)return gE(i);if(x.isFunction(n))return n.call(this,i,r);if(x.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zo(t),t){let r=x.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||nd(this,this[r],r,n)))}return!1}delete(t,n){let r=this,i=!1;function o(s){if(s=zo(s),s){let l=x.findKey(r,s);l&&(!n||nd(r,r[l],l,n))&&(delete r[l],i=!0)}}return x.isArray(t)?t.forEach(o):o(t),i}clear(t){let n=Object.keys(this),r=n.length,i=!1;for(;r--;){let o=n[r];(!t||nd(this,this[o],o,t,!0))&&(delete this[o],i=!0)}return i}normalize(t){let n=this,r={};return x.forEach(this,(i,o)=>{let s=x.findKey(r,o);if(s){n[s]=ca(i),delete n[o];return}let l=t?_E(o):String(o).trim();l!==o&&delete n[o],n[l]=ca(i),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let n=Object.create(null);return x.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&x.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(i=>r.set(i)),r}static accessor(t){let r=(this[__]=this[__]={accessors:{}}).accessors,i=this.prototype;function o(s){let l=zo(s);r[l]||(vE(i,s),r[l]=!0)}return x.isArray(t)?t.forEach(o):o(t),this}};pi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);x.reduceDescriptors(pi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});x.freezeMethods(pi);var pe=pi;function Fo(e,t){let n=this||di,r=t||n,i=pe.from(r.headers),o=r.data;return x.forEach(e,function(l){o=l.call(n,o,i.normalize(),t?t.status:void 0)}),i.normalize(),o}function jo(e){return!!(e&&e.__CANCEL__)}function v_(e,t,n){D.call(this,e??"canceled",D.ERR_CANCELED,t,n),this.name="CanceledError"}x.inherits(v_,D,{__CANCEL__:!0});var Lt=v_;function Uo(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new D("Request failed with status code "+n.status,[D.ERR_BAD_REQUEST,D.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function rd(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function wE(e,t){e=e||10;let n=new Array(e),r=new Array(e),i=0,o=0,s;return t=t!==void 0?t:1e3,function(c){let u=Date.now(),a=r[o];s||(s=u),n[i]=c,r[i]=u;let p=o,f=0;for(;p!==i;)f+=n[p++],p=p%e;if(i=(i+1)%e,i===o&&(o=(o+1)%e),u-sr)return i&&(clearTimeout(i),i=null),n=l,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(l-n)))}}var x_=xE;var mi=(e,t,n=3)=>{let r=0,i=w_(50,250);return x_(o=>{let s=o.loaded,l=o.lengthComputable?o.total:void 0,c=s-r,u=i(c),a=s<=l;r=s;let p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:u||void 0,estimated:u&&l&&a?(l-s)/u:void 0,event:o,lengthComputable:l!=null};p[t?"download":"upload"]=!0,e(p)},n)};var S_=ge.hasStandardBrowserEnv?function(){let t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function i(o){let s=o;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=i(window.location.href),function(s){let l=x.isString(s)?i(s):s;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();var k_=ge.hasStandardBrowserEnv?{write(e,t,n,r,i,o){let s=[e+"="+encodeURIComponent(t)];x.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),x.isString(r)&&s.push("path="+r),x.isString(i)&&s.push("domain="+i),o===!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 id(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function od(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Bo(e,t){return e&&!id(t)?od(e,t):t}var E_=e=>e instanceof pe?{...e}:e;function St(e,t){t=t||{};let n={};function r(u,a,p){return x.isPlainObject(u)&&x.isPlainObject(a)?x.merge.call({caseless:p},u,a):x.isPlainObject(a)?x.merge({},a):x.isArray(a)?a.slice():a}function i(u,a,p){if(x.isUndefined(a)){if(!x.isUndefined(u))return r(void 0,u,p)}else return r(u,a,p)}function o(u,a){if(!x.isUndefined(a))return r(void 0,a)}function s(u,a){if(x.isUndefined(a)){if(!x.isUndefined(u))return r(void 0,u)}else return r(void 0,a)}function l(u,a,p){if(p in t)return r(u,a);if(p in e)return r(void 0,u)}let c={url:o,method:o,data:o,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:(u,a)=>i(E_(u),E_(a),!0)};return x.forEach(Object.keys(Object.assign({},e,t)),function(a){let p=c[a]||i,f=p(e[a],t[a],a);x.isUndefined(f)&&p!==l||(n[a]=f)}),n}var fa=e=>{let t=St({},e),{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:s,auth:l}=t;t.headers=s=pe.from(s),t.url=Mo(Bo(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let c;if(x.isFormData(n)){if(ge.hasStandardBrowserEnv||ge.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((c=s.getContentType())!==!1){let[u,...a]=c?c.split(";").map(p=>p.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...a].join("; "))}}if(ge.hasStandardBrowserEnv&&(r&&x.isFunction(r)&&(r=r(t)),r||r!==!1&&S_(t.url))){let u=i&&o&&k_.read(o);u&&s.set(i,u)}return t};var SE=typeof XMLHttpRequest<"u",b_=SE&&function(e){return new Promise(function(n,r){let i=fa(e),o=i.data,s=pe.from(i.headers).normalize(),{responseType:l}=i,c;function u(){i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let a=new XMLHttpRequest;a.open(i.method.toUpperCase(),i.url,!0),a.timeout=i.timeout;function p(){if(!a)return;let d=pe.from("getAllResponseHeaders"in a&&a.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?a.responseText:a.response,status:a.status,statusText:a.statusText,headers:d,config:e,request:a};Uo(function(m){n(m),u()},function(m){r(m),u()},w),a=null}"onloadend"in a?a.onloadend=p:a.onreadystatechange=function(){!a||a.readyState!==4||a.status===0&&!(a.responseURL&&a.responseURL.indexOf("file:")===0)||setTimeout(p)},a.onabort=function(){a&&(r(new D("Request aborted",D.ECONNABORTED,i,a)),a=null)},a.onerror=function(){r(new D("Network Error",D.ERR_NETWORK,i,a)),a=null},a.ontimeout=function(){let g=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",w=i.transitional||aa;i.timeoutErrorMessage&&(g=i.timeoutErrorMessage),r(new D(g,w.clarifyTimeoutError?D.ETIMEDOUT:D.ECONNABORTED,i,a)),a=null},o===void 0&&s.setContentType(null),"setRequestHeader"in a&&x.forEach(s.toJSON(),function(g,w){a.setRequestHeader(w,g)}),x.isUndefined(i.withCredentials)||(a.withCredentials=!!i.withCredentials),l&&l!=="json"&&(a.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&a.addEventListener("progress",mi(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&a.upload&&a.upload.addEventListener("progress",mi(i.onUploadProgress)),(i.cancelToken||i.signal)&&(c=d=>{a&&(r(!d||d.type?new Lt(null,e,a):d),a.abort(),a=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));let f=rd(i.url);if(f&&ge.protocols.indexOf(f)===-1){r(new D("Unsupported protocol "+f+":",D.ERR_BAD_REQUEST,e));return}a.send(o||null)})};var kE=(e,t)=>{let n=new AbortController,r,i=function(c){if(!r){r=!0,s();let u=c instanceof Error?c:this.reason;n.abort(u instanceof D?u:new Lt(u instanceof Error?u.message:u))}},o=t&&setTimeout(()=>{i(new D(`timeout ${t} of ms exceeded`,D.ETIMEDOUT))},t),s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c&&(c.removeEventListener?c.removeEventListener("abort",i):c.unsubscribe(i))}),e=null)};e.forEach(c=>c&&c.addEventListener&&c.addEventListener("abort",i));let{signal:l}=n;return l.unsubscribe=s,[l,()=>{o&&clearTimeout(o),o=null}]},R_=kE;var EE=function*(e,t){let n=e.byteLength;if(!t||n{let o=bE(e,t,i),s=0;return new ReadableStream({type:"bytes",async pull(l){let{done:c,value:u}=await o.next();if(c){l.close(),r();return}let a=u.byteLength;n&&n(s+=a),l.enqueue(new Uint8Array(u))},cancel(l){return r(l),o.return()}},{highWaterMark:2})};var C_=(e,t)=>{let n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},pa=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",T_=pa&&typeof ReadableStream=="function",ld=pa&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),RE=T_&&(()=>{let e=!1,t=new Request(ge.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),I_=64*1024,ad=T_&&!!(()=>{try{return x.isReadableStream(new Response("").body)}catch{}})(),da={stream:ad&&(e=>e.body)};pa&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!da[t]&&(da[t]=x.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new D(`Response type '${t}' is not supported`,D.ERR_NOT_SUPPORT,r)})})})(new Response);var CE=async e=>{if(e==null)return 0;if(x.isBlob(e))return e.size;if(x.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(x.isArrayBufferView(e))return e.byteLength;if(x.isURLSearchParams(e)&&(e=e+""),x.isString(e))return(await ld(e)).byteLength},IE=async(e,t)=>{let n=x.toFiniteNumber(e.getContentLength());return n??CE(t)},O_=pa&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:s,onDownloadProgress:l,onUploadProgress:c,responseType:u,headers:a,withCredentials:p="same-origin",fetchOptions:f}=fa(e);u=u?(u+"").toLowerCase():"text";let[d,g]=i||o||s?R_([i,o],s):[],w,_,m=()=>{!w&&setTimeout(()=>{d&&d.unsubscribe()}),w=!0},h;try{if(c&&RE&&n!=="get"&&n!=="head"&&(h=await IE(a,r))!==0){let b=new Request(t,{method:"POST",body:r,duplex:"half"}),S;x.isFormData(r)&&(S=b.headers.get("content-type"))&&a.setContentType(S),b.body&&(r=sd(b.body,I_,C_(h,mi(c)),null,ld))}x.isString(p)||(p=p?"cors":"omit"),_=new Request(t,{...f,signal:d,method:n.toUpperCase(),headers:a.normalize().toJSON(),body:r,duplex:"half",withCredentials:p});let y=await fetch(_),v=ad&&(u==="stream"||u==="response");if(ad&&(l||v)){let b={};["status","statusText","headers"].forEach(R=>{b[R]=y[R]});let S=x.toFiniteNumber(y.headers.get("content-length"));y=new Response(sd(y.body,I_,l&&C_(S,mi(l,!0)),v&&m,ld),b)}u=u||"text";let k=await da[x.findKey(da,u)||"text"](y,e);return!v&&m(),g&&g(),await new Promise((b,S)=>{Uo(b,S,{data:k,headers:pe.from(y.headers),status:y.status,statusText:y.statusText,config:e,request:_})})}catch(y){throw m(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new D("Network Error",D.ERR_NETWORK,e,_),{cause:y.cause||y}):D.from(y,y&&y.code,e,_)}});var ud={http:sa,xhr:b_,fetch:O_};x.forEach(ud,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var N_=e=>`- ${e}`,TE=e=>x.isFunction(e)||e===null||e===!1,ma={getAdapter:e=>{e=x.isArray(e)?e:[e];let{length:t}=e,n,r,i={};for(let o=0;o`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build")),s=t?o.length>1?`since : `+o.map(N_).join(` -`):" "+N_(o[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ud};function cd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lt(null,e)}function ha(e){return cd(e),e.headers=pe.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),ma.getAdapter(e.adapter||di.adapter)(e).then(function(r){return cd(e),r.data=jo.call(e,e.transformResponse,r),r.headers=pe.from(r.headers),r},function(r){return Fo(r)||(cd(e),r&&r.response&&(r.response.data=jo.call(e,e.transformResponse,r.response),r.response.headers=pe.from(r.response.headers))),Promise.reject(r)})}var ga="1.7.2";var fd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var P_={};fd.transitional=function(t,n,r){function i(o,s){return"[Axios v"+ga+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new D(i(s," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!P_[s]&&(P_[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function O2(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],s=t[o];if(s){let l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new D("option "+o+" must be "+c,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+o,D.ERR_BAD_OPTION)}}var ya={assertOptions:O2,validators:fd};var jn=ya.validators,hi=class{constructor(t){this.defaults=t,this.interceptors={request:new Xf,response:new Xf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kt(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ya.assertOptions(r,{silentJSONParsing:jn.transitional(jn.boolean),forcedJSONParsing:jn.transitional(jn.boolean),clarifyTimeoutError:jn.transitional(jn.boolean)},!1),i!=null&&(x.isFunction(i)?n.paramsSerializer={serialize:i}:ya.assertOptions(i,{encode:jn.function,serialize:jn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=pe.concat(s,o);let l=[],c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});let u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,p=0,f;if(!c){let g=[ha.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,a=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o,s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new Lt(o,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(i){t=i}),cancel:t}}},A_=dd;function pd(e){return function(n){return e.apply(null,n)}}function md(e){return x.isObject(e)&&e.isAxiosError===!0}var hd={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(hd).forEach(([e,t])=>{hd[t]=e});var L_=hd;function D_(e){let t=new $o(e),n=Ao($o.prototype.request,t);return x.extend(n,$o.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return D_(kt(e,i))},n}var ue=D_(di);ue.Axios=$o;ue.CanceledError=Lt;ue.CancelToken=A_;ue.isCancel=Fo;ue.VERSION=ga;ue.toFormData=zn;ue.AxiosError=D;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=pd;ue.isAxiosError=md;ue.mergeConfig=kt;ue.AxiosHeaders=pe;ue.formToJSON=e=>ua(x.isHTMLForm(e)?new FormData(e):e);ue.getAdapter=ma.getAdapter;ue.HttpStatusCode=L_;ue.default=ue;var _a=ue;var{Axios:RA,AxiosError:CA,CanceledError:IA,isCancel:TA,CancelToken:OA,VERSION:NA,all:PA,Cancel:AA,isAxiosError:LA,spread:DA,toFormData:MA,AxiosHeaders:zA,HttpStatusCode:jA,formToJSON:FA,getAdapter:UA,mergeConfig:BA}=_a;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var N2=typeof window<"u"?window:null,M_=typeof global<"u"?global:void 0,va=async(e,t,n,r)=>{let i={...n},o=null,s=!1,l=null,c=[];if(Array.isArray(t))for(let f of t)f instanceof File&&(c.push(f),s=!0),typeof f=="function"&&(l=f);else t instanceof File&&(s=!0,c.push(t));if(!s)o=JSON.stringify(t),i["content-type"]="aplication/json";else{let f=new FormData;for(let d of c)f.append(d.name,d);o=f,delete i["content-type"],i.enctype="multipart/form-data;"}let u=new URL(e);if(N2!==null){let f=new URL(location.href),d="";if(u.host===f.host||M_&&typeof M_.server_hook=="function"?d=u.toString():d=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(u.toString())}`,d){if(l)return(await _a({method:t?"post":void 0,url:d,data:o,onUploadProgress:l})).data;{let w=await(await fetch(d,t?{method:"POST",body:o,headers:i}:void 0)).text();if(r===!1)return w;try{return JSON.parse(w,z_)}catch{return w}}}}let p=await(await fetch(u,t?{method:"POST",body:o,headers:i}:void 0)).text();try{return JSON.parse(p,z_)}catch{return p}},z_=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var tv=P(ev()),nv=async(e,t)=>{let n=(0,tv.default)(e,"/"),r=sb(n);await new Promise(i=>{let o=document,s=o.createElement("script");s.onload=async()=>{i()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let l=localStorage.getItem("api-ts-"+n),c=new URL(n),u=new URL(location.href),a="";c.host!==u.host&&(a="&remote=1"),t?s.src=`/_prasi/load.js?url=${n}&v3&dev=1&ts=${l}${a}`:s.src=`/_prasi/load.js?url=${n}&v3&ts=${l}${a}`,s.onerror=()=>{i()},document.querySelector(`script[src="${s.src}"]`)?i():o.body.appendChild(s)})},sb=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`};var Ho={},iv=e=>{Mn.prasiApi||(Mn.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Mn.prasiApi[n]||Ho[n]||(Ho[n]=nv(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,i)=>{if(i==="_url")return(s,l)=>{let c=new URL(n);c.pathname=s.split("/").filter(p=>p).join("/");let u=new URL(location.href),a="";return c.host===u.host||l===!1?a=c.toString():a=`${u.protocol}//${u.host}/_proxy/${encodeURIComponent(c.toString())}`,a};let o=s=>function(...l){return new Promise(async(c,u)=>{try{let a=Mn.prasiApi[n];if(!a&&Ho&&typeof Ho[n]=="object"&&(await Ho[n],a=Mn.prasiApi[n]),a){if(s==="_raw"){let d=l[0],g=`${n}${d}`,w=await rv(g,l.slice(1));c(w);return}if(a.apiEntry||(a.apiEntry={}),a.apiEntry&&!a.apiEntry[s]){u(`API ${s.toString()} not found, existing API: +`):" "+N_(o[0]):"as no adapter specified";throw new D("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:ud};function cd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Lt(null,e)}function ha(e){return cd(e),e.headers=pe.from(e.headers),e.data=Fo.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ma.getAdapter(e.adapter||di.adapter)(e).then(function(r){return cd(e),r.data=Fo.call(e,e.transformResponse,r),r.headers=pe.from(r.headers),r},function(r){return jo(r)||(cd(e),r&&r.response&&(r.response.data=Fo.call(e,e.transformResponse,r.response),r.response.headers=pe.from(r.response.headers))),Promise.reject(r)})}var ga="1.7.2";var fd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{fd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var P_={};fd.transitional=function(t,n,r){function i(o,s){return"[Axios v"+ga+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return(o,s,l)=>{if(t===!1)throw new D(i(s," has been removed"+(n?" in "+n:"")),D.ERR_DEPRECATED);return n&&!P_[s]&&(P_[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,l):!0}};function OE(e,t,n){if(typeof e!="object")throw new D("options must be an object",D.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),i=r.length;for(;i-- >0;){let o=r[i],s=t[o];if(s){let l=e[o],c=l===void 0||s(l,o,e);if(c!==!0)throw new D("option "+o+" must be "+c,D.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new D("Unknown option "+o,D.ERR_BAD_OPTION)}}var ya={assertOptions:OE,validators:fd};var Fn=ya.validators,hi=class{constructor(t){this.defaults=t,this.interceptors={request:new Xf,response:new Xf}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;let o=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=St(this.defaults,n);let{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&ya.assertOptions(r,{silentJSONParsing:Fn.transitional(Fn.boolean),forcedJSONParsing:Fn.transitional(Fn.boolean),clarifyTimeoutError:Fn.transitional(Fn.boolean)},!1),i!=null&&(x.isFunction(i)?n.paramsSerializer={serialize:i}:ya.assertOptions(i,{encode:Fn.function,serialize:Fn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=o&&x.merge(o.common,o[n.method]);o&&x.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=pe.concat(s,o);let l=[],c=!0;this.interceptors.request.forEach(function(w){typeof w.runWhen=="function"&&w.runWhen(n)===!1||(c=c&&w.synchronous,l.unshift(w.fulfilled,w.rejected))});let u=[];this.interceptors.response.forEach(function(w){u.push(w.fulfilled,w.rejected)});let a,p=0,f;if(!c){let g=[ha.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,u),f=g.length,a=Promise.resolve(n);p{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](i);r._listeners=null}),this.promise.then=i=>{let o,s=new Promise(l=>{r.subscribe(l),o=l}).then(i);return s.cancel=function(){r.unsubscribe(o)},s},t(function(o,s,l){r.reason||(r.reason=new Lt(o,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(i){t=i}),cancel:t}}},A_=dd;function pd(e){return function(n){return e.apply(null,n)}}function md(e){return x.isObject(e)&&e.isAxiosError===!0}var hd={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(hd).forEach(([e,t])=>{hd[t]=e});var L_=hd;function D_(e){let t=new $o(e),n=Ao($o.prototype.request,t);return x.extend(n,$o.prototype,t,{allOwnKeys:!0}),x.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return D_(St(e,i))},n}var ue=D_(di);ue.Axios=$o;ue.CanceledError=Lt;ue.CancelToken=A_;ue.isCancel=jo;ue.VERSION=ga;ue.toFormData=zn;ue.AxiosError=D;ue.Cancel=ue.CanceledError;ue.all=function(t){return Promise.all(t)};ue.spread=pd;ue.isAxiosError=md;ue.mergeConfig=St;ue.AxiosHeaders=pe;ue.formToJSON=e=>ua(x.isHTMLForm(e)?new FormData(e):e);ue.getAdapter=ma.getAdapter;ue.HttpStatusCode=L_;ue.default=ue;var _a=ue;var{Axios:RA,AxiosError:CA,CanceledError:IA,isCancel:TA,CancelToken:OA,VERSION:NA,all:PA,Cancel:AA,isAxiosError:LA,spread:DA,toFormData:MA,AxiosHeaders:zA,HttpStatusCode:FA,formToJSON:jA,getAdapter:UA,mergeConfig:BA}=_a;BigInt.prototype.toJSON=function(){return"BigInt::"+this.toString()};var NE=typeof window<"u"?window:null,M_=typeof global<"u"?global:void 0,va=async(e,t,n,r)=>{let i={...n},o=null,s=!1,l=null,c=[];if(Array.isArray(t))for(let f of t)f instanceof File&&(c.push(f),s=!0),typeof f=="function"&&(l=f);else t instanceof File&&(s=!0,c.push(t));if(!s)o=JSON.stringify(t),i["content-type"]="aplication/json";else{let f=new FormData;for(let d of c)f.append(d.name,d);o=f,delete i["content-type"],i.enctype="multipart/form-data;"}let u=new URL(e);if(NE!==null){let f=new URL(location.href),d="";if(u.host===f.host||M_&&typeof M_.server_hook=="function"?d=u.toString():d=`${f.protocol}//${f.host}/_proxy/${encodeURIComponent(u.toString())}`,d){if(l)return(await _a({method:t?"post":void 0,url:d,data:o,onUploadProgress:l})).data;{let w=await(await fetch(d,t?{method:"POST",body:o,headers:i}:void 0)).text();if(r===!1)return w;try{return JSON.parse(w,z_)}catch{return w}}}}let p=await(await fetch(u,t?{method:"POST",body:o,headers:i}:void 0)).text();try{return JSON.parse(p,z_)}catch{return p}},z_=(e,t)=>typeof t=="string"&&t.startsWith("BigInt::")?BigInt(t.substring(8)):t;var t1=P(e1()),n1=async(e,t)=>{let n=(0,t1.default)(e,"/"),r=sb(n);await new Promise(i=>{let o=document,s=o.createElement("script");s.onload=async()=>{i()},localStorage.getItem("api-ts-"+n)||localStorage.setItem("api-ts-"+n,Date.now().toString());let l=localStorage.getItem("api-ts-"+n),c=new URL(n),u=new URL(location.href),a="";c.host!==u.host&&(a="&remote=1"),t?s.src=`/_prasi/load.js?url=${n}&v3&dev=1&ts=${l}${a}`:s.src=`/_prasi/load.js?url=${n}&v3&ts=${l}${a}`,s.onerror=()=>{i()},document.querySelector(`script[src="${s.src}"]`)?i():o.body.appendChild(s)})},sb=e=>{let t=new URL(e);return`${t.protocol}//${t.host}`};var Ho={},i1=e=>{Mn.prasiApi||(Mn.prasiApi={});try{let t=new URL(e),n=`${t.protocol}//${t.host}`;return Mn.prasiApi[n]||Ho[n]||(Ho[n]=n1(n,location.hostname.includes("prasi"))),new Proxy({},{get:(r,i)=>{if(i==="_url")return(s,l)=>{let c=new URL(n);c.pathname=s.split("/").filter(p=>p).join("/");let u=new URL(location.href),a="";return c.host===u.host||l===!1?a=c.toString():a=`${u.protocol}//${u.host}/_proxy/${encodeURIComponent(c.toString())}`,a};let o=s=>function(...l){return new Promise(async(c,u)=>{try{let a=Mn.prasiApi[n];if(!a&&Ho&&typeof Ho[n]=="object"&&(await Ho[n],a=Mn.prasiApi[n]),a){if(s==="_raw"){let d=l[0],g=`${n}${d}`,w=await r1(g,l.slice(1));c(w);return}if(a.apiEntry||(a.apiEntry={}),a.apiEntry&&!a.apiEntry[s]){u(`API ${s.toString()} not found, existing API: - ${Object.keys(a.apiEntry||{}).join(` - - `)}`);return}let p=a.apiEntry[s].url,f=a.apiEntry[s].args;if(p&&f){if(l.length>0&&f.length>0)for(let[w,_]of Object.entries(l)){let m=f[parseInt(w)];f&&f.includes(m)&&_&&typeof _!="string"&&typeof _!="number"||(p=p.replace(`:${m}?`,_+""),p=p.replace(`:${m}`,_+""))}let d=`${n}${p}`,g=await rv(d,l);c(g)}else console.error(`API Not Found: ${s.toString()}`)}else u("Failed to load API [Proxy]: "+n)}catch(a){u(a)}})};return i==="then"?new Proxy({},{get:(s,l)=>o(l)}):o(i)}})}catch{return null}},rv=async(e,t)=>await va(e,t,{"content-type":"application/json"});var I1=P(lv());function xi(e){let t=e.length;for(;--t>=0;)e[t]=0}var fb=0,Gv=1,db=2,pb=3,mb=258,$d=29,is=256,qo=is+1+$d,_i=30,Hd=19,Zv=2*qo+1,fr=15,vd=16,hb=7,Vd=256,Kv=16,Qv=17,qv=18,Ad=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ba=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),gb=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Xv=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yb=512,sn=new Array((qo+2)*2);xi(sn);var Zo=new Array(_i*2);xi(Zo);var Xo=new Array(yb);xi(Xo);var Jo=new Array(mb-pb+1);xi(Jo);var Wd=new Array($d);xi(Wd);var Ra=new Array(_i);xi(Ra);function wd(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var Jv,Yv,e1;function xd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var t1=e=>e<256?Xo[e]:Xo[256+(e>>>7)],Yo=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ve=(e,t,n)=>{e.bi_valid>vd-n?(e.bi_buf|=t<>vd-e.bi_valid,e.bi_valid+=n-vd):(e.bi_buf|=t<{Ve(e,n[t*2],n[t*2+1])},n1=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},_b=e=>{e.bi_valid===16?(Yo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},vb=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,a,p,f,d,g,w=0;for(f=0;f<=fr;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(f=c,w++),n[a*2+1]=f,!(a>r)&&(e.bl_count[f]++,d=0,a>=l&&(d=s[a-l]),g=n[a*2],e.opt_len+=g*(f+d),o&&(e.static_len+=g*(i[a*2+1]+d)));if(w!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,w-=2}while(w>0);for(f=c;f!==0;f--)for(a=e.bl_count[f];a!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==f&&(e.opt_len+=(f-n[p*2+1])*n[p*2],n[p*2+1]=f),a--)}},r1=(e,t,n)=>{let r=new Array(fr+1),i=0,o,s;for(o=1;o<=fr;o++)i=i+n[o-1]<<1,r[o]=i;for(s=0;s<=t;s++){let l=e[s*2+1];l!==0&&(e[s*2]=n1(r[l]++,l))}},wb=()=>{let e,t,n,r,i,o=new Array(fr+1);for(n=0,r=0;r<$d-1;r++)for(Wd[r]=n,e=0;e<1<>=7;r<_i;r++)for(Ra[r]=i<<7,e=0;e<1<{let t;for(t=0;t{e.bi_valid>8?Yo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},av=(e,t,n,r)=>{let i=t*2,o=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o=0,s,l;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?Mt(e,i,t):(s=Jo[i],Mt(e,s+is+1,t),l=Ad[s],l!==0&&(i-=Wd[s],Ve(e,i,l)),r--,s=t1(r),Mt(e,s,n),l=ba[s],l!==0&&(r-=Ra[s],Ve(e,r,l)));while(o{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,l,c=-1,u;for(e.heap_len=0,e.heap_max=Zv,s=0;s>1;s>=1;s--)kd(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],kd(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[u*2]=n[s*2]+n[l*2],e.depth[u]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[s*2+1]=n[l*2+1]=u,e.heap[1]=u++,kd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],vb(e,t),r1(n,c,e.bl_count)},cv=(e,t,n)=>{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=s,s=t[(r+1)*2+1],!(++l{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),r=0;r<=n;r++)if(o=s,s=t[(r+1)*2+1],!(++l{let t;for(cv(e,e.dyn_ltree,e.l_desc.max_code),cv(e,e.dyn_dtree,e.d_desc.max_code),Ld(e,e.bl_desc),t=Hd-1;t>=3&&e.bl_tree[Xv[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},kb=(e,t,n,r)=>{let i;for(Ve(e,t-257,5),Ve(e,n-1,5),Ve(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(n=32;n{dv||(wb(),dv=!0),e.l_desc=new xd(e.dyn_ltree,Jv),e.d_desc=new xd(e.dyn_dtree,Yv),e.bl_desc=new xd(e.bl_tree,e1),e.bi_buf=0,e.bi_valid=0,i1(e)},s1=(e,t,n,r)=>{Ve(e,(fb<<1)+(r?1:0),3),o1(e),Yo(e,n),Yo(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},bb=e=>{Ve(e,Gv<<1,3),Mt(e,Vd,sn),_b(e)},Rb=(e,t,n,r)=>{let i,o,s=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=Sb(e)),Ld(e,e.l_desc),Ld(e,e.d_desc),s=xb(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?s1(e,t,n,r):e.strategy===4||o===i?(Ve(e,(Gv<<1)+(r?1:0),3),uv(e,sn,Zo)):(Ve(e,(db<<1)+(r?1:0),3),kb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),uv(e,e.dyn_ltree,e.dyn_dtree)),i1(e),r&&o1(e)},Cb=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Jo[n]+is+1)*2]++,e.dyn_dtree[t1(t)*2]++),e.sym_next===e.sym_end),Ib=Eb,Tb=s1,Ob=Rb,Nb=Cb,Pb=bb,Ab={_tr_init:Ib,_tr_stored_block:Tb,_tr_flush_block:Ob,_tr_tally:Nb,_tr_align:Pb},Lb=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0},es=Lb,Db=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Mb=new Uint32Array(Db()),zb=(e,t,n,r)=>{let i=Mb,o=r+n;e^=-1;for(let s=r;s>>8^i[(e^t[s])&255];return e^-1},ye=zb,mr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},yr={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:jb,_tr_stored_block:Dd,_tr_flush_block:Fb,_tr_tally:Bn,_tr_align:Ub}=Ab,{Z_NO_FLUSH:$n,Z_PARTIAL_FLUSH:Bb,Z_FULL_FLUSH:$b,Z_FINISH:ft,Z_BLOCK:pv,Z_OK:Ee,Z_STREAM_END:mv,Z_STREAM_ERROR:zt,Z_DATA_ERROR:Hb,Z_BUF_ERROR:Sd,Z_DEFAULT_COMPRESSION:Vb,Z_FILTERED:Wb,Z_HUFFMAN_ONLY:wa,Z_RLE:Gb,Z_FIXED:Zb,Z_DEFAULT_STRATEGY:Kb,Z_UNKNOWN:Qb,Z_DEFLATED:Ta}=yr,qb=9,Xb=15,Jb=8,Yb=29,eR=256,Md=eR+1+Yb,tR=30,nR=19,rR=2*Md+1,iR=15,U=3,Un=258,jt=Un+U+1,oR=32,vi=42,Gd=57,zd=69,jd=73,Fd=91,Ud=103,dr=113,Wo=666,Me=1,ki=2,hr=3,Si=4,sR=3,pr=(e,t)=>(e.msg=mr[t],t),hv=e=>e*2-(e>4?9:0),Fn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},lR=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},aR=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},et=(e,t)=>{Fb(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ye(e.strm)},$=(e,t)=>{e.pending_buf[e.pending++]=t},Vo=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Bd=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=es(e.adler,t,i,n):e.state.wrap===2&&(e.adler=ye(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},l1=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,s=e.prev_length,l=e.nice_match,c=e.strstart>e.w_size-jt?e.strstart-(e.w_size-jt):0,u=e.window,a=e.w_mask,p=e.prev,f=e.strstart+Un,d=u[r+s-1],g=u[r+s];e.prev_length>=e.good_match&&(n>>=2),l>e.lookahead&&(l=e.lookahead);do if(i=t,!(u[i+s]!==g||u[i+s-1]!==d||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&rs){if(e.match_start=t,s=o,o>=l)break;d=u[r+s-1],g=u[r+s]}}while((t=p[t&a])>c&&--n!==0);return s<=e.lookahead?s:e.lookahead},wi=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-jt)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),lR(e),r+=t),e.strm.avail_in===0)break;if(n=Bd(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=U)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Hn(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Hn(e,e.ins_h,e.window[i+U-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,s=0,l=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ye(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Bd(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(s===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Bd(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===ft)&&t!==$n&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,s=t===ft&&e.strm.avail_in===0&&r===i?1:0,Dd(e,e.block_start,r,s),e.block_start+=r,Ye(e.strm)),s?hr:Me)},Ed=(e,t)=>{let n,r;for(;;){if(e.lookahead=U&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-jt&&(e.match_length=l1(e,n)),e.match_length>=U)if(r=Bn(e,e.strstart-e.match_start,e.match_length-U),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=U){e.match_length--;do e.strstart++,e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+1]);else r=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=U&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=U-1,n!==0&&e.prev_length4096)&&(e.match_length=U-1)),e.prev_length>=U&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-U,r=Bn(e,e.strstart-1-e.prev_match,e.prev_length-U),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=U-1,e.strstart++,r&&(et(e,!1),e.strm.avail_out===0))return Me}else if(e.match_available){if(r=Bn(e,0,e.window[e.strstart-1]),r&&et(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Me}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Bn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,o,s=e.window;for(;;){if(e.lookahead<=Un){if(wi(e),e.lookahead<=Un&&t===$n)return Me;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=U&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+Un;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=U?(n=Bn(e,1,e.match_length-U),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===ft?(et(e,!0),e.strm.avail_out===0?hr:Si):e.sym_next&&(et(e,!1),e.strm.avail_out===0)?Me:ki},cR=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(wi(e),e.lookahead===0)){if(t===$n)return Me;break}if(e.match_length=0,n=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===ft?(et(e,!0),e.strm.avail_out===0?hr:Si):e.sym_next&&(et(e,!1),e.strm.avail_out===0)?Me:ki};function Dt(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Go=[new Dt(0,0,0,0,a1),new Dt(4,4,8,4,Ed),new Dt(4,5,16,8,Ed),new Dt(4,6,32,32,Ed),new Dt(4,4,16,16,gi),new Dt(8,16,32,32,gi),new Dt(8,16,128,128,gi),new Dt(8,32,128,256,gi),new Dt(32,128,258,1024,gi),new Dt(32,258,258,4096,gi)],fR=e=>{e.window_size=2*e.w_size,Fn(e.head),e.max_lazy_match=Go[e.level].max_lazy,e.good_match=Go[e.level].good_length,e.nice_match=Go[e.level].nice_length,e.max_chain_length=Go[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=U-1,e.match_available=0,e.ins_h=0};function dR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ta,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(rR*2),this.dyn_dtree=new Uint16Array((2*tR+1)*2),this.bl_tree=new Uint16Array((2*nR+1)*2),Fn(this.dyn_ltree),Fn(this.dyn_dtree),Fn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(iR+1),this.heap=new Uint16Array(2*Md+1),Fn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Md+1),Fn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var os=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==vi&&t.status!==Gd&&t.status!==zd&&t.status!==jd&&t.status!==Fd&&t.status!==Ud&&t.status!==dr&&t.status!==Wo?1:0},u1=e=>{if(os(e))return pr(e,zt);e.total_in=e.total_out=0,e.data_type=Qb;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Gd:t.wrap?vi:dr,e.adler=t.wrap===2?0:1,t.last_flush=-2,jb(t),Ee},c1=e=>{let t=u1(e);return t===Ee&&fR(e.state),t},pR=(e,t)=>os(e)||e.state.wrap!==2?zt:(e.state.gzhead=t,Ee),f1=(e,t,n,r,i,o)=>{if(!e)return zt;let s=1;if(t===Vb&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>qb||n!==Ta||r<8||r>15||t<0||t>9||o<0||o>Zb||r===8&&s!==1)return pr(e,zt);r===8&&(r=9);let l=new dR;return e.state=l,l.strm=e,l.status=vi,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<f1(e,t,Ta,Xb,Jb,Kb),hR=(e,t)=>{if(os(e)||t>pv||t<0)return e?pr(e,zt):zt;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Wo&&t!==ft)return pr(e,e.avail_out===0?Sd:zt);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Ye(e),e.avail_out===0)return n.last_flush=-1,Ee}else if(e.avail_in===0&&hv(t)<=hv(r)&&t!==ft)return pr(e,Sd);if(n.status===Wo&&e.avail_in!==0)return pr(e,Sd);if(n.status===vi&&n.wrap===0&&(n.status=dr),n.status===vi){let i=Ta+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=wa||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=oR),i+=31-i%31,Vo(n,i),n.strstart!==0&&(Vo(n,e.adler>>>16),Vo(n,e.adler&65535)),e.adler=1,n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(n.status===Gd){if(e.adler=0,$(n,31),$(n,139),$(n,8),n.gzhead)$(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),$(n,n.gzhead.time&255),$(n,n.gzhead.time>>8&255),$(n,n.gzhead.time>>16&255),$(n,n.gzhead.time>>24&255),$(n,n.level===9?2:n.strategy>=wa||n.level<2?4:0),$(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&($(n,n.gzhead.extra.length&255),$(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ye(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=zd;else if($(n,0),$(n,0),$(n,0),$(n,0),$(n,0),$(n,n.level===9?2:n.strategy>=wa||n.level<2?4:0),$(n,sR),n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(n.status===zd){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let l=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=l,Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0,o-=l}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=jd}if(n.status===jd){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0}n.gzindexi&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Fd}if(n.status===Fd){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0}n.gzindexi&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i))}n.status=Ud}if(n.status===Ud){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ye(e),n.pending!==0))return n.last_flush=-1,Ee;$(n,e.adler&255),$(n,e.adler>>8&255),e.adler=0}if(n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(e.avail_in!==0||n.lookahead!==0||t!==$n&&n.status!==Wo){let i=n.level===0?a1(n,t):n.strategy===wa?cR(n,t):n.strategy===Gb?uR(n,t):Go[n.level].func(n,t);if((i===hr||i===Si)&&(n.status=Wo),i===Me||i===hr)return e.avail_out===0&&(n.last_flush=-1),Ee;if(i===ki&&(t===Bb?Ub(n):t!==pv&&(Dd(n,0,0,!1),t===$b&&(Fn(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Ye(e),e.avail_out===0))return n.last_flush=-1,Ee}return t!==ft?Ee:n.wrap<=0?mv:(n.wrap===2?($(n,e.adler&255),$(n,e.adler>>8&255),$(n,e.adler>>16&255),$(n,e.adler>>24&255),$(n,e.total_in&255),$(n,e.total_in>>8&255),$(n,e.total_in>>16&255),$(n,e.total_in>>24&255)):(Vo(n,e.adler>>>16),Vo(n,e.adler&65535)),Ye(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Ee:mv)},gR=e=>{if(os(e))return zt;let t=e.state.status;return e.state=null,t===dr?pr(e,Hb):Ee},yR=(e,t)=>{let n=t.length;if(os(e))return zt;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==vi||r.lookahead)return zt;if(i===1&&(e.adler=es(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(Fn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}let o=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,wi(r);r.lookahead>=U;){let c=r.strstart,u=r.lookahead-(U-1);do r.ins_h=Hn(r,r.ins_h,r.window[c+U-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=U-1,wi(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=U-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,r.wrap=i,Ee},_R=mR,vR=f1,wR=c1,xR=u1,kR=pR,SR=hR,ER=gR,bR=yR,RR="pako deflate (from Nodeca project)",Ko={deflateInit:_R,deflateInit2:vR,deflateReset:wR,deflateResetKeep:xR,deflateSetHeader:kR,deflate:SR,deflateEnd:ER,deflateSetDictionary:bR,deflateInfo:RR},CR=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),IR=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)CR(n,r)&&(e[r]=n[r])}}return e},TR=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ts[254]=ts[254]=1;var OR=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,s=e.length,l=0;for(i=0;i>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t},NR=(e,t)=>{if(t<65534&&e.subarray&&d1)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,o=new Array(n*2);for(i=0,r=0;r4){o[i++]=65533,r+=l-1;continue}for(s&=l===2?31:l===3?15:7;l>1&&r1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return NR(o,i)},AR=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+ts[e[n]]>t?n:t},ns={string2buf:OR,buf2string:PR,utf8border:AR};function LR(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var p1=LR,m1=Object.prototype.toString,{Z_NO_FLUSH:DR,Z_SYNC_FLUSH:MR,Z_FULL_FLUSH:zR,Z_FINISH:jR,Z_OK:Ca,Z_STREAM_END:FR,Z_DEFAULT_COMPRESSION:UR,Z_DEFAULT_STRATEGY:BR,Z_DEFLATED:$R}=yr;function ss(e){this.options=Oa.assign({level:UR,method:$R,chunkSize:16384,windowBits:15,memLevel:8,strategy:BR},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p1,this.strm.avail_out=0;let n=Ko.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ca)throw new Error(mr[n]);if(t.header&&Ko.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=ns.string2buf(t.dictionary):m1.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ko.deflateSetDictionary(this.strm,r),n!==Ca)throw new Error(mr[n]);this._dict_set=!0}}ss.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?jR:DR,typeof e=="string"?n.input=ns.string2buf(e):m1.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===MR||o===zR)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ko.deflate(n,o),i===FR)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ko.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Ca;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};ss.prototype.onData=function(e){this.chunks.push(e)};ss.prototype.onEnd=function(e){e===Ca&&(this.result=Oa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zd(e,t){let n=new ss(t);if(n.push(e,!0),n.err)throw n.msg||mr[n.err];return n.result}function HR(e,t){return t=t||{},t.raw=!0,Zd(e,t)}function VR(e,t){return t=t||{},t.gzip=!0,Zd(e,t)}var WR=ss,GR=Zd,ZR=HR,KR=VR,QR=yr,qR={Deflate:WR,deflate:GR,deflateRaw:ZR,gzip:KR,constants:QR},xa=16209,XR=16191,JR=function(t,n){let r,i,o,s,l,c,u,a,p,f,d,g,w,_,m,h,y,v,S,b,k,R,O,I,N=t.state;r=t.next_in,O=t.input,i=r+(t.avail_in-5),o=t.next_out,I=t.output,s=o-(n-t.avail_out),l=o+(t.avail_out-257),c=N.dmax,u=N.wsize,a=N.whave,p=N.wnext,f=N.window,d=N.hold,g=N.bits,w=N.lencode,_=N.distcode,m=(1<>>24,d>>>=v,g-=v,v=y>>>16&255,v===0)I[o++]=y&65535;else if(v&16){S=y&65535,v&=15,v&&(g>>=v,g-=v),g<15&&(d+=O[r++]<>>24,d>>>=v,g-=v,v=y>>>16&255,v&16){if(b=y&65535,v&=15,gc){t.msg="invalid distance too far back",N.mode=xa;break e}if(d>>>=v,g-=v,v=o-s,b>v){if(v=b-v,v>a&&N.sane){t.msg="invalid distance too far back",N.mode=xa;break e}if(k=0,R=f,p===0){if(k+=u-v,v2;)I[o++]=R[k++],I[o++]=R[k++],I[o++]=R[k++],S-=3;S&&(I[o++]=R[k++],S>1&&(I[o++]=R[k++]))}else{k=o-b;do I[o++]=I[k++],I[o++]=I[k++],I[o++]=I[k++],S-=3;while(S>2);S&&(I[o++]=I[k++],S>1&&(I[o++]=I[k++]))}}else if(v&64){t.msg="invalid distance code",N.mode=xa;break e}else{y=_[(y&65535)+(d&(1<>3,r-=S,g-=S<<3,d&=(1<{let c=l.bits,u=0,a=0,p=0,f=0,d=0,g=0,w=0,_=0,m=0,h=0,y,v,S,b,k,R=null,O,I=new Uint16Array(yi+1),N=new Uint16Array(yi+1),ze=null,as,Ft,Ut;for(u=0;u<=yi;u++)I[u]=0;for(a=0;a=1&&I[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(e===_v||f!==1))return-1;for(N[1]=0,u=1;ugv||e===vv&&m>yv)return 1;for(;;){as=u-w,s[a]+1=O?(Ft=ze[s[a]-O],Ut=R[s[a]-O]):(Ft=96,Ut=0),y=1<>w)+v]=as<<24|Ft<<16|Ut|0;while(v!==0);for(y=1<>=1;if(y!==0?(h&=y-1,h+=y):h=0,a++,--I[u]===0){if(u===f)break;u=t[n+s[a]]}if(u>d&&(h&b)!==S){for(w===0&&(w=d),k+=p,g=u-w,_=1<gv||e===vv&&m>yv)return 1;S=h&b,i[S]=d<<24|g<<16|k-o|0}}return h!==0&&(i[k+h]=u-w<<24|64<<16|0),l.bits=d,0},Qo=rC,iC=0,h1=1,g1=2,{Z_FINISH:wv,Z_BLOCK:oC,Z_TREES:ka,Z_OK:gr,Z_STREAM_END:sC,Z_NEED_DICT:lC,Z_STREAM_ERROR:dt,Z_DATA_ERROR:y1,Z_MEM_ERROR:_1,Z_BUF_ERROR:aC,Z_DEFLATED:xv}=yr,Na=16180,kv=16181,Sv=16182,Ev=16183,bv=16184,Rv=16185,Cv=16186,Iv=16187,Tv=16188,Ov=16189,Ia=16190,on=16191,Rd=16192,Nv=16193,Cd=16194,Pv=16195,Av=16196,Lv=16197,Dv=16198,Sa=16199,Ea=16200,Mv=16201,zv=16202,jv=16203,Fv=16204,Uv=16205,Id=16206,Bv=16207,$v=16208,ee=16209,v1=16210,w1=16211,uC=852,cC=592,fC=15,dC=fC,Hv=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function pC(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var _r=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modew1?1:0},x1=e=>{if(_r(e))return dt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Na,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(uC),t.distcode=t.distdyn=new Int32Array(cC),t.sane=1,t.back=-1,gr},k1=e=>{if(_r(e))return dt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,x1(e)},S1=(e,t)=>{let n;if(_r(e))return dt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?dt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,k1(e))},E1=(e,t)=>{if(!e)return dt;let n=new pC;e.state=n,n.strm=e,n.window=null,n.mode=Na;let r=S1(e,t);return r!==gr&&(e.state=null),r},mC=e=>E1(e,dC),Vv=!0,Td,Od,hC=e=>{if(Vv){Td=new Int32Array(512),Od=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Qo(h1,e.lens,0,288,Td,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Qo(g1,e.lens,0,32,Od,0,e.work,{bits:5}),Vv=!1}e.lencode=Td,e.lenbits=9,e.distcode=Od,e.distbits=5},b1=(e,t,n,r)=>{let i,o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,i,o,s,l,c,u,a,p,f,d,g,w,_=0,m,h,y,v,S,b,k,R,O=new Uint8Array(4),I,N,ze=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_r(e)||!e.output||!e.input&&e.avail_in!==0)return dt;n=e.state,n.mode===on&&(n.mode=Rd),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,p=l,f=c,R=gr;e:for(;;)switch(n.mode){case Na:if(n.wrap===0){n.mode=Rd;break}for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=ye(n.check,O,2,0),u=0,a=0,n.mode=kv;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ee;break}if((u&15)!==xv){e.msg="unknown compression method",n.mode=ee;break}if(u>>>=4,a-=4,k=(u&15)+8,n.wbits===0&&(n.wbits=k),k>15||k>n.wbits){e.msg="invalid window size",n.mode=ee;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(O[0]=u&255,O[1]=u>>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0,n.mode=Sv;case Sv:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>8&255,O[2]=u>>>16&255,O[3]=u>>>24&255,n.check=ye(n.check,O,4,0)),u=0,a=0,n.mode=Ev;case Ev:for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(O[0]=u&255,O[1]=u>>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0,n.mode=bv;case bv:if(n.flags&1024){for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0}else n.head&&(n.head.extra=null);n.mode=Rv;case Rv:if(n.flags&1024&&(d=n.length,d>l&&(d=l),d&&(n.head&&(k=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),k)),n.flags&512&&n.wrap&4&&(n.check=ye(n.check,r,d,o)),l-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=Cv;case Cv:if(n.flags&2048){if(l===0)break e;d=0;do k=r[o+d++],n.head&&k&&n.length<65536&&(n.head.name+=String.fromCharCode(k));while(k&&d>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=on;break;case Ov:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>=a&7,a-=a&7,n.mode=Id;break}for(;a<3;){if(l===0)break e;l--,u+=r[o++]<>>=1,a-=1,u&3){case 0:n.mode=Nv;break;case 1:if(hC(n),n.mode=Sa,t===ka){u>>>=2,a-=2;break e}break;case 2:n.mode=Av;break;case 3:e.msg="invalid block type",n.mode=ee}u>>>=2,a-=2;break;case Nv:for(u>>>=a&7,a-=a&7;a<32;){if(l===0)break e;l--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ee;break}if(n.length=u&65535,u=0,a=0,n.mode=Cd,t===ka)break e;case Cd:n.mode=Pv;case Pv:if(d=n.length,d){if(d>l&&(d=l),d>c&&(d=c),d===0)break e;i.set(r.subarray(o,o+d),s),l-=d,o+=d,c-=d,s+=d,n.length-=d;break}n.mode=on;break;case Av:for(;a<14;){if(l===0)break e;l--,u+=r[o++]<>>=5,a-=5,n.ndist=(u&31)+1,u>>>=5,a-=5,n.ncode=(u&15)+4,u>>>=4,a-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ee;break}n.have=0,n.mode=Lv;case Lv:for(;n.have>>=3,a-=3}for(;n.have<19;)n.lens[ze[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},R=Qo(iC,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid code lengths set",n.mode=ee;break}n.have=0,n.mode=Dv;case Dv:for(;n.have>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=m,a-=m,n.lens[n.have++]=y;else{if(y===16){for(N=m+2;a>>=m,a-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=ee;break}k=n.lens[n.have-1],d=3+(u&3),u>>>=2,a-=2}else if(y===17){for(N=m+3;a>>=m,a-=m,k=0,d=3+(u&7),u>>>=3,a-=3}else{for(N=m+7;a>>=m,a-=m,k=0,d=11+(u&127),u>>>=7,a-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ee;break}for(;d--;)n.lens[n.have++]=k}}if(n.mode===ee)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ee;break}if(n.lenbits=9,I={bits:n.lenbits},R=Qo(h1,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid literal/lengths set",n.mode=ee;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},R=Qo(g1,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,R){e.msg="invalid distances set",n.mode=ee;break}if(n.mode=Sa,t===ka)break e;case Sa:n.mode=Ea;case Ea:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=u,n.bits=a,JR(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,n.mode===on&&(n.back=-1);break}for(n.back=0;_=n.lencode[u&(1<>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>v)],m=_>>>24,h=_>>>16&255,y=_&65535,!(v+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=v,a-=v,n.back+=v}if(u>>>=m,a-=m,n.back+=m,n.length=y,h===0){n.mode=Uv;break}if(h&32){n.back=-1,n.mode=on;break}if(h&64){e.msg="invalid literal/length code",n.mode=ee;break}n.extra=h&15,n.mode=Mv;case Mv:if(n.extra){for(N=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=zv;case zv:for(;_=n.distcode[u&(1<>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>v)],m=_>>>24,h=_>>>16&255,y=_&65535,!(v+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=v,a-=v,n.back+=v}if(u>>>=m,a-=m,n.back+=m,h&64){e.msg="invalid distance code",n.mode=ee;break}n.offset=y,n.extra=h&15,n.mode=jv;case jv:if(n.extra){for(N=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ee;break}n.mode=Fv;case Fv:if(c===0)break e;if(d=f-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ee;break}d>n.wnext?(d-=n.wnext,g=n.wsize-d):g=n.wnext-d,d>n.length&&(d=n.length),w=n.window}else w=i,g=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do i[s++]=w[g++];while(--d);n.length===0&&(n.mode=Ea);break;case Uv:if(c===0)break e;i[s++]=n.length,c--,n.mode=Ea;break;case Id:if(n.wrap){for(;a<32;){if(l===0)break e;l--,u|=r[o++]<{if(_r(e))return dt;let t=e.state;return t.window&&(t.window=null),e.state=null,gr},_C=(e,t)=>{if(_r(e))return dt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,gr):dt},vC=(e,t)=>{let n=t.length,r,i,o;return _r(e)||(r=e.state,r.wrap!==0&&r.mode!==Ia)?dt:r.mode===Ia&&(i=1,i=es(i,t,n,0),i!==r.check)?y1:(o=b1(e,t,n,n),o?(r.mode=v1,_1):(r.havedict=1,gr))},wC=k1,xC=S1,kC=x1,SC=mC,EC=E1,bC=gC,RC=yC,CC=_C,IC=vC,TC="pako inflate (from Nodeca project)",ln={inflateReset:wC,inflateReset2:xC,inflateResetKeep:kC,inflateInit:SC,inflateInit2:EC,inflate:bC,inflateEnd:RC,inflateGetHeader:CC,inflateSetDictionary:IC,inflateInfo:TC};function OC(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var NC=OC,R1=Object.prototype.toString,{Z_NO_FLUSH:PC,Z_FINISH:AC,Z_OK:rs,Z_STREAM_END:Nd,Z_NEED_DICT:Pd,Z_STREAM_ERROR:LC,Z_DATA_ERROR:Wv,Z_MEM_ERROR:DC}=yr;function ls(e){this.options=Oa.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p1,this.strm.avail_out=0;let n=ln.inflateInit2(this.strm,t.windowBits);if(n!==rs)throw new Error(mr[n]);if(this.header=new NC,ln.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ns.string2buf(t.dictionary):R1.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=ln.inflateSetDictionary(this.strm,t.dictionary),n!==rs)))throw new Error(mr[n])}ls.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,l;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?AC:PC,R1.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=ln.inflate(n,s),o===Pd&&i&&(o=ln.inflateSetDictionary(n,i),o===rs?o=ln.inflate(n,s):o===Wv&&(o=Pd));n.avail_in>0&&o===Nd&&n.state.wrap>0&&e[n.next_in]!==0;)ln.inflateReset(n),o=ln.inflate(n,s);switch(o){case LC:case Wv:case Pd:case DC:return this.onEnd(o),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(n.avail_out===0||o===Nd))if(this.options.to==="string"){let c=ns.utf8border(n.output,n.next_out),u=n.next_out-c,a=ns.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===rs&&l===0)){if(o===Nd)return o=ln.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};ls.prototype.onData=function(e){this.chunks.push(e)};ls.prototype.onEnd=function(e){e===rs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Oa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kd(e,t){let n=new ls(t);if(n.push(e),n.err)throw n.msg||mr[n.err];return n.result}function MC(e,t){return t=t||{},t.raw=!0,Kd(e,t)}var zC=ls,jC=Kd,FC=MC,UC=Kd,BC=yr,$C={Inflate:zC,inflate:jC,inflateRaw:FC,ungzip:UC,constants:BC},{Deflate:HC,deflate:VC,deflateRaw:WC,gzip:GC}=qR,{Inflate:ZC,inflate:KC,inflateRaw:QC,ungzip:qC}=$C,XC=HC,JC=VC,YC=WC,e3=GC,t3=ZC,n3=KC,r3=QC,i3=qC,o3=yr,C1={Deflate:XC,deflate:JC,deflateRaw:YC,gzip:e3,Inflate:t3,inflate:n3,inflateRaw:r3,ungzip:i3,constants:o3};var an={tables:{},columns:{},rels:{}},T1=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async i=>vr({name:t,action:"batch_update",table:"",params:{batch:i}},e),upsert:async i=>vr({name:t,action:"batch_upsert",table:"",params:{arg:i}},e)}:r==="_schema"?{tables:async()=>(an.tables[e]||(an.tables[e]=vr({name:t,action:"schema_tables",table:"",params:[]},e)),await an.tables[e]),columns:async i=>(an.columns[e+"_"+i]||(an.columns[e+"_"+i]=vr({name:t,action:"schema_columns",table:i,params:[]},e)),await an.columns[e+"_"+i]),rels:async i=>(an.rels[e+"_"+i]||(an.rels[e+"_"+i]=vr({name:t,action:"schema_rels",table:i,params:[]},e)),await an.rels[e+"_"+i])}:r.startsWith("$")?(...i)=>{let o=C1.gzip(JSON.stringify(i));return vr({name:t,action:"query",table:r,params:btoa(o.reduce((s,l)=>s+String.fromCharCode(l),""))},e)}:new Proxy({},{get(i,o){return async(...s)=>(r==="query"&&(r=o,o="query"),await vr({name:t,action:o,table:r,params:s},e))}})}})},Ei={},vr=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString();typeof localStorage<"u"&&localStorage.mlsid&&(e.mlsid=localStorage.mlsid);let i=(0,I1.default)(e),o=Ei[i];if(!o||o&&Date.now()-o.timestamp>1e3){Ei[i]={timestamp:Date.now(),promise:va(r,e,{"content-type":"application/json"},!1),result:null};let l=await Ei[i].promise;o=Ei[i];try{return typeof l=="string"?(l=JSON.parse(l),Ei[i].result=l,l):(Ei[i].result=l,l)}catch{return l&&console.error("DBQuery failed:",l),null}}if(o.result)return o.result;let s=await o.promise;if(s)try{return typeof s=="string"&&(s=JSON.parse(s)),s}catch{console.error("DBQuery failed:",s)}return null};var O1=P(Vl());var N1=e=>{let{item:t,item_comp:n,ids:r}=e,i=Jr(n);if(P1(i,r),t.id&&(i.id=t.id),i.hidden=t.hidden,i.component){if(i.component.props&&t.component&&t.component.props)for(let o of Object.keys(i.component.props)){let s=t.component.props[o],l=i.component.props[o];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}i.component.instances=t.component?.instances,i.component.style=t.component?.style}for(let o of Object.keys(t))delete t[o];for(let[o,s]of Object.entries(i))t[o]=s},P1=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,O1.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)P1(n,t)};var A1=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let i=Jr(r),o=e.item.component?.props;o&&o[n]&&(i.value=o[n].value,i.valueBuilt=o[n].valueBuilt,o[n].content&&(i.content=o[n].content)),i&&e.each(n,i)}};var Pa=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let i of r)i.type==="item"&&i.component?t.childs.push(i):t.childs.push({name:i.name,id:i.id,originalId:i.originalId})}else t[n]=r;return t};var L1=(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 i;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),i=n.component.instances):i=t.parent?.root_instances,i){let s=i[n.id];i[n.id]||(i[n.id]={},s=i[n.id]),N1({item:n,item_comp:r,ids:s})}let o={item:Pa(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:i};if(e.on?.visit&&e.on.visit(o,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=o),A1({item:n,item_comp:r,instance:i?i[n.id]:{},each(s,l){let c=n.component?.id;l.meta?.type==="content-element"&&c&&l.content&&(l.content.name=s,bi({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:c,name:s},parent:{item:o.item,instance_id:n.id,comp:r,root_instances:i}}))}}),n.childs)for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&bi({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:i,comp:r}})}}};var bi=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){L1(e,t);return}let r={item:Pa(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[i,o]of Object.entries(n.childs))if(o.id){let s={item:o,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}),bi(e,s)}}};var s3=()=>new Promise(async e=>{let t=!1,n=await fetch(C.url`_prasi/route`);t||(n.headers.get("content-encoding")||fetch(C.url`_prasi/compress/only-gz`),e(await n.json()))}),D1=async()=>{let e=Wl(),t=[];try{let n=await s3();if(n&&n.site&&n.urls){n.layout&&(C.layout.id=n.layout.id,C.layout.root=n.layout.root,C.layout.meta={},C.layout.root&&(await ui(C.layout.root.childs),Aa(C.layout.meta,C.layout.root))),C.site=n.site,C.site.code={mode:"vsc"},await l3(),C.site.api=iv(C.site.api_url),C.site.db=T1(C.site.api_url);let r=window;r.serverurl=C.site.api_url,r.db=C.site.db,r.api=C.site.api;for(let i of n.urls)e.insert(i.url,i),t.push(i)}}catch{}return{router:e,pages:t}},l3=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=C.site.api_url;r==="*"&&(r=`${location.protocol}//${location.host}`,C.site.api_url=r),localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let i=localStorage.getItem("api-ts-"+r),o=new URL(location.href);if(o.pathname="",!["prasi.avolut.com"].includes(o.hostname)&&o.host!=="localhost:4550"){let s=o.toString();n.src=`${s.endsWith("/")?s:`${s}/`}_prasi/load.js?url=${s}&v3&ts=${i}`,C.site.api_url=`${o.protocol}//${o.host}`}else n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${i}`;n.onerror=()=>{e()},document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),Aa=(e,t)=>{for(let n of t.childs)bi({set_meta:!0,comps:C.comp.list,meta:e,mode:"page"},{item:n})};var le=window;var un=P(G()),qd=()=>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",z1=()=>{let e=Nn({page_id:""}),[t,n]=(0,M1.useState)({}),r=()=>n({});le.prasiContext.render=r;let i=cf.Provider,o=qd()&&location.pathname.startsWith("/prod");if(C.route.status!=="ready")return C.route.status==="init"&&(C.route.status="loading",D1().then(async({router:a,pages:p})=>{qy(),C.route.status="ready",C.route.router=a,C.route.pages=p;let f=le._prasi.basepath,d=`${f.endsWith("/")?f:`${f}/`}_prasi/code/index.js`,g=new URL(location.href);d.startsWith("/")&&(d=`${g.protocol}//${g.host}${d}`);let w=new Function("callback",`import("${d}").then(callback)`);await new Promise(_=>{w(m=>{for(let[h,y]of Object.entries(m))le[h]=y;_()})}),r()})),(0,un.jsx)(So,{});let s=C.route.router;if(!s)return(0,un.jsx)(vf,{children:"Failed to create Router"});let l="";if(o){let a=location.pathname.split("/");_f(a[3])&&(l=a[3])}let c=null;if(le._prasi.page_id)s.insert(C.pathname,{id:le._prasi.page_id,url:C.pathname}),c={id:le._prasi.page_id,url:"",params:le._prasi.params},le._prasi.routed={page_id:le._prasi.page_id,params:le._prasi.params},delete le._prasi.page_id,delete le._prasi.params;else{if(c=s.lookup(C.pathname),l){let a=C.route.pages.find(p=>l===p.id);a&&(c=a)}c&&le._prasi.routed&&le._prasi.routed.page_id===c.id&&le._prasi.routed.params&&(c.params=le._prasi.routed.params)}if(!c)return(0,un.jsx)(vf,{children:"Page Not Found"});c.id!==e.page_id&&(C.init_local_effect={}),le.params=c.params||{},C.page.id=c.id,C.page.url=c.url;let u=C.page.cache[c.id];if(u)C.page.root=u.root,C.page.meta=u.meta;else return Gy(c.id).then(async({root:a})=>{if(c){let p={id:c.id,url:c.url,root:a,meta:{}};await ui(a.childs,!0),Aa(p.meta,a),C.page.cache[p.id]=p,r()}}).catch(()=>{r()}),(0,un.jsx)(So,{note:"Loading page"});return(0,un.jsx)(i,{value:le.prasiContext,children:(0,un.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,un.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",C.mode==="mobile"?css` + - `)}`);return}let p=a.apiEntry[s].url,f=a.apiEntry[s].args;if(p&&f){if(l.length>0&&f.length>0)for(let[w,_]of Object.entries(l)){let m=f[parseInt(w)];f&&f.includes(m)&&_&&typeof _!="string"&&typeof _!="number"||(p=p.replace(`:${m}?`,_+""),p=p.replace(`:${m}`,_+""))}let d=`${n}${p}`,g=await r1(d,l);c(g)}else console.error(`API Not Found: ${s.toString()}`)}else u("Failed to load API [Proxy]: "+n)}catch(a){u(a)}})};return i==="then"?new Proxy({},{get:(s,l)=>o(l)}):o(i)}})}catch{return null}},r1=async(e,t)=>await va(e,t,{"content-type":"application/json"});var Iv=P(l1());function xi(e){let t=e.length;for(;--t>=0;)e[t]=0}var fb=0,G1=1,db=2,pb=3,mb=258,$d=29,is=256,qo=is+1+$d,_i=30,Hd=19,Z1=2*qo+1,fr=15,vd=16,hb=7,Vd=256,K1=16,Q1=17,q1=18,Ad=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ba=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),gb=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),X1=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),yb=512,sn=new Array((qo+2)*2);xi(sn);var Zo=new Array(_i*2);xi(Zo);var Xo=new Array(yb);xi(Xo);var Jo=new Array(mb-pb+1);xi(Jo);var Wd=new Array($d);xi(Wd);var Ra=new Array(_i);xi(Ra);function wd(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}var J1,Y1,ev;function xd(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}var tv=e=>e<256?Xo[e]:Xo[256+(e>>>7)],Yo=(e,t)=>{e.pending_buf[e.pending++]=t&255,e.pending_buf[e.pending++]=t>>>8&255},Ve=(e,t,n)=>{e.bi_valid>vd-n?(e.bi_buf|=t<>vd-e.bi_valid,e.bi_valid+=n-vd):(e.bi_buf|=t<{Ve(e,n[t*2],n[t*2+1])},nv=(e,t)=>{let n=0;do n|=e&1,e>>>=1,n<<=1;while(--t>0);return n>>>1},_b=e=>{e.bi_valid===16?(Yo(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):e.bi_valid>=8&&(e.pending_buf[e.pending++]=e.bi_buf&255,e.bi_buf>>=8,e.bi_valid-=8)},vb=(e,t)=>{let n=t.dyn_tree,r=t.max_code,i=t.stat_desc.static_tree,o=t.stat_desc.has_stree,s=t.stat_desc.extra_bits,l=t.stat_desc.extra_base,c=t.stat_desc.max_length,u,a,p,f,d,g,w=0;for(f=0;f<=fr;f++)e.bl_count[f]=0;for(n[e.heap[e.heap_max]*2+1]=0,u=e.heap_max+1;uc&&(f=c,w++),n[a*2+1]=f,!(a>r)&&(e.bl_count[f]++,d=0,a>=l&&(d=s[a-l]),g=n[a*2],e.opt_len+=g*(f+d),o&&(e.static_len+=g*(i[a*2+1]+d)));if(w!==0){do{for(f=c-1;e.bl_count[f]===0;)f--;e.bl_count[f]--,e.bl_count[f+1]+=2,e.bl_count[c]--,w-=2}while(w>0);for(f=c;f!==0;f--)for(a=e.bl_count[f];a!==0;)p=e.heap[--u],!(p>r)&&(n[p*2+1]!==f&&(e.opt_len+=(f-n[p*2+1])*n[p*2],n[p*2+1]=f),a--)}},rv=(e,t,n)=>{let r=new Array(fr+1),i=0,o,s;for(o=1;o<=fr;o++)i=i+n[o-1]<<1,r[o]=i;for(s=0;s<=t;s++){let l=e[s*2+1];l!==0&&(e[s*2]=nv(r[l]++,l))}},wb=()=>{let e,t,n,r,i,o=new Array(fr+1);for(n=0,r=0;r<$d-1;r++)for(Wd[r]=n,e=0;e<1<>=7;r<_i;r++)for(Ra[r]=i<<7,e=0;e<1<{let t;for(t=0;t{e.bi_valid>8?Yo(e,e.bi_buf):e.bi_valid>0&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0},a1=(e,t,n,r)=>{let i=t*2,o=n*2;return e[i]{let r=e.heap[n],i=n<<1;for(;i<=e.heap_len&&(i{let r,i,o=0,s,l;if(e.sym_next!==0)do r=e.pending_buf[e.sym_buf+o++]&255,r+=(e.pending_buf[e.sym_buf+o++]&255)<<8,i=e.pending_buf[e.sym_buf+o++],r===0?Mt(e,i,t):(s=Jo[i],Mt(e,s+is+1,t),l=Ad[s],l!==0&&(i-=Wd[s],Ve(e,i,l)),r--,s=tv(r),Mt(e,s,n),l=ba[s],l!==0&&(r-=Ra[s],Ve(e,r,l)));while(o{let n=t.dyn_tree,r=t.stat_desc.static_tree,i=t.stat_desc.has_stree,o=t.stat_desc.elems,s,l,c=-1,u;for(e.heap_len=0,e.heap_max=Z1,s=0;s>1;s>=1;s--)Sd(e,n,s);u=o;do s=e.heap[1],e.heap[1]=e.heap[e.heap_len--],Sd(e,n,1),l=e.heap[1],e.heap[--e.heap_max]=s,e.heap[--e.heap_max]=l,n[u*2]=n[s*2]+n[l*2],e.depth[u]=(e.depth[s]>=e.depth[l]?e.depth[s]:e.depth[l])+1,n[s*2+1]=n[l*2+1]=u,e.heap[1]=u++,Sd(e,n,1);while(e.heap_len>=2);e.heap[--e.heap_max]=e.heap[1],vb(e,t),rv(n,c,e.bl_count)},c1=(e,t,n)=>{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),t[(n+1)*2+1]=65535,r=0;r<=n;r++)o=s,s=t[(r+1)*2+1],!(++l{let r,i=-1,o,s=t[0*2+1],l=0,c=7,u=4;for(s===0&&(c=138,u=3),r=0;r<=n;r++)if(o=s,s=t[(r+1)*2+1],!(++l{let t;for(c1(e,e.dyn_ltree,e.l_desc.max_code),c1(e,e.dyn_dtree,e.d_desc.max_code),Ld(e,e.bl_desc),t=Hd-1;t>=3&&e.bl_tree[X1[t]*2+1]===0;t--);return e.opt_len+=3*(t+1)+5+5+4,t},Sb=(e,t,n,r)=>{let i;for(Ve(e,t-257,5),Ve(e,n-1,5),Ve(e,r-4,4),i=0;i{let t=4093624447,n;for(n=0;n<=31;n++,t>>>=1)if(t&1&&e.dyn_ltree[n*2]!==0)return 0;if(e.dyn_ltree[9*2]!==0||e.dyn_ltree[10*2]!==0||e.dyn_ltree[13*2]!==0)return 1;for(n=32;n{d1||(wb(),d1=!0),e.l_desc=new xd(e.dyn_ltree,J1),e.d_desc=new xd(e.dyn_dtree,Y1),e.bl_desc=new xd(e.bl_tree,ev),e.bi_buf=0,e.bi_valid=0,iv(e)},sv=(e,t,n,r)=>{Ve(e,(fb<<1)+(r?1:0),3),ov(e),Yo(e,n),Yo(e,~n),n&&e.pending_buf.set(e.window.subarray(t,t+n),e.pending),e.pending+=n},bb=e=>{Ve(e,G1<<1,3),Mt(e,Vd,sn),_b(e)},Rb=(e,t,n,r)=>{let i,o,s=0;e.level>0?(e.strm.data_type===2&&(e.strm.data_type=kb(e)),Ld(e,e.l_desc),Ld(e,e.d_desc),s=xb(e),i=e.opt_len+3+7>>>3,o=e.static_len+3+7>>>3,o<=i&&(i=o)):i=o=n+5,n+4<=i&&t!==-1?sv(e,t,n,r):e.strategy===4||o===i?(Ve(e,(G1<<1)+(r?1:0),3),u1(e,sn,Zo)):(Ve(e,(db<<1)+(r?1:0),3),Sb(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),u1(e,e.dyn_ltree,e.dyn_dtree)),iv(e),r&&ov(e)},Cb=(e,t,n)=>(e.pending_buf[e.sym_buf+e.sym_next++]=t,e.pending_buf[e.sym_buf+e.sym_next++]=t>>8,e.pending_buf[e.sym_buf+e.sym_next++]=n,t===0?e.dyn_ltree[n*2]++:(e.matches++,t--,e.dyn_ltree[(Jo[n]+is+1)*2]++,e.dyn_dtree[tv(t)*2]++),e.sym_next===e.sym_end),Ib=Eb,Tb=sv,Ob=Rb,Nb=Cb,Pb=bb,Ab={_tr_init:Ib,_tr_stored_block:Tb,_tr_flush_block:Ob,_tr_tally:Nb,_tr_align:Pb},Lb=(e,t,n,r)=>{let i=e&65535|0,o=e>>>16&65535|0,s=0;for(;n!==0;){s=n>2e3?2e3:n,n-=s;do i=i+t[r++]|0,o=o+i|0;while(--s);i%=65521,o%=65521}return i|o<<16|0},es=Lb,Db=()=>{let e,t=[];for(var n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=e&1?3988292384^e>>>1:e>>>1;t[n]=e}return t},Mb=new Uint32Array(Db()),zb=(e,t,n,r)=>{let i=Mb,o=r+n;e^=-1;for(let s=r;s>>8^i[(e^t[s])&255];return e^-1},ye=zb,mr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},yr={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Fb,_tr_stored_block:Dd,_tr_flush_block:jb,_tr_tally:Bn,_tr_align:Ub}=Ab,{Z_NO_FLUSH:$n,Z_PARTIAL_FLUSH:Bb,Z_FULL_FLUSH:$b,Z_FINISH:ft,Z_BLOCK:p1,Z_OK:Ee,Z_STREAM_END:m1,Z_STREAM_ERROR:zt,Z_DATA_ERROR:Hb,Z_BUF_ERROR:kd,Z_DEFAULT_COMPRESSION:Vb,Z_FILTERED:Wb,Z_HUFFMAN_ONLY:wa,Z_RLE:Gb,Z_FIXED:Zb,Z_DEFAULT_STRATEGY:Kb,Z_UNKNOWN:Qb,Z_DEFLATED:Ta}=yr,qb=9,Xb=15,Jb=8,Yb=29,eR=256,Md=eR+1+Yb,tR=30,nR=19,rR=2*Md+1,iR=15,U=3,Un=258,Ft=Un+U+1,oR=32,vi=42,Gd=57,zd=69,Fd=73,jd=91,Ud=103,dr=113,Wo=666,Me=1,Si=2,hr=3,ki=4,sR=3,pr=(e,t)=>(e.msg=mr[t],t),h1=e=>e*2-(e>4?9:0),jn=e=>{let t=e.length;for(;--t>=0;)e[t]=0},lR=e=>{let t,n,r,i=e.w_size;t=e.hash_size,r=t;do n=e.head[--r],e.head[r]=n>=i?n-i:0;while(--t);t=i,r=t;do n=e.prev[--r],e.prev[r]=n>=i?n-i:0;while(--t)},aR=(e,t,n)=>(t<{let t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),n!==0&&(e.output.set(t.pending_buf.subarray(t.pending_out,t.pending_out+n),e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,t.pending===0&&(t.pending_out=0))},et=(e,t)=>{jb(e,e.block_start>=0?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,Ye(e.strm)},$=(e,t)=>{e.pending_buf[e.pending++]=t},Vo=(e,t)=>{e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=t&255},Bd=(e,t,n,r)=>{let i=e.avail_in;return i>r&&(i=r),i===0?0:(e.avail_in-=i,t.set(e.input.subarray(e.next_in,e.next_in+i),n),e.state.wrap===1?e.adler=es(e.adler,t,i,n):e.state.wrap===2&&(e.adler=ye(e.adler,t,i,n)),e.next_in+=i,e.total_in+=i,i)},lv=(e,t)=>{let n=e.max_chain_length,r=e.strstart,i,o,s=e.prev_length,l=e.nice_match,c=e.strstart>e.w_size-Ft?e.strstart-(e.w_size-Ft):0,u=e.window,a=e.w_mask,p=e.prev,f=e.strstart+Un,d=u[r+s-1],g=u[r+s];e.prev_length>=e.good_match&&(n>>=2),l>e.lookahead&&(l=e.lookahead);do if(i=t,!(u[i+s]!==g||u[i+s-1]!==d||u[i]!==u[r]||u[++i]!==u[r+1])){r+=2,i++;do;while(u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&u[++r]===u[++i]&&rs){if(e.match_start=t,s=o,o>=l)break;d=u[r+s-1],g=u[r+s]}}while((t=p[t&a])>c&&--n!==0);return s<=e.lookahead?s:e.lookahead},wi=e=>{let t=e.w_size,n,r,i;do{if(r=e.window_size-e.lookahead-e.strstart,e.strstart>=t+(t-Ft)&&(e.window.set(e.window.subarray(t,t+t-r),0),e.match_start-=t,e.strstart-=t,e.block_start-=t,e.insert>e.strstart&&(e.insert=e.strstart),lR(e),r+=t),e.strm.avail_in===0)break;if(n=Bd(e.strm,e.window,e.strstart+e.lookahead,r),e.lookahead+=n,e.lookahead+e.insert>=U)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=Hn(e,e.ins_h,e.window[i+1]);e.insert&&(e.ins_h=Hn(e,e.ins_h,e.window[i+U-1]),e.prev[i&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=i,i++,e.insert--,!(e.lookahead+e.insert{let n=e.pending_buf_size-5>e.w_size?e.w_size:e.pending_buf_size-5,r,i,o,s=0,l=e.strm.avail_in;do{if(r=65535,o=e.bi_valid+42>>3,e.strm.avail_outi+e.strm.avail_in&&(r=i+e.strm.avail_in),r>o&&(r=o),r>8,e.pending_buf[e.pending-2]=~r,e.pending_buf[e.pending-1]=~r>>8,Ye(e.strm),i&&(i>r&&(i=r),e.strm.output.set(e.window.subarray(e.block_start,e.block_start+i),e.strm.next_out),e.strm.next_out+=i,e.strm.avail_out-=i,e.strm.total_out+=i,e.block_start+=i,r-=i),r&&(Bd(e.strm,e.strm.output,e.strm.next_out,r),e.strm.next_out+=r,e.strm.avail_out-=r,e.strm.total_out+=r)}while(s===0);return l-=e.strm.avail_in,l&&(l>=e.w_size?(e.matches=2,e.window.set(e.strm.input.subarray(e.strm.next_in-e.w_size,e.strm.next_in),0),e.strstart=e.w_size,e.insert=e.strstart):(e.window_size-e.strstart<=l&&(e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,e.insert>e.strstart&&(e.insert=e.strstart)),e.window.set(e.strm.input.subarray(e.strm.next_in-l,e.strm.next_in),e.strstart),e.strstart+=l,e.insert+=l>e.w_size-e.insert?e.w_size-e.insert:l),e.block_start=e.strstart),e.high_watero&&e.block_start>=e.w_size&&(e.block_start-=e.w_size,e.strstart-=e.w_size,e.window.set(e.window.subarray(e.w_size,e.w_size+e.strstart),0),e.matches<2&&e.matches++,o+=e.w_size,e.insert>e.strstart&&(e.insert=e.strstart)),o>e.strm.avail_in&&(o=e.strm.avail_in),o&&(Bd(e.strm,e.window,e.strstart,o),e.strstart+=o,e.insert+=o>e.w_size-e.insert?e.w_size-e.insert:o),e.high_water>3,o=e.pending_buf_size-o>65535?65535:e.pending_buf_size-o,n=o>e.w_size?e.w_size:o,i=e.strstart-e.block_start,(i>=n||(i||t===ft)&&t!==$n&&e.strm.avail_in===0&&i<=o)&&(r=i>o?o:i,s=t===ft&&e.strm.avail_in===0&&r===i?1:0,Dd(e,e.block_start,r,s),e.block_start+=r,Ye(e.strm)),s?hr:Me)},Ed=(e,t)=>{let n,r;for(;;){if(e.lookahead=U&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),n!==0&&e.strstart-n<=e.w_size-Ft&&(e.match_length=lv(e,n)),e.match_length>=U)if(r=Bn(e,e.strstart-e.match_start,e.match_length-U),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=U){e.match_length--;do e.strstart++,e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart;while(--e.match_length!==0);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+1]);else r=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=e.strstart{let n,r,i;for(;;){if(e.lookahead=U&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=U-1,n!==0&&e.prev_length4096)&&(e.match_length=U-1)),e.prev_length>=U&&e.match_length<=e.prev_length){i=e.strstart+e.lookahead-U,r=Bn(e,e.strstart-1-e.prev_match,e.prev_length-U),e.lookahead-=e.prev_length-1,e.prev_length-=2;do++e.strstart<=i&&(e.ins_h=Hn(e,e.ins_h,e.window[e.strstart+U-1]),n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart);while(--e.prev_length!==0);if(e.match_available=0,e.match_length=U-1,e.strstart++,r&&(et(e,!1),e.strm.avail_out===0))return Me}else if(e.match_available){if(r=Bn(e,0,e.window[e.strstart-1]),r&&et(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return Me}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=Bn(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart{let n,r,i,o,s=e.window;for(;;){if(e.lookahead<=Un){if(wi(e),e.lookahead<=Un&&t===$n)return Me;if(e.lookahead===0)break}if(e.match_length=0,e.lookahead>=U&&e.strstart>0&&(i=e.strstart-1,r=s[i],r===s[++i]&&r===s[++i]&&r===s[++i])){o=e.strstart+Un;do;while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&ie.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=U?(n=Bn(e,1,e.match_length-U),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===ft?(et(e,!0),e.strm.avail_out===0?hr:ki):e.sym_next&&(et(e,!1),e.strm.avail_out===0)?Me:Si},cR=(e,t)=>{let n;for(;;){if(e.lookahead===0&&(wi(e),e.lookahead===0)){if(t===$n)return Me;break}if(e.match_length=0,n=Bn(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(et(e,!1),e.strm.avail_out===0))return Me}return e.insert=0,t===ft?(et(e,!0),e.strm.avail_out===0?hr:ki):e.sym_next&&(et(e,!1),e.strm.avail_out===0)?Me:Si};function Dt(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}var Go=[new Dt(0,0,0,0,av),new Dt(4,4,8,4,Ed),new Dt(4,5,16,8,Ed),new Dt(4,6,32,32,Ed),new Dt(4,4,16,16,gi),new Dt(8,16,32,32,gi),new Dt(8,16,128,128,gi),new Dt(8,32,128,256,gi),new Dt(32,128,258,1024,gi),new Dt(32,258,258,4096,gi)],fR=e=>{e.window_size=2*e.w_size,jn(e.head),e.max_lazy_match=Go[e.level].max_lazy,e.good_match=Go[e.level].good_length,e.nice_match=Go[e.level].nice_length,e.max_chain_length=Go[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=U-1,e.match_available=0,e.ins_h=0};function dR(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Ta,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(rR*2),this.dyn_dtree=new Uint16Array((2*tR+1)*2),this.bl_tree=new Uint16Array((2*nR+1)*2),jn(this.dyn_ltree),jn(this.dyn_dtree),jn(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(iR+1),this.heap=new Uint16Array(2*Md+1),jn(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Md+1),jn(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var os=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.status!==vi&&t.status!==Gd&&t.status!==zd&&t.status!==Fd&&t.status!==jd&&t.status!==Ud&&t.status!==dr&&t.status!==Wo?1:0},uv=e=>{if(os(e))return pr(e,zt);e.total_in=e.total_out=0,e.data_type=Qb;let t=e.state;return t.pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap===2?Gd:t.wrap?vi:dr,e.adler=t.wrap===2?0:1,t.last_flush=-2,Fb(t),Ee},cv=e=>{let t=uv(e);return t===Ee&&fR(e.state),t},pR=(e,t)=>os(e)||e.state.wrap!==2?zt:(e.state.gzhead=t,Ee),fv=(e,t,n,r,i,o)=>{if(!e)return zt;let s=1;if(t===Vb&&(t=6),r<0?(s=0,r=-r):r>15&&(s=2,r-=16),i<1||i>qb||n!==Ta||r<8||r>15||t<0||t>9||o<0||o>Zb||r===8&&s!==1)return pr(e,zt);r===8&&(r=9);let l=new dR;return e.state=l,l.strm=e,l.status=vi,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<fv(e,t,Ta,Xb,Jb,Kb),hR=(e,t)=>{if(os(e)||t>p1||t<0)return e?pr(e,zt):zt;let n=e.state;if(!e.output||e.avail_in!==0&&!e.input||n.status===Wo&&t!==ft)return pr(e,e.avail_out===0?kd:zt);let r=n.last_flush;if(n.last_flush=t,n.pending!==0){if(Ye(e),e.avail_out===0)return n.last_flush=-1,Ee}else if(e.avail_in===0&&h1(t)<=h1(r)&&t!==ft)return pr(e,kd);if(n.status===Wo&&e.avail_in!==0)return pr(e,kd);if(n.status===vi&&n.wrap===0&&(n.status=dr),n.status===vi){let i=Ta+(n.w_bits-8<<4)<<8,o=-1;if(n.strategy>=wa||n.level<2?o=0:n.level<6?o=1:n.level===6?o=2:o=3,i|=o<<6,n.strstart!==0&&(i|=oR),i+=31-i%31,Vo(n,i),n.strstart!==0&&(Vo(n,e.adler>>>16),Vo(n,e.adler&65535)),e.adler=1,n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(n.status===Gd){if(e.adler=0,$(n,31),$(n,139),$(n,8),n.gzhead)$(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),$(n,n.gzhead.time&255),$(n,n.gzhead.time>>8&255),$(n,n.gzhead.time>>16&255),$(n,n.gzhead.time>>24&255),$(n,n.level===9?2:n.strategy>=wa||n.level<2?4:0),$(n,n.gzhead.os&255),n.gzhead.extra&&n.gzhead.extra.length&&($(n,n.gzhead.extra.length&255),$(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=ye(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=zd;else if($(n,0),$(n,0),$(n,0),$(n,0),$(n,0),$(n,n.level===9?2:n.strategy>=wa||n.level<2?4:0),$(n,sR),n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(n.status===zd){if(n.gzhead.extra){let i=n.pending,o=(n.gzhead.extra.length&65535)-n.gzindex;for(;n.pending+o>n.pending_buf_size;){let l=n.pending_buf_size-n.pending;if(n.pending_buf.set(n.gzhead.extra.subarray(n.gzindex,n.gzindex+l),n.pending),n.pending=n.pending_buf_size,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex+=l,Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0,o-=l}let s=new Uint8Array(n.gzhead.extra);n.pending_buf.set(s.subarray(n.gzindex,n.gzindex+o),n.pending),n.pending+=o,n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=Fd}if(n.status===Fd){if(n.gzhead.name){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0}n.gzindexi&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex=0}n.status=jd}if(n.status===jd){if(n.gzhead.comment){let i=n.pending,o;do{if(n.pending===n.pending_buf_size){if(n.gzhead.hcrc&&n.pending>i&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i)),Ye(e),n.pending!==0)return n.last_flush=-1,Ee;i=0}n.gzindexi&&(e.adler=ye(e.adler,n.pending_buf,n.pending-i,i))}n.status=Ud}if(n.status===Ud){if(n.gzhead.hcrc){if(n.pending+2>n.pending_buf_size&&(Ye(e),n.pending!==0))return n.last_flush=-1,Ee;$(n,e.adler&255),$(n,e.adler>>8&255),e.adler=0}if(n.status=dr,Ye(e),n.pending!==0)return n.last_flush=-1,Ee}if(e.avail_in!==0||n.lookahead!==0||t!==$n&&n.status!==Wo){let i=n.level===0?av(n,t):n.strategy===wa?cR(n,t):n.strategy===Gb?uR(n,t):Go[n.level].func(n,t);if((i===hr||i===ki)&&(n.status=Wo),i===Me||i===hr)return e.avail_out===0&&(n.last_flush=-1),Ee;if(i===Si&&(t===Bb?Ub(n):t!==p1&&(Dd(n,0,0,!1),t===$b&&(jn(n.head),n.lookahead===0&&(n.strstart=0,n.block_start=0,n.insert=0))),Ye(e),e.avail_out===0))return n.last_flush=-1,Ee}return t!==ft?Ee:n.wrap<=0?m1:(n.wrap===2?($(n,e.adler&255),$(n,e.adler>>8&255),$(n,e.adler>>16&255),$(n,e.adler>>24&255),$(n,e.total_in&255),$(n,e.total_in>>8&255),$(n,e.total_in>>16&255),$(n,e.total_in>>24&255)):(Vo(n,e.adler>>>16),Vo(n,e.adler&65535)),Ye(e),n.wrap>0&&(n.wrap=-n.wrap),n.pending!==0?Ee:m1)},gR=e=>{if(os(e))return zt;let t=e.state.status;return e.state=null,t===dr?pr(e,Hb):Ee},yR=(e,t)=>{let n=t.length;if(os(e))return zt;let r=e.state,i=r.wrap;if(i===2||i===1&&r.status!==vi||r.lookahead)return zt;if(i===1&&(e.adler=es(e.adler,t,n,0)),r.wrap=0,n>=r.w_size){i===0&&(jn(r.head),r.strstart=0,r.block_start=0,r.insert=0);let c=new Uint8Array(r.w_size);c.set(t.subarray(n-r.w_size,n),0),t=c,n=r.w_size}let o=e.avail_in,s=e.next_in,l=e.input;for(e.avail_in=n,e.next_in=0,e.input=t,wi(r);r.lookahead>=U;){let c=r.strstart,u=r.lookahead-(U-1);do r.ins_h=Hn(r,r.ins_h,r.window[c+U-1]),r.prev[c&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=c,c++;while(--u);r.strstart=c,r.lookahead=U-1,wi(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=U-1,r.match_available=0,e.next_in=s,e.input=l,e.avail_in=o,r.wrap=i,Ee},_R=mR,vR=fv,wR=cv,xR=uv,SR=pR,kR=hR,ER=gR,bR=yR,RR="pako deflate (from Nodeca project)",Ko={deflateInit:_R,deflateInit2:vR,deflateReset:wR,deflateResetKeep:xR,deflateSetHeader:SR,deflate:kR,deflateEnd:ER,deflateSetDictionary:bR,deflateInfo:RR},CR=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),IR=function(e){let t=Array.prototype.slice.call(arguments,1);for(;t.length;){let n=t.shift();if(n){if(typeof n!="object")throw new TypeError(n+"must be non-object");for(let r in n)CR(n,r)&&(e[r]=n[r])}}return e},TR=e=>{let t=0;for(let r=0,i=e.length;r=252?6:e>=248?5:e>=240?4:e>=224?3:e>=192?2:1;ts[254]=ts[254]=1;var OR=e=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(e);let t,n,r,i,o,s=e.length,l=0;for(i=0;i>>6,t[o++]=128|n&63):n<65536?(t[o++]=224|n>>>12,t[o++]=128|n>>>6&63,t[o++]=128|n&63):(t[o++]=240|n>>>18,t[o++]=128|n>>>12&63,t[o++]=128|n>>>6&63,t[o++]=128|n&63);return t},NR=(e,t)=>{if(t<65534&&e.subarray&&dv)return String.fromCharCode.apply(null,e.length===t?e:e.subarray(0,t));let n="";for(let r=0;r{let n=t||e.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(e.subarray(0,t));let r,i,o=new Array(n*2);for(i=0,r=0;r4){o[i++]=65533,r+=l-1;continue}for(s&=l===2?31:l===3?15:7;l>1&&r1){o[i++]=65533;continue}s<65536?o[i++]=s:(s-=65536,o[i++]=55296|s>>10&1023,o[i++]=56320|s&1023)}return NR(o,i)},AR=(e,t)=>{t=t||e.length,t>e.length&&(t=e.length);let n=t-1;for(;n>=0&&(e[n]&192)===128;)n--;return n<0||n===0?t:n+ts[e[n]]>t?n:t},ns={string2buf:OR,buf2string:PR,utf8border:AR};function LR(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var pv=LR,mv=Object.prototype.toString,{Z_NO_FLUSH:DR,Z_SYNC_FLUSH:MR,Z_FULL_FLUSH:zR,Z_FINISH:FR,Z_OK:Ca,Z_STREAM_END:jR,Z_DEFAULT_COMPRESSION:UR,Z_DEFAULT_STRATEGY:BR,Z_DEFLATED:$R}=yr;function ss(e){this.options=Oa.assign({level:UR,method:$R,chunkSize:16384,windowBits:15,memLevel:8,strategy:BR},e||{});let t=this.options;t.raw&&t.windowBits>0?t.windowBits=-t.windowBits:t.gzip&&t.windowBits>0&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pv,this.strm.avail_out=0;let n=Ko.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==Ca)throw new Error(mr[n]);if(t.header&&Ko.deflateSetHeader(this.strm,t.header),t.dictionary){let r;if(typeof t.dictionary=="string"?r=ns.string2buf(t.dictionary):mv.call(t.dictionary)==="[object ArrayBuffer]"?r=new Uint8Array(t.dictionary):r=t.dictionary,n=Ko.deflateSetDictionary(this.strm,r),n!==Ca)throw new Error(mr[n]);this._dict_set=!0}}ss.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i,o;if(this.ended)return!1;for(t===~~t?o=t:o=t===!0?FR:DR,typeof e=="string"?n.input=ns.string2buf(e):mv.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){if(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),(o===MR||o===zR)&&n.avail_out<=6){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(i=Ko.deflate(n,o),i===jR)return n.next_out>0&&this.onData(n.output.subarray(0,n.next_out)),i=Ko.deflateEnd(this.strm),this.onEnd(i),this.ended=!0,i===Ca;if(n.avail_out===0){this.onData(n.output);continue}if(o>0&&n.next_out>0){this.onData(n.output.subarray(0,n.next_out)),n.avail_out=0;continue}if(n.avail_in===0)break}return!0};ss.prototype.onData=function(e){this.chunks.push(e)};ss.prototype.onEnd=function(e){e===Ca&&(this.result=Oa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Zd(e,t){let n=new ss(t);if(n.push(e,!0),n.err)throw n.msg||mr[n.err];return n.result}function HR(e,t){return t=t||{},t.raw=!0,Zd(e,t)}function VR(e,t){return t=t||{},t.gzip=!0,Zd(e,t)}var WR=ss,GR=Zd,ZR=HR,KR=VR,QR=yr,qR={Deflate:WR,deflate:GR,deflateRaw:ZR,gzip:KR,constants:QR},xa=16209,XR=16191,JR=function(t,n){let r,i,o,s,l,c,u,a,p,f,d,g,w,_,m,h,y,v,k,b,S,R,O,I,N=t.state;r=t.next_in,O=t.input,i=r+(t.avail_in-5),o=t.next_out,I=t.output,s=o-(n-t.avail_out),l=o+(t.avail_out-257),c=N.dmax,u=N.wsize,a=N.whave,p=N.wnext,f=N.window,d=N.hold,g=N.bits,w=N.lencode,_=N.distcode,m=(1<>>24,d>>>=v,g-=v,v=y>>>16&255,v===0)I[o++]=y&65535;else if(v&16){k=y&65535,v&=15,v&&(g>>=v,g-=v),g<15&&(d+=O[r++]<>>24,d>>>=v,g-=v,v=y>>>16&255,v&16){if(b=y&65535,v&=15,gc){t.msg="invalid distance too far back",N.mode=xa;break e}if(d>>>=v,g-=v,v=o-s,b>v){if(v=b-v,v>a&&N.sane){t.msg="invalid distance too far back",N.mode=xa;break e}if(S=0,R=f,p===0){if(S+=u-v,v2;)I[o++]=R[S++],I[o++]=R[S++],I[o++]=R[S++],k-=3;k&&(I[o++]=R[S++],k>1&&(I[o++]=R[S++]))}else{S=o-b;do I[o++]=I[S++],I[o++]=I[S++],I[o++]=I[S++],k-=3;while(k>2);k&&(I[o++]=I[S++],k>1&&(I[o++]=I[S++]))}}else if(v&64){t.msg="invalid distance code",N.mode=xa;break e}else{y=_[(y&65535)+(d&(1<>3,r-=k,g-=k<<3,d&=(1<{let c=l.bits,u=0,a=0,p=0,f=0,d=0,g=0,w=0,_=0,m=0,h=0,y,v,k,b,S,R=null,O,I=new Uint16Array(yi+1),N=new Uint16Array(yi+1),ze=null,as,jt,Ut;for(u=0;u<=yi;u++)I[u]=0;for(a=0;a=1&&I[f]===0;f--);if(d>f&&(d=f),f===0)return i[o++]=1<<24|64<<16|0,i[o++]=1<<24|64<<16|0,l.bits=1,0;for(p=1;p0&&(e===_1||f!==1))return-1;for(N[1]=0,u=1;ug1||e===v1&&m>y1)return 1;for(;;){as=u-w,s[a]+1=O?(jt=ze[s[a]-O],Ut=R[s[a]-O]):(jt=96,Ut=0),y=1<>w)+v]=as<<24|jt<<16|Ut|0;while(v!==0);for(y=1<>=1;if(y!==0?(h&=y-1,h+=y):h=0,a++,--I[u]===0){if(u===f)break;u=t[n+s[a]]}if(u>d&&(h&b)!==k){for(w===0&&(w=d),S+=p,g=u-w,_=1<g1||e===v1&&m>y1)return 1;k=h&b,i[k]=d<<24|g<<16|S-o|0}}return h!==0&&(i[S+h]=u-w<<24|64<<16|0),l.bits=d,0},Qo=rC,iC=0,hv=1,gv=2,{Z_FINISH:w1,Z_BLOCK:oC,Z_TREES:Sa,Z_OK:gr,Z_STREAM_END:sC,Z_NEED_DICT:lC,Z_STREAM_ERROR:dt,Z_DATA_ERROR:yv,Z_MEM_ERROR:_v,Z_BUF_ERROR:aC,Z_DEFLATED:x1}=yr,Na=16180,S1=16181,k1=16182,E1=16183,b1=16184,R1=16185,C1=16186,I1=16187,T1=16188,O1=16189,Ia=16190,on=16191,Rd=16192,N1=16193,Cd=16194,P1=16195,A1=16196,L1=16197,D1=16198,ka=16199,Ea=16200,M1=16201,z1=16202,F1=16203,j1=16204,U1=16205,Id=16206,B1=16207,$1=16208,ee=16209,vv=16210,wv=16211,uC=852,cC=592,fC=15,dC=fC,H1=e=>(e>>>24&255)+(e>>>8&65280)+((e&65280)<<8)+((e&255)<<24);function pC(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var _r=e=>{if(!e)return 1;let t=e.state;return!t||t.strm!==e||t.modewv?1:0},xv=e=>{if(_r(e))return dt;let t=e.state;return e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=t.wrap&1),t.mode=Na,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(uC),t.distcode=t.distdyn=new Int32Array(cC),t.sane=1,t.back=-1,gr},Sv=e=>{if(_r(e))return dt;let t=e.state;return t.wsize=0,t.whave=0,t.wnext=0,xv(e)},kv=(e,t)=>{let n;if(_r(e))return dt;let r=e.state;return t<0?(n=0,t=-t):(n=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?dt:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=n,r.wbits=t,Sv(e))},Ev=(e,t)=>{if(!e)return dt;let n=new pC;e.state=n,n.strm=e,n.window=null,n.mode=Na;let r=kv(e,t);return r!==gr&&(e.state=null),r},mC=e=>Ev(e,dC),V1=!0,Td,Od,hC=e=>{if(V1){Td=new Int32Array(512),Od=new Int32Array(32);let t=0;for(;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(Qo(hv,e.lens,0,288,Td,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;Qo(gv,e.lens,0,32,Od,0,e.work,{bits:5}),V1=!1}e.lencode=Td,e.lenbits=9,e.distcode=Od,e.distbits=5},bv=(e,t,n,r)=>{let i,o=e.state;return o.window===null&&(o.wsize=1<=o.wsize?(o.window.set(t.subarray(n-o.wsize,n),0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),o.window.set(t.subarray(n-r,n-r+i),o.wnext),r-=i,r?(o.window.set(t.subarray(n-r,n),0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave{let n,r,i,o,s,l,c,u,a,p,f,d,g,w,_=0,m,h,y,v,k,b,S,R,O=new Uint8Array(4),I,N,ze=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(_r(e)||!e.output||!e.input&&e.avail_in!==0)return dt;n=e.state,n.mode===on&&(n.mode=Rd),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,p=l,f=c,R=gr;e:for(;;)switch(n.mode){case Na:if(n.wrap===0){n.mode=Rd;break}for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=ye(n.check,O,2,0),u=0,a=0,n.mode=S1;break}if(n.head&&(n.head.done=!1),!(n.wrap&1)||(((u&255)<<8)+(u>>8))%31){e.msg="incorrect header check",n.mode=ee;break}if((u&15)!==x1){e.msg="unknown compression method",n.mode=ee;break}if(u>>>=4,a-=4,S=(u&15)+8,n.wbits===0&&(n.wbits=S),S>15||S>n.wbits){e.msg="invalid window size",n.mode=ee;break}n.dmax=1<>8&1),n.flags&512&&n.wrap&4&&(O[0]=u&255,O[1]=u>>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0,n.mode=k1;case k1:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>8&255,O[2]=u>>>16&255,O[3]=u>>>24&255,n.check=ye(n.check,O,4,0)),u=0,a=0,n.mode=E1;case E1:for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>8),n.flags&512&&n.wrap&4&&(O[0]=u&255,O[1]=u>>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0,n.mode=b1;case b1:if(n.flags&1024){for(;a<16;){if(l===0)break e;l--,u+=r[o++]<>>8&255,n.check=ye(n.check,O,2,0)),u=0,a=0}else n.head&&(n.head.extra=null);n.mode=R1;case R1:if(n.flags&1024&&(d=n.length,d>l&&(d=l),d&&(n.head&&(S=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Uint8Array(n.head.extra_len)),n.head.extra.set(r.subarray(o,o+d),S)),n.flags&512&&n.wrap&4&&(n.check=ye(n.check,r,d,o)),l-=d,o+=d,n.length-=d),n.length))break e;n.length=0,n.mode=C1;case C1:if(n.flags&2048){if(l===0)break e;d=0;do S=r[o+d++],n.head&&S&&n.length<65536&&(n.head.name+=String.fromCharCode(S));while(S&&d>9&1,n.head.done=!0),e.adler=n.check=0,n.mode=on;break;case O1:for(;a<32;){if(l===0)break e;l--,u+=r[o++]<>>=a&7,a-=a&7,n.mode=Id;break}for(;a<3;){if(l===0)break e;l--,u+=r[o++]<>>=1,a-=1,u&3){case 0:n.mode=N1;break;case 1:if(hC(n),n.mode=ka,t===Sa){u>>>=2,a-=2;break e}break;case 2:n.mode=A1;break;case 3:e.msg="invalid block type",n.mode=ee}u>>>=2,a-=2;break;case N1:for(u>>>=a&7,a-=a&7;a<32;){if(l===0)break e;l--,u+=r[o++]<>>16^65535)){e.msg="invalid stored block lengths",n.mode=ee;break}if(n.length=u&65535,u=0,a=0,n.mode=Cd,t===Sa)break e;case Cd:n.mode=P1;case P1:if(d=n.length,d){if(d>l&&(d=l),d>c&&(d=c),d===0)break e;i.set(r.subarray(o,o+d),s),l-=d,o+=d,c-=d,s+=d,n.length-=d;break}n.mode=on;break;case A1:for(;a<14;){if(l===0)break e;l--,u+=r[o++]<>>=5,a-=5,n.ndist=(u&31)+1,u>>>=5,a-=5,n.ncode=(u&15)+4,u>>>=4,a-=4,n.nlen>286||n.ndist>30){e.msg="too many length or distance symbols",n.mode=ee;break}n.have=0,n.mode=L1;case L1:for(;n.have>>=3,a-=3}for(;n.have<19;)n.lens[ze[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,I={bits:n.lenbits},R=Qo(iC,n.lens,0,19,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid code lengths set",n.mode=ee;break}n.have=0,n.mode=D1;case D1:for(;n.have>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=m,a-=m,n.lens[n.have++]=y;else{if(y===16){for(N=m+2;a>>=m,a-=m,n.have===0){e.msg="invalid bit length repeat",n.mode=ee;break}S=n.lens[n.have-1],d=3+(u&3),u>>>=2,a-=2}else if(y===17){for(N=m+3;a>>=m,a-=m,S=0,d=3+(u&7),u>>>=3,a-=3}else{for(N=m+7;a>>=m,a-=m,S=0,d=11+(u&127),u>>>=7,a-=7}if(n.have+d>n.nlen+n.ndist){e.msg="invalid bit length repeat",n.mode=ee;break}for(;d--;)n.lens[n.have++]=S}}if(n.mode===ee)break;if(n.lens[256]===0){e.msg="invalid code -- missing end-of-block",n.mode=ee;break}if(n.lenbits=9,I={bits:n.lenbits},R=Qo(hv,n.lens,0,n.nlen,n.lencode,0,n.work,I),n.lenbits=I.bits,R){e.msg="invalid literal/lengths set",n.mode=ee;break}if(n.distbits=6,n.distcode=n.distdyn,I={bits:n.distbits},R=Qo(gv,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,I),n.distbits=I.bits,R){e.msg="invalid distances set",n.mode=ee;break}if(n.mode=ka,t===Sa)break e;case ka:n.mode=Ea;case Ea:if(l>=6&&c>=258){e.next_out=s,e.avail_out=c,e.next_in=o,e.avail_in=l,n.hold=u,n.bits=a,JR(e,f),s=e.next_out,i=e.output,c=e.avail_out,o=e.next_in,r=e.input,l=e.avail_in,u=n.hold,a=n.bits,n.mode===on&&(n.back=-1);break}for(n.back=0;_=n.lencode[u&(1<>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>v)],m=_>>>24,h=_>>>16&255,y=_&65535,!(v+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=v,a-=v,n.back+=v}if(u>>>=m,a-=m,n.back+=m,n.length=y,h===0){n.mode=U1;break}if(h&32){n.back=-1,n.mode=on;break}if(h&64){e.msg="invalid literal/length code",n.mode=ee;break}n.extra=h&15,n.mode=M1;case M1:if(n.extra){for(N=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=z1;case z1:for(;_=n.distcode[u&(1<>>24,h=_>>>16&255,y=_&65535,!(m<=a);){if(l===0)break e;l--,u+=r[o++]<>v)],m=_>>>24,h=_>>>16&255,y=_&65535,!(v+m<=a);){if(l===0)break e;l--,u+=r[o++]<>>=v,a-=v,n.back+=v}if(u>>>=m,a-=m,n.back+=m,h&64){e.msg="invalid distance code",n.mode=ee;break}n.offset=y,n.extra=h&15,n.mode=F1;case F1:if(n.extra){for(N=n.extra;a>>=n.extra,a-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){e.msg="invalid distance too far back",n.mode=ee;break}n.mode=j1;case j1:if(c===0)break e;if(d=f-c,n.offset>d){if(d=n.offset-d,d>n.whave&&n.sane){e.msg="invalid distance too far back",n.mode=ee;break}d>n.wnext?(d-=n.wnext,g=n.wsize-d):g=n.wnext-d,d>n.length&&(d=n.length),w=n.window}else w=i,g=s-n.offset,d=n.length;d>c&&(d=c),c-=d,n.length-=d;do i[s++]=w[g++];while(--d);n.length===0&&(n.mode=Ea);break;case U1:if(c===0)break e;i[s++]=n.length,c--,n.mode=Ea;break;case Id:if(n.wrap){for(;a<32;){if(l===0)break e;l--,u|=r[o++]<{if(_r(e))return dt;let t=e.state;return t.window&&(t.window=null),e.state=null,gr},_C=(e,t)=>{if(_r(e))return dt;let n=e.state;return n.wrap&2?(n.head=t,t.done=!1,gr):dt},vC=(e,t)=>{let n=t.length,r,i,o;return _r(e)||(r=e.state,r.wrap!==0&&r.mode!==Ia)?dt:r.mode===Ia&&(i=1,i=es(i,t,n,0),i!==r.check)?yv:(o=bv(e,t,n,n),o?(r.mode=vv,_v):(r.havedict=1,gr))},wC=Sv,xC=kv,SC=xv,kC=mC,EC=Ev,bC=gC,RC=yC,CC=_C,IC=vC,TC="pako inflate (from Nodeca project)",ln={inflateReset:wC,inflateReset2:xC,inflateResetKeep:SC,inflateInit:kC,inflateInit2:EC,inflate:bC,inflateEnd:RC,inflateGetHeader:CC,inflateSetDictionary:IC,inflateInfo:TC};function OC(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var NC=OC,Rv=Object.prototype.toString,{Z_NO_FLUSH:PC,Z_FINISH:AC,Z_OK:rs,Z_STREAM_END:Nd,Z_NEED_DICT:Pd,Z_STREAM_ERROR:LC,Z_DATA_ERROR:W1,Z_MEM_ERROR:DC}=yr;function ls(e){this.options=Oa.assign({chunkSize:1024*64,windowBits:15,to:""},e||{});let t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(e&&e.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15||(t.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pv,this.strm.avail_out=0;let n=ln.inflateInit2(this.strm,t.windowBits);if(n!==rs)throw new Error(mr[n]);if(this.header=new NC,ln.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=ns.string2buf(t.dictionary):Rv.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(n=ln.inflateSetDictionary(this.strm,t.dictionary),n!==rs)))throw new Error(mr[n])}ls.prototype.push=function(e,t){let n=this.strm,r=this.options.chunkSize,i=this.options.dictionary,o,s,l;if(this.ended)return!1;for(t===~~t?s=t:s=t===!0?AC:PC,Rv.call(e)==="[object ArrayBuffer]"?n.input=new Uint8Array(e):n.input=e,n.next_in=0,n.avail_in=n.input.length;;){for(n.avail_out===0&&(n.output=new Uint8Array(r),n.next_out=0,n.avail_out=r),o=ln.inflate(n,s),o===Pd&&i&&(o=ln.inflateSetDictionary(n,i),o===rs?o=ln.inflate(n,s):o===W1&&(o=Pd));n.avail_in>0&&o===Nd&&n.state.wrap>0&&e[n.next_in]!==0;)ln.inflateReset(n),o=ln.inflate(n,s);switch(o){case LC:case W1:case Pd:case DC:return this.onEnd(o),this.ended=!0,!1}if(l=n.avail_out,n.next_out&&(n.avail_out===0||o===Nd))if(this.options.to==="string"){let c=ns.utf8border(n.output,n.next_out),u=n.next_out-c,a=ns.buf2string(n.output,c);n.next_out=u,n.avail_out=r-u,u&&n.output.set(n.output.subarray(c,c+u),0),this.onData(a)}else this.onData(n.output.length===n.next_out?n.output:n.output.subarray(0,n.next_out));if(!(o===rs&&l===0)){if(o===Nd)return o=ln.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(n.avail_in===0)break}}return!0};ls.prototype.onData=function(e){this.chunks.push(e)};ls.prototype.onEnd=function(e){e===rs&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Oa.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg};function Kd(e,t){let n=new ls(t);if(n.push(e),n.err)throw n.msg||mr[n.err];return n.result}function MC(e,t){return t=t||{},t.raw=!0,Kd(e,t)}var zC=ls,FC=Kd,jC=MC,UC=Kd,BC=yr,$C={Inflate:zC,inflate:FC,inflateRaw:jC,ungzip:UC,constants:BC},{Deflate:HC,deflate:VC,deflateRaw:WC,gzip:GC}=qR,{Inflate:ZC,inflate:KC,inflateRaw:QC,ungzip:qC}=$C,XC=HC,JC=VC,YC=WC,e3=GC,t3=ZC,n3=KC,r3=QC,i3=qC,o3=yr,Cv={Deflate:XC,deflate:JC,deflateRaw:YC,gzip:e3,Inflate:t3,inflate:n3,inflateRaw:r3,ungzip:i3,constants:o3};var an={tables:{},columns:{},rels:{}},Tv=e=>{let t="";return new Proxy({},{get(n,r){return r==="_batch"?{update:async i=>vr({name:t,action:"batch_update",table:"",params:{batch:i}},e),upsert:async i=>vr({name:t,action:"batch_upsert",table:"",params:{arg:i}},e)}:r==="_schema"?{tables:async()=>(an.tables[e]||(an.tables[e]=vr({name:t,action:"schema_tables",table:"",params:[]},e)),await an.tables[e]),columns:async i=>(an.columns[e+"_"+i]||(an.columns[e+"_"+i]=vr({name:t,action:"schema_columns",table:i,params:[]},e)),await an.columns[e+"_"+i]),rels:async i=>(an.rels[e+"_"+i]||(an.rels[e+"_"+i]=vr({name:t,action:"schema_rels",table:i,params:[]},e)),await an.rels[e+"_"+i])}:r.startsWith("$")?(...i)=>{let o=Cv.gzip(JSON.stringify(i));return vr({name:t,action:"query",table:r,params:btoa(o.reduce((s,l)=>s+String.fromCharCode(l),""))},e)}:new Proxy({},{get(i,o){return async(...s)=>(r==="query"&&(r=o,o="query"),await vr({name:t,action:o,table:r,params:s},e))}})}})},Ei={},vr=async(e,t)=>{let n=new URL(t);n.pathname="/_dbs",e.table&&(n.pathname+=`/${e.table}`);let r=n.toString();typeof localStorage<"u"&&localStorage.mlsid&&(e.mlsid=localStorage.mlsid);let i=(0,Iv.default)(e),o=Ei[i];if(!o||o&&Date.now()-o.timestamp>1e3){Ei[i]={timestamp:Date.now(),promise:va(r,e,{"content-type":"application/json"},!1),result:null};let l=await Ei[i].promise;o=Ei[i];try{return typeof l=="string"?(l=JSON.parse(l),Ei[i].result=l,l):(Ei[i].result=l,l)}catch{return l&&console.error("DBQuery failed:",l),null}}if(o.result)return o.result;let s=await o.promise;if(s)try{return typeof s=="string"&&(s=JSON.parse(s)),s}catch{console.error("DBQuery failed:",s)}return null};var Ov=P(Vl());var Nv=e=>{let{item:t,item_comp:n,ids:r}=e,i=Jr(n);if(Pv(i,r),t.id&&(i.id=t.id),i.hidden=t.hidden,i.component){if(i.component.props&&t.component&&t.component.props)for(let o of Object.keys(i.component.props)){let s=t.component.props[o],l=i.component.props[o];s&&(l.value=s.value,l.valueBuilt=s.valueBuilt,l.jsxCalledBy=s.jsxCalledBy,l.content=s.content)}i.component.instances=t.component?.instances,i.component.style=t.component?.style}for(let o of Object.keys(t))delete t[o];for(let[o,s]of Object.entries(i))t[o]=s},Pv=(e,t)=>{if(e.originalId=e.id,t[e.id]||(t[e.id]=(0,Ov.createId)()),e.id=t[e.id],e.childs)for(let n of e.childs)Pv(n,t)};var Av=e=>{let t=Object.entries(e.item_comp.component?.props||{}).sort((n,r)=>n[1].idx-r[1].idx);for(let[n,r]of t){let i=Jr(r),o=e.item.component?.props;o&&o[n]&&(i.value=o[n].value,i.valueBuilt=o[n].valueBuilt,o[n].content&&(i.content=o[n].content)),i&&e.each(n,i)}};var Pa=e=>{let t={};for(let[n,r]of Object.entries(e))if(n==="childs"){if(t.childs=[],r&&Array.isArray(r))for(let i of r)i.type==="item"&&i.component?t.childs.push(i):t.childs.push({name:i.name,id:i.id,originalId:i.originalId})}else t[n]=r;return t};var Lv=(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 i;if(e.mode==="page"?(n.component.instances||(n.component.instances={}),i=n.component.instances):i=t.parent?.root_instances,i){let s=i[n.id];i[n.id]||(i[n.id]={},s=i[n.id]),Nv({item:n,item_comp:r,ids:s})}let o={item:Pa(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:i};if(e.on?.visit&&e.on.visit(o,n,t.root||t.item),n.id&&e.set_meta!==!1&&(e.meta[n.id]=o),Av({item:n,item_comp:r,instance:i?i[n.id]:{},each(s,l){let c=n.component?.id;l.meta?.type==="content-element"&&c&&l.content&&(l.content.name=s,bi({...e},{item:l.content,root:t.root||l.content,is_root:!1,jsx_prop:{is_root:!0,comp_id:c,name:s},parent:{item:o.item,instance_id:n.id,comp:r,root_instances:i}}))}}),n.childs)for(let s of Object.values(n.childs))s?.name?.startsWith("jsx:")||s&&Object.keys(s).length>3&&bi({...e,mode:"comp"},{item:s,is_root:!1,root:t.root||t.item,parent:{item:n,instance_id:n.id,root_instances:i,comp:r}})}}};var bi=(e,t)=>{let n=t.item;if(n.type==="item"&&n.component?.id&&t.ignore_first_component!==!0){Lv(e,t);return}let r={item:Pa(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[i,o]of Object.entries(n.childs))if(o.id){let s={item:o,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}),bi(e,s)}}};var s3=()=>new Promise(async e=>{let t=!1,n=await fetch(C.url`_prasi/route`);t||(n.headers.get("content-encoding")||fetch(C.url`_prasi/compress/only-gz`),e(await n.json()))}),Dv=async()=>{let e=Wl(),t=[];try{let n=await s3();if(n&&n.site&&n.urls){n.layout&&(C.layout.id=n.layout.id,C.layout.root=n.layout.root,C.layout.meta={},C.layout.root&&(await ui(C.layout.root.childs),Aa(C.layout.meta,C.layout.root))),C.site=n.site,C.site.code={mode:"vsc"},await l3(),C.site.api=i1(C.site.api_url),C.site.db=Tv(C.site.api_url);let r=window;r.serverurl=C.site.api_url,r.db=C.site.db,r.api=C.site.api;for(let i of n.urls)e.insert(i.url,i),t.push(i)}}catch{}return{router:e,pages:t}},l3=()=>new Promise(e=>{let t=document,n=t.createElement("script");n.onload=async()=>{e()};let r=C.site.api_url;r==="*"&&(r=`${location.protocol}//${location.host}`,C.site.api_url=r),localStorage.getItem("api-ts-"+r)||localStorage.setItem("api-ts-"+r,Date.now().toString());let i=localStorage.getItem("api-ts-"+r),o=new URL(location.href);if(o.pathname="",!["prasi.avolut.com"].includes(o.hostname)&&o.host!=="localhost:4550"){let s=o.toString();n.src=`${s.endsWith("/")?s:`${s}/`}_prasi/load.js?url=${s}&v3&ts=${i}`,C.site.api_url=`${o.protocol}//${o.host}`}else n.src=`${r}/_prasi/load.js?url=${r}&v3&ts=${i}`;n.onerror=()=>{e()},document.querySelector(`script[src="${n.src}"]`)?e():t.body.appendChild(n)}),Aa=(e,t)=>{for(let n of t.childs)bi({set_meta:!0,comps:C.comp.list,meta:e,mode:"page"},{item:n})};var le=window;var un=P(G()),qd=()=>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",zv=()=>{let e=Nn({page_id:""}),[t,n]=(0,Mv.useState)({}),r=()=>n({});le.prasiContext.render=r;let i=cf.Provider,o=qd()&&location.pathname.startsWith("/prod");if(C.route.status!=="ready")return C.route.status==="init"&&(C.route.status="loading",Dv().then(async({router:a,pages:p})=>{qy(),C.route.status="ready",C.route.router=a,C.route.pages=p;let f=le._prasi.basepath,d=`${f.endsWith("/")?f:`${f}/`}_prasi/code/index.js`,g=new URL(location.href);d.startsWith("/")&&(d=`${g.protocol}//${g.host}${d}`);let w=new Function("callback",`import("${d}").then(callback)`);await new Promise(_=>{w(m=>{for(let[h,y]of Object.entries(m))le[h]=y;_()})}),r()})),(0,un.jsx)(ko,{});let s=C.route.router;if(!s)return(0,un.jsx)(vf,{children:"Failed to create Router"});let l="";if(o){let a=location.pathname.split("/");_f(a[3])&&(l=a[3])}let c=null;if(le._prasi.page_id)s.insert(C.pathname,{id:le._prasi.page_id,url:C.pathname}),c={id:le._prasi.page_id,url:"",params:le._prasi.params},le._prasi.routed={page_id:le._prasi.page_id,params:le._prasi.params},delete le._prasi.page_id,delete le._prasi.params;else{if(c=s.lookup(C.pathname),l){let a=C.route.pages.find(p=>l===p.id);a&&(c=a)}c&&le._prasi.routed&&le._prasi.routed.page_id===c.id&&le._prasi.routed.params&&(c.params=le._prasi.routed.params)}if(!c)return(0,un.jsx)(vf,{children:"Page Not Found"});c.id!==e.page_id&&(C.init_local_effect={}),le.params=c.params||{},C.page.id=c.id,C.page.url=c.url;let u=C.page.cache[c.id];if(u)C.page.root=u.root,C.page.meta=u.meta;else return Gy(c.id).then(async({root:a})=>{if(c){let p={id:c.id,url:c.url,root:a,meta:{}};await ui(a.childs,!0),Aa(p.meta,a),C.page.cache[p.id]=p,r()}}).catch(()=>{r()}),(0,un.jsx)(ko,{note:"Loading page"});return(0,un.jsx)(i,{value:le.prasiContext,children:(0,un.jsx)("div",{className:cx("relative flex flex-1 items-center justify-center"),children:(0,un.jsx)("div",{className:cx("absolute flex flex-col items-stretch flex-1 bg-white main-content-preview",C.mode==="mobile"?css` @media (min-width: 768px) { border-left: 1px solid #ccc; border-right: 1px solid #ccc; @@ -132,7 +132,7 @@ ${p} } `:"inset-0 overflow-auto",css` contain: content; - `),children:(0,un.jsx)(Wy,{api_url:C.site.api_url,entry:Object.values(C.page.root.childs).filter(a=>a).map(a=>a.id),meta:C.page.meta,mode:C.mode,page_id:C.page.id,site_id:C.site.id,db:C.site.db,api:C.site.api,preloaded:a=>{let p=C.route.router?.lookup(a);return!!(p&&C.page.cache[p.id])},comp_load:async a=>{let p=C.comp;if(p.list[a])return p.list[a];try{let f=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[a]})})).json();for(let[d,g]of Object.entries(f))delete p.pending[d],p.list[d]=g,await zl(`comp-${d}`,g)}catch{}return p.list[a]},layout:C.layout.id&&C.layout.root&&C.layout.meta?{id:C.layout.id,meta:C.layout.meta,entry:Object.values(C.layout.root.childs).filter(a=>a).map(a=>a.id)}:void 0,script:{init_local_effect:C.init_local_effect},on_preload:async({urls:a,opt:p})=>{let f=[];if(C.cache.urls)for(let d of a)C.cache.urls.has(d)||(f.push(d),C.cache.urls.add(d));if(f.length>0){let d=await Zy(f);if(p?.on_load&&p.on_load(d,a3),Array.isArray(d))for(let g of d){let w={id:g.id,url:g.url,root:g.root,meta:{}};await ui(g.root.childs),Aa(w.meta,g.root),C.page.cache[w.id]=w}}}})})})})},a3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Qd(r,t)},Qd=(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&&Qd(n.content,t);for(let n of e.childs)Qd(n,t)}};var F1=P(G());(async()=>{rg();let e=document.getElementById("root");if(e){await ng(!1);let t={root:(0,j1.createRoot)(e)};X0(),le.navigateOverride=n=>(n&&n.startsWith("/")&&qd()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,F1.jsx)(z1,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); + `),children:(0,un.jsx)(Wy,{api_url:C.site.api_url,entry:Object.values(C.page.root.childs).filter(a=>a).map(a=>a.id),meta:C.page.meta,mode:C.mode,page_id:C.page.id,site_id:C.site.id,db:C.site.db,api:C.site.api,preloaded:a=>{let p=C.route.router?.lookup(a);return!!(p&&C.page.cache[p.id])},comp_load:async a=>{let p=C.comp;if(p.list[a])return p.list[a];try{let f=await(await fetch(C.url`_prasi/comp`,{method:"POST",body:JSON.stringify({ids:[a]})})).json();for(let[d,g]of Object.entries(f))delete p.pending[d],p.list[d]=g,await zl(`comp-${d}`,g)}catch{}return p.list[a]},layout:C.layout.id&&C.layout.root&&C.layout.meta?{id:C.layout.id,meta:C.layout.meta,entry:Object.values(C.layout.root.childs).filter(a=>a).map(a=>a.id)}:void 0,script:{init_local_effect:C.init_local_effect},on_preload:async({urls:a,opt:p})=>{let f=[];if(C.cache.urls)for(let d of a)C.cache.urls.has(d)||(f.push(d),C.cache.urls.add(d));if(f.length>0){let d=await Zy(f);if(p?.on_load&&p.on_load(d,a3),Array.isArray(d))for(let g of d){let w={id:g.id,url:g.url,root:g.root,meta:{}};await ui(g.root.childs),Aa(w.meta,g.root),C.page.cache[w.id]=w}}}})})})})},a3=(e,t)=>{for(let n of e)for(let r of n.root.childs)Qd(r,t)},Qd=(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&&Qd(n.content,t);for(let n of e.childs)Qd(n,t)}};var jv=P(G());(async()=>{rg();let e=document.getElementById("root");if(e){await ng(!1);let t={root:(0,Fv.createRoot)(e)};X0(),le.navigateOverride=n=>(n&&n.startsWith("/")&&qd()&&location.pathname.startsWith("/prod")&&!n.startsWith("/prod")&&(n=`/prod/${location.pathname.split("/")[2]}${n}`),n),t.root.render((0,jv.jsx)(zv,{})),document.body.classList.contains("opacity-0")&&document.body.classList.remove("opacity-0")}})(); /*! Bundled license information: react/cjs/react.production.min.js: diff --git a/app/srv/util/prod-index.ts b/app/srv/util/prod-index.ts index 387348f8..bbb6c334 100644 --- a/app/srv/util/prod-index.ts +++ b/app/srv/util/prod-index.ts @@ -15,12 +15,6 @@ export const prodIndex = ( - ${this.head.join("\n")} diff --git a/app/web/package.json b/app/web/package.json index 5389c508..3a15c05a 100644 --- a/app/web/package.json +++ b/app/web/package.json @@ -8,25 +8,24 @@ "dependencies": { "@babel/parser": "^7.23.6", "@floating-ui/react": "^0.26.4", + "@fontsource/jetbrains-mono": "^5.0.20", + "@fontsource/source-sans-3": "^5.0.20", "@leeoniya/ufuzzy": "^1.0.14", "@minoru/react-dnd-treeview": "^3.4.4", - "@wojtekmaj/react-qr-svg": "^1.0.0", - "constrained-editor-plugin": "^1.3.0", - "react-resizable-panels": "^2.0.9", - "json-diff-ts": "^2.2.1", - "axios": "^1.6.7", "@monaco-editor/react": "^4.6.0", "@paralleldrive/cuid2": "2.2.2", - "react-contenteditable": "^3.3.7", - "react-dropzone": "14.2.3", "@parcel/packager-wasm": "^2.10.3", "@parcel/service-worker": "^2.10.3", "@qiwi/deep-proxy": "^2.0.3", + "@wojtekmaj/react-qr-svg": "^1.0.0", "algoliasearch": "^4.22.0", + "axios": "^1.6.7", + "constrained-editor-plugin": "^1.3.0", "date-fns": "^2.30.0", "dbgen": "workspace:*", "hash-wasm": "^4.11.0", "idb-keyval": "^6.2.1", + "json-diff-ts": "^2.2.1", "lodash.capitalize": "^4.2.1", "lodash.concat": "^4.5.0", "lodash.debounce": "^4.0.8", @@ -44,6 +43,7 @@ "lodash.uniqby": "^4.7.0", "monaco-jsx-syntax-highlight-v2": "^1.2.2", "msgpackr": "^1.10.0", + "pako": "^2.1.0", "polywasm": "^0.1.4", "prettier": "3.1.1", "prop-types": "^15.8.1", @@ -51,9 +51,12 @@ "radix3": "^1.1.0", "react": "18.2.0", "react-colorful": "^5.6.1", + "react-contenteditable": "^3.3.7", "react-dnd": "^16.0.1", "react-dom": "18.2.0", + "react-dropzone": "14.2.3", "react-is": "^18.2.0", + "react-resizable-panels": "^2.0.9", "react-use-error-boundary": "^3.0.0", "react-virtuoso": "^4.6.2", "safe-stable-stringify": "^2.4.3", @@ -62,7 +65,6 @@ "tinycolor2": "^1.6.0", "ua-parser-js": "^1.0.37", "uuid": "9.0.1", - "pako": "^2.1.0", "wasm-gzip": "^2.0.3", "web-utils": "workspace:*", "y-pojo": "^0.0.8", diff --git a/app/web/public-br/index.html b/app/web/public-br/index.html index bc67df82..fbf08e6f 100644 Binary files a/app/web/public-br/index.html and b/app/web/public-br/index.html differ diff --git a/app/web/public/index.html b/app/web/public/index.html index 7a10a8d9..ae193fba 100644 --- a/app/web/public/index.html +++ b/app/web/public/index.html @@ -8,16 +8,6 @@ /> Prasi: App Builder - - - -