diff --git a/CNAME b/CNAME deleted file mode 100644 index b3a86a2..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -pkgzap.albylabs.com \ No newline at end of file diff --git a/assets/index-b2797151.js b/assets/index-8243054e.js similarity index 87% rename from assets/index-b2797151.js rename to assets/index-8243054e.js index cfab439..e2d477d 100644 --- a/assets/index-b2797151.js +++ b/assets/index-8243054e.js @@ -14,7 +14,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var md=te,yd=Symbol.for("react.element"),gd=Symbol.for("react.fragment"),vd=Object.prototype.hasOwnProperty,wd=md.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xd={key:!0,ref:!0,__self:!0,__source:!0};function ku(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)vd.call(t,r)&&!xd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yd,type:e,key:i,ref:l,props:o,_owner:wd.current}}Fo.Fragment=gd;Fo.jsx=ku;Fo.jsxs=ku;du.exports=Fo;var v=du.exports,zi={},Eu={exports:{}},Oe={},Nu={exports:{}},_u={};/** + */var md=te,yd=Symbol.for("react.element"),gd=Symbol.for("react.fragment"),vd=Object.prototype.hasOwnProperty,wd=md.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,xd={key:!0,ref:!0,__self:!0,__source:!0};function ku(e,t,n){var r,o={},i=null,l=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)vd.call(t,r)&&!xd.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)o[r]===void 0&&(o[r]=t[r]);return{$$typeof:yd,type:e,key:i,ref:l,props:o,_owner:wd.current}}Fo.Fragment=gd;Fo.jsx=ku;Fo.jsxs=ku;du.exports=Fo;var g=du.exports,zi={},Eu={exports:{}},Oe={},Nu={exports:{}},_u={};/** * @license React * scheduler.production.min.js * @@ -22,7 +22,7 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(T,D){var B=T.length;T.push(D);e:for(;0>>1,$=T[I];if(0>>1;Io(en,B))Me<$&&0>o(It,en)?(T[I]=It,T[Me]=B,I=Me):(T[I]=en,T[ye]=B,I=ye);else if(Me<$&&0>o(It,B))T[I]=It,T[Me]=B,I=Me;else break e}}return D}function o(T,D){var B=T.sortIndex-D.sortIndex;return B!==0?B:T.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],c=[],p=1,h=null,y=3,S=!1,g=!1,x=!1,L=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(T){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=T)r(c),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(c)}}function w(T){if(x=!1,f(T),!g)if(n(a)!==null)g=!0,R(C);else{var D=n(c);D!==null&&U(w,D.startTime-T)}}function C(T,D){g=!1,x&&(x=!1,d(z),z=-1),S=!0;var B=y;try{for(f(D),h=n(a);h!==null&&(!(h.expirationTime>D)||T&&!k());){var I=h.callback;if(typeof I=="function"){h.callback=null,y=h.priorityLevel;var $=I(h.expirationTime<=D);D=e.unstable_now(),typeof $=="function"?h.callback=$:h===n(a)&&r(a),f(D)}else r(a);h=n(a)}if(h!==null)var Se=!0;else{var ye=n(c);ye!==null&&U(w,ye.startTime-D),Se=!1}return Se}finally{h=null,y=B,S=!1}}var A=!1,j=null,z=-1,b=5,M=-1;function k(){return!(e.unstable_now()-MT||125I?(T.sortIndex=B,t(c,T),n(a)===null&&T===n(c)&&(x?(d(z),z=-1):x=!0,U(w,B-I))):(T.sortIndex=$,t(a,T),g||S||(g=!0,R(C))),T},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(T){var D=y;return function(){var B=y;y=D;try{return T.apply(this,arguments)}finally{y=B}}}})(_u);Nu.exports=_u;var Sd=Nu.exports;/** + */(function(e){function t(T,D){var M=T.length;T.push(D);e:for(;0>>1,$=T[I];if(0>>1;Io(en,M))Be<$&&0>o(It,en)?(T[I]=It,T[Be]=M,I=Be):(T[I]=en,T[ye]=M,I=ye);else if(Be<$&&0>o(It,M))T[I]=It,T[Be]=M,I=Be;else break e}}return D}function o(T,D){var M=T.sortIndex-D.sortIndex;return M!==0?M:T.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,s=l.now();e.unstable_now=function(){return l.now()-s}}var a=[],c=[],p=1,h=null,y=3,S=!1,v=!1,x=!1,L=typeof setTimeout=="function"?setTimeout:null,d=typeof clearTimeout=="function"?clearTimeout:null,u=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function f(T){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=T)r(c),D.sortIndex=D.expirationTime,t(a,D);else break;D=n(c)}}function w(T){if(x=!1,f(T),!v)if(n(a)!==null)v=!0,R(C);else{var D=n(c);D!==null&&U(w,D.startTime-T)}}function C(T,D){v=!1,x&&(x=!1,d(z),z=-1),S=!0;var M=y;try{for(f(D),h=n(a);h!==null&&(!(h.expirationTime>D)||T&&!k());){var I=h.callback;if(typeof I=="function"){h.callback=null,y=h.priorityLevel;var $=I(h.expirationTime<=D);D=e.unstable_now(),typeof $=="function"?h.callback=$:h===n(a)&&r(a),f(D)}else r(a);h=n(a)}if(h!==null)var Se=!0;else{var ye=n(c);ye!==null&&U(w,ye.startTime-D),Se=!1}return Se}finally{h=null,y=M,S=!1}}var A=!1,j=null,z=-1,b=5,B=-1;function k(){return!(e.unstable_now()-BT||125I?(T.sortIndex=M,t(c,T),n(a)===null&&T===n(c)&&(x?(d(z),z=-1):x=!0,U(w,M-I))):(T.sortIndex=$,t(a,T),v||S||(v=!0,R(C))),T},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(T){var D=y;return function(){var M=y;y=D;try{return T.apply(this,arguments)}finally{y=M}}}})(_u);Nu.exports=_u;var Sd=Nu.exports;/** * @license React * react-dom.production.min.js * @@ -30,16 +30,16 @@ * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Cu=te,Re=Sd;function O(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"),Di=Object.prototype.hasOwnProperty,kd=/^[: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]*$/,Us={},bs={};function Ed(e){return Di.call(bs,e)?!0:Di.call(Us,e)?!1:kd.test(e)?bs[e]=!0:(Us[e]=!0,!1)}function Nd(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 _d(e,t,n,r){if(t===null||typeof t>"u"||Nd(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 xe(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new xe(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){fe[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function bl(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(Ul,bl);fe[t]=new xe(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(Ul,bl);fe[t]=new xe(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(Ul,bl);fe[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Bl(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(o!==null?o.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Di=Object.prototype.hasOwnProperty,kd=/^[: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]*$/,Us={},bs={};function Ed(e){return Di.call(bs,e)?!0:Di.call(Us,e)?!1:kd.test(e)?bs[e]=!0:(Us[e]=!0,!1)}function Nd(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 _d(e,t,n,r){if(t===null||typeof t>"u"||Nd(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 xe(e,t,n,r,o,i,l){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=l}var fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){fe[e]=new xe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];fe[t]=new xe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){fe[e]=new xe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){fe[e]=new xe(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){fe[e]=new xe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){fe[e]=new xe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){fe[e]=new xe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){fe[e]=new xe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){fe[e]=new xe(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ul=/[\-:]([a-z])/g;function bl(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(Ul,bl);fe[t]=new xe(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(Ul,bl);fe[t]=new xe(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(Ul,bl);fe[t]=new xe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){fe[e]=new xe(e,1,!1,e.toLowerCase(),null,!1,!1)});fe.xlinkHref=new xe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){fe[e]=new xe(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ml(e,t,n,r){var o=fe.hasOwnProperty(t)?fe[t]:null;(o!==null?o.type!==0:r||!(2s||o[l]!==i[s]){var a=` -`+o[l].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{li=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hn(e):""}function Cd(e){switch(e.tag){case 5:return Hn(e.type);case 16:return Hn("Lazy");case 13:return Hn("Suspense");case 19:return Hn("SuspenseList");case 0:case 2:case 15:return e=si(e.type,!1),e;case 11:return e=si(e.type.render,!1),e;case 1:return e=si(e.type,!0),e;default:return""}}function bi(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 rn:return"Fragment";case nn:return"Portal";case Fi:return"Profiler";case Ml:return"StrictMode";case Ii:return"Suspense";case Ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tu:return(e.displayName||"Context")+".Consumer";case Pu:return(e._context.displayName||"Context")+".Provider";case $l:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hl:return t=e.displayName||null,t!==null?t:bi(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return bi(e(t))}catch{}}return null}function jd(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 bi(t);case 8:return t===Ml?"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 At(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ou(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pd(e){var t=Ou(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=Pd(e))}function Au(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ou(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ao(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 Bi(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Ms(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=At(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 Lu(e,t){t=t.checked,t!=null&&Bl(e,"checked",t,!1)}function Mi(e,t){Lu(e,t);var n=At(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")?$i(e,t.type,n):t.hasOwnProperty("defaultValue")&&$i(e,t.type,At(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $s(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 $i(e,t,n){(t!=="number"||ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wn=Array.isArray;function mn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kn={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},Td=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){Td.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kn[t]=Kn[e]})});function Iu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}function Uu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Iu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Rd=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vi(e,t){if(t){if(Rd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Qi(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 Ki=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,yn=null,gn=null;function Vs(e){if(e=Nr(e)){if(typeof qi!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Mo(t),qi(e.stateNode,e.type,t))}}function bu(e){yn?gn?gn.push(e):gn=[e]:yn=e}function Bu(){if(yn){var e=yn,t=gn;if(gn=yn=null,Vs(e),t)for(e=0;e>>=0,e===0?32:31-(Md(e)/$d|0)|0}var Ar=64,Lr=4194304;function Vn(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 po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Vn(s):(i&=l,i!==0&&(r=Vn(i)))}else l=n&~o,l!==0?r=Vn(l):i!==0&&(r=Vn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Qd(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=Jn),ea=String.fromCharCode(32),ta=!1;function lc(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function kp(e,t){switch(e){case"compositionend":return sc(t);case"keypress":return t.which!==32?null:(ta=!0,ea);case"textInput":return e=t.data,e===ea&&ta?null:e;default:return null}}function Ep(e,t){if(on)return e==="compositionend"||!Yl&&lc(e,t)?(e=oc(),Jr=Jl=kt=null,on=!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=ia(n)}}function fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dc(){for(var e=window,t=ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ao(e.document)}return t}function Zl(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 Ap(e){var t=dc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fc(n.ownerDocument.documentElement,n)){if(r!==null&&Zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=la(n,i);var l=la(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ln=null,el=null,Xn=null,tl=!1;function sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tl||ln==null||ln!==ao(r)||(r=ln,"selectionStart"in r&&Zl(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}),Xn&&ur(Xn,r)||(Xn=r,r=yo(el,"onSelect"),0un||(e.current=sl[un],sl[un]=null,un--)}function K(e,t){un++,sl[un]=e.current,e.current=t}var Lt={},me=Dt(Lt),Ne=Dt(!1),Kt=Lt;function kn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function vo(){J(Ne),J(me)}function ha(e,t,n){if(me.current!==Lt)throw Error(O(168));K(me,t),K(Ne,n)}function Sc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,jd(e)||"Unknown",o));return Z({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Kt=me.current,K(me,e),K(Ne,Ne.current),!0}function ma(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Sc(e,t,Kt),r.__reactInternalMemoizedMergedChildContext=e,J(Ne),J(me),K(me,e)):J(Ne),K(Ne,n)}var it=null,$o=!1,Si=!1;function kc(e){it===null?it=[e]:it.push(e)}function Wp(e){$o=!0,kc(e)}function Ft(){if(!Si&&it!==null){Si=!0;var e=0,t=Q;try{var n=it;for(Q=1;e>=l,o-=l,lt=1<<32-Ke(t)+o|n<z?(b=j,j=null):b=j.sibling;var M=y(d,j,f[z],w);if(M===null){j===null&&(j=b);break}e&&j&&M.alternate===null&&t(d,j),u=i(M,u,z),A===null?C=M:A.sibling=M,A=M,j=b}if(z===f.length)return n(d,j),G&&Ut(d,z),C;if(j===null){for(;zz?(b=j,j=null):b=j.sibling;var k=y(d,j,M.value,w);if(k===null){j===null&&(j=b);break}e&&j&&k.alternate===null&&t(d,j),u=i(k,u,z),A===null?C=k:A.sibling=k,A=k,j=b}if(M.done)return n(d,j),G&&Ut(d,z),C;if(j===null){for(;!M.done;z++,M=f.next())M=h(d,M.value,w),M!==null&&(u=i(M,u,z),A===null?C=M:A.sibling=M,A=M);return G&&Ut(d,z),C}for(j=r(d,j);!M.done;z++,M=f.next())M=S(j,d,z,M.value,w),M!==null&&(e&&M.alternate!==null&&j.delete(M.key===null?z:M.key),u=i(M,u,z),A===null?C=M:A.sibling=M,A=M);return e&&j.forEach(function(_){return t(d,_)}),G&&Ut(d,z),C}function L(d,u,f,w){if(typeof f=="object"&&f!==null&&f.type===rn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Tr:e:{for(var C=f.key,A=u;A!==null;){if(A.key===C){if(C=f.type,C===rn){if(A.tag===7){n(d,A.sibling),u=o(A,f.props.children),u.return=d,d=u;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===vt&&ka(C)===A.type){n(d,A.sibling),u=o(A,f.props),u.ref=Un(d,A,f),u.return=d,d=u;break e}n(d,A);break}else t(d,A);A=A.sibling}f.type===rn?(u=Qt(f.props.children,d.mode,w,f.key),u.return=d,d=u):(w=ro(f.type,f.key,f.props,null,d.mode,w),w.ref=Un(d,u,f),w.return=d,d=w)}return l(d);case nn:e:{for(A=f.key;u!==null;){if(u.key===A)if(u.tag===4&&u.stateNode.containerInfo===f.containerInfo&&u.stateNode.implementation===f.implementation){n(d,u.sibling),u=o(u,f.children||[]),u.return=d,d=u;break e}else{n(d,u);break}else t(d,u);u=u.sibling}u=Ti(f,d.mode,w),u.return=d,d=u}return l(d);case vt:return A=f._init,L(d,u,A(f._payload),w)}if(Wn(f))return g(d,u,f,w);if(Ln(f))return x(d,u,f,w);Br(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,u!==null&&u.tag===6?(n(d,u.sibling),u=o(u,f),u.return=d,d=u):(n(d,u),u=Pi(f,d.mode,w),u.return=d,d=u),l(d)):n(d,u)}return L}var Nn=Rc(!0),Oc=Rc(!1),_r={},nt=Dt(_r),pr=Dt(_r),hr=Dt(_r);function Ht(e){if(e===_r)throw Error(O(174));return e}function as(e,t){switch(K(hr,t),K(pr,e),K(nt,_r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wi(t,e)}J(nt),K(nt,t)}function _n(){J(nt),J(pr),J(hr)}function Ac(e){Ht(hr.current);var t=Ht(nt.current),n=Wi(t,e.type);t!==n&&(K(pr,e),K(nt,n))}function us(e){pr.current===e&&(J(nt),J(pr))}var X=Dt(0);function _o(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 ki=[];function cs(){for(var e=0;en?n:4,e(!0);var r=Ei.transition;Ei.transition={};try{e(!1),t()}finally{Q=n,Ei.transition=r}}function qc(){return Be().memoizedState}function qp(e,t,n){var r=Rt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jc(e))Gc(t,n);else if(n=Cc(e,t,n,r),n!==null){var o=ve();qe(n,e,r,o),Xc(n,t,r)}}function Jp(e,t,n){var r=Rt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jc(e))Gc(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Je(s,l)){var a=t.interleaved;a===null?(o.next=o,ls(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Cc(e,t,o,r),n!==null&&(o=ve(),qe(n,e,r,o),Xc(n,t,r))}}function Jc(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Gc(e,t){Yn=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ql(e,n)}}var jo={readContext:be,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Gp={readContext:be,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:Na,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,Hc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();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=qp.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:Ea,useDebugValue:ms,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=Ea(!1),t=e[0];return e=Kp.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=Xe();if(G){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ae===null)throw Error(O(349));Jt&30||Dc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Na(Ic.bind(null,r,i,e),[e]),r.flags|=2048,gr(9,Fc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xe(),t=ae.identifierPrefix;if(G){var n=st,r=lt;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0")&&(a=a.replace("",e.displayName)),a}while(1<=l&&0<=s);break}}}finally{li=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Hn(e):""}function Cd(e){switch(e.tag){case 5:return Hn(e.type);case 16:return Hn("Lazy");case 13:return Hn("Suspense");case 19:return Hn("SuspenseList");case 0:case 2:case 15:return e=si(e.type,!1),e;case 11:return e=si(e.type.render,!1),e;case 1:return e=si(e.type,!0),e;default:return""}}function bi(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 rn:return"Fragment";case nn:return"Portal";case Fi:return"Profiler";case Bl:return"StrictMode";case Ii:return"Suspense";case Ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Tu:return(e.displayName||"Context")+".Consumer";case Pu:return(e._context.displayName||"Context")+".Provider";case $l:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Hl:return t=e.displayName||null,t!==null?t:bi(e.type)||"Memo";case vt:t=e._payload,e=e._init;try{return bi(e(t))}catch{}}return null}function jd(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 bi(t);case 8:return t===Bl?"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 At(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ou(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Pd(e){var t=Ou(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(l){r=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(l){r=""+l},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Rr(e){e._valueTracker||(e._valueTracker=Pd(e))}function Au(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ou(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ao(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 Mi(e,t){var n=t.checked;return Z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Bs(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=At(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 Lu(e,t){t=t.checked,t!=null&&Ml(e,"checked",t,!1)}function Bi(e,t){Lu(e,t);var n=At(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")?$i(e,t.type,n):t.hasOwnProperty("defaultValue")&&$i(e,t.type,At(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function $s(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 $i(e,t,n){(t!=="number"||ao(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Wn=Array.isArray;function mn(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function rr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Kn={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},Td=["Webkit","ms","Moz","O"];Object.keys(Kn).forEach(function(e){Td.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Kn[t]=Kn[e]})});function Iu(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Kn.hasOwnProperty(e)&&Kn[e]?(""+t).trim():t+"px"}function Uu(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=Iu(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Rd=Z({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Vi(e,t){if(t){if(Rd[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(O(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(O(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(O(61))}if(t.style!=null&&typeof t.style!="object")throw Error(O(62))}}function Qi(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 Ki=null;function Wl(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var qi=null,yn=null,gn=null;function Vs(e){if(e=Nr(e)){if(typeof qi!="function")throw Error(O(280));var t=e.stateNode;t&&(t=Bo(t),qi(e.stateNode,e.type,t))}}function bu(e){yn?gn?gn.push(e):gn=[e]:yn=e}function Mu(){if(yn){var e=yn,t=gn;if(gn=yn=null,Vs(e),t)for(e=0;e>>=0,e===0?32:31-(Bd(e)/$d|0)|0}var Ar=64,Lr=4194304;function Vn(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 po(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,l=n&268435455;if(l!==0){var s=l&~o;s!==0?r=Vn(s):(i&=l,i!==0&&(r=Vn(i)))}else l=n&~o,l!==0?r=Vn(l):i!==0&&(r=Vn(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function kr(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Qd(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=Jn),ea=String.fromCharCode(32),ta=!1;function lc(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var on=!1;function kp(e,t){switch(e){case"compositionend":return sc(t);case"keypress":return t.which!==32?null:(ta=!0,ea);case"textInput":return e=t.data,e===ea&&ta?null:e;default:return null}}function Ep(e,t){if(on)return e==="compositionend"||!Yl&&lc(e,t)?(e=oc(),Jr=Jl=kt=null,on=!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=ia(n)}}function fc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?fc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function dc(){for(var e=window,t=ao();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ao(e.document)}return t}function Zl(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 Ap(e){var t=dc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fc(n.ownerDocument.documentElement,n)){if(r!==null&&Zl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=la(n,i);var l=la(n,r);o&&l&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==l.node||e.focusOffset!==l.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(l.node,l.offset)):(t.setEnd(l.node,l.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,ln=null,el=null,Xn=null,tl=!1;function sa(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;tl||ln==null||ln!==ao(r)||(r=ln,"selectionStart"in r&&Zl(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}),Xn&&ur(Xn,r)||(Xn=r,r=yo(el,"onSelect"),0un||(e.current=sl[un],sl[un]=null,un--)}function K(e,t){un++,sl[un]=e.current,e.current=t}var Lt={},me=Dt(Lt),Ne=Dt(!1),Kt=Lt;function kn(e,t){var n=e.type.contextTypes;if(!n)return Lt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function _e(e){return e=e.childContextTypes,e!=null}function vo(){J(Ne),J(me)}function ha(e,t,n){if(me.current!==Lt)throw Error(O(168));K(me,t),K(Ne,n)}function Sc(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(O(108,jd(e)||"Unknown",o));return Z({},n,r)}function wo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Lt,Kt=me.current,K(me,e),K(Ne,Ne.current),!0}function ma(e,t,n){var r=e.stateNode;if(!r)throw Error(O(169));n?(e=Sc(e,t,Kt),r.__reactInternalMemoizedMergedChildContext=e,J(Ne),J(me),K(me,e)):J(Ne),K(Ne,n)}var it=null,$o=!1,Si=!1;function kc(e){it===null?it=[e]:it.push(e)}function Wp(e){$o=!0,kc(e)}function Ft(){if(!Si&&it!==null){Si=!0;var e=0,t=Q;try{var n=it;for(Q=1;e>=l,o-=l,lt=1<<32-Ke(t)+o|n<z?(b=j,j=null):b=j.sibling;var B=y(d,j,f[z],w);if(B===null){j===null&&(j=b);break}e&&j&&B.alternate===null&&t(d,j),u=i(B,u,z),A===null?C=B:A.sibling=B,A=B,j=b}if(z===f.length)return n(d,j),G&&Ut(d,z),C;if(j===null){for(;zz?(b=j,j=null):b=j.sibling;var k=y(d,j,B.value,w);if(k===null){j===null&&(j=b);break}e&&j&&k.alternate===null&&t(d,j),u=i(k,u,z),A===null?C=k:A.sibling=k,A=k,j=b}if(B.done)return n(d,j),G&&Ut(d,z),C;if(j===null){for(;!B.done;z++,B=f.next())B=h(d,B.value,w),B!==null&&(u=i(B,u,z),A===null?C=B:A.sibling=B,A=B);return G&&Ut(d,z),C}for(j=r(d,j);!B.done;z++,B=f.next())B=S(j,d,z,B.value,w),B!==null&&(e&&B.alternate!==null&&j.delete(B.key===null?z:B.key),u=i(B,u,z),A===null?C=B:A.sibling=B,A=B);return e&&j.forEach(function(_){return t(d,_)}),G&&Ut(d,z),C}function L(d,u,f,w){if(typeof f=="object"&&f!==null&&f.type===rn&&f.key===null&&(f=f.props.children),typeof f=="object"&&f!==null){switch(f.$$typeof){case Tr:e:{for(var C=f.key,A=u;A!==null;){if(A.key===C){if(C=f.type,C===rn){if(A.tag===7){n(d,A.sibling),u=o(A,f.props.children),u.return=d,d=u;break e}}else if(A.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===vt&&ka(C)===A.type){n(d,A.sibling),u=o(A,f.props),u.ref=Un(d,A,f),u.return=d,d=u;break e}n(d,A);break}else t(d,A);A=A.sibling}f.type===rn?(u=Qt(f.props.children,d.mode,w,f.key),u.return=d,d=u):(w=ro(f.type,f.key,f.props,null,d.mode,w),w.ref=Un(d,u,f),w.return=d,d=w)}return l(d);case nn:e:{for(A=f.key;u!==null;){if(u.key===A)if(u.tag===4&&u.stateNode.containerInfo===f.containerInfo&&u.stateNode.implementation===f.implementation){n(d,u.sibling),u=o(u,f.children||[]),u.return=d,d=u;break e}else{n(d,u);break}else t(d,u);u=u.sibling}u=Ti(f,d.mode,w),u.return=d,d=u}return l(d);case vt:return A=f._init,L(d,u,A(f._payload),w)}if(Wn(f))return v(d,u,f,w);if(Ln(f))return x(d,u,f,w);Mr(d,f)}return typeof f=="string"&&f!==""||typeof f=="number"?(f=""+f,u!==null&&u.tag===6?(n(d,u.sibling),u=o(u,f),u.return=d,d=u):(n(d,u),u=Pi(f,d.mode,w),u.return=d,d=u),l(d)):n(d,u)}return L}var Nn=Rc(!0),Oc=Rc(!1),_r={},nt=Dt(_r),pr=Dt(_r),hr=Dt(_r);function Ht(e){if(e===_r)throw Error(O(174));return e}function as(e,t){switch(K(hr,t),K(pr,e),K(nt,_r),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Wi(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Wi(t,e)}J(nt),K(nt,t)}function _n(){J(nt),J(pr),J(hr)}function Ac(e){Ht(hr.current);var t=Ht(nt.current),n=Wi(t,e.type);t!==n&&(K(pr,e),K(nt,n))}function us(e){pr.current===e&&(J(nt),J(pr))}var X=Dt(0);function _o(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 ki=[];function cs(){for(var e=0;en?n:4,e(!0);var r=Ei.transition;Ei.transition={};try{e(!1),t()}finally{Q=n,Ei.transition=r}}function qc(){return Me().memoizedState}function qp(e,t,n){var r=Rt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Jc(e))Gc(t,n);else if(n=Cc(e,t,n,r),n!==null){var o=ve();qe(n,e,r,o),Xc(n,t,r)}}function Jp(e,t,n){var r=Rt(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Jc(e))Gc(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var l=t.lastRenderedState,s=i(l,n);if(o.hasEagerState=!0,o.eagerState=s,Je(s,l)){var a=t.interleaved;a===null?(o.next=o,ls(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Cc(e,t,o,r),n!==null&&(o=ve(),qe(n,e,r,o),Xc(n,t,r))}}function Jc(e){var t=e.alternate;return e===Y||t!==null&&t===Y}function Gc(e,t){Yn=Co=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xc(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ql(e,n)}}var jo={readContext:be,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useInsertionEffect:de,useLayoutEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useMutableSource:de,useSyncExternalStore:de,useId:de,unstable_isNewReconciler:!1},Gp={readContext:be,useCallback:function(e,t){return Xe().memoizedState=[e,t===void 0?null:t],e},useContext:be,useEffect:Na,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zr(4194308,4,Hc.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zr(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zr(4,2,e,t)},useMemo:function(e,t){var n=Xe();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Xe();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=qp.bind(null,Y,e),[r.memoizedState,e]},useRef:function(e){var t=Xe();return e={current:e},t.memoizedState=e},useState:Ea,useDebugValue:ms,useDeferredValue:function(e){return Xe().memoizedState=e},useTransition:function(){var e=Ea(!1),t=e[0];return e=Kp.bind(null,e[1]),Xe().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Y,o=Xe();if(G){if(n===void 0)throw Error(O(407));n=n()}else{if(n=t(),ae===null)throw Error(O(349));Jt&30||Dc(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Na(Ic.bind(null,r,i,e),[e]),r.flags|=2048,gr(9,Fc.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Xe(),t=ae.identifierPrefix;if(G){var n=st,r=lt;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=mr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ze]=t,e[dr]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Qi(n,r),n){case"dialog":q("cancel",e),q("close",e),o=r;break;case"iframe":case"object":case"embed":q("load",e),o=r;break;case"video":case"audio":for(o=0;ojn&&(t.flags|=128,r=!0,bn(i,!1),t.lanes=4194304)}else{if(!r)if(e=_o(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!G)return pe(t),null}else 2*ne()-i.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,bn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=X.current,K(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Ss(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function oh(e,t){switch(ts(t),t.tag){case 1:return _e(t.type)&&vo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),J(Ne),J(me),cs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return us(t),null;case 13:if(J(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(X),null;case 4:return _n(),null;case 10:return is(t.type._context),null;case 22:case 23:return Ss(),null;case 24:return null;default:return null}}var $r=!1,he=!1,ih=typeof WeakSet=="function"?WeakSet:Set,F=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function wl(e,t,n){try{n()}catch(r){ee(e,t,r)}}var La=!1;function lh(e,t){if(nl=ho,e=dc(),Zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,c=0,p=0,h=e,y=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(S=h.firstChild)!==null;)y=h,h=S;for(;;){if(h===e)break t;if(y===n&&++c===o&&(s=l),y===i&&++p===r&&(a=l),(S=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=S}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(rl={focusedElem:e,selectionRange:n},ho=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;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 x=g.memoizedProps,L=g.memoizedState,d=t.stateNode,u=d.getSnapshotBeforeUpdate(t.elementType===t.type?x:He(t.type,x),L);d.__reactInternalSnapshotBeforeUpdate=u}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(w){ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return g=La,La=!1,g}function Zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wl(t,n,i)}o=o.next}while(o!==r)}}function Vo(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 xl(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 cf(e){var t=e.alternate;t!==null&&(e.alternate=null,cf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ze],delete t[dr],delete t[ll],delete t[$p],delete t[Hp])),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 ff(e){return e.tag===5||e.tag===3||e.tag===4}function za(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ff(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 Sl(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=go));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function kl(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(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var ue=null,We=!1;function mt(e,t,n){for(n=n.child;n!==null;)df(e,t,n),n=n.sibling}function df(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(Io,n)}catch{}switch(n.tag){case 5:he||pn(n,t);case 6:var r=ue,o=We;ue=null,mt(e,t,n),ue=r,We=o,ue!==null&&(We?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(We?(e=ue,n=n.stateNode,e.nodeType===8?xi(e.parentNode,n):e.nodeType===1&&xi(e,n),sr(e)):xi(ue,n.stateNode));break;case 4:r=ue,o=We,ue=n.stateNode.containerInfo,We=!0,mt(e,t,n),ue=r,We=o;break;case 0:case 11:case 14:case 15:if(!he&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&wl(n,t,l),o=o.next}while(o!==r)}mt(e,t,n);break;case 1:if(!he&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}mt(e,t,n);break;case 21:mt(e,t,n);break;case 22:n.mode&1?(he=(r=he)||n.memoizedState!==null,mt(e,t,n),he=r):mt(e,t,n);break;default:mt(e,t,n)}}function Da(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ih),t.forEach(function(r){var o=mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $e(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ah(r/1960))-r,10e?16:e,Et===null)var r=!1;else{if(e=Et,Et=null,Ro=0,V&6)throw Error(O(331));var o=V;for(V|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ane()-ws?Vt(e,0):vs|=n),Ce(e,t)}function xf(e,t){t===0&&(e.mode&1?(t=Lr,Lr<<=1,!(Lr&130023424)&&(Lr=4194304)):t=1);var n=ve();e=dt(e,t),e!==null&&(kr(e,t,n),Ce(e,n))}function hh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),xf(e,n)}var Sf;Sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,nh(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,G&&t.flags&1048576&&Ec(t,So,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eo(e,t),e=t.pendingProps;var o=kn(t,me.current);wn(t,n),o=ds(null,t,r,e,o,n);var i=ps();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,wo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ss(t),o.updater=Ho,t.stateNode=o,o._reactInternals=t,dl(t,r,e,n),t=ml(null,t,r,!0,i,n)):(t.tag=0,G&&i&&es(t),ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=gh(r),e=He(r,e),o){case 0:t=hl(null,t,r,e,n);break e;case 1:t=Ra(null,t,r,e,n);break e;case 11:t=Pa(null,t,r,e,n);break e;case 14:t=Ta(null,t,r,He(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),hl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Ra(e,t,r,o,n);case 3:e:{if(rf(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,o=i.element,jc(e,t),No(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Cn(Error(O(423)),t),t=Oa(e,t,r,n,o);break e}else if(r!==o){o=Cn(Error(O(424)),t),t=Oa(e,t,r,n,o);break e}else for(Pe=jt(t.stateNode.containerInfo.firstChild),Te=t,G=!0,Ve=null,n=Oc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===o){t=pt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&ul(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ol(r,o)?l=null:i!==null&&ol(r,i)&&(t.flags|=32),nf(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&ul(t),null;case 13:return of(e,t,n);case 4:return as(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nn(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Pa(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,K(ko,r._currentValue),r._currentValue=l,i!==null)if(Je(i.value,l)){if(i.children===o.children&&!Ne.current){t=pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=at(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),cl(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(O(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),cl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wn(t,n),o=be(o),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),Ta(e,t,r,o,n);case 15:return ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),eo(e,t),t.tag=1,_e(r)?(e=!0,wo(t)):e=!1,wn(t,n),Tc(t,r,o),dl(t,r,o,n),ml(null,t,r,!0,e,n);case 19:return lf(e,t,n);case 22:return tf(e,t,n)}throw Error(O(156,t.tag))};function kf(e,t){return Ku(e,t)}function yh(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 Fe(e,t,n,r){return new yh(e,t,n,r)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gh(e){if(typeof e=="function")return Es(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$l)return 11;if(e===Hl)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Fe(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 ro(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Es(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case rn:return Qt(n.children,o,i,t);case Ml:l=8,o|=8;break;case Fi:return e=Fe(12,n,t,o|2),e.elementType=Fi,e.lanes=i,e;case Ii:return e=Fe(13,n,t,o),e.elementType=Ii,e.lanes=i,e;case Ui:return e=Fe(19,n,t,o),e.elementType=Ui,e.lanes=i,e;case Ru:return Ko(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pu:l=10;break e;case Tu:l=9;break e;case $l:l=11;break e;case Hl:l=14;break e;case vt:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qt(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Ko(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=Ru,e.lanes=n,e.stateNode={isHidden:!1},e}function Pi(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,o,i,l,s,a){return e=new vh(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Fe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(i),e}function wh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cf)}catch(e){console.error(e)}}Cf(),Eu.exports=Oe;var jf=Eu.exports;const Nh=fu(jf);var Ha=jf;zi.createRoot=Ha.createRoot,zi.hydrateRoot=Ha.hydrateRoot;const _h="/assets/alby-a9055069.png",gt="/assets/pkgzap-89c74426.svg",Ch="/assets/ln-design-orange-1f3bf8fc.png",jh="/assets/ln-design-yellow-764ed677.png";function Pf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ph}=Object.prototype,{getPrototypeOf:Ps}=Object,Yo=(e=>t=>{const n=Ph.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Yo(t)===e),Zo=e=>t=>typeof t===e,{isArray:An}=Array,wr=Zo("undefined");function Th(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tf=rt("ArrayBuffer");function Rh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tf(e.buffer),t}const Oh=Zo("string"),Ue=Zo("function"),Rf=Zo("number"),ei=e=>e!==null&&typeof e=="object",Ah=e=>e===!0||e===!1,oo=e=>{if(Yo(e)!=="object")return!1;const t=Ps(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lh=rt("Date"),zh=rt("File"),Dh=rt("Blob"),Fh=rt("FileList"),Ih=e=>ei(e)&&Ue(e.pipe),Uh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=Yo(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},bh=rt("URLSearchParams"),Bh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),An(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Af=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Lf=e=>!wr(e)&&e!==Af;function jl(){const{caseless:e}=Lf(this)&&this||{},t={},n=(r,o)=>{const i=e&&Of(t,o)||o;oo(t[i])&&oo(r)?t[i]=jl(t[i],r):oo(r)?t[i]=jl({},r):An(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Cr(t,(o,i)=>{n&&Ue(o)?e[i]=Pf(o,n):e[i]=o},{allOwnKeys:r}),e),$h=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hh=(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)},Wh=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Ps(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Qh=e=>{if(!e)return null;if(An(e))return e;let t=e.length;if(!Rf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ps(Uint8Array)),qh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Jh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gh=rt("HTMLFormElement"),Xh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Wa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yh=rt("RegExp"),zf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cr(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},Zh=e=>{zf(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(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+"'")})}})},em=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return An(e)?r(e):r(String(e).split(t)),n},tm=()=>{},nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ri="abcdefghijklmnopqrstuvwxyz",Va="0123456789",Df={DIGIT:Va,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+Va},rm=(e=16,t=Df.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function om(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const im=e=>{const t=new Array(10),n=(r,o)=>{if(ei(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=An(r)?[]:{};return Cr(r,(l,s)=>{const a=n(l,o+1);!wr(a)&&(i[s]=a)}),t[o]=void 0,i}}return r};return n(e,0)},lm=rt("AsyncFunction"),sm=e=>e&&(ei(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),N={isArray:An,isArrayBuffer:Tf,isBuffer:Th,isFormData:Uh,isArrayBufferView:Rh,isString:Oh,isNumber:Rf,isBoolean:Ah,isObject:ei,isPlainObject:oo,isUndefined:wr,isDate:Lh,isFile:zh,isBlob:Dh,isRegExp:Yh,isFunction:Ue,isStream:Ih,isURLSearchParams:bh,isTypedArray:Kh,isFileList:Fh,forEach:Cr,merge:jl,extend:Mh,trim:Bh,stripBOM:$h,inherits:Hh,toFlatObject:Wh,kindOf:Yo,kindOfTest:rt,endsWith:Vh,toArray:Qh,forEachEntry:qh,matchAll:Jh,isHTMLForm:Gh,hasOwnProperty:Wa,hasOwnProp:Wa,reduceDescriptors:zf,freezeMethods:Zh,toObjectSet:em,toCamelCase:Xh,noop:tm,toFiniteNumber:nm,findKey:Of,global:Af,isContextDefined:Lf,ALPHABET:Df,generateString:rm,isSpecCompliantForm:om,toJSONObject:im,isAsyncFn:lm,isThenable:sm};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}N.inherits(W,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:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ff=W.prototype,If={};["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=>{If[e]={value:e}});Object.defineProperties(W,If);Object.defineProperty(Ff,"isAxiosError",{value:!0});W.from=(e,t,n,r,o,i)=>{const l=Object.create(Ff);return N.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),W.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const am=null;function Pl(e){return N.isPlainObject(e)||N.isArray(e)}function Uf(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(o,i){return o=Uf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function um(e){return N.isArray(e)&&!e.some(Pl)}const cm=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function ti(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,L){return!N.isUndefined(L[x])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(o))throw new TypeError("visitor must be a function");function c(g){if(g===null)return"";if(N.isDate(g))return g.toISOString();if(!a&&N.isBlob(g))throw new W("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(g)||N.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function p(g,x,L){let d=g;if(g&&!L&&typeof g=="object"){if(N.endsWith(x,"{}"))x=r?x:x.slice(0,-2),g=JSON.stringify(g);else if(N.isArray(g)&&um(g)||(N.isFileList(g)||N.endsWith(x,"[]"))&&(d=N.toArray(g)))return x=Uf(x),d.forEach(function(f,w){!(N.isUndefined(f)||f===null)&&t.append(l===!0?Qa([x],w,i):l===null?x:x+"[]",c(f))}),!1}return Pl(g)?!0:(t.append(Qa(L,x,i),c(g)),!1)}const h=[],y=Object.assign(cm,{defaultVisitor:p,convertValue:c,isVisitable:Pl});function S(g,x){if(!N.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(g),N.forEach(g,function(d,u){(!(N.isUndefined(d)||d===null)&&o.call(t,d,N.isString(u)?u.trim():u,x,y))===!0&&S(d,x?x.concat(u):[u])}),h.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ka(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ts(e,t){this._pairs=[],e&&ti(e,this,t)}const bf=Ts.prototype;bf.append=function(t,n){this._pairs.push([t,n])};bf.toString=function(t){const n=t?function(r){return t.call(this,r,Ka)}:Ka;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function fm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Bf(e,t,n){if(!t)return e;const r=n&&n.encode||fm,o=n&&n.serialize;let i;if(o?i=o(t,n):i=N.isURLSearchParams(t)?t.toString():new Ts(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class dm{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){N.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qa=dm,Mf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pm=typeof URLSearchParams<"u"?URLSearchParams:Ts,hm=typeof FormData<"u"?FormData:null,mm=typeof Blob<"u"?Blob:null,ym=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gm=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),et={isBrowser:!0,classes:{URLSearchParams:pm,FormData:hm,Blob:mm},isStandardBrowserEnv:ym,isStandardBrowserWebWorkerEnv:gm,protocols:["http","https","file","blob","url","data"]};function vm(e,t){return ti(e,new et.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return et.isNode&&N.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wm(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xm(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&N.isArray(o)?o.length:l,a?(N.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!N.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&N.isArray(o[l])&&(o[l]=xm(o[l])),!s)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(r,o)=>{t(wm(r),o,n,0)}),n}return null}const Sm={"Content-Type":void 0};function km(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ni={transitional:Mf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=N.isObject(t);if(i&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return o&&o?JSON.stringify($f(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vm(t,this.formSerializer).toString();if((s=N.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ti(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),km(t)):t}],transformResponse:[function(t){const n=this.transitional||ni.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&N.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};N.forEach(["delete","get","head"],function(t){ni.headers[t]={}});N.forEach(["post","put","patch"],function(t){ni.headers[t]=N.merge(Sm)});const Rs=ni,Em=N.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"]),Nm=e=>{const t={};let n,r,o;return e&&e.split(` -`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Em[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ja=Symbol("internals");function Mn(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:N.isArray(e)?e.map(io):String(e)}function _m(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Cm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oi(e,t,n,r,o){if(N.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!N.isString(t)){if(N.isString(r))return t.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(t)}}function jm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pm(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class ri{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,a,c){const p=Mn(a);if(!p)throw new Error("header name must be a non-empty string");const h=N.findKey(o,p);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||a]=io(s))}const l=(s,a)=>N.forEach(s,(c,p)=>i(c,p,a));return N.isPlainObject(t)||t instanceof this.constructor?l(t,n):N.isString(t)&&(t=t.trim())&&!Cm(t)?l(Nm(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Mn(t),t){const r=N.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _m(o);if(N.isFunction(n))return n.call(this,o,r);if(N.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Mn(t),t){const r=N.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Oi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Mn(l),l){const s=N.findKey(r,l);s&&(!n||Oi(r,r[s],s,n))&&(delete r[s],o=!0)}}return N.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Oi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return N.forEach(this,(o,i)=>{const l=N.findKey(r,i);if(l){n[l]=io(o),delete n[i];return}const s=t?jm(i):String(i).trim();s!==i&&delete n[i],n[s]=io(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&N.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){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ja]=this[Ja]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=Mn(l);r[s]||(Pm(o,l),r[s]=!0)}return N.isArray(t)?t.forEach(i):i(t),this}}ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.freezeMethods(ri.prototype);N.freezeMethods(ri);const ut=ri;function Ai(e,t){const n=this||Rs,r=t||n,o=ut.from(r.headers);let i=r.data;return N.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Hf(e){return!!(e&&e.__CANCEL__)}function jr(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(jr,W,{__CANCEL__:!0});function Tm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Rm=et.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,s){const a=[];a.push(n+"="+encodeURIComponent(r)),N.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),N.isString(i)&&a.push("path="+i),N.isString(l)&&a.push("domain="+l),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Om(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Am(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Wf(e,t){return e&&!Om(t)?Am(e,t):t}const Lm=et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=N.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function zm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dm(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),p=r[i];l||(l=c),n[o]=a,r[o]=c;let h=i,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,a=r(s),c=i<=l;n=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:a||void 0,estimated:a&&l&&c?(l-i)/a:void 0,event:o};p[t?"download":"upload"]=!0,e(p)}}const Fm=typeof XMLHttpRequest<"u",Im=Fm&&function(e){return new Promise(function(n,r){let o=e.data;const i=ut.from(e.headers).normalize(),l=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}N.isFormData(o)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+g))}const p=Wf(e.baseURL,e.url);c.open(e.method.toUpperCase(),Bf(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const S=ut.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:S,config:e,request:c};Tm(function(d){n(d),a()},function(d){r(d),a()},x),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new W("Request aborted",W.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||Mf;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),r(new W(g,x.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,c)),c=null},et.isStandardBrowserEnv){const S=(e.withCredentials||Lm(p))&&e.xsrfCookieName&&Rm.read(e.xsrfCookieName);S&&i.set(e.xsrfHeaderName,S)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&N.forEach(i.toJSON(),function(g,x){c.setRequestHeader(x,g)}),N.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ga(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ga(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=S=>{c&&(r(!S||S.type?new jr(null,e,c):S),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const y=zm(p);if(y&&et.protocols.indexOf(y)===-1){r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e));return}c.send(o||null)})},lo={http:am,xhr:Im};N.forEach(lo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Um={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof ut?e.toJSON():e;function Pn(e,t){t=t||{};const n={};function r(c,p,h){return N.isPlainObject(c)&&N.isPlainObject(p)?N.merge.call({caseless:h},c,p):N.isPlainObject(p)?N.merge({},p):N.isArray(p)?p.slice():p}function o(c,p,h){if(N.isUndefined(p)){if(!N.isUndefined(c))return r(void 0,c,h)}else return r(c,p,h)}function i(c,p){if(!N.isUndefined(p))return r(void 0,p)}function l(c,p){if(N.isUndefined(p)){if(!N.isUndefined(c))return r(void 0,c)}else return r(void 0,p)}function s(c,p,h){if(h in t)return r(c,p);if(h in e)return r(void 0,c)}const a={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(c,p)=>o(Ya(c),Ya(p),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=a[p]||o,y=h(e[p],t[p],p);N.isUndefined(y)&&h!==s||(n[p]=y)}),n}const Vf="1.4.0",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Za={};Os.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Vf+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new W(o(l," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Za[l]&&(Za[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function bm(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],a=s===void 0||l(s,i,e);if(a!==!0)throw new W("option "+i+" must be "+a,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const Tl={assertOptions:bm,validators:Os},yt=Tl.validators;class Lo{constructor(t){this.defaults=t,this.interceptors={request:new qa,response:new qa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Tl.assertOptions(r,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),o!=null&&(N.isFunction(o)?n.paramsSerializer={serialize:o}:Tl.assertOptions(o,{encode:yt.function,serialize:yt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&N.merge(i.common,i[n.method]),l&&N.forEach(["delete","get","head","post","put","patch","common"],g=>{delete i[g]}),n.headers=ut.concat(l,i);const s=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let p,h=0,y;if(!a){const g=[Xa.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,c),y=g.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new jr(i,l,s),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;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new As(function(o){t=o}),cancel:t}}}const Bm=As;function Mm(e){return function(n){return e.apply(null,n)}}function $m(e){return N.isObject(e)&&e.isAxiosError===!0}const Rl={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(Rl).forEach(([e,t])=>{Rl[t]=e});const Hm=Rl;function Qf(e){const t=new so(e),n=Pf(so.prototype.request,t);return N.extend(n,so.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Qf(Pn(e,o))},n}const le=Qf(Rs);le.Axios=so;le.CanceledError=jr;le.CancelToken=Bm;le.isCancel=Hf;le.VERSION=Vf;le.toFormData=ti;le.AxiosError=W;le.Cancel=le.CanceledError;le.all=function(t){return Promise.all(t)};le.spread=Mm;le.isAxiosError=$m;le.mergeConfig=Pn;le.AxiosHeaders=ut;le.formToJSON=e=>$f(N.isHTMLForm(e)?new FormData(e):e);le.HttpStatusCode=Hm;le.default=le;const Wm=le;var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Kf={exports:{}},$n={};/** +`+i.stack}return{value:e,source:t,stack:o,digest:null}}function Ci(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function pl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Zp=typeof WeakMap=="function"?WeakMap:Map;function Yc(e,t,n){n=at(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){To||(To=!0,El=r),pl(e,t)},n}function Zc(e,t,n){n=at(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){pl(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){pl(e,t),typeof r!="function"&&(Tt===null?Tt=new Set([this]):Tt.add(this));var l=t.stack;this.componentDidCatch(t.value,{componentStack:l!==null?l:""})}),n}function _a(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Zp;var o=new Set;r.set(t,o)}else o=r.get(t),o===void 0&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=ph.bind(null,e,t,n),t.then(e,e))}function Ca(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 ja(e,t,n,r,o){return e.mode&1?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=at(-1,1),t.tag=2,Pt(n,t,1))),n.lanes|=1),e)}var eh=ht.ReactCurrentOwner,Ee=!1;function ge(e,t,n,r){t.child=e===null?Oc(t,null,n,r):Nn(t,e.child,n,r)}function Pa(e,t,n,r,o){n=n.render;var i=t.ref;return wn(t,o),r=ds(e,t,n,r,i,o),n=ps(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pt(e,t,o)):(G&&n&&es(t),t.flags|=1,ge(e,t,r,o),t.child)}function Ta(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!Es(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,ef(e,t,i,r,o)):(e=ro(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var l=i.memoizedProps;if(n=n.compare,n=n!==null?n:ur,n(l,r)&&e.ref===t.ref)return pt(e,t,o)}return t.flags|=1,e=Ot(i,r),e.ref=t.ref,e.return=t,t.child=e}function ef(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ur(i,r)&&e.ref===t.ref)if(Ee=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Ee=!0);else return t.lanes=e.lanes,pt(e,t,o)}return hl(e,t,n,r,o)}function tf(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},K(hn,je),je|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,K(hn,je),je|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,K(hn,je),je|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,K(hn,je),je|=r;return ge(e,t,o,n),t.child}function nf(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function hl(e,t,n,r,o){var i=_e(n)?Kt:me.current;return i=kn(t,i),wn(t,o),n=ds(e,t,n,r,i,o),r=ps(),e!==null&&!Ee?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,pt(e,t,o)):(G&&r&&es(t),t.flags|=1,ge(e,t,n,o),t.child)}function Ra(e,t,n,r,o){if(_e(n)){var i=!0;wo(t)}else i=!1;if(wn(t,o),t.stateNode===null)eo(e,t),Tc(t,n,r),dl(t,n,r,o),r=!0;else if(e===null){var l=t.stateNode,s=t.memoizedProps;l.props=s;var a=l.context,c=n.contextType;typeof c=="object"&&c!==null?c=be(c):(c=_e(n)?Kt:me.current,c=kn(t,c));var p=n.getDerivedStateFromProps,h=typeof p=="function"||typeof l.getSnapshotBeforeUpdate=="function";h||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==r||a!==c)&&Sa(t,l,r,c),wt=!1;var y=t.memoizedState;l.state=y,No(t,r,l,o),a=t.memoizedState,s!==r||y!==a||Ne.current||wt?(typeof p=="function"&&(fl(t,n,p,r),a=t.memoizedState),(s=wt||xa(t,n,s,r,y,a,c))?(h||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),l.props=r,l.state=a,l.context=c,r=s):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{l=t.stateNode,jc(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:He(t.type,s),l.props=c,h=t.pendingProps,y=l.context,a=n.contextType,typeof a=="object"&&a!==null?a=be(a):(a=_e(n)?Kt:me.current,a=kn(t,a));var S=n.getDerivedStateFromProps;(p=typeof S=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s!==h||y!==a)&&Sa(t,l,r,a),wt=!1,y=t.memoizedState,l.state=y,No(t,r,l,o);var v=t.memoizedState;s!==h||y!==v||Ne.current||wt?(typeof S=="function"&&(fl(t,n,S,r),v=t.memoizedState),(c=wt||xa(t,n,c,r,y,v,a)||!1)?(p||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(r,v,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(r,v,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),l.props=r,l.state=v,l.context=a,r=c):(typeof l.componentDidUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&y===e.memoizedState||(t.flags|=1024),r=!1)}return ml(e,t,n,r,i,o)}function ml(e,t,n,r,o,i){nf(e,t);var l=(t.flags&128)!==0;if(!r&&!l)return o&&ma(t,n,!1),pt(e,t,i);r=t.stateNode,eh.current=t;var s=l&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&l?(t.child=Nn(t,e.child,null,i),t.child=Nn(t,null,s,i)):ge(e,t,s,i),t.memoizedState=r.state,o&&ma(t,n,!0),t.child}function rf(e){var t=e.stateNode;t.pendingContext?ha(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ha(e,t.context,!1),as(e,t.containerInfo)}function Oa(e,t,n,r,o){return En(),ns(o),t.flags|=256,ge(e,t,n,r),t.child}var yl={dehydrated:null,treeContext:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null,transitions:null}}function of(e,t,n){var r=t.pendingProps,o=X.current,i=!1,l=(t.flags&128)!==0,s;if((s=l)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),K(X,o&1),e===null)return ul(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):(l=r.children,e=r.fallback,i?(r=t.mode,i=t.child,l={mode:"hidden",children:l},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=l):i=Ko(l,r,0,null),e=Qt(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=gl(n),t.memoizedState=yl,e):ys(t,l));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return th(e,t,l,r,s,o,n);if(i){i=r.fallback,l=t.mode,o=e.child,s=o.sibling;var a={mode:"hidden",children:r.children};return!(l&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=a,t.deletions=null):(r=Ot(o,a),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Ot(s,i):(i=Qt(i,l,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,l=e.child.memoizedState,l=l===null?gl(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=yl,r}return i=e.child,e=i.sibling,r=Ot(i,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ys(e,t){return t=Ko({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function Br(e,t,n,r){return r!==null&&ns(r),Nn(t,e.child,null,n),e=ys(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function th(e,t,n,r,o,i,l){if(n)return t.flags&256?(t.flags&=-257,r=Ci(Error(O(422))),Br(e,t,l,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Ko({mode:"visible",children:r.children},o,0,null),i=Qt(i,o,l,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&Nn(t,e.child,null,l),t.child.memoizedState=gl(l),t.memoizedState=yl,i);if(!(t.mode&1))return Br(e,t,l,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error(O(419)),r=Ci(i,r,void 0),Br(e,t,l,r)}if(s=(l&e.childLanes)!==0,Ee||s){if(r=ae,r!==null){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=o&(r.suspendedLanes|l)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,dt(e,o),qe(r,e,o,-1))}return ks(),r=Ci(Error(O(421))),Br(e,t,l,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=hh.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Pe=jt(o.nextSibling),Te=t,G=!0,Ve=null,e!==null&&(ze[De++]=lt,ze[De++]=st,ze[De++]=qt,lt=e.id,st=e.overflow,qt=t),t=ys(t,r.children),t.flags|=4096,t)}function Aa(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),cl(e.return,t,n)}function ji(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function lf(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ge(e,t,r.children,n),r=X.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&&Aa(e,n,t);else if(e.tag===19)Aa(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(K(X,r),!(t.mode&1))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&_o(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),ji(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&_o(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}ji(t,!0,n,null,i);break;case"together":ji(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function eo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function pt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gt|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(O(153));if(t.child!==null){for(e=t.child,n=Ot(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ot(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function nh(e,t,n){switch(t.tag){case 3:rf(t),En();break;case 5:Ac(t);break;case 1:_e(t.type)&&wo(t);break;case 4:as(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;K(ko,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(K(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?of(e,t,n):(K(X,X.current&1),e=pt(e,t,n),e!==null?e.sibling:null);K(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return lf(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),K(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,tf(e,t,n)}return pt(e,t,n)}var sf,vl,af,uf;sf=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}};vl=function(){};af=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,Ht(nt.current);var i=null;switch(n){case"input":o=Mi(e,o),r=Mi(e,r),i=[];break;case"select":o=Z({},o,{value:void 0}),r=Z({},r,{value:void 0}),i=[];break;case"textarea":o=Hi(e,o),r=Hi(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=go)}Vi(n,r);var l;n=null;for(c in o)if(!r.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(l in s)s.hasOwnProperty(l)&&(n||(n={}),n[l]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(nr.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in r){var a=r[c];if(s=o!=null?o[c]:void 0,r.hasOwnProperty(c)&&a!==s&&(a!=null||s!=null))if(c==="style")if(s){for(l in s)!s.hasOwnProperty(l)||a&&a.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in a)a.hasOwnProperty(l)&&s[l]!==a[l]&&(n||(n={}),n[l]=a[l])}else n||(i||(i=[]),i.push(c,n)),n=a;else c==="dangerouslySetInnerHTML"?(a=a?a.__html:void 0,s=s?s.__html:void 0,a!=null&&s!==a&&(i=i||[]).push(c,a)):c==="children"?typeof a!="string"&&typeof a!="number"||(i=i||[]).push(c,""+a):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(nr.hasOwnProperty(c)?(a!=null&&c==="onScroll"&&q("scroll",e),i||s===a||(i=[])):(i=i||[]).push(c,a))}n&&(i=i||[]).push("style",n);var c=i;(t.updateQueue=c)&&(t.flags|=4)}};uf=function(e,t,n,r){n!==r&&(t.flags|=4)};function bn(e,t){if(!G)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 pe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags&14680064,r|=o.flags&14680064,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function rh(e,t,n){var r=t.pendingProps;switch(ts(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return pe(t),null;case 1:return _e(t.type)&&vo(),pe(t),null;case 3:return r=t.stateNode,_n(),J(Ne),J(me),cs(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(br(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ve!==null&&(Cl(Ve),Ve=null))),vl(e,t),pe(t),null;case 5:us(t);var o=Ht(hr.current);if(n=t.type,e!==null&&t.stateNode!=null)af(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(O(166));return pe(t),null}if(e=Ht(nt.current),br(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[Ze]=t,r[dr]=i,e=(t.mode&1)!==0,n){case"dialog":q("cancel",r),q("close",r);break;case"iframe":case"object":case"embed":q("load",r);break;case"video":case"audio":for(o=0;o<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),n==="select"&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[Ze]=t,e[dr]=r,sf(e,t,!1,!1),t.stateNode=e;e:{switch(l=Qi(n,r),n){case"dialog":q("cancel",e),q("close",e),o=r;break;case"iframe":case"object":case"embed":q("load",e),o=r;break;case"video":case"audio":for(o=0;ojn&&(t.flags|=128,r=!0,bn(i,!1),t.lanes=4194304)}else{if(!r)if(e=_o(l),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),bn(i,!0),i.tail===null&&i.tailMode==="hidden"&&!l.alternate&&!G)return pe(t),null}else 2*ne()-i.renderingStartTime>jn&&n!==1073741824&&(t.flags|=128,r=!0,bn(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(n=i.last,n!==null?n.sibling=l:t.child=l,i.last=l)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=ne(),t.sibling=null,n=X.current,K(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return Ss(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?je&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(O(156,t.tag))}function oh(e,t){switch(ts(t),t.tag){case 1:return _e(t.type)&&vo(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _n(),J(Ne),J(me),cs(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return us(t),null;case 13:if(J(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(O(340));En()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return J(X),null;case 4:return _n(),null;case 10:return is(t.type._context),null;case 22:case 23:return Ss(),null;case 24:return null;default:return null}}var $r=!1,he=!1,ih=typeof WeakSet=="function"?WeakSet:Set,F=null;function pn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){ee(e,t,r)}else n.current=null}function wl(e,t,n){try{n()}catch(r){ee(e,t,r)}}var La=!1;function lh(e,t){if(nl=ho,e=dc(),Zl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var l=0,s=-1,a=-1,c=0,p=0,h=e,y=null;t:for(;;){for(var S;h!==n||o!==0&&h.nodeType!==3||(s=l+o),h!==i||r!==0&&h.nodeType!==3||(a=l+r),h.nodeType===3&&(l+=h.nodeValue.length),(S=h.firstChild)!==null;)y=h,h=S;for(;;){if(h===e)break t;if(y===n&&++c===o&&(s=l),y===i&&++p===r&&(a=l),(S=h.nextSibling)!==null)break;h=y,y=h.parentNode}h=S}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(rl={focusedElem:e,selectionRange:n},ho=!1,F=t;F!==null;)if(t=F,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,F=e;else for(;F!==null;){t=F;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var x=v.memoizedProps,L=v.memoizedState,d=t.stateNode,u=d.getSnapshotBeforeUpdate(t.elementType===t.type?x:He(t.type,x),L);d.__reactInternalSnapshotBeforeUpdate=u}break;case 3:var f=t.stateNode.containerInfo;f.nodeType===1?f.textContent="":f.nodeType===9&&f.documentElement&&f.removeChild(f.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(O(163))}}catch(w){ee(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,F=e;break}F=t.return}return v=La,La=!1,v}function Zn(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&wl(t,n,i)}o=o.next}while(o!==r)}}function Vo(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 xl(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 cf(e){var t=e.alternate;t!==null&&(e.alternate=null,cf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Ze],delete t[dr],delete t[ll],delete t[$p],delete t[Hp])),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 ff(e){return e.tag===5||e.tag===3||e.tag===4}function za(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ff(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 Sl(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=go));else if(r!==4&&(e=e.child,e!==null))for(Sl(e,t,n),e=e.sibling;e!==null;)Sl(e,t,n),e=e.sibling}function kl(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(kl(e,t,n),e=e.sibling;e!==null;)kl(e,t,n),e=e.sibling}var ue=null,We=!1;function mt(e,t,n){for(n=n.child;n!==null;)df(e,t,n),n=n.sibling}function df(e,t,n){if(tt&&typeof tt.onCommitFiberUnmount=="function")try{tt.onCommitFiberUnmount(Io,n)}catch{}switch(n.tag){case 5:he||pn(n,t);case 6:var r=ue,o=We;ue=null,mt(e,t,n),ue=r,We=o,ue!==null&&(We?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(We?(e=ue,n=n.stateNode,e.nodeType===8?xi(e.parentNode,n):e.nodeType===1&&xi(e,n),sr(e)):xi(ue,n.stateNode));break;case 4:r=ue,o=We,ue=n.stateNode.containerInfo,We=!0,mt(e,t,n),ue=r,We=o;break;case 0:case 11:case 14:case 15:if(!he&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,l=i.destroy;i=i.tag,l!==void 0&&(i&2||i&4)&&wl(n,t,l),o=o.next}while(o!==r)}mt(e,t,n);break;case 1:if(!he&&(pn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){ee(n,t,s)}mt(e,t,n);break;case 21:mt(e,t,n);break;case 22:n.mode&1?(he=(r=he)||n.memoizedState!==null,mt(e,t,n),he=r):mt(e,t,n);break;default:mt(e,t,n)}}function Da(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ih),t.forEach(function(r){var o=mh.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function $e(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=l),r&=~i}if(r=o,r=ne()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*ah(r/1960))-r,10e?16:e,Et===null)var r=!1;else{if(e=Et,Et=null,Ro=0,V&6)throw Error(O(331));var o=V;for(V|=4,F=e.current;F!==null;){var i=F,l=i.child;if(F.flags&16){var s=i.deletions;if(s!==null){for(var a=0;ane()-ws?Vt(e,0):vs|=n),Ce(e,t)}function xf(e,t){t===0&&(e.mode&1?(t=Lr,Lr<<=1,!(Lr&130023424)&&(Lr=4194304)):t=1);var n=ve();e=dt(e,t),e!==null&&(kr(e,t,n),Ce(e,n))}function hh(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xf(e,n)}function mh(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(O(314))}r!==null&&r.delete(t),xf(e,n)}var Sf;Sf=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ne.current)Ee=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ee=!1,nh(e,t,n);Ee=!!(e.flags&131072)}else Ee=!1,G&&t.flags&1048576&&Ec(t,So,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;eo(e,t),e=t.pendingProps;var o=kn(t,me.current);wn(t,n),o=ds(null,t,r,e,o,n);var i=ps();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,_e(r)?(i=!0,wo(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,ss(t),o.updater=Ho,t.stateNode=o,o._reactInternals=t,dl(t,r,e,n),t=ml(null,t,r,!0,i,n)):(t.tag=0,G&&i&&es(t),ge(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(eo(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=gh(r),e=He(r,e),o){case 0:t=hl(null,t,r,e,n);break e;case 1:t=Ra(null,t,r,e,n);break e;case 11:t=Pa(null,t,r,e,n);break e;case 14:t=Ta(null,t,r,He(r.type,e),n);break e}throw Error(O(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),hl(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Ra(e,t,r,o,n);case 3:e:{if(rf(t),e===null)throw Error(O(387));r=t.pendingProps,i=t.memoizedState,o=i.element,jc(e,t),No(t,r,null,n);var l=t.memoizedState;if(r=l.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=Cn(Error(O(423)),t),t=Oa(e,t,r,n,o);break e}else if(r!==o){o=Cn(Error(O(424)),t),t=Oa(e,t,r,n,o);break e}else for(Pe=jt(t.stateNode.containerInfo.firstChild),Te=t,G=!0,Ve=null,n=Oc(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(En(),r===o){t=pt(e,t,n);break e}ge(e,t,r,n)}t=t.child}return t;case 5:return Ac(t),e===null&&ul(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,l=o.children,ol(r,o)?l=null:i!==null&&ol(r,i)&&(t.flags|=32),nf(e,t),ge(e,t,l,n),t.child;case 6:return e===null&&ul(t),null;case 13:return of(e,t,n);case 4:return as(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Nn(t,null,r,n):ge(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),Pa(e,t,r,o,n);case 7:return ge(e,t,t.pendingProps,n),t.child;case 8:return ge(e,t,t.pendingProps.children,n),t.child;case 12:return ge(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,l=o.value,K(ko,r._currentValue),r._currentValue=l,i!==null)if(Je(i.value,l)){if(i.children===o.children&&!Ne.current){t=pt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){l=i.child;for(var a=s.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=at(-1,n&-n),a.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var p=c.pending;p===null?a.next=a:(a.next=p.next,p.next=a),c.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),cl(i.return,n,t),s.lanes|=n;break}a=a.next}}else if(i.tag===10)l=i.type===t.type?null:i.child;else if(i.tag===18){if(l=i.return,l===null)throw Error(O(341));l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),cl(l,n,t),l=i.sibling}else l=i.child;if(l!==null)l.return=i;else for(l=i;l!==null;){if(l===t){l=null;break}if(i=l.sibling,i!==null){i.return=l.return,l=i;break}l=l.return}i=l}ge(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,wn(t,n),o=be(o),r=r(o),t.flags|=1,ge(e,t,r,n),t.child;case 14:return r=t.type,o=He(r,t.pendingProps),o=He(r.type,o),Ta(e,t,r,o,n);case 15:return ef(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:He(r,o),eo(e,t),t.tag=1,_e(r)?(e=!0,wo(t)):e=!1,wn(t,n),Tc(t,r,o),dl(t,r,o,n),ml(null,t,r,!0,e,n);case 19:return lf(e,t,n);case 22:return tf(e,t,n)}throw Error(O(156,t.tag))};function kf(e,t){return Ku(e,t)}function yh(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 Fe(e,t,n,r){return new yh(e,t,n,r)}function Es(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gh(e){if(typeof e=="function")return Es(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$l)return 11;if(e===Hl)return 14}return 2}function Ot(e,t){var n=e.alternate;return n===null?(n=Fe(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 ro(e,t,n,r,o,i){var l=2;if(r=e,typeof e=="function")Es(e)&&(l=1);else if(typeof e=="string")l=5;else e:switch(e){case rn:return Qt(n.children,o,i,t);case Bl:l=8,o|=8;break;case Fi:return e=Fe(12,n,t,o|2),e.elementType=Fi,e.lanes=i,e;case Ii:return e=Fe(13,n,t,o),e.elementType=Ii,e.lanes=i,e;case Ui:return e=Fe(19,n,t,o),e.elementType=Ui,e.lanes=i,e;case Ru:return Ko(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Pu:l=10;break e;case Tu:l=9;break e;case $l:l=11;break e;case Hl:l=14;break e;case vt:l=16,r=null;break e}throw Error(O(130,e==null?e:typeof e,""))}return t=Fe(l,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qt(e,t,n,r){return e=Fe(7,e,r,t),e.lanes=n,e}function Ko(e,t,n,r){return e=Fe(22,e,r,t),e.elementType=Ru,e.lanes=n,e.stateNode={isHidden:!1},e}function Pi(e,t,n){return e=Fe(6,e,null,t),e.lanes=n,e}function Ti(e,t,n){return t=Fe(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vh(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ui(0),this.expirationTimes=ui(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ui(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ns(e,t,n,r,o,i,l,s,a){return e=new vh(e,t,n,s,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Fe(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},ss(i),e}function wh(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Cf)}catch(e){console.error(e)}}Cf(),Eu.exports=Oe;var jf=Eu.exports;const Nh=fu(jf);var Ha=jf;zi.createRoot=Ha.createRoot,zi.hydrateRoot=Ha.hydrateRoot;const _h="/assets/alby-a9055069.png",gt="/assets/pkgzap-89c74426.svg",Ch="/assets/ln-design-orange-1f3bf8fc.png",jh="/assets/ln-design-yellow-764ed677.png";function Pf(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ph}=Object.prototype,{getPrototypeOf:Ps}=Object,Yo=(e=>t=>{const n=Ph.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rt=e=>(e=e.toLowerCase(),t=>Yo(t)===e),Zo=e=>t=>typeof t===e,{isArray:An}=Array,wr=Zo("undefined");function Th(e){return e!==null&&!wr(e)&&e.constructor!==null&&!wr(e.constructor)&&Ue(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Tf=rt("ArrayBuffer");function Rh(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Tf(e.buffer),t}const Oh=Zo("string"),Ue=Zo("function"),Rf=Zo("number"),ei=e=>e!==null&&typeof e=="object",Ah=e=>e===!0||e===!1,oo=e=>{if(Yo(e)!=="object")return!1;const t=Ps(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},Lh=rt("Date"),zh=rt("File"),Dh=rt("Blob"),Fh=rt("FileList"),Ih=e=>ei(e)&&Ue(e.pipe),Uh=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ue(e.append)&&((t=Yo(e))==="formdata"||t==="object"&&Ue(e.toString)&&e.toString()==="[object FormData]"))},bh=rt("URLSearchParams"),Mh=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Cr(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),An(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Af=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),Lf=e=>!wr(e)&&e!==Af;function jl(){const{caseless:e}=Lf(this)&&this||{},t={},n=(r,o)=>{const i=e&&Of(t,o)||o;oo(t[i])&&oo(r)?t[i]=jl(t[i],r):oo(r)?t[i]=jl({},r):An(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r(Cr(t,(o,i)=>{n&&Ue(o)?e[i]=Pf(o,n):e[i]=o},{allOwnKeys:r}),e),$h=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Hh=(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)},Wh=(e,t,n,r)=>{let o,i,l;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!r||r(l,e,t))&&!s[l]&&(t[l]=e[l],s[l]=!0);e=n!==!1&&Ps(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Vh=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Qh=e=>{if(!e)return null;if(An(e))return e;let t=e.length;if(!Rf(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Kh=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ps(Uint8Array)),qh=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Jh=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Gh=rt("HTMLFormElement"),Xh=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Wa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Yh=rt("RegExp"),zf=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Cr(n,(o,i)=>{t(o,i,e)!==!1&&(r[i]=o)}),Object.defineProperties(e,r)},Zh=e=>{zf(e,(t,n)=>{if(Ue(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ue(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+"'")})}})},em=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return An(e)?r(e):r(String(e).split(t)),n},tm=()=>{},nm=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Ri="abcdefghijklmnopqrstuvwxyz",Va="0123456789",Df={DIGIT:Va,ALPHA:Ri,ALPHA_DIGIT:Ri+Ri.toUpperCase()+Va},rm=(e=16,t=Df.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function om(e){return!!(e&&Ue(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const im=e=>{const t=new Array(10),n=(r,o)=>{if(ei(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=An(r)?[]:{};return Cr(r,(l,s)=>{const a=n(l,o+1);!wr(a)&&(i[s]=a)}),t[o]=void 0,i}}return r};return n(e,0)},lm=rt("AsyncFunction"),sm=e=>e&&(ei(e)||Ue(e))&&Ue(e.then)&&Ue(e.catch),N={isArray:An,isArrayBuffer:Tf,isBuffer:Th,isFormData:Uh,isArrayBufferView:Rh,isString:Oh,isNumber:Rf,isBoolean:Ah,isObject:ei,isPlainObject:oo,isUndefined:wr,isDate:Lh,isFile:zh,isBlob:Dh,isRegExp:Yh,isFunction:Ue,isStream:Ih,isURLSearchParams:bh,isTypedArray:Kh,isFileList:Fh,forEach:Cr,merge:jl,extend:Bh,trim:Mh,stripBOM:$h,inherits:Hh,toFlatObject:Wh,kindOf:Yo,kindOfTest:rt,endsWith:Vh,toArray:Qh,forEachEntry:qh,matchAll:Jh,isHTMLForm:Gh,hasOwnProperty:Wa,hasOwnProp:Wa,reduceDescriptors:zf,freezeMethods:Zh,toObjectSet:em,toCamelCase:Xh,noop:tm,toFiniteNumber:nm,findKey:Of,global:Af,isContextDefined:Lf,ALPHABET:Df,generateString:rm,isSpecCompliantForm:om,toJSONObject:im,isAsyncFn:lm,isThenable:sm};function W(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}N.inherits(W,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:N.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Ff=W.prototype,If={};["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=>{If[e]={value:e}});Object.defineProperties(W,If);Object.defineProperty(Ff,"isAxiosError",{value:!0});W.from=(e,t,n,r,o,i)=>{const l=Object.create(Ff);return N.toFlatObject(e,l,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),W.call(l,e.message,t,n,r,o),l.cause=e,l.name=e.name,i&&Object.assign(l,i),l};const am=null;function Pl(e){return N.isPlainObject(e)||N.isArray(e)}function Uf(e){return N.endsWith(e,"[]")?e.slice(0,-2):e}function Qa(e,t,n){return e?e.concat(t).map(function(o,i){return o=Uf(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function um(e){return N.isArray(e)&&!e.some(Pl)}const cm=N.toFlatObject(N,{},null,function(t){return/^is[A-Z]/.test(t)});function ti(e,t,n){if(!N.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=N.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,L){return!N.isUndefined(L[x])});const r=n.metaTokens,o=n.visitor||p,i=n.dots,l=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&N.isSpecCompliantForm(t);if(!N.isFunction(o))throw new TypeError("visitor must be a function");function c(v){if(v===null)return"";if(N.isDate(v))return v.toISOString();if(!a&&N.isBlob(v))throw new W("Blob is not supported. Use a Buffer instead.");return N.isArrayBuffer(v)||N.isTypedArray(v)?a&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}function p(v,x,L){let d=v;if(v&&!L&&typeof v=="object"){if(N.endsWith(x,"{}"))x=r?x:x.slice(0,-2),v=JSON.stringify(v);else if(N.isArray(v)&&um(v)||(N.isFileList(v)||N.endsWith(x,"[]"))&&(d=N.toArray(v)))return x=Uf(x),d.forEach(function(f,w){!(N.isUndefined(f)||f===null)&&t.append(l===!0?Qa([x],w,i):l===null?x:x+"[]",c(f))}),!1}return Pl(v)?!0:(t.append(Qa(L,x,i),c(v)),!1)}const h=[],y=Object.assign(cm,{defaultVisitor:p,convertValue:c,isVisitable:Pl});function S(v,x){if(!N.isUndefined(v)){if(h.indexOf(v)!==-1)throw Error("Circular reference detected in "+x.join("."));h.push(v),N.forEach(v,function(d,u){(!(N.isUndefined(d)||d===null)&&o.call(t,d,N.isString(u)?u.trim():u,x,y))===!0&&S(d,x?x.concat(u):[u])}),h.pop()}}if(!N.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ka(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Ts(e,t){this._pairs=[],e&&ti(e,this,t)}const bf=Ts.prototype;bf.append=function(t,n){this._pairs.push([t,n])};bf.toString=function(t){const n=t?function(r){return t.call(this,r,Ka)}:Ka;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function fm(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Mf(e,t,n){if(!t)return e;const r=n&&n.encode||fm,o=n&&n.serialize;let i;if(o?i=o(t,n):i=N.isURLSearchParams(t)?t.toString():new Ts(t,n).toString(r),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class dm{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){N.forEach(this.handlers,function(r){r!==null&&t(r)})}}const qa=dm,Bf={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},pm=typeof URLSearchParams<"u"?URLSearchParams:Ts,hm=typeof FormData<"u"?FormData:null,mm=typeof Blob<"u"?Blob:null,ym=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),gm=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),et={isBrowser:!0,classes:{URLSearchParams:pm,FormData:hm,Blob:mm},isStandardBrowserEnv:ym,isStandardBrowserWebWorkerEnv:gm,protocols:["http","https","file","blob","url","data"]};function vm(e,t){return ti(e,new et.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return et.isNode&&N.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function wm(e){return N.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xm(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r=n.length;return l=!l&&N.isArray(o)?o.length:l,a?(N.hasOwnProp(o,l)?o[l]=[o[l],r]:o[l]=r,!s):((!o[l]||!N.isObject(o[l]))&&(o[l]=[]),t(n,r,o[l],i)&&N.isArray(o[l])&&(o[l]=xm(o[l])),!s)}if(N.isFormData(e)&&N.isFunction(e.entries)){const n={};return N.forEachEntry(e,(r,o)=>{t(wm(r),o,n,0)}),n}return null}const Sm={"Content-Type":void 0};function km(e,t,n){if(N.isString(e))try{return(t||JSON.parse)(e),N.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ni={transitional:Bf,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=N.isObject(t);if(i&&N.isHTMLForm(t)&&(t=new FormData(t)),N.isFormData(t))return o&&o?JSON.stringify($f(t)):t;if(N.isArrayBuffer(t)||N.isBuffer(t)||N.isStream(t)||N.isFile(t)||N.isBlob(t))return t;if(N.isArrayBufferView(t))return t.buffer;if(N.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return vm(t,this.formSerializer).toString();if((s=N.isFileList(t))||r.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return ti(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),km(t)):t}],transformResponse:[function(t){const n=this.transitional||ni.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(t&&N.isString(t)&&(r&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:et.classes.FormData,Blob:et.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};N.forEach(["delete","get","head"],function(t){ni.headers[t]={}});N.forEach(["post","put","patch"],function(t){ni.headers[t]=N.merge(Sm)});const Rs=ni,Em=N.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"]),Nm=e=>{const t={};let n,r,o;return e&&e.split(` +`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),r=l.substring(o+1).trim(),!(!n||t[n]&&Em[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Ja=Symbol("internals");function Bn(e){return e&&String(e).trim().toLowerCase()}function io(e){return e===!1||e==null?e:N.isArray(e)?e.map(io):String(e)}function _m(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Cm=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Oi(e,t,n,r,o){if(N.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!N.isString(t)){if(N.isString(r))return t.indexOf(r)!==-1;if(N.isRegExp(r))return r.test(t)}}function jm(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Pm(e,t){const n=N.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,l){return this[r].call(this,t,o,i,l)},configurable:!0})})}class ri{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,a,c){const p=Bn(a);if(!p)throw new Error("header name must be a non-empty string");const h=N.findKey(o,p);(!h||o[h]===void 0||c===!0||c===void 0&&o[h]!==!1)&&(o[h||a]=io(s))}const l=(s,a)=>N.forEach(s,(c,p)=>i(c,p,a));return N.isPlainObject(t)||t instanceof this.constructor?l(t,n):N.isString(t)&&(t=t.trim())&&!Cm(t)?l(Nm(t),n):t!=null&&i(n,t,r),this}get(t,n){if(t=Bn(t),t){const r=N.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return _m(o);if(N.isFunction(n))return n.call(this,o,r);if(N.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Bn(t),t){const r=N.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Oi(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(l){if(l=Bn(l),l){const s=N.findKey(r,l);s&&(!n||Oi(r,r[s],s,n))&&(delete r[s],o=!0)}}return N.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||Oi(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return N.forEach(this,(o,i)=>{const l=N.findKey(r,i);if(l){n[l]=io(o),delete n[i];return}const s=t?jm(i):String(i).trim();s!==i&&delete n[i],n[s]=io(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return N.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&N.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){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Ja]=this[Ja]={accessors:{}}).accessors,o=this.prototype;function i(l){const s=Bn(l);r[s]||(Pm(o,l),r[s]=!0)}return N.isArray(t)?t.forEach(i):i(t),this}}ri.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);N.freezeMethods(ri.prototype);N.freezeMethods(ri);const ut=ri;function Ai(e,t){const n=this||Rs,r=t||n,o=ut.from(r.headers);let i=r.data;return N.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Hf(e){return!!(e&&e.__CANCEL__)}function jr(e,t,n){W.call(this,e??"canceled",W.ERR_CANCELED,t,n),this.name="CanceledError"}N.inherits(jr,W,{__CANCEL__:!0});function Tm(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,[W.ERR_BAD_REQUEST,W.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const Rm=et.isStandardBrowserEnv?function(){return{write:function(n,r,o,i,l,s){const a=[];a.push(n+"="+encodeURIComponent(r)),N.isNumber(o)&&a.push("expires="+new Date(o).toGMTString()),N.isString(i)&&a.push("path="+i),N.isString(l)&&a.push("domain="+l),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Om(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Am(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function Wf(e,t){return e&&!Om(t)?Am(e,t):t}const Lm=et.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function o(i){let l=i;return t&&(n.setAttribute("href",l),l=n.href),n.setAttribute("href",l),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=o(window.location.href),function(l){const s=N.isString(l)?o(l):l;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}();function zm(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dm(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(a){const c=Date.now(),p=r[i];l||(l=c),n[o]=a,r[o]=c;let h=i,y=0;for(;h!==o;)y+=n[h++],h=h%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),c-l{const i=o.loaded,l=o.lengthComputable?o.total:void 0,s=i-n,a=r(s),c=i<=l;n=i;const p={loaded:i,total:l,progress:l?i/l:void 0,bytes:s,rate:a||void 0,estimated:a&&l&&c?(l-i)/a:void 0,event:o};p[t?"download":"upload"]=!0,e(p)}}const Fm=typeof XMLHttpRequest<"u",Im=Fm&&function(e){return new Promise(function(n,r){let o=e.data;const i=ut.from(e.headers).normalize(),l=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}N.isFormData(o)&&(et.isStandardBrowserEnv||et.isStandardBrowserWebWorkerEnv?i.setContentType(!1):i.setContentType("multipart/form-data;",!1));let c=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",v=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";i.set("Authorization","Basic "+btoa(S+":"+v))}const p=Wf(e.baseURL,e.url);c.open(e.method.toUpperCase(),Mf(p,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function h(){if(!c)return;const S=ut.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),x={data:!l||l==="text"||l==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:S,config:e,request:c};Tm(function(d){n(d),a()},function(d){r(d),a()},x),c=null}if("onloadend"in c?c.onloadend=h:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(h)},c.onabort=function(){c&&(r(new W("Request aborted",W.ECONNABORTED,e,c)),c=null)},c.onerror=function(){r(new W("Network Error",W.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let v=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const x=e.transitional||Bf;e.timeoutErrorMessage&&(v=e.timeoutErrorMessage),r(new W(v,x.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,c)),c=null},et.isStandardBrowserEnv){const S=(e.withCredentials||Lm(p))&&e.xsrfCookieName&&Rm.read(e.xsrfCookieName);S&&i.set(e.xsrfHeaderName,S)}o===void 0&&i.setContentType(null),"setRequestHeader"in c&&N.forEach(i.toJSON(),function(v,x){c.setRequestHeader(x,v)}),N.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),l&&l!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",Ga(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Ga(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=S=>{c&&(r(!S||S.type?new jr(null,e,c):S),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const y=zm(p);if(y&&et.protocols.indexOf(y)===-1){r(new W("Unsupported protocol "+y+":",W.ERR_BAD_REQUEST,e));return}c.send(o||null)})},lo={http:am,xhr:Im};N.forEach(lo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Um={getAdapter:e=>{e=N.isArray(e)?e:[e];const{length:t}=e;let n,r;for(let o=0;oe instanceof ut?e.toJSON():e;function Pn(e,t){t=t||{};const n={};function r(c,p,h){return N.isPlainObject(c)&&N.isPlainObject(p)?N.merge.call({caseless:h},c,p):N.isPlainObject(p)?N.merge({},p):N.isArray(p)?p.slice():p}function o(c,p,h){if(N.isUndefined(p)){if(!N.isUndefined(c))return r(void 0,c,h)}else return r(c,p,h)}function i(c,p){if(!N.isUndefined(p))return r(void 0,p)}function l(c,p){if(N.isUndefined(p)){if(!N.isUndefined(c))return r(void 0,c)}else return r(void 0,p)}function s(c,p,h){if(h in t)return r(c,p);if(h in e)return r(void 0,c)}const a={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:s,headers:(c,p)=>o(Ya(c),Ya(p),!0)};return N.forEach(Object.keys(Object.assign({},e,t)),function(p){const h=a[p]||o,y=h(e[p],t[p],p);N.isUndefined(y)&&h!==s||(n[p]=y)}),n}const Vf="1.4.0",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Za={};Os.transitional=function(t,n,r){function o(i,l){return"[Axios v"+Vf+"] Transitional option '"+i+"'"+l+(r?". "+r:"")}return(i,l,s)=>{if(t===!1)throw new W(o(l," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!Za[l]&&(Za[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,s):!0}};function bm(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],l=t[i];if(l){const s=e[i],a=s===void 0||l(s,i,e);if(a!==!0)throw new W("option "+i+" must be "+a,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const Tl={assertOptions:bm,validators:Os},yt=Tl.validators;class Lo{constructor(t){this.defaults=t,this.interceptors={request:new qa,response:new qa}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Pn(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Tl.assertOptions(r,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),o!=null&&(N.isFunction(o)?n.paramsSerializer={serialize:o}:Tl.assertOptions(o,{encode:yt.function,serialize:yt.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l;l=i&&N.merge(i.common,i[n.method]),l&&N.forEach(["delete","get","head","post","put","patch","common"],v=>{delete i[v]}),n.headers=ut.concat(l,i);const s=[];let a=!0;this.interceptors.request.forEach(function(x){typeof x.runWhen=="function"&&x.runWhen(n)===!1||(a=a&&x.synchronous,s.unshift(x.fulfilled,x.rejected))});const c=[];this.interceptors.response.forEach(function(x){c.push(x.fulfilled,x.rejected)});let p,h=0,y;if(!a){const v=[Xa.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,c),y=v.length,p=Promise.resolve(n);h{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(s=>{r.subscribe(s),i=s}).then(o);return l.cancel=function(){r.unsubscribe(i)},l},t(function(i,l,s){r.reason||(r.reason=new jr(i,l,s),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;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new As(function(o){t=o}),cancel:t}}}const Mm=As;function Bm(e){return function(n){return e.apply(null,n)}}function $m(e){return N.isObject(e)&&e.isAxiosError===!0}const Rl={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(Rl).forEach(([e,t])=>{Rl[t]=e});const Hm=Rl;function Qf(e){const t=new so(e),n=Pf(so.prototype.request,t);return N.extend(n,so.prototype,t,{allOwnKeys:!0}),N.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Qf(Pn(e,o))},n}const le=Qf(Rs);le.Axios=so;le.CanceledError=jr;le.CancelToken=Mm;le.isCancel=Hf;le.VERSION=Vf;le.toFormData=ti;le.AxiosError=W;le.Cancel=le.CanceledError;le.all=function(t){return Promise.all(t)};le.spread=Bm;le.isAxiosError=$m;le.mergeConfig=Pn;le.AxiosHeaders=ut;le.formToJSON=e=>$f(N.isHTMLForm(e)?new FormData(e):e);le.HttpStatusCode=Hm;le.default=le;const Wm=le;var Wt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ls(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vm(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Kf={exports:{}},$n={};/** * @license React * react-jsx-runtime.production.min.js * @@ -47,7 +47,7 @@ Error generating stack: `+i.message+` * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var eu;function Qm(){if(eu)return $n;eu=1;var e=Su,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,c){var p,h={},y=null,S=null;c!==void 0&&(y=""+c),a.key!==void 0&&(y=""+a.key),a.ref!==void 0&&(S=a.ref);for(p in a)r.call(a,p)&&!i.hasOwnProperty(p)&&(h[p]=a[p]);if(s&&s.defaultProps)for(p in a=s.defaultProps,a)h[p]===void 0&&(h[p]=a[p]);return{$$typeof:t,type:s,key:y,ref:S,props:h,_owner:o.current}}return $n.Fragment=n,$n.jsx=l,$n.jsxs=l,$n}Kf.exports=Qm();var Le=Kf.exports,Ol={exports:{}};(function(e,t){var n=typeof self<"u"?self:Wt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(l){var s={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(s.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(m){return m&&c.indexOf(Object.prototype.toString.call(m))>-1};function h(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function y(m){return typeof m!="string"&&(m=String(m)),m}function S(m){var E={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return s.iterable&&(E[Symbol.iterator]=function(){return E}),E}function g(m){this.map={},m instanceof g?m.forEach(function(E,R){this.append(R,E)},this):Array.isArray(m)?m.forEach(function(E){this.append(E[0],E[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(E){this.append(E,m[E])},this)}g.prototype.append=function(m,E){m=h(m),E=y(E);var R=this.map[m];this.map[m]=R?R+", "+E:E},g.prototype.delete=function(m){delete this.map[h(m)]},g.prototype.get=function(m){return m=h(m),this.has(m)?this.map[m]:null},g.prototype.has=function(m){return this.map.hasOwnProperty(h(m))},g.prototype.set=function(m,E){this.map[h(m)]=y(E)},g.prototype.forEach=function(m,E){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(E,this.map[R],R,this)},g.prototype.keys=function(){var m=[];return this.forEach(function(E,R){m.push(R)}),S(m)},g.prototype.values=function(){var m=[];return this.forEach(function(E){m.push(E)}),S(m)},g.prototype.entries=function(){var m=[];return this.forEach(function(E,R){m.push([R,E])}),S(m)},s.iterable&&(g.prototype[Symbol.iterator]=g.prototype.entries);function x(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function L(m){return new Promise(function(E,R){m.onload=function(){E(m.result)},m.onerror=function(){R(m.error)}})}function d(m){var E=new FileReader,R=L(E);return E.readAsArrayBuffer(m),R}function u(m){var E=new FileReader,R=L(E);return E.readAsText(m),R}function f(m){for(var E=new Uint8Array(m),R=new Array(E.length),U=0;U-1?E:m}function z(m,E){E=E||{};var R=E.body;if(m instanceof z){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,E.headers||(this.headers=new g(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=E.credentials||this.credentials||"same-origin",(E.headers||!this.headers)&&(this.headers=new g(E.headers)),this.method=j(E.method||this.method||"GET"),this.mode=E.mode||this.mode||null,this.signal=E.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(R)}z.prototype.clone=function(){return new z(this,{body:this._bodyInit})};function b(m){var E=new FormData;return m.trim().split("&").forEach(function(R){if(R){var U=R.split("="),T=U.shift().replace(/\+/g," "),D=U.join("=").replace(/\+/g," ");E.append(decodeURIComponent(T),decodeURIComponent(D))}}),E}function M(m){var E=new g,R=m.replace(/\r?\n[\t ]+/g," ");return R.split(/\r?\n/).forEach(function(U){var T=U.split(":"),D=T.shift().trim();if(D){var B=T.join(":").trim();E.append(D,B)}}),E}C.call(z.prototype);function k(m,E){E||(E={}),this.type="default",this.status=E.status===void 0?200:E.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in E?E.statusText:"OK",this.headers=new g(E.headers),this.url=E.url||"",this._initBody(m)}C.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new g(this.headers),url:this.url})},k.error=function(){var m=new k(null,{status:0,statusText:""});return m.type="error",m};var _=[301,302,303,307,308];k.redirect=function(m,E){if(_.indexOf(E)===-1)throw new RangeError("Invalid status code");return new k(null,{status:E,headers:{location:m}})},l.DOMException=i.DOMException;try{new l.DOMException}catch{l.DOMException=function(m,E){this.message=m,this.name=E;var R=Error(m);this.stack=R.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function P(m,E){return new Promise(function(R,U){var T=new z(m,E);if(T.signal&&T.signal.aborted)return U(new l.DOMException("Aborted","AbortError"));var D=new XMLHttpRequest;function B(){D.abort()}D.onload=function(){var I={status:D.status,statusText:D.statusText,headers:M(D.getAllResponseHeaders()||"")};I.url="responseURL"in D?D.responseURL:I.headers.get("X-Request-URL");var $="response"in D?D.response:D.responseText;R(new k($,I))},D.onerror=function(){U(new TypeError("Network request failed"))},D.ontimeout=function(){U(new TypeError("Network request failed"))},D.onabort=function(){U(new l.DOMException("Aborted","AbortError"))},D.open(T.method,T.url,!0),T.credentials==="include"?D.withCredentials=!0:T.credentials==="omit"&&(D.withCredentials=!1),"responseType"in D&&s.blob&&(D.responseType="blob"),T.headers.forEach(function(I,$){D.setRequestHeader($,I)}),T.signal&&(T.signal.addEventListener("abort",B),D.onreadystatechange=function(){D.readyState===4&&T.signal.removeEventListener("abort",B)}),D.send(typeof T._bodyInit>"u"?null:T._bodyInit)})}return P.polyfill=!0,i.fetch||(i.fetch=P,i.Headers=g,i.Request=z,i.Response=k),l.Headers=g,l.Request=z,l.Response=k,l.fetch=P,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(Ol,Ol.exports);var Km=Ol.exports;const Bt=Ls(Km);var qf={exports:{}};function qm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var tu={exports:{}};const Jm={},Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Jm},Symbol.toStringTag,{value:"Module"})),Xm=Vm(Gm);var nu;function Jf(){return nu||(nu=1,function(e,t){(function(n,r){e.exports=r()})(Wt,function(){var n=n||function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Wt<"u"&&Wt.crypto&&(i=Wt.crypto),!i&&typeof qm=="function")try{i=Xm}catch{}var l=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function u(){}return function(f){var w;return u.prototype=f,w=new u,u.prototype=null,w}}(),a={},c=a.lib={},p=c.Base=function(){return{extend:function(u){var f=s(this);return u&&f.mixIn(u),(!f.hasOwnProperty("init")||this.init===f.init)&&(f.init=function(){f.$super.init.apply(this,arguments)}),f.init.prototype=f,f.$super=this,f},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var f in u)u.hasOwnProperty(f)&&(this[f]=u[f]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=c.WordArray=p.extend({init:function(u,f){u=this.words=u||[],f!=o?this.sigBytes=f:this.sigBytes=u.length*4},toString:function(u){return(u||S).stringify(this)},concat:function(u){var f=this.words,w=u.words,C=this.sigBytes,A=u.sigBytes;if(this.clamp(),C%4)for(var j=0;j>>2]>>>24-j%4*8&255;f[C+j>>>2]|=z<<24-(C+j)%4*8}else for(var b=0;b>>2]=w[b>>>2];return this.sigBytes+=A,this},clamp:function(){var u=this.words,f=this.sigBytes;u[f>>>2]&=4294967295<<32-f%4*8,u.length=r.ceil(f/4)},clone:function(){var u=p.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var f=[],w=0;w>>2]>>>24-A%4*8&255;C.push((j>>>4).toString(16)),C.push((j&15).toString(16))}return C.join("")},parse:function(u){for(var f=u.length,w=[],C=0;C>>3]|=parseInt(u.substr(C,2),16)<<24-C%8*4;return new h.init(w,f/2)}},g=y.Latin1={stringify:function(u){for(var f=u.words,w=u.sigBytes,C=[],A=0;A>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(j))}return C.join("")},parse:function(u){for(var f=u.length,w=[],C=0;C>>2]|=(u.charCodeAt(C)&255)<<24-C%4*8;return new h.init(w,f)}},x=y.Utf8={stringify:function(u){try{return decodeURIComponent(escape(g.stringify(u)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(u){return g.parse(unescape(encodeURIComponent(u)))}},L=c.BufferedBlockAlgorithm=p.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=x.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var f,w=this._data,C=w.words,A=w.sigBytes,j=this.blockSize,z=j*4,b=A/z;u?b=r.ceil(b):b=r.max((b|0)-this._minBufferSize,0);var M=b*j,k=r.min(M*4,A);if(M){for(var _=0;_>>7)^(b<<14|b>>>18)^b>>>3,k=h[z-2],_=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;h[z]=M+h[z-7]+_+h[z-16]}var P=w&C^~w&A,m=L&d^L&u^d&u,E=(L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22),R=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),U=j+R+P+p[z]+h[z],T=E+m;j=A,A=C,C=w,w=f+U|0,f=u,u=d,d=L,L=U+T|0}x[0]=x[0]+L|0,x[1]=x[1]+d|0,x[2]=x[2]+u|0,x[3]=x[3]+f|0,x[4]=x[4]+w|0,x[5]=x[5]+C|0,x[6]=x[6]+A|0,x[7]=x[7]+j|0},_doFinalize:function(){var S=this._data,g=S.words,x=this._nDataBytes*8,L=S.sigBytes*8;return g[L>>>5]|=128<<24-L%32,g[(L+64>>>9<<4)+14]=r.floor(x/4294967296),g[(L+64>>>9<<4)+15]=x,S.sigBytes=g.length*4,this._process(),this._hash},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});o.SHA256=s._createHelper(y),o.HmacSHA256=s._createHmacHelper(y)}(Math),n.SHA256})})(Gf);var Zm=Gf.exports;const zo=Ls(Zm);var Xf={};(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64url=e.base64=e.base32crockford=e.base32hex=e.base32=e.base16=e.utils=e.assertNumber=void 0;function t(k){if(!Number.isSafeInteger(k))throw new Error(`Wrong integer: ${k}`)}e.assertNumber=t;function n(...k){const _=(E,R)=>U=>E(R(U)),P=Array.from(k).reverse().reduce((E,R)=>E?_(E,R.encode):R.encode,void 0),m=k.reduce((E,R)=>E?_(E,R.decode):R.decode,void 0);return{encode:P,decode:m}}function r(k){return{encode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return _.map(P=>{if(t(P),P<0||P>=k.length)throw new Error(`Digit index outside alphabet: ${P} (alphabet: ${k.length})`);return k[P]})},decode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="string")throw new Error("alphabet.decode input should be array of strings");return _.map(P=>{if(typeof P!="string")throw new Error(`alphabet.decode: not string element=${P}`);const m=k.indexOf(P);if(m===-1)throw new Error(`Unknown letter: "${P}". Allowed: ${k}`);return m})}}}function o(k=""){if(typeof k!="string")throw new Error("join separator should be string");return{encode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="string")throw new Error("join.encode input should be array of strings");for(let P of _)if(typeof P!="string")throw new Error(`join.encode: non-string input=${P}`);return _.join(k)},decode:_=>{if(typeof _!="string")throw new Error("join.decode input should be string");return _.split(k)}}}function i(k,_="="){if(t(k),typeof _!="string")throw new Error("padding chr should be string");return{encode(P){if(!Array.isArray(P)||P.length&&typeof P[0]!="string")throw new Error("padding.encode input should be array of strings");for(let m of P)if(typeof m!="string")throw new Error(`padding.encode: non-string input=${m}`);for(;P.length*k%8;)P.push(_);return P},decode(P){if(!Array.isArray(P)||P.length&&typeof P[0]!="string")throw new Error("padding.encode input should be array of strings");for(let E of P)if(typeof E!="string")throw new Error(`padding.decode: non-string input=${E}`);let m=P.length;if(m*k%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;m>0&&P[m-1]===_;m--)if(!((m-1)*k%8))throw new Error("Invalid padding: string has too much padding");return P.slice(0,m)}}}function l(k){if(typeof k!="function")throw new Error("normalize fn should be function");return{encode:_=>_,decode:_=>k(_)}}function s(k,_,P){if(_<2)throw new Error(`convertRadix: wrong from=${_}, base cannot be less than 2`);if(P<2)throw new Error(`convertRadix: wrong to=${P}, base cannot be less than 2`);if(!Array.isArray(k))throw new Error("convertRadix: data should be array");if(!k.length)return[];let m=0;const E=[],R=Array.from(k);for(R.forEach(U=>{if(t(U),U<0||U>=_)throw new Error(`Wrong integer: ${U}`)});;){let U=0,T=!0;for(let D=m;D_?a(_,k%_):k,c=(k,_)=>k+(_-a(k,_));function p(k,_,P,m){if(!Array.isArray(k))throw new Error("convertRadix2: data should be array");if(_<=0||_>32)throw new Error(`convertRadix2: wrong from=${_}`);if(P<=0||P>32)throw new Error(`convertRadix2: wrong to=${P}`);if(c(_,P)>32)throw new Error(`convertRadix2: carry overflow from=${_} to=${P} carryBits=${c(_,P)}`);let E=0,R=0;const U=2**P-1,T=[];for(const D of k){if(t(D),D>=2**_)throw new Error(`convertRadix2: invalid data word=${D} from=${_}`);if(E=E<<_|D,R+_>32)throw new Error(`convertRadix2: carry overflow pos=${R} from=${_}`);for(R+=_;R>=P;R-=P)T.push((E>>R-P&U)>>>0);E&=2**R-1}if(E=E<=_)throw new Error("Excess padding");if(!m&&E)throw new Error(`Non-zero padding: ${E}`);return m&&R>0&&T.push(E>>>0),T}function h(k){return t(k),{encode:_=>{if(!(_ instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return s(Array.from(_),2**8,k)},decode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(s(_,k,2**8))}}}function y(k,_=!1){if(t(k),k<=0||k>32)throw new Error("radix2: bits should be in (0..32]");if(c(8,k)>32||c(k,8)>32)throw new Error("radix2: carry overflow");return{encode:P=>{if(!(P instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return p(Array.from(P),8,k,!_)},decode:P=>{if(!Array.isArray(P)||P.length&&typeof P[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(p(P,k,8,_))}}}function S(k){if(typeof k!="function")throw new Error("unsafeWrapper fn should be function");return function(..._){try{return k.apply(null,_)}catch{}}}function g(k,_){if(t(k),typeof _!="function")throw new Error("checksum fn should be function");return{encode(P){if(!(P instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const m=_(P).slice(0,k),E=new Uint8Array(P.length+k);return E.set(P),E.set(m,P.length),E},decode(P){if(!(P instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const m=P.slice(0,-k),E=_(m).slice(0,k),R=P.slice(-k);for(let U=0;Uk.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),e.base64=n(y(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i(6),o("")),e.base64url=n(y(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(6),o(""));const x=k=>n(h(58),r(k),o(""));e.base58=x("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=x("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=x("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const L=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(k){let _="";for(let P=0;Pn(g(4,_=>k(k(_))),e.base58);e.base58check=d;const u=n(r("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),f=[996825010,642813549,513874426,1027748829,705979059];function w(k){const _=k>>25;let P=(k&33554431)<<5;for(let m=0;m>m&1)===1&&(P^=f[m]);return P}function C(k,_,P=1){const m=k.length;let E=1;for(let R=0;R126)throw new Error(`Invalid prefix (${k})`);E=w(E)^U>>5}E=w(E);for(let R=0;RSe)throw new TypeError(`Length ${ye} exceeds limit ${Se}`);return I=I.toLowerCase(),`${I}1${u.encode($)}${C(I,$,_)}`}function T(I,$=90){if(typeof I!="string")throw new Error(`bech32.decode input should be string, not ${typeof I}`);if(I.length<8||$!==!1&&I.length>$)throw new TypeError(`Wrong string length: ${I.length} (${I}). Expected (8..${$})`);const Se=I.toLowerCase();if(I!==Se&&I!==I.toUpperCase())throw new Error("String must be lowercase or uppercase");I=Se;const ye=I.lastIndexOf("1");if(ye===0||ye===-1)throw new Error('Letter "1" must be present between prefix and data only');const en=I.slice(0,ye),Me=I.slice(ye+1);if(Me.length<6)throw new Error("Data must be at least 6 characters long");const It=u.decode(Me).slice(0,-6),zs=C(en,It,_);if(!Me.endsWith(zs))throw new Error(`Invalid checksum in ${I}: expected "${zs}"`);return{prefix:en,words:It}}const D=S(T);function B(I){const{prefix:$,words:Se}=T(I,!1);return{prefix:$,words:Se,bytes:m(Se)}}return{encode:U,decode:T,decodeToBytes:B,decodeUnsafe:D,fromWords:m,fromWordsUnsafe:R,toWords:E}}e.bech32=A("bech32"),e.bech32m=A("bech32m"),e.utf8={encode:k=>new TextDecoder().decode(k),decode:k=>new TextEncoder().encode(k)},e.hex=n(y(4),r("0123456789abcdef"),o(""),l(k=>{if(typeof k!="string"||k.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof k} with length ${k.length}`);return k.toLowerCase()}));const j={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},z=`Invalid encoding type. Available types: ${Object.keys(j).join(", ")}`,b=(k,_)=>{if(typeof k!="string"||!j.hasOwnProperty(k))throw new TypeError(z);if(!(_ instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return j[k].encode(_)};e.bytesToString=b,e.str=e.bytesToString;const M=(k,_)=>{if(!j.hasOwnProperty(k))throw new TypeError(z);if(typeof _!="string")throw new TypeError("stringToBytes() expects string");return j[k].decode(_)};e.stringToBytes=M,e.bytes=e.stringToBytes})(Xf);const{bech32:Ye,hex:Qe,utf8:ey}=Xf,ru={bech32:"bc",pubKeyHash:0,scriptHash:5,validWitnessVersions:[0]},ou={bech32:"tb",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},iu={bech32:"bcrt",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},lu={bech32:"sb",pubKeyHash:63,scriptHash:123,validWitnessVersions:[0]},Vr=["option_data_loss_protect","initial_routing_sync","option_upfront_shutdown_script","gossip_queries","var_onion_optin","gossip_queries_ex","option_static_remotekey","payment_secret","basic_mpp","option_support_large_channel"],ty={m:BigInt(1e3),u:BigInt(1e6),n:BigInt(1e9),p:BigInt(1e12)},ny=BigInt("2100000000000000000"),su=BigInt(1e11),Al={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27},Yf={};for(let e=0,t=Object.keys(Al);eQe.encode(Ye.fromWordsUnsafe(e)),16:e=>Qe.encode(Ye.fromWordsUnsafe(e)),13:e=>ey.encode(Ye.fromWordsUnsafe(e)),19:e=>Qe.encode(Ye.fromWordsUnsafe(e)),23:e=>Qe.encode(Ye.fromWordsUnsafe(e)),27:e=>Qe.encode(Ye.fromWordsUnsafe(e)),6:Do,24:Do,3:iy,5:ly};function oy(e){return t=>({tagCode:parseInt(e),words:Ye.encode("unknown",t,Number.MAX_SAFE_INTEGER)})}function Do(e){return e.reverse().reduce((t,n,r)=>t+n*Math.pow(32,r),0)}function iy(e){const t=[];let n,r,o,i,l,s=Ye.fromWordsUnsafe(e);for(;s.length>0;)n=Qe.encode(s.slice(0,33)),r=Qe.encode(s.slice(33,41)),o=parseInt(Qe.encode(s.slice(41,45)),16),i=parseInt(Qe.encode(s.slice(45,49)),16),l=parseInt(Qe.encode(s.slice(49,51)),16),s=s.slice(51),t.push({pubkey:n,short_channel_id:r,fee_base_msat:o,fee_proportional_millionths:i,cltv_expiry_delta:l});return t}function ly(e){const t=e.slice().reverse().map(o=>[!!(o&1),!!(o&2),!!(o&4),!!(o&8),!!(o&16)]).reduce((o,i)=>o.concat(i),[]);for(;t.length{let l;t[i*2]?l="required":t[i*2+1]?l="supported":l="unsupported",n[o]=l});const r=t.slice(Vr.length*2);return n.extra_bits={start_bit:Vr.length*2,bits:r,has_required:r.reduce((o,i,l)=>l%2!==0?o||!1:o||i,!1)},n}function Zf(e,t){let n,r;if(e.slice(-1).match(/^[munp]$/))n=e.slice(-1),r=e.slice(0,-1);else{if(e.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");r=e}if(!r.match(/^\d+$/))throw new Error("Not a valid human readable amount");const o=BigInt(r),i=n?o*su/ty[n]:o*su;if(n==="p"&&o%BigInt(10)!==BigInt(0)||i>ny)throw new Error("Amount is outside of valid range");return t?i.toString():i}function sy(e,t){if(typeof e!="string")throw new Error("Lightning Payment Request must be string");if(e.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const n=[],r=Ye.decode(e,Number.MAX_SAFE_INTEGER);e=e.toLowerCase();const o=r.prefix;let i=r.words,l=e.slice(o.length+1),s=i.slice(-104);i=i.slice(0,-104);let a=o.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(a&&!a[2]&&(a=o.match(/^ln(\S+)$/)),!a)throw new Error("Not a proper lightning payment request");n.push({name:"lightning_network",letters:"ln"});const c=a[1];let p;if(t){if(t.bech32===void 0||t.pubKeyHash===void 0||t.scriptHash===void 0||!Array.isArray(t.validWitnessVersions))throw new Error("Invalid network");p=t}else switch(c){case ru.bech32:p=ru;break;case ou.bech32:p=ou;break;case iu.bech32:p=iu;break;case lu.bech32:p=lu;break}if(!p||p.bech32!==c)throw new Error("Unknown coin bech32 prefix");n.push({name:"coin_network",letters:c,value:p});const h=a[2];let y;if(h){const w=a[3];y=Zf(h+w,!0),n.push({name:"amount",letters:a[2]+a[3],value:y})}else y=null;n.push({name:"separator",letters:"1"});const S=Do(i.slice(0,7));i=i.slice(7),n.push({name:"timestamp",letters:l.slice(0,7),value:S}),l=l.slice(7);let g,x,L,d;for(;i.length>0;){const w=i[0].toString();g=Yf[w]||"unknown_tag",x=ry[w]||oy(w),i=i.slice(1),L=Do(i.slice(0,2)),i=i.slice(2),d=i.slice(0,L),i=i.slice(L),n.push({name:g,tag:l[0],letters:l.slice(0,1+2+L),value:x(d)}),l=l.slice(1+2+L)}n.push({name:"signature",letters:l.slice(0,104),value:Qe.encode(Ye.fromWordsUnsafe(s))}),l=l.slice(104),n.push({name:"checksum",letters:l});let u={paymentRequest:e,sections:n,get expiry(){let w=n.find(C=>C.name==="expiry");if(w)return f("timestamp")+w.value},get route_hints(){return n.filter(w=>w.name==="route_hint").map(w=>w.value)}};for(let w in Al)w!=="route_hint"&&Object.defineProperty(u,w,{get(){return f(w)}});return u;function f(w){let C=n.find(A=>A.name===w);return C?C.value:void 0}}var ay={decode:sy,hrpToMillisat:Zf};const uy=async(e,t)=>{let{boost:n,amount:r}=e;t||(t={});const o=t.webln||globalThis.webln;r||(r=Math.floor(n.value_msat/1e3));let i={destination:e.destination,amount:r,customRecords:{7629169:JSON.stringify(n)}};return e.customKey&&e.customValue&&(i.customRecords[e.customKey]=e.customValue),await o.enable(),await o.keysend(i)};function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t!!e&&cy.test(e),uu=({amount:e,min:t,max:n})=>{const r=e>0&&e>=t&&e<=n;return r&&t===n?e===t:r};class fy{constructor(t){var n,r;this.paymentRequest=void 0,this.paymentHash=void 0,this.preimage=void 0,this.verify=void 0,this.paymentRequest=t.pr,this.paymentHash=(o=>{if(!o)return null;try{const i=ay.decode(o);if(!i||!i.sections)return null;const l=i.sections.find(s=>s.name==="payment_hash");return l&&l.value?l.value.toString():null}catch{return null}})(this.paymentRequest),this.verify=(n=t.verify)!=null?n:null,this.preimage=(r=t.preimage)!=null?r:null}async isPaid(){if(this.preimage)return this.validatePreimage(this.preimage);if(this.verify)return await this.verifyPayment();throw new Error("Could not verify payment")}validatePreimage(t){if(!t||!this.paymentHash)return!1;try{const n=zo(xr.parse(t)).toString(xr);return this.paymentHash===n}catch{return!1}}async verifyPayment(){if(!this.verify)throw new Error("LNURL verify not available");const t=await Bt(this.verify),n=await t.json();return n.preimage&&(this.preimage=n.preimage),n.settled}}async function dy({satoshi:e,comment:t,p:n,e:r,relays:o},i={}){const l=i.nostr||globalThis.nostr;if(!l)throw new Error("nostr option or window.nostr is not available");const s=[["relays",...o],["amount",e.toString()]];n&&s.push(["p",n]),r&&s.push(["e",r]);const a={pubkey:await l.getPublicKey(),created_at:Math.floor(Date.now()/1e3),kind:9734,tags:s,content:t??""};return a.id=my(a),await l.signEvent(a)}function py(e){if(typeof e.content!="string"||typeof e.created_at!="number"||!Array.isArray(e.tags))return!1;for(let t=0;t()\[\]\\.,;:\s@"]+(?:\.[^<>()\[\]\\.,;:\s@"]+)*)|(?:".+"))@((?:\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(?:(?:[a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;class vy{constructor(t,n){this.address=void 0,this.options=void 0,this.username=void 0,this.domain=void 0,this.pubkey=void 0,this.lnurlpData=void 0,this.keysendData=void 0,this.nostrData=void 0,this.nostrPubkey=void 0,this.nostrRelays=void 0,this.webln=void 0,this.address=t,this.options={proxy:"https://lnaddressproxy.getalby.com",webln:globalThis.webln},this.options=Object.assign(this.options,n),this.parse(),this.webln=this.options.webln}parse(){const t=gy.exec(this.address.toLowerCase());t&&(this.username=t[1],this.domain=t[2])}async fetch(){return this.options.proxy?this.fetchWithProxy():this.fetchWithoutProxy()}async fetchWithProxy(){const t=await Bt(`${this.options.proxy}/lightning-address-details?${new URLSearchParams({ln:this.address}).toString()}`),n=await t.json();this.parseResponse(n.lnurlp,n.keysend,n.nostr)}async fetchWithoutProxy(){if(!this.domain||!this.username)return;const t=await Bt(this.lnurlpUrl()),n=await Bt(this.keysendUrl()),r=await Bt(this.nostrUrl());let o,i,l;t.ok&&(o=await t.json()),n.ok&&(i=await n.json()),r.ok&&(l=await r.json()),this.parseResponse(o,i,l)}lnurlpUrl(){return`https://${this.domain}/.well-known/lnurlp/${this.username}`}keysendUrl(){return`https://${this.domain}/.well-known/keysend/${this.username}`}nostrUrl(){return`https://${this.domain}/.well-known/nostr.json?name=${this.username}`}async generateInvoice(t){let n;if(this.options.proxy)n=(await(await Bt(`${this.options.proxy}/generate-invoice?${new URLSearchParams(Ll({ln:this.address},t)).toString()}`)).json()).invoice;else{if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");if(!this.lnurlpData.callback||!au(this.lnurlpData.callback))throw new Error("Valid callback does not exist in lnurlpData");const i=new URL(this.lnurlpData.callback);i.search=new URLSearchParams(t).toString(),n=await(await Bt(i)).json()}const r=n&&n.pr&&n.pr.toString();if(!r)throw new Error("Invalid pay service invoice");const o={pr:r};return n&&n.verify&&(o.verify=n.verify.toString()),new fy(o)}async requestInvoice(t){if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");const n=1e3*t.satoshi,{commentAllowed:r,min:o,max:i}=this.lnurlpData;if(!uu({amount:n,min:o,max:i}))throw new Error("Invalid amount");if(t.comment&&r&&r>0&&t.comment.length>r)throw new Error(`The comment length must be ${r} characters or fewer`);const l={amount:n.toString()};return t.comment&&(l.comment=t.comment),t.payerdata&&(l.payerdata=JSON.stringify(t.payerdata)),this.generateInvoice(l)}async boost(t,n=0){if(!this.keysendData)throw new Error("No keysendData available. Please call fetch() first.");const{destination:r,customKey:o,customValue:i}=this.keysendData;return uy({destination:r,customKey:o,customValue:i,amount:n,boost:t},{webln:this.webln})}async zapInvoice({satoshi:t,comment:n,relays:r,e:o},i={}){if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");if(!this.nostrPubkey)throw new Error("Nostr Pubkey is missing");const l=this.nostrPubkey,s=1e3*t,{allowsNostr:a,min:c,max:p}=this.lnurlpData;if(!uu({amount:s,min:c,max:p}))throw new Error("Invalid amount");if(!a)throw new Error("Your provider does not support zaps");const h=await dy({satoshi:s,comment:n,p:l,e:o,relays:r},i),y={amount:s.toString(),nostr:JSON.stringify(h)};return await this.generateInvoice(y)}async zap(t,n={}){const r=this.zapInvoice(t,n);if(!this.webln)throw new Error("WebLN not available");return await this.webln.enable(),this.webln.sendPayment((await r).paymentRequest)}parseResponse(t,n,r){t&&(this.lnurlpData=(o=>{if(o.tag!=="payRequest")throw new Error("Invalid pay service params");const i=(o.callback+"").trim();if(!au(i))throw new Error("Callback must be a valid url");const l=Math.ceil(Number(o.minSendable||0)),s=Math.floor(Number(o.maxSendable));if(!l||!s||l>s)throw new Error("Invalid pay service params");let a,c;try{a=JSON.parse(o.metadata+""),c=zo(o.metadata+"").toString(xr)}catch{a=[],c=zo("[]").toString(xr)}let p="",h="",y="";for(let x=0;x{if(o.tag!=="keysend")throw new Error("Invalid keysend params");if(o.status!=="OK")throw new Error("Keysend status not OK");if(!("customKey"in o.customData[0])||o.customData[0].customKey!="696969")throw new Error("Unable to find customKey");if(!("customValue"in o.customData[0])||!o.customData[0].customValue)throw new Error("Unable to find customValue");if(!o.pubkey)throw new Error("Pubkey does not exist");return{destination:o.pubkey,customKey:o.customData[0].customKey,customValue:o.customData[0].customValue}})(n)),r&&([this.nostrData,this.nostrPubkey,this.nostrRelays]=yy(r,this.username))}}const wy=({lnurl:e,expanded:t=!1})=>{const[n,r]=te.useState(!1),[o,i]=te.useState(!1),[l,s]=te.useState(0),[a,c]=te.useState(!1),[p,h]=te.useState(!1),[y,S]=te.useState(),[g,x]=te.useState(),[L,d]=te.useState(t),[u,f]=te.useState(0),w=async()=>{i(!0);try{const j=window.webln;if(!j)throw new Error("WebLN is missing");await j.enable();const z=await j.lnurl(e);z&&(console.log(z),c(!0))}catch(j){j instanceof Error&&(j.message!=="Prompt was closed"&&j.message!=="User rejected"&&r(!0),console.error(j.message))}finally{i(!1),h(!1)}},C=async j=>{if(i(!0),!j)return;const z=await new vy(e).generateInvoice({amount:(j*1e3).toString()});try{const b=window.webln;if(!b)throw new Error("WebLN is missing");await b.enable(),await b.sendPayment(z.paymentRequest)&&(s(j),c(!0))}catch(b){b instanceof Error&&(f(0),console.error(b.message),b.message!=="Prompt was closed"&&b.message!=="User rejected"&&r(!0))}finally{i(!1)}},A=u/1e3;return Le.jsxs("button",{id:"alby-boost-button",className:`${!n&&!u&&!a?"alby-ripple-shadow":"alby-normal-shadow"} ${n?"alby-disabled-boost":"alby-boost"}`,onClick:()=>{o||n||a||p||(y&&clearTimeout(y),g&&clearTimeout(g),S(window.setTimeout(()=>{C(u+1e3)},1e3)),f(u+1e3))},onMouseDown:()=>{o||n||a||p||o||x(window.setTimeout(()=>{h(!0),f(0),w()},2e3))},onMouseOver:()=>!L&&d(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(t),children:[Le.jsx("style",{children:` + */var eu;function Qm(){if(eu)return $n;eu=1;var e=Su,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function l(s,a,c){var p,h={},y=null,S=null;c!==void 0&&(y=""+c),a.key!==void 0&&(y=""+a.key),a.ref!==void 0&&(S=a.ref);for(p in a)r.call(a,p)&&!i.hasOwnProperty(p)&&(h[p]=a[p]);if(s&&s.defaultProps)for(p in a=s.defaultProps,a)h[p]===void 0&&(h[p]=a[p]);return{$$typeof:t,type:s,key:y,ref:S,props:h,_owner:o.current}}return $n.Fragment=n,$n.jsx=l,$n.jsxs=l,$n}Kf.exports=Qm();var Le=Kf.exports,Ol={exports:{}};(function(e,t){var n=typeof self<"u"?self:Wt,r=function(){function i(){this.fetch=!1,this.DOMException=n.DOMException}return i.prototype=n,new i}();(function(i){(function(l){var s={searchParams:"URLSearchParams"in i,iterable:"Symbol"in i&&"iterator"in Symbol,blob:"FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in i,arrayBuffer:"ArrayBuffer"in i};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(s.arrayBuffer)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],p=ArrayBuffer.isView||function(m){return m&&c.indexOf(Object.prototype.toString.call(m))>-1};function h(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function y(m){return typeof m!="string"&&(m=String(m)),m}function S(m){var E={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return s.iterable&&(E[Symbol.iterator]=function(){return E}),E}function v(m){this.map={},m instanceof v?m.forEach(function(E,R){this.append(R,E)},this):Array.isArray(m)?m.forEach(function(E){this.append(E[0],E[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(E){this.append(E,m[E])},this)}v.prototype.append=function(m,E){m=h(m),E=y(E);var R=this.map[m];this.map[m]=R?R+", "+E:E},v.prototype.delete=function(m){delete this.map[h(m)]},v.prototype.get=function(m){return m=h(m),this.has(m)?this.map[m]:null},v.prototype.has=function(m){return this.map.hasOwnProperty(h(m))},v.prototype.set=function(m,E){this.map[h(m)]=y(E)},v.prototype.forEach=function(m,E){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(E,this.map[R],R,this)},v.prototype.keys=function(){var m=[];return this.forEach(function(E,R){m.push(R)}),S(m)},v.prototype.values=function(){var m=[];return this.forEach(function(E){m.push(E)}),S(m)},v.prototype.entries=function(){var m=[];return this.forEach(function(E,R){m.push([R,E])}),S(m)},s.iterable&&(v.prototype[Symbol.iterator]=v.prototype.entries);function x(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function L(m){return new Promise(function(E,R){m.onload=function(){E(m.result)},m.onerror=function(){R(m.error)}})}function d(m){var E=new FileReader,R=L(E);return E.readAsArrayBuffer(m),R}function u(m){var E=new FileReader,R=L(E);return E.readAsText(m),R}function f(m){for(var E=new Uint8Array(m),R=new Array(E.length),U=0;U-1?E:m}function z(m,E){E=E||{};var R=E.body;if(m instanceof z){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,E.headers||(this.headers=new v(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!R&&m._bodyInit!=null&&(R=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=E.credentials||this.credentials||"same-origin",(E.headers||!this.headers)&&(this.headers=new v(E.headers)),this.method=j(E.method||this.method||"GET"),this.mode=E.mode||this.mode||null,this.signal=E.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&R)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(R)}z.prototype.clone=function(){return new z(this,{body:this._bodyInit})};function b(m){var E=new FormData;return m.trim().split("&").forEach(function(R){if(R){var U=R.split("="),T=U.shift().replace(/\+/g," "),D=U.join("=").replace(/\+/g," ");E.append(decodeURIComponent(T),decodeURIComponent(D))}}),E}function B(m){var E=new v,R=m.replace(/\r?\n[\t ]+/g," ");return R.split(/\r?\n/).forEach(function(U){var T=U.split(":"),D=T.shift().trim();if(D){var M=T.join(":").trim();E.append(D,M)}}),E}C.call(z.prototype);function k(m,E){E||(E={}),this.type="default",this.status=E.status===void 0?200:E.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in E?E.statusText:"OK",this.headers=new v(E.headers),this.url=E.url||"",this._initBody(m)}C.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},k.error=function(){var m=new k(null,{status:0,statusText:""});return m.type="error",m};var _=[301,302,303,307,308];k.redirect=function(m,E){if(_.indexOf(E)===-1)throw new RangeError("Invalid status code");return new k(null,{status:E,headers:{location:m}})},l.DOMException=i.DOMException;try{new l.DOMException}catch{l.DOMException=function(m,E){this.message=m,this.name=E;var R=Error(m);this.stack=R.stack},l.DOMException.prototype=Object.create(Error.prototype),l.DOMException.prototype.constructor=l.DOMException}function P(m,E){return new Promise(function(R,U){var T=new z(m,E);if(T.signal&&T.signal.aborted)return U(new l.DOMException("Aborted","AbortError"));var D=new XMLHttpRequest;function M(){D.abort()}D.onload=function(){var I={status:D.status,statusText:D.statusText,headers:B(D.getAllResponseHeaders()||"")};I.url="responseURL"in D?D.responseURL:I.headers.get("X-Request-URL");var $="response"in D?D.response:D.responseText;R(new k($,I))},D.onerror=function(){U(new TypeError("Network request failed"))},D.ontimeout=function(){U(new TypeError("Network request failed"))},D.onabort=function(){U(new l.DOMException("Aborted","AbortError"))},D.open(T.method,T.url,!0),T.credentials==="include"?D.withCredentials=!0:T.credentials==="omit"&&(D.withCredentials=!1),"responseType"in D&&s.blob&&(D.responseType="blob"),T.headers.forEach(function(I,$){D.setRequestHeader($,I)}),T.signal&&(T.signal.addEventListener("abort",M),D.onreadystatechange=function(){D.readyState===4&&T.signal.removeEventListener("abort",M)}),D.send(typeof T._bodyInit>"u"?null:T._bodyInit)})}return P.polyfill=!0,i.fetch||(i.fetch=P,i.Headers=v,i.Request=z,i.Response=k),l.Headers=v,l.Request=z,l.Response=k,l.fetch=P,Object.defineProperty(l,"__esModule",{value:!0}),l})({})})(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var o=r;t=o.fetch,t.default=o.fetch,t.fetch=o.fetch,t.Headers=o.Headers,t.Request=o.Request,t.Response=o.Response,e.exports=t})(Ol,Ol.exports);var Km=Ol.exports;const Mt=Ls(Km);var qf={exports:{}};function qm(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var tu={exports:{}};const Jm={},Gm=Object.freeze(Object.defineProperty({__proto__:null,default:Jm},Symbol.toStringTag,{value:"Module"})),Xm=Vm(Gm);var nu;function Jf(){return nu||(nu=1,function(e,t){(function(n,r){e.exports=r()})(Wt,function(){var n=n||function(r,o){var i;if(typeof window<"u"&&window.crypto&&(i=window.crypto),typeof self<"u"&&self.crypto&&(i=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(i=globalThis.crypto),!i&&typeof window<"u"&&window.msCrypto&&(i=window.msCrypto),!i&&typeof Wt<"u"&&Wt.crypto&&(i=Wt.crypto),!i&&typeof qm=="function")try{i=Xm}catch{}var l=function(){if(i){if(typeof i.getRandomValues=="function")try{return i.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof i.randomBytes=="function")try{return i.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function u(){}return function(f){var w;return u.prototype=f,w=new u,u.prototype=null,w}}(),a={},c=a.lib={},p=c.Base=function(){return{extend:function(u){var f=s(this);return u&&f.mixIn(u),(!f.hasOwnProperty("init")||this.init===f.init)&&(f.init=function(){f.$super.init.apply(this,arguments)}),f.init.prototype=f,f.$super=this,f},create:function(){var u=this.extend();return u.init.apply(u,arguments),u},init:function(){},mixIn:function(u){for(var f in u)u.hasOwnProperty(f)&&(this[f]=u[f]);u.hasOwnProperty("toString")&&(this.toString=u.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),h=c.WordArray=p.extend({init:function(u,f){u=this.words=u||[],f!=o?this.sigBytes=f:this.sigBytes=u.length*4},toString:function(u){return(u||S).stringify(this)},concat:function(u){var f=this.words,w=u.words,C=this.sigBytes,A=u.sigBytes;if(this.clamp(),C%4)for(var j=0;j>>2]>>>24-j%4*8&255;f[C+j>>>2]|=z<<24-(C+j)%4*8}else for(var b=0;b>>2]=w[b>>>2];return this.sigBytes+=A,this},clamp:function(){var u=this.words,f=this.sigBytes;u[f>>>2]&=4294967295<<32-f%4*8,u.length=r.ceil(f/4)},clone:function(){var u=p.clone.call(this);return u.words=this.words.slice(0),u},random:function(u){for(var f=[],w=0;w>>2]>>>24-A%4*8&255;C.push((j>>>4).toString(16)),C.push((j&15).toString(16))}return C.join("")},parse:function(u){for(var f=u.length,w=[],C=0;C>>3]|=parseInt(u.substr(C,2),16)<<24-C%8*4;return new h.init(w,f/2)}},v=y.Latin1={stringify:function(u){for(var f=u.words,w=u.sigBytes,C=[],A=0;A>>2]>>>24-A%4*8&255;C.push(String.fromCharCode(j))}return C.join("")},parse:function(u){for(var f=u.length,w=[],C=0;C>>2]|=(u.charCodeAt(C)&255)<<24-C%4*8;return new h.init(w,f)}},x=y.Utf8={stringify:function(u){try{return decodeURIComponent(escape(v.stringify(u)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(u){return v.parse(unescape(encodeURIComponent(u)))}},L=c.BufferedBlockAlgorithm=p.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(u){typeof u=="string"&&(u=x.parse(u)),this._data.concat(u),this._nDataBytes+=u.sigBytes},_process:function(u){var f,w=this._data,C=w.words,A=w.sigBytes,j=this.blockSize,z=j*4,b=A/z;u?b=r.ceil(b):b=r.max((b|0)-this._minBufferSize,0);var B=b*j,k=r.min(B*4,A);if(B){for(var _=0;_>>7)^(b<<14|b>>>18)^b>>>3,k=h[z-2],_=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;h[z]=B+h[z-7]+_+h[z-16]}var P=w&C^~w&A,m=L&d^L&u^d&u,E=(L<<30|L>>>2)^(L<<19|L>>>13)^(L<<10|L>>>22),R=(w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25),U=j+R+P+p[z]+h[z],T=E+m;j=A,A=C,C=w,w=f+U|0,f=u,u=d,d=L,L=U+T|0}x[0]=x[0]+L|0,x[1]=x[1]+d|0,x[2]=x[2]+u|0,x[3]=x[3]+f|0,x[4]=x[4]+w|0,x[5]=x[5]+C|0,x[6]=x[6]+A|0,x[7]=x[7]+j|0},_doFinalize:function(){var S=this._data,v=S.words,x=this._nDataBytes*8,L=S.sigBytes*8;return v[L>>>5]|=128<<24-L%32,v[(L+64>>>9<<4)+14]=r.floor(x/4294967296),v[(L+64>>>9<<4)+15]=x,S.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var S=s.clone.call(this);return S._hash=this._hash.clone(),S}});o.SHA256=s._createHelper(y),o.HmacSHA256=s._createHmacHelper(y)}(Math),n.SHA256})})(Gf);var Zm=Gf.exports;const zo=Ls(Zm);var Xf={};(function(e){/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */Object.defineProperty(e,"__esModule",{value:!0}),e.bytes=e.stringToBytes=e.str=e.bytesToString=e.hex=e.utf8=e.bech32m=e.bech32=e.base58check=e.base58xmr=e.base58xrp=e.base58flickr=e.base58=e.base64url=e.base64=e.base32crockford=e.base32hex=e.base32=e.base16=e.utils=e.assertNumber=void 0;function t(k){if(!Number.isSafeInteger(k))throw new Error(`Wrong integer: ${k}`)}e.assertNumber=t;function n(...k){const _=(E,R)=>U=>E(R(U)),P=Array.from(k).reverse().reduce((E,R)=>E?_(E,R.encode):R.encode,void 0),m=k.reduce((E,R)=>E?_(E,R.decode):R.decode,void 0);return{encode:P,decode:m}}function r(k){return{encode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="number")throw new Error("alphabet.encode input should be an array of numbers");return _.map(P=>{if(t(P),P<0||P>=k.length)throw new Error(`Digit index outside alphabet: ${P} (alphabet: ${k.length})`);return k[P]})},decode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="string")throw new Error("alphabet.decode input should be array of strings");return _.map(P=>{if(typeof P!="string")throw new Error(`alphabet.decode: not string element=${P}`);const m=k.indexOf(P);if(m===-1)throw new Error(`Unknown letter: "${P}". Allowed: ${k}`);return m})}}}function o(k=""){if(typeof k!="string")throw new Error("join separator should be string");return{encode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="string")throw new Error("join.encode input should be array of strings");for(let P of _)if(typeof P!="string")throw new Error(`join.encode: non-string input=${P}`);return _.join(k)},decode:_=>{if(typeof _!="string")throw new Error("join.decode input should be string");return _.split(k)}}}function i(k,_="="){if(t(k),typeof _!="string")throw new Error("padding chr should be string");return{encode(P){if(!Array.isArray(P)||P.length&&typeof P[0]!="string")throw new Error("padding.encode input should be array of strings");for(let m of P)if(typeof m!="string")throw new Error(`padding.encode: non-string input=${m}`);for(;P.length*k%8;)P.push(_);return P},decode(P){if(!Array.isArray(P)||P.length&&typeof P[0]!="string")throw new Error("padding.encode input should be array of strings");for(let E of P)if(typeof E!="string")throw new Error(`padding.decode: non-string input=${E}`);let m=P.length;if(m*k%8)throw new Error("Invalid padding: string should have whole number of bytes");for(;m>0&&P[m-1]===_;m--)if(!((m-1)*k%8))throw new Error("Invalid padding: string has too much padding");return P.slice(0,m)}}}function l(k){if(typeof k!="function")throw new Error("normalize fn should be function");return{encode:_=>_,decode:_=>k(_)}}function s(k,_,P){if(_<2)throw new Error(`convertRadix: wrong from=${_}, base cannot be less than 2`);if(P<2)throw new Error(`convertRadix: wrong to=${P}, base cannot be less than 2`);if(!Array.isArray(k))throw new Error("convertRadix: data should be array");if(!k.length)return[];let m=0;const E=[],R=Array.from(k);for(R.forEach(U=>{if(t(U),U<0||U>=_)throw new Error(`Wrong integer: ${U}`)});;){let U=0,T=!0;for(let D=m;D_?a(_,k%_):k,c=(k,_)=>k+(_-a(k,_));function p(k,_,P,m){if(!Array.isArray(k))throw new Error("convertRadix2: data should be array");if(_<=0||_>32)throw new Error(`convertRadix2: wrong from=${_}`);if(P<=0||P>32)throw new Error(`convertRadix2: wrong to=${P}`);if(c(_,P)>32)throw new Error(`convertRadix2: carry overflow from=${_} to=${P} carryBits=${c(_,P)}`);let E=0,R=0;const U=2**P-1,T=[];for(const D of k){if(t(D),D>=2**_)throw new Error(`convertRadix2: invalid data word=${D} from=${_}`);if(E=E<<_|D,R+_>32)throw new Error(`convertRadix2: carry overflow pos=${R} from=${_}`);for(R+=_;R>=P;R-=P)T.push((E>>R-P&U)>>>0);E&=2**R-1}if(E=E<=_)throw new Error("Excess padding");if(!m&&E)throw new Error(`Non-zero padding: ${E}`);return m&&R>0&&T.push(E>>>0),T}function h(k){return t(k),{encode:_=>{if(!(_ instanceof Uint8Array))throw new Error("radix.encode input should be Uint8Array");return s(Array.from(_),2**8,k)},decode:_=>{if(!Array.isArray(_)||_.length&&typeof _[0]!="number")throw new Error("radix.decode input should be array of strings");return Uint8Array.from(s(_,k,2**8))}}}function y(k,_=!1){if(t(k),k<=0||k>32)throw new Error("radix2: bits should be in (0..32]");if(c(8,k)>32||c(k,8)>32)throw new Error("radix2: carry overflow");return{encode:P=>{if(!(P instanceof Uint8Array))throw new Error("radix2.encode input should be Uint8Array");return p(Array.from(P),8,k,!_)},decode:P=>{if(!Array.isArray(P)||P.length&&typeof P[0]!="number")throw new Error("radix2.decode input should be array of strings");return Uint8Array.from(p(P,k,8,_))}}}function S(k){if(typeof k!="function")throw new Error("unsafeWrapper fn should be function");return function(..._){try{return k.apply(null,_)}catch{}}}function v(k,_){if(t(k),typeof _!="function")throw new Error("checksum fn should be function");return{encode(P){if(!(P instanceof Uint8Array))throw new Error("checksum.encode: input should be Uint8Array");const m=_(P).slice(0,k),E=new Uint8Array(P.length+k);return E.set(P),E.set(m,P.length),E},decode(P){if(!(P instanceof Uint8Array))throw new Error("checksum.decode: input should be Uint8Array");const m=P.slice(0,-k),E=_(m).slice(0,k),R=P.slice(-k);for(let U=0;Uk.toUpperCase().replace(/O/g,"0").replace(/[IL]/g,"1"))),e.base64=n(y(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"),i(6),o("")),e.base64url=n(y(6),r("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"),i(6),o(""));const x=k=>n(h(58),r(k),o(""));e.base58=x("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),e.base58flickr=x("123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"),e.base58xrp=x("rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz");const L=[0,2,3,5,6,7,9,10,11];e.base58xmr={encode(k){let _="";for(let P=0;Pn(v(4,_=>k(k(_))),e.base58);e.base58check=d;const u=n(r("qpzry9x8gf2tvdw0s3jn54khce6mua7l"),o("")),f=[996825010,642813549,513874426,1027748829,705979059];function w(k){const _=k>>25;let P=(k&33554431)<<5;for(let m=0;m>m&1)===1&&(P^=f[m]);return P}function C(k,_,P=1){const m=k.length;let E=1;for(let R=0;R126)throw new Error(`Invalid prefix (${k})`);E=w(E)^U>>5}E=w(E);for(let R=0;RSe)throw new TypeError(`Length ${ye} exceeds limit ${Se}`);return I=I.toLowerCase(),`${I}1${u.encode($)}${C(I,$,_)}`}function T(I,$=90){if(typeof I!="string")throw new Error(`bech32.decode input should be string, not ${typeof I}`);if(I.length<8||$!==!1&&I.length>$)throw new TypeError(`Wrong string length: ${I.length} (${I}). Expected (8..${$})`);const Se=I.toLowerCase();if(I!==Se&&I!==I.toUpperCase())throw new Error("String must be lowercase or uppercase");I=Se;const ye=I.lastIndexOf("1");if(ye===0||ye===-1)throw new Error('Letter "1" must be present between prefix and data only');const en=I.slice(0,ye),Be=I.slice(ye+1);if(Be.length<6)throw new Error("Data must be at least 6 characters long");const It=u.decode(Be).slice(0,-6),zs=C(en,It,_);if(!Be.endsWith(zs))throw new Error(`Invalid checksum in ${I}: expected "${zs}"`);return{prefix:en,words:It}}const D=S(T);function M(I){const{prefix:$,words:Se}=T(I,!1);return{prefix:$,words:Se,bytes:m(Se)}}return{encode:U,decode:T,decodeToBytes:M,decodeUnsafe:D,fromWords:m,fromWordsUnsafe:R,toWords:E}}e.bech32=A("bech32"),e.bech32m=A("bech32m"),e.utf8={encode:k=>new TextDecoder().decode(k),decode:k=>new TextEncoder().encode(k)},e.hex=n(y(4),r("0123456789abcdef"),o(""),l(k=>{if(typeof k!="string"||k.length%2)throw new TypeError(`hex.decode: expected string, got ${typeof k} with length ${k.length}`);return k.toLowerCase()}));const j={utf8:e.utf8,hex:e.hex,base16:e.base16,base32:e.base32,base64:e.base64,base64url:e.base64url,base58:e.base58,base58xmr:e.base58xmr},z=`Invalid encoding type. Available types: ${Object.keys(j).join(", ")}`,b=(k,_)=>{if(typeof k!="string"||!j.hasOwnProperty(k))throw new TypeError(z);if(!(_ instanceof Uint8Array))throw new TypeError("bytesToString() expects Uint8Array");return j[k].encode(_)};e.bytesToString=b,e.str=e.bytesToString;const B=(k,_)=>{if(!j.hasOwnProperty(k))throw new TypeError(z);if(typeof _!="string")throw new TypeError("stringToBytes() expects string");return j[k].decode(_)};e.stringToBytes=B,e.bytes=e.stringToBytes})(Xf);const{bech32:Ye,hex:Qe,utf8:ey}=Xf,ru={bech32:"bc",pubKeyHash:0,scriptHash:5,validWitnessVersions:[0]},ou={bech32:"tb",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},iu={bech32:"bcrt",pubKeyHash:111,scriptHash:196,validWitnessVersions:[0]},lu={bech32:"sb",pubKeyHash:63,scriptHash:123,validWitnessVersions:[0]},Vr=["option_data_loss_protect","initial_routing_sync","option_upfront_shutdown_script","gossip_queries","var_onion_optin","gossip_queries_ex","option_static_remotekey","payment_secret","basic_mpp","option_support_large_channel"],ty={m:BigInt(1e3),u:BigInt(1e6),n:BigInt(1e9),p:BigInt(1e12)},ny=BigInt("2100000000000000000"),su=BigInt(1e11),Al={payment_hash:1,payment_secret:16,description:13,payee:19,description_hash:23,expiry:6,min_final_cltv_expiry:24,fallback_address:9,route_hint:3,feature_bits:5,metadata:27},Yf={};for(let e=0,t=Object.keys(Al);eQe.encode(Ye.fromWordsUnsafe(e)),16:e=>Qe.encode(Ye.fromWordsUnsafe(e)),13:e=>ey.encode(Ye.fromWordsUnsafe(e)),19:e=>Qe.encode(Ye.fromWordsUnsafe(e)),23:e=>Qe.encode(Ye.fromWordsUnsafe(e)),27:e=>Qe.encode(Ye.fromWordsUnsafe(e)),6:Do,24:Do,3:iy,5:ly};function oy(e){return t=>({tagCode:parseInt(e),words:Ye.encode("unknown",t,Number.MAX_SAFE_INTEGER)})}function Do(e){return e.reverse().reduce((t,n,r)=>t+n*Math.pow(32,r),0)}function iy(e){const t=[];let n,r,o,i,l,s=Ye.fromWordsUnsafe(e);for(;s.length>0;)n=Qe.encode(s.slice(0,33)),r=Qe.encode(s.slice(33,41)),o=parseInt(Qe.encode(s.slice(41,45)),16),i=parseInt(Qe.encode(s.slice(45,49)),16),l=parseInt(Qe.encode(s.slice(49,51)),16),s=s.slice(51),t.push({pubkey:n,short_channel_id:r,fee_base_msat:o,fee_proportional_millionths:i,cltv_expiry_delta:l});return t}function ly(e){const t=e.slice().reverse().map(o=>[!!(o&1),!!(o&2),!!(o&4),!!(o&8),!!(o&16)]).reduce((o,i)=>o.concat(i),[]);for(;t.length{let l;t[i*2]?l="required":t[i*2+1]?l="supported":l="unsupported",n[o]=l});const r=t.slice(Vr.length*2);return n.extra_bits={start_bit:Vr.length*2,bits:r,has_required:r.reduce((o,i,l)=>l%2!==0?o||!1:o||i,!1)},n}function Zf(e,t){let n,r;if(e.slice(-1).match(/^[munp]$/))n=e.slice(-1),r=e.slice(0,-1);else{if(e.slice(-1).match(/^[^munp0-9]$/))throw new Error("Not a valid multiplier for the amount");r=e}if(!r.match(/^\d+$/))throw new Error("Not a valid human readable amount");const o=BigInt(r),i=n?o*su/ty[n]:o*su;if(n==="p"&&o%BigInt(10)!==BigInt(0)||i>ny)throw new Error("Amount is outside of valid range");return t?i.toString():i}function sy(e,t){if(typeof e!="string")throw new Error("Lightning Payment Request must be string");if(e.slice(0,2).toLowerCase()!=="ln")throw new Error("Not a proper lightning payment request");const n=[],r=Ye.decode(e,Number.MAX_SAFE_INTEGER);e=e.toLowerCase();const o=r.prefix;let i=r.words,l=e.slice(o.length+1),s=i.slice(-104);i=i.slice(0,-104);let a=o.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/);if(a&&!a[2]&&(a=o.match(/^ln(\S+)$/)),!a)throw new Error("Not a proper lightning payment request");n.push({name:"lightning_network",letters:"ln"});const c=a[1];let p;if(t){if(t.bech32===void 0||t.pubKeyHash===void 0||t.scriptHash===void 0||!Array.isArray(t.validWitnessVersions))throw new Error("Invalid network");p=t}else switch(c){case ru.bech32:p=ru;break;case ou.bech32:p=ou;break;case iu.bech32:p=iu;break;case lu.bech32:p=lu;break}if(!p||p.bech32!==c)throw new Error("Unknown coin bech32 prefix");n.push({name:"coin_network",letters:c,value:p});const h=a[2];let y;if(h){const w=a[3];y=Zf(h+w,!0),n.push({name:"amount",letters:a[2]+a[3],value:y})}else y=null;n.push({name:"separator",letters:"1"});const S=Do(i.slice(0,7));i=i.slice(7),n.push({name:"timestamp",letters:l.slice(0,7),value:S}),l=l.slice(7);let v,x,L,d;for(;i.length>0;){const w=i[0].toString();v=Yf[w]||"unknown_tag",x=ry[w]||oy(w),i=i.slice(1),L=Do(i.slice(0,2)),i=i.slice(2),d=i.slice(0,L),i=i.slice(L),n.push({name:v,tag:l[0],letters:l.slice(0,1+2+L),value:x(d)}),l=l.slice(1+2+L)}n.push({name:"signature",letters:l.slice(0,104),value:Qe.encode(Ye.fromWordsUnsafe(s))}),l=l.slice(104),n.push({name:"checksum",letters:l});let u={paymentRequest:e,sections:n,get expiry(){let w=n.find(C=>C.name==="expiry");if(w)return f("timestamp")+w.value},get route_hints(){return n.filter(w=>w.name==="route_hint").map(w=>w.value)}};for(let w in Al)w!=="route_hint"&&Object.defineProperty(u,w,{get(){return f(w)}});return u;function f(w){let C=n.find(A=>A.name===w);return C?C.value:void 0}}var ay={decode:sy,hrpToMillisat:Zf};const uy=async(e,t)=>{let{boost:n,amount:r}=e;t||(t={});const o=t.webln||globalThis.webln;r||(r=Math.floor(n.value_msat/1e3));let i={destination:e.destination,amount:r,customRecords:{7629169:JSON.stringify(n)}};return e.customKey&&e.customValue&&(i.customRecords[e.customKey]=e.customValue),await o.enable(),await o.keysend(i)};function Ll(){return Ll=Object.assign?Object.assign.bind():function(e){for(var t=1;t!!e&&cy.test(e),uu=({amount:e,min:t,max:n})=>{const r=e>0&&e>=t&&e<=n;return r&&t===n?e===t:r};class fy{constructor(t){var n,r;this.paymentRequest=void 0,this.paymentHash=void 0,this.preimage=void 0,this.verify=void 0,this.paymentRequest=t.pr,this.paymentHash=(o=>{if(!o)return null;try{const i=ay.decode(o);if(!i||!i.sections)return null;const l=i.sections.find(s=>s.name==="payment_hash");return l&&l.value?l.value.toString():null}catch{return null}})(this.paymentRequest),this.verify=(n=t.verify)!=null?n:null,this.preimage=(r=t.preimage)!=null?r:null}async isPaid(){if(this.preimage)return this.validatePreimage(this.preimage);if(this.verify)return await this.verifyPayment();throw new Error("Could not verify payment")}validatePreimage(t){if(!t||!this.paymentHash)return!1;try{const n=zo(xr.parse(t)).toString(xr);return this.paymentHash===n}catch{return!1}}async verifyPayment(){if(!this.verify)throw new Error("LNURL verify not available");const t=await Mt(this.verify),n=await t.json();return n.preimage&&(this.preimage=n.preimage),n.settled}}async function dy({satoshi:e,comment:t,p:n,e:r,relays:o},i={}){const l=i.nostr||globalThis.nostr;if(!l)throw new Error("nostr option or window.nostr is not available");const s=[["relays",...o],["amount",e.toString()]];n&&s.push(["p",n]),r&&s.push(["e",r]);const a={pubkey:await l.getPublicKey(),created_at:Math.floor(Date.now()/1e3),kind:9734,tags:s,content:t??""};return a.id=my(a),await l.signEvent(a)}function py(e){if(typeof e.content!="string"||typeof e.created_at!="number"||!Array.isArray(e.tags))return!1;for(let t=0;t()\[\]\\.,;:\s@"]+(?:\.[^<>()\[\]\\.,;:\s@"]+)*)|(?:".+"))@((?:\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(?:(?:[a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;class vy{constructor(t,n){this.address=void 0,this.options=void 0,this.username=void 0,this.domain=void 0,this.pubkey=void 0,this.lnurlpData=void 0,this.keysendData=void 0,this.nostrData=void 0,this.nostrPubkey=void 0,this.nostrRelays=void 0,this.webln=void 0,this.address=t,this.options={proxy:"https://lnaddressproxy.getalby.com",webln:globalThis.webln},this.options=Object.assign(this.options,n),this.parse(),this.webln=this.options.webln}parse(){const t=gy.exec(this.address.toLowerCase());t&&(this.username=t[1],this.domain=t[2])}async fetch(){return this.options.proxy?this.fetchWithProxy():this.fetchWithoutProxy()}async fetchWithProxy(){const t=await Mt(`${this.options.proxy}/lightning-address-details?${new URLSearchParams({ln:this.address}).toString()}`),n=await t.json();this.parseResponse(n.lnurlp,n.keysend,n.nostr)}async fetchWithoutProxy(){if(!this.domain||!this.username)return;const t=await Mt(this.lnurlpUrl()),n=await Mt(this.keysendUrl()),r=await Mt(this.nostrUrl());let o,i,l;t.ok&&(o=await t.json()),n.ok&&(i=await n.json()),r.ok&&(l=await r.json()),this.parseResponse(o,i,l)}lnurlpUrl(){return`https://${this.domain}/.well-known/lnurlp/${this.username}`}keysendUrl(){return`https://${this.domain}/.well-known/keysend/${this.username}`}nostrUrl(){return`https://${this.domain}/.well-known/nostr.json?name=${this.username}`}async generateInvoice(t){let n;if(this.options.proxy)n=(await(await Mt(`${this.options.proxy}/generate-invoice?${new URLSearchParams(Ll({ln:this.address},t)).toString()}`)).json()).invoice;else{if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");if(!this.lnurlpData.callback||!au(this.lnurlpData.callback))throw new Error("Valid callback does not exist in lnurlpData");const i=new URL(this.lnurlpData.callback);i.search=new URLSearchParams(t).toString(),n=await(await Mt(i)).json()}const r=n&&n.pr&&n.pr.toString();if(!r)throw new Error("Invalid pay service invoice");const o={pr:r};return n&&n.verify&&(o.verify=n.verify.toString()),new fy(o)}async requestInvoice(t){if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");const n=1e3*t.satoshi,{commentAllowed:r,min:o,max:i}=this.lnurlpData;if(!uu({amount:n,min:o,max:i}))throw new Error("Invalid amount");if(t.comment&&r&&r>0&&t.comment.length>r)throw new Error(`The comment length must be ${r} characters or fewer`);const l={amount:n.toString()};return t.comment&&(l.comment=t.comment),t.payerdata&&(l.payerdata=JSON.stringify(t.payerdata)),this.generateInvoice(l)}async boost(t,n=0){if(!this.keysendData)throw new Error("No keysendData available. Please call fetch() first.");const{destination:r,customKey:o,customValue:i}=this.keysendData;return uy({destination:r,customKey:o,customValue:i,amount:n,boost:t},{webln:this.webln})}async zapInvoice({satoshi:t,comment:n,relays:r,e:o},i={}){if(!this.lnurlpData)throw new Error("No lnurlpData available. Please call fetch() first.");if(!this.nostrPubkey)throw new Error("Nostr Pubkey is missing");const l=this.nostrPubkey,s=1e3*t,{allowsNostr:a,min:c,max:p}=this.lnurlpData;if(!uu({amount:s,min:c,max:p}))throw new Error("Invalid amount");if(!a)throw new Error("Your provider does not support zaps");const h=await dy({satoshi:s,comment:n,p:l,e:o,relays:r},i),y={amount:s.toString(),nostr:JSON.stringify(h)};return await this.generateInvoice(y)}async zap(t,n={}){const r=this.zapInvoice(t,n);if(!this.webln)throw new Error("WebLN not available");return await this.webln.enable(),this.webln.sendPayment((await r).paymentRequest)}parseResponse(t,n,r){t&&(this.lnurlpData=(o=>{if(o.tag!=="payRequest")throw new Error("Invalid pay service params");const i=(o.callback+"").trim();if(!au(i))throw new Error("Callback must be a valid url");const l=Math.ceil(Number(o.minSendable||0)),s=Math.floor(Number(o.maxSendable));if(!l||!s||l>s)throw new Error("Invalid pay service params");let a,c;try{a=JSON.parse(o.metadata+""),c=zo(o.metadata+"").toString(xr)}catch{a=[],c=zo("[]").toString(xr)}let p="",h="",y="";for(let x=0;x{if(o.tag!=="keysend")throw new Error("Invalid keysend params");if(o.status!=="OK")throw new Error("Keysend status not OK");if(!("customKey"in o.customData[0])||o.customData[0].customKey!="696969")throw new Error("Unable to find customKey");if(!("customValue"in o.customData[0])||!o.customData[0].customValue)throw new Error("Unable to find customValue");if(!o.pubkey)throw new Error("Pubkey does not exist");return{destination:o.pubkey,customKey:o.customData[0].customKey,customValue:o.customData[0].customValue}})(n)),r&&([this.nostrData,this.nostrPubkey,this.nostrRelays]=yy(r,this.username))}}const wy=({lnurl:e,expanded:t=!1})=>{const[n,r]=te.useState(!1),[o,i]=te.useState(!1),[l,s]=te.useState(0),[a,c]=te.useState(!1),[p,h]=te.useState(!1),[y,S]=te.useState(),[v,x]=te.useState(),[L,d]=te.useState(t),[u,f]=te.useState(0),w=async()=>{i(!0);try{const j=window.webln;if(!j)throw new Error("WebLN is missing");await j.enable();const z=await j.lnurl(e);z&&(console.log(z),c(!0))}catch(j){j instanceof Error&&(j.message!=="Prompt was closed"&&j.message!=="User rejected"&&r(!0),console.error(j.message))}finally{i(!1),h(!1)}},C=async j=>{if(i(!0),!j)return;const z=await new vy(e).generateInvoice({amount:(j*1e3).toString()});try{const b=window.webln;if(!b)throw new Error("WebLN is missing");await b.enable(),await b.sendPayment(z.paymentRequest)&&(s(j),c(!0))}catch(b){b instanceof Error&&(f(0),console.error(b.message),b.message!=="Prompt was closed"&&b.message!=="User rejected"&&r(!0))}finally{i(!1)}},A=u/1e3;return Le.jsxs("button",{id:"alby-boost-button",className:`${!n&&!u&&!a?"alby-ripple-shadow":"alby-normal-shadow"} ${n?"alby-disabled-boost":"alby-boost"}`,onClick:()=>{o||n||a||p||(y&&clearTimeout(y),v&&clearTimeout(v),S(window.setTimeout(()=>{C(u+1e3)},1e3)),f(u+1e3))},onMouseDown:()=>{o||n||a||p||o||x(window.setTimeout(()=>{h(!0),f(0),w()},2e3))},onMouseOver:()=>!L&&d(!0),onMouseEnter:()=>d(!0),onMouseLeave:()=>d(t),children:[Le.jsx("style",{children:` #alby-boost-button { border: none; background-color: #FFDE6E; @@ -142,4 +142,4 @@ Error generating stack: `+i.message+` to { transform: rotate(360deg); } - }`}),o?Le.jsxs("svg",{id:"alby-loading",width:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Le.jsx("path",{d:"M13.507 4.908C15.0044 5.22631 16.3626 6.01043 17.387 7.148",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round"}),Le.jsx("path",{d:"M17.388 16.851C16.3636 17.9886 15.0054 18.7727 13.508 19.091M10.493 19.092C8.9956 18.7737 7.6374 17.9896 6.61299 16.852M5.10499 14.24C4.63203 12.7841 4.63203 11.2159 5.10499 9.75999M6.61199 7.149C7.6364 6.01142 8.9946 5.2273 10.492 4.909M18.895 9.75999C19.368 11.2159 19.368 12.7841 18.895 14.24",stroke:"black",strokeWidth:"1.4",strokeLinecap:"round"})]}):Le.jsxs("svg",{id:"lightning",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"black",width:"40px",className:`${!n&&!u&&!a?"alby-boost-shake":""}`,children:[Le.jsx("defs",{children:Le.jsxs("linearGradient",{x1:"50%",x2:"50%",y1:"0%",y2:"100%",id:"left-to-right",children:[Le.jsx("stop",{offset:u?1-A%5/4:1,stopColor:"#fff"}),Le.jsx("stop",{offset:u?1-A%5/4:1,stopColor:"#ff9900"})]})}),Le.jsx("path",{fill:"url(#left-to-right)",d:"M18.496 10.709l-8.636 8.88c-.24.246-.638-.039-.482-.345l3.074-6.066a.3.3 0 00-.268-.436H5.718a.3.3 0 01-.214-.51l8.01-8.115c.232-.235.618.023.489.328L11.706 9.86a.3.3 0 00.28.417l6.291-.078a.3.3 0 01.22.509z"})]}),Le.jsx("div",{children:n?"No WebLN":a?`${l} sats sent`:u?`${u} sats`:"Boost"})]})};var cu=Nh;cu.createRoot,cu.hydrateRoot;const xy="/assets/alby-logo-dark-5d066187.svg";function Sy({packageName:e}){const[t,n]=te.useState(!1),[r,o]=te.useState(!1),[i,l]=te.useState(""),[s,a]=te.useState(""),[c,p]=te.useState(""),[h,y]=te.useState(""),S=()=>{const x=window.location.href.split("?")[0];window.history.pushState({},"",x),window.location.reload()},g=async x=>{x.preventDefault();const L=new URL(window.location);L.searchParams.set("package",h),window.history.pushState({},"",L),window.location.reload()};return te.useEffect(()=>{(async()=>{try{const d=(await Wm.get(`https://registry.npmjs.org/${e}/latest`)).data,u=d.funding;if(l(d.description),!u||u&&u.type!=="lightning"){a("LN Funding details are not available for this package."),o(!0);return}const f=u.url;p(f.startsWith("lightning:")?f.substring(10):f)}catch(L){console.error(L),a("The package you searched for does not exist.")}finally{n(!1)}})()},[]),v.jsxs("div",{className:"flex flex-col min-h-screen",children:[v.jsx("div",{className:"flex justify-between items-center bg-neutral-800 py-3 px-6",children:v.jsxs("div",{className:"flex cursor-pointer items-center",onClick:S,children:[v.jsx("img",{className:"h-16 mr-4",src:gt,alt:"Alby logo"}),v.jsx("h1",{className:"text-4xl font-bold text-white",style:{fontFamily:"Catamaran"},alt:"Alby logo",children:"PkgZap"})]})}),v.jsx("div",{style:{background:"linear-gradient(100deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"from-[#fffbdfbb] from-5% via-[#ffe83daa] via-30% to-[#fff7c1d4] to-90%",children:v.jsxs("div",{className:"py-12 px-20",children:[v.jsxs("p",{className:"font-mono",children:["pkgzap?package=",e]}),v.jsx("h1",{className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:e}),t?v.jsx("p",{className:"mt-6 mb-4 text-lg font-mono max-w-xl",children:"loading..."}):v.jsxs(v.Fragment,{children:[i&&v.jsx("p",{className:"mt-6 mb-4 text-lg font-mono max-w-xl",children:i}),s&&v.jsxs("p",{className:"mt-6 mb-4 font-mono text-red-500",children:["⚠️ ",s]}),r&&v.jsxs("p",{className:"mt-2 mb-4 font-mono text-neutral-600",children:["Let developers know how they can receive sats: ",v.jsx("a",{className:"underline",href:"https://getalby.github.io/pkgzap/#developer",children:"https://getalby.github.io/pkgzap/#developer"})]}),!s&&c&&v.jsx("div",{className:"mt-12",children:v.jsx(wy,{lnurl:c,expanded:!0})})]}),v.jsx("p",{className:"mt-12 font-mono",children:v.jsx("span",{className:"cursor-pointer",onClick:S,children:"< Go Back"})})]})}),v.jsxs("div",{className:"grow flex flex-col py-12 px-20 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[v.jsx("p",{className:"font-mono",children:"Search Other Packages"}),v.jsx("h1",{id:"search",className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Check Packages"}),v.jsxs("form",{onSubmit:g,className:"w-96",children:[v.jsx("label",{htmlFor:"package-search",className:"mb-2 text-sm font-mono font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),v.jsxs("div",{className:"flex items-center",children:[v.jsx("input",{id:"package-search",type:"text",value:h,onChange:x=>y(x.target.value),className:"font-mono block w-full p-2 px-6 text-gray-600 border-4 border-gray-300 text-lg drop-shadow-md rounded-xl bg-gray-50 outline-none",placeholder:"package name",required:!0}),v.jsx("button",{type:"submit",className:"font-mono ml-3 p-2 px-4 bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 border-gray-300 text-lg drop-shadow-md rounded-xl outline-none",children:"Go"})]})]})]}),v.jsx("div",{className:"flex justify-between items-center bg-neutral-800 px-6 py-2",children:v.jsx("div",{className:"flex ",children:v.jsx("img",{className:"h-12 mr-6",src:xy,alt:"Alby logo"})})})]})}function ky(){const t=new URLSearchParams(window.location.search).get("package");if(t)return v.jsx(Sy,{packageName:t});const[n,r]=te.useState("");te.useEffect(()=>{const i=window.location.hash;if(i){const l=document.querySelector(i);l&&l.scrollIntoView()}},[]);const o=async i=>{i.preventDefault();const l=new URL(window.location);l.searchParams.set("package",n),window.history.pushState({},"",l),window.location.reload()};return v.jsxs("div",{children:[v.jsxs("div",{className:"pt-12 pb-24 min-h-screen bg-[url('../assets/lightning.png')]",children:[v.jsxs("div",{className:"text-lg pl-12 font-mono flex flex-col items-start",children:[v.jsx("a",{href:"https://github.com/getAlby/pkgzap",children:"getAlby/pkgzap"}),v.jsx("a",{href:"https://www.npmjs.com/package/@getalby/pkgzap-cli",children:"npm/@getalby/pkgzap-cli"}),v.jsx("a",{href:"https://www.npmjs.com/package/@getalby/pkgzap",children:"npm/@getalby/pkgzap"})]}),v.jsx("img",{className:"w-72 mt-14 mb-10 mx-auto",src:gt,alt:"Logo"}),v.jsx("h1",{className:"text-6xl font-bold text-neutral-700 text-center",style:{fontFamily:"Catamaran"},alt:"Logo",children:"PkgZap"}),v.jsxs("p",{className:"mt-6 text-xl text-center font-mono",children:["Open source money for open source packages.",v.jsx("br",{}),"Value4Value payments for npm (and other package managers)"]})]}),v.jsxs("div",{children:[v.jsxs("div",{style:{background:"linear-gradient(80deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"relative from-[#ffe0008a] from-5% via-yellow-200 via-30% to-[#ffffff99]",children:[v.jsxs("div",{className:"flex flex-col items-center justify-center pt-12",children:[v.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),v.jsx("h1",{className:"text-5xl font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"How to use?"}),v.jsx("div",{className:"drop-shadow-md bg-gray-300 rounded-xl",children:v.jsx("div",{className:"shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-amber-200 rounded-xl px-12 py-3 m-1 text-2xl font-mono",children:"npx @getalby/pkgzap-cli"})}),v.jsx("p",{className:"mt-6 font-mono",children:"Type this in your root directory and boost all your dependencies"})]}),v.jsx("img",{className:"absolute h-1/5",src:Ch,alt:"Logo"}),v.jsxs("div",{id:"developer",className:"relative z-50 flex flex-col items-center justify-center py-12",children:[v.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),v.jsx("h1",{className:"text-5xl font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Developer"}),v.jsxs("p",{className:"text-center font-mono",children:["As a package developer you only have to add the",v.jsx("br",{}),"lightning address to your package.json file."]}),v.jsxs("p",{className:"mt-6 font-mono mb-8",children:["Have a look at ",v.jsx("a",{href:"https://github.com/getAlby/alby-tools/blob/a8a66d2903925c6f584600badf8b75b87260baa4/package.json#L13-L16",className:"underline",children:"this example"})]}),v.jsxs("div",{children:[v.jsx("p",{className:"mb-2 font-mono text-left",children:"~/package.json"}),v.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:["...",v.jsx("br",{}),'"funding": {',v.jsx("p",{className:"ml-4",children:'"type": "lightning",'}),v.jsx("p",{className:"ml-4",children:'"url": "lightning:hello@getalby.com"'}),"},",v.jsx("br",{}),"..."]})]}),v.jsx("div",{className:"flex flex-col items-center",children:v.jsxs("div",{id:"library",className:"py-12 px-20",children:[v.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),v.jsx("h1",{className:"text-4xl text-center font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Library methods"}),v.jsxs("p",{className:"text-center font-mono",children:["You can also fetch funding details of all the dependencies used in your project and send satoshis.",v.jsx("br",{})," For this, you can use the pkgzap package."]}),v.jsx("div",{className:"flex justify-center",children:v.jsx("div",{className:"inline-block my-6 drop-shadow-md bg-gray-300 rounded-xl",children:v.jsx("div",{className:"shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-amber-200 rounded-xl px-12 py-3 m-1 text-2xl font-mono",children:"npm i @getalby/pkgzap"})})}),v.jsx("p",{className:"mt-6 mb-2 text-xl font-mono",children:"getFundingDetails"}),v.jsx("p",{className:"mt-2 mb-4 text-sm font-mono",children:"This gives you the funding details of all the dependencies in the package.json of the folder in which this is run"}),v.jsxs("div",{className:"w-full drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-4 mb-10 text-lg font-mono",children:[v.jsxs("p",{className:"text-purple-400",children:["import ",v.jsxs("span",{className:"text-yellow-400",children:["{ ",v.jsx("span",{className:"text-red-400",children:"getFundingDetails"})," }"]})," from ",v.jsx("span",{className:"text-lime-300",children:'"@getalby/pkgzap"'})]}),v.jsxs("p",{className:"text-purple-400",children:["const ",v.jsxs("span",{className:"text-yellow-400",children:["fundingInfo",v.jsx("span",{className:"text-blue-300",children:" = getFundingDetails"}),"()"]})]}),v.jsxs("p",{className:"text-white",children:["console.",v.jsx("span",{className:"text-blue-300",children:"log"}),v.jsxs("span",{className:"text-yellow-400",children:["(JSON.",v.jsx("span",{className:"text-blue-300",children:"stringify"}),v.jsxs("span",{className:"text-purple-400",children:["(",v.jsxs("span",{className:"text-white",children:["fundingInfo, ",v.jsx("span",{className:"text-yellow-400",children:"null, 2"})]}),")"]}),")"]})]})]}),v.jsx("p",{className:"mt-6 mb-2 text-xl font-mono",children:"fetchFundingInfo"}),v.jsx("p",{className:"mt-2 mb-4 text-sm font-mono",children:"If you want to fetch the funding data from some arbitrary JSON retrieved from an API or some other file, you can use this function"}),v.jsxs("div",{className:"w-full drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-4 mb-10 text-lg font-mono",children:[v.jsxs("p",{className:"text-purple-400",children:["import ",v.jsxs("span",{className:"text-yellow-400",children:["{ ",v.jsx("span",{className:"text-red-400",children:"fetchFundingInfo"})," }"]})," from ",v.jsx("span",{className:"text-lime-300",children:'"@getalby/pkgzap"'})]}),v.jsxs("p",{className:"text-purple-400",children:["const ",v.jsxs("span",{className:"text-yellow-400",children:["fundingInfo",v.jsx("span",{className:"text-blue-300",children:" = fetchFundingInfo"}),"(",v.jsx("span",{className:"text-white",children:"packageJsonData"}),")"]})]}),v.jsxs("p",{className:"text-white",children:["console.",v.jsx("span",{className:"text-blue-300",children:"log"}),v.jsxs("span",{className:"text-yellow-400",children:["(JSON.",v.jsx("span",{className:"text-blue-300",children:"stringify"}),v.jsxs("span",{className:"text-purple-400",children:["(",v.jsxs("span",{className:"text-white",children:["fundingInfo, ",v.jsx("span",{className:"text-yellow-400",children:"null, 2"})]}),")"]}),")"]})]})]})]})})]})]}),v.jsx("img",{className:"absolute h-2/5 right-1/4",src:jh,alt:"Logo"}),v.jsxs("div",{className:"flex flex-col items-center justify-center pb-12 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[v.jsx("img",{className:"drop-shadow-md relative z-50 w-20 my-10 mx-auto",src:gt,alt:"Logo"}),v.jsxs("div",{className:"relative z-50 flex items-center text-3xl font-bold text-neutral-700",style:{fontFamily:"Catamaran"},children:[v.jsxs("div",{children:[v.jsx("p",{className:"mb-2",children:"If you don't have a"}),v.jsx("a",{href:"https://lightningaddress.com/",className:"inline-block mb-2 text-5xl text-amber-400",children:"lightning address"}),v.jsx("p",{children:"Click on the bee!"})]}),v.jsx("a",{href:"https://getalby.com/user/new",className:"w-44 ml-36",children:v.jsx("img",{src:_h,alt:"Logo"})})]}),v.jsx("div",{className:"grayscale opacity-20 bg-center bg-[length:16rem] mt-12 py-8 w-full bg-[url('../assets/alby-logo.png')]"})]})]}),v.jsx("div",{style:{background:"linear-gradient(100deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"from-[#ffe000bb] from-10% via-[#ff8f00aa] via-60% to-[#fff19bbb] to-90%",children:v.jsxs("div",{id:"supporter",className:"py-12 px-20",children:[v.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),v.jsx("h1",{className:"text-5xl text-center font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Supporter"}),v.jsxs("p",{className:"mt-6 mb-4 text-lg font-mono",children:["Run the npx @getalby/pkgzap-cli command in your project directory.",v.jsx("br",{}),"First, it fetches the funding information from the package details by analyzing the dependencies."]}),v.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:[v.jsx("p",{children:"$ npx @getalby/pkgzap-cli"}),v.jsx("p",{className:"text-yellow-200",children:"Send sats to your project's dependencies!"}),v.jsxs("p",{children:["Analyzing your package.json...",v.jsx("br",{}),"Analyzing package: alby-tools",v.jsx("br",{}),"Analyzing package: alby-js-sdk",v.jsx("br",{}),"..."]}),v.jsx("p",{className:"text-cyan-200",children:"Found 4 dependencies with lightning details."})]}),v.jsx("p",{className:"mt-6 mb-4 text-lg font-mono",children:"Now you can enter your desired total amount you want to split among all supported dependencies."}),v.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:["...",v.jsx("p",{className:"text-cyan-200",children:"Found 4 dependencies with lightning details."}),v.jsx("p",{className:"text-purple-300",children:"How much do you want to send in total? Amount (in sats): 400"}),v.jsxs("p",{className:"text-green-400",children:["Please approve the NWC connection: ",v.jsx("span",{className:"text-blue-400 underline",children:"https://nwc.getalby.com/..."})]}),"And press enter/return to continue..."]}),v.jsxs("p",{className:"mt-6 mb-4 text-lg font-mono",children:["Approve the wallet connection by clicking on the link and you're done! 🚀",v.jsx("br",{}),"Let the sats flow and support your favorite open source projects!"]}),v.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 text-lg font-mono",children:["...",v.jsx("br",{}),"And press enter/return to continue...",v.jsx("br",{}),"Authentication Successful. Saving the NostrWalletConnect URL...",v.jsx("p",{className:"text-green-400",children:"Saved in /Users/satoshi/.pkgzap"}),"Supporting 4 packages with 100 sats each...",v.jsxs("p",{className:"text-yellow-200",children:["alby-tools: ",v.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),v.jsx("br",{}),"ln-package: ",v.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),v.jsx("br",{}),"awesome-nostr: ",v.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),v.jsx("br",{}),"nostr-ln: ",v.jsx("span",{className:"text-green-400",children:"Payment Successful!"})]})]})]})}),v.jsxs("div",{className:"flex flex-col px-20 py-12 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[v.jsxs("p",{className:"text-sm font-mono",children:["Boost a package directly from here",v.jsx("br",{})," using the pkgzap methods"]}),v.jsx("h1",{id:"search",className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Check Packages"}),v.jsxs("form",{onSubmit:o,className:"w-96",children:[v.jsx("label",{htmlFor:"package-search",className:"mb-2 text-sm font-mono font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),v.jsxs("div",{className:"flex items-center",children:[v.jsx("input",{id:"package-search",type:"text",value:n,onChange:i=>r(i.target.value),className:"font-mono block w-full p-2 px-6 text-gray-600 border-4 border-gray-300 text-lg drop-shadow-md rounded-xl bg-gray-50 outline-none",placeholder:"package name",required:!0}),v.jsx("button",{type:"submit",className:"font-mono ml-3 p-2 px-4 bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 border-gray-300 text-lg drop-shadow-md rounded-xl outline-none",children:"Go"})]})]})]}),v.jsx("div",{className:"flex justify-between items-center bg-neutral-800 py-3 px-6",children:v.jsxs("div",{className:"flex items-center",children:[v.jsx("img",{className:"h-16 mr-4",src:gt,alt:"Alby logo"}),v.jsx("h1",{className:"text-4xl font-bold text-white",style:{fontFamily:"Catamaran"},alt:"Alby logo",children:"PkgZap"})]})})]})}zi.createRoot(document.getElementById("root")).render(v.jsx(Su.StrictMode,{children:v.jsx(ky,{})})); + }`}),o?Le.jsxs("svg",{id:"alby-loading",width:"40px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[Le.jsx("path",{d:"M13.507 4.908C15.0044 5.22631 16.3626 6.01043 17.387 7.148",stroke:"white",strokeWidth:"1.4",strokeLinecap:"round"}),Le.jsx("path",{d:"M17.388 16.851C16.3636 17.9886 15.0054 18.7727 13.508 19.091M10.493 19.092C8.9956 18.7737 7.6374 17.9896 6.61299 16.852M5.10499 14.24C4.63203 12.7841 4.63203 11.2159 5.10499 9.75999M6.61199 7.149C7.6364 6.01142 8.9946 5.2273 10.492 4.909M18.895 9.75999C19.368 11.2159 19.368 12.7841 18.895 14.24",stroke:"black",strokeWidth:"1.4",strokeLinecap:"round"})]}):Le.jsxs("svg",{id:"lightning",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",stroke:"black",width:"40px",className:`${!n&&!u&&!a?"alby-boost-shake":""}`,children:[Le.jsx("defs",{children:Le.jsxs("linearGradient",{x1:"50%",x2:"50%",y1:"0%",y2:"100%",id:"left-to-right",children:[Le.jsx("stop",{offset:u?1-A%5/4:1,stopColor:"#fff"}),Le.jsx("stop",{offset:u?1-A%5/4:1,stopColor:"#ff9900"})]})}),Le.jsx("path",{fill:"url(#left-to-right)",d:"M18.496 10.709l-8.636 8.88c-.24.246-.638-.039-.482-.345l3.074-6.066a.3.3 0 00-.268-.436H5.718a.3.3 0 01-.214-.51l8.01-8.115c.232-.235.618.023.489.328L11.706 9.86a.3.3 0 00.28.417l6.291-.078a.3.3 0 01.22.509z"})]}),Le.jsx("div",{children:n?"No WebLN":a?`${l} sats sent`:u?`${u} sats`:"Boost"})]})};var cu=Nh;cu.createRoot,cu.hydrateRoot;const xy="/assets/alby-logo-dark-5d066187.svg";function Sy({packageName:e}){const[t,n]=te.useState(!1),[r,o]=te.useState(!1),[i,l]=te.useState(""),[s,a]=te.useState(""),[c,p]=te.useState(""),[h,y]=te.useState(""),S=()=>{const x=window.location.href.split("?")[0];window.history.pushState({},"",x),window.location.reload()},v=async x=>{x.preventDefault();const L=new URL(window.location);L.searchParams.set("package",h),window.history.pushState({},"",L),window.location.reload()};return te.useEffect(()=>{(async()=>{try{const d=(await Wm.get(`https://registry.npmjs.org/${e}/latest`)).data,u=d.funding;if(l(d.description),!u||u&&u.type!=="lightning"){a("LN Funding details are not available for this package."),o(!0);return}const f=u.url;p(f.startsWith("lightning:")?f.substring(10):f)}catch(L){console.error(L),a("The package you searched for does not exist.")}finally{n(!1)}})()},[]),g.jsxs("div",{className:"flex flex-col min-h-screen",children:[g.jsx("div",{className:"flex justify-between items-center bg-neutral-800 py-3 px-6",children:g.jsxs("div",{className:"flex cursor-pointer items-center",onClick:S,children:[g.jsx("img",{className:"h-16 mr-4",src:gt,alt:"Alby logo"}),g.jsx("h1",{className:"text-4xl font-bold text-white",style:{fontFamily:"Catamaran"},alt:"Alby logo",children:"PkgZap"})]})}),g.jsx("div",{style:{background:"linear-gradient(100deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"from-[#fffbdfbb] from-5% via-[#ffe83daa] via-30% to-[#fff7c1d4] to-90%",children:g.jsxs("div",{className:"py-12 px-20",children:[g.jsxs("p",{className:"font-mono",children:["pkgzap?package=",e]}),g.jsx("h1",{className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:e}),t?g.jsx("p",{className:"mt-6 mb-4 text-lg font-mono max-w-xl",children:"loading..."}):g.jsxs(g.Fragment,{children:[i&&g.jsx("p",{className:"mt-6 mb-4 text-lg font-mono max-w-xl",children:i}),s&&g.jsxs("p",{className:"mt-6 mb-4 font-mono text-red-500",children:["⚠️ ",s]}),r&&g.jsxs("p",{className:"mt-2 mb-4 font-mono text-neutral-600",children:["Let developers know how they can receive sats: ",g.jsx("a",{className:"underline",href:"https://getalby.github.io/pkgzap/#developer",children:"https://getalby.github.io/pkgzap/#developer"})]}),!s&&c&&g.jsx("div",{className:"mt-12",children:g.jsx(wy,{lnurl:c,expanded:!0})})]}),g.jsx("p",{className:"mt-12 font-mono",children:g.jsx("span",{className:"cursor-pointer",onClick:S,children:"< Go Back"})})]})}),g.jsxs("div",{className:"grow flex flex-col py-12 px-20 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[g.jsx("p",{className:"font-mono",children:"Search Other Packages"}),g.jsx("h1",{id:"search",className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Check Packages"}),g.jsxs("form",{onSubmit:v,className:"w-96",children:[g.jsx("label",{htmlFor:"package-search",className:"mb-2 text-sm font-mono font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),g.jsxs("div",{className:"flex items-center",children:[g.jsx("input",{id:"package-search",type:"text",value:h,onChange:x=>y(x.target.value),className:"font-mono block w-full p-2 px-6 text-gray-600 border-4 border-gray-300 text-lg drop-shadow-md rounded-xl bg-gray-50 outline-none",placeholder:"package name",required:!0}),g.jsx("button",{type:"submit",className:"font-mono ml-3 p-2 px-4 bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 border-gray-300 text-lg drop-shadow-md rounded-xl outline-none",children:"Go"})]})]})]}),g.jsx("div",{className:"flex justify-between items-center bg-neutral-800 px-6 py-2",children:g.jsx("div",{className:"flex ",children:g.jsx("img",{className:"h-12 mr-6",src:xy,alt:"Alby logo"})})})]})}function ky(){const t=new URLSearchParams(window.location.search).get("package");if(t)return g.jsx(Sy,{packageName:t});const[n,r]=te.useState("");te.useEffect(()=>{const i=window.location.hash;if(i){const l=document.querySelector(i);l&&l.scrollIntoView()}},[]);const o=async i=>{i.preventDefault();const l=new URL(window.location);l.searchParams.set("package",n),window.history.pushState({},"",l),window.location.reload()};return g.jsxs("div",{children:[g.jsxs("div",{className:"pt-12 pb-24 min-h-screen bg-[url('../assets/lightning.png')]",children:[g.jsxs("div",{className:"text-lg pl-12 font-mono flex flex-col items-start",children:[g.jsx("a",{href:"https://github.com/getAlby/pkgzap",children:"getAlby/pkgzap"}),g.jsx("a",{href:"https://www.npmjs.com/package/@getalby/pkgzap-cli",children:"npm/@getalby/pkgzap-cli"}),g.jsx("a",{href:"https://www.npmjs.com/package/@getalby/pkgzap",children:"npm/@getalby/pkgzap"})]}),g.jsx("img",{className:"w-72 mt-14 mb-10 mx-auto",src:gt,alt:"Logo"}),g.jsx("h1",{className:"text-6xl font-bold text-neutral-700 text-center",style:{fontFamily:"Catamaran"},alt:"Logo",children:"PkgZap"}),g.jsxs("p",{className:"mt-6 text-xl text-center font-mono",children:["Open source money for open source packages.",g.jsx("br",{}),"Value4Value payments for npm (and other package managers)"]})]}),g.jsxs("div",{children:[g.jsxs("div",{style:{background:"linear-gradient(80deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"relative from-[#ffe0008a] from-5% via-yellow-200 via-30% to-[#ffffff99]",children:[g.jsxs("div",{className:"flex flex-col items-center justify-center pt-12",children:[g.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),g.jsx("h1",{className:"text-5xl font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"How to use?"}),g.jsx("div",{className:"drop-shadow-md bg-gray-300 rounded-xl",children:g.jsx("div",{className:"shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-amber-200 rounded-xl px-12 py-3 m-1 text-2xl font-mono",children:"npx @getalby/pkgzap-cli"})}),g.jsx("p",{className:"mt-6 font-mono",children:"Type this in your root directory and boost all your dependencies"})]}),g.jsx("img",{className:"absolute h-1/5",src:Ch,alt:"Logo"}),g.jsxs("div",{id:"developer",className:"relative z-50 flex flex-col items-center justify-center py-12",children:[g.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),g.jsx("h1",{className:"text-5xl font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Developer"}),g.jsxs("p",{className:"text-center font-mono",children:["As a package developer you only have to add the",g.jsx("br",{}),"lightning address to your package.json file."]}),g.jsxs("p",{className:"mt-6 font-mono mb-8",children:["Have a look at ",g.jsx("a",{href:"https://github.com/getAlby/alby-tools/blob/a8a66d2903925c6f584600badf8b75b87260baa4/package.json#L13-L16",className:"underline",children:"this example"})]}),g.jsxs("div",{children:[g.jsx("p",{className:"mb-2 font-mono text-left",children:"~/package.json"}),g.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:["...",g.jsx("br",{}),'"funding": {',g.jsx("p",{className:"ml-4",children:'"type": "lightning",'}),g.jsx("p",{className:"ml-4",children:'"url": "lightning:hello@getalby.com"'}),"},",g.jsx("br",{}),"..."]})]}),g.jsx("div",{className:"flex flex-col items-center",children:g.jsxs("div",{id:"library",className:"py-12 px-20",children:[g.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),g.jsx("h1",{className:"text-4xl text-center font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Library methods"}),g.jsxs("p",{className:"text-center font-mono",children:["You can also fetch funding details of all the dependencies used in your project and send satoshis.",g.jsx("br",{})," For this, you can use the pkgzap package."]}),g.jsx("div",{className:"flex justify-center",children:g.jsx("div",{className:"inline-block my-6 drop-shadow-md bg-gray-300 rounded-xl",children:g.jsx("div",{className:"shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-amber-200 rounded-xl px-12 py-3 m-1 text-2xl font-mono",children:"npm i @getalby/pkgzap"})})}),g.jsx("p",{className:"mt-6 mb-2 text-xl font-mono",children:"getFundingDetails"}),g.jsx("p",{className:"mt-2 mb-4 text-sm font-mono",children:"This gives you the funding details of all the dependencies in the package.json of the folder in which this is run"}),g.jsxs("div",{className:"w-full drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-4 mb-10 text-lg font-mono",children:[g.jsxs("p",{className:"text-purple-400",children:["import ",g.jsxs("span",{className:"text-yellow-400",children:["{ ",g.jsx("span",{className:"text-red-400",children:"getFundingDetails"})," }"]})," from ",g.jsx("span",{className:"text-lime-300",children:'"@getalby/pkgzap"'})]}),g.jsxs("p",{className:"text-purple-400",children:["const ",g.jsxs("span",{className:"text-yellow-400",children:["fundingInfo",g.jsx("span",{className:"text-blue-300",children:" = getFundingDetails"}),"()"]})]}),g.jsxs("p",{className:"text-white",children:["console.",g.jsx("span",{className:"text-blue-300",children:"log"}),g.jsxs("span",{className:"text-yellow-400",children:["(JSON.",g.jsx("span",{className:"text-blue-300",children:"stringify"}),g.jsxs("span",{className:"text-purple-400",children:["(",g.jsxs("span",{className:"text-white",children:["fundingInfo, ",g.jsx("span",{className:"text-yellow-400",children:"null, 2"})]}),")"]}),")"]})]})]}),g.jsx("p",{className:"mt-6 mb-2 text-xl font-mono",children:"fetchFundingInfo"}),g.jsx("p",{className:"mt-2 mb-4 text-sm font-mono",children:"If you want to fetch the funding data from some arbitrary JSON retrieved from an API or some other file, you can use this function"}),g.jsxs("div",{className:"w-full drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-4 mb-10 text-lg font-mono",children:[g.jsxs("p",{className:"text-purple-400",children:["import ",g.jsxs("span",{className:"text-yellow-400",children:["{ ",g.jsx("span",{className:"text-red-400",children:"fetchFundingInfo"})," }"]})," from ",g.jsx("span",{className:"text-lime-300",children:'"@getalby/pkgzap"'})]}),g.jsxs("p",{className:"text-purple-400",children:["const ",g.jsxs("span",{className:"text-yellow-400",children:["fundingInfo",g.jsx("span",{className:"text-blue-300",children:" = fetchFundingInfo"}),"(",g.jsx("span",{className:"text-white",children:"packageJsonData"}),")"]})]}),g.jsxs("p",{className:"text-white",children:["console.",g.jsx("span",{className:"text-blue-300",children:"log"}),g.jsxs("span",{className:"text-yellow-400",children:["(JSON.",g.jsx("span",{className:"text-blue-300",children:"stringify"}),g.jsxs("span",{className:"text-purple-400",children:["(",g.jsxs("span",{className:"text-white",children:["fundingInfo, ",g.jsx("span",{className:"text-yellow-400",children:"null, 2"})]}),")"]}),")"]})]})]})]})})]})]}),g.jsx("img",{className:"absolute h-2/5 right-1/4",src:jh,alt:"Logo"}),g.jsxs("div",{className:"flex flex-col items-center justify-center pb-12 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[g.jsx("img",{className:"drop-shadow-md relative z-50 w-20 my-10 mx-auto",src:gt,alt:"Logo"}),g.jsxs("div",{className:"relative z-50 flex items-center text-3xl font-bold text-neutral-700",style:{fontFamily:"Catamaran"},children:[g.jsxs("div",{children:[g.jsx("p",{className:"mb-2",children:"If you don't have a"}),g.jsx("a",{href:"https://lightningaddress.com/",className:"inline-block mb-2 text-5xl text-amber-400",children:"lightning address"}),g.jsx("p",{children:"Click on the bee!"})]}),g.jsx("a",{href:"https://getalby.com/auth/users/new",className:"w-44 ml-36",children:g.jsx("img",{src:_h,alt:"Logo"})})]}),g.jsx("div",{className:"grayscale opacity-20 bg-center bg-[length:16rem] mt-12 py-8 w-full bg-[url('../assets/alby-logo.png')]"})]})]}),g.jsxs("div",{style:{background:"linear-gradient(100deg, var(--tw-gradient-stops)), url('../assets/noise.png')"},className:"from-[#ffe000bb] from-10% via-[#ff8f00aa] via-60% to-[#fff19bbb] to-90%",children:[g.jsxs("div",{id:"supporter",className:"py-12 px-20",children:[g.jsx("img",{className:"drop-shadow-md w-20 mb-12 mx-auto",src:gt,alt:"Logo"}),g.jsx("h1",{className:"text-5xl text-center font-bold mb-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Supporter"}),g.jsxs("p",{className:"mt-6 mb-4 text-lg font-mono",children:["Run the npx @getalby/pkgzap-cli command in your project directory.",g.jsx("br",{}),"First, it fetches the funding information from the package details by analyzing the dependencies."]}),g.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:[g.jsx("p",{children:"$ npx @getalby/pkgzap-cli"}),g.jsx("p",{className:"text-yellow-200",children:"Send sats to your project's dependencies!"}),g.jsxs("p",{children:["Analyzing your package.json...",g.jsx("br",{}),"Analyzing package: alby-tools",g.jsx("br",{}),"Analyzing package: alby-js-sdk",g.jsx("br",{}),"..."]}),g.jsx("p",{className:"text-cyan-200",children:"Found 4 dependencies with lightning details."})]}),g.jsx("p",{className:"mt-6 mb-4 text-lg font-mono",children:"Now you can enter your desired total amount you want to split among all supported dependencies."}),g.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 mb-10 text-lg font-mono",children:["...",g.jsx("p",{className:"text-cyan-200",children:"Found 4 dependencies with lightning details."}),g.jsx("p",{className:"text-purple-300",children:"How much do you want to send in total? Amount (in sats): 400"}),g.jsxs("p",{className:"text-green-400",children:["Please approve the NWC connection: ",g.jsx("span",{className:"text-blue-400 underline",children:"https://nwc.getalby.com/..."})]}),"And press enter/return to continue..."]}),g.jsxs("p",{className:"mt-6 mb-4 text-lg font-mono",children:["Approve the wallet connection by clicking on the link and you're done! 🚀",g.jsx("br",{}),"Let the sats flow and support your favorite open source projects!"]}),g.jsxs("div",{className:"drop-shadow-md bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 rounded-xl p-6 text-lg font-mono",children:["...",g.jsx("br",{}),"And press enter/return to continue...",g.jsx("br",{}),"Authentication Successful. Saving the NostrWalletConnect URL...",g.jsx("p",{className:"text-green-400",children:"Saved in /Users/satoshi/.pkgzap"}),"Supporting 4 packages with 100 sats each...",g.jsxs("p",{className:"text-yellow-200",children:["alby-tools: ",g.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),g.jsx("br",{}),"ln-package: ",g.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),g.jsx("br",{}),"awesome-nostr: ",g.jsx("span",{className:"text-green-400",children:"Payment Successful!"}),g.jsx("br",{}),"nostr-ln: ",g.jsx("span",{className:"text-green-400",children:"Payment Successful!"})]})]})]}),g.jsx("div",{className:"flex justify-center items-center py-12",children:g.jsx("iframe",{width:"900",height:"500",src:"https://www.youtube.com/embed/o1ykchIzruI?si=xzMNb5dAKavJaCE2",title:"YouTube video player",frameborder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowfullscreen:!0})})]}),g.jsxs("div",{className:"flex flex-col px-20 py-12 bg-[length:120px] bg-[url('../assets/noise.png')]",children:[g.jsxs("p",{className:"text-sm font-mono",children:["Boost a package directly from here",g.jsx("br",{})," using the pkgzap methods"]}),g.jsx("h1",{id:"search",className:"text-5xl font-bold my-8 text-neutral-700",style:{fontFamily:"Catamaran"},children:"Check Packages"}),g.jsxs("form",{onSubmit:o,className:"w-96",children:[g.jsx("label",{htmlFor:"package-search",className:"mb-2 text-sm font-mono font-medium text-gray-900 sr-only dark:text-white",children:"Search"}),g.jsxs("div",{className:"flex items-center",children:[g.jsx("input",{id:"package-search",type:"text",value:n,onChange:i=>r(i.target.value),className:"font-mono block w-full p-2 px-6 text-gray-600 border-4 border-gray-300 text-lg drop-shadow-md rounded-xl bg-gray-50 outline-none",placeholder:"package name",required:!0}),g.jsx("button",{type:"submit",className:"font-mono ml-3 p-2 px-4 bg-[radial-gradient(_var(--tw-gradient-stops))] from-neutral-700 to-neutral-800 text-white border-4 border-gray-300 text-lg drop-shadow-md rounded-xl outline-none",children:"Go"})]})]})]}),g.jsx("div",{className:"flex justify-between items-center bg-neutral-800 py-3 px-6",children:g.jsxs("div",{className:"flex items-center",children:[g.jsx("img",{className:"h-16 mr-4",src:gt,alt:"Alby logo"}),g.jsx("h1",{className:"text-4xl font-bold text-white",style:{fontFamily:"Catamaran"},alt:"Alby logo",children:"PkgZap"})]})})]})}zi.createRoot(document.getElementById("root")).render(g.jsx(Su.StrictMode,{children:g.jsx(ky,{})})); diff --git a/index.html b/index.html index 0114484..6cbcf5e 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ Alby | pkgzap - +