@worldcoin/idkit 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/idkit-js.js +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +2 -2
- package/build/store/idkit.d.ts +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/build/idkit-js.js
CHANGED
|
@@ -19,7 +19,7 @@ Error generating stack: `+i.message+`
|
|
|
19
19
|
`),vL=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,aM=new Map;function ko(e){var t=aM.get(e);if(t===void 0){if(!vL.test(e))throw Error(ut(65,e));t=Oe("<"+e),aM.set(e,t)}return t}var yL=Oe("<!DOCTYPE html>");function wL(e,t,r,n,o){switch(t){case"select":e.push(ko("select"));var i=null,a=null;for(v in r)if(sn.call(r,v)){var s=r[v];if(s!=null)switch(v){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"defaultValue":case"value":break;default:_n(e,n,v,s)}}return e.push(Wi),Dp(e,a,i),i;case"option":a=o.selectedValue,e.push(ko("option"));var l=s=null,c=null,v=null;for(i in r)if(sn.call(r,i)){var _=r[i];if(_!=null)switch(i){case"children":s=_;break;case"selected":c=_;break;case"dangerouslySetInnerHTML":v=_;break;case"value":l=_;default:_n(e,n,i,_)}}if(a!=null)if(r=l!==null?""+l:gL(s),Ty(a)){for(n=0;n<a.length;n++)if(""+a[n]===r){e.push(_y);break}}else""+a===r&&e.push(_y);else c&&e.push(_y);return e.push(Wi),Dp(e,v,s),s;case"textarea":e.push(ko("textarea")),v=a=i=null;for(s in r)if(sn.call(r,s)&&(l=r[s],l!=null))switch(s){case"children":v=l;break;case"value":i=l;break;case"defaultValue":a=l;break;case"dangerouslySetInnerHTML":throw Error(ut(91));default:_n(e,n,s,l)}if(i===null&&a!==null&&(i=a),e.push(Wi),v!=null){if(i!=null)throw Error(ut(92));if(Ty(v)&&1<v.length)throw Error(ut(93));i=""+v}return typeof i=="string"&&i[0]===`
|
|
20
20
|
`&&e.push(Sy),i!==null&&e.push(ft(Mr(""+i))),null;case"input":e.push(ko("input")),l=v=s=i=null;for(a in r)if(sn.call(r,a)&&(c=r[a],c!=null))switch(a){case"children":case"dangerouslySetInnerHTML":throw Error(ut(399,"input"));case"defaultChecked":l=c;break;case"defaultValue":s=c;break;case"checked":v=c;break;case"value":i=c;break;default:_n(e,n,a,c)}return v!==null?_n(e,n,"checked",v):l!==null&&_n(e,n,"checked",l),i!==null?_n(e,n,"value",i):s!==null&&_n(e,n,"value",s),e.push(iM),null;case"menuitem":e.push(ko("menuitem"));for(var T in r)if(sn.call(r,T)&&(i=r[T],i!=null))switch(T){case"children":case"dangerouslySetInnerHTML":throw Error(ut(400));default:_n(e,n,T,i)}return e.push(Wi),null;case"title":e.push(ko("title")),i=null;for(_ in r)if(sn.call(r,_)&&(a=r[_],a!=null))switch(_){case"children":i=a;break;case"dangerouslySetInnerHTML":throw Error(ut(434));default:_n(e,n,_,a)}return e.push(Wi),i;case"listing":case"pre":e.push(ko(t)),a=i=null;for(l in r)if(sn.call(r,l)&&(s=r[l],s!=null))switch(l){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;default:_n(e,n,l,s)}if(e.push(Wi),a!=null){if(i!=null)throw Error(ut(60));if(typeof a!="object"||!("__html"in a))throw Error(ut(61));r=a.__html,r!=null&&(typeof r=="string"&&0<r.length&&r[0]===`
|
|
21
21
|
`?e.push(Sy,ft(r)):e.push(ft(""+r)))}return typeof i=="string"&&i[0]===`
|
|
22
|
-
`&&e.push(Sy),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(ko(t));for(var R in r)if(sn.call(r,R)&&(i=r[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(ut(399,t));default:_n(e,n,R,i)}return e.push(iM),null;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 by(e,r,t,n);case"html":return o.insertionMode===0&&e.push(yL),by(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return by(e,r,t,n);e.push(ko(t)),a=i=null;for(c in r)if(sn.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":TM(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:CM(c)&&typeof s!="function"&&typeof s!="symbol"&&e.push(Gi,ft(c),Ql,ft(Mr(s)),ts)}return e.push(Wi),Dp(e,a,i),i}}var xL=Oe("</"),_L=Oe(">"),bL=Oe('<template id="'),SL=Oe('"></template>'),ML=Oe("<!--$-->"),EL=Oe('<!--$?--><template id="'),CL=Oe('"></template>'),TL=Oe("<!--$!-->"),kL=Oe("<!--/$-->"),PL=Oe("<template"),RL=Oe('"'),IL=Oe(' data-dgst="');Oe(' data-msg="');Oe(' data-stck="');var OL=Oe("></template>");function sM(e,t,r){if(je(e,EL),r===null)throw Error(ut(395));return je(e,r),Bt(e,CL)}var AL=Oe('<div hidden id="'),DL=Oe('">'),NL=Oe("</div>"),FL=Oe('<svg aria-hidden="true" style="display:none" id="'),LL=Oe('">'),BL=Oe("</svg>"),$L=Oe('<math aria-hidden="true" style="display:none" id="'),UL=Oe('">'),zL=Oe("</math>"),VL=Oe('<table hidden id="'),jL=Oe('">'),HL=Oe("</table>"),GL=Oe('<table hidden><tbody id="'),WL=Oe('">'),ZL=Oe("</tbody></table>"),qL=Oe('<table hidden><tr id="'),QL=Oe('">'),JL=Oe("</tr></table>"),KL=Oe('<table hidden><colgroup id="'),XL=Oe('">'),YL=Oe("</colgroup></table>");function eB(e,t,r,n){switch(r.insertionMode){case 0:case 1:return je(e,AL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,DL);case 2:return je(e,FL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,LL);case 3:return je(e,$L),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,UL);case 4:return je(e,VL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,jL);case 5:return je(e,GL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,WL);case 6:return je(e,qL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,QL);case 7:return je(e,KL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,XL);default:throw Error(ut(397))}}function tB(e,t){switch(t.insertionMode){case 0:case 1:return Bt(e,NL);case 2:return Bt(e,BL);case 3:return Bt(e,zL);case 4:return Bt(e,HL);case 5:return Bt(e,ZL);case 6:return Bt(e,JL);case 7:return Bt(e,YL);default:throw Error(ut(397))}}var rB=Oe('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nB=Oe('$RS("'),oB=Oe('","'),iB=Oe('")<\/script>'),aB=Oe('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),sB=Oe('$RC("'),lB=Oe('","'),uB=Oe('")<\/script>'),cB=Oe('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),fB=Oe('$RX("'),dB=Oe('"'),pB=Oe(")<\/script>"),My=Oe(","),hB=/[<\u2028\u2029]/g;function Ey(e){return JSON.stringify(e).replace(hB,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Bc=Object.assign,mB=Symbol.for("react.element"),kM=Symbol.for("react.portal"),PM=Symbol.for("react.fragment"),RM=Symbol.for("react.strict_mode"),IM=Symbol.for("react.profiler"),OM=Symbol.for("react.provider"),AM=Symbol.for("react.context"),DM=Symbol.for("react.forward_ref"),NM=Symbol.for("react.suspense"),FM=Symbol.for("react.suspense_list"),LM=Symbol.for("react.memo"),Ny=Symbol.for("react.lazy"),gB=Symbol.for("react.scope"),vB=Symbol.for("react.debug_trace_mode"),yB=Symbol.for("react.legacy_hidden"),wB=Symbol.for("react.default_value"),lM=Symbol.iterator;function ky(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 PM:return"Fragment";case kM:return"Portal";case IM:return"Profiler";case RM:return"StrictMode";case NM:return"Suspense";case FM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case AM:return(e.displayName||"Context")+".Consumer";case OM:return(e._context.displayName||"Context")+".Provider";case DM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LM:return t=e.displayName||null,t!==null?t:ky(e.type)||"Memo";case Ny:t=e._payload,e=e._init;try{return ky(e(t))}catch(r){}}return null}var BM={};function uM(e,t){if(e=e.contextTypes,!e)return BM;var r={},n;for(n in e)r[n]=t[n];return r}var ns=null;function jp(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(ut(401))}else{if(r===null)throw Error(ut(401));jp(e,r)}t.context._currentValue=t.value}}function $M(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&$M(e)}function UM(e){var t=e.parent;t!==null&&UM(t),e.context._currentValue=e.value}function zM(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(ut(402));e.depth===t.depth?jp(e,t):zM(e,t)}function VM(e,t){var r=t.parent;if(r===null)throw Error(ut(402));e.depth===r.depth?jp(e,r):VM(e,r),t.context._currentValue=t.value}function Bp(e){var t=ns;t!==e&&(t===null?UM(e):e===null?$M(t):t.depth===e.depth?jp(t,e):t.depth>e.depth?zM(t,e):VM(t,e),ns=e)}var cM={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function fM(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=cM,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Bc({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&cM.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Bc({},i,s)):Bc(i,s))}e.state=i}else i.queue=null}var xB={id:1,overflow:""};function Py(e,t,r){var n=e.id;e=e.overflow;var o=32-Np(n)-1;n&=~(1<<o),r+=1;var i=32-Np(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-Np(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Np=Math.clz32?Math.clz32:SB,_B=Math.log,bB=Math.LN2;function SB(e){return e>>>=0,e===0?32:31-(_B(e)/bB|0)|0}function MB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var EB=typeof Object.is=="function"?Object.is:MB,oi=null,Fy=null,Fp=null,At=null,Fc=!1,$p=!1,$c=0,Zi=null,Hp=0;function rs(){if(oi===null)throw Error(ut(321));return oi}function dM(){if(0<Hp)throw Error(ut(312));return{memoizedState:null,queue:null,next:null}}function Ly(){return At===null?Fp===null?(Fc=!1,Fp=At=dM()):(Fc=!0,At=Fp):At.next===null?(Fc=!1,At=At.next=dM()):(Fc=!0,At=At.next),At}function By(){Fy=oi=null,$p=!1,Fp=null,Hp=0,At=Zi=null}function jM(e,t){return typeof t=="function"?t(e):t}function pM(e,t,r){if(oi=rs(),At=Ly(),Fc){var n=At.queue;if(t=n.dispatch,Zi!==null&&(r=Zi.get(n),r!==void 0)){Zi.delete(n),n=At.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return At.memoizedState=n,[n,t]}return[At.memoizedState,t]}return e=e===jM?typeof t=="function"?t():t:r!==void 0?r(t):t,At.memoizedState=e,e=At.queue={last:null,dispatch:null},e=e.dispatch=CB.bind(null,oi,e),[At.memoizedState,e]}function hM(e,t){if(oi=rs(),At=Ly(),t=t===void 0?null:t,At!==null){var r=At.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!EB(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),At.memoizedState=[e,t],e}function CB(e,t,r){if(25<=Hp)throw Error(ut(301));if(e===oi)if($p=!0,e={action:r,next:null},Zi===null&&(Zi=new Map),r=Zi.get(t),r===void 0)Zi.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function TB(){throw Error(ut(394))}function Ip(){}var mM={readContext:function(e){return e._currentValue},useContext:function(e){return rs(),e._currentValue},useMemo:hM,useReducer:pM,useRef:function(e){oi=rs(),At=Ly();var t=At.memoizedState;return t===null?(e={current:e},At.memoizedState=e):t},useState:function(e){return pM(jM,e)},useInsertionEffect:Ip,useLayoutEffect:function(){},useCallback:function(e,t){return hM(function(){return e},t)},useImperativeHandle:Ip,useEffect:Ip,useDebugValue:Ip,useDeferredValue:function(e){return rs(),e},useTransition:function(){return rs(),[!1,TB]},useId:function(){var e=Fy.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Np(e)-1)).toString(32)+t;var r=Lp;if(r===null)throw Error(ut(404));return t=$c++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return rs(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(ut(407));return r()}},Lp=null,Cy=SM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function kB(e){return console.error(e),null}function Lc(){}function PB(e,t,r,n,o,i,a,s,l){var c=[],v=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:v,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?kB:o,onAllReady:i===void 0?Lc:i,onShellReady:a===void 0?Lc:a,onShellError:s===void 0?Lc:s,onFatalError:l===void 0?Lc:l},r=Up(t,0,null,r,!1,!1),r.parentFlushed=!0,e=$y(t,e,null,r,v,BM,null,xB),c.push(e),t}function $y(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var c=e.pingedTasks;c.push(l),c.length===1&&WM(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function Up(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Uc(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function zp(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,EM(e.destination,t)):(e.status=1,e.fatalError=t)}function gM(e,t,r,n,o){for(oi={},Fy=t,$c=0,e=r(n,o);$p;)$p=!1,$c=0,Hp+=1,At=null,e=r(n,o);return By(),e}function vM(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(ut(108,ky(n)||"Unknown",s));n=Bc({},a,r)}t.legacyContext=n,Mn(e,t,o),t.legacyContext=a}else Mn(e,t,o)}function yM(e,t){if(e&&e.defaultProps){t=Bc({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ry(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=uM(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),fM(i,r,n,o),vM(e,t,i,r)}else{i=uM(r,t.legacyContext),o=gM(e,t,r,n,i);var a=$c!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)fM(o,r,n,i),vM(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=Py(n,1,0);try{Mn(e,t,o)}finally{t.treeContext=n}}else Mn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=wL(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=pL(a,r,n),Iy(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(xL,ft(r),_L)}o.lastPushedText=!1}else{switch(r){case yB:case vB:case RM:case IM:case PM:Mn(e,t,n.children);return;case FM:Mn(e,t,n.children);return;case gB:throw Error(ut(343));case NM:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=Up(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var c=Up(e,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=c;try{if(Iy(e,t,n),c.lastPushedText&&c.textEmbedded&&c.chunks.push(Dy),c.status=1,Vp(s,c),s.pendingTasks===0)break e}catch(v){c.status=4,s.forceClientRender=!0,s.errorDigest=Uc(e,v)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=$y(e,i,r,l,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case DM:if(n=gM(e,t,r.render,n,o),$c!==0){r=t.treeContext,t.treeContext=Py(r,1,0);try{Mn(e,t,n)}finally{t.treeContext=r}}else Mn(e,t,n);return;case LM:r=r.type,n=yM(r,n),Ry(e,t,r,n,o);return;case OM:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,a=ns,ns=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,Mn(e,t,o),e=ns,e===null)throw Error(ut(403));n=e.parentValue,e.context._currentValue=n===wB?e.context._defaultValue:n,e=ns=e.parent,t.context=e;return;case AM:n=n.children,n=n(r._currentValue),Mn(e,t,n);return;case Ny:o=r._init,r=o(r._payload),n=yM(r,n),Ry(e,t,r,n,void 0);return}throw Error(ut(130,r==null?r:typeof r,""))}}function Mn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case mB:Ry(e,t,r.type,r.props,r.ref);return;case kM:throw Error(ut(257));case Ny:var n=r._init;r=n(r._payload),Mn(e,t,r);return}if(Ty(r)){wM(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=lM&&r[lM]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);wM(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(ut(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=tM(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=tM(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function wM(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Py(i,n,o);try{Iy(e,t,r[o])}finally{t.treeContext=i}}}function Iy(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Mn(e,t,r)}catch(l){if(By(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var a=t.blockedSegment,s=Up(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=$y(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Bp(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Bp(i),l}}function RB(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,GM(this,t,e)}function HM(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(ut(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return HM(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Vp(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Vp(e,r)}else e.completedSegments.push(t)}function GM(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(ut(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Lc,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Vp(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(RB,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Vp(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function WM(e){if(e.status!==2){var t=ns,r=Cy.current;Cy.current=mM;var n=Lp;Lp=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(l.status===0){Bp(a.context);try{Mn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(Dy),a.abortSet.delete(a),l.status=1,GM(s,a.blockedBoundary,l)}catch(O){if(By(),typeof O=="object"&&O!==null&&typeof O.then=="function"){var c=a.ping;O.then(c,c)}else{a.abortSet.delete(a),l.status=4;var v=a.blockedBoundary,_=O,T=Uc(s,_);if(v===null?zp(s,_):(v.pendingTasks--,v.forceClientRender||(v.forceClientRender=!0,v.errorDigest=T,v.parentFlushed&&s.clientRenderedBoundaries.push(v))),s.allPendingTasks--,s.allPendingTasks===0){var R=s.onAllReady;R()}}}finally{}}}o.splice(0,i),e.destination!==null&&Uy(e,e.destination)}catch(O){Uc(e,O),zp(e,O)}finally{Lp=n,Cy.current=r,r===mM&&Bp(t)}}}function Op(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,je(t,bL),je(t,e.placeholderPrefix),e=ft(n.toString(16)),je(t,e),Bt(t,SL);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)je(t,n[i]);o=Gp(e,t,o)}for(;i<n.length-1;i++)je(t,n[i]);return i<n.length&&(o=Bt(t,n[i])),o;default:throw Error(ut(390))}}function Gp(e,t,r){var n=r.boundary;if(n===null)return Op(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Bt(t,TL),je(t,PL),n&&(je(t,IL),je(t,ft(Mr(n))),je(t,RL)),Bt(t,OL),Op(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=Oe(o.boundaryPrefix+i.toString(16)),n=n.id=o,sM(t,e.responseState,n),Op(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),sM(t,e.responseState,n.id),Op(e,t,r);else{if(Bt(t,ML),r=n.completedSegments,r.length!==1)throw Error(ut(391));Gp(e,t,r[0])}return Bt(t,kL)}function xM(e,t,r){return eB(t,e.responseState,r.formatContext,r.id),Gp(e,t,r),tB(t,r.formatContext)}function _M(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)ZM(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,je(t,e.startInlineScript),e.sentCompleteBoundaryFunction?je(t,sB):(e.sentCompleteBoundaryFunction=!0,je(t,aB)),n===null)throw Error(ut(395));return r=ft(r.toString(16)),je(t,n),je(t,lB),je(t,e.segmentPrefix),je(t,r),Bt(t,uB)}function ZM(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ut(392));return xM(e,t,n)}return xM(e,t,n),e=e.responseState,je(t,e.startInlineScript),e.sentCompleteSegmentFunction?je(t,nB):(e.sentCompleteSegmentFunction=!0,je(t,rB)),je(t,e.segmentPrefix),o=ft(o.toString(16)),je(t,o),je(t,oB),je(t,e.placeholderPrefix),je(t,o),Bt(t,iB)}function Uy(e,t){bn=new Uint8Array(512),Sn=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){Gp(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)je(t,n[r]);r<n.length&&Bt(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,l=a.id,c=a.errorDigest,v=a.errorMessage,_=a.errorComponentStack;if(je(n,s.startInlineScript),s.sentClientRenderFunction?je(n,fB):(s.sentClientRenderFunction=!0,je(n,cB)),l===null)throw Error(ut(395));if(je(n,l),je(n,dB),(c||v||_)&&(je(n,My),je(n,ft(Ey(c||"")))),(v||_)&&(je(n,My),je(n,ft(Ey(v||"")))),_&&(je(n,My),je(n,ft(Ey(_)))),!Bt(n,pB)){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var T=e.completedBoundaries;for(i=0;i<T.length;i++)if(!_M(e,t,T[i])){e.destination=null,i++,T.splice(0,i);return}T.splice(0,i),K7(t),bn=new Uint8Array(512),Sn=0;var R=e.partialBoundaries;for(i=0;i<R.length;i++){var O=R[i];e:{o=e,a=t;var $=O.completedSegments;for(s=0;s<$.length;s++)if(!ZM(o,a,O,$[s])){s++,$.splice(0,s);var V=!1;break e}$.splice(0,s),V=!0}if(!V){e.destination=null,i++,R.splice(0,i);return}}R.splice(0,i);var F=e.completedBoundaries;for(i=0;i<F.length;i++)if(!_M(e,t,F[i])){e.destination=null,i++,F.splice(0,i);return}F.splice(0,i)}finally{K7(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function bM(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return HM(n,e,t)}),r.clear(),e.destination!==null&&Uy(e,e.destination)}catch(n){Uc(e,n),zp(e,n)}}zy.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,a=new Promise(function(v,_){i=v,o=_}),s=PB(e,fL(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),dL(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var v=new ReadableStream({type:"bytes",pull:function(_){if(s.status===1)s.status=2,EM(_,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=_;try{Uy(s,_)}catch(T){Uc(s,T),zp(s,T)}}},cancel:function(){bM(s)}},{highWaterMark:0});v.allReady=a,r(v)},function(v){a.catch(function(){}),n(v)},o);if(t&&t.signal){var l=t.signal,c=function(){bM(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}WM(s)})};zy.version="18.2.0"});var JM=et(os=>{"use strict";d();h();p();var Jl,QM;Jl=J7(),QM=qM();os.version=Jl.version;os.renderToString=Jl.renderToString;os.renderToStaticMarkup=Jl.renderToStaticMarkup;os.renderToNodeStream=Jl.renderToNodeStream;os.renderToStaticNodeStream=Jl.renderToStaticNodeStream;os.renderToReadableStream=QM.renderToReadableStream});var r8=et(Dt=>{"use strict";d();h();p();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getLocalStorage=Dt.getLocalStorageOrThrow=Dt.getCrypto=Dt.getCryptoOrThrow=Dt.getLocation=Dt.getLocationOrThrow=Dt.getNavigator=Dt.getNavigatorOrThrow=Dt.getDocument=Dt.getDocumentOrThrow=Dt.getFromWindowOrThrow=Dt.getFromWindow=void 0;function is(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Dt.getFromWindow=is;function Kl(e){let t=is(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Dt.getFromWindowOrThrow=Kl;function AB(){return Kl("document")}Dt.getDocumentOrThrow=AB;function DB(){return is("document")}Dt.getDocument=DB;function NB(){return Kl("navigator")}Dt.getNavigatorOrThrow=NB;function FB(){return is("navigator")}Dt.getNavigator=FB;function LB(){return Kl("location")}Dt.getLocationOrThrow=LB;function BB(){return is("location")}Dt.getLocation=BB;function $B(){return Kl("crypto")}Dt.getCryptoOrThrow=$B;function UB(){return is("crypto")}Dt.getCrypto=UB;function zB(){return Kl("localStorage")}Dt.getLocalStorageOrThrow=zB;function VB(){return is("localStorage")}Dt.getLocalStorage=VB});var o8=et(Wp=>{"use strict";d();h();p();Object.defineProperty(Wp,"__esModule",{value:!0});Wp.getWindowMetadata=void 0;var n8=r8();function jB(){let e,t;try{e=n8.getDocumentOrThrow(),t=n8.getLocationOrThrow()}catch(_){return null}function r(){let _=e.getElementsByTagName("link"),T=[];for(let R=0;R<_.length;R++){let O=_[R],$=O.getAttribute("rel");if($&&$.toLowerCase().indexOf("icon")>-1){let V=O.getAttribute("href");if(V)if(V.toLowerCase().indexOf("https:")===-1&&V.toLowerCase().indexOf("http:")===-1&&V.indexOf("//")!==0){let F=t.protocol+"//"+t.host;if(V.indexOf("/")===0)F+=V;else{let N=t.pathname.split("/");N.pop(),F+=N.join("/")+"/"+V}T.push(F)}else if(V.indexOf("//")===0){let F=t.protocol+V;T.push(F)}else T.push(V)}}return T}function n(..._){let T=e.getElementsByTagName("meta");for(let R=0;R<T.length;R++){let O=T[R],$=["itemprop","property","name"].map(V=>O.getAttribute(V)).filter(V=>V?_.includes(V):!1);if($.length&&$){let V=O.getAttribute("content");if(V)return V}}return""}function o(){let _=n("name","og:site_name","og:title","twitter:title");return _||(_=e.title),_}function i(){return n("description","og:description","twitter:description","keywords")}let a=o(),s=i(),l=t.origin,c=r();return{description:s,url:l,icons:c,name:a}}Wp.getWindowMetadata=jB});var i8=et(Nt=>{"use strict";d();h();p();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLocalStorage=Nt.getLocalStorageOrThrow=Nt.getCrypto=Nt.getCryptoOrThrow=Nt.getLocation=Nt.getLocationOrThrow=Nt.getNavigator=Nt.getNavigatorOrThrow=Nt.getDocument=Nt.getDocumentOrThrow=Nt.getFromWindowOrThrow=Nt.getFromWindow=void 0;function as(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Nt.getFromWindow=as;function Xl(e){let t=as(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Nt.getFromWindowOrThrow=Xl;function HB(){return Xl("document")}Nt.getDocumentOrThrow=HB;function GB(){return as("document")}Nt.getDocument=GB;function WB(){return Xl("navigator")}Nt.getNavigatorOrThrow=WB;function ZB(){return as("navigator")}Nt.getNavigator=ZB;function qB(){return Xl("location")}Nt.getLocationOrThrow=qB;function QB(){return as("location")}Nt.getLocation=QB;function JB(){return Xl("crypto")}Nt.getCryptoOrThrow=JB;function KB(){return as("crypto")}Nt.getCrypto=KB;function XB(){return Xl("localStorage")}Nt.getLocalStorageOrThrow=XB;function YB(){return as("localStorage")}Nt.getLocalStorage=YB});var x8=et((w8,Zy)=>{d();h();p();(function(e,t){"use strict";function r(Z,w){if(!Z)throw new Error(w||"Assertion failed")}function n(Z,w){Z.super_=w;var k=function(){};k.prototype=w.prototype,Z.prototype=new k,Z.prototype.constructor=Z}function o(Z,w,k){if(o.isBN(Z))return Z;this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null&&((w==="le"||w==="be")&&(k=w,w=10),this._init(Z||0,w||10,k||"be"))}typeof e=="object"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{i=ym().Buffer}catch(Z){}o.isBN=function(w){return w instanceof o?!0:w!==null&&typeof w=="object"&&w.constructor.wordSize===o.wordSize&&Array.isArray(w.words)},o.max=function(w,k){return w.cmp(k)>0?w:k},o.min=function(w,k){return w.cmp(k)<0?w:k},o.prototype._init=function(w,k,I){if(typeof w=="number")return this._initNumber(w,k,I);if(typeof w=="object")return this._initArray(w,k,I);k==="hex"&&(k=16),r(k===(k|0)&&k>=2&&k<=36),w=w.toString().replace(/\s+/g,"");var b=0;w[0]==="-"&&b++,k===16?this._parseHex(w,b):this._parseBase(w,k,b),w[0]==="-"&&(this.negative=1),this.strip(),I==="le"&&this._initArray(this.toArray(),k,I)},o.prototype._initNumber=function(w,k,I){w<0&&(this.negative=1,w=-w),w<67108864?(this.words=[w&67108863],this.length=1):w<4503599627370496?(this.words=[w&67108863,w/67108864&67108863],this.length=2):(r(w<9007199254740992),this.words=[w&67108863,w/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),k,I)},o.prototype._initArray=function(w,k,I){if(r(typeof w.length=="number"),w.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(w.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var u,m,y=0;if(I==="be")for(b=w.length-1,u=0;b>=0;b-=3)m=w[b]|w[b-1]<<8|w[b-2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(I==="le")for(b=0,u=0;b<w.length;b+=3)m=w[b]|w[b+1]<<8|w[b+2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function a(Z,w,k){for(var I=0,b=Math.min(Z.length,k),u=w;u<b;u++){var m=Z.charCodeAt(u)-48;I<<=4,m>=49&&m<=54?I|=m-49+10:m>=17&&m<=22?I|=m-17+10:I|=m&15}return I}o.prototype._parseHex=function(w,k){this.length=Math.ceil((w.length-k)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var b,u,m=0;for(I=w.length-6,b=0;I>=k;I-=6)u=a(w,I,I+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303,m+=24,m>=26&&(m-=26,b++);I+6!==k&&(u=a(w,k,I+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303),this.strip()};function s(Z,w,k,I){for(var b=0,u=Math.min(Z.length,k),m=w;m<u;m++){var y=Z.charCodeAt(m)-48;b*=I,y>=49?b+=y-49+10:y>=17?b+=y-17+10:b+=y}return b}o.prototype._parseBase=function(w,k,I){this.words=[0],this.length=1;for(var b=0,u=1;u<=67108863;u*=k)b++;b--,u=u/k|0;for(var m=w.length-I,y=m%b,x=Math.min(m,m-y)+I,f=0,M=I;M<x;M+=b)f=s(w,M,M+b,k),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(y!==0){var W=1;for(f=s(w,M,w.length,k),M=0;M<y;M++)W*=k;this.imuln(W),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},o.prototype.copy=function(w){w.words=new Array(this.length);for(var k=0;k<this.length;k++)w.words[k]=this.words[k];w.length=this.length,w.negative=this.negative,w.red=this.red},o.prototype.clone=function(){var w=new o(null);return this.copy(w),w},o.prototype._expand=function(w){for(;this.length<w;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(w,k){w=w||10,k=k|0||1;var I;if(w===16||w==="hex"){I="";for(var b=0,u=0,m=0;m<this.length;m++){var y=this.words[m],x=((y<<b|u)&16777215).toString(16);u=y>>>24-b&16777215,u!==0||m!==this.length-1?I=l[6-x.length]+x+I:I=x+I,b+=2,b>=26&&(b-=26,m--)}for(u!==0&&(I=u.toString(16)+I);I.length%k!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(w===(w|0)&&w>=2&&w<=36){var f=c[w],M=v[w];I="";var W=this.clone();for(W.negative=0;!W.isZero();){var z=W.modn(M).toString(w);W=W.idivn(M),W.isZero()?I=z+I:I=l[f-z.length]+z+I}for(this.isZero()&&(I="0"+I);I.length%k!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var w=this.words[0];return this.length===2?w+=this.words[1]*67108864:this.length===3&&this.words[2]===1?w+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-w:w},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(w,k){return r(typeof i<"u"),this.toArrayLike(i,w,k)},o.prototype.toArray=function(w,k){return this.toArrayLike(Array,w,k)},o.prototype.toArrayLike=function(w,k,I){var b=this.byteLength(),u=I||Math.max(1,b);r(b<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var m=k==="le",y=new w(u),x,f,M=this.clone();if(m){for(f=0;!M.isZero();f++)x=M.andln(255),M.iushrn(8),y[f]=x;for(;f<u;f++)y[f]=0}else{for(f=0;f<u-b;f++)y[f]=0;for(f=0;!M.isZero();f++)x=M.andln(255),M.iushrn(8),y[u-f-1]=x}return y},Math.clz32?o.prototype._countBits=function(w){return 32-Math.clz32(w)}:o.prototype._countBits=function(w){var k=w,I=0;return k>=4096&&(I+=13,k>>>=13),k>=64&&(I+=7,k>>>=7),k>=8&&(I+=4,k>>>=4),k>=2&&(I+=2,k>>>=2),I+k},o.prototype._zeroBits=function(w){if(w===0)return 26;var k=w,I=0;return(k&8191)===0&&(I+=13,k>>>=13),(k&127)===0&&(I+=7,k>>>=7),(k&15)===0&&(I+=4,k>>>=4),(k&3)===0&&(I+=2,k>>>=2),(k&1)===0&&I++,I},o.prototype.bitLength=function(){var w=this.words[this.length-1],k=this._countBits(w);return(this.length-1)*26+k};function _(Z){for(var w=new Array(Z.bitLength()),k=0;k<w.length;k++){var I=k/26|0,b=k%26;w[k]=(Z.words[I]&1<<b)>>>b}return w}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var w=0,k=0;k<this.length;k++){var I=this._zeroBits(this.words[k]);if(w+=I,I!==26)break}return w},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(w){return this.negative!==0?this.abs().inotn(w).iaddn(1):this.clone()},o.prototype.fromTwos=function(w){return this.testn(w-1)?this.notn(w).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(w){for(;this.length<w.length;)this.words[this.length++]=0;for(var k=0;k<w.length;k++)this.words[k]=this.words[k]|w.words[k];return this.strip()},o.prototype.ior=function(w){return r((this.negative|w.negative)===0),this.iuor(w)},o.prototype.or=function(w){return this.length>w.length?this.clone().ior(w):w.clone().ior(this)},o.prototype.uor=function(w){return this.length>w.length?this.clone().iuor(w):w.clone().iuor(this)},o.prototype.iuand=function(w){var k;this.length>w.length?k=w:k=this;for(var I=0;I<k.length;I++)this.words[I]=this.words[I]&w.words[I];return this.length=k.length,this.strip()},o.prototype.iand=function(w){return r((this.negative|w.negative)===0),this.iuand(w)},o.prototype.and=function(w){return this.length>w.length?this.clone().iand(w):w.clone().iand(this)},o.prototype.uand=function(w){return this.length>w.length?this.clone().iuand(w):w.clone().iuand(this)},o.prototype.iuxor=function(w){var k,I;this.length>w.length?(k=this,I=w):(k=w,I=this);for(var b=0;b<I.length;b++)this.words[b]=k.words[b]^I.words[b];if(this!==k)for(;b<k.length;b++)this.words[b]=k.words[b];return this.length=k.length,this.strip()},o.prototype.ixor=function(w){return r((this.negative|w.negative)===0),this.iuxor(w)},o.prototype.xor=function(w){return this.length>w.length?this.clone().ixor(w):w.clone().ixor(this)},o.prototype.uxor=function(w){return this.length>w.length?this.clone().iuxor(w):w.clone().iuxor(this)},o.prototype.inotn=function(w){r(typeof w=="number"&&w>=0);var k=Math.ceil(w/26)|0,I=w%26;this._expand(k),I>0&&k--;for(var b=0;b<k;b++)this.words[b]=~this.words[b]&67108863;return I>0&&(this.words[b]=~this.words[b]&67108863>>26-I),this.strip()},o.prototype.notn=function(w){return this.clone().inotn(w)},o.prototype.setn=function(w,k){r(typeof w=="number"&&w>=0);var I=w/26|0,b=w%26;return this._expand(I+1),k?this.words[I]=this.words[I]|1<<b:this.words[I]=this.words[I]&~(1<<b),this.strip()},o.prototype.iadd=function(w){var k;if(this.negative!==0&&w.negative===0)return this.negative=0,k=this.isub(w),this.negative^=1,this._normSign();if(this.negative===0&&w.negative!==0)return w.negative=0,k=this.isub(w),w.negative=1,k._normSign();var I,b;this.length>w.length?(I=this,b=w):(I=w,b=this);for(var u=0,m=0;m<b.length;m++)k=(I.words[m]|0)+(b.words[m]|0)+u,this.words[m]=k&67108863,u=k>>>26;for(;u!==0&&m<I.length;m++)k=(I.words[m]|0)+u,this.words[m]=k&67108863,u=k>>>26;if(this.length=I.length,u!==0)this.words[this.length]=u,this.length++;else if(I!==this)for(;m<I.length;m++)this.words[m]=I.words[m];return this},o.prototype.add=function(w){var k;return w.negative!==0&&this.negative===0?(w.negative=0,k=this.sub(w),w.negative^=1,k):w.negative===0&&this.negative!==0?(this.negative=0,k=w.sub(this),this.negative=1,k):this.length>w.length?this.clone().iadd(w):w.clone().iadd(this)},o.prototype.isub=function(w){if(w.negative!==0){w.negative=0;var k=this.iadd(w);return w.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(w),this.negative=1,this._normSign();var I=this.cmp(w);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,u;I>0?(b=this,u=w):(b=w,u=this);for(var m=0,y=0;y<u.length;y++)k=(b.words[y]|0)-(u.words[y]|0)+m,m=k>>26,this.words[y]=k&67108863;for(;m!==0&&y<b.length;y++)k=(b.words[y]|0)+m,m=k>>26,this.words[y]=k&67108863;if(m===0&&y<b.length&&b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this.length=Math.max(this.length,y),b!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(w){return this.clone().isub(w)};function T(Z,w,k){k.negative=w.negative^Z.negative;var I=Z.length+w.length|0;k.length=I,I=I-1|0;var b=Z.words[0]|0,u=w.words[0]|0,m=b*u,y=m&67108863,x=m/67108864|0;k.words[0]=y;for(var f=1;f<I;f++){for(var M=x>>>26,W=x&67108863,z=Math.min(f,w.length-1),S=Math.max(0,f-Z.length+1);S<=z;S++){var G=f-S|0;b=Z.words[G]|0,u=w.words[S]|0,m=b*u+W,M+=m/67108864|0,W=m&67108863}k.words[f]=W|0,x=M|0}return x!==0?k.words[f]=x|0:k.length--,k.strip()}var R=function(w,k,I){var b=w.words,u=k.words,m=I.words,y=0,x,f,M,W=b[0]|0,z=W&8191,S=W>>>13,G=b[1]|0,de=G&8191,P=G>>>13,ee=b[2]|0,oe=ee&8191,ce=ee>>>13,ge=b[3]|0,J=ge&8191,Y=ge>>>13,K=b[4]|0,fe=K&8191,te=K>>>13,xe=b[5]|0,Ue=xe&8191,Me=xe>>>13,Ve=b[6]|0,Ge=Ve&8191,Q=Ve>>>13,E=b[7]|0,L=E&8191,A=E>>>13,B=b[8]|0,j=B&8191,H=B>>>13,ne=b[9]|0,re=ne&8191,ae=ne>>>13,le=u[0]|0,me=le&8191,pe=le>>>13,Ce=u[1]|0,Te=Ce&8191,Ne=Ce>>>13,Fe=u[2]|0,Ie=Fe&8191,_e=Fe>>>13,ke=u[3]|0,we=ke&8191,Re=ke>>>13,Pe=u[4]|0,qe=Pe&8191,Le=Pe>>>13,tt=u[5]|0,be=tt&8191,ze=tt>>>13,ct=u[6]|0,it=ct&8191,Qe=ct>>>13,Ke=u[7]|0,ht=Ke&8191,We=Ke>>>13,wt=u[8]|0,Et=wt&8191,He=wt>>>13,Je=u[9]|0,Xe=Je&8191,Be=Je>>>13;I.negative=w.negative^k.negative,I.length=19,x=Math.imul(z,me),f=Math.imul(z,pe),f=f+Math.imul(S,me)|0,M=Math.imul(S,pe);var at=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(at>>>26)|0,at&=67108863,x=Math.imul(de,me),f=Math.imul(de,pe),f=f+Math.imul(P,me)|0,M=Math.imul(P,pe),x=x+Math.imul(z,Te)|0,f=f+Math.imul(z,Ne)|0,f=f+Math.imul(S,Te)|0,M=M+Math.imul(S,Ne)|0;var ar=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ar>>>26)|0,ar&=67108863,x=Math.imul(oe,me),f=Math.imul(oe,pe),f=f+Math.imul(ce,me)|0,M=Math.imul(ce,pe),x=x+Math.imul(de,Te)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(P,Te)|0,M=M+Math.imul(P,Ne)|0,x=x+Math.imul(z,Ie)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(S,Ie)|0,M=M+Math.imul(S,_e)|0;var st=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(J,me),f=Math.imul(J,pe),f=f+Math.imul(Y,me)|0,M=Math.imul(Y,pe),x=x+Math.imul(oe,Te)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Ne)|0,x=x+Math.imul(de,Ie)|0,f=f+Math.imul(de,_e)|0,f=f+Math.imul(P,Ie)|0,M=M+Math.imul(P,_e)|0,x=x+Math.imul(z,we)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(S,we)|0,M=M+Math.imul(S,Re)|0;var dt=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(fe,me),f=Math.imul(fe,pe),f=f+Math.imul(te,me)|0,M=Math.imul(te,pe),x=x+Math.imul(J,Te)|0,f=f+Math.imul(J,Ne)|0,f=f+Math.imul(Y,Te)|0,M=M+Math.imul(Y,Ne)|0,x=x+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,_e)|0,f=f+Math.imul(ce,Ie)|0,M=M+Math.imul(ce,_e)|0,x=x+Math.imul(de,we)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(P,we)|0,M=M+Math.imul(P,Re)|0,x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,Le)|0,f=f+Math.imul(S,qe)|0,M=M+Math.imul(S,Le)|0;var Cn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,x=Math.imul(Ue,me),f=Math.imul(Ue,pe),f=f+Math.imul(Me,me)|0,M=Math.imul(Me,pe),x=x+Math.imul(fe,Te)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(te,Te)|0,M=M+Math.imul(te,Ne)|0,x=x+Math.imul(J,Ie)|0,f=f+Math.imul(J,_e)|0,f=f+Math.imul(Y,Ie)|0,M=M+Math.imul(Y,_e)|0,x=x+Math.imul(oe,we)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,we)|0,M=M+Math.imul(ce,Re)|0,x=x+Math.imul(de,qe)|0,f=f+Math.imul(de,Le)|0,f=f+Math.imul(P,qe)|0,M=M+Math.imul(P,Le)|0,x=x+Math.imul(z,be)|0,f=f+Math.imul(z,ze)|0,f=f+Math.imul(S,be)|0,M=M+Math.imul(S,ze)|0;var Tn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,x=Math.imul(Ge,me),f=Math.imul(Ge,pe),f=f+Math.imul(Q,me)|0,M=Math.imul(Q,pe),x=x+Math.imul(Ue,Te)|0,f=f+Math.imul(Ue,Ne)|0,f=f+Math.imul(Me,Te)|0,M=M+Math.imul(Me,Ne)|0,x=x+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,_e)|0,f=f+Math.imul(te,Ie)|0,M=M+Math.imul(te,_e)|0,x=x+Math.imul(J,we)|0,f=f+Math.imul(J,Re)|0,f=f+Math.imul(Y,we)|0,M=M+Math.imul(Y,Re)|0,x=x+Math.imul(oe,qe)|0,f=f+Math.imul(oe,Le)|0,f=f+Math.imul(ce,qe)|0,M=M+Math.imul(ce,Le)|0,x=x+Math.imul(de,be)|0,f=f+Math.imul(de,ze)|0,f=f+Math.imul(P,be)|0,M=M+Math.imul(P,ze)|0,x=x+Math.imul(z,it)|0,f=f+Math.imul(z,Qe)|0,f=f+Math.imul(S,it)|0,M=M+Math.imul(S,Qe)|0;var kn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(kn>>>26)|0,kn&=67108863,x=Math.imul(L,me),f=Math.imul(L,pe),f=f+Math.imul(A,me)|0,M=Math.imul(A,pe),x=x+Math.imul(Ge,Te)|0,f=f+Math.imul(Ge,Ne)|0,f=f+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Ne)|0,x=x+Math.imul(Ue,Ie)|0,f=f+Math.imul(Ue,_e)|0,f=f+Math.imul(Me,Ie)|0,M=M+Math.imul(Me,_e)|0,x=x+Math.imul(fe,we)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(te,we)|0,M=M+Math.imul(te,Re)|0,x=x+Math.imul(J,qe)|0,f=f+Math.imul(J,Le)|0,f=f+Math.imul(Y,qe)|0,M=M+Math.imul(Y,Le)|0,x=x+Math.imul(oe,be)|0,f=f+Math.imul(oe,ze)|0,f=f+Math.imul(ce,be)|0,M=M+Math.imul(ce,ze)|0,x=x+Math.imul(de,it)|0,f=f+Math.imul(de,Qe)|0,f=f+Math.imul(P,it)|0,M=M+Math.imul(P,Qe)|0,x=x+Math.imul(z,ht)|0,f=f+Math.imul(z,We)|0,f=f+Math.imul(S,ht)|0,M=M+Math.imul(S,We)|0;var Pn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(j,me),f=Math.imul(j,pe),f=f+Math.imul(H,me)|0,M=Math.imul(H,pe),x=x+Math.imul(L,Te)|0,f=f+Math.imul(L,Ne)|0,f=f+Math.imul(A,Te)|0,M=M+Math.imul(A,Ne)|0,x=x+Math.imul(Ge,Ie)|0,f=f+Math.imul(Ge,_e)|0,f=f+Math.imul(Q,Ie)|0,M=M+Math.imul(Q,_e)|0,x=x+Math.imul(Ue,we)|0,f=f+Math.imul(Ue,Re)|0,f=f+Math.imul(Me,we)|0,M=M+Math.imul(Me,Re)|0,x=x+Math.imul(fe,qe)|0,f=f+Math.imul(fe,Le)|0,f=f+Math.imul(te,qe)|0,M=M+Math.imul(te,Le)|0,x=x+Math.imul(J,be)|0,f=f+Math.imul(J,ze)|0,f=f+Math.imul(Y,be)|0,M=M+Math.imul(Y,ze)|0,x=x+Math.imul(oe,it)|0,f=f+Math.imul(oe,Qe)|0,f=f+Math.imul(ce,it)|0,M=M+Math.imul(ce,Qe)|0,x=x+Math.imul(de,ht)|0,f=f+Math.imul(de,We)|0,f=f+Math.imul(P,ht)|0,M=M+Math.imul(P,We)|0,x=x+Math.imul(z,Et)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(S,Et)|0,M=M+Math.imul(S,He)|0;var Rn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,x=Math.imul(re,me),f=Math.imul(re,pe),f=f+Math.imul(ae,me)|0,M=Math.imul(ae,pe),x=x+Math.imul(j,Te)|0,f=f+Math.imul(j,Ne)|0,f=f+Math.imul(H,Te)|0,M=M+Math.imul(H,Ne)|0,x=x+Math.imul(L,Ie)|0,f=f+Math.imul(L,_e)|0,f=f+Math.imul(A,Ie)|0,M=M+Math.imul(A,_e)|0,x=x+Math.imul(Ge,we)|0,f=f+Math.imul(Ge,Re)|0,f=f+Math.imul(Q,we)|0,M=M+Math.imul(Q,Re)|0,x=x+Math.imul(Ue,qe)|0,f=f+Math.imul(Ue,Le)|0,f=f+Math.imul(Me,qe)|0,M=M+Math.imul(Me,Le)|0,x=x+Math.imul(fe,be)|0,f=f+Math.imul(fe,ze)|0,f=f+Math.imul(te,be)|0,M=M+Math.imul(te,ze)|0,x=x+Math.imul(J,it)|0,f=f+Math.imul(J,Qe)|0,f=f+Math.imul(Y,it)|0,M=M+Math.imul(Y,Qe)|0,x=x+Math.imul(oe,ht)|0,f=f+Math.imul(oe,We)|0,f=f+Math.imul(ce,ht)|0,M=M+Math.imul(ce,We)|0,x=x+Math.imul(de,Et)|0,f=f+Math.imul(de,He)|0,f=f+Math.imul(P,Et)|0,M=M+Math.imul(P,He)|0,x=x+Math.imul(z,Xe)|0,f=f+Math.imul(z,Be)|0,f=f+Math.imul(S,Xe)|0,M=M+Math.imul(S,Be)|0;var ra=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ra>>>26)|0,ra&=67108863,x=Math.imul(re,Te),f=Math.imul(re,Ne),f=f+Math.imul(ae,Te)|0,M=Math.imul(ae,Ne),x=x+Math.imul(j,Ie)|0,f=f+Math.imul(j,_e)|0,f=f+Math.imul(H,Ie)|0,M=M+Math.imul(H,_e)|0,x=x+Math.imul(L,we)|0,f=f+Math.imul(L,Re)|0,f=f+Math.imul(A,we)|0,M=M+Math.imul(A,Re)|0,x=x+Math.imul(Ge,qe)|0,f=f+Math.imul(Ge,Le)|0,f=f+Math.imul(Q,qe)|0,M=M+Math.imul(Q,Le)|0,x=x+Math.imul(Ue,be)|0,f=f+Math.imul(Ue,ze)|0,f=f+Math.imul(Me,be)|0,M=M+Math.imul(Me,ze)|0,x=x+Math.imul(fe,it)|0,f=f+Math.imul(fe,Qe)|0,f=f+Math.imul(te,it)|0,M=M+Math.imul(te,Qe)|0,x=x+Math.imul(J,ht)|0,f=f+Math.imul(J,We)|0,f=f+Math.imul(Y,ht)|0,M=M+Math.imul(Y,We)|0,x=x+Math.imul(oe,Et)|0,f=f+Math.imul(oe,He)|0,f=f+Math.imul(ce,Et)|0,M=M+Math.imul(ce,He)|0,x=x+Math.imul(de,Xe)|0,f=f+Math.imul(de,Be)|0,f=f+Math.imul(P,Xe)|0,M=M+Math.imul(P,Be)|0;var na=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(na>>>26)|0,na&=67108863,x=Math.imul(re,Ie),f=Math.imul(re,_e),f=f+Math.imul(ae,Ie)|0,M=Math.imul(ae,_e),x=x+Math.imul(j,we)|0,f=f+Math.imul(j,Re)|0,f=f+Math.imul(H,we)|0,M=M+Math.imul(H,Re)|0,x=x+Math.imul(L,qe)|0,f=f+Math.imul(L,Le)|0,f=f+Math.imul(A,qe)|0,M=M+Math.imul(A,Le)|0,x=x+Math.imul(Ge,be)|0,f=f+Math.imul(Ge,ze)|0,f=f+Math.imul(Q,be)|0,M=M+Math.imul(Q,ze)|0,x=x+Math.imul(Ue,it)|0,f=f+Math.imul(Ue,Qe)|0,f=f+Math.imul(Me,it)|0,M=M+Math.imul(Me,Qe)|0,x=x+Math.imul(fe,ht)|0,f=f+Math.imul(fe,We)|0,f=f+Math.imul(te,ht)|0,M=M+Math.imul(te,We)|0,x=x+Math.imul(J,Et)|0,f=f+Math.imul(J,He)|0,f=f+Math.imul(Y,Et)|0,M=M+Math.imul(Y,He)|0,x=x+Math.imul(oe,Xe)|0,f=f+Math.imul(oe,Be)|0,f=f+Math.imul(ce,Xe)|0,M=M+Math.imul(ce,Be)|0;var oa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,x=Math.imul(re,we),f=Math.imul(re,Re),f=f+Math.imul(ae,we)|0,M=Math.imul(ae,Re),x=x+Math.imul(j,qe)|0,f=f+Math.imul(j,Le)|0,f=f+Math.imul(H,qe)|0,M=M+Math.imul(H,Le)|0,x=x+Math.imul(L,be)|0,f=f+Math.imul(L,ze)|0,f=f+Math.imul(A,be)|0,M=M+Math.imul(A,ze)|0,x=x+Math.imul(Ge,it)|0,f=f+Math.imul(Ge,Qe)|0,f=f+Math.imul(Q,it)|0,M=M+Math.imul(Q,Qe)|0,x=x+Math.imul(Ue,ht)|0,f=f+Math.imul(Ue,We)|0,f=f+Math.imul(Me,ht)|0,M=M+Math.imul(Me,We)|0,x=x+Math.imul(fe,Et)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(te,Et)|0,M=M+Math.imul(te,He)|0,x=x+Math.imul(J,Xe)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(Y,Xe)|0,M=M+Math.imul(Y,Be)|0;var ia=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ia>>>26)|0,ia&=67108863,x=Math.imul(re,qe),f=Math.imul(re,Le),f=f+Math.imul(ae,qe)|0,M=Math.imul(ae,Le),x=x+Math.imul(j,be)|0,f=f+Math.imul(j,ze)|0,f=f+Math.imul(H,be)|0,M=M+Math.imul(H,ze)|0,x=x+Math.imul(L,it)|0,f=f+Math.imul(L,Qe)|0,f=f+Math.imul(A,it)|0,M=M+Math.imul(A,Qe)|0,x=x+Math.imul(Ge,ht)|0,f=f+Math.imul(Ge,We)|0,f=f+Math.imul(Q,ht)|0,M=M+Math.imul(Q,We)|0,x=x+Math.imul(Ue,Et)|0,f=f+Math.imul(Ue,He)|0,f=f+Math.imul(Me,Et)|0,M=M+Math.imul(Me,He)|0,x=x+Math.imul(fe,Xe)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(te,Xe)|0,M=M+Math.imul(te,Be)|0;var aa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(aa>>>26)|0,aa&=67108863,x=Math.imul(re,be),f=Math.imul(re,ze),f=f+Math.imul(ae,be)|0,M=Math.imul(ae,ze),x=x+Math.imul(j,it)|0,f=f+Math.imul(j,Qe)|0,f=f+Math.imul(H,it)|0,M=M+Math.imul(H,Qe)|0,x=x+Math.imul(L,ht)|0,f=f+Math.imul(L,We)|0,f=f+Math.imul(A,ht)|0,M=M+Math.imul(A,We)|0,x=x+Math.imul(Ge,Et)|0,f=f+Math.imul(Ge,He)|0,f=f+Math.imul(Q,Et)|0,M=M+Math.imul(Q,He)|0,x=x+Math.imul(Ue,Xe)|0,f=f+Math.imul(Ue,Be)|0,f=f+Math.imul(Me,Xe)|0,M=M+Math.imul(Me,Be)|0;var sa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(re,it),f=Math.imul(re,Qe),f=f+Math.imul(ae,it)|0,M=Math.imul(ae,Qe),x=x+Math.imul(j,ht)|0,f=f+Math.imul(j,We)|0,f=f+Math.imul(H,ht)|0,M=M+Math.imul(H,We)|0,x=x+Math.imul(L,Et)|0,f=f+Math.imul(L,He)|0,f=f+Math.imul(A,Et)|0,M=M+Math.imul(A,He)|0,x=x+Math.imul(Ge,Xe)|0,f=f+Math.imul(Ge,Be)|0,f=f+Math.imul(Q,Xe)|0,M=M+Math.imul(Q,Be)|0;var la=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(la>>>26)|0,la&=67108863,x=Math.imul(re,ht),f=Math.imul(re,We),f=f+Math.imul(ae,ht)|0,M=Math.imul(ae,We),x=x+Math.imul(j,Et)|0,f=f+Math.imul(j,He)|0,f=f+Math.imul(H,Et)|0,M=M+Math.imul(H,He)|0,x=x+Math.imul(L,Xe)|0,f=f+Math.imul(L,Be)|0,f=f+Math.imul(A,Xe)|0,M=M+Math.imul(A,Be)|0;var ua=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ua>>>26)|0,ua&=67108863,x=Math.imul(re,Et),f=Math.imul(re,He),f=f+Math.imul(ae,Et)|0,M=Math.imul(ae,He),x=x+Math.imul(j,Xe)|0,f=f+Math.imul(j,Be)|0,f=f+Math.imul(H,Xe)|0,M=M+Math.imul(H,Be)|0;var ca=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ca>>>26)|0,ca&=67108863,x=Math.imul(re,Xe),f=Math.imul(re,Be),f=f+Math.imul(ae,Xe)|0,M=Math.imul(ae,Be);var fa=(y+x|0)+((f&8191)<<13)|0;return y=(M+(f>>>13)|0)+(fa>>>26)|0,fa&=67108863,m[0]=at,m[1]=ar,m[2]=st,m[3]=dt,m[4]=Cn,m[5]=Tn,m[6]=kn,m[7]=Pn,m[8]=Rn,m[9]=ra,m[10]=na,m[11]=oa,m[12]=ia,m[13]=aa,m[14]=sa,m[15]=la,m[16]=ua,m[17]=ca,m[18]=fa,y!==0&&(m[19]=y,I.length++),I};Math.imul||(R=T);function O(Z,w,k){k.negative=w.negative^Z.negative,k.length=Z.length+w.length;for(var I=0,b=0,u=0;u<k.length-1;u++){var m=b;b=0;for(var y=I&67108863,x=Math.min(u,w.length-1),f=Math.max(0,u-Z.length+1);f<=x;f++){var M=u-f,W=Z.words[M]|0,z=w.words[f]|0,S=W*z,G=S&67108863;m=m+(S/67108864|0)|0,G=G+y|0,y=G&67108863,m=m+(G>>>26)|0,b+=m>>>26,m&=67108863}k.words[u]=y,I=m,m=b}return I!==0?k.words[u]=I:k.length--,k.strip()}function $(Z,w,k){var I=new V;return I.mulp(Z,w,k)}o.prototype.mulTo=function(w,k){var I,b=this.length+w.length;return this.length===10&&w.length===10?I=R(this,w,k):b<63?I=T(this,w,k):b<1024?I=O(this,w,k):I=$(this,w,k),I};function V(Z,w){this.x=Z,this.y=w}V.prototype.makeRBT=function(w){for(var k=new Array(w),I=o.prototype._countBits(w)-1,b=0;b<w;b++)k[b]=this.revBin(b,I,w);return k},V.prototype.revBin=function(w,k,I){if(w===0||w===I-1)return w;for(var b=0,u=0;u<k;u++)b|=(w&1)<<k-u-1,w>>=1;return b},V.prototype.permute=function(w,k,I,b,u,m){for(var y=0;y<m;y++)b[y]=k[w[y]],u[y]=I[w[y]]},V.prototype.transform=function(w,k,I,b,u,m){this.permute(m,w,k,I,b,u);for(var y=1;y<u;y<<=1)for(var x=y<<1,f=Math.cos(2*Math.PI/x),M=Math.sin(2*Math.PI/x),W=0;W<u;W+=x)for(var z=f,S=M,G=0;G<y;G++){var de=I[W+G],P=b[W+G],ee=I[W+G+y],oe=b[W+G+y],ce=z*ee-S*oe;oe=z*oe+S*ee,ee=ce,I[W+G]=de+ee,b[W+G]=P+oe,I[W+G+y]=de-ee,b[W+G+y]=P-oe,G!==x&&(ce=f*z-M*S,S=f*S+M*z,z=ce)}},V.prototype.guessLen13b=function(w,k){var I=Math.max(k,w)|1,b=I&1,u=0;for(I=I/2|0;I;I=I>>>1)u++;return 1<<u+1+b},V.prototype.conjugate=function(w,k,I){if(!(I<=1))for(var b=0;b<I/2;b++){var u=w[b];w[b]=w[I-b-1],w[I-b-1]=u,u=k[b],k[b]=-k[I-b-1],k[I-b-1]=-u}},V.prototype.normalize13b=function(w,k){for(var I=0,b=0;b<k/2;b++){var u=Math.round(w[2*b+1]/k)*8192+Math.round(w[2*b]/k)+I;w[b]=u&67108863,u<67108864?I=0:I=u/67108864|0}return w},V.prototype.convert13b=function(w,k,I,b){for(var u=0,m=0;m<k;m++)u=u+(w[m]|0),I[2*m]=u&8191,u=u>>>13,I[2*m+1]=u&8191,u=u>>>13;for(m=2*k;m<b;++m)I[m]=0;r(u===0),r((u&-8192)===0)},V.prototype.stub=function(w){for(var k=new Array(w),I=0;I<w;I++)k[I]=0;return k},V.prototype.mulp=function(w,k,I){var b=2*this.guessLen13b(w.length,k.length),u=this.makeRBT(b),m=this.stub(b),y=new Array(b),x=new Array(b),f=new Array(b),M=new Array(b),W=new Array(b),z=new Array(b),S=I.words;S.length=b,this.convert13b(w.words,w.length,y,b),this.convert13b(k.words,k.length,M,b),this.transform(y,m,x,f,b,u),this.transform(M,m,W,z,b,u);for(var G=0;G<b;G++){var de=x[G]*W[G]-f[G]*z[G];f[G]=x[G]*z[G]+f[G]*W[G],x[G]=de}return this.conjugate(x,f,b),this.transform(x,f,S,m,b,u),this.conjugate(S,m,b),this.normalize13b(S,b),I.negative=w.negative^k.negative,I.length=w.length+k.length,I.strip()},o.prototype.mul=function(w){var k=new o(null);return k.words=new Array(this.length+w.length),this.mulTo(w,k)},o.prototype.mulf=function(w){var k=new o(null);return k.words=new Array(this.length+w.length),$(this,w,k)},o.prototype.imul=function(w){return this.clone().mulTo(w,this)},o.prototype.imuln=function(w){r(typeof w=="number"),r(w<67108864);for(var k=0,I=0;I<this.length;I++){var b=(this.words[I]|0)*w,u=(b&67108863)+(k&67108863);k>>=26,k+=b/67108864|0,k+=u>>>26,this.words[I]=u&67108863}return k!==0&&(this.words[I]=k,this.length++),this},o.prototype.muln=function(w){return this.clone().imuln(w)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(w){var k=_(w);if(k.length===0)return new o(1);for(var I=this,b=0;b<k.length&&k[b]===0;b++,I=I.sqr());if(++b<k.length)for(var u=I.sqr();b<k.length;b++,u=u.sqr())k[b]!==0&&(I=I.mul(u));return I},o.prototype.iushln=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26,b=67108863>>>26-k<<26-k,u;if(k!==0){var m=0;for(u=0;u<this.length;u++){var y=this.words[u]&b,x=(this.words[u]|0)-y<<k;this.words[u]=x|m,m=y>>>26-k}m&&(this.words[u]=m,this.length++)}if(I!==0){for(u=this.length-1;u>=0;u--)this.words[u+I]=this.words[u];for(u=0;u<I;u++)this.words[u]=0;this.length+=I}return this.strip()},o.prototype.ishln=function(w){return r(this.negative===0),this.iushln(w)},o.prototype.iushrn=function(w,k,I){r(typeof w=="number"&&w>=0);var b;k?b=(k-k%26)/26:b=0;var u=w%26,m=Math.min((w-u)/26,this.length),y=67108863^67108863>>>u<<u,x=I;if(b-=m,b=Math.max(0,b),x){for(var f=0;f<m;f++)x.words[f]=this.words[f];x.length=m}if(m!==0)if(this.length>m)for(this.length-=m,f=0;f<this.length;f++)this.words[f]=this.words[f+m];else this.words[0]=0,this.length=1;var M=0;for(f=this.length-1;f>=0&&(M!==0||f>=b);f--){var W=this.words[f]|0;this.words[f]=M<<26-u|W>>>u,M=W&y}return x&&M!==0&&(x.words[x.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(w,k,I){return r(this.negative===0),this.iushrn(w,k,I)},o.prototype.shln=function(w){return this.clone().ishln(w)},o.prototype.ushln=function(w){return this.clone().iushln(w)},o.prototype.shrn=function(w){return this.clone().ishrn(w)},o.prototype.ushrn=function(w){return this.clone().iushrn(w)},o.prototype.testn=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26,b=1<<k;if(this.length<=I)return!1;var u=this.words[I];return!!(u&b)},o.prototype.imaskn=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(k!==0&&I++,this.length=Math.min(I,this.length),k!==0){var b=67108863^67108863>>>k<<k;this.words[this.length-1]&=b}return this.strip()},o.prototype.maskn=function(w){return this.clone().imaskn(w)},o.prototype.iaddn=function(w){return r(typeof w=="number"),r(w<67108864),w<0?this.isubn(-w):this.negative!==0?this.length===1&&(this.words[0]|0)<w?(this.words[0]=w-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(w),this.negative=1,this):this._iaddn(w)},o.prototype._iaddn=function(w){this.words[0]+=w;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},o.prototype.isubn=function(w){if(r(typeof w=="number"),r(w<67108864),w<0)return this.iaddn(-w);if(this.negative!==0)return this.negative=0,this.iaddn(w),this.negative=1,this;if(this.words[0]-=w,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},o.prototype.addn=function(w){return this.clone().iaddn(w)},o.prototype.subn=function(w){return this.clone().isubn(w)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(w,k,I){var b=w.length+I,u;this._expand(b);var m,y=0;for(u=0;u<w.length;u++){m=(this.words[u+I]|0)+y;var x=(w.words[u]|0)*k;m-=x&67108863,y=(m>>26)-(x/67108864|0),this.words[u+I]=m&67108863}for(;u<this.length-I;u++)m=(this.words[u+I]|0)+y,y=m>>26,this.words[u+I]=m&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)m=-(this.words[u]|0)+y,y=m>>26,this.words[u]=m&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(w,k){var I=this.length-w.length,b=this.clone(),u=w,m=u.words[u.length-1]|0,y=this._countBits(m);I=26-y,I!==0&&(u=u.ushln(I),b.iushln(I),m=u.words[u.length-1]|0);var x=b.length-u.length,f;if(k!=="mod"){f=new o(null),f.length=x+1,f.words=new Array(f.length);for(var M=0;M<f.length;M++)f.words[M]=0}var W=b.clone()._ishlnsubmul(u,1,x);W.negative===0&&(b=W,f&&(f.words[x]=1));for(var z=x-1;z>=0;z--){var S=(b.words[u.length+z]|0)*67108864+(b.words[u.length+z-1]|0);for(S=Math.min(S/m|0,67108863),b._ishlnsubmul(u,S,z);b.negative!==0;)S--,b.negative=0,b._ishlnsubmul(u,1,z),b.isZero()||(b.negative^=1);f&&(f.words[z]=S)}return f&&f.strip(),b.strip(),k!=="div"&&I!==0&&b.iushrn(I),{div:f||null,mod:b}},o.prototype.divmod=function(w,k,I){if(r(!w.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var b,u,m;return this.negative!==0&&w.negative===0?(m=this.neg().divmod(w,k),k!=="mod"&&(b=m.div.neg()),k!=="div"&&(u=m.mod.neg(),I&&u.negative!==0&&u.iadd(w)),{div:b,mod:u}):this.negative===0&&w.negative!==0?(m=this.divmod(w.neg(),k),k!=="mod"&&(b=m.div.neg()),{div:b,mod:m.mod}):(this.negative&w.negative)!==0?(m=this.neg().divmod(w.neg(),k),k!=="div"&&(u=m.mod.neg(),I&&u.negative!==0&&u.isub(w)),{div:m.div,mod:u}):w.length>this.length||this.cmp(w)<0?{div:new o(0),mod:this}:w.length===1?k==="div"?{div:this.divn(w.words[0]),mod:null}:k==="mod"?{div:null,mod:new o(this.modn(w.words[0]))}:{div:this.divn(w.words[0]),mod:new o(this.modn(w.words[0]))}:this._wordDiv(w,k)},o.prototype.div=function(w){return this.divmod(w,"div",!1).div},o.prototype.mod=function(w){return this.divmod(w,"mod",!1).mod},o.prototype.umod=function(w){return this.divmod(w,"mod",!0).mod},o.prototype.divRound=function(w){var k=this.divmod(w);if(k.mod.isZero())return k.div;var I=k.div.negative!==0?k.mod.isub(w):k.mod,b=w.ushrn(1),u=w.andln(1),m=I.cmp(b);return m<0||u===1&&m===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},o.prototype.modn=function(w){r(w<=67108863);for(var k=(1<<26)%w,I=0,b=this.length-1;b>=0;b--)I=(k*I+(this.words[b]|0))%w;return I},o.prototype.idivn=function(w){r(w<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var b=(this.words[I]|0)+k*67108864;this.words[I]=b/w|0,k=b%w}return this.strip()},o.prototype.divn=function(w){return this.clone().idivn(w)},o.prototype.egcd=function(w){r(w.negative===0),r(!w.isZero());var k=this,I=w.clone();k.negative!==0?k=k.umod(w):k=k.clone();for(var b=new o(1),u=new o(0),m=new o(0),y=new o(1),x=0;k.isEven()&&I.isEven();)k.iushrn(1),I.iushrn(1),++x;for(var f=I.clone(),M=k.clone();!k.isZero();){for(var W=0,z=1;(k.words[0]&z)===0&&W<26;++W,z<<=1);if(W>0)for(k.iushrn(W);W-- >0;)(b.isOdd()||u.isOdd())&&(b.iadd(f),u.isub(M)),b.iushrn(1),u.iushrn(1);for(var S=0,G=1;(I.words[0]&G)===0&&S<26;++S,G<<=1);if(S>0)for(I.iushrn(S);S-- >0;)(m.isOdd()||y.isOdd())&&(m.iadd(f),y.isub(M)),m.iushrn(1),y.iushrn(1);k.cmp(I)>=0?(k.isub(I),b.isub(m),u.isub(y)):(I.isub(k),m.isub(b),y.isub(u))}return{a:m,b:y,gcd:I.iushln(x)}},o.prototype._invmp=function(w){r(w.negative===0),r(!w.isZero());var k=this,I=w.clone();k.negative!==0?k=k.umod(w):k=k.clone();for(var b=new o(1),u=new o(0),m=I.clone();k.cmpn(1)>0&&I.cmpn(1)>0;){for(var y=0,x=1;(k.words[0]&x)===0&&y<26;++y,x<<=1);if(y>0)for(k.iushrn(y);y-- >0;)b.isOdd()&&b.iadd(m),b.iushrn(1);for(var f=0,M=1;(I.words[0]&M)===0&&f<26;++f,M<<=1);if(f>0)for(I.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(m),u.iushrn(1);k.cmp(I)>=0?(k.isub(I),b.isub(u)):(I.isub(k),u.isub(b))}var W;return k.cmpn(1)===0?W=b:W=u,W.cmpn(0)<0&&W.iadd(w),W},o.prototype.gcd=function(w){if(this.isZero())return w.abs();if(w.isZero())return this.abs();var k=this.clone(),I=w.clone();k.negative=0,I.negative=0;for(var b=0;k.isEven()&&I.isEven();b++)k.iushrn(1),I.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;I.isEven();)I.iushrn(1);var u=k.cmp(I);if(u<0){var m=k;k=I,I=m}else if(u===0||I.cmpn(1)===0)break;k.isub(I)}while(!0);return I.iushln(b)},o.prototype.invm=function(w){return this.egcd(w).a.umod(w)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(w){return this.words[0]&w},o.prototype.bincn=function(w){r(typeof w=="number");var k=w%26,I=(w-k)/26,b=1<<k;if(this.length<=I)return this._expand(I+1),this.words[I]|=b,this;for(var u=b,m=I;u!==0&&m<this.length;m++){var y=this.words[m]|0;y+=u,u=y>>>26,y&=67108863,this.words[m]=y}return u!==0&&(this.words[m]=u,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(w){var k=w<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var I;if(this.length>1)I=1;else{k&&(w=-w),r(w<=67108863,"Number is too big");var b=this.words[0]|0;I=b===w?0:b<w?-1:1}return this.negative!==0?-I|0:I},o.prototype.cmp=function(w){if(this.negative!==0&&w.negative===0)return-1;if(this.negative===0&&w.negative!==0)return 1;var k=this.ucmp(w);return this.negative!==0?-k|0:k},o.prototype.ucmp=function(w){if(this.length>w.length)return 1;if(this.length<w.length)return-1;for(var k=0,I=this.length-1;I>=0;I--){var b=this.words[I]|0,u=w.words[I]|0;if(b!==u){b<u?k=-1:b>u&&(k=1);break}}return k},o.prototype.gtn=function(w){return this.cmpn(w)===1},o.prototype.gt=function(w){return this.cmp(w)===1},o.prototype.gten=function(w){return this.cmpn(w)>=0},o.prototype.gte=function(w){return this.cmp(w)>=0},o.prototype.ltn=function(w){return this.cmpn(w)===-1},o.prototype.lt=function(w){return this.cmp(w)===-1},o.prototype.lten=function(w){return this.cmpn(w)<=0},o.prototype.lte=function(w){return this.cmp(w)<=0},o.prototype.eqn=function(w){return this.cmpn(w)===0},o.prototype.eq=function(w){return this.cmp(w)===0},o.red=function(w){return new ie(w)},o.prototype.toRed=function(w){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),w.convertTo(this)._forceRed(w)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(w){return this.red=w,this},o.prototype.forceRed=function(w){return r(!this.red,"Already a number in reduction context"),this._forceRed(w)},o.prototype.redAdd=function(w){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,w)},o.prototype.redIAdd=function(w){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,w)},o.prototype.redSub=function(w){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,w)},o.prototype.redISub=function(w){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,w)},o.prototype.redShl=function(w){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,w)},o.prototype.redMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.mul(this,w)},o.prototype.redIMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.imul(this,w)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(w){return r(this.red&&!w.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,w)};var F={k256:null,p224:null,p192:null,p25519:null};function N(Z,w){this.name=Z,this.p=new o(w,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var w=new o(null);return w.words=new Array(Math.ceil(this.n/13)),w},N.prototype.ireduce=function(w){var k=w,I;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),I=k.bitLength();while(I>this.n);var b=I<this.n?-1:k.ucmp(this.p);return b===0?(k.words[0]=0,k.length=1):b>0?k.isub(this.p):k.strip(),k},N.prototype.split=function(w,k){w.iushrn(this.n,0,k)},N.prototype.imulK=function(w){return w.imul(this.k)};function U(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(U,N),U.prototype.split=function(w,k){for(var I=4194303,b=Math.min(w.length,9),u=0;u<b;u++)k.words[u]=w.words[u];if(k.length=b,w.length<=9){w.words[0]=0,w.length=1;return}var m=w.words[9];for(k.words[k.length++]=m&I,u=10;u<w.length;u++){var y=w.words[u]|0;w.words[u-10]=(y&I)<<4|m>>>22,m=y}m>>>=22,w.words[u-10]=m,m===0&&w.length>10?w.length-=10:w.length-=9},U.prototype.imulK=function(w){w.words[w.length]=0,w.words[w.length+1]=0,w.length+=2;for(var k=0,I=0;I<w.length;I++){var b=w.words[I]|0;k+=b*977,w.words[I]=k&67108863,k=b*64+(k/67108864|0)}return w.words[w.length-1]===0&&(w.length--,w.words[w.length-1]===0&&w.length--),w};function q(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(q,N);function X(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(X,N);function ue(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ue,N),ue.prototype.imulK=function(w){for(var k=0,I=0;I<w.length;I++){var b=(w.words[I]|0)*19+k,u=b&67108863;b>>>=26,w.words[I]=u,k=b}return k!==0&&(w.words[w.length++]=k),w},o._prime=function(w){if(F[w])return F[w];var k;if(w==="k256")k=new U;else if(w==="p224")k=new q;else if(w==="p192")k=new X;else if(w==="p25519")k=new ue;else throw new Error("Unknown prime "+w);return F[w]=k,k};function ie(Z){if(typeof Z=="string"){var w=o._prime(Z);this.m=w.p,this.prime=w}else r(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}ie.prototype._verify1=function(w){r(w.negative===0,"red works only with positives"),r(w.red,"red works only with red numbers")},ie.prototype._verify2=function(w,k){r((w.negative|k.negative)===0,"red works only with positives"),r(w.red&&w.red===k.red,"red works only with red numbers")},ie.prototype.imod=function(w){return this.prime?this.prime.ireduce(w)._forceRed(this):w.umod(this.m)._forceRed(this)},ie.prototype.neg=function(w){return w.isZero()?w.clone():this.m.sub(w)._forceRed(this)},ie.prototype.add=function(w,k){this._verify2(w,k);var I=w.add(k);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},ie.prototype.iadd=function(w,k){this._verify2(w,k);var I=w.iadd(k);return I.cmp(this.m)>=0&&I.isub(this.m),I},ie.prototype.sub=function(w,k){this._verify2(w,k);var I=w.sub(k);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},ie.prototype.isub=function(w,k){this._verify2(w,k);var I=w.isub(k);return I.cmpn(0)<0&&I.iadd(this.m),I},ie.prototype.shl=function(w,k){return this._verify1(w),this.imod(w.ushln(k))},ie.prototype.imul=function(w,k){return this._verify2(w,k),this.imod(w.imul(k))},ie.prototype.mul=function(w,k){return this._verify2(w,k),this.imod(w.mul(k))},ie.prototype.isqr=function(w){return this.imul(w,w.clone())},ie.prototype.sqr=function(w){return this.mul(w,w)},ie.prototype.sqrt=function(w){if(w.isZero())return w.clone();var k=this.m.andln(3);if(r(k%2===1),k===3){var I=this.m.add(new o(1)).iushrn(2);return this.pow(w,I)}for(var b=this.m.subn(1),u=0;!b.isZero()&&b.andln(1)===0;)u++,b.iushrn(1);r(!b.isZero());var m=new o(1).toRed(this),y=m.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,x).cmp(y)!==0;)f.redIAdd(y);for(var M=this.pow(f,b),W=this.pow(w,b.addn(1).iushrn(1)),z=this.pow(w,b),S=u;z.cmp(m)!==0;){for(var G=z,de=0;G.cmp(m)!==0;de++)G=G.redSqr();r(de<S);var P=this.pow(M,new o(1).iushln(S-de-1));W=W.redMul(P),M=P.redSqr(),z=z.redMul(M),S=de}return W},ie.prototype.invm=function(w){var k=w._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},ie.prototype.pow=function(w,k){if(k.isZero())return new o(1).toRed(this);if(k.cmpn(1)===0)return w.clone();var I=4,b=new Array(1<<I);b[0]=new o(1).toRed(this),b[1]=w;for(var u=2;u<b.length;u++)b[u]=this.mul(b[u-1],w);var m=b[0],y=0,x=0,f=k.bitLength()%26;for(f===0&&(f=26),u=k.length-1;u>=0;u--){for(var M=k.words[u],W=f-1;W>=0;W--){var z=M>>W&1;if(m!==b[0]&&(m=this.sqr(m)),z===0&&y===0){x=0;continue}y<<=1,y|=z,x++,!(x!==I&&(u!==0||W!==0))&&(m=this.mul(m,b[y]),x=0,y=0)}f=26}return m},ie.prototype.convertTo=function(w){var k=w.umod(this.m);return k===w?k.clone():k},ie.prototype.convertFrom=function(w){var k=w.clone();return k.red=null,k},o.mont=function(w){return new ve(w)};function ve(Z){ie.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(ve,ie),ve.prototype.convertTo=function(w){return this.imod(w.ushln(this.shift))},ve.prototype.convertFrom=function(w){var k=this.imod(w.mul(this.rinv));return k.red=null,k},ve.prototype.imul=function(w,k){if(w.isZero()||k.isZero())return w.words[0]=0,w.length=1,w;var I=w.imul(k),b=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=I.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.mul=function(w,k){if(w.isZero()||k.isZero())return new o(0)._forceRed(this);var I=w.mul(k),b=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=I.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.invm=function(w){var k=this.imod(w._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Zy>"u"||Zy,w8)});var Qy=et((Roe,S8)=>{d();h();p();S8.exports=qy;qy.strict=_8;qy.loose=b8;var y$=Object.prototype.toString,w$={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function qy(e){return _8(e)||b8(e)}function _8(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function b8(e){return w$[y$.call(e)]}});var E8=et((Ioe,M8)=>{d();h();p();var x$=Qy().strict;M8.exports=function(t){if(x$(t)){var r=C.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(r=r.slice(t.byteOffset,t.byteOffset+t.byteLength)),r}else return C.from(t)}});var fE=et((Voe,ch)=>{d();h();p();var G8,W8,Z8,q8,Q8,J8,K8,X8,Y8,uh,t2,eE,tE,eu,rE,nE,oE,iE,aE,sE,lE,uE,cE;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof ch=="object"&&typeof ch.exports=="object"?e(r(t,r(ch.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};G8=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},W8=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},Z8=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o},q8=function(r,n,o,i){var a=arguments.length,s=a<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,n,o,i);else for(var c=r.length-1;c>=0;c--)(l=r[c])&&(s=(a<3?l(s):a>3?l(n,o,s):l(n,o))||s);return a>3&&s&&Object.defineProperty(n,o,s),s},Q8=function(r,n){return function(o,i){n(o,i,r)}},J8=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},K8=function(r,n,o,i){function a(s){return s instanceof o?s:new o(function(l){l(s)})}return new(o||(o=Promise))(function(s,l){function c(T){try{_(i.next(T))}catch(R){l(R)}}function v(T){try{_(i.throw(T))}catch(R){l(R)}}function _(T){T.done?s(T.value):a(T.value).then(c,v)}_((i=i.apply(r,n||[])).next())})},X8=function(r,n){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(_){return function(T){return v([_,T])}}function v(_){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,a&&(s=_[0]&2?a.return:_[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,_[1])).done)return s;switch(a=0,s&&(_=[_[0]&2,s.value]),_[0]){case 0:case 1:s=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,a=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(_[0]===6||_[0]===2)){o=0;continue}if(_[0]===3&&(!s||_[1]>s[0]&&_[1]<s[3])){o.label=_[1];break}if(_[0]===6&&o.label<s[1]){o.label=s[1],s=_;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(_);break}s[2]&&o.ops.pop(),o.trys.pop();continue}_=n.call(r,o)}catch(T){_=[6,T],a=0}finally{i=s=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},cE=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},Y8=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},uh=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},t2=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),a,s=[],l;try{for(;(n===void 0||n-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return s},eE=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(t2(arguments[n]));return r},tE=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),a=0,n=0;n<o;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,a++)i[a]=s[l];return i},eu=function(r){return this instanceof eu?(this.v=r,this):new eu(r)},rE=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),a,s=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(O){i[O]&&(a[O]=function($){return new Promise(function(V,F){s.push([O,$,V,F])>1||c(O,$)})})}function c(O,$){try{v(i[O]($))}catch(V){R(s[0][3],V)}}function v(O){O.value instanceof eu?Promise.resolve(O.value.v).then(_,T):R(s[0][2],O)}function _(O){c("next",O)}function T(O){c("throw",O)}function R(O,$){O($),s.shift(),s.length&&c(s[0][0],s[0][1])}},nE=function(r){var n,o;return n={},i("next"),i("throw",function(a){throw a}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(a,s){n[a]=r[a]?function(l){return(o=!o)?{value:eu(r[a](l)),done:a==="return"}:s?s(l):l}:s}},oE=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof uh=="function"?uh(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(s){o[s]=r[s]&&function(l){return new Promise(function(c,v){l=r[s](l),a(c,v,l.done,l.value)})}}function a(s,l,c,v){Promise.resolve(v).then(function(_){s({value:_,done:c})},l)}},iE=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},aE=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},sE=function(r){return r&&r.__esModule?r:{default:r}},lE=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},uE=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",G8),e("__assign",W8),e("__rest",Z8),e("__decorate",q8),e("__param",Q8),e("__metadata",J8),e("__awaiter",K8),e("__generator",X8),e("__exportStar",Y8),e("__createBinding",cE),e("__values",uh),e("__read",t2),e("__spread",eE),e("__spreadArrays",tE),e("__await",eu),e("__asyncGenerator",rE),e("__asyncDelegator",nE),e("__asyncValues",oE),e("__makeTemplateObject",iE),e("__importStar",aE),e("__importDefault",sE),e("__classPrivateFieldGet",lE),e("__classPrivateFieldSet",uE)})});var pE=et(Xi=>{"use strict";d();h();p();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isBrowserCryptoAvailable=Xi.getSubtleCrypto=Xi.getBrowerCrypto=void 0;function r2(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Xi.getBrowerCrypto=r2;function dE(){let e=r2();return e.subtle||e.webkitSubtle}Xi.getSubtleCrypto=dE;function P$(){return!!r2()&&!!dE()}Xi.isBrowserCryptoAvailable=P$});var gE=et(Yi=>{"use strict";d();h();p();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isBrowser=Yi.isNode=Yi.isReactNative=void 0;function hE(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Yi.isReactNative=hE;function mE(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Yi.isNode=mE;function R$(){return!hE()&&!mE()}Yi.isBrowser=R$});var tu=et(fh=>{"use strict";d();h();p();Object.defineProperty(fh,"__esModule",{value:!0});var vE=fE();vE.__exportStar(pE(),fh);vE.__exportStar(gE(),fh)});var DE=et((Aie,AE)=>{"use strict";d();h();p();AE.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var $E=et((Die,BE)=>{"use strict";d();h();p();var LE="%[a-f0-9]{2}",NE=new RegExp("("+LE+")|([^%]+?)","gi"),FE=new RegExp("("+LE+")+","gi");function u2(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],u2(r),u2(n))}function q$(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(NE)||[],r=1;r<t.length;r++)e=u2(t,r).join(""),t=e.match(NE)||[];return e}}function Q$(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=FE.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(s){var n=q$(r[0]);n!==r[0]&&(t[r[0]]=n)}r=FE.exec(e)}t["%C2"]="\uFFFD";for(var o=Object.keys(t),i=0;i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}BE.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return Q$(e)}}});var zE=et((Nie,UE)=>{"use strict";d();h();p();UE.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var QE=et(ai=>{"use strict";d();h();p();var J$=DE(),K$=$E(),jE=zE(),X$=e=>e==null;function Y$(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Cr(t,e),"[",o,"]"].join("")]:[...r,[Cr(t,e),"[",Cr(o,e),"]=",Cr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Cr(t,e),"[]"].join("")]:[...r,[Cr(t,e),"[]=",Cr(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>n==null||n.length===0?r:r.length===0?[[Cr(t,e),"=",Cr(n,e)].join("")]:[[r,Cr(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Cr(t,e)]:[...r,[Cr(t,e),"=",Cr(n,e)].join("")]}}function eU(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let a=typeof n=="string"&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map(s=>Gc(s,e)):n===null?n:Gc(n,e);o[r]=a};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function HE(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Cr(e,t){return t.encode?t.strict?J$(e):encodeURIComponent(e):e}function Gc(e,t){return t.decode?K$(e):e}function GE(e){return Array.isArray(e)?e.sort():typeof e=="object"?GE(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function WE(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function tU(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function ZE(e){e=WE(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function VE(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function qE(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),HE(t.arrayFormatSeparator);let r=eU(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){let[i,a]=jE(t.decode?o.replace(/\+/g," "):o,"=");a=a===void 0?null:["comma","separator"].includes(t.arrayFormat)?a:Gc(a,t),r(Gc(i,t),a,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let a of Object.keys(i))i[a]=VE(i[a],t);else n[o]=VE(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let a=n[i];return Boolean(a)&&typeof a=="object"&&!Array.isArray(a)?o[i]=GE(a):o[i]=a,o},Object.create(null))}ai.extract=ZE;ai.parse=qE;ai.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),HE(t.arrayFormatSeparator);let r=a=>t.skipNull&&X$(e[a])||t.skipEmptyString&&e[a]==="",n=Y$(t),o={};for(let a of Object.keys(e))r(a)||(o[a]=e[a]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(a=>{let s=e[a];return s===void 0?"":s===null?Cr(a,t):Array.isArray(s)?s.reduce(n(a),[]).join("&"):Cr(a,t)+"="+Cr(s,t)}).filter(a=>a.length>0).join("&")};ai.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=jE(e,"#");return Object.assign({url:r.split("?")[0]||"",query:qE(ZE(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Gc(n,t)}:{})};ai.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);let r=WE(e.url).split("?")[0]||"",n=ai.extract(e.url),o=ai.parse(n,{sort:!1}),i=Object.assign(o,e.query),a=ai.stringify(i,t);a&&(a=`?${a}`);let s=tU(e.url);return e.fragmentIdentifier&&(s=`#${Cr(e.fragmentIdentifier,t)}`),`${r}${a}${s}`}});var rC=et((Kie,tC)=>{"use strict";d();h();p();tC.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var n6=et(r6=>{"use strict";d();h();p();Object.defineProperty(r6,"__esModule",{value:!0});r6.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","330","331","332","334","336","337","339","341","346","347","351","352","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["5","6","7","9"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"\xC5land Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["7","29"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","289","306","343","365","367","403","416","418","431","437","438","450","506","514","519","548","579","581","587","600","604","613","639","647","672","705","709","778","780","807","819","825","867","873","902","905"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"C\xF4te D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"5999",country_name:"Cura\xE7ao",mobile_begin_with:["5","6"],phone_number_lengths:[7]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"R\xE9union",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77"],phone_number_lengths:[9]}]});var MT=et(un=>{"use strict";d();h();p();var $z=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});un.validatePhoneISO3166=un.findCountryPhoneDataByPhoneNumber=un.findPossibleCountryPhoneData=un.findExactCountryPhoneData=un.findCountryPhoneDataByCountry=void 0;var Kc=$z(n6());function Uz(e){return e?e.length===2?Kc.default.find(t=>e.toUpperCase()===t.alpha2)||null:e.length===3?Kc.default.find(t=>e.toUpperCase()===t.alpha3)||null:Kc.default.find(t=>e.toUpperCase()===t.country_name.toUpperCase())||null:Kc.default.find(t=>t.alpha3==="USA")||null}un.findCountryPhoneDataByCountry=Uz;function bT(e,t,r){return r.phone_number_lengths.some(o=>r.country_code.length+o===e.length)&&(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+o))))?r:null}un.findExactCountryPhoneData=bT;function ST(e,t,r){if(!r.phone_number_lengths.some(o=>r.country_code.length+o+1===e.length))return null;if(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+"\\d?"+o))))return r}un.findPossibleCountryPhoneData=ST;function zz(e,t){let r,n;for(let o of Kc.default)!e.match(new RegExp("^"+o.country_code))||(r||(r=bT(e,t,o)),n||(n=ST(e,t,o)));return{exactCountryPhoneData:r,possibleCountryPhoneData:n}}un.findCountryPhoneDataByPhoneNumber=zz;function Vz(e,t,r,n){if(!t.phone_number_lengths)return!1;let o=e.replace(new RegExp("^"+t.country_code),"");if(n&&t&&o.length===e.length)return!1;let i=t.phone_number_lengths,a=t.mobile_begin_with,s=i.some(c=>o.length===c),l=a.length?a.some(c=>o.match(new RegExp("^"+c))):!0;return s&&(!r||l)}un.validatePhoneISO3166=Vz});var CT=et(li=>{"use strict";d();h();p();var jz=li&&li.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(li,"__esModule",{value:!0});li.countryPhoneData=li.phone=void 0;var Hz=jz(n6());li.countryPhoneData=Hz.default;var Xc=MT();function ET(e,{country:t="",validateMobilePrefix:r=!0,strictDetection:n=!1}={}){let o={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null},i=typeof e!="string"?"":e.trim(),a=typeof t!="string"?"":t.trim(),s=Boolean(i.match(/^\+/));i=i.replace(/\D/g,"");let l=(0,Xc.findCountryPhoneDataByCountry)(a);if(!l)return o;let c=!1;if(a)["CIV","COG"].includes(l.alpha3)||(i=i.replace(/^0+/,"")),l.alpha3==="RUS"&&i.length===11&&i.match(/^89/)!==null&&(i=i.replace(/^8+/,"")),!s&&l.phone_number_lengths.includes(i.length)&&(i=`${l.country_code}${i}`);else if(s){let{exactCountryPhoneData:_,possibleCountryPhoneData:T}=(0,Xc.findCountryPhoneDataByPhoneNumber)(i,r);_?l=_:T&&!n?(l=T,i=l.country_code+i.replace(new RegExp(`^${l.country_code}\\d`),"")):l=null}else l.phone_number_lengths.indexOf(i.length)!==-1&&(i=`1${i}`,c=!0);if(!l)return o;let v=(0,Xc.validatePhoneISO3166)(i,l,r,s);return v?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:c&&(l=(0,Xc.findCountryPhoneDataByCountry)("CAN"),v=(0,Xc.validatePhoneISO3166)(i,l,r,s),v)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:o}li.default=ET;li.phone=ET});var IT=et((oue,RT)=>{"use strict";d();h();p();var ps=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93","+..-..-...-...."],["\xC5land Islands","ax","358",""],["Albania (Shqip\xEBri)","al","355","+...(...)...-..."],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (\xD6sterreich)","at","43","+..(...)...-...."],["Azerbaijan (Az\u0259rbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973","+...-....-...."],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375","+...(..)...-..-.."],["Belgium (Belgi\xEB)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (B\xE9nin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (R\xE9publique centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (\u4E2D\u56FD)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["C\xF4te d\u2019Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Cura\xE7ao","cw","599","+...-...-....",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357","+...-..-...-..."],["Czech Republic (\u010Cesk\xE1 republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (Rep\xFAblica Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (F\xF8royar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane fran\xE7aise)","gf","594","+...-.....-...."],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guin\xE9e)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (\u9999\u6E2F)","hk","852","+... .... ...."],["Hungary (Magyarorsz\xE1g)","hu","36","+..(...)...-..."],["Iceland (\xCDsland)","is","354","+... ... ...."],["India (\u092D\u093E\u0930\u0924)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98","+..(...)...-...."],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (\u65E5\u672C)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962","+...-.-....-...."],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965","+...-....-...."],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996","+...(...)...-..."],["Laos (\u0EA5\u0EB2\u0EA7)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (\u6FB3\u9580)","mo","853","+...-....-...."],["Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (M\xE9xico)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212","+...-..-....-..."],["Mozambique (Mo\xE7ambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95","+..-...-..."],["Namibia (Namibi\xEB)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968","+...-..-...-..."],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970","+...-..-...-...."],["Panama (Panam\xE1)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Per\xFA)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974","+...-....-...."],["R\xE9union (La R\xE9union)","re","262","+...-.....-...."],["Romania (Rom\xE2nia)","ro","40","+..-..-...-...."],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barth\xE9lemy (Saint-Barth\xE9lemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239","+...-..-....."],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966","+...-..-...-...."],["Senegal (S\xE9n\xE9gal)","sn","221","+...-..-...-...."],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82","+..-..-...-...."],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211","+...-..-...-...."],["Spain (Espa\xF1a)","es","34","+.. ... ... ..."],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94","+..-..-...-...."],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963","+...-..-....-..."],["Taiwan (\u53F0\u7063)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (\u0E44\u0E17\u0E22)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216","+...-..-...-..."],["Turkey (T\xFCrkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380","+...(..)...-..-.."],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (O\u02BBzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Citt\xE0 del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Vi\u1EC7t Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],Dh={},PT={},TT=function(e,t,r){t in Dh||(Dh[t]=[]);var n=r||0;Dh[t][n]=e};for(ui=0;ui<ps.length;ui++){if(Qr=ps[ui],ps[ui]={name:Qr[0],iso2:Qr[1],dialCode:Qr[2],priority:Qr[4]||0},Qr[3]&&(ps[ui].format=Qr[3]),Qr[5])for(ps[ui].hasAreaCodes=!0,Ah=0;Ah<Qr[5].length;Ah++)kT=Qr[2]+Qr[5][Ah],TT(Qr[1],kT);PT[ps[ui].iso2]=ui,TT(Qr[1],Qr[2],Qr[4])}var Qr,kT,Ah,ui;RT.exports={allCountries:ps,iso2Lookup:PT,allCountryCodes:Dh}});var dj={};gs(dj,{init:()=>lj,open:()=>cj,reset:()=>fj,update:()=>uj});d();h();p();d();h();p();d();h();p();d();h();p();var tw=e=>{let t,r=new Set,n=(l,c)=>{let v=typeof l=="function"?l(t):l;if(!Object.is(v,t)){let _=t;t=(c!=null?c:typeof v!="object")?v:Object.assign({},t,v),r.forEach(T=>T(t,_))}},o=()=>t,s={setState:n,getState:o,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>r.clear()};return t=e(n,o,s),s},rw=e=>e?tw(e):tw;var dw=he(ye(),1),pw=he(cw(),1),{useSyncExternalStoreWithSelector:YP}=pw.default;function eR(e,t=e.getState,r){let n=YP(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,dw.useDebugValue)(n),n}var fw=e=>{let t=typeof e=="function"?rw(e):e,r=(n,o)=>eR(t,n,o);return Object.assign(r,t),r},bf=e=>e?fw(e):fw;d();h();p();var Fw=he(vm(),1);d();h();p();d();h();p();d();h();p();var Pw=he(mw());d();h();p();d();h();p();d();h();p();var gw="logger/5.7.0";var vw=!1,yw=!1,Mf={debug:1,default:2,info:2,warning:3,error:4,off:5},ww=Mf.default,xm=null;function tR(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var xw=tR(),_m;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(_m||(_m={}));var Qn;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Qn||(Qn={}));var _w="0123456789abcdef",gt=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Mf[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(ww>Mf[n])&&console.log.apply(console,r)}debug(...t){this._log(gt.levels.DEBUG,t)}info(...t){this._log(gt.levels.INFO,t)}warn(...t){this._log(gt.levels.WARNING,t)}makeError(t,r,n){if(yw)return this.makeError("censored error",r,{});r||(r=gt.errors.UNKNOWN_ERROR),n||(n={});let o=[];Object.keys(n).forEach(l=>{let c=n[l];try{if(c instanceof Uint8Array){let v="";for(let _=0;_<c.length;_++)v+=_w[c[_]>>4],v+=_w[c[_]&15];o.push(l+"=Uint8Array(0x"+v+")")}else o.push(l+"="+JSON.stringify(c))}catch(v){o.push(l+"="+JSON.stringify(n[l].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);let i=t,a="";switch(r){case Qn.NUMERIC_FAULT:{a="NUMERIC_FAULT";let l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":a+="-"+l;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result";break}break}case Qn.CALL_EXCEPTION:case Qn.INSUFFICIENT_FUNDS:case Qn.MISSING_NEW:case Qn.NONCE_EXPIRED:case Qn.REPLACEMENT_UNDERPRICED:case Qn.TRANSACTION_REPLACED:case Qn.UNPREDICTABLE_GAS_LIMIT:a=r;break}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),o.length&&(t+=" ("+o.join(", ")+")");let s=new Error(t);return s.reason=i,s.code=r,Object.keys(n).forEach(function(l){s[l]=n[l]}),s}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,gt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,o){t||this.throwError(r,n,o)}assertArgument(t,r,n,o){t||this.throwArgumentError(r,n,o)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),xw&&this.throwError("platform missing String.prototype.normalize",gt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:xw})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,gt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,gt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,gt.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,gt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",gt.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",gt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",gt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return xm||(xm=new gt(gw)),xm}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),vw){if(!t)return;this.globalLogger().throwError("error censorship permanent",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}yw=!!t,vw=!!r}static setLogLevel(t){let r=Mf[t.toLowerCase()];if(r==null){gt.globalLogger().warn("invalid log level - "+t);return}ww=r}static from(t){return new gt(t)}};gt.errors=Qn;gt.levels=_m;d();h();p();var bw="bytes/5.7.0";var pa=new gt(bw);function Mw(e){return!!e.toHexString}function ws(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return ws(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ew(e){return xs(e)&&!(e.length%2)||hu(e)}function Sw(e){return typeof e=="number"&&e==e&&e%1===0}function hu(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!Sw(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!Sw(r)||r<0||r>=256)return!1}return!0}function cn(e,t){if(t||(t={}),typeof e=="number"){pa.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),ws(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Mw(e)&&(e=e.toHexString()),xs(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":pa.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let o=0;o<r.length;o+=2)n.push(parseInt(r.substring(o,o+2),16));return ws(new Uint8Array(n))}return hu(e)?ws(new Uint8Array(e)):pa.throwArgumentError("invalid arrayify value","value",e)}function mu(e){let t=e.map(o=>cn(o)),r=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(r);return t.reduce((o,i)=>(n.set(i,o),o+i.length),0),ws(n)}function Ef(e,t){e=cn(e),e.length>t&&pa.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),ws(r)}function xs(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var bm="0123456789abcdef";function _s(e,t){if(t||(t={}),typeof e=="number"){pa.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=bm[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Mw(e))return e.toHexString();if(xs(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":pa.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(hu(e)){let r="0x";for(let n=0;n<e.length;n++){let o=e[n];r+=bm[(o&240)>>4]+bm[o&15]}return r}return pa.throwArgumentError("invalid hexlify value","value",e)}d();h();p();var Cw="bignumber/5.7.0";var Mm=Pw.default.BN,Ao=new gt(Cw),Sm={},Tw=9007199254740991;var kw=!1,pr=class{constructor(t,r){t!==Sm&&Ao.throwError("cannot call constructor directly; use BigNumber.from",gt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Yr(vt(this).fromTwos(t))}toTwos(t){return Yr(vt(this).toTwos(t))}abs(){return this._hex[0]==="-"?pr.from(this._hex.substring(1)):this}add(t){return Yr(vt(this).add(vt(t)))}sub(t){return Yr(vt(this).sub(vt(t)))}div(t){return pr.from(t).isZero()&&On("division-by-zero","div"),Yr(vt(this).div(vt(t)))}mul(t){return Yr(vt(this).mul(vt(t)))}mod(t){let r=vt(t);return r.isNeg()&&On("division-by-zero","mod"),Yr(vt(this).umod(r))}pow(t){let r=vt(t);return r.isNeg()&&On("negative-power","pow"),Yr(vt(this).pow(r))}and(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),Yr(vt(this).and(r))}or(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),Yr(vt(this).or(r))}xor(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),Yr(vt(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&On("negative-width","mask"),Yr(vt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&On("negative-width","shl"),Yr(vt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&On("negative-width","shr"),Yr(vt(this).shrn(t))}eq(t){return vt(this).eq(vt(t))}lt(t){return vt(this).lt(vt(t))}lte(t){return vt(this).lte(vt(t))}gt(t){return vt(this).gt(vt(t))}gte(t){return vt(this).gte(vt(t))}isNegative(){return this._hex[0]==="-"}isZero(){return vt(this).isZero()}toNumber(){try{return vt(this).toNumber()}catch(t){On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Ao.throwError("this platform does not support BigInt",gt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?kw||(kw=!0,Ao.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Ao.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",gt.errors.UNEXPECTED_ARGUMENT,{}):Ao.throwError("BigNumber.toString does not accept parameters",gt.errors.UNEXPECTED_ARGUMENT,{})),vt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof pr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new pr(Sm,gu(t)):t.match(/^-?[0-9]+$/)?new pr(Sm,gu(new Mm(t))):Ao.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&On("underflow","BigNumber.from",t),(t>=Tw||t<=-Tw)&&On("overflow","BigNumber.from",t),pr.from(String(t));let r=t;if(typeof r=="bigint")return pr.from(r.toString());if(hu(r))return pr.from(_s(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return pr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(xs(n)||n[0]==="-"&&xs(n.substring(1))))return pr.from(n)}return Ao.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function gu(e){if(typeof e!="string")return gu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Ao.throwArgumentError("invalid hex","value",e),e=gu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function Yr(e){return pr.from(gu(e))}function vt(e){let t=pr.from(e).toHexString();return t[0]==="-"?new Mm("-"+t.substring(3),16):new Mm(t.substring(2),16)}function On(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),Ao.throwError(e,gt.errors.NUMERIC_FAULT,n)}d();h();p();d();h();p();d();h();p();var Rw="strings/5.7.0";var Iw=new gt(Rw),vu;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(vu||(vu={}));var ha;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(ha||(ha={}));function rR(e,t,r,n,o){return Iw.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function Ow(e,t,r,n,o){if(e===ha.BAD_PREFIX||e===ha.UNEXPECTED_CONTINUE){let i=0;for(let a=t+1;a<r.length&&r[a]>>6===2;a++)i++;return i}return e===ha.OVERRUN?r.length-t-1:0}function nR(e,t,r,n,o){return e===ha.OVERLONG?(n.push(o),0):(n.push(65533),Ow(e,t,r,n,o))}var oR=Object.freeze({error:rR,ignore:Ow,replace:nR});function Em(e,t=vu.current){t!=vu.current&&(Iw.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(o&63|128);else if((o&64512)==55296){n++;let i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");let a=65536+((o&1023)<<10)+(i&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128)}return cn(r)}d();h();p();var Aw="solidity/5.7.0";var iR=new RegExp("^bytes([0-9]+)$"),aR=new RegExp("^(u?int)([0-9]*)$"),sR=new RegExp("^(.*)\\[([0-9]*)\\]$"),lR="0000000000000000000000000000000000000000000000000000000000000000",bs=new gt(Aw);function Dw(e,t,r){switch(e){case"address":return r?Ef(t,32):cn(t);case"string":return Em(t);case"bytes":return cn(t);case"bool":return t=t?"0x01":"0x00",r?Ef(t,32):cn(t)}let n=e.match(aR);if(n){let o=parseInt(n[2]||"256");return(n[2]&&String(o)!==n[2]||o%8!==0||o===0||o>256)&&bs.throwArgumentError("invalid number type","type",e),r&&(o=256),t=pr.from(t).toTwos(o),Ef(t,o/8)}if(n=e.match(iR),n){let o=parseInt(n[1]);return(String(o)!==n[1]||o===0||o>32)&&bs.throwArgumentError("invalid bytes type","type",e),cn(t).byteLength!==o&&bs.throwArgumentError(`invalid value for ${e}`,"value",t),r?cn((t+lR).substring(0,66)):t}if(n=e.match(sR),n&&Array.isArray(t)){let o=n[1];parseInt(n[2]||String(t.length))!=t.length&&bs.throwArgumentError(`invalid array length for ${e}`,"value",t);let a=[];return t.forEach(function(s){a.push(Dw(o,s,!0))}),mu(a)}return bs.throwArgumentError("invalid type","type",e)}function Nw(e,t){e.length!=t.length&&bs.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,o){r.push(Dw(n,t[o]))}),_s(mu(r))}function yu(e){return Array.isArray(e)?uR(e):Ew(e)?Cm(e):cR(e)}function uR(e){let[t,r]=e.reduce(([n,o],[i,a])=>(n.push(i),o.push(a),[n,o]),[[],[]]);return Cm(Nw(t,r))}function cR(e){let t=C.from(e);return Cm(t)}function Cm(e){let t=BigInt(fR(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function fR(e){let t=_s(mu([cn(e)]));return"0x"+Fw.default.keccak_256(cn(t))}var Lw=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66};d();h();p();var Tm=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(Tm||{});d();h();p();d();h();p();var Pm=function(e,t){return Pm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Pm(e,t)};function dR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xt=function(){return xt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xt.apply(this,arguments)};function ma(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(v){try{c(n.next(v))}catch(_){a(_)}}function l(v){try{c(n.throw(v))}catch(_){a(_)}}function c(v){v.done?i(v.value):o(v.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function ga(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(v){return l([c,v])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(v){c=[6,v],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function pR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var lt;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(lt||(lt={}));function hR(e,t){if(!e)throw new Error(t)}function mR(e){return e==null?void 0:e.replace(/\/+$/,"")}function gR(e,t){return t===void 0&&(t={}),ma(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,v,_;return ga(this,function(T){switch(T.label){case 0:r=t.retryCount,n=r===void 0?3:r,o=t.retryDelay,i=o===void 0?5e3:o,a=t.retryCheck,s=a===void 0?function(){return!0}:a,l=null,c=0,T.label=1;case 1:if(!(c<n+1))return[3,8];T.label=2;case 2:return T.trys.push([2,4,,5]),[4,e()];case 3:return v=T.sent(),[2,v];case 4:if(_=T.sent(),l=_,!s(_))throw _;return[3,5];case 5:return[4,new Promise(function(R){return setTimeout(R,i)})];case 6:T.sent(),T.label=7;case 7:return c++,[3,1];case 8:throw l}})})}function Bw(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var o=Math.random()*16;return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(r+o)%16|0,r=Math.floor(r/16)),(n==="x"?o:o&3|8).toString(16)})}function Hw(){return new Date().getTime()}function $w(){return new Date().toISOString()}function Uw(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var wu=String.fromCharCode,zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Cf={};function vR(e,t){if(!Cf[e]){Cf[e]={};for(var r=0;r<e.length;r++)Cf[e][e.charAt(r)]=r}return Cf[e][t]}var bu={compressToBase64:function(e){if(e==null)return"";var t=bu._compress(e,6,function(r){return zw.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:bu._decompress(e.length,32,function(t){return vR(zw,e.charAt(t))})},compress:function(e){return bu._compress(e,16,function(t){return wu(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},o={},i=[],a,s,l="",c="",v="",_=2,T=3,R=2,O=0,$=0,V;for(V=0;V<e.length;V+=1)if(l=e.charAt(V),Object.prototype.hasOwnProperty.call(n,l)||(n[l]=T++,o[l]=!0),c=v+l,Object.prototype.hasOwnProperty.call(n,c))v=c;else{if(Object.prototype.hasOwnProperty.call(o,v)){if(v.charCodeAt(0)<256){for(a=0;a<R;a++)O=O<<1,$==t-1?($=0,i.push(r(O)),O=0):$++;for(s=v.charCodeAt(0),a=0;a<8;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}else{for(s=1,a=0;a<R;a++)O=O<<1|s,$==t-1?($=0,i.push(r(O)),O=0):$++,s=0;for(s=v.charCodeAt(0),a=0;a<16;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[v]}else for(s=n[v],a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++),n[c]=T++,v=String(l)}if(v!==""){if(Object.prototype.hasOwnProperty.call(o,v)){if(v.charCodeAt(0)<256){for(a=0;a<R;a++)O=O<<1,$==t-1?($=0,i.push(r(O)),O=0):$++;for(s=v.charCodeAt(0),a=0;a<8;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}else{for(s=1,a=0;a<R;a++)O=O<<1|s,$==t-1?($=0,i.push(r(O)),O=0):$++,s=0;for(s=v.charCodeAt(0),a=0;a<16;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[v]}else for(s=n[v],a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++)}for(s=2,a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;for(;;)if(O=O<<1,$==t-1){i.push(r(O));break}else $++;return i.join("")},decompress:function(e){return e==null?"":e==""?null:bu._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],o=[],i={val:r(0),position:t,index:1},a=4,s=4,l=3,c="",v,_,T,R,O,$,V;for(v=0;v<3;v+=1)n[v]=v;for(T=0,O=Math.pow(2,2),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;switch(T){case 0:for(T=0,O=Math.pow(2,8),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;V=wu(T);break;case 1:for(T=0,O=Math.pow(2,16),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;V=wu(T);break;case 2:return""}for(n[3]=V,_=V,o.push(V);;){if(i.index>e)return"";for(T=0,O=Math.pow(2,l),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;switch(V=T){case 0:for(T=0,O=Math.pow(2,8),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;n[s++]=wu(T),V=s-1,a--;break;case 1:for(T=0,O=Math.pow(2,16),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;n[s++]=wu(T),V=s-1,a--;break;case 2:return o.join("")}if(a==0&&(a=Math.pow(2,l),l++),n[V])c=n[V];else if(V===s)c=_+_.charAt(0);else return null;o.push(c),n[s++]=_+c.charAt(0),a--,_=c,a==0&&(a=Math.pow(2,l),l++)}}},yR=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(o){return o!==r})}},e.prototype.emit=function(t,r){for(var n=0,o=this.events[t]||[];n<o.length;n++){var i=o[n];i(r)}for(var a=0,s=this.events["*"]||[];a<s.length;a++){var i=s[a];i(t,r)}},e}(),wR=function(){function e(t,r){var n=this,o,i,a,s,l,c;this.flagCallReported={},this._events=new yR,hR(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=mR((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(o=r==null?void 0:r.flushInterval)!==null&&o!==void 0?o:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(i=r==null?void 0:r.sendFeatureFlagEvent)!==null&&i!==void 0?i:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(a=r==null?void 0:r.fetchRetryCount)!==null&&a!==void 0?a:3,retryDelay:(s=r==null?void 0:r.fetchRetryDelay)!==null&&s!==void 0?s:3e3},this.requestTimeout=(l=r==null?void 0:r.requestTimeout)!==null&&l!==void 0?l:1e4,this._sessionExpirationTimeSeconds=(c=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&c!==void 0?c:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&Uw(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];r["$feature/".concat(a)]=s}return xt({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,o,i;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(lt.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(lt.AnonymousId,t.bootstrap.distinctId)),!((o=t==null?void 0:t.bootstrap)===null||o===void 0)&&o.featureFlags){var a=Object.keys(((i=t.bootstrap)===null||i===void 0?void 0:i.featureFlags)||{}).filter(function(s){var l,c;return!!(!((c=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||c===void 0)&&c[s])}).reduce(function(s,l){var c,v;return s[l]=((v=(c=t.bootstrap)===null||c===void 0?void 0:c.featureFlags)===null||v===void 0?void 0:v[l])||!1,s},{});this.setKnownFeatureFlags(a)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(lt.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(lt.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(lt.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(lt.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=pR([lt.Queue],t||[],!0);this.clearProps();for(var n=0,o=Object.keys(lt);n<o.length;n++){var i=o[n];r.includes(lt[i])||this.setPersistedProperty(lt[i],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,o){return console.log("PostHog Debug",n,o)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:xt(xt(xt(xt({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(lt.SessionId),r=this.getPersistedProperty(lt.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=Bw(globalThis),this.setPersistedProperty(lt.SessionId,t)),this.setPersistedProperty(lt.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(lt.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(lt.AnonymousId);return t||(t=Bw(globalThis),this.setPersistedProperty(lt.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(lt.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=xt(xt({},this.props),t),this.setPersistedProperty(lt.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(lt.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var o=xt(xt({},this.buildPayload({distinct_id:t,event:"$identify",properties:xt(xt({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(lt.AnonymousId,n),this.setPersistedProperty(lt.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",o),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var o=this.buildPayload({event:t,properties:r});this.enqueue("capture",o)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var o=this.buildPayload({event:"$autocapture",properties:xt(xt({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",o),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:xt(xt({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var o;return this.groups((o={},o[t]=r,o)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var o={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:xt({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",o),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(lt.PersonProperties)||{};return this.setPersistedProperty(lt.PersonProperties,xt(xt({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(lt.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=xt(xt({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(lt.GroupProperties,xt(xt({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),ma(this,void 0,void 0,function(){var r,n,o,i,a,s,l=this;return ga(this,function(c){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),o=this.props.$groups||{},i=this.getPersistedProperty(lt.PersonProperties)||{},a=this.getPersistedProperty(lt.GroupProperties)||{},s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:o,person_properties:i,group_properties:a})},this._decideResponsePromise=this.fetchWithRetry(r,s).then(function(v){return v.json()}).then(function(v){return v.featureFlags&&l.setKnownFeatureFlags(v.featureFlags),v}).finally(function(){l._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(lt.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(lt.FeatureFlags),r=this.getPersistedProperty(lt.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),ma(this,void 0,void 0,function(){return ga(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return ma(r,void 0,void 0,function(){var n;return ga(this,function(o){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return ma(n,void 0,void 0,function(){var o;return ga(this,function(i){return o=this.getFeatureFlag(t),o!==void 0&&r(o),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(lt.OverrideFeatureFlags,null):this.setPersistedProperty(lt.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var o=n.buildPayload({event:t,properties:r});n.enqueue("capture",o)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var o=xt(xt({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:$w()});o.distinctId&&(o.distinct_id=o.distinctId,delete o.distinctId);var i=this.getPersistedProperty(lt.Queue)||[];i.push({message:o}),this.setPersistedProperty(lt.Queue,i),this._events.emit(t,o),i.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=Uw(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(o,i){return o?n(o):r(i)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(lt.Queue)||[];if(!n.length)return t==null?void 0:t();var o=n.splice(0,this.flushAt);this.setPersistedProperty(lt.Queue,n);var i=o.map(function(_){return _.message}),a={api_key:this.apiKey,batch:i,sent_at:$w()},s=function(_){t==null||t(_,i),r._events.emit("flush",i)};this.getCustomUserAgent();var l=JSON.stringify(a),c=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(Hw(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),v=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(bu.compressToBase64(l)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:l};this.fetchWithRetry(c,v).then(function(){return s()}).catch(function(_){if(_.response){var T=new Error(_.response.statusText);return s(T)}s(_)})},e.prototype.fetchWithRetry=function(t,r,n){var o,i;return ma(this,void 0,void 0,function(){var a=this;return ga(this,function(s){return(o=(i=AbortSignal).timeout)!==null&&o!==void 0||(i.timeout=function(c){var v=new AbortController;return setTimeout(function(){return v.abort()},c),v.signal}),[2,gR(function(){return a.fetch(t,xt({signal:AbortSignal.timeout(a.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return ma(this,void 0,void 0,function(){return ga(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),Gw="2.0.0";function xR(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=xt(xt({},t),{$os:bR(e),$browser:Ww(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:MR(e.document.referrer),$device:SR(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:_R(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=xt(xt({},t),{$lib:"js",$lib_version:Gw,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Hw()/1e3}),t}function Qt(e,t){return e.indexOf(t)>=0}function Ww(e,t,r){return t=t||"",r||Qt(e," OPR/")?Qt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Qt(e,"IEMobile")||Qt(e,"WPDesktop")?"Internet Explorer Mobile":Qt(e,"SamsungBrowser/")?"Samsung Internet":Qt(e,"Edge")||Qt(e,"Edg/")?"Microsoft Edge":Qt(e,"FBIOS")?"Facebook Mobile":Qt(e,"Chrome")?"Chrome":Qt(e,"CriOS")?"Chrome iOS":Qt(e,"UCWEB")||Qt(e,"UCBrowser")?"UC Browser":Qt(e,"FxiOS")?"Firefox iOS":Qt(t,"Apple")?Qt(e,"Mobile")?"Mobile Safari":"Safari":Qt(e,"Android")?"Android Mobile":Qt(e,"Konqueror")?"Konqueror":Qt(e,"Firefox")?"Firefox":Qt(e,"MSIE")||Qt(e,"Trident/")?"Internet Explorer":Qt(e,"Gecko")?"Mozilla":""}function _R(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=Ww(e,t,r),i=n[o]||void 0;if(i===void 0)return null;var a=e.match(i);return a?parseFloat(a[a.length-2]):null}function bR(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function SR(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function MR(e){var t=e.split("/");return t.length>=3?t[2]:""}var Zw={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch(i){}return null},setItem:function(e,t){try{var r="",n="",o="",i=e+"="+encodeURIComponent(t)+n+"; path=/"+r+o;document.cookie=i}catch(a){return}},removeItem:function(e){try{Zw.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},Vw=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},jw=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},km=void 0,xu=void 0,_u=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},ER=function(e,t){if(t){if(!localStorage){var r=Vw(t.localStorage);km=jw(r)?r:void 0}if(!xu){var n=Vw(t.sessionStorage);xu=jw(n)?n:void 0}}switch(e){case"cookie":return Zw||km||xu||_u();case"localStorage":return km||xu||_u();case"sessionStorage":return xu||_u();case"memory":return _u();default:return _u()}},qw=function(e){dR(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),o._storage=ER((n==null?void 0:n.persistence)||"localStorage",window),o.setupBootstrap(n),o}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return Gw},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return xt(xt({},e.prototype.getCommonEventProperties.call(this)),xR(window))},t}(wR);function CR(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function TR(e,t){try{return await fetch(e,t)}catch(r){throw CR(r)}}var er=null;typeof globalThis.window<"u"&&(er=new qw("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),er.fetch=TR);var Tf={version:"0.2.2",package:"idkit-js"},Ss=()=>{var e;return(e=er==null?void 0:er.getDistinctId())!=null?e:""},Qw=e=>{e?er==null||er.capture("idkit loaded",Tf):er==null||er.optOut()},Jw=()=>{er==null||er.capture("idkit opened",Tf)},Kw=()=>{er==null||er.capture("idkit phone typed",Tf)},Xw=e=>{er==null||er.capture("idkit phone code retried",Ae(se({},Tf),{channel:e}))};var kR=bf()((e,t)=>({open:!1,code:"",signal:"",actionId:"",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",stage:"ENTER_PHONE",copy:{},setOpen:r=>e({open:r}),setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>e({stage:"ENTER_PHONE",phoneNumber:"",errorState:null}),addSuccessCallback:(r,n)=>{e(o=>(o.successCallbacks[n]=r,o))},addVerificationCallback:(r,n)=>{e(o=>(o.verifyCallbacks[n]=r,o))},setOptions:({handleVerify:r,onSuccess:n,signal:o,actionId:i,autoClose:a,copy:s},l)=>{let c=typeof i=="string"?i:yu(i).digest;e(v=>({actionId:i,stringifiedActionId:c,signal:o,autoClose:a,copy:se(se({},v.copy),s)})),n&&t().addSuccessCallback(n,l),r&&t().addVerificationCallback(r,l)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS"}),t().autoClose&&setTimeout(()=>e({open:!1}),1e3)},n=>{let o;n&&typeof n=="object"&&n.message&&(o=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:o}})})},onOpenChange:r=>{if(r)return Jw(),e({open:r});e({open:r,phoneNumber:"",code:"",processing:!1,stage:"ENTER_PHONE"})}})),zt=kR;d();h();p();var Do={title:"World ID",heading:"Verify your phone number",subheading:"We'll take care of the rest!",success:"Your phone number has been verified"};var Bk=he(x3(),1);d();h();p();var Fk=he(ye(),1);d();h();p();d();h();p();var ur=he(ye()),P3=he(Oa()),Go=he(Hg()),OO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function R3(e,t){return e(t={exports:{}},t.exports),t.exports}var AO=R3(function(e){(function(t){var r=function(V,F,N){if(!l(F)||v(F)||_(F)||T(F)||s(F))return F;var U,q=0,X=0;if(c(F))for(U=[],X=F.length;q<X;q++)U.push(r(V,F[q],N));else for(var ue in U={},F)Object.prototype.hasOwnProperty.call(F,ue)&&(U[V(ue,N)]=r(V,F[ue],N));return U},n=function(V){return R(V)?V:(V=V.replace(/[\-_\s]+(.)?/g,function(F,N){return N?N.toUpperCase():""})).substr(0,1).toLowerCase()+V.substr(1)},o=function(V){var F=n(V);return F.substr(0,1).toUpperCase()+F.substr(1)},i=function(V,F){return function(N,U){var q=(U=U||{}).separator||"_",X=U.split||/(?=[A-Z])/;return N.split(X).join(q)}(V,F).toLowerCase()},a=Object.prototype.toString,s=function(V){return typeof V=="function"},l=function(V){return V===Object(V)},c=function(V){return a.call(V)=="[object Array]"},v=function(V){return a.call(V)=="[object Date]"},_=function(V){return a.call(V)=="[object RegExp]"},T=function(V){return a.call(V)=="[object Boolean]"},R=function(V){return(V-=0)==V},O=function(V,F){var N=F&&"process"in F?F.process:F;return typeof N!="function"?V:function(U,q){return N(U,V,q)}},$={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(V,F){return r(O(n,F),V)},decamelizeKeys:function(V,F){return r(O(i,F),V,F)},pascalizeKeys:function(V,F){return r(O(o,F),V)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=$:t.humps=$})(OO)}).decamelize,DO=R3(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},t.apply(this,arguments)}e.exports=t}),NO=function(e){if(Array.isArray(e))return e},FO=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||s.return==null||s.return()}finally{if(o)throw i}}return r}},k3=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},LO=function(e,t){if(e){if(typeof e=="string")return k3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k3(e,t):void 0}},BO=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
22
|
+
`&&e.push(Sy),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":e.push(ko(t));for(var R in r)if(sn.call(r,R)&&(i=r[R],i!=null))switch(R){case"children":case"dangerouslySetInnerHTML":throw Error(ut(399,t));default:_n(e,n,R,i)}return e.push(iM),null;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 by(e,r,t,n);case"html":return o.insertionMode===0&&e.push(yL),by(e,r,t,n);default:if(t.indexOf("-")===-1&&typeof r.is!="string")return by(e,r,t,n);e.push(ko(t)),a=i=null;for(c in r)if(sn.call(r,c)&&(s=r[c],s!=null))switch(c){case"children":i=s;break;case"dangerouslySetInnerHTML":a=s;break;case"style":TM(e,n,s);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:CM(c)&&typeof s!="function"&&typeof s!="symbol"&&e.push(Gi,ft(c),Ql,ft(Mr(s)),ts)}return e.push(Wi),Dp(e,a,i),i}}var xL=Oe("</"),_L=Oe(">"),bL=Oe('<template id="'),SL=Oe('"></template>'),ML=Oe("<!--$-->"),EL=Oe('<!--$?--><template id="'),CL=Oe('"></template>'),TL=Oe("<!--$!-->"),kL=Oe("<!--/$-->"),PL=Oe("<template"),RL=Oe('"'),IL=Oe(' data-dgst="');Oe(' data-msg="');Oe(' data-stck="');var OL=Oe("></template>");function sM(e,t,r){if(je(e,EL),r===null)throw Error(ut(395));return je(e,r),Bt(e,CL)}var AL=Oe('<div hidden id="'),DL=Oe('">'),NL=Oe("</div>"),FL=Oe('<svg aria-hidden="true" style="display:none" id="'),LL=Oe('">'),BL=Oe("</svg>"),$L=Oe('<math aria-hidden="true" style="display:none" id="'),UL=Oe('">'),zL=Oe("</math>"),VL=Oe('<table hidden id="'),jL=Oe('">'),HL=Oe("</table>"),GL=Oe('<table hidden><tbody id="'),WL=Oe('">'),ZL=Oe("</tbody></table>"),qL=Oe('<table hidden><tr id="'),QL=Oe('">'),JL=Oe("</tr></table>"),KL=Oe('<table hidden><colgroup id="'),XL=Oe('">'),YL=Oe("</colgroup></table>");function eB(e,t,r,n){switch(r.insertionMode){case 0:case 1:return je(e,AL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,DL);case 2:return je(e,FL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,LL);case 3:return je(e,$L),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,UL);case 4:return je(e,VL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,jL);case 5:return je(e,GL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,WL);case 6:return je(e,qL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,QL);case 7:return je(e,KL),je(e,t.segmentPrefix),je(e,ft(n.toString(16))),Bt(e,XL);default:throw Error(ut(397))}}function tB(e,t){switch(t.insertionMode){case 0:case 1:return Bt(e,NL);case 2:return Bt(e,BL);case 3:return Bt(e,zL);case 4:return Bt(e,HL);case 5:return Bt(e,ZL);case 6:return Bt(e,JL);case 7:return Bt(e,YL);default:throw Error(ut(397))}}var rB=Oe('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),nB=Oe('$RS("'),oB=Oe('","'),iB=Oe('")<\/script>'),aB=Oe('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),sB=Oe('$RC("'),lB=Oe('","'),uB=Oe('")<\/script>'),cB=Oe('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),fB=Oe('$RX("'),dB=Oe('"'),pB=Oe(")<\/script>"),My=Oe(","),hB=/[<\u2028\u2029]/g;function Ey(e){return JSON.stringify(e).replace(hB,function(t){switch(t){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}})}var Bc=Object.assign,mB=Symbol.for("react.element"),kM=Symbol.for("react.portal"),PM=Symbol.for("react.fragment"),RM=Symbol.for("react.strict_mode"),IM=Symbol.for("react.profiler"),OM=Symbol.for("react.provider"),AM=Symbol.for("react.context"),DM=Symbol.for("react.forward_ref"),NM=Symbol.for("react.suspense"),FM=Symbol.for("react.suspense_list"),LM=Symbol.for("react.memo"),Ny=Symbol.for("react.lazy"),gB=Symbol.for("react.scope"),vB=Symbol.for("react.debug_trace_mode"),yB=Symbol.for("react.legacy_hidden"),wB=Symbol.for("react.default_value"),lM=Symbol.iterator;function ky(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 PM:return"Fragment";case kM:return"Portal";case IM:return"Profiler";case RM:return"StrictMode";case NM:return"Suspense";case FM:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case AM:return(e.displayName||"Context")+".Consumer";case OM:return(e._context.displayName||"Context")+".Provider";case DM:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case LM:return t=e.displayName||null,t!==null?t:ky(e.type)||"Memo";case Ny:t=e._payload,e=e._init;try{return ky(e(t))}catch(r){}}return null}var BM={};function uM(e,t){if(e=e.contextTypes,!e)return BM;var r={},n;for(n in e)r[n]=t[n];return r}var ns=null;function jp(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var r=t.parent;if(e===null){if(r!==null)throw Error(ut(401))}else{if(r===null)throw Error(ut(401));jp(e,r)}t.context._currentValue=t.value}}function $M(e){e.context._currentValue=e.parentValue,e=e.parent,e!==null&&$M(e)}function UM(e){var t=e.parent;t!==null&&UM(t),e.context._currentValue=e.value}function zM(e,t){if(e.context._currentValue=e.parentValue,e=e.parent,e===null)throw Error(ut(402));e.depth===t.depth?jp(e,t):zM(e,t)}function VM(e,t){var r=t.parent;if(r===null)throw Error(ut(402));e.depth===r.depth?jp(e,r):VM(e,r),t.context._currentValue=t.value}function Bp(e){var t=ns;t!==e&&(t===null?UM(e):e===null?$M(t):t.depth===e.depth?jp(t,e):t.depth>e.depth?zM(t,e):VM(t,e),ns=e)}var cM={isMounted:function(){return!1},enqueueSetState:function(e,t){e=e._reactInternals,e.queue!==null&&e.queue.push(t)},enqueueReplaceState:function(e,t){e=e._reactInternals,e.replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function fM(e,t,r,n){var o=e.state!==void 0?e.state:null;e.updater=cM,e.props=r,e.state=o;var i={queue:[],replace:!1};e._reactInternals=i;var a=t.contextType;if(e.context=typeof a=="object"&&a!==null?a._currentValue:n,a=t.getDerivedStateFromProps,typeof a=="function"&&(a=a(r,o),o=a==null?o:Bc({},o,a),e.state=o),typeof t.getDerivedStateFromProps!="function"&&typeof e.getSnapshotBeforeUpdate!="function"&&(typeof e.UNSAFE_componentWillMount=="function"||typeof e.componentWillMount=="function"))if(t=e.state,typeof e.componentWillMount=="function"&&e.componentWillMount(),typeof e.UNSAFE_componentWillMount=="function"&&e.UNSAFE_componentWillMount(),t!==e.state&&cM.enqueueReplaceState(e,e.state,null),i.queue!==null&&0<i.queue.length)if(t=i.queue,a=i.replace,i.queue=null,i.replace=!1,a&&t.length===1)e.state=t[0];else{for(i=a?t[0]:e.state,o=!0,a=a?1:0;a<t.length;a++){var s=t[a];s=typeof s=="function"?s.call(e,i,r,n):s,s!=null&&(o?(o=!1,i=Bc({},i,s)):Bc(i,s))}e.state=i}else i.queue=null}var xB={id:1,overflow:""};function Py(e,t,r){var n=e.id;e=e.overflow;var o=32-Np(n)-1;n&=~(1<<o),r+=1;var i=32-Np(t)+o;if(30<i){var a=o-o%5;return i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,{id:1<<32-Np(t)+o|r<<o|n,overflow:i+e}}return{id:1<<i|r<<o|n,overflow:e}}var Np=Math.clz32?Math.clz32:SB,_B=Math.log,bB=Math.LN2;function SB(e){return e>>>=0,e===0?32:31-(_B(e)/bB|0)|0}function MB(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var EB=typeof Object.is=="function"?Object.is:MB,oi=null,Fy=null,Fp=null,At=null,Fc=!1,$p=!1,$c=0,Zi=null,Hp=0;function rs(){if(oi===null)throw Error(ut(321));return oi}function dM(){if(0<Hp)throw Error(ut(312));return{memoizedState:null,queue:null,next:null}}function Ly(){return At===null?Fp===null?(Fc=!1,Fp=At=dM()):(Fc=!0,At=Fp):At.next===null?(Fc=!1,At=At.next=dM()):(Fc=!0,At=At.next),At}function By(){Fy=oi=null,$p=!1,Fp=null,Hp=0,At=Zi=null}function jM(e,t){return typeof t=="function"?t(e):t}function pM(e,t,r){if(oi=rs(),At=Ly(),Fc){var n=At.queue;if(t=n.dispatch,Zi!==null&&(r=Zi.get(n),r!==void 0)){Zi.delete(n),n=At.memoizedState;do n=e(n,r.action),r=r.next;while(r!==null);return At.memoizedState=n,[n,t]}return[At.memoizedState,t]}return e=e===jM?typeof t=="function"?t():t:r!==void 0?r(t):t,At.memoizedState=e,e=At.queue={last:null,dispatch:null},e=e.dispatch=CB.bind(null,oi,e),[At.memoizedState,e]}function hM(e,t){if(oi=rs(),At=Ly(),t=t===void 0?null:t,At!==null){var r=At.memoizedState;if(r!==null&&t!==null){var n=r[1];e:if(n===null)n=!1;else{for(var o=0;o<n.length&&o<t.length;o++)if(!EB(t[o],n[o])){n=!1;break e}n=!0}if(n)return r[0]}}return e=e(),At.memoizedState=[e,t],e}function CB(e,t,r){if(25<=Hp)throw Error(ut(301));if(e===oi)if($p=!0,e={action:r,next:null},Zi===null&&(Zi=new Map),r=Zi.get(t),r===void 0)Zi.set(t,e);else{for(t=r;t.next!==null;)t=t.next;t.next=e}}function TB(){throw Error(ut(394))}function Ip(){}var mM={readContext:function(e){return e._currentValue},useContext:function(e){return rs(),e._currentValue},useMemo:hM,useReducer:pM,useRef:function(e){oi=rs(),At=Ly();var t=At.memoizedState;return t===null?(e={current:e},At.memoizedState=e):t},useState:function(e){return pM(jM,e)},useInsertionEffect:Ip,useLayoutEffect:function(){},useCallback:function(e,t){return hM(function(){return e},t)},useImperativeHandle:Ip,useEffect:Ip,useDebugValue:Ip,useDeferredValue:function(e){return rs(),e},useTransition:function(){return rs(),[!1,TB]},useId:function(){var e=Fy.treeContext,t=e.overflow;e=e.id,e=(e&~(1<<32-Np(e)-1)).toString(32)+t;var r=Lp;if(r===null)throw Error(ut(404));return t=$c++,e=":"+r.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return rs(),t(e._source)},useSyncExternalStore:function(e,t,r){if(r===void 0)throw Error(ut(407));return r()}},Lp=null,Cy=SM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function kB(e){return console.error(e),null}function Lc(){}function PB(e,t,r,n,o,i,a,s,l){var c=[],v=new Set;return t={destination:null,responseState:t,progressiveChunkSize:n===void 0?12800:n,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:v,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:o===void 0?kB:o,onAllReady:i===void 0?Lc:i,onShellReady:a===void 0?Lc:a,onShellError:s===void 0?Lc:s,onFatalError:l===void 0?Lc:l},r=Up(t,0,null,r,!1,!1),r.parentFlushed=!0,e=$y(t,e,null,r,v,BM,null,xB),c.push(e),t}function $y(e,t,r,n,o,i,a,s){e.allPendingTasks++,r===null?e.pendingRootTasks++:r.pendingTasks++;var l={node:t,ping:function(){var c=e.pingedTasks;c.push(l),c.length===1&&WM(e)},blockedBoundary:r,blockedSegment:n,abortSet:o,legacyContext:i,context:a,treeContext:s};return o.add(l),l}function Up(e,t,r,n,o,i){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:n,boundary:r,lastPushedText:o,textEmbedded:i}}function Uc(e,t){if(e=e.onError(t),e!=null&&typeof e!="string")throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function zp(e,t){var r=e.onShellError;r(t),r=e.onFatalError,r(t),e.destination!==null?(e.status=2,EM(e.destination,t)):(e.status=1,e.fatalError=t)}function gM(e,t,r,n,o){for(oi={},Fy=t,$c=0,e=r(n,o);$p;)$p=!1,$c=0,Hp+=1,At=null,e=r(n,o);return By(),e}function vM(e,t,r,n){var o=r.render(),i=n.childContextTypes;if(i!=null){var a=t.legacyContext;if(typeof r.getChildContext!="function")n=a;else{r=r.getChildContext();for(var s in r)if(!(s in i))throw Error(ut(108,ky(n)||"Unknown",s));n=Bc({},a,r)}t.legacyContext=n,Mn(e,t,o),t.legacyContext=a}else Mn(e,t,o)}function yM(e,t){if(e&&e.defaultProps){t=Bc({},t),e=e.defaultProps;for(var r in e)t[r]===void 0&&(t[r]=e[r]);return t}return t}function Ry(e,t,r,n,o){if(typeof r=="function")if(r.prototype&&r.prototype.isReactComponent){o=uM(r,t.legacyContext);var i=r.contextType;i=new r(n,typeof i=="object"&&i!==null?i._currentValue:o),fM(i,r,n,o),vM(e,t,i,r)}else{i=uM(r,t.legacyContext),o=gM(e,t,r,n,i);var a=$c!==0;if(typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0)fM(o,r,n,i),vM(e,t,o,r);else if(a){n=t.treeContext,t.treeContext=Py(n,1,0);try{Mn(e,t,o)}finally{t.treeContext=n}}else Mn(e,t,o)}else if(typeof r=="string"){switch(o=t.blockedSegment,i=wL(o.chunks,r,n,e.responseState,o.formatContext),o.lastPushedText=!1,a=o.formatContext,o.formatContext=pL(a,r,n),Iy(e,t,i),o.formatContext=a,r){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:o.chunks.push(xL,ft(r),_L)}o.lastPushedText=!1}else{switch(r){case yB:case vB:case RM:case IM:case PM:Mn(e,t,n.children);return;case FM:Mn(e,t,n.children);return;case gB:throw Error(ut(343));case NM:e:{r=t.blockedBoundary,o=t.blockedSegment,i=n.fallback,n=n.children,a=new Set;var s={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:a,errorDigest:null},l=Up(e,o.chunks.length,s,o.formatContext,!1,!1);o.children.push(l),o.lastPushedText=!1;var c=Up(e,0,null,o.formatContext,!1,!1);c.parentFlushed=!0,t.blockedBoundary=s,t.blockedSegment=c;try{if(Iy(e,t,n),c.lastPushedText&&c.textEmbedded&&c.chunks.push(Dy),c.status=1,Vp(s,c),s.pendingTasks===0)break e}catch(v){c.status=4,s.forceClientRender=!0,s.errorDigest=Uc(e,v)}finally{t.blockedBoundary=r,t.blockedSegment=o}t=$y(e,i,r,l,a,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if(typeof r=="object"&&r!==null)switch(r.$$typeof){case DM:if(n=gM(e,t,r.render,n,o),$c!==0){r=t.treeContext,t.treeContext=Py(r,1,0);try{Mn(e,t,n)}finally{t.treeContext=r}}else Mn(e,t,n);return;case LM:r=r.type,n=yM(r,n),Ry(e,t,r,n,o);return;case OM:if(o=n.children,r=r._context,n=n.value,i=r._currentValue,r._currentValue=n,a=ns,ns=n={parent:a,depth:a===null?0:a.depth+1,context:r,parentValue:i,value:n},t.context=n,Mn(e,t,o),e=ns,e===null)throw Error(ut(403));n=e.parentValue,e.context._currentValue=n===wB?e.context._defaultValue:n,e=ns=e.parent,t.context=e;return;case AM:n=n.children,n=n(r._currentValue),Mn(e,t,n);return;case Ny:o=r._init,r=o(r._payload),n=yM(r,n),Ry(e,t,r,n,void 0);return}throw Error(ut(130,r==null?r:typeof r,""))}}function Mn(e,t,r){if(t.node=r,typeof r=="object"&&r!==null){switch(r.$$typeof){case mB:Ry(e,t,r.type,r.props,r.ref);return;case kM:throw Error(ut(257));case Ny:var n=r._init;r=n(r._payload),Mn(e,t,r);return}if(Ty(r)){wM(e,t,r);return}if(r===null||typeof r!="object"?n=null:(n=lM&&r[lM]||r["@@iterator"],n=typeof n=="function"?n:null),n&&(n=n.call(r))){if(r=n.next(),!r.done){var o=[];do o.push(r.value),r=n.next();while(!r.done);wM(e,t,o)}return}throw e=Object.prototype.toString.call(r),Error(ut(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e))}typeof r=="string"?(n=t.blockedSegment,n.lastPushedText=tM(t.blockedSegment.chunks,r,e.responseState,n.lastPushedText)):typeof r=="number"&&(n=t.blockedSegment,n.lastPushedText=tM(t.blockedSegment.chunks,""+r,e.responseState,n.lastPushedText))}function wM(e,t,r){for(var n=r.length,o=0;o<n;o++){var i=t.treeContext;t.treeContext=Py(i,n,o);try{Iy(e,t,r[o])}finally{t.treeContext=i}}}function Iy(e,t,r){var n=t.blockedSegment.formatContext,o=t.legacyContext,i=t.context;try{return Mn(e,t,r)}catch(l){if(By(),typeof l=="object"&&l!==null&&typeof l.then=="function"){r=l;var a=t.blockedSegment,s=Up(e,a.chunks.length,null,a.formatContext,a.lastPushedText,!0);a.children.push(s),a.lastPushedText=!1,e=$y(e,t.node,t.blockedBoundary,s,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,r.then(e,e),t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Bp(i)}else throw t.blockedSegment.formatContext=n,t.legacyContext=o,t.context=i,Bp(i),l}}function RB(e){var t=e.blockedBoundary;e=e.blockedSegment,e.status=3,GM(this,t,e)}function HM(e,t,r){var n=e.blockedBoundary;e.blockedSegment.status=3,n===null?(t.allPendingTasks--,t.status!==2&&(t.status=2,t.destination!==null&&t.destination.close())):(n.pendingTasks--,n.forceClientRender||(n.forceClientRender=!0,e=r===void 0?Error(ut(432)):r,n.errorDigest=t.onError(e),n.parentFlushed&&t.clientRenderedBoundaries.push(n)),n.fallbackAbortableTasks.forEach(function(o){return HM(o,t,r)}),n.fallbackAbortableTasks.clear(),t.allPendingTasks--,t.allPendingTasks===0&&(n=t.onAllReady,n()))}function Vp(e,t){if(t.chunks.length===0&&t.children.length===1&&t.children[0].boundary===null){var r=t.children[0];r.id=t.id,r.parentFlushed=!0,r.status===1&&Vp(e,r)}else e.completedSegments.push(t)}function GM(e,t,r){if(t===null){if(r.parentFlushed){if(e.completedRootSegment!==null)throw Error(ut(389));e.completedRootSegment=r}e.pendingRootTasks--,e.pendingRootTasks===0&&(e.onShellError=Lc,t=e.onShellReady,t())}else t.pendingTasks--,t.forceClientRender||(t.pendingTasks===0?(r.parentFlushed&&r.status===1&&Vp(t,r),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(RB,e),t.fallbackAbortableTasks.clear()):r.parentFlushed&&r.status===1&&(Vp(t,r),t.completedSegments.length===1&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,e.allPendingTasks===0&&(e=e.onAllReady,e())}function WM(e){if(e.status!==2){var t=ns,r=Cy.current;Cy.current=mM;var n=Lp;Lp=e.responseState;try{var o=e.pingedTasks,i;for(i=0;i<o.length;i++){var a=o[i],s=e,l=a.blockedSegment;if(l.status===0){Bp(a.context);try{Mn(s,a,a.node),l.lastPushedText&&l.textEmbedded&&l.chunks.push(Dy),a.abortSet.delete(a),l.status=1,GM(s,a.blockedBoundary,l)}catch(O){if(By(),typeof O=="object"&&O!==null&&typeof O.then=="function"){var c=a.ping;O.then(c,c)}else{a.abortSet.delete(a),l.status=4;var v=a.blockedBoundary,_=O,T=Uc(s,_);if(v===null?zp(s,_):(v.pendingTasks--,v.forceClientRender||(v.forceClientRender=!0,v.errorDigest=T,v.parentFlushed&&s.clientRenderedBoundaries.push(v))),s.allPendingTasks--,s.allPendingTasks===0){var R=s.onAllReady;R()}}}finally{}}}o.splice(0,i),e.destination!==null&&Uy(e,e.destination)}catch(O){Uc(e,O),zp(e,O)}finally{Lp=n,Cy.current=r,r===mM&&Bp(t)}}}function Op(e,t,r){switch(r.parentFlushed=!0,r.status){case 0:var n=r.id=e.nextSegmentId++;return r.lastPushedText=!1,r.textEmbedded=!1,e=e.responseState,je(t,bL),je(t,e.placeholderPrefix),e=ft(n.toString(16)),je(t,e),Bt(t,SL);case 1:r.status=2;var o=!0;n=r.chunks;var i=0;r=r.children;for(var a=0;a<r.length;a++){for(o=r[a];i<o.index;i++)je(t,n[i]);o=Gp(e,t,o)}for(;i<n.length-1;i++)je(t,n[i]);return i<n.length&&(o=Bt(t,n[i])),o;default:throw Error(ut(390))}}function Gp(e,t,r){var n=r.boundary;if(n===null)return Op(e,t,r);if(n.parentFlushed=!0,n.forceClientRender)n=n.errorDigest,Bt(t,TL),je(t,PL),n&&(je(t,IL),je(t,ft(Mr(n))),je(t,RL)),Bt(t,OL),Op(e,t,r);else if(0<n.pendingTasks){n.rootSegmentID=e.nextSegmentId++,0<n.completedSegments.length&&e.partialBoundaries.push(n);var o=e.responseState,i=o.nextSuspenseID++;o=Oe(o.boundaryPrefix+i.toString(16)),n=n.id=o,sM(t,e.responseState,n),Op(e,t,r)}else if(n.byteSize>e.progressiveChunkSize)n.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(n),sM(t,e.responseState,n.id),Op(e,t,r);else{if(Bt(t,ML),r=n.completedSegments,r.length!==1)throw Error(ut(391));Gp(e,t,r[0])}return Bt(t,kL)}function xM(e,t,r){return eB(t,e.responseState,r.formatContext,r.id),Gp(e,t,r),tB(t,r.formatContext)}function _M(e,t,r){for(var n=r.completedSegments,o=0;o<n.length;o++)ZM(e,t,r,n[o]);if(n.length=0,e=e.responseState,n=r.id,r=r.rootSegmentID,je(t,e.startInlineScript),e.sentCompleteBoundaryFunction?je(t,sB):(e.sentCompleteBoundaryFunction=!0,je(t,aB)),n===null)throw Error(ut(395));return r=ft(r.toString(16)),je(t,n),je(t,lB),je(t,e.segmentPrefix),je(t,r),Bt(t,uB)}function ZM(e,t,r,n){if(n.status===2)return!0;var o=n.id;if(o===-1){if((n.id=r.rootSegmentID)===-1)throw Error(ut(392));return xM(e,t,n)}return xM(e,t,n),e=e.responseState,je(t,e.startInlineScript),e.sentCompleteSegmentFunction?je(t,nB):(e.sentCompleteSegmentFunction=!0,je(t,rB)),je(t,e.segmentPrefix),o=ft(o.toString(16)),je(t,o),je(t,oB),je(t,e.placeholderPrefix),je(t,o),Bt(t,iB)}function Uy(e,t){bn=new Uint8Array(512),Sn=0;try{var r=e.completedRootSegment;if(r!==null&&e.pendingRootTasks===0){Gp(e,t,r),e.completedRootSegment=null;var n=e.responseState.bootstrapChunks;for(r=0;r<n.length-1;r++)je(t,n[r]);r<n.length&&Bt(t,n[r])}var o=e.clientRenderedBoundaries,i;for(i=0;i<o.length;i++){var a=o[i];n=t;var s=e.responseState,l=a.id,c=a.errorDigest,v=a.errorMessage,_=a.errorComponentStack;if(je(n,s.startInlineScript),s.sentClientRenderFunction?je(n,fB):(s.sentClientRenderFunction=!0,je(n,cB)),l===null)throw Error(ut(395));if(je(n,l),je(n,dB),(c||v||_)&&(je(n,My),je(n,ft(Ey(c||"")))),(v||_)&&(je(n,My),je(n,ft(Ey(v||"")))),_&&(je(n,My),je(n,ft(Ey(_)))),!Bt(n,pB)){e.destination=null,i++,o.splice(0,i);return}}o.splice(0,i);var T=e.completedBoundaries;for(i=0;i<T.length;i++)if(!_M(e,t,T[i])){e.destination=null,i++,T.splice(0,i);return}T.splice(0,i),K7(t),bn=new Uint8Array(512),Sn=0;var R=e.partialBoundaries;for(i=0;i<R.length;i++){var O=R[i];e:{o=e,a=t;var $=O.completedSegments;for(s=0;s<$.length;s++)if(!ZM(o,a,O,$[s])){s++,$.splice(0,s);var V=!1;break e}$.splice(0,s),V=!0}if(!V){e.destination=null,i++,R.splice(0,i);return}}R.splice(0,i);var F=e.completedBoundaries;for(i=0;i<F.length;i++)if(!_M(e,t,F[i])){e.destination=null,i++,F.splice(0,i);return}F.splice(0,i)}finally{K7(t),e.allPendingTasks===0&&e.pingedTasks.length===0&&e.clientRenderedBoundaries.length===0&&e.completedBoundaries.length===0&&t.close()}}function bM(e,t){try{var r=e.abortableTasks;r.forEach(function(n){return HM(n,e,t)}),r.clear(),e.destination!==null&&Uy(e,e.destination)}catch(n){Uc(e,n),zp(e,n)}}zy.renderToReadableStream=function(e,t){return new Promise(function(r,n){var o,i,a=new Promise(function(v,_){i=v,o=_}),s=PB(e,fL(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),dL(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,i,function(){var v=new ReadableStream({type:"bytes",pull:function(_){if(s.status===1)s.status=2,EM(_,s.fatalError);else if(s.status!==2&&s.destination===null){s.destination=_;try{Uy(s,_)}catch(T){Uc(s,T),zp(s,T)}}},cancel:function(){bM(s)}},{highWaterMark:0});v.allReady=a,r(v)},function(v){a.catch(function(){}),n(v)},o);if(t&&t.signal){var l=t.signal,c=function(){bM(s,l.reason),l.removeEventListener("abort",c)};l.addEventListener("abort",c)}WM(s)})};zy.version="18.2.0"});var JM=et(os=>{"use strict";d();h();p();var Jl,QM;Jl=J7(),QM=qM();os.version=Jl.version;os.renderToString=Jl.renderToString;os.renderToStaticMarkup=Jl.renderToStaticMarkup;os.renderToNodeStream=Jl.renderToNodeStream;os.renderToStaticNodeStream=Jl.renderToStaticNodeStream;os.renderToReadableStream=QM.renderToReadableStream});var r8=et(Dt=>{"use strict";d();h();p();Object.defineProperty(Dt,"__esModule",{value:!0});Dt.getLocalStorage=Dt.getLocalStorageOrThrow=Dt.getCrypto=Dt.getCryptoOrThrow=Dt.getLocation=Dt.getLocationOrThrow=Dt.getNavigator=Dt.getNavigatorOrThrow=Dt.getDocument=Dt.getDocumentOrThrow=Dt.getFromWindowOrThrow=Dt.getFromWindow=void 0;function is(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Dt.getFromWindow=is;function Kl(e){let t=is(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Dt.getFromWindowOrThrow=Kl;function AB(){return Kl("document")}Dt.getDocumentOrThrow=AB;function DB(){return is("document")}Dt.getDocument=DB;function NB(){return Kl("navigator")}Dt.getNavigatorOrThrow=NB;function FB(){return is("navigator")}Dt.getNavigator=FB;function LB(){return Kl("location")}Dt.getLocationOrThrow=LB;function BB(){return is("location")}Dt.getLocation=BB;function $B(){return Kl("crypto")}Dt.getCryptoOrThrow=$B;function UB(){return is("crypto")}Dt.getCrypto=UB;function zB(){return Kl("localStorage")}Dt.getLocalStorageOrThrow=zB;function VB(){return is("localStorage")}Dt.getLocalStorage=VB});var o8=et(Wp=>{"use strict";d();h();p();Object.defineProperty(Wp,"__esModule",{value:!0});Wp.getWindowMetadata=void 0;var n8=r8();function jB(){let e,t;try{e=n8.getDocumentOrThrow(),t=n8.getLocationOrThrow()}catch(_){return null}function r(){let _=e.getElementsByTagName("link"),T=[];for(let R=0;R<_.length;R++){let O=_[R],$=O.getAttribute("rel");if($&&$.toLowerCase().indexOf("icon")>-1){let V=O.getAttribute("href");if(V)if(V.toLowerCase().indexOf("https:")===-1&&V.toLowerCase().indexOf("http:")===-1&&V.indexOf("//")!==0){let F=t.protocol+"//"+t.host;if(V.indexOf("/")===0)F+=V;else{let N=t.pathname.split("/");N.pop(),F+=N.join("/")+"/"+V}T.push(F)}else if(V.indexOf("//")===0){let F=t.protocol+V;T.push(F)}else T.push(V)}}return T}function n(..._){let T=e.getElementsByTagName("meta");for(let R=0;R<T.length;R++){let O=T[R],$=["itemprop","property","name"].map(V=>O.getAttribute(V)).filter(V=>V?_.includes(V):!1);if($.length&&$){let V=O.getAttribute("content");if(V)return V}}return""}function o(){let _=n("name","og:site_name","og:title","twitter:title");return _||(_=e.title),_}function i(){return n("description","og:description","twitter:description","keywords")}let a=o(),s=i(),l=t.origin,c=r();return{description:s,url:l,icons:c,name:a}}Wp.getWindowMetadata=jB});var i8=et(Nt=>{"use strict";d();h();p();Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getLocalStorage=Nt.getLocalStorageOrThrow=Nt.getCrypto=Nt.getCryptoOrThrow=Nt.getLocation=Nt.getLocationOrThrow=Nt.getNavigator=Nt.getNavigatorOrThrow=Nt.getDocument=Nt.getDocumentOrThrow=Nt.getFromWindowOrThrow=Nt.getFromWindow=void 0;function as(e){let t;return typeof window<"u"&&typeof window[e]<"u"&&(t=window[e]),t}Nt.getFromWindow=as;function Xl(e){let t=as(e);if(!t)throw new Error(`${e} is not defined in Window`);return t}Nt.getFromWindowOrThrow=Xl;function HB(){return Xl("document")}Nt.getDocumentOrThrow=HB;function GB(){return as("document")}Nt.getDocument=GB;function WB(){return Xl("navigator")}Nt.getNavigatorOrThrow=WB;function ZB(){return as("navigator")}Nt.getNavigator=ZB;function qB(){return Xl("location")}Nt.getLocationOrThrow=qB;function QB(){return as("location")}Nt.getLocation=QB;function JB(){return Xl("crypto")}Nt.getCryptoOrThrow=JB;function KB(){return as("crypto")}Nt.getCrypto=KB;function XB(){return Xl("localStorage")}Nt.getLocalStorageOrThrow=XB;function YB(){return as("localStorage")}Nt.getLocalStorage=YB});var x8=et((w8,Zy)=>{d();h();p();(function(e,t){"use strict";function r(Z,w){if(!Z)throw new Error(w||"Assertion failed")}function n(Z,w){Z.super_=w;var k=function(){};k.prototype=w.prototype,Z.prototype=new k,Z.prototype.constructor=Z}function o(Z,w,k){if(o.isBN(Z))return Z;this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null&&((w==="le"||w==="be")&&(k=w,w=10),this._init(Z||0,w||10,k||"be"))}typeof e=="object"?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;var i;try{i=ym().Buffer}catch(Z){}o.isBN=function(w){return w instanceof o?!0:w!==null&&typeof w=="object"&&w.constructor.wordSize===o.wordSize&&Array.isArray(w.words)},o.max=function(w,k){return w.cmp(k)>0?w:k},o.min=function(w,k){return w.cmp(k)<0?w:k},o.prototype._init=function(w,k,I){if(typeof w=="number")return this._initNumber(w,k,I);if(typeof w=="object")return this._initArray(w,k,I);k==="hex"&&(k=16),r(k===(k|0)&&k>=2&&k<=36),w=w.toString().replace(/\s+/g,"");var b=0;w[0]==="-"&&b++,k===16?this._parseHex(w,b):this._parseBase(w,k,b),w[0]==="-"&&(this.negative=1),this.strip(),I==="le"&&this._initArray(this.toArray(),k,I)},o.prototype._initNumber=function(w,k,I){w<0&&(this.negative=1,w=-w),w<67108864?(this.words=[w&67108863],this.length=1):w<4503599627370496?(this.words=[w&67108863,w/67108864&67108863],this.length=2):(r(w<9007199254740992),this.words=[w&67108863,w/67108864&67108863,1],this.length=3),I==="le"&&this._initArray(this.toArray(),k,I)},o.prototype._initArray=function(w,k,I){if(r(typeof w.length=="number"),w.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(w.length/3),this.words=new Array(this.length);for(var b=0;b<this.length;b++)this.words[b]=0;var u,m,y=0;if(I==="be")for(b=w.length-1,u=0;b>=0;b-=3)m=w[b]|w[b-1]<<8|w[b-2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);else if(I==="le")for(b=0,u=0;b<w.length;b+=3)m=w[b]|w[b+1]<<8|w[b+2]<<16,this.words[u]|=m<<y&67108863,this.words[u+1]=m>>>26-y&67108863,y+=24,y>=26&&(y-=26,u++);return this.strip()};function a(Z,w,k){for(var I=0,b=Math.min(Z.length,k),u=w;u<b;u++){var m=Z.charCodeAt(u)-48;I<<=4,m>=49&&m<=54?I|=m-49+10:m>=17&&m<=22?I|=m-17+10:I|=m&15}return I}o.prototype._parseHex=function(w,k){this.length=Math.ceil((w.length-k)/6),this.words=new Array(this.length);for(var I=0;I<this.length;I++)this.words[I]=0;var b,u,m=0;for(I=w.length-6,b=0;I>=k;I-=6)u=a(w,I,I+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303,m+=24,m>=26&&(m-=26,b++);I+6!==k&&(u=a(w,k,I+6),this.words[b]|=u<<m&67108863,this.words[b+1]|=u>>>26-m&4194303),this.strip()};function s(Z,w,k,I){for(var b=0,u=Math.min(Z.length,k),m=w;m<u;m++){var y=Z.charCodeAt(m)-48;b*=I,y>=49?b+=y-49+10:y>=17?b+=y-17+10:b+=y}return b}o.prototype._parseBase=function(w,k,I){this.words=[0],this.length=1;for(var b=0,u=1;u<=67108863;u*=k)b++;b--,u=u/k|0;for(var m=w.length-I,y=m%b,x=Math.min(m,m-y)+I,f=0,M=I;M<x;M+=b)f=s(w,M,M+b,k),this.imuln(u),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f);if(y!==0){var W=1;for(f=s(w,M,w.length,k),M=0;M<y;M++)W*=k;this.imuln(W),this.words[0]+f<67108864?this.words[0]+=f:this._iaddn(f)}},o.prototype.copy=function(w){w.words=new Array(this.length);for(var k=0;k<this.length;k++)w.words[k]=this.words[k];w.length=this.length,w.negative=this.negative,w.red=this.red},o.prototype.clone=function(){var w=new o(null);return this.copy(w),w},o.prototype._expand=function(w){for(;this.length<w;)this.words[this.length++]=0;return this},o.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},o.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],v=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(w,k){w=w||10,k=k|0||1;var I;if(w===16||w==="hex"){I="";for(var b=0,u=0,m=0;m<this.length;m++){var y=this.words[m],x=((y<<b|u)&16777215).toString(16);u=y>>>24-b&16777215,u!==0||m!==this.length-1?I=l[6-x.length]+x+I:I=x+I,b+=2,b>=26&&(b-=26,m--)}for(u!==0&&(I=u.toString(16)+I);I.length%k!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}if(w===(w|0)&&w>=2&&w<=36){var f=c[w],M=v[w];I="";var W=this.clone();for(W.negative=0;!W.isZero();){var z=W.modn(M).toString(w);W=W.idivn(M),W.isZero()?I=z+I:I=l[f-z.length]+z+I}for(this.isZero()&&(I="0"+I);I.length%k!==0;)I="0"+I;return this.negative!==0&&(I="-"+I),I}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var w=this.words[0];return this.length===2?w+=this.words[1]*67108864:this.length===3&&this.words[2]===1?w+=4503599627370496+this.words[1]*67108864:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-w:w},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(w,k){return r(typeof i<"u"),this.toArrayLike(i,w,k)},o.prototype.toArray=function(w,k){return this.toArrayLike(Array,w,k)},o.prototype.toArrayLike=function(w,k,I){var b=this.byteLength(),u=I||Math.max(1,b);r(b<=u,"byte array longer than desired length"),r(u>0,"Requested array length <= 0"),this.strip();var m=k==="le",y=new w(u),x,f,M=this.clone();if(m){for(f=0;!M.isZero();f++)x=M.andln(255),M.iushrn(8),y[f]=x;for(;f<u;f++)y[f]=0}else{for(f=0;f<u-b;f++)y[f]=0;for(f=0;!M.isZero();f++)x=M.andln(255),M.iushrn(8),y[u-f-1]=x}return y},Math.clz32?o.prototype._countBits=function(w){return 32-Math.clz32(w)}:o.prototype._countBits=function(w){var k=w,I=0;return k>=4096&&(I+=13,k>>>=13),k>=64&&(I+=7,k>>>=7),k>=8&&(I+=4,k>>>=4),k>=2&&(I+=2,k>>>=2),I+k},o.prototype._zeroBits=function(w){if(w===0)return 26;var k=w,I=0;return(k&8191)===0&&(I+=13,k>>>=13),(k&127)===0&&(I+=7,k>>>=7),(k&15)===0&&(I+=4,k>>>=4),(k&3)===0&&(I+=2,k>>>=2),(k&1)===0&&I++,I},o.prototype.bitLength=function(){var w=this.words[this.length-1],k=this._countBits(w);return(this.length-1)*26+k};function _(Z){for(var w=new Array(Z.bitLength()),k=0;k<w.length;k++){var I=k/26|0,b=k%26;w[k]=(Z.words[I]&1<<b)>>>b}return w}o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var w=0,k=0;k<this.length;k++){var I=this._zeroBits(this.words[k]);if(w+=I,I!==26)break}return w},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(w){return this.negative!==0?this.abs().inotn(w).iaddn(1):this.clone()},o.prototype.fromTwos=function(w){return this.testn(w-1)?this.notn(w).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return this.negative!==0},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(w){for(;this.length<w.length;)this.words[this.length++]=0;for(var k=0;k<w.length;k++)this.words[k]=this.words[k]|w.words[k];return this.strip()},o.prototype.ior=function(w){return r((this.negative|w.negative)===0),this.iuor(w)},o.prototype.or=function(w){return this.length>w.length?this.clone().ior(w):w.clone().ior(this)},o.prototype.uor=function(w){return this.length>w.length?this.clone().iuor(w):w.clone().iuor(this)},o.prototype.iuand=function(w){var k;this.length>w.length?k=w:k=this;for(var I=0;I<k.length;I++)this.words[I]=this.words[I]&w.words[I];return this.length=k.length,this.strip()},o.prototype.iand=function(w){return r((this.negative|w.negative)===0),this.iuand(w)},o.prototype.and=function(w){return this.length>w.length?this.clone().iand(w):w.clone().iand(this)},o.prototype.uand=function(w){return this.length>w.length?this.clone().iuand(w):w.clone().iuand(this)},o.prototype.iuxor=function(w){var k,I;this.length>w.length?(k=this,I=w):(k=w,I=this);for(var b=0;b<I.length;b++)this.words[b]=k.words[b]^I.words[b];if(this!==k)for(;b<k.length;b++)this.words[b]=k.words[b];return this.length=k.length,this.strip()},o.prototype.ixor=function(w){return r((this.negative|w.negative)===0),this.iuxor(w)},o.prototype.xor=function(w){return this.length>w.length?this.clone().ixor(w):w.clone().ixor(this)},o.prototype.uxor=function(w){return this.length>w.length?this.clone().iuxor(w):w.clone().iuxor(this)},o.prototype.inotn=function(w){r(typeof w=="number"&&w>=0);var k=Math.ceil(w/26)|0,I=w%26;this._expand(k),I>0&&k--;for(var b=0;b<k;b++)this.words[b]=~this.words[b]&67108863;return I>0&&(this.words[b]=~this.words[b]&67108863>>26-I),this.strip()},o.prototype.notn=function(w){return this.clone().inotn(w)},o.prototype.setn=function(w,k){r(typeof w=="number"&&w>=0);var I=w/26|0,b=w%26;return this._expand(I+1),k?this.words[I]=this.words[I]|1<<b:this.words[I]=this.words[I]&~(1<<b),this.strip()},o.prototype.iadd=function(w){var k;if(this.negative!==0&&w.negative===0)return this.negative=0,k=this.isub(w),this.negative^=1,this._normSign();if(this.negative===0&&w.negative!==0)return w.negative=0,k=this.isub(w),w.negative=1,k._normSign();var I,b;this.length>w.length?(I=this,b=w):(I=w,b=this);for(var u=0,m=0;m<b.length;m++)k=(I.words[m]|0)+(b.words[m]|0)+u,this.words[m]=k&67108863,u=k>>>26;for(;u!==0&&m<I.length;m++)k=(I.words[m]|0)+u,this.words[m]=k&67108863,u=k>>>26;if(this.length=I.length,u!==0)this.words[this.length]=u,this.length++;else if(I!==this)for(;m<I.length;m++)this.words[m]=I.words[m];return this},o.prototype.add=function(w){var k;return w.negative!==0&&this.negative===0?(w.negative=0,k=this.sub(w),w.negative^=1,k):w.negative===0&&this.negative!==0?(this.negative=0,k=w.sub(this),this.negative=1,k):this.length>w.length?this.clone().iadd(w):w.clone().iadd(this)},o.prototype.isub=function(w){if(w.negative!==0){w.negative=0;var k=this.iadd(w);return w.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(w),this.negative=1,this._normSign();var I=this.cmp(w);if(I===0)return this.negative=0,this.length=1,this.words[0]=0,this;var b,u;I>0?(b=this,u=w):(b=w,u=this);for(var m=0,y=0;y<u.length;y++)k=(b.words[y]|0)-(u.words[y]|0)+m,m=k>>26,this.words[y]=k&67108863;for(;m!==0&&y<b.length;y++)k=(b.words[y]|0)+m,m=k>>26,this.words[y]=k&67108863;if(m===0&&y<b.length&&b!==this)for(;y<b.length;y++)this.words[y]=b.words[y];return this.length=Math.max(this.length,y),b!==this&&(this.negative=1),this.strip()},o.prototype.sub=function(w){return this.clone().isub(w)};function T(Z,w,k){k.negative=w.negative^Z.negative;var I=Z.length+w.length|0;k.length=I,I=I-1|0;var b=Z.words[0]|0,u=w.words[0]|0,m=b*u,y=m&67108863,x=m/67108864|0;k.words[0]=y;for(var f=1;f<I;f++){for(var M=x>>>26,W=x&67108863,z=Math.min(f,w.length-1),S=Math.max(0,f-Z.length+1);S<=z;S++){var G=f-S|0;b=Z.words[G]|0,u=w.words[S]|0,m=b*u+W,M+=m/67108864|0,W=m&67108863}k.words[f]=W|0,x=M|0}return x!==0?k.words[f]=x|0:k.length--,k.strip()}var R=function(w,k,I){var b=w.words,u=k.words,m=I.words,y=0,x,f,M,W=b[0]|0,z=W&8191,S=W>>>13,G=b[1]|0,de=G&8191,P=G>>>13,ee=b[2]|0,oe=ee&8191,ce=ee>>>13,ge=b[3]|0,J=ge&8191,Y=ge>>>13,K=b[4]|0,fe=K&8191,te=K>>>13,xe=b[5]|0,Ue=xe&8191,Me=xe>>>13,Ve=b[6]|0,Ge=Ve&8191,Q=Ve>>>13,E=b[7]|0,L=E&8191,A=E>>>13,B=b[8]|0,j=B&8191,H=B>>>13,ne=b[9]|0,re=ne&8191,ae=ne>>>13,le=u[0]|0,me=le&8191,pe=le>>>13,Ce=u[1]|0,Te=Ce&8191,Ne=Ce>>>13,Fe=u[2]|0,Ie=Fe&8191,_e=Fe>>>13,ke=u[3]|0,we=ke&8191,Re=ke>>>13,Pe=u[4]|0,qe=Pe&8191,Le=Pe>>>13,tt=u[5]|0,be=tt&8191,ze=tt>>>13,ct=u[6]|0,it=ct&8191,Qe=ct>>>13,Ke=u[7]|0,ht=Ke&8191,We=Ke>>>13,wt=u[8]|0,Et=wt&8191,He=wt>>>13,Je=u[9]|0,Xe=Je&8191,Be=Je>>>13;I.negative=w.negative^k.negative,I.length=19,x=Math.imul(z,me),f=Math.imul(z,pe),f=f+Math.imul(S,me)|0,M=Math.imul(S,pe);var at=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(at>>>26)|0,at&=67108863,x=Math.imul(de,me),f=Math.imul(de,pe),f=f+Math.imul(P,me)|0,M=Math.imul(P,pe),x=x+Math.imul(z,Te)|0,f=f+Math.imul(z,Ne)|0,f=f+Math.imul(S,Te)|0,M=M+Math.imul(S,Ne)|0;var ar=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ar>>>26)|0,ar&=67108863,x=Math.imul(oe,me),f=Math.imul(oe,pe),f=f+Math.imul(ce,me)|0,M=Math.imul(ce,pe),x=x+Math.imul(de,Te)|0,f=f+Math.imul(de,Ne)|0,f=f+Math.imul(P,Te)|0,M=M+Math.imul(P,Ne)|0,x=x+Math.imul(z,Ie)|0,f=f+Math.imul(z,_e)|0,f=f+Math.imul(S,Ie)|0,M=M+Math.imul(S,_e)|0;var st=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(st>>>26)|0,st&=67108863,x=Math.imul(J,me),f=Math.imul(J,pe),f=f+Math.imul(Y,me)|0,M=Math.imul(Y,pe),x=x+Math.imul(oe,Te)|0,f=f+Math.imul(oe,Ne)|0,f=f+Math.imul(ce,Te)|0,M=M+Math.imul(ce,Ne)|0,x=x+Math.imul(de,Ie)|0,f=f+Math.imul(de,_e)|0,f=f+Math.imul(P,Ie)|0,M=M+Math.imul(P,_e)|0,x=x+Math.imul(z,we)|0,f=f+Math.imul(z,Re)|0,f=f+Math.imul(S,we)|0,M=M+Math.imul(S,Re)|0;var dt=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(dt>>>26)|0,dt&=67108863,x=Math.imul(fe,me),f=Math.imul(fe,pe),f=f+Math.imul(te,me)|0,M=Math.imul(te,pe),x=x+Math.imul(J,Te)|0,f=f+Math.imul(J,Ne)|0,f=f+Math.imul(Y,Te)|0,M=M+Math.imul(Y,Ne)|0,x=x+Math.imul(oe,Ie)|0,f=f+Math.imul(oe,_e)|0,f=f+Math.imul(ce,Ie)|0,M=M+Math.imul(ce,_e)|0,x=x+Math.imul(de,we)|0,f=f+Math.imul(de,Re)|0,f=f+Math.imul(P,we)|0,M=M+Math.imul(P,Re)|0,x=x+Math.imul(z,qe)|0,f=f+Math.imul(z,Le)|0,f=f+Math.imul(S,qe)|0,M=M+Math.imul(S,Le)|0;var Cn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Cn>>>26)|0,Cn&=67108863,x=Math.imul(Ue,me),f=Math.imul(Ue,pe),f=f+Math.imul(Me,me)|0,M=Math.imul(Me,pe),x=x+Math.imul(fe,Te)|0,f=f+Math.imul(fe,Ne)|0,f=f+Math.imul(te,Te)|0,M=M+Math.imul(te,Ne)|0,x=x+Math.imul(J,Ie)|0,f=f+Math.imul(J,_e)|0,f=f+Math.imul(Y,Ie)|0,M=M+Math.imul(Y,_e)|0,x=x+Math.imul(oe,we)|0,f=f+Math.imul(oe,Re)|0,f=f+Math.imul(ce,we)|0,M=M+Math.imul(ce,Re)|0,x=x+Math.imul(de,qe)|0,f=f+Math.imul(de,Le)|0,f=f+Math.imul(P,qe)|0,M=M+Math.imul(P,Le)|0,x=x+Math.imul(z,be)|0,f=f+Math.imul(z,ze)|0,f=f+Math.imul(S,be)|0,M=M+Math.imul(S,ze)|0;var Tn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Tn>>>26)|0,Tn&=67108863,x=Math.imul(Ge,me),f=Math.imul(Ge,pe),f=f+Math.imul(Q,me)|0,M=Math.imul(Q,pe),x=x+Math.imul(Ue,Te)|0,f=f+Math.imul(Ue,Ne)|0,f=f+Math.imul(Me,Te)|0,M=M+Math.imul(Me,Ne)|0,x=x+Math.imul(fe,Ie)|0,f=f+Math.imul(fe,_e)|0,f=f+Math.imul(te,Ie)|0,M=M+Math.imul(te,_e)|0,x=x+Math.imul(J,we)|0,f=f+Math.imul(J,Re)|0,f=f+Math.imul(Y,we)|0,M=M+Math.imul(Y,Re)|0,x=x+Math.imul(oe,qe)|0,f=f+Math.imul(oe,Le)|0,f=f+Math.imul(ce,qe)|0,M=M+Math.imul(ce,Le)|0,x=x+Math.imul(de,be)|0,f=f+Math.imul(de,ze)|0,f=f+Math.imul(P,be)|0,M=M+Math.imul(P,ze)|0,x=x+Math.imul(z,it)|0,f=f+Math.imul(z,Qe)|0,f=f+Math.imul(S,it)|0,M=M+Math.imul(S,Qe)|0;var kn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(kn>>>26)|0,kn&=67108863,x=Math.imul(L,me),f=Math.imul(L,pe),f=f+Math.imul(A,me)|0,M=Math.imul(A,pe),x=x+Math.imul(Ge,Te)|0,f=f+Math.imul(Ge,Ne)|0,f=f+Math.imul(Q,Te)|0,M=M+Math.imul(Q,Ne)|0,x=x+Math.imul(Ue,Ie)|0,f=f+Math.imul(Ue,_e)|0,f=f+Math.imul(Me,Ie)|0,M=M+Math.imul(Me,_e)|0,x=x+Math.imul(fe,we)|0,f=f+Math.imul(fe,Re)|0,f=f+Math.imul(te,we)|0,M=M+Math.imul(te,Re)|0,x=x+Math.imul(J,qe)|0,f=f+Math.imul(J,Le)|0,f=f+Math.imul(Y,qe)|0,M=M+Math.imul(Y,Le)|0,x=x+Math.imul(oe,be)|0,f=f+Math.imul(oe,ze)|0,f=f+Math.imul(ce,be)|0,M=M+Math.imul(ce,ze)|0,x=x+Math.imul(de,it)|0,f=f+Math.imul(de,Qe)|0,f=f+Math.imul(P,it)|0,M=M+Math.imul(P,Qe)|0,x=x+Math.imul(z,ht)|0,f=f+Math.imul(z,We)|0,f=f+Math.imul(S,ht)|0,M=M+Math.imul(S,We)|0;var Pn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Pn>>>26)|0,Pn&=67108863,x=Math.imul(j,me),f=Math.imul(j,pe),f=f+Math.imul(H,me)|0,M=Math.imul(H,pe),x=x+Math.imul(L,Te)|0,f=f+Math.imul(L,Ne)|0,f=f+Math.imul(A,Te)|0,M=M+Math.imul(A,Ne)|0,x=x+Math.imul(Ge,Ie)|0,f=f+Math.imul(Ge,_e)|0,f=f+Math.imul(Q,Ie)|0,M=M+Math.imul(Q,_e)|0,x=x+Math.imul(Ue,we)|0,f=f+Math.imul(Ue,Re)|0,f=f+Math.imul(Me,we)|0,M=M+Math.imul(Me,Re)|0,x=x+Math.imul(fe,qe)|0,f=f+Math.imul(fe,Le)|0,f=f+Math.imul(te,qe)|0,M=M+Math.imul(te,Le)|0,x=x+Math.imul(J,be)|0,f=f+Math.imul(J,ze)|0,f=f+Math.imul(Y,be)|0,M=M+Math.imul(Y,ze)|0,x=x+Math.imul(oe,it)|0,f=f+Math.imul(oe,Qe)|0,f=f+Math.imul(ce,it)|0,M=M+Math.imul(ce,Qe)|0,x=x+Math.imul(de,ht)|0,f=f+Math.imul(de,We)|0,f=f+Math.imul(P,ht)|0,M=M+Math.imul(P,We)|0,x=x+Math.imul(z,Et)|0,f=f+Math.imul(z,He)|0,f=f+Math.imul(S,Et)|0,M=M+Math.imul(S,He)|0;var Rn=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(Rn>>>26)|0,Rn&=67108863,x=Math.imul(re,me),f=Math.imul(re,pe),f=f+Math.imul(ae,me)|0,M=Math.imul(ae,pe),x=x+Math.imul(j,Te)|0,f=f+Math.imul(j,Ne)|0,f=f+Math.imul(H,Te)|0,M=M+Math.imul(H,Ne)|0,x=x+Math.imul(L,Ie)|0,f=f+Math.imul(L,_e)|0,f=f+Math.imul(A,Ie)|0,M=M+Math.imul(A,_e)|0,x=x+Math.imul(Ge,we)|0,f=f+Math.imul(Ge,Re)|0,f=f+Math.imul(Q,we)|0,M=M+Math.imul(Q,Re)|0,x=x+Math.imul(Ue,qe)|0,f=f+Math.imul(Ue,Le)|0,f=f+Math.imul(Me,qe)|0,M=M+Math.imul(Me,Le)|0,x=x+Math.imul(fe,be)|0,f=f+Math.imul(fe,ze)|0,f=f+Math.imul(te,be)|0,M=M+Math.imul(te,ze)|0,x=x+Math.imul(J,it)|0,f=f+Math.imul(J,Qe)|0,f=f+Math.imul(Y,it)|0,M=M+Math.imul(Y,Qe)|0,x=x+Math.imul(oe,ht)|0,f=f+Math.imul(oe,We)|0,f=f+Math.imul(ce,ht)|0,M=M+Math.imul(ce,We)|0,x=x+Math.imul(de,Et)|0,f=f+Math.imul(de,He)|0,f=f+Math.imul(P,Et)|0,M=M+Math.imul(P,He)|0,x=x+Math.imul(z,Xe)|0,f=f+Math.imul(z,Be)|0,f=f+Math.imul(S,Xe)|0,M=M+Math.imul(S,Be)|0;var ra=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ra>>>26)|0,ra&=67108863,x=Math.imul(re,Te),f=Math.imul(re,Ne),f=f+Math.imul(ae,Te)|0,M=Math.imul(ae,Ne),x=x+Math.imul(j,Ie)|0,f=f+Math.imul(j,_e)|0,f=f+Math.imul(H,Ie)|0,M=M+Math.imul(H,_e)|0,x=x+Math.imul(L,we)|0,f=f+Math.imul(L,Re)|0,f=f+Math.imul(A,we)|0,M=M+Math.imul(A,Re)|0,x=x+Math.imul(Ge,qe)|0,f=f+Math.imul(Ge,Le)|0,f=f+Math.imul(Q,qe)|0,M=M+Math.imul(Q,Le)|0,x=x+Math.imul(Ue,be)|0,f=f+Math.imul(Ue,ze)|0,f=f+Math.imul(Me,be)|0,M=M+Math.imul(Me,ze)|0,x=x+Math.imul(fe,it)|0,f=f+Math.imul(fe,Qe)|0,f=f+Math.imul(te,it)|0,M=M+Math.imul(te,Qe)|0,x=x+Math.imul(J,ht)|0,f=f+Math.imul(J,We)|0,f=f+Math.imul(Y,ht)|0,M=M+Math.imul(Y,We)|0,x=x+Math.imul(oe,Et)|0,f=f+Math.imul(oe,He)|0,f=f+Math.imul(ce,Et)|0,M=M+Math.imul(ce,He)|0,x=x+Math.imul(de,Xe)|0,f=f+Math.imul(de,Be)|0,f=f+Math.imul(P,Xe)|0,M=M+Math.imul(P,Be)|0;var na=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(na>>>26)|0,na&=67108863,x=Math.imul(re,Ie),f=Math.imul(re,_e),f=f+Math.imul(ae,Ie)|0,M=Math.imul(ae,_e),x=x+Math.imul(j,we)|0,f=f+Math.imul(j,Re)|0,f=f+Math.imul(H,we)|0,M=M+Math.imul(H,Re)|0,x=x+Math.imul(L,qe)|0,f=f+Math.imul(L,Le)|0,f=f+Math.imul(A,qe)|0,M=M+Math.imul(A,Le)|0,x=x+Math.imul(Ge,be)|0,f=f+Math.imul(Ge,ze)|0,f=f+Math.imul(Q,be)|0,M=M+Math.imul(Q,ze)|0,x=x+Math.imul(Ue,it)|0,f=f+Math.imul(Ue,Qe)|0,f=f+Math.imul(Me,it)|0,M=M+Math.imul(Me,Qe)|0,x=x+Math.imul(fe,ht)|0,f=f+Math.imul(fe,We)|0,f=f+Math.imul(te,ht)|0,M=M+Math.imul(te,We)|0,x=x+Math.imul(J,Et)|0,f=f+Math.imul(J,He)|0,f=f+Math.imul(Y,Et)|0,M=M+Math.imul(Y,He)|0,x=x+Math.imul(oe,Xe)|0,f=f+Math.imul(oe,Be)|0,f=f+Math.imul(ce,Xe)|0,M=M+Math.imul(ce,Be)|0;var oa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(oa>>>26)|0,oa&=67108863,x=Math.imul(re,we),f=Math.imul(re,Re),f=f+Math.imul(ae,we)|0,M=Math.imul(ae,Re),x=x+Math.imul(j,qe)|0,f=f+Math.imul(j,Le)|0,f=f+Math.imul(H,qe)|0,M=M+Math.imul(H,Le)|0,x=x+Math.imul(L,be)|0,f=f+Math.imul(L,ze)|0,f=f+Math.imul(A,be)|0,M=M+Math.imul(A,ze)|0,x=x+Math.imul(Ge,it)|0,f=f+Math.imul(Ge,Qe)|0,f=f+Math.imul(Q,it)|0,M=M+Math.imul(Q,Qe)|0,x=x+Math.imul(Ue,ht)|0,f=f+Math.imul(Ue,We)|0,f=f+Math.imul(Me,ht)|0,M=M+Math.imul(Me,We)|0,x=x+Math.imul(fe,Et)|0,f=f+Math.imul(fe,He)|0,f=f+Math.imul(te,Et)|0,M=M+Math.imul(te,He)|0,x=x+Math.imul(J,Xe)|0,f=f+Math.imul(J,Be)|0,f=f+Math.imul(Y,Xe)|0,M=M+Math.imul(Y,Be)|0;var ia=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ia>>>26)|0,ia&=67108863,x=Math.imul(re,qe),f=Math.imul(re,Le),f=f+Math.imul(ae,qe)|0,M=Math.imul(ae,Le),x=x+Math.imul(j,be)|0,f=f+Math.imul(j,ze)|0,f=f+Math.imul(H,be)|0,M=M+Math.imul(H,ze)|0,x=x+Math.imul(L,it)|0,f=f+Math.imul(L,Qe)|0,f=f+Math.imul(A,it)|0,M=M+Math.imul(A,Qe)|0,x=x+Math.imul(Ge,ht)|0,f=f+Math.imul(Ge,We)|0,f=f+Math.imul(Q,ht)|0,M=M+Math.imul(Q,We)|0,x=x+Math.imul(Ue,Et)|0,f=f+Math.imul(Ue,He)|0,f=f+Math.imul(Me,Et)|0,M=M+Math.imul(Me,He)|0,x=x+Math.imul(fe,Xe)|0,f=f+Math.imul(fe,Be)|0,f=f+Math.imul(te,Xe)|0,M=M+Math.imul(te,Be)|0;var aa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(aa>>>26)|0,aa&=67108863,x=Math.imul(re,be),f=Math.imul(re,ze),f=f+Math.imul(ae,be)|0,M=Math.imul(ae,ze),x=x+Math.imul(j,it)|0,f=f+Math.imul(j,Qe)|0,f=f+Math.imul(H,it)|0,M=M+Math.imul(H,Qe)|0,x=x+Math.imul(L,ht)|0,f=f+Math.imul(L,We)|0,f=f+Math.imul(A,ht)|0,M=M+Math.imul(A,We)|0,x=x+Math.imul(Ge,Et)|0,f=f+Math.imul(Ge,He)|0,f=f+Math.imul(Q,Et)|0,M=M+Math.imul(Q,He)|0,x=x+Math.imul(Ue,Xe)|0,f=f+Math.imul(Ue,Be)|0,f=f+Math.imul(Me,Xe)|0,M=M+Math.imul(Me,Be)|0;var sa=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(sa>>>26)|0,sa&=67108863,x=Math.imul(re,it),f=Math.imul(re,Qe),f=f+Math.imul(ae,it)|0,M=Math.imul(ae,Qe),x=x+Math.imul(j,ht)|0,f=f+Math.imul(j,We)|0,f=f+Math.imul(H,ht)|0,M=M+Math.imul(H,We)|0,x=x+Math.imul(L,Et)|0,f=f+Math.imul(L,He)|0,f=f+Math.imul(A,Et)|0,M=M+Math.imul(A,He)|0,x=x+Math.imul(Ge,Xe)|0,f=f+Math.imul(Ge,Be)|0,f=f+Math.imul(Q,Xe)|0,M=M+Math.imul(Q,Be)|0;var la=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(la>>>26)|0,la&=67108863,x=Math.imul(re,ht),f=Math.imul(re,We),f=f+Math.imul(ae,ht)|0,M=Math.imul(ae,We),x=x+Math.imul(j,Et)|0,f=f+Math.imul(j,He)|0,f=f+Math.imul(H,Et)|0,M=M+Math.imul(H,He)|0,x=x+Math.imul(L,Xe)|0,f=f+Math.imul(L,Be)|0,f=f+Math.imul(A,Xe)|0,M=M+Math.imul(A,Be)|0;var ua=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ua>>>26)|0,ua&=67108863,x=Math.imul(re,Et),f=Math.imul(re,He),f=f+Math.imul(ae,Et)|0,M=Math.imul(ae,He),x=x+Math.imul(j,Xe)|0,f=f+Math.imul(j,Be)|0,f=f+Math.imul(H,Xe)|0,M=M+Math.imul(H,Be)|0;var ca=(y+x|0)+((f&8191)<<13)|0;y=(M+(f>>>13)|0)+(ca>>>26)|0,ca&=67108863,x=Math.imul(re,Xe),f=Math.imul(re,Be),f=f+Math.imul(ae,Xe)|0,M=Math.imul(ae,Be);var fa=(y+x|0)+((f&8191)<<13)|0;return y=(M+(f>>>13)|0)+(fa>>>26)|0,fa&=67108863,m[0]=at,m[1]=ar,m[2]=st,m[3]=dt,m[4]=Cn,m[5]=Tn,m[6]=kn,m[7]=Pn,m[8]=Rn,m[9]=ra,m[10]=na,m[11]=oa,m[12]=ia,m[13]=aa,m[14]=sa,m[15]=la,m[16]=ua,m[17]=ca,m[18]=fa,y!==0&&(m[19]=y,I.length++),I};Math.imul||(R=T);function O(Z,w,k){k.negative=w.negative^Z.negative,k.length=Z.length+w.length;for(var I=0,b=0,u=0;u<k.length-1;u++){var m=b;b=0;for(var y=I&67108863,x=Math.min(u,w.length-1),f=Math.max(0,u-Z.length+1);f<=x;f++){var M=u-f,W=Z.words[M]|0,z=w.words[f]|0,S=W*z,G=S&67108863;m=m+(S/67108864|0)|0,G=G+y|0,y=G&67108863,m=m+(G>>>26)|0,b+=m>>>26,m&=67108863}k.words[u]=y,I=m,m=b}return I!==0?k.words[u]=I:k.length--,k.strip()}function $(Z,w,k){var I=new V;return I.mulp(Z,w,k)}o.prototype.mulTo=function(w,k){var I,b=this.length+w.length;return this.length===10&&w.length===10?I=R(this,w,k):b<63?I=T(this,w,k):b<1024?I=O(this,w,k):I=$(this,w,k),I};function V(Z,w){this.x=Z,this.y=w}V.prototype.makeRBT=function(w){for(var k=new Array(w),I=o.prototype._countBits(w)-1,b=0;b<w;b++)k[b]=this.revBin(b,I,w);return k},V.prototype.revBin=function(w,k,I){if(w===0||w===I-1)return w;for(var b=0,u=0;u<k;u++)b|=(w&1)<<k-u-1,w>>=1;return b},V.prototype.permute=function(w,k,I,b,u,m){for(var y=0;y<m;y++)b[y]=k[w[y]],u[y]=I[w[y]]},V.prototype.transform=function(w,k,I,b,u,m){this.permute(m,w,k,I,b,u);for(var y=1;y<u;y<<=1)for(var x=y<<1,f=Math.cos(2*Math.PI/x),M=Math.sin(2*Math.PI/x),W=0;W<u;W+=x)for(var z=f,S=M,G=0;G<y;G++){var de=I[W+G],P=b[W+G],ee=I[W+G+y],oe=b[W+G+y],ce=z*ee-S*oe;oe=z*oe+S*ee,ee=ce,I[W+G]=de+ee,b[W+G]=P+oe,I[W+G+y]=de-ee,b[W+G+y]=P-oe,G!==x&&(ce=f*z-M*S,S=f*S+M*z,z=ce)}},V.prototype.guessLen13b=function(w,k){var I=Math.max(k,w)|1,b=I&1,u=0;for(I=I/2|0;I;I=I>>>1)u++;return 1<<u+1+b},V.prototype.conjugate=function(w,k,I){if(!(I<=1))for(var b=0;b<I/2;b++){var u=w[b];w[b]=w[I-b-1],w[I-b-1]=u,u=k[b],k[b]=-k[I-b-1],k[I-b-1]=-u}},V.prototype.normalize13b=function(w,k){for(var I=0,b=0;b<k/2;b++){var u=Math.round(w[2*b+1]/k)*8192+Math.round(w[2*b]/k)+I;w[b]=u&67108863,u<67108864?I=0:I=u/67108864|0}return w},V.prototype.convert13b=function(w,k,I,b){for(var u=0,m=0;m<k;m++)u=u+(w[m]|0),I[2*m]=u&8191,u=u>>>13,I[2*m+1]=u&8191,u=u>>>13;for(m=2*k;m<b;++m)I[m]=0;r(u===0),r((u&-8192)===0)},V.prototype.stub=function(w){for(var k=new Array(w),I=0;I<w;I++)k[I]=0;return k},V.prototype.mulp=function(w,k,I){var b=2*this.guessLen13b(w.length,k.length),u=this.makeRBT(b),m=this.stub(b),y=new Array(b),x=new Array(b),f=new Array(b),M=new Array(b),W=new Array(b),z=new Array(b),S=I.words;S.length=b,this.convert13b(w.words,w.length,y,b),this.convert13b(k.words,k.length,M,b),this.transform(y,m,x,f,b,u),this.transform(M,m,W,z,b,u);for(var G=0;G<b;G++){var de=x[G]*W[G]-f[G]*z[G];f[G]=x[G]*z[G]+f[G]*W[G],x[G]=de}return this.conjugate(x,f,b),this.transform(x,f,S,m,b,u),this.conjugate(S,m,b),this.normalize13b(S,b),I.negative=w.negative^k.negative,I.length=w.length+k.length,I.strip()},o.prototype.mul=function(w){var k=new o(null);return k.words=new Array(this.length+w.length),this.mulTo(w,k)},o.prototype.mulf=function(w){var k=new o(null);return k.words=new Array(this.length+w.length),$(this,w,k)},o.prototype.imul=function(w){return this.clone().mulTo(w,this)},o.prototype.imuln=function(w){r(typeof w=="number"),r(w<67108864);for(var k=0,I=0;I<this.length;I++){var b=(this.words[I]|0)*w,u=(b&67108863)+(k&67108863);k>>=26,k+=b/67108864|0,k+=u>>>26,this.words[I]=u&67108863}return k!==0&&(this.words[I]=k,this.length++),this},o.prototype.muln=function(w){return this.clone().imuln(w)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(w){var k=_(w);if(k.length===0)return new o(1);for(var I=this,b=0;b<k.length&&k[b]===0;b++,I=I.sqr());if(++b<k.length)for(var u=I.sqr();b<k.length;b++,u=u.sqr())k[b]!==0&&(I=I.mul(u));return I},o.prototype.iushln=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26,b=67108863>>>26-k<<26-k,u;if(k!==0){var m=0;for(u=0;u<this.length;u++){var y=this.words[u]&b,x=(this.words[u]|0)-y<<k;this.words[u]=x|m,m=y>>>26-k}m&&(this.words[u]=m,this.length++)}if(I!==0){for(u=this.length-1;u>=0;u--)this.words[u+I]=this.words[u];for(u=0;u<I;u++)this.words[u]=0;this.length+=I}return this.strip()},o.prototype.ishln=function(w){return r(this.negative===0),this.iushln(w)},o.prototype.iushrn=function(w,k,I){r(typeof w=="number"&&w>=0);var b;k?b=(k-k%26)/26:b=0;var u=w%26,m=Math.min((w-u)/26,this.length),y=67108863^67108863>>>u<<u,x=I;if(b-=m,b=Math.max(0,b),x){for(var f=0;f<m;f++)x.words[f]=this.words[f];x.length=m}if(m!==0)if(this.length>m)for(this.length-=m,f=0;f<this.length;f++)this.words[f]=this.words[f+m];else this.words[0]=0,this.length=1;var M=0;for(f=this.length-1;f>=0&&(M!==0||f>=b);f--){var W=this.words[f]|0;this.words[f]=M<<26-u|W>>>u,M=W&y}return x&&M!==0&&(x.words[x.length++]=M),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(w,k,I){return r(this.negative===0),this.iushrn(w,k,I)},o.prototype.shln=function(w){return this.clone().ishln(w)},o.prototype.ushln=function(w){return this.clone().iushln(w)},o.prototype.shrn=function(w){return this.clone().ishrn(w)},o.prototype.ushrn=function(w){return this.clone().iushrn(w)},o.prototype.testn=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26,b=1<<k;if(this.length<=I)return!1;var u=this.words[I];return!!(u&b)},o.prototype.imaskn=function(w){r(typeof w=="number"&&w>=0);var k=w%26,I=(w-k)/26;if(r(this.negative===0,"imaskn works only with positive numbers"),this.length<=I)return this;if(k!==0&&I++,this.length=Math.min(I,this.length),k!==0){var b=67108863^67108863>>>k<<k;this.words[this.length-1]&=b}return this.strip()},o.prototype.maskn=function(w){return this.clone().imaskn(w)},o.prototype.iaddn=function(w){return r(typeof w=="number"),r(w<67108864),w<0?this.isubn(-w):this.negative!==0?this.length===1&&(this.words[0]|0)<w?(this.words[0]=w-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(w),this.negative=1,this):this._iaddn(w)},o.prototype._iaddn=function(w){this.words[0]+=w;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},o.prototype.isubn=function(w){if(r(typeof w=="number"),r(w<67108864),w<0)return this.iaddn(-w);if(this.negative!==0)return this.negative=0,this.iaddn(w),this.negative=1,this;if(this.words[0]-=w,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},o.prototype.addn=function(w){return this.clone().iaddn(w)},o.prototype.subn=function(w){return this.clone().isubn(w)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(w,k,I){var b=w.length+I,u;this._expand(b);var m,y=0;for(u=0;u<w.length;u++){m=(this.words[u+I]|0)+y;var x=(w.words[u]|0)*k;m-=x&67108863,y=(m>>26)-(x/67108864|0),this.words[u+I]=m&67108863}for(;u<this.length-I;u++)m=(this.words[u+I]|0)+y,y=m>>26,this.words[u+I]=m&67108863;if(y===0)return this.strip();for(r(y===-1),y=0,u=0;u<this.length;u++)m=-(this.words[u]|0)+y,y=m>>26,this.words[u]=m&67108863;return this.negative=1,this.strip()},o.prototype._wordDiv=function(w,k){var I=this.length-w.length,b=this.clone(),u=w,m=u.words[u.length-1]|0,y=this._countBits(m);I=26-y,I!==0&&(u=u.ushln(I),b.iushln(I),m=u.words[u.length-1]|0);var x=b.length-u.length,f;if(k!=="mod"){f=new o(null),f.length=x+1,f.words=new Array(f.length);for(var M=0;M<f.length;M++)f.words[M]=0}var W=b.clone()._ishlnsubmul(u,1,x);W.negative===0&&(b=W,f&&(f.words[x]=1));for(var z=x-1;z>=0;z--){var S=(b.words[u.length+z]|0)*67108864+(b.words[u.length+z-1]|0);for(S=Math.min(S/m|0,67108863),b._ishlnsubmul(u,S,z);b.negative!==0;)S--,b.negative=0,b._ishlnsubmul(u,1,z),b.isZero()||(b.negative^=1);f&&(f.words[z]=S)}return f&&f.strip(),b.strip(),k!=="div"&&I!==0&&b.iushrn(I),{div:f||null,mod:b}},o.prototype.divmod=function(w,k,I){if(r(!w.isZero()),this.isZero())return{div:new o(0),mod:new o(0)};var b,u,m;return this.negative!==0&&w.negative===0?(m=this.neg().divmod(w,k),k!=="mod"&&(b=m.div.neg()),k!=="div"&&(u=m.mod.neg(),I&&u.negative!==0&&u.iadd(w)),{div:b,mod:u}):this.negative===0&&w.negative!==0?(m=this.divmod(w.neg(),k),k!=="mod"&&(b=m.div.neg()),{div:b,mod:m.mod}):(this.negative&w.negative)!==0?(m=this.neg().divmod(w.neg(),k),k!=="div"&&(u=m.mod.neg(),I&&u.negative!==0&&u.isub(w)),{div:m.div,mod:u}):w.length>this.length||this.cmp(w)<0?{div:new o(0),mod:this}:w.length===1?k==="div"?{div:this.divn(w.words[0]),mod:null}:k==="mod"?{div:null,mod:new o(this.modn(w.words[0]))}:{div:this.divn(w.words[0]),mod:new o(this.modn(w.words[0]))}:this._wordDiv(w,k)},o.prototype.div=function(w){return this.divmod(w,"div",!1).div},o.prototype.mod=function(w){return this.divmod(w,"mod",!1).mod},o.prototype.umod=function(w){return this.divmod(w,"mod",!0).mod},o.prototype.divRound=function(w){var k=this.divmod(w);if(k.mod.isZero())return k.div;var I=k.div.negative!==0?k.mod.isub(w):k.mod,b=w.ushrn(1),u=w.andln(1),m=I.cmp(b);return m<0||u===1&&m===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},o.prototype.modn=function(w){r(w<=67108863);for(var k=(1<<26)%w,I=0,b=this.length-1;b>=0;b--)I=(k*I+(this.words[b]|0))%w;return I},o.prototype.idivn=function(w){r(w<=67108863);for(var k=0,I=this.length-1;I>=0;I--){var b=(this.words[I]|0)+k*67108864;this.words[I]=b/w|0,k=b%w}return this.strip()},o.prototype.divn=function(w){return this.clone().idivn(w)},o.prototype.egcd=function(w){r(w.negative===0),r(!w.isZero());var k=this,I=w.clone();k.negative!==0?k=k.umod(w):k=k.clone();for(var b=new o(1),u=new o(0),m=new o(0),y=new o(1),x=0;k.isEven()&&I.isEven();)k.iushrn(1),I.iushrn(1),++x;for(var f=I.clone(),M=k.clone();!k.isZero();){for(var W=0,z=1;(k.words[0]&z)===0&&W<26;++W,z<<=1);if(W>0)for(k.iushrn(W);W-- >0;)(b.isOdd()||u.isOdd())&&(b.iadd(f),u.isub(M)),b.iushrn(1),u.iushrn(1);for(var S=0,G=1;(I.words[0]&G)===0&&S<26;++S,G<<=1);if(S>0)for(I.iushrn(S);S-- >0;)(m.isOdd()||y.isOdd())&&(m.iadd(f),y.isub(M)),m.iushrn(1),y.iushrn(1);k.cmp(I)>=0?(k.isub(I),b.isub(m),u.isub(y)):(I.isub(k),m.isub(b),y.isub(u))}return{a:m,b:y,gcd:I.iushln(x)}},o.prototype._invmp=function(w){r(w.negative===0),r(!w.isZero());var k=this,I=w.clone();k.negative!==0?k=k.umod(w):k=k.clone();for(var b=new o(1),u=new o(0),m=I.clone();k.cmpn(1)>0&&I.cmpn(1)>0;){for(var y=0,x=1;(k.words[0]&x)===0&&y<26;++y,x<<=1);if(y>0)for(k.iushrn(y);y-- >0;)b.isOdd()&&b.iadd(m),b.iushrn(1);for(var f=0,M=1;(I.words[0]&M)===0&&f<26;++f,M<<=1);if(f>0)for(I.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(m),u.iushrn(1);k.cmp(I)>=0?(k.isub(I),b.isub(u)):(I.isub(k),u.isub(b))}var W;return k.cmpn(1)===0?W=b:W=u,W.cmpn(0)<0&&W.iadd(w),W},o.prototype.gcd=function(w){if(this.isZero())return w.abs();if(w.isZero())return this.abs();var k=this.clone(),I=w.clone();k.negative=0,I.negative=0;for(var b=0;k.isEven()&&I.isEven();b++)k.iushrn(1),I.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;I.isEven();)I.iushrn(1);var u=k.cmp(I);if(u<0){var m=k;k=I,I=m}else if(u===0||I.cmpn(1)===0)break;k.isub(I)}while(!0);return I.iushln(b)},o.prototype.invm=function(w){return this.egcd(w).a.umod(w)},o.prototype.isEven=function(){return(this.words[0]&1)===0},o.prototype.isOdd=function(){return(this.words[0]&1)===1},o.prototype.andln=function(w){return this.words[0]&w},o.prototype.bincn=function(w){r(typeof w=="number");var k=w%26,I=(w-k)/26,b=1<<k;if(this.length<=I)return this._expand(I+1),this.words[I]|=b,this;for(var u=b,m=I;u!==0&&m<this.length;m++){var y=this.words[m]|0;y+=u,u=y>>>26,y&=67108863,this.words[m]=y}return u!==0&&(this.words[m]=u,this.length++),this},o.prototype.isZero=function(){return this.length===1&&this.words[0]===0},o.prototype.cmpn=function(w){var k=w<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var I;if(this.length>1)I=1;else{k&&(w=-w),r(w<=67108863,"Number is too big");var b=this.words[0]|0;I=b===w?0:b<w?-1:1}return this.negative!==0?-I|0:I},o.prototype.cmp=function(w){if(this.negative!==0&&w.negative===0)return-1;if(this.negative===0&&w.negative!==0)return 1;var k=this.ucmp(w);return this.negative!==0?-k|0:k},o.prototype.ucmp=function(w){if(this.length>w.length)return 1;if(this.length<w.length)return-1;for(var k=0,I=this.length-1;I>=0;I--){var b=this.words[I]|0,u=w.words[I]|0;if(b!==u){b<u?k=-1:b>u&&(k=1);break}}return k},o.prototype.gtn=function(w){return this.cmpn(w)===1},o.prototype.gt=function(w){return this.cmp(w)===1},o.prototype.gten=function(w){return this.cmpn(w)>=0},o.prototype.gte=function(w){return this.cmp(w)>=0},o.prototype.ltn=function(w){return this.cmpn(w)===-1},o.prototype.lt=function(w){return this.cmp(w)===-1},o.prototype.lten=function(w){return this.cmpn(w)<=0},o.prototype.lte=function(w){return this.cmp(w)<=0},o.prototype.eqn=function(w){return this.cmpn(w)===0},o.prototype.eq=function(w){return this.cmp(w)===0},o.red=function(w){return new ie(w)},o.prototype.toRed=function(w){return r(!this.red,"Already a number in reduction context"),r(this.negative===0,"red works only with positives"),w.convertTo(this)._forceRed(w)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(w){return this.red=w,this},o.prototype.forceRed=function(w){return r(!this.red,"Already a number in reduction context"),this._forceRed(w)},o.prototype.redAdd=function(w){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,w)},o.prototype.redIAdd=function(w){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,w)},o.prototype.redSub=function(w){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,w)},o.prototype.redISub=function(w){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,w)},o.prototype.redShl=function(w){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,w)},o.prototype.redMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.mul(this,w)},o.prototype.redIMul=function(w){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,w),this.red.imul(this,w)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(w){return r(this.red&&!w.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,w)};var F={k256:null,p224:null,p192:null,p25519:null};function N(Z,w){this.name=Z,this.p=new o(w,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}N.prototype._tmp=function(){var w=new o(null);return w.words=new Array(Math.ceil(this.n/13)),w},N.prototype.ireduce=function(w){var k=w,I;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),I=k.bitLength();while(I>this.n);var b=I<this.n?-1:k.ucmp(this.p);return b===0?(k.words[0]=0,k.length=1):b>0?k.isub(this.p):k.strip(),k},N.prototype.split=function(w,k){w.iushrn(this.n,0,k)},N.prototype.imulK=function(w){return w.imul(this.k)};function U(){N.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}n(U,N),U.prototype.split=function(w,k){for(var I=4194303,b=Math.min(w.length,9),u=0;u<b;u++)k.words[u]=w.words[u];if(k.length=b,w.length<=9){w.words[0]=0,w.length=1;return}var m=w.words[9];for(k.words[k.length++]=m&I,u=10;u<w.length;u++){var y=w.words[u]|0;w.words[u-10]=(y&I)<<4|m>>>22,m=y}m>>>=22,w.words[u-10]=m,m===0&&w.length>10?w.length-=10:w.length-=9},U.prototype.imulK=function(w){w.words[w.length]=0,w.words[w.length+1]=0,w.length+=2;for(var k=0,I=0;I<w.length;I++){var b=w.words[I]|0;k+=b*977,w.words[I]=k&67108863,k=b*64+(k/67108864|0)}return w.words[w.length-1]===0&&(w.length--,w.words[w.length-1]===0&&w.length--),w};function q(){N.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}n(q,N);function X(){N.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}n(X,N);function ue(){N.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}n(ue,N),ue.prototype.imulK=function(w){for(var k=0,I=0;I<w.length;I++){var b=(w.words[I]|0)*19+k,u=b&67108863;b>>>=26,w.words[I]=u,k=b}return k!==0&&(w.words[w.length++]=k),w},o._prime=function(w){if(F[w])return F[w];var k;if(w==="k256")k=new U;else if(w==="p224")k=new q;else if(w==="p192")k=new X;else if(w==="p25519")k=new ue;else throw new Error("Unknown prime "+w);return F[w]=k,k};function ie(Z){if(typeof Z=="string"){var w=o._prime(Z);this.m=w.p,this.prime=w}else r(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}ie.prototype._verify1=function(w){r(w.negative===0,"red works only with positives"),r(w.red,"red works only with red numbers")},ie.prototype._verify2=function(w,k){r((w.negative|k.negative)===0,"red works only with positives"),r(w.red&&w.red===k.red,"red works only with red numbers")},ie.prototype.imod=function(w){return this.prime?this.prime.ireduce(w)._forceRed(this):w.umod(this.m)._forceRed(this)},ie.prototype.neg=function(w){return w.isZero()?w.clone():this.m.sub(w)._forceRed(this)},ie.prototype.add=function(w,k){this._verify2(w,k);var I=w.add(k);return I.cmp(this.m)>=0&&I.isub(this.m),I._forceRed(this)},ie.prototype.iadd=function(w,k){this._verify2(w,k);var I=w.iadd(k);return I.cmp(this.m)>=0&&I.isub(this.m),I},ie.prototype.sub=function(w,k){this._verify2(w,k);var I=w.sub(k);return I.cmpn(0)<0&&I.iadd(this.m),I._forceRed(this)},ie.prototype.isub=function(w,k){this._verify2(w,k);var I=w.isub(k);return I.cmpn(0)<0&&I.iadd(this.m),I},ie.prototype.shl=function(w,k){return this._verify1(w),this.imod(w.ushln(k))},ie.prototype.imul=function(w,k){return this._verify2(w,k),this.imod(w.imul(k))},ie.prototype.mul=function(w,k){return this._verify2(w,k),this.imod(w.mul(k))},ie.prototype.isqr=function(w){return this.imul(w,w.clone())},ie.prototype.sqr=function(w){return this.mul(w,w)},ie.prototype.sqrt=function(w){if(w.isZero())return w.clone();var k=this.m.andln(3);if(r(k%2===1),k===3){var I=this.m.add(new o(1)).iushrn(2);return this.pow(w,I)}for(var b=this.m.subn(1),u=0;!b.isZero()&&b.andln(1)===0;)u++,b.iushrn(1);r(!b.isZero());var m=new o(1).toRed(this),y=m.redNeg(),x=this.m.subn(1).iushrn(1),f=this.m.bitLength();for(f=new o(2*f*f).toRed(this);this.pow(f,x).cmp(y)!==0;)f.redIAdd(y);for(var M=this.pow(f,b),W=this.pow(w,b.addn(1).iushrn(1)),z=this.pow(w,b),S=u;z.cmp(m)!==0;){for(var G=z,de=0;G.cmp(m)!==0;de++)G=G.redSqr();r(de<S);var P=this.pow(M,new o(1).iushln(S-de-1));W=W.redMul(P),M=P.redSqr(),z=z.redMul(M),S=de}return W},ie.prototype.invm=function(w){var k=w._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},ie.prototype.pow=function(w,k){if(k.isZero())return new o(1).toRed(this);if(k.cmpn(1)===0)return w.clone();var I=4,b=new Array(1<<I);b[0]=new o(1).toRed(this),b[1]=w;for(var u=2;u<b.length;u++)b[u]=this.mul(b[u-1],w);var m=b[0],y=0,x=0,f=k.bitLength()%26;for(f===0&&(f=26),u=k.length-1;u>=0;u--){for(var M=k.words[u],W=f-1;W>=0;W--){var z=M>>W&1;if(m!==b[0]&&(m=this.sqr(m)),z===0&&y===0){x=0;continue}y<<=1,y|=z,x++,!(x!==I&&(u!==0||W!==0))&&(m=this.mul(m,b[y]),x=0,y=0)}f=26}return m},ie.prototype.convertTo=function(w){var k=w.umod(this.m);return k===w?k.clone():k},ie.prototype.convertFrom=function(w){var k=w.clone();return k.red=null,k},o.mont=function(w){return new ve(w)};function ve(Z){ie.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}n(ve,ie),ve.prototype.convertTo=function(w){return this.imod(w.ushln(this.shift))},ve.prototype.convertFrom=function(w){var k=this.imod(w.mul(this.rinv));return k.red=null,k},ve.prototype.imul=function(w,k){if(w.isZero()||k.isZero())return w.words[0]=0,w.length=1,w;var I=w.imul(k),b=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=I.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.mul=function(w,k){if(w.isZero()||k.isZero())return new o(0)._forceRed(this);var I=w.mul(k),b=I.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),u=I.isub(b).iushrn(this.shift),m=u;return u.cmp(this.m)>=0?m=u.isub(this.m):u.cmpn(0)<0&&(m=u.iadd(this.m)),m._forceRed(this)},ve.prototype.invm=function(w){var k=this.imod(w._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Zy>"u"||Zy,w8)});var Qy=et((Roe,S8)=>{d();h();p();S8.exports=qy;qy.strict=_8;qy.loose=b8;var y$=Object.prototype.toString,w$={"[object Int8Array]":!0,"[object Int16Array]":!0,"[object Int32Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Uint16Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0};function qy(e){return _8(e)||b8(e)}function _8(e){return e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array}function b8(e){return w$[y$.call(e)]}});var E8=et((Ioe,M8)=>{d();h();p();var x$=Qy().strict;M8.exports=function(t){if(x$(t)){var r=C.from(t.buffer);return t.byteLength!==t.buffer.byteLength&&(r=r.slice(t.byteOffset,t.byteOffset+t.byteLength)),r}else return C.from(t)}});var fE=et((Voe,ch)=>{d();h();p();var G8,W8,Z8,q8,Q8,J8,K8,X8,Y8,uh,t2,eE,tE,eu,rE,nE,oE,iE,aE,sE,lE,uE,cE;(function(e){var t=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):typeof ch=="object"&&typeof ch.exports=="object"?e(r(t,r(ch.exports))):e(r(t));function r(n,o){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(i,a){return n[i]=o?o(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])};G8=function(r,n){t(r,n);function o(){this.constructor=r}r.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)},W8=Object.assign||function(r){for(var n,o=1,i=arguments.length;o<i;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])}return r},Z8=function(r,n){var o={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&n.indexOf(i)<0&&(o[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,i=Object.getOwnPropertySymbols(r);a<i.length;a++)n.indexOf(i[a])<0&&Object.prototype.propertyIsEnumerable.call(r,i[a])&&(o[i[a]]=r[i[a]]);return o},q8=function(r,n,o,i){var a=arguments.length,s=a<3?n:i===null?i=Object.getOwnPropertyDescriptor(n,o):i,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,n,o,i);else for(var c=r.length-1;c>=0;c--)(l=r[c])&&(s=(a<3?l(s):a>3?l(n,o,s):l(n,o))||s);return a>3&&s&&Object.defineProperty(n,o,s),s},Q8=function(r,n){return function(o,i){n(o,i,r)}},J8=function(r,n){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,n)},K8=function(r,n,o,i){function a(s){return s instanceof o?s:new o(function(l){l(s)})}return new(o||(o=Promise))(function(s,l){function c(T){try{_(i.next(T))}catch(R){l(R)}}function v(T){try{_(i.throw(T))}catch(R){l(R)}}function _(T){T.done?s(T.value):a(T.value).then(c,v)}_((i=i.apply(r,n||[])).next())})},X8=function(r,n){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,a,s,l;return l={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function c(_){return function(T){return v([_,T])}}function v(_){if(i)throw new TypeError("Generator is already executing.");for(;o;)try{if(i=1,a&&(s=_[0]&2?a.return:_[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,_[1])).done)return s;switch(a=0,s&&(_=[_[0]&2,s.value]),_[0]){case 0:case 1:s=_;break;case 4:return o.label++,{value:_[1],done:!1};case 5:o.label++,a=_[1],_=[0];continue;case 7:_=o.ops.pop(),o.trys.pop();continue;default:if(s=o.trys,!(s=s.length>0&&s[s.length-1])&&(_[0]===6||_[0]===2)){o=0;continue}if(_[0]===3&&(!s||_[1]>s[0]&&_[1]<s[3])){o.label=_[1];break}if(_[0]===6&&o.label<s[1]){o.label=s[1],s=_;break}if(s&&o.label<s[2]){o.label=s[2],o.ops.push(_);break}s[2]&&o.ops.pop(),o.trys.pop();continue}_=n.call(r,o)}catch(T){_=[6,T],a=0}finally{i=s=0}if(_[0]&5)throw _[1];return{value:_[0]?_[1]:void 0,done:!0}}},cE=function(r,n,o,i){i===void 0&&(i=o),r[i]=n[o]},Y8=function(r,n){for(var o in r)o!=="default"&&!n.hasOwnProperty(o)&&(n[o]=r[o])},uh=function(r){var n=typeof Symbol=="function"&&Symbol.iterator,o=n&&r[n],i=0;if(o)return o.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")},t2=function(r,n){var o=typeof Symbol=="function"&&r[Symbol.iterator];if(!o)return r;var i=o.call(r),a,s=[],l;try{for(;(n===void 0||n-- >0)&&!(a=i.next()).done;)s.push(a.value)}catch(c){l={error:c}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(l)throw l.error}}return s},eE=function(){for(var r=[],n=0;n<arguments.length;n++)r=r.concat(t2(arguments[n]));return r},tE=function(){for(var r=0,n=0,o=arguments.length;n<o;n++)r+=arguments[n].length;for(var i=Array(r),a=0,n=0;n<o;n++)for(var s=arguments[n],l=0,c=s.length;l<c;l++,a++)i[a]=s[l];return i},eu=function(r){return this instanceof eu?(this.v=r,this):new eu(r)},rE=function(r,n,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=o.apply(r,n||[]),a,s=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(O){i[O]&&(a[O]=function($){return new Promise(function(V,F){s.push([O,$,V,F])>1||c(O,$)})})}function c(O,$){try{v(i[O]($))}catch(V){R(s[0][3],V)}}function v(O){O.value instanceof eu?Promise.resolve(O.value.v).then(_,T):R(s[0][2],O)}function _(O){c("next",O)}function T(O){c("throw",O)}function R(O,$){O($),s.shift(),s.length&&c(s[0][0],s[0][1])}},nE=function(r){var n,o;return n={},i("next"),i("throw",function(a){throw a}),i("return"),n[Symbol.iterator]=function(){return this},n;function i(a,s){n[a]=r[a]?function(l){return(o=!o)?{value:eu(r[a](l)),done:a==="return"}:s?s(l):l}:s}},oE=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r[Symbol.asyncIterator],o;return n?n.call(r):(r=typeof uh=="function"?uh(r):r[Symbol.iterator](),o={},i("next"),i("throw"),i("return"),o[Symbol.asyncIterator]=function(){return this},o);function i(s){o[s]=r[s]&&function(l){return new Promise(function(c,v){l=r[s](l),a(c,v,l.done,l.value)})}}function a(s,l,c,v){Promise.resolve(v).then(function(_){s({value:_,done:c})},l)}},iE=function(r,n){return Object.defineProperty?Object.defineProperty(r,"raw",{value:n}):r.raw=n,r},aE=function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var o in r)Object.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n.default=r,n},sE=function(r){return r&&r.__esModule?r:{default:r}},lE=function(r,n){if(!n.has(r))throw new TypeError("attempted to get private field on non-instance");return n.get(r)},uE=function(r,n,o){if(!n.has(r))throw new TypeError("attempted to set private field on non-instance");return n.set(r,o),o},e("__extends",G8),e("__assign",W8),e("__rest",Z8),e("__decorate",q8),e("__param",Q8),e("__metadata",J8),e("__awaiter",K8),e("__generator",X8),e("__exportStar",Y8),e("__createBinding",cE),e("__values",uh),e("__read",t2),e("__spread",eE),e("__spreadArrays",tE),e("__await",eu),e("__asyncGenerator",rE),e("__asyncDelegator",nE),e("__asyncValues",oE),e("__makeTemplateObject",iE),e("__importStar",aE),e("__importDefault",sE),e("__classPrivateFieldGet",lE),e("__classPrivateFieldSet",uE)})});var pE=et(Xi=>{"use strict";d();h();p();Object.defineProperty(Xi,"__esModule",{value:!0});Xi.isBrowserCryptoAvailable=Xi.getSubtleCrypto=Xi.getBrowerCrypto=void 0;function r2(){return(globalThis==null?void 0:globalThis.crypto)||(globalThis==null?void 0:globalThis.msCrypto)||{}}Xi.getBrowerCrypto=r2;function dE(){let e=r2();return e.subtle||e.webkitSubtle}Xi.getSubtleCrypto=dE;function P$(){return!!r2()&&!!dE()}Xi.isBrowserCryptoAvailable=P$});var gE=et(Yi=>{"use strict";d();h();p();Object.defineProperty(Yi,"__esModule",{value:!0});Yi.isBrowser=Yi.isNode=Yi.isReactNative=void 0;function hE(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}Yi.isReactNative=hE;function mE(){return typeof process<"u"&&typeof process.versions<"u"&&typeof process.versions.node<"u"}Yi.isNode=mE;function R$(){return!hE()&&!mE()}Yi.isBrowser=R$});var tu=et(fh=>{"use strict";d();h();p();Object.defineProperty(fh,"__esModule",{value:!0});var vE=fE();vE.__exportStar(pE(),fh);vE.__exportStar(gE(),fh)});var DE=et((Aie,AE)=>{"use strict";d();h();p();AE.exports=e=>encodeURIComponent(e).replace(/[!'()*]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`)});var $E=et((Die,BE)=>{"use strict";d();h();p();var LE="%[a-f0-9]{2}",NE=new RegExp("("+LE+")|([^%]+?)","gi"),FE=new RegExp("("+LE+")+","gi");function u2(e,t){try{return[decodeURIComponent(e.join(""))]}catch(o){}if(e.length===1)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],u2(r),u2(n))}function q$(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(NE)||[],r=1;r<t.length;r++)e=u2(t,r).join(""),t=e.match(NE)||[];return e}}function Q$(e){for(var t={"%FE%FF":"\uFFFD\uFFFD","%FF%FE":"\uFFFD\uFFFD"},r=FE.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(s){var n=q$(r[0]);n!==r[0]&&(t[r[0]]=n)}r=FE.exec(e)}t["%C2"]="\uFFFD";for(var o=Object.keys(t),i=0;i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}BE.exports=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return Q$(e)}}});var zE=et((Nie,UE)=>{"use strict";d();h();p();UE.exports=(e,t)=>{if(!(typeof e=="string"&&typeof t=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(t==="")return[e];let r=e.indexOf(t);return r===-1?[e]:[e.slice(0,r),e.slice(r+t.length)]}});var QE=et(ai=>{"use strict";d();h();p();var J$=DE(),K$=$E(),jE=zE(),X$=e=>e==null;function Y$(e){switch(e.arrayFormat){case"index":return t=>(r,n)=>{let o=r.length;return n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Cr(t,e),"[",o,"]"].join("")]:[...r,[Cr(t,e),"[",Cr(o,e),"]=",Cr(n,e)].join("")]};case"bracket":return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,[Cr(t,e),"[]"].join("")]:[...r,[Cr(t,e),"[]=",Cr(n,e)].join("")];case"comma":case"separator":return t=>(r,n)=>n==null||n.length===0?r:r.length===0?[[Cr(t,e),"=",Cr(n,e)].join("")]:[[r,Cr(n,e)].join(e.arrayFormatSeparator)];default:return t=>(r,n)=>n===void 0||e.skipNull&&n===null||e.skipEmptyString&&n===""?r:n===null?[...r,Cr(t,e)]:[...r,[Cr(t,e),"=",Cr(n,e)].join("")]}}function eU(e){let t;switch(e.arrayFormat){case"index":return(r,n,o)=>{if(t=/\[(\d*)\]$/.exec(r),r=r.replace(/\[\d*\]$/,""),!t){o[r]=n;return}o[r]===void 0&&(o[r]={}),o[r][t[1]]=n};case"bracket":return(r,n,o)=>{if(t=/(\[\])$/.exec(r),r=r.replace(/\[\]$/,""),!t){o[r]=n;return}if(o[r]===void 0){o[r]=[n];return}o[r]=[].concat(o[r],n)};case"comma":case"separator":return(r,n,o)=>{let a=typeof n=="string"&&n.split("").indexOf(e.arrayFormatSeparator)>-1?n.split(e.arrayFormatSeparator).map(s=>Gc(s,e)):n===null?n:Gc(n,e);o[r]=a};default:return(r,n,o)=>{if(o[r]===void 0){o[r]=n;return}o[r]=[].concat(o[r],n)}}}function HE(e){if(typeof e!="string"||e.length!==1)throw new TypeError("arrayFormatSeparator must be single character string")}function Cr(e,t){return t.encode?t.strict?J$(e):encodeURIComponent(e):e}function Gc(e,t){return t.decode?K$(e):e}function GE(e){return Array.isArray(e)?e.sort():typeof e=="object"?GE(Object.keys(e)).sort((t,r)=>Number(t)-Number(r)).map(t=>e[t]):e}function WE(e){let t=e.indexOf("#");return t!==-1&&(e=e.slice(0,t)),e}function tU(e){let t="",r=e.indexOf("#");return r!==-1&&(t=e.slice(r)),t}function ZE(e){e=WE(e);let t=e.indexOf("?");return t===-1?"":e.slice(t+1)}function VE(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&typeof e=="string"&&e.trim()!==""?e=Number(e):t.parseBooleans&&e!==null&&(e.toLowerCase()==="true"||e.toLowerCase()==="false")&&(e=e.toLowerCase()==="true"),e}function qE(e,t){t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t),HE(t.arrayFormatSeparator);let r=eU(t),n=Object.create(null);if(typeof e!="string"||(e=e.trim().replace(/^[?#&]/,""),!e))return n;for(let o of e.split("&")){let[i,a]=jE(t.decode?o.replace(/\+/g," "):o,"=");a=a===void 0?null:["comma","separator"].includes(t.arrayFormat)?a:Gc(a,t),r(Gc(i,t),a,n)}for(let o of Object.keys(n)){let i=n[o];if(typeof i=="object"&&i!==null)for(let a of Object.keys(i))i[a]=VE(i[a],t);else n[o]=VE(i,t)}return t.sort===!1?n:(t.sort===!0?Object.keys(n).sort():Object.keys(n).sort(t.sort)).reduce((o,i)=>{let a=n[i];return Boolean(a)&&typeof a=="object"&&!Array.isArray(a)?o[i]=GE(a):o[i]=a,o},Object.create(null))}ai.extract=ZE;ai.parse=qE;ai.stringify=(e,t)=>{if(!e)return"";t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t),HE(t.arrayFormatSeparator);let r=a=>t.skipNull&&X$(e[a])||t.skipEmptyString&&e[a]==="",n=Y$(t),o={};for(let a of Object.keys(e))r(a)||(o[a]=e[a]);let i=Object.keys(o);return t.sort!==!1&&i.sort(t.sort),i.map(a=>{let s=e[a];return s===void 0?"":s===null?Cr(a,t):Array.isArray(s)?s.reduce(n(a),[]).join("&"):Cr(a,t)+"="+Cr(s,t)}).filter(a=>a.length>0).join("&")};ai.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);let[r,n]=jE(e,"#");return Object.assign({url:r.split("?")[0]||"",query:qE(ZE(e),t)},t&&t.parseFragmentIdentifier&&n?{fragmentIdentifier:Gc(n,t)}:{})};ai.stringifyUrl=(e,t)=>{t=Object.assign({encode:!0,strict:!0},t);let r=WE(e.url).split("?")[0]||"",n=ai.extract(e.url),o=ai.parse(n,{sort:!1}),i=Object.assign(o,e.query),a=ai.stringify(i,t);a&&(a=`?${a}`);let s=tU(e.url);return e.fragmentIdentifier&&(s=`#${Cr(e.fragmentIdentifier,t)}`),`${r}${a}${s}`}});var rC=et((Kie,tC)=>{"use strict";d();h();p();tC.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}});var n6=et(r6=>{"use strict";d();h();p();Object.defineProperty(r6,"__esModule",{value:!0});r6.default=[{alpha2:"US",alpha3:"USA",country_code:"1",country_name:"United States",mobile_begin_with:["201","202","203","205","206","207","208","209","210","212","213","214","215","216","217","218","219","220","223","224","225","227","228","229","231","234","239","240","248","251","252","253","254","256","260","262","267","269","270","272","274","276","278","281","283","301","302","303","304","305","307","308","309","310","312","313","314","315","316","317","318","319","320","321","323","325","327","330","331","332","334","336","337","339","341","346","347","351","352","360","361","364","369","380","385","386","401","402","404","405","406","407","408","409","410","412","413","414","415","417","419","423","424","425","430","432","434","435","440","441","442","443","445","447","458","463","464","469","470","475","478","479","480","484","501","502","503","504","505","507","508","509","510","512","513","515","516","517","518","520","530","531","534","539","540","541","551","557","559","561","562","563","564","567","570","571","572","573","574","575","580","582","585","586","601","602","603","605","606","607","608","609","610","612","614","615","616","617","618","619","620","623","626","627","628","629","630","631","636","640","641","646","650","651","656","657","659","660","661","662","667","669","678","679","680","681","682","689","701","702","703","704","706","707","708","712","713","714","715","716","717","718","719","720","724","725","726","727","730","731","732","734","737","740","743","747","752","754","757","760","762","763","764","765","769","770","771","772","773","774","775","779","781","785","786","787","801","802","803","804","805","806","808","810","812","813","814","815","816","817","818","820","828","830","831","832","835","838","840","843","845","847","848","850","854","856","857","858","859","860","862","863","864","865","870","872","878","901","903","904","906","907","908","909","910","912","913","914","915","916","917","918","919","920","925","927","928","929","931","934","935","936","937","938","939","940","941","945","947","949","951","952","954","956","957","959","970","971","972","973","975","978","979","980","984","985","986","989","888","800","833","844","855","866","877","279"],phone_number_lengths:[10]},{alpha2:"AW",alpha3:"ABW",country_code:"297",country_name:"Aruba",mobile_begin_with:["5","6","7","9"],phone_number_lengths:[7]},{alpha2:"AF",alpha3:"AFG",country_code:"93",country_name:"Afghanistan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"AO",alpha3:"AGO",country_code:"244",country_name:"Angola",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"AI",alpha3:"AIA",country_code:"1",country_name:"Anguilla",mobile_begin_with:["2645","2647"],phone_number_lengths:[10]},{alpha2:"AX",alpha3:"ALA",country_code:"358",country_name:"\xC5land Islands",mobile_begin_with:["18"],phone_number_lengths:[6,7,8]},{alpha2:"AL",alpha3:"ALB",country_code:"355",country_name:"Albania",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"AD",alpha3:"AND",country_code:"376",country_name:"Andorra",mobile_begin_with:["3","4","6"],phone_number_lengths:[6]},{alpha2:"AE",alpha3:"ARE",country_code:"971",country_name:"United Arab Emirates",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"AR",alpha3:"ARG",country_code:"54",country_name:"Argentina",mobile_begin_with:["1","2","3"],phone_number_lengths:[8,9,10,11,12]},{alpha2:"AM",alpha3:"ARM",country_code:"374",country_name:"Armenia",mobile_begin_with:["3","4","5","7","9"],phone_number_lengths:[8]},{alpha2:"AS",alpha3:"ASM",country_code:"1",country_name:"American Samoa",mobile_begin_with:["684733","684258"],phone_number_lengths:[10]},{alpha2:"AG",alpha3:"ATG",country_code:"1",country_name:"Antigua and Barbuda",mobile_begin_with:["2687"],phone_number_lengths:[10]},{alpha2:"AU",alpha3:"AUS",country_code:"61",country_name:"Australia",mobile_begin_with:["4"],phone_number_lengths:[9]},{alpha2:"AT",alpha3:"AUT",country_code:"43",country_name:"Austria",mobile_begin_with:["6"],phone_number_lengths:[10,11,12,13,14]},{alpha2:"AZ",alpha3:"AZE",country_code:"994",country_name:"Azerbaijan",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[9]},{alpha2:"BI",alpha3:"BDI",country_code:"257",country_name:"Burundi",mobile_begin_with:["7","29"],phone_number_lengths:[8]},{alpha2:"BE",alpha3:"BEL",country_code:"32",country_name:"Belgium",mobile_begin_with:["4","3"],phone_number_lengths:[9,8]},{alpha2:"BJ",alpha3:"BEN",country_code:"229",country_name:"Benin",mobile_begin_with:["4","6","9"],phone_number_lengths:[8]},{alpha2:"BF",alpha3:"BFA",country_code:"226",country_name:"Burkina Faso",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BD",alpha3:"BGD",country_code:"880",country_name:"Bangladesh",mobile_begin_with:["1"],phone_number_lengths:[8,9,10]},{alpha2:"BG",alpha3:"BGR",country_code:"359",country_name:"Bulgaria",mobile_begin_with:["87","88","89","98","99","43"],phone_number_lengths:[8,9]},{alpha2:"BH",alpha3:"BHR",country_code:"973",country_name:"Bahrain",mobile_begin_with:["3"],phone_number_lengths:[8]},{alpha2:"BS",alpha3:"BHS",country_code:"1",country_name:"Bahamas",mobile_begin_with:["242"],phone_number_lengths:[10]},{alpha2:"BA",alpha3:"BIH",country_code:"387",country_name:"Bosnia and Herzegovina",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"BY",alpha3:"BLR",country_code:"375",country_name:"Belarus",mobile_begin_with:["25","29","33","44"],phone_number_lengths:[9]},{alpha2:"BZ",alpha3:"BLZ",country_code:"501",country_name:"Belize",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"BM",alpha3:"BMU",country_code:"1",country_name:"Bermuda",mobile_begin_with:["4413","4415","4417"],phone_number_lengths:[10]},{alpha2:"BO",alpha3:"BOL",country_code:"591",country_name:"Bolivia",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"BR",alpha3:"BRA",country_code:"55",country_name:"Brazil",mobile_begin_with:["119","129","139","149","159","169","179","189","199","219","229","249","279","289","319","329","339","349","359","379","389","419","429","439","449","459","469","479","489","499","519","539","549","559","619","629","639","649","659","669","679","689","699","719","739","749","759","779","799","819","829","839","849","859","869","879","889","899","919","929","939","949","959","969","979","989","999"],phone_number_lengths:[10,11]},{alpha2:"BB",alpha3:"BRB",country_code:"1",country_name:"Barbados",mobile_begin_with:["246"],phone_number_lengths:[10]},{alpha2:"BN",alpha3:"BRN",country_code:"673",country_name:"Brunei Darussalam",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"BT",alpha3:"BTN",country_code:"975",country_name:"Bhutan",mobile_begin_with:["17"],phone_number_lengths:[8]},{alpha2:"BW",alpha3:"BWA",country_code:"267",country_name:"Botswana",mobile_begin_with:["71","72","73","74","75","76"],phone_number_lengths:[8]},{alpha2:"CF",alpha3:"CAF",country_code:"236",country_name:"Central African Republic",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"CA",alpha3:"CAN",country_code:"1",country_name:"Canada",mobile_begin_with:["204","226","236","249","250","289","306","343","365","367","403","416","418","431","437","438","450","506","514","519","548","579","581","587","600","604","613","639","647","672","705","709","778","780","807","819","825","867","873","902","905"],phone_number_lengths:[10]},{alpha2:"CH",alpha3:"CHE",country_code:"41",country_name:"Switzerland",mobile_begin_with:["74","75","76","77","78","79"],phone_number_lengths:[9]},{alpha2:"CL",alpha3:"CHL",country_code:"56",country_name:"Chile",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"CN",alpha3:"CHN",country_code:"86",country_name:"China",mobile_begin_with:["13","14","15","17","18","19","16"],phone_number_lengths:[11]},{alpha2:"CI",alpha3:"CIV",country_code:"225",country_name:"C\xF4te D'Ivoire",mobile_begin_with:["0","4","5","6","7","8"],phone_number_lengths:[10]},{alpha2:"CM",alpha3:"CMR",country_code:"237",country_name:"Cameroon",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"CD",alpha3:"COD",country_code:"243",country_name:"Congo, The Democratic Republic Of The",mobile_begin_with:["8","9"],phone_number_lengths:[9]},{alpha2:"CG",alpha3:"COG",country_code:"242",country_name:"Congo",mobile_begin_with:["0"],phone_number_lengths:[9]},{alpha2:"CK",alpha3:"COK",country_code:"682",country_name:"Cook Islands",mobile_begin_with:["5","7"],phone_number_lengths:[5]},{alpha2:"CO",alpha3:"COL",country_code:"57",country_name:"Colombia",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"CW",alpha3:"CUW",country_code:"5999",country_name:"Cura\xE7ao",mobile_begin_with:["5","6"],phone_number_lengths:[7]},{alpha2:"KM",alpha3:"COM",country_code:"269",country_name:"Comoros",mobile_begin_with:["3","76"],phone_number_lengths:[7]},{alpha2:"CV",alpha3:"CPV",country_code:"238",country_name:"Cape Verde",mobile_begin_with:["5","9"],phone_number_lengths:[7]},{alpha2:"CR",alpha3:"CRI",country_code:"506",country_name:"Costa Rica",mobile_begin_with:["5","6","7","8"],phone_number_lengths:[8]},{alpha2:"CU",alpha3:"CUB",country_code:"53",country_name:"Cuba",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"KY",alpha3:"CYM",country_code:"1",country_name:"Cayman Islands",mobile_begin_with:["345"],phone_number_lengths:[10]},{alpha2:"CY",alpha3:"CYP",country_code:"357",country_name:"Cyprus",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"CZ",alpha3:"CZE",country_code:"420",country_name:"Czech Republic",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"DE",alpha3:"DEU",country_code:"49",country_name:"Germany",mobile_begin_with:["15","16","17"],phone_number_lengths:[10,11]},{alpha2:"DJ",alpha3:"DJI",country_code:"253",country_name:"Djibouti",mobile_begin_with:["77"],phone_number_lengths:[8]},{alpha2:"DM",alpha3:"DMA",country_code:"1",country_name:"Dominica",mobile_begin_with:["767"],phone_number_lengths:[10]},{alpha2:"DK",alpha3:"DNK",country_code:"45",country_name:"Denmark",mobile_begin_with:["2","30","31","40","41","42","50","51","52","53","60","61","71","81","91","92","93"],phone_number_lengths:[8]},{alpha2:"DO",alpha3:"DOM",country_code:"1",country_name:"Dominican Republic",mobile_begin_with:["809","829","849"],phone_number_lengths:[10]},{alpha2:"DZ",alpha3:"DZA",country_code:"213",country_name:"Algeria",mobile_begin_with:["5","6","7"],phone_number_lengths:[9]},{alpha2:"EC",alpha3:"ECU",country_code:"593",country_name:"Ecuador",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"EG",alpha3:"EGY",country_code:"20",country_name:"Egypt",mobile_begin_with:["1"],phone_number_lengths:[10,8]},{alpha2:"ER",alpha3:"ERI",country_code:"291",country_name:"Eritrea",mobile_begin_with:["1","7","8"],phone_number_lengths:[7]},{alpha2:"ES",alpha3:"ESP",country_code:"34",country_name:"Spain",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"EE",alpha3:"EST",country_code:"372",country_name:"Estonia",mobile_begin_with:["5","81","82","83"],phone_number_lengths:[7,8]},{alpha2:"ET",alpha3:"ETH",country_code:"251",country_name:"Ethiopia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"FI",alpha3:"FIN",country_code:"358",country_name:"Finland",mobile_begin_with:["4","5"],phone_number_lengths:[9,10]},{alpha2:"FJ",alpha3:"FJI",country_code:"679",country_name:"Fiji",mobile_begin_with:["2","7","8","9"],phone_number_lengths:[7]},{alpha2:"FK",alpha3:"FLK",country_code:"500",country_name:"Falkland Islands (Malvinas)",mobile_begin_with:["5","6"],phone_number_lengths:[5]},{alpha2:"FR",alpha3:"FRA",country_code:"33",country_name:"France",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"FO",alpha3:"FRO",country_code:"298",country_name:"Faroe Islands",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"FM",alpha3:"FSM",country_code:"691",country_name:"Micronesia, Federated States Of",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"GA",alpha3:"GAB",country_code:"241",country_name:"Gabon",mobile_begin_with:["2","3","4","5","6","7"],phone_number_lengths:[7]},{alpha2:"GB",alpha3:"GBR",country_code:"44",country_name:"United Kingdom",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"GE",alpha3:"GEO",country_code:"995",country_name:"Georgia",mobile_begin_with:["5","7"],phone_number_lengths:[9]},{alpha2:"GH",alpha3:"GHA",country_code:"233",country_name:"Ghana",mobile_begin_with:["2","5"],phone_number_lengths:[9]},{alpha2:"GI",alpha3:"GIB",country_code:"350",country_name:"Gibraltar",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"GN",alpha3:"GIN",country_code:"224",country_name:"Guinea",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"GP",alpha3:"GLP",country_code:"590",country_name:"Guadeloupe",mobile_begin_with:["690"],phone_number_lengths:[9]},{alpha2:"GM",alpha3:"GMB",country_code:"220",country_name:"Gambia",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"GW",alpha3:"GNB",country_code:"245",country_name:"Guinea-Bissau",mobile_begin_with:["5","6","7"],phone_number_lengths:[7]},{alpha2:"GQ",alpha3:"GNQ",country_code:"240",country_name:"Equatorial Guinea",mobile_begin_with:["222","551"],phone_number_lengths:[9]},{alpha2:"GR",alpha3:"GRC",country_code:"30",country_name:"Greece",mobile_begin_with:["6"],phone_number_lengths:[10]},{alpha2:"GD",alpha3:"GRD",country_code:"1",country_name:"Grenada",mobile_begin_with:["473"],phone_number_lengths:[10]},{alpha2:"GL",alpha3:"GRL",country_code:"299",country_name:"Greenland",mobile_begin_with:["2","4","5"],phone_number_lengths:[6]},{alpha2:"GT",alpha3:"GTM",country_code:"502",country_name:"Guatemala",mobile_begin_with:["3","4","5"],phone_number_lengths:[8]},{alpha2:"GF",alpha3:"GUF",country_code:"594",country_name:"French Guiana",mobile_begin_with:["694"],phone_number_lengths:[9]},{alpha2:"GU",alpha3:"GUM",country_code:"1",country_name:"Guam",mobile_begin_with:["671"],phone_number_lengths:[10]},{alpha2:"GY",alpha3:"GUY",country_code:"592",country_name:"Guyana",mobile_begin_with:["6"],phone_number_lengths:[7]},{alpha2:"HK",alpha3:"HKG",country_code:"852",country_name:"Hong Kong",mobile_begin_with:["4","5","6","70","71","72","73","81","82","83","84","85","86","87","88","89","9"],phone_number_lengths:[8]},{alpha2:"HN",alpha3:"HND",country_code:"504",country_name:"Honduras",mobile_begin_with:["3","7","8","9"],phone_number_lengths:[8]},{alpha2:"HR",alpha3:"HRV",country_code:"385",country_name:"Croatia",mobile_begin_with:["9"],phone_number_lengths:[8,9]},{alpha2:"HT",alpha3:"HTI",country_code:"509",country_name:"Haiti",mobile_begin_with:["3","4"],phone_number_lengths:[8]},{alpha2:"HU",alpha3:"HUN",country_code:"36",country_name:"Hungary",mobile_begin_with:["20","30","31","50","70"],phone_number_lengths:[9]},{alpha2:"ID",alpha3:"IDN",country_code:"62",country_name:"Indonesia",mobile_begin_with:["8"],phone_number_lengths:[9,10,11,12]},{alpha2:"IN",alpha3:"IND",country_code:"91",country_name:"India",mobile_begin_with:["6","7","8","9"],phone_number_lengths:[10]},{alpha2:"IE",alpha3:"IRL",country_code:"353",country_name:"Ireland",mobile_begin_with:["82","83","84","85","86","87","88","89"],phone_number_lengths:[9]},{alpha2:"IR",alpha3:"IRN",country_code:"98",country_name:"Iran, Islamic Republic Of",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"IQ",alpha3:"IRQ",country_code:"964",country_name:"Iraq",mobile_begin_with:["7"],phone_number_lengths:[10]},{alpha2:"IS",alpha3:"ISL",country_code:"354",country_name:"Iceland",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"IL",alpha3:"ISR",country_code:"972",country_name:"Israel",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"IT",alpha3:"ITA",country_code:"39",country_name:"Italy",mobile_begin_with:["3"],phone_number_lengths:[9,10]},{alpha2:"JM",alpha3:"JAM",country_code:"1",country_name:"Jamaica",mobile_begin_with:["876"],phone_number_lengths:[10]},{alpha2:"JO",alpha3:"JOR",country_code:"962",country_name:"Jordan",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"JP",alpha3:"JPN",country_code:"81",country_name:"Japan",mobile_begin_with:["70","80","90"],phone_number_lengths:[10]},{alpha2:"KZ",alpha3:"KAZ",country_code:"7",country_name:"Kazakhstan",mobile_begin_with:["70","74","77"],phone_number_lengths:[10]},{alpha2:"KE",alpha3:"KEN",country_code:"254",country_name:"Kenya",mobile_begin_with:["7","1"],phone_number_lengths:[9]},{alpha2:"KG",alpha3:"KGZ",country_code:"996",country_name:"Kyrgyzstan",mobile_begin_with:["5","7","8","9"],phone_number_lengths:[9]},{alpha2:"KH",alpha3:"KHM",country_code:"855",country_name:"Cambodia",mobile_begin_with:["1","6","7","8","9"],phone_number_lengths:[8,9]},{alpha2:"KI",alpha3:"KIR",country_code:"686",country_name:"Kiribati",mobile_begin_with:["9","30"],phone_number_lengths:[5]},{alpha2:"KN",alpha3:"KNA",country_code:"1",country_name:"Saint Kitts And Nevis",mobile_begin_with:["869"],phone_number_lengths:[10]},{alpha2:"KR",alpha3:"KOR",country_code:"82",country_name:"Korea, Republic of",mobile_begin_with:["1"],phone_number_lengths:[9,10]},{alpha2:"KW",alpha3:"KWT",country_code:"965",country_name:"Kuwait",mobile_begin_with:["5","6","9"],phone_number_lengths:[8]},{alpha2:"LA",alpha3:"LAO",country_code:"856",country_name:"Lao People's Democratic Republic",mobile_begin_with:["20"],phone_number_lengths:[10]},{alpha2:"LB",alpha3:"LBN",country_code:"961",country_name:"Lebanon",mobile_begin_with:["3","7","8"],phone_number_lengths:[7,8]},{alpha2:"LR",alpha3:"LBR",country_code:"231",country_name:"Liberia",mobile_begin_with:["4","5","6","7"],phone_number_lengths:[7,8]},{alpha2:"LY",alpha3:"LBY",country_code:"218",country_name:"Libyan Arab Jamahiriya",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"LC",alpha3:"LCA",country_code:"1",country_name:"Saint Lucia",mobile_begin_with:["758"],phone_number_lengths:[10]},{alpha2:"LI",alpha3:"LIE",country_code:"423",country_name:"Liechtenstein",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"LK",alpha3:"LKA",country_code:"94",country_name:"Sri Lanka",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"LS",alpha3:"LSO",country_code:"266",country_name:"Lesotho",mobile_begin_with:["5","6"],phone_number_lengths:[8]},{alpha2:"LT",alpha3:"LTU",country_code:"370",country_name:"Lithuania",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"LU",alpha3:"LUX",country_code:"352",country_name:"Luxembourg",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"LV",alpha3:"LVA",country_code:"371",country_name:"Latvia",mobile_begin_with:["2"],phone_number_lengths:[8]},{alpha2:"MO",alpha3:"MAC",country_code:"853",country_name:"Macao",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MA",alpha3:"MAR",country_code:"212",country_name:"Morocco",mobile_begin_with:["6","7"],phone_number_lengths:[9]},{alpha2:"MC",alpha3:"MCO",country_code:"377",country_name:"Monaco",mobile_begin_with:["4","6"],phone_number_lengths:[8,9]},{alpha2:"MD",alpha3:"MDA",country_code:"373",country_name:"Moldova, Republic of",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MG",alpha3:"MDG",country_code:"261",country_name:"Madagascar",mobile_begin_with:["3"],phone_number_lengths:[9]},{alpha2:"MV",alpha3:"MDV",country_code:"960",country_name:"Maldives",mobile_begin_with:["7","9"],phone_number_lengths:[7]},{alpha2:"MX",alpha3:"MEX",country_code:"52",country_name:"Mexico",mobile_begin_with:[""],phone_number_lengths:[10,11]},{alpha2:"MH",alpha3:"MHL",country_code:"692",country_name:"Marshall Islands",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"MK",alpha3:"MKD",country_code:"389",country_name:"Macedonia, the Former Yugoslav Republic Of",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"ML",alpha3:"MLI",country_code:"223",country_name:"Mali",mobile_begin_with:["6","7"],phone_number_lengths:[8]},{alpha2:"MT",alpha3:"MLT",country_code:"356",country_name:"Malta",mobile_begin_with:["7","9"],phone_number_lengths:[8]},{alpha2:"MM",alpha3:"MMR",country_code:"95",country_name:"Myanmar",mobile_begin_with:["9"],phone_number_lengths:[8,9,10]},{alpha2:"ME",alpha3:"MNE",country_code:"382",country_name:"Montenegro",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"MN",alpha3:"MNG",country_code:"976",country_name:"Mongolia",mobile_begin_with:["5","8","9"],phone_number_lengths:[8]},{alpha2:"MP",alpha3:"MNP",country_code:"1",country_name:"Northern Mariana Islands",mobile_begin_with:["670"],phone_number_lengths:[10]},{alpha2:"MZ",alpha3:"MOZ",country_code:"258",country_name:"Mozambique",mobile_begin_with:["8"],phone_number_lengths:[9]},{alpha2:"MR",alpha3:"MRT",country_code:"222",country_name:"Mauritania",mobile_begin_with:[],phone_number_lengths:[8]},{alpha2:"MS",alpha3:"MSR",country_code:"1",country_name:"Montserrat",mobile_begin_with:["664"],phone_number_lengths:[10]},{alpha2:"MQ",alpha3:"MTQ",country_code:"596",country_name:"Martinique",mobile_begin_with:["696"],phone_number_lengths:[9]},{alpha2:"MU",alpha3:"MUS",country_code:"230",country_name:"Mauritius",mobile_begin_with:["5"],phone_number_lengths:[8]},{alpha2:"MW",alpha3:"MWI",country_code:"265",country_name:"Malawi",mobile_begin_with:["77","88","99"],phone_number_lengths:[9]},{alpha2:"MY",alpha3:"MYS",country_code:"60",country_name:"Malaysia",mobile_begin_with:["1","6"],phone_number_lengths:[9,10,8]},{alpha2:"YT",alpha3:"MYT",country_code:"262",country_name:"Mayotte",mobile_begin_with:["639"],phone_number_lengths:[9]},{alpha2:"NA",alpha3:"NAM",country_code:"264",country_name:"Namibia",mobile_begin_with:["60","81","82","85"],phone_number_lengths:[9]},{alpha2:"NC",alpha3:"NCL",country_code:"687",country_name:"New Caledonia",mobile_begin_with:["7","8","9"],phone_number_lengths:[6]},{alpha2:"NE",alpha3:"NER",country_code:"227",country_name:"Niger",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"NF",alpha3:"NFK",country_code:"672",country_name:"Norfolk Island",mobile_begin_with:["5","8"],phone_number_lengths:[5]},{alpha2:"NG",alpha3:"NGA",country_code:"234",country_name:"Nigeria",mobile_begin_with:["70","80","81","90","91"],phone_number_lengths:[10]},{alpha2:"NI",alpha3:"NIC",country_code:"505",country_name:"Nicaragua",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"NU",alpha3:"NIU",country_code:"683",country_name:"Niue",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"NL",alpha3:"NLD",country_code:"31",country_name:"Netherlands",mobile_begin_with:["6"],phone_number_lengths:[9]},{alpha2:"NO",alpha3:"NOR",country_code:"47",country_name:"Norway",mobile_begin_with:["4","9"],phone_number_lengths:[8]},{alpha2:"NP",alpha3:"NPL",country_code:"977",country_name:"Nepal",mobile_begin_with:["97","98"],phone_number_lengths:[10]},{alpha2:"NR",alpha3:"NRU",country_code:"674",country_name:"Nauru",mobile_begin_with:["555"],phone_number_lengths:[7]},{alpha2:"NZ",alpha3:"NZL",country_code:"64",country_name:"New Zealand",mobile_begin_with:["2"],phone_number_lengths:[8,9,10]},{alpha2:"OM",alpha3:"OMN",country_code:"968",country_name:"Oman",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"PK",alpha3:"PAK",country_code:"92",country_name:"Pakistan",mobile_begin_with:["3"],phone_number_lengths:[10]},{alpha2:"PA",alpha3:"PAN",country_code:"507",country_name:"Panama",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"PE",alpha3:"PER",country_code:"51",country_name:"Peru",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PH",alpha3:"PHL",country_code:"63",country_name:"Philippines",mobile_begin_with:["9"],phone_number_lengths:[10]},{alpha2:"PW",alpha3:"PLW",country_code:"680",country_name:"Palau",mobile_begin_with:[],phone_number_lengths:[7]},{alpha2:"PG",alpha3:"PNG",country_code:"675",country_name:"Papua New Guinea",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"PL",alpha3:"POL",country_code:"48",country_name:"Poland",mobile_begin_with:["4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"PR",alpha3:"PRI",country_code:"1",country_name:"Puerto Rico",mobile_begin_with:["787","939"],phone_number_lengths:[10]},{alpha2:"PT",alpha3:"PRT",country_code:"351",country_name:"Portugal",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PY",alpha3:"PRY",country_code:"595",country_name:"Paraguay",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"PS",alpha3:"PSE",country_code:"970",country_name:"Palestinian Territory, Occupied",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"PF",alpha3:"PYF",country_code:"689",country_name:"French Polynesia",mobile_begin_with:["8"],phone_number_lengths:[8]},{alpha2:"QA",alpha3:"QAT",country_code:"974",country_name:"Qatar",mobile_begin_with:["3","5","6","7"],phone_number_lengths:[8]},{alpha2:"RE",alpha3:"REU",country_code:"262",country_name:"R\xE9union",mobile_begin_with:["692","693"],phone_number_lengths:[9]},{alpha2:"RO",alpha3:"ROU",country_code:"40",country_name:"Romania",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"RU",alpha3:"RUS",country_code:"7",country_name:"Russian Federation",mobile_begin_with:["9","495","498","499"],phone_number_lengths:[10]},{alpha2:"RW",alpha3:"RWA",country_code:"250",country_name:"Rwanda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SA",alpha3:"SAU",country_code:"966",country_name:"Saudi Arabia",mobile_begin_with:["5"],phone_number_lengths:[9]},{alpha2:"SD",alpha3:"SDN",country_code:"249",country_name:"Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SS",alpha3:"SSD",country_code:"211",country_name:"South Sudan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SN",alpha3:"SEN",country_code:"221",country_name:"Senegal",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SG",alpha3:"SGP",country_code:"65",country_name:"Singapore",mobile_begin_with:["8","9"],phone_number_lengths:[8]},{alpha2:"SH",alpha3:"SHN",country_code:"290",country_name:"Saint Helena",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"SJ",alpha3:"SJM",country_code:"47",country_name:"Svalbard And Jan Mayen",mobile_begin_with:["79"],phone_number_lengths:[8]},{alpha2:"SB",alpha3:"SLB",country_code:"677",country_name:"Solomon Islands",mobile_begin_with:["7","8"],phone_number_lengths:[7]},{alpha2:"SL",alpha3:"SLE",country_code:"232",country_name:"Sierra Leone",mobile_begin_with:["21","25","30","33","34","40","44","50","55","76","77","78","79","88"],phone_number_lengths:[8]},{alpha2:"SV",alpha3:"SLV",country_code:"503",country_name:"El Salvador",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"SM",alpha3:"SMR",country_code:"378",country_name:"San Marino",mobile_begin_with:["3","6"],phone_number_lengths:[10]},{alpha2:"SO",alpha3:"SOM",country_code:"252",country_name:"Somalia",mobile_begin_with:["61","62","63","65","66","68","69","71","90"],phone_number_lengths:[9]},{alpha2:"SX",alpha3:"SXM",country_code:"1",country_name:"Sint Maarten",mobile_begin_with:["721"],phone_number_lengths:[10]},{alpha2:"PM",alpha3:"SPM",country_code:"508",country_name:"Saint Pierre And Miquelon",mobile_begin_with:["55","41"],phone_number_lengths:[6]},{alpha2:"RS",alpha3:"SRB",country_code:"381",country_name:"Serbia",mobile_begin_with:["6"],phone_number_lengths:[8,9]},{alpha2:"ST",alpha3:"STP",country_code:"239",country_name:"Sao Tome and Principe",mobile_begin_with:["98","99"],phone_number_lengths:[7]},{alpha2:"SR",alpha3:"SUR",country_code:"597",country_name:"Suriname",mobile_begin_with:["6","7","8"],phone_number_lengths:[7]},{alpha2:"SK",alpha3:"SVK",country_code:"421",country_name:"Slovakia",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"SI",alpha3:"SVN",country_code:"386",country_name:"Slovenia",mobile_begin_with:["3","4","5","6","7"],phone_number_lengths:[8]},{alpha2:"SE",alpha3:"SWE",country_code:"46",country_name:"Sweden",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"SC",alpha3:"SYC",country_code:"248",country_name:"Seychelles",mobile_begin_with:["2"],phone_number_lengths:[7]},{alpha2:"SY",alpha3:"SYR",country_code:"963",country_name:"Syrian Arab Republic",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TC",alpha3:"TCA",country_code:"1",country_name:"Turks and Caicos Islands",mobile_begin_with:["6492","6493","6494"],phone_number_lengths:[10]},{alpha2:"TD",alpha3:"TCD",country_code:"235",country_name:"Chad",mobile_begin_with:["6","7","9"],phone_number_lengths:[8]},{alpha2:"TG",alpha3:"TGO",country_code:"228",country_name:"Togo",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"TH",alpha3:"THA",country_code:"66",country_name:"Thailand",mobile_begin_with:["6","8","9"],phone_number_lengths:[9]},{alpha2:"TJ",alpha3:"TJK",country_code:"992",country_name:"Tajikistan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TK",alpha3:"TKL",country_code:"690",country_name:"Tokelau",mobile_begin_with:[],phone_number_lengths:[4]},{alpha2:"TM",alpha3:"TKM",country_code:"993",country_name:"Turkmenistan",mobile_begin_with:["6"],phone_number_lengths:[8]},{alpha2:"TL",alpha3:"TLS",country_code:"670",country_name:"Timor-Leste",mobile_begin_with:["7"],phone_number_lengths:[8]},{alpha2:"TO",alpha3:"TON",country_code:"676",country_name:"Tonga",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TT",alpha3:"TTO",country_code:"1",country_name:"Trinidad and Tobago",mobile_begin_with:["868"],phone_number_lengths:[10]},{alpha2:"TN",alpha3:"TUN",country_code:"216",country_name:"Tunisia",mobile_begin_with:["2","4","5","9"],phone_number_lengths:[8]},{alpha2:"TR",alpha3:"TUR",country_code:"90",country_name:"Turkey",mobile_begin_with:["5"],phone_number_lengths:[10]},{alpha2:"TV",alpha3:"TUV",country_code:"688",country_name:"Tuvalu",mobile_begin_with:[],phone_number_lengths:[5]},{alpha2:"TW",alpha3:"TWN",country_code:"886",country_name:"Taiwan",mobile_begin_with:["9"],phone_number_lengths:[9]},{alpha2:"TZ",alpha3:"TZA",country_code:"255",country_name:"Tanzania, United Republic of",mobile_begin_with:["7","6"],phone_number_lengths:[9]},{alpha2:"UG",alpha3:"UGA",country_code:"256",country_name:"Uganda",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"UA",alpha3:"UKR",country_code:"380",country_name:"Ukraine",mobile_begin_with:["39","50","63","66","67","68","73","9"],phone_number_lengths:[9]},{alpha2:"UY",alpha3:"URY",country_code:"598",country_name:"Uruguay",mobile_begin_with:["9"],phone_number_lengths:[8]},{alpha2:"UZ",alpha3:"UZB",country_code:"998",country_name:"Uzbekistan",mobile_begin_with:["9","88","33"],phone_number_lengths:[9]},{alpha2:"VC",alpha3:"VCT",country_code:"1",country_name:"Saint Vincent And The Grenedines",mobile_begin_with:["784"],phone_number_lengths:[10]},{alpha2:"VE",alpha3:"VEN",country_code:"58",country_name:"Venezuela, Bolivarian Republic of",mobile_begin_with:["4"],phone_number_lengths:[10]},{alpha2:"VG",alpha3:"VGB",country_code:"1",country_name:"Virgin Islands, British",mobile_begin_with:["284"],phone_number_lengths:[10]},{alpha2:"VI",alpha3:"VIR",country_code:"1",country_name:"Virgin Islands, U.S.",mobile_begin_with:["340"],phone_number_lengths:[10]},{alpha2:"VN",alpha3:"VNM",country_code:"84",country_name:"Viet Nam",mobile_begin_with:["8","9","3","7","5"],phone_number_lengths:[9]},{alpha2:"VU",alpha3:"VUT",country_code:"678",country_name:"Vanuatu",mobile_begin_with:["5","7"],phone_number_lengths:[7]},{alpha2:"WF",alpha3:"WLF",country_code:"681",country_name:"Wallis and Futuna",mobile_begin_with:[],phone_number_lengths:[6]},{alpha2:"WS",alpha3:"WSM",country_code:"685",country_name:"Samoa",mobile_begin_with:["7"],phone_number_lengths:[7]},{alpha2:"YE",alpha3:"YEM",country_code:"967",country_name:"Yemen",mobile_begin_with:["7"],phone_number_lengths:[9]},{alpha2:"ZA",alpha3:"ZAF",country_code:"27",country_name:"South Africa",mobile_begin_with:["1","2","3","4","5","6","7","8"],phone_number_lengths:[9]},{alpha2:"ZM",alpha3:"ZMB",country_code:"260",country_name:"Zambia",mobile_begin_with:["9","7"],phone_number_lengths:[9]},{alpha2:"ZW",alpha3:"ZWE",country_code:"263",country_name:"Zimbabwe",mobile_begin_with:["71","73","77"],phone_number_lengths:[9]}]});var MT=et(un=>{"use strict";d();h();p();var $z=un&&un.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(un,"__esModule",{value:!0});un.validatePhoneISO3166=un.findCountryPhoneDataByPhoneNumber=un.findPossibleCountryPhoneData=un.findExactCountryPhoneData=un.findCountryPhoneDataByCountry=void 0;var Kc=$z(n6());function Uz(e){return e?e.length===2?Kc.default.find(t=>e.toUpperCase()===t.alpha2)||null:e.length===3?Kc.default.find(t=>e.toUpperCase()===t.alpha3)||null:Kc.default.find(t=>e.toUpperCase()===t.country_name.toUpperCase())||null:Kc.default.find(t=>t.alpha3==="USA")||null}un.findCountryPhoneDataByCountry=Uz;function bT(e,t,r){return r.phone_number_lengths.some(o=>r.country_code.length+o===e.length)&&(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+o))))?r:null}un.findExactCountryPhoneData=bT;function ST(e,t,r){if(!r.phone_number_lengths.some(o=>r.country_code.length+o+1===e.length))return null;if(!r.mobile_begin_with.length||!t||r.mobile_begin_with.some(o=>e.match(new RegExp("^"+r.country_code+"\\d?"+o))))return r}un.findPossibleCountryPhoneData=ST;function zz(e,t){let r,n;for(let o of Kc.default)!e.match(new RegExp("^"+o.country_code))||(r||(r=bT(e,t,o)),n||(n=ST(e,t,o)));return{exactCountryPhoneData:r,possibleCountryPhoneData:n}}un.findCountryPhoneDataByPhoneNumber=zz;function Vz(e,t,r,n){if(!t.phone_number_lengths)return!1;let o=e.replace(new RegExp("^"+t.country_code),"");if(n&&t&&o.length===e.length)return!1;let i=t.phone_number_lengths,a=t.mobile_begin_with,s=i.some(c=>o.length===c),l=a.length?a.some(c=>o.match(new RegExp("^"+c))):!0;return s&&(!r||l)}un.validatePhoneISO3166=Vz});var CT=et(li=>{"use strict";d();h();p();var jz=li&&li.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(li,"__esModule",{value:!0});li.countryPhoneData=li.phone=void 0;var Hz=jz(n6());li.countryPhoneData=Hz.default;var Xc=MT();function ET(e,{country:t="",validateMobilePrefix:r=!0,strictDetection:n=!1}={}){let o={isValid:!1,phoneNumber:null,countryIso2:null,countryIso3:null,countryCode:null},i=typeof e!="string"?"":e.trim(),a=typeof t!="string"?"":t.trim(),s=Boolean(i.match(/^\+/));i=i.replace(/\D/g,"");let l=(0,Xc.findCountryPhoneDataByCountry)(a);if(!l)return o;let c=!1;if(a)["CIV","COG"].includes(l.alpha3)||(i=i.replace(/^0+/,"")),l.alpha3==="RUS"&&i.length===11&&i.match(/^89/)!==null&&(i=i.replace(/^8+/,"")),!s&&l.phone_number_lengths.includes(i.length)&&(i=`${l.country_code}${i}`);else if(s){let{exactCountryPhoneData:_,possibleCountryPhoneData:T}=(0,Xc.findCountryPhoneDataByPhoneNumber)(i,r);_?l=_:T&&!n?(l=T,i=l.country_code+i.replace(new RegExp(`^${l.country_code}\\d`),"")):l=null}else l.phone_number_lengths.indexOf(i.length)!==-1&&(i=`1${i}`,c=!0);if(!l)return o;let v=(0,Xc.validatePhoneISO3166)(i,l,r,s);return v?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:c&&(l=(0,Xc.findCountryPhoneDataByCountry)("CAN"),v=(0,Xc.validatePhoneISO3166)(i,l,r,s),v)?{isValid:!0,phoneNumber:`+${i}`,countryIso2:l.alpha2,countryIso3:l.alpha3,countryCode:`+${l.country_code}`}:o}li.default=ET;li.phone=ET});var IT=et((oue,RT)=>{"use strict";d();h();p();var ps=[["Afghanistan (\u202B\u0627\u0641\u063A\u0627\u0646\u0633\u062A\u0627\u0646\u202C\u200E)","af","93","+..-..-...-...."],["\xC5land Islands","ax","358",""],["Albania (Shqip\xEBri)","al","355","+...(...)...-..."],["Algeria (\u202B\u0627\u0644\u062C\u0632\u0627\u0626\u0631\u202C\u200E)","dz","213","+...-..-...-...."],["American Samoa","as","1684","+.(...)...-...."],["Andorra","ad","376","+...-...-..."],["Angola","ao","244","+...(...)...-..."],["Anguilla","ai","1264","+.(...)...-...."],["Antarctica","aq","672",""],["Antigua and Barbuda","ag","1268","+.(...)...-...."],["Argentina","ar","54","+..(...)...-...."],["Armenia (\u0540\u0561\u0575\u0561\u057D\u057F\u0561\u0576)","am","374","+...-..-...-..."],["Aruba","aw","297","+...-...-...."],["Australia","au","61","+.. ... ... ..."],["Austria (\xD6sterreich)","at","43","+..(...)...-...."],["Azerbaijan (Az\u0259rbaycan)","az","994","+...-..-...-..-.."],["Bahamas","bs","1242","+.(...)...-...."],["Bahrain (\u202B\u0627\u0644\u0628\u062D\u0631\u064A\u0646\u202C\u200E)","bh","973","+...-....-...."],["Bangladesh (\u09AC\u09BE\u0982\u09B2\u09BE\u09A6\u09C7\u09B6)","bd","880","+...-..-...-..."],["Barbados","bb","1246","+.(...)...-...."],["Belarus (\u0411\u0435\u043B\u0430\u0440\u0443\u0441\u044C)","by","375","+...(..)...-..-.."],["Belgium (Belgi\xEB)","be","32","+.. ... .. .. .."],["Belize","bz","501","+...-...-...."],["Benin (B\xE9nin)","bj","229","+...-..-..-...."],["Bermuda","bm","1441","+.(...)...-...."],["Bhutan (\u0F60\u0F56\u0FB2\u0F74\u0F42)","bt","975","+...-.-...-..."],["Bolivia","bo","591","+...-.-...-...."],["Bosnia and Herzegovina (\u0411\u043E\u0441\u043D\u0430 \u0438 \u0425\u0435\u0440\u0446\u0435\u0433\u043E\u0432\u0438\u043D\u0430)","ba","387","+...-..-...."],["Botswana","bw","267","+...-..-...-..."],["Bouvet Island","bv","47",""],["Brazil (Brasil)","br","55","+..-..-....-...."],["British Indian Ocean Territory","io","246","+...-...-...."],["British Virgin Islands","vg","1284","+.(...)...-...."],["Brunei","bn","673","+...-...-...."],["Bulgaria (\u0411\u044A\u043B\u0433\u0430\u0440\u0438\u044F)","bg","359","+...(...)...-..."],["Burkina Faso","bf","226","+...-..-..-...."],["Burundi (Uburundi)","bi","257","+...-..-..-...."],["Cambodia (\u1780\u1798\u17D2\u1796\u17BB\u1787\u17B6)","kh","855","+...-..-...-..."],["Cameroon (Cameroun)","cm","237","+...-....-...."],["Canada","ca","1","+. (...) ...-....",1,["204","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238","+...(...)..-.."],["Caribbean Netherlands","bq","599","+...-...-....",1],["Cayman Islands","ky","1345","+.(...)...-...."],["Central African Republic (R\xE9publique centrafricaine)","cf","236","+...-..-..-...."],["Chad (Tchad)","td","235","+...-..-..-..-.."],["Chile","cl","56","+..-.-....-...."],["China (\u4E2D\u56FD)","cn","86","+.. ..-........"],["Christmas Island","cx","61",""],["Cocos (Keeling) Islands","cc","61",""],["Colombia","co","57","+..(...)...-...."],["Comoros (\u202B\u062C\u0632\u0631 \u0627\u0644\u0642\u0645\u0631\u202C\u200E)","km","269","+...-..-....."],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243","+...(...)...-..."],["Congo (Republic) (Congo-Brazzaville)","cg","242","+...-..-...-...."],["Cook Islands","ck","682","+...-..-..."],["Costa Rica","cr","506","+... ....-...."],["C\xF4te d\u2019Ivoire","ci","225","+...-..-...-..."],["Croatia (Hrvatska)","hr","385","+...-..-...-..."],["Cuba","cu","53","+..-.-...-...."],["Cura\xE7ao","cw","599","+...-...-....",0],["Cyprus (\u039A\u03CD\u03C0\u03C1\u03BF\u03C2)","cy","357","+...-..-...-..."],["Czech Republic (\u010Cesk\xE1 republika)","cz","420","+...(...)...-..."],["Denmark (Danmark)","dk","45","+.. .. .. .. .."],["Djibouti","dj","253","+...-..-..-..-.."],["Dominica","dm","1767","+.(...)...-...."],["Dominican Republic (Rep\xFAblica Dominicana)","do","1","+.(...)...-....",2,["809","829","849"]],["Ecuador","ec","593","+...-.-...-...."],["Egypt (\u202B\u0645\u0635\u0631\u202C\u200E)","eg","20","+..(...)...-...."],["El Salvador","sv","503","+... ....-...."],["Equatorial Guinea (Guinea Ecuatorial)","gq","240","+...-..-...-...."],["Eritrea","er","291","+...-.-...-..."],["Estonia (Eesti)","ee","372","+...-...-...."],["Ethiopia","et","251","+...-..-...-...."],["Falkland Islands (Islas Malvinas)","fk","500","+...-....."],["Faroe Islands (F\xF8royar)","fo","298","+...-...-..."],["Fiji","fj","679","+...-..-....."],["Finland (Suomi)","fi","358","+... .. .... ...."],["France","fr","33","+.. . .. .. .. .."],["French Guiana (Guyane fran\xE7aise)","gf","594","+...-.....-...."],["French Polynesia (Polyn\xE9sie fran\xE7aise)","pf","689","+...-..-..-.."],["French Southern and Antarctic Lands","tf","262",""],["Gabon","ga","241","+...-.-..-..-.."],["Gambia","gm","220","+...(...)..-.."],["Georgia (\u10E1\u10D0\u10E5\u10D0\u10E0\u10D7\u10D5\u10D4\u10DA\u10DD)","ge","995","+...(...)...-..."],["Germany (Deutschland)","de","49","+.. ... ......."],["Ghana (Gaana)","gh","233","+...(...)...-..."],["Gibraltar","gi","350","+...-...-....."],["Greece (\u0395\u03BB\u03BB\u03AC\u03B4\u03B1)","gr","30","+..(...)...-...."],["Greenland (Kalaallit Nunaat)","gl","299","+...-..-..-.."],["Grenada","gd","1473","+.(...)...-...."],["Guadeloupe","gp","590","",0],["Guam","gu","1671","+.(...)...-...."],["Guatemala","gt","502","+... ....-...."],["Guernsey","gg","44",""],["Guinea (Guin\xE9e)","gn","224","+...-..-...-..."],["Guinea-Bissau (Guin\xE9 Bissau)","gw","245","+...-.-......"],["Guyana","gy","592","+...-...-...."],["Haiti","ht","509","+... ....-...."],["Heard Island and McDonald Islands","hm","672",""],["Honduras","hn","504","+...-....-...."],["Hong Kong (\u9999\u6E2F)","hk","852","+... .... ...."],["Hungary (Magyarorsz\xE1g)","hu","36","+..(...)...-..."],["Iceland (\xCDsland)","is","354","+... ... ...."],["India (\u092D\u093E\u0930\u0924)","in","91","+.. .....-....."],["Indonesia","id","62","+..-..-...-.."],["Iran (\u202B\u0627\u06CC\u0631\u0627\u0646\u202C\u200E)","ir","98","+..(...)...-...."],["Iraq (\u202B\u0627\u0644\u0639\u0631\u0627\u0642\u202C\u200E)","iq","964","+...(...)...-...."],["Ireland","ie","353","+... .. ......."],["Isle of Man","im","44",""],["Israel (\u202B\u05D9\u05E9\u05E8\u05D0\u05DC\u202C\u200E)","il","972","+...-.-...-...."],["Italy (Italia)","it","39","+.. ... ......",0],["Jamaica","jm","1876","+.(...)...-...."],["Japan (\u65E5\u672C)","jp","81","+.. ... .. ...."],["Jersey","je","44",""],["Jordan (\u202B\u0627\u0644\u0623\u0631\u062F\u0646\u202C\u200E)","jo","962","+...-.-....-...."],["Kazakhstan (\u041A\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043D)","kz","7","+. ... ...-..-..",1],["Kenya","ke","254","+...-...-......"],["Kiribati","ki","686","+...-..-..."],["Kosovo","xk","383",""],["Kuwait (\u202B\u0627\u0644\u0643\u0648\u064A\u062A\u202C\u200E)","kw","965","+...-....-...."],["Kyrgyzstan (\u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D)","kg","996","+...(...)...-..."],["Laos (\u0EA5\u0EB2\u0EA7)","la","856","+...-..-...-..."],["Latvia (Latvija)","lv","371","+...-..-...-..."],["Lebanon (\u202B\u0644\u0628\u0646\u0627\u0646\u202C\u200E)","lb","961","+...-.-...-..."],["Lesotho","ls","266","+...-.-...-...."],["Liberia","lr","231","+...-..-...-..."],["Libya (\u202B\u0644\u064A\u0628\u064A\u0627\u202C\u200E)","ly","218","+...-..-...-..."],["Liechtenstein","li","423","+...(...)...-...."],["Lithuania (Lietuva)","lt","370","+...(...)..-..."],["Luxembourg","lu","352","+...(...)...-..."],["Macau (\u6FB3\u9580)","mo","853","+...-....-...."],["Macedonia (FYROM) (\u041C\u0430\u043A\u0435\u0434\u043E\u043D\u0438\u0458\u0430)","mk","389","+...-..-...-..."],["Madagascar (Madagasikara)","mg","261","+...-..-..-....."],["Malawi","mw","265","+...-.-....-...."],["Malaysia","my","60","+.. ..-....-...."],["Maldives","mv","960","+...-...-...."],["Mali","ml","223","+...-..-..-...."],["Malta","mt","356","+...-....-...."],["Marshall Islands","mh","692","+...-...-...."],["Martinique","mq","596","+...(...)..-..-.."],["Mauritania (\u202B\u0645\u0648\u0631\u064A\u062A\u0627\u0646\u064A\u0627\u202C\u200E)","mr","222","+...-..-..-...."],["Mauritius (Moris)","mu","230","+...-...-...."],["Mayotte","yt","262",""],["Mexico (M\xE9xico)","mx","52","+..-..-..-...."],["Micronesia","fm","691","+...-...-...."],["Moldova (Republica Moldova)","md","373","+...-....-...."],["Monaco","mc","377","+...-..-...-..."],["Mongolia (\u041C\u043E\u043D\u0433\u043E\u043B)","mn","976","+...-..-..-...."],["Montenegro (Crna Gora)","me","382","+...-..-...-..."],["Montserrat","ms","1664","+.(...)...-...."],["Morocco (\u202B\u0627\u0644\u0645\u063A\u0631\u0628\u202C\u200E)","ma","212","+...-..-....-..."],["Mozambique (Mo\xE7ambique)","mz","258","+...-..-...-..."],["Myanmar (Burma) (\u1019\u103C\u1014\u103A\u1019\u102C)","mm","95","+..-...-..."],["Namibia (Namibi\xEB)","na","264","+...-..-...-...."],["Nauru","nr","674","+...-...-...."],["Nepal (\u0928\u0947\u092A\u093E\u0932)","np","977","+...-..-...-..."],["Netherlands (Nederland)","nl","31","+.. .. ........"],["New Caledonia (Nouvelle-Cal\xE9donie)","nc","687","+...-..-...."],["New Zealand","nz","64","+.. ...-...-...."],["Nicaragua","ni","505","+...-....-...."],["Niger (Nijar)","ne","227","+...-..-..-...."],["Nigeria","ng","234","+...-..-...-.."],["Niue","nu","683","+...-...."],["Norfolk Island","nf","672","+...-...-..."],["North Korea (\uC870\uC120 \uBBFC\uC8FC\uC8FC\uC758 \uC778\uBBFC \uACF5\uD654\uAD6D)","kp","850","+...-...-..."],["Northern Mariana Islands","mp","1670","+.(...)...-...."],["Norway (Norge)","no","47","+.. ... .. ..."],["Oman (\u202B\u0639\u064F\u0645\u0627\u0646\u202C\u200E)","om","968","+...-..-...-..."],["Pakistan (\u202B\u067E\u0627\u06A9\u0633\u062A\u0627\u0646\u202C\u200E)","pk","92","+.. ...-......."],["Palau","pw","680","+...-...-...."],["Palestine (\u202B\u0641\u0644\u0633\u0637\u064A\u0646\u202C\u200E)","ps","970","+...-..-...-...."],["Panama (Panam\xE1)","pa","507","+...-...-...."],["Papua New Guinea","pg","675","+...(...)..-..."],["Paraguay","py","595","+...(...)...-..."],["Peru (Per\xFA)","pe","51","+..(...)...-..."],["Philippines","ph","63","+.. ... ...."],["Pitcairn Islands","pn","64",""],["Poland (Polska)","pl","48","+.. ...-...-..."],["Portugal","pt","351","+...-..-...-...."],["Puerto Rico","pr","1","+. (...) ...-....",3,["787","939"]],["Qatar (\u202B\u0642\u0637\u0631\u202C\u200E)","qa","974","+...-....-...."],["R\xE9union (La R\xE9union)","re","262","+...-.....-...."],["Romania (Rom\xE2nia)","ro","40","+..-..-...-...."],["Russia (\u0420\u043E\u0441\u0441\u0438\u044F)","ru","7","+. ... ...-..-..",0],["Rwanda","rw","250","+...(...)...-..."],["Saint Barth\xE9lemy (Saint-Barth\xE9lemy)","bl","590","",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1869","+.(...)...-...."],["Saint Lucia","lc","1758","+.(...)...-...."],["Saint Martin (Saint-Martin (partie fran\xE7aise))","mf","590","",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1784","+.(...)...-...."],["Samoa","ws","685","+...-..-...."],["San Marino","sm","378","+...-....-......"],["S\xE3o Tom\xE9 and Pr\xEDncipe (S\xE3o Tom\xE9 e Pr\xEDncipe)","st","239","+...-..-....."],["Saudi Arabia (\u202B\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0633\u0639\u0648\u062F\u064A\u0629\u202C\u200E)","sa","966","+...-..-...-...."],["Senegal (S\xE9n\xE9gal)","sn","221","+...-..-...-...."],["Serbia (\u0421\u0440\u0431\u0438\u0458\u0430)","rs","381","+...-..-...-...."],["Seychelles","sc","248","+...-.-...-..."],["Sierra Leone","sl","232","+...-..-......"],["Singapore","sg","65","+.. ....-...."],["Sint Maarten","sx","1721","+.(...)...-...."],["Slovakia (Slovensko)","sk","421","+...(...)...-..."],["Slovenia (Slovenija)","si","386","+...-..-...-..."],["Solomon Islands","sb","677","+...-....."],["Somalia (Soomaaliya)","so","252","+...-.-...-..."],["South Africa","za","27","+..-..-...-...."],["South Georgia and the South Sandwich Islands","gs","500",""],["South Korea (\uB300\uD55C\uBBFC\uAD6D)","kr","82","+..-..-...-...."],["South Sudan (\u202B\u062C\u0646\u0648\u0628 \u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","ss","211","+...-..-...-...."],["Spain (Espa\xF1a)","es","34","+.. ... ... ..."],["Sri Lanka (\u0DC1\u0DCA\u200D\u0DBB\u0DD3 \u0DBD\u0D82\u0D9A\u0DCF\u0DC0)","lk","94","+..-..-...-...."],["Sudan (\u202B\u0627\u0644\u0633\u0648\u062F\u0627\u0646\u202C\u200E)","sd","249","+...-..-...-...."],["Suriname","sr","597","+...-...-..."],["Svalbard and Jan Mayen","sj","47",""],["Swaziland","sz","268","+...-..-..-...."],["Sweden (Sverige)","se","46","+.. .. ... .. .."],["Switzerland (Schweiz)","ch","41","+.. .. ... .. .."],["Syria (\u202B\u0633\u0648\u0631\u064A\u0627\u202C\u200E)","sy","963","+...-..-....-..."],["Taiwan (\u53F0\u7063)","tw","886","+...-....-...."],["Tajikistan","tj","992","+...-..-...-...."],["Tanzania","tz","255","+...-..-...-...."],["Thailand (\u0E44\u0E17\u0E22)","th","66","+..-..-...-..."],["Timor-Leste","tl","670","+...-...-...."],["Togo","tg","228","+...-..-...-..."],["Tokelau","tk","690","+...-...."],["Tonga","to","676","+...-....."],["Trinidad and Tobago","tt","1868","+.(...)...-...."],["Tunisia (\u202B\u062A\u0648\u0646\u0633\u202C\u200E)","tn","216","+...-..-...-..."],["Turkey (T\xFCrkiye)","tr","90","+.. ... ... .. .."],["Turkmenistan","tm","993","+...-.-...-...."],["Turks and Caicos Islands","tc","1649","+.(...)...-...."],["Tuvalu","tv","688","+...-....."],["U.S. Virgin Islands","vi","1340","+.(...)...-...."],["Uganda","ug","256","+...(...)...-..."],["Ukraine (\u0423\u043A\u0440\u0430\u0457\u043D\u0430)","ua","380","+...(..)...-..-.."],["United Arab Emirates (\u202B\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062A \u0627\u0644\u0639\u0631\u0628\u064A\u0629 \u0627\u0644\u0645\u062A\u062D\u062F\u0629\u202C\u200E)","ae","971","+...-.-...-...."],["United Kingdom","gb","44","+.. .... ......"],["United States","us","1","+. (...) ...-....",0],["United States Minor Outlying Islands","um","1","",2],["Uruguay","uy","598","+...-.-...-..-.."],["Uzbekistan (O\u02BBzbekiston)","uz","998","+...-..-...-...."],["Vanuatu","vu","678","+...-....."],["Vatican City (Citt\xE0 del Vaticano)","va","39","+.. .. .... ....",1],["Venezuela","ve","58","+..(...)...-...."],["Vietnam (Vi\u1EC7t Nam)","vn","84","+..-..-....-..."],["Wallis and Futuna","wf","681","+...-..-...."],["Western Sahara","eh","212","+...-..-...."],["Yemen (\u202B\u0627\u0644\u064A\u0645\u0646\u202C\u200E)","ye","967","+...-.-...-..."],["Zambia","zm","260","+...-..-...-...."],["Zimbabwe","zw","263","+...-.-......"]],Dh={},PT={},TT=function(e,t,r){t in Dh||(Dh[t]=[]);var n=r||0;Dh[t][n]=e};for(ui=0;ui<ps.length;ui++){if(Qr=ps[ui],ps[ui]={name:Qr[0],iso2:Qr[1],dialCode:Qr[2],priority:Qr[4]||0},Qr[3]&&(ps[ui].format=Qr[3]),Qr[5])for(ps[ui].hasAreaCodes=!0,Ah=0;Ah<Qr[5].length;Ah++)kT=Qr[2]+Qr[5][Ah],TT(Qr[1],kT);PT[ps[ui].iso2]=ui,TT(Qr[1],Qr[2],Qr[4])}var Qr,kT,Ah,ui;RT.exports={allCountries:ps,iso2Lookup:PT,allCountryCodes:Dh}});var dj={};gs(dj,{init:()=>lj,open:()=>cj,reset:()=>fj,update:()=>uj});d();h();p();d();h();p();d();h();p();d();h();p();var tw=e=>{let t,r=new Set,n=(l,c)=>{let v=typeof l=="function"?l(t):l;if(!Object.is(v,t)){let _=t;t=(c!=null?c:typeof v!="object")?v:Object.assign({},t,v),r.forEach(T=>T(t,_))}},o=()=>t,s={setState:n,getState:o,subscribe:l=>(r.add(l),()=>r.delete(l)),destroy:()=>r.clear()};return t=e(n,o,s),s},rw=e=>e?tw(e):tw;var dw=he(ye(),1),pw=he(cw(),1),{useSyncExternalStoreWithSelector:YP}=pw.default;function eR(e,t=e.getState,r){let n=YP(e.subscribe,e.getState,e.getServerState||e.getState,t,r);return(0,dw.useDebugValue)(n),n}var fw=e=>{let t=typeof e=="function"?rw(e):e,r=(n,o)=>eR(t,n,o);return Object.assign(r,t),r},bf=e=>e?fw(e):fw;d();h();p();var Fw=he(vm(),1);d();h();p();d();h();p();d();h();p();var Pw=he(mw());d();h();p();d();h();p();d();h();p();var gw="logger/5.7.0";var vw=!1,yw=!1,Mf={debug:1,default:2,info:2,warning:3,error:4,off:5},ww=Mf.default,xm=null;function tR(){try{let e=[];if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test".normalize(t)!=="test")throw new Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}var xw=tR(),_m;(function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"})(_m||(_m={}));var Qn;(function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"})(Qn||(Qn={}));var _w="0123456789abcdef",gt=class{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,r){let n=t.toLowerCase();Mf[n]==null&&this.throwArgumentError("invalid log level name","logLevel",t),!(ww>Mf[n])&&console.log.apply(console,r)}debug(...t){this._log(gt.levels.DEBUG,t)}info(...t){this._log(gt.levels.INFO,t)}warn(...t){this._log(gt.levels.WARNING,t)}makeError(t,r,n){if(yw)return this.makeError("censored error",r,{});r||(r=gt.errors.UNKNOWN_ERROR),n||(n={});let o=[];Object.keys(n).forEach(l=>{let c=n[l];try{if(c instanceof Uint8Array){let v="";for(let _=0;_<c.length;_++)v+=_w[c[_]>>4],v+=_w[c[_]&15];o.push(l+"=Uint8Array(0x"+v+")")}else o.push(l+"="+JSON.stringify(c))}catch(v){o.push(l+"="+JSON.stringify(n[l].toString()))}}),o.push(`code=${r}`),o.push(`version=${this.version}`);let i=t,a="";switch(r){case Qn.NUMERIC_FAULT:{a="NUMERIC_FAULT";let l=t;switch(l){case"overflow":case"underflow":case"division-by-zero":a+="-"+l;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result";break}break}case Qn.CALL_EXCEPTION:case Qn.INSUFFICIENT_FUNDS:case Qn.MISSING_NEW:case Qn.NONCE_EXPIRED:case Qn.REPLACEMENT_UNDERPRICED:case Qn.TRANSACTION_REPLACED:case Qn.UNPREDICTABLE_GAS_LIMIT:a=r;break}a&&(t+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),o.length&&(t+=" ("+o.join(", ")+")");let s=new Error(t);return s.reason=i,s.code=r,Object.keys(n).forEach(function(l){s[l]=n[l]}),s}throwError(t,r,n){throw this.makeError(t,r,n)}throwArgumentError(t,r,n){return this.throwError(t,gt.errors.INVALID_ARGUMENT,{argument:r,value:n})}assert(t,r,n,o){t||this.throwError(r,n,o)}assertArgument(t,r,n,o){t||this.throwArgumentError(r,n,o)}checkNormalize(t){t==null&&(t="platform missing String.prototype.normalize"),xw&&this.throwError("platform missing String.prototype.normalize",gt.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:xw})}checkSafeUint53(t,r){typeof t=="number"&&(r==null&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,gt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,gt.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,r,n){n?n=": "+n:n="",t<r&&this.throwError("missing argument"+n,gt.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,gt.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}checkNew(t,r){(t===Object||t==null)&&this.throwError("missing new",gt.errors.MISSING_NEW,{name:r.name})}checkAbstract(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",gt.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):(t===Object||t==null)&&this.throwError("missing new",gt.errors.MISSING_NEW,{name:r.name})}static globalLogger(){return xm||(xm=new gt(gw)),xm}static setCensorship(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),vw){if(!t)return;this.globalLogger().throwError("error censorship permanent",gt.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}yw=!!t,vw=!!r}static setLogLevel(t){let r=Mf[t.toLowerCase()];if(r==null){gt.globalLogger().warn("invalid log level - "+t);return}ww=r}static from(t){return new gt(t)}};gt.errors=Qn;gt.levels=_m;d();h();p();var bw="bytes/5.7.0";var pa=new gt(bw);function Mw(e){return!!e.toHexString}function ws(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return ws(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function Ew(e){return xs(e)&&!(e.length%2)||hu(e)}function Sw(e){return typeof e=="number"&&e==e&&e%1===0}function hu(e){if(e==null)return!1;if(e.constructor===Uint8Array)return!0;if(typeof e=="string"||!Sw(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!Sw(r)||r<0||r>=256)return!1}return!0}function cn(e,t){if(t||(t={}),typeof e=="number"){pa.checkSafeUint53(e,"invalid arrayify value");let r=[];for(;e;)r.unshift(e&255),e=parseInt(String(e/256));return r.length===0&&r.push(0),ws(new Uint8Array(r))}if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Mw(e)&&(e=e.toHexString()),xs(e)){let r=e.substring(2);r.length%2&&(t.hexPad==="left"?r="0"+r:t.hexPad==="right"?r+="0":pa.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let o=0;o<r.length;o+=2)n.push(parseInt(r.substring(o,o+2),16));return ws(new Uint8Array(n))}return hu(e)?ws(new Uint8Array(e)):pa.throwArgumentError("invalid arrayify value","value",e)}function mu(e){let t=e.map(o=>cn(o)),r=t.reduce((o,i)=>o+i.length,0),n=new Uint8Array(r);return t.reduce((o,i)=>(n.set(i,o),o+i.length),0),ws(n)}function Ef(e,t){e=cn(e),e.length>t&&pa.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),ws(r)}function xs(e,t){return!(typeof e!="string"||!e.match(/^0x[0-9A-Fa-f]*$/)||t&&e.length!==2+2*t)}var bm="0123456789abcdef";function _s(e,t){if(t||(t={}),typeof e=="number"){pa.checkSafeUint53(e,"invalid hexlify value");let r="";for(;e;)r=bm[e&15]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if(typeof e=="bigint")return e=e.toString(16),e.length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&typeof e=="string"&&e.substring(0,2)!=="0x"&&(e="0x"+e),Mw(e))return e.toHexString();if(xs(e))return e.length%2&&(t.hexPad==="left"?e="0x0"+e.substring(2):t.hexPad==="right"?e+="0":pa.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(hu(e)){let r="0x";for(let n=0;n<e.length;n++){let o=e[n];r+=bm[(o&240)>>4]+bm[o&15]}return r}return pa.throwArgumentError("invalid hexlify value","value",e)}d();h();p();var Cw="bignumber/5.7.0";var Mm=Pw.default.BN,Ao=new gt(Cw),Sm={},Tw=9007199254740991;var kw=!1,pr=class{constructor(t,r){t!==Sm&&Ao.throwError("cannot call constructor directly; use BigNumber.from",gt.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Yr(vt(this).fromTwos(t))}toTwos(t){return Yr(vt(this).toTwos(t))}abs(){return this._hex[0]==="-"?pr.from(this._hex.substring(1)):this}add(t){return Yr(vt(this).add(vt(t)))}sub(t){return Yr(vt(this).sub(vt(t)))}div(t){return pr.from(t).isZero()&&On("division-by-zero","div"),Yr(vt(this).div(vt(t)))}mul(t){return Yr(vt(this).mul(vt(t)))}mod(t){let r=vt(t);return r.isNeg()&&On("division-by-zero","mod"),Yr(vt(this).umod(r))}pow(t){let r=vt(t);return r.isNeg()&&On("negative-power","pow"),Yr(vt(this).pow(r))}and(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","and"),Yr(vt(this).and(r))}or(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","or"),Yr(vt(this).or(r))}xor(t){let r=vt(t);return(this.isNegative()||r.isNeg())&&On("unbound-bitwise-result","xor"),Yr(vt(this).xor(r))}mask(t){return(this.isNegative()||t<0)&&On("negative-width","mask"),Yr(vt(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&On("negative-width","shl"),Yr(vt(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&On("negative-width","shr"),Yr(vt(this).shrn(t))}eq(t){return vt(this).eq(vt(t))}lt(t){return vt(this).lt(vt(t))}lte(t){return vt(this).lte(vt(t))}gt(t){return vt(this).gt(vt(t))}gte(t){return vt(this).gte(vt(t))}isNegative(){return this._hex[0]==="-"}isZero(){return vt(this).isZero()}toNumber(){try{return vt(this).toNumber()}catch(t){On("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Ao.throwError("this platform does not support BigInt",gt.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(arguments[0]===10?kw||(kw=!0,Ao.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):arguments[0]===16?Ao.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",gt.errors.UNEXPECTED_ARGUMENT,{}):Ao.throwError("BigNumber.toString does not accept parameters",gt.errors.UNEXPECTED_ARGUMENT,{})),vt(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof pr)return t;if(typeof t=="string")return t.match(/^-?0x[0-9a-f]+$/i)?new pr(Sm,gu(t)):t.match(/^-?[0-9]+$/)?new pr(Sm,gu(new Mm(t))):Ao.throwArgumentError("invalid BigNumber string","value",t);if(typeof t=="number")return t%1&&On("underflow","BigNumber.from",t),(t>=Tw||t<=-Tw)&&On("overflow","BigNumber.from",t),pr.from(String(t));let r=t;if(typeof r=="bigint")return pr.from(r.toString());if(hu(r))return pr.from(_s(r));if(r)if(r.toHexString){let n=r.toHexString();if(typeof n=="string")return pr.from(n)}else{let n=r._hex;if(n==null&&r.type==="BigNumber"&&(n=r.hex),typeof n=="string"&&(xs(n)||n[0]==="-"&&xs(n.substring(1))))return pr.from(n)}return Ao.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!!(t&&t._isBigNumber)}};function gu(e){if(typeof e!="string")return gu(e.toString(16));if(e[0]==="-")return e=e.substring(1),e[0]==="-"&&Ao.throwArgumentError("invalid hex","value",e),e=gu(e),e==="0x00"?e:"-"+e;if(e.substring(0,2)!=="0x"&&(e="0x"+e),e==="0x")return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&e.substring(0,4)==="0x00";)e="0x"+e.substring(4);return e}function Yr(e){return pr.from(gu(e))}function vt(e){let t=pr.from(e).toHexString();return t[0]==="-"?new Mm("-"+t.substring(3),16):new Mm(t.substring(2),16)}function On(e,t,r){let n={fault:e,operation:t};return r!=null&&(n.value=r),Ao.throwError(e,gt.errors.NUMERIC_FAULT,n)}d();h();p();d();h();p();d();h();p();var Rw="strings/5.7.0";var Iw=new gt(Rw),vu;(function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"})(vu||(vu={}));var ha;(function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"})(ha||(ha={}));function rR(e,t,r,n,o){return Iw.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)}function Ow(e,t,r,n,o){if(e===ha.BAD_PREFIX||e===ha.UNEXPECTED_CONTINUE){let i=0;for(let a=t+1;a<r.length&&r[a]>>6===2;a++)i++;return i}return e===ha.OVERRUN?r.length-t-1:0}function nR(e,t,r,n,o){return e===ha.OVERLONG?(n.push(o),0):(n.push(65533),Ow(e,t,r,n,o))}var oR=Object.freeze({error:rR,ignore:Ow,replace:nR});function Em(e,t=vu.current){t!=vu.current&&(Iw.checkNormalize(),e=e.normalize(t));let r=[];for(let n=0;n<e.length;n++){let o=e.charCodeAt(n);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(o&63|128);else if((o&64512)==55296){n++;let i=e.charCodeAt(n);if(n>=e.length||(i&64512)!==56320)throw new Error("invalid utf-8 string");let a=65536+((o&1023)<<10)+(i&1023);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(a&63|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(o&63|128)}return cn(r)}d();h();p();var Aw="solidity/5.7.0";var iR=new RegExp("^bytes([0-9]+)$"),aR=new RegExp("^(u?int)([0-9]*)$"),sR=new RegExp("^(.*)\\[([0-9]*)\\]$"),lR="0000000000000000000000000000000000000000000000000000000000000000",bs=new gt(Aw);function Dw(e,t,r){switch(e){case"address":return r?Ef(t,32):cn(t);case"string":return Em(t);case"bytes":return cn(t);case"bool":return t=t?"0x01":"0x00",r?Ef(t,32):cn(t)}let n=e.match(aR);if(n){let o=parseInt(n[2]||"256");return(n[2]&&String(o)!==n[2]||o%8!==0||o===0||o>256)&&bs.throwArgumentError("invalid number type","type",e),r&&(o=256),t=pr.from(t).toTwos(o),Ef(t,o/8)}if(n=e.match(iR),n){let o=parseInt(n[1]);return(String(o)!==n[1]||o===0||o>32)&&bs.throwArgumentError("invalid bytes type","type",e),cn(t).byteLength!==o&&bs.throwArgumentError(`invalid value for ${e}`,"value",t),r?cn((t+lR).substring(0,66)):t}if(n=e.match(sR),n&&Array.isArray(t)){let o=n[1];parseInt(n[2]||String(t.length))!=t.length&&bs.throwArgumentError(`invalid array length for ${e}`,"value",t);let a=[];return t.forEach(function(s){a.push(Dw(o,s,!0))}),mu(a)}return bs.throwArgumentError("invalid type","type",e)}function Nw(e,t){e.length!=t.length&&bs.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(n,o){r.push(Dw(n,t[o]))}),_s(mu(r))}function yu(e){return Array.isArray(e)?uR(e):Ew(e)?Cm(e):cR(e)}function uR(e){let[t,r]=e.reduce(([n,o],[i,a])=>(n.push(i),o.push(a),[n,o]),[[],[]]);return Cm(Nw(t,r))}function cR(e){let t=C.from(e);return Cm(t)}function Cm(e){let t=BigInt(fR(e))>>BigInt(8),r=t.toString(16);return{hash:t,digest:`0x${r.padStart(64,"0")}`}}function fR(e){let t=_s(mu([cn(e)]));return"0x"+Fw.default.keccak_256(cn(t))}var Lw=e=>{let t=/^0x[\dabcdef]+$/;return!!e.toString().match(t)&&e.length>=66};d();h();p();var Tm=(o=>(o.MAX_ATTEMPTS="max_attempts",o.TIMEOUT="timeout",o.UNSUPPORTED_COUNTRY="unsupported_country",o.SERVER_ERROR="server_error",o))(Tm||{});d();h();p();d();h();p();var Pm=function(e,t){return Pm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Pm(e,t)};function dR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pm(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var xt=function(){return xt=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},xt.apply(this,arguments)};function ma(e,t,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=Promise))(function(i,a){function s(v){try{c(n.next(v))}catch(_){a(_)}}function l(v){try{c(n.throw(v))}catch(_){a(_)}}function c(v){v.done?i(v.value):o(v.value).then(s,l)}c((n=n.apply(e,t||[])).next())})}function ga(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(c){return function(v){return l([c,v])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(v){c=[6,v],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function pR(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var lt;(function(e){e.AnonymousId="anonymous_id",e.DistinctId="distinct_id",e.Props="props",e.FeatureFlags="feature_flags",e.OverrideFeatureFlags="override_feature_flags",e.Queue="queue",e.OptedOut="opted_out",e.SessionId="session_id",e.SessionLastTimestamp="session_timestamp",e.PersonProperties="person_properties",e.GroupProperties="group_properties"})(lt||(lt={}));function hR(e,t){if(!e)throw new Error(t)}function mR(e){return e==null?void 0:e.replace(/\/+$/,"")}function gR(e,t){return t===void 0&&(t={}),ma(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,v,_;return ga(this,function(T){switch(T.label){case 0:r=t.retryCount,n=r===void 0?3:r,o=t.retryDelay,i=o===void 0?5e3:o,a=t.retryCheck,s=a===void 0?function(){return!0}:a,l=null,c=0,T.label=1;case 1:if(!(c<n+1))return[3,8];T.label=2;case 2:return T.trys.push([2,4,,5]),[4,e()];case 3:return v=T.sent(),[2,v];case 4:if(_=T.sent(),l=_,!s(_))throw _;return[3,5];case 5:return[4,new Promise(function(R){return setTimeout(R,i)})];case 6:T.sent(),T.label=7;case 7:return c++,[3,1];case 8:throw l}})})}function Bw(e){var t=new Date().getTime(),r=e&&e.performance&&e.performance.now&&e.performance.now()*1e3||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var o=Math.random()*16;return t>0?(o=(t+o)%16|0,t=Math.floor(t/16)):(o=(r+o)%16|0,r=Math.floor(r/16)),(n==="x"?o:o&3|8).toString(16)})}function Hw(){return new Date().getTime()}function $w(){return new Date().toISOString()}function Uw(e,t){var r=setTimeout(e,t);return r!=null&&r.unref&&(r==null||r.unref()),r}var wu=String.fromCharCode,zw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Cf={};function vR(e,t){if(!Cf[e]){Cf[e]={};for(var r=0;r<e.length;r++)Cf[e][e.charAt(r)]=r}return Cf[e][t]}var bu={compressToBase64:function(e){if(e==null)return"";var t=bu._compress(e,6,function(r){return zw.charAt(r)});switch(t.length%4){default:case 0:return t;case 1:return t+"===";case 2:return t+"==";case 3:return t+"="}},decompressFromBase64:function(e){return e==null?"":e==""?null:bu._decompress(e.length,32,function(t){return vR(zw,e.charAt(t))})},compress:function(e){return bu._compress(e,16,function(t){return wu(t)})},_compress:function(e,t,r){if(e==null)return"";var n={},o={},i=[],a,s,l="",c="",v="",_=2,T=3,R=2,O=0,$=0,V;for(V=0;V<e.length;V+=1)if(l=e.charAt(V),Object.prototype.hasOwnProperty.call(n,l)||(n[l]=T++,o[l]=!0),c=v+l,Object.prototype.hasOwnProperty.call(n,c))v=c;else{if(Object.prototype.hasOwnProperty.call(o,v)){if(v.charCodeAt(0)<256){for(a=0;a<R;a++)O=O<<1,$==t-1?($=0,i.push(r(O)),O=0):$++;for(s=v.charCodeAt(0),a=0;a<8;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}else{for(s=1,a=0;a<R;a++)O=O<<1|s,$==t-1?($=0,i.push(r(O)),O=0):$++,s=0;for(s=v.charCodeAt(0),a=0;a<16;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[v]}else for(s=n[v],a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++),n[c]=T++,v=String(l)}if(v!==""){if(Object.prototype.hasOwnProperty.call(o,v)){if(v.charCodeAt(0)<256){for(a=0;a<R;a++)O=O<<1,$==t-1?($=0,i.push(r(O)),O=0):$++;for(s=v.charCodeAt(0),a=0;a<8;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}else{for(s=1,a=0;a<R;a++)O=O<<1|s,$==t-1?($=0,i.push(r(O)),O=0):$++,s=0;for(s=v.charCodeAt(0),a=0;a<16;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1}_--,_==0&&(_=Math.pow(2,R),R++),delete o[v]}else for(s=n[v],a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;_--,_==0&&(_=Math.pow(2,R),R++)}for(s=2,a=0;a<R;a++)O=O<<1|s&1,$==t-1?($=0,i.push(r(O)),O=0):$++,s=s>>1;for(;;)if(O=O<<1,$==t-1){i.push(r(O));break}else $++;return i.join("")},decompress:function(e){return e==null?"":e==""?null:bu._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(e,t,r){var n=[],o=[],i={val:r(0),position:t,index:1},a=4,s=4,l=3,c="",v,_,T,R,O,$,V;for(v=0;v<3;v+=1)n[v]=v;for(T=0,O=Math.pow(2,2),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;switch(T){case 0:for(T=0,O=Math.pow(2,8),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;V=wu(T);break;case 1:for(T=0,O=Math.pow(2,16),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;V=wu(T);break;case 2:return""}for(n[3]=V,_=V,o.push(V);;){if(i.index>e)return"";for(T=0,O=Math.pow(2,l),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;switch(V=T){case 0:for(T=0,O=Math.pow(2,8),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;n[s++]=wu(T),V=s-1,a--;break;case 1:for(T=0,O=Math.pow(2,16),$=1;$!=O;)R=i.val&i.position,i.position>>=1,i.position==0&&(i.position=t,i.val=r(i.index++)),T|=(R>0?1:0)*$,$<<=1;n[s++]=wu(T),V=s-1,a--;break;case 2:return o.join("")}if(a==0&&(a=Math.pow(2,l),l++),n[V])c=n[V];else if(V===s)c=_+_.charAt(0);else return null;o.push(c),n[s++]=_+c.charAt(0),a--,_=c,a==0&&(a=Math.pow(2,l),l++)}}},yR=function(){function e(){this.events={},this.events={}}return e.prototype.on=function(t,r){var n=this;return this.events[t]||(this.events[t]=[]),this.events[t].push(r),function(){n.events[t]=n.events[t].filter(function(o){return o!==r})}},e.prototype.emit=function(t,r){for(var n=0,o=this.events[t]||[];n<o.length;n++){var i=o[n];i(r)}for(var a=0,s=this.events["*"]||[];a<s.length;a++){var i=s[a];i(t,r)}},e}(),wR=function(){function e(t,r){var n=this,o,i,a,s,l,c;this.flagCallReported={},this._events=new yR,hR(t,"You must pass your PostHog project's api key."),this.apiKey=t,this.host=mR((r==null?void 0:r.host)||"https://app.posthog.com"),this.flushAt=r!=null&&r.flushAt?Math.max(r==null?void 0:r.flushAt,1):20,this.flushInterval=(o=r==null?void 0:r.flushInterval)!==null&&o!==void 0?o:1e4,this.captureMode=(r==null?void 0:r.captureMode)||"form",this.sendFeatureFlagEvent=(i=r==null?void 0:r.sendFeatureFlagEvent)!==null&&i!==void 0?i:!0,this._optoutOverride=(r==null?void 0:r.enable)===!1,this._retryOptions={retryCount:(a=r==null?void 0:r.fetchRetryCount)!==null&&a!==void 0?a:3,retryDelay:(s=r==null?void 0:r.fetchRetryDelay)!==null&&s!==void 0?s:3e3},this.requestTimeout=(l=r==null?void 0:r.requestTimeout)!==null&&l!==void 0?l:1e4,this._sessionExpirationTimeSeconds=(c=r==null?void 0:r.sessionExpirationTimeSeconds)!==null&&c!==void 0?c:1800,(r==null?void 0:r.preloadFeatureFlags)!==!1&&Uw(function(){n.reloadFeatureFlagsAsync()},1)}return e.prototype.getCommonEventProperties=function(){var t=this.getFeatureFlags(),r={};if(t)for(var n=0,o=Object.entries(t);n<o.length;n++){var i=o[n],a=i[0],s=i[1];r["$feature/".concat(a)]=s}return xt({$lib:this.getLibraryId(),$lib_version:this.getLibraryVersion(),$active_feature_flags:t?Object.keys(t):void 0},r)},e.prototype.setupBootstrap=function(t){var r,n,o,i;if(!((r=t==null?void 0:t.bootstrap)===null||r===void 0)&&r.distinctId&&(!((n=t==null?void 0:t.bootstrap)===null||n===void 0)&&n.isIdentifiedId?this.setPersistedProperty(lt.DistinctId,t.bootstrap.distinctId):this.setPersistedProperty(lt.AnonymousId,t.bootstrap.distinctId)),!((o=t==null?void 0:t.bootstrap)===null||o===void 0)&&o.featureFlags){var a=Object.keys(((i=t.bootstrap)===null||i===void 0?void 0:i.featureFlags)||{}).filter(function(s){var l,c;return!!(!((c=(l=t.bootstrap)===null||l===void 0?void 0:l.featureFlags)===null||c===void 0)&&c[s])}).reduce(function(s,l){var c,v;return s[l]=((v=(c=t.bootstrap)===null||c===void 0?void 0:c.featureFlags)===null||v===void 0?void 0:v[l])||!1,s},{});this.setKnownFeatureFlags(a)}},Object.defineProperty(e.prototype,"props",{get:function(){return this._props||(this._props=this.getPersistedProperty(lt.Props)),this._props||{}},set:function(t){this._props=t},enumerable:!1,configurable:!0}),e.prototype.clearProps=function(){this.props=void 0},Object.defineProperty(e.prototype,"optedOut",{get:function(){var t,r;return(r=(t=this.getPersistedProperty(lt.OptedOut))!==null&&t!==void 0?t:this._optoutOverride)!==null&&r!==void 0?r:!1},enumerable:!1,configurable:!0}),e.prototype.optIn=function(){this.setPersistedProperty(lt.OptedOut,!1)},e.prototype.optOut=function(){this.setPersistedProperty(lt.OptedOut,!0)},e.prototype.on=function(t,r){return this._events.on(t,r)},e.prototype.reset=function(t){var r=pR([lt.Queue],t||[],!0);this.clearProps();for(var n=0,o=Object.keys(lt);n<o.length;n++){var i=o[n];r.includes(lt[i])||this.setPersistedProperty(lt[i],null)}},e.prototype.debug=function(t){var r;t===void 0&&(t=!0),(r=this.removeDebugCallback)===null||r===void 0||r.call(this),t&&(this.removeDebugCallback=this.on("*",function(n,o){return console.log("PostHog Debug",n,o)}))},e.prototype.buildPayload=function(t){return{distinct_id:t.distinct_id||this.getDistinctId(),event:t.event,properties:xt(xt(xt(xt({},this.props),t.properties||{}),this.getCommonEventProperties()),{$session_id:this.getSessionId()})}},e.prototype.getSessionId=function(){var t=this.getPersistedProperty(lt.SessionId),r=this.getPersistedProperty(lt.SessionLastTimestamp)||0;return(!t||Date.now()-r>this._sessionExpirationTimeSeconds*1e3)&&(t=Bw(globalThis),this.setPersistedProperty(lt.SessionId,t)),this.setPersistedProperty(lt.SessionLastTimestamp,Date.now()),t},e.prototype.resetSessionId=function(){this.setPersistedProperty(lt.SessionId,null)},e.prototype.getAnonymousId=function(){var t=this.getPersistedProperty(lt.AnonymousId);return t||(t=Bw(globalThis),this.setPersistedProperty(lt.AnonymousId,t)),t},e.prototype.getDistinctId=function(){return this.getPersistedProperty(lt.DistinctId)||this.getAnonymousId()},e.prototype.register=function(t){this.props=xt(xt({},this.props),t),this.setPersistedProperty(lt.Props,this.props)},e.prototype.unregister=function(t){delete this.props[t],this.setPersistedProperty(lt.Props,this.props)},e.prototype.identify=function(t,r){var n=this.getDistinctId();t=t||n,r!=null&&r.$groups&&this.groups(r.$groups);var o=xt(xt({},this.buildPayload({distinct_id:t,event:"$identify",properties:xt(xt({},r||{}),{$anon_distinct_id:this.getAnonymousId()})})),{$set:r});return t!==n&&(this.setPersistedProperty(lt.AnonymousId,n),this.setPersistedProperty(lt.DistinctId,t),this.getFeatureFlags()&&this.reloadFeatureFlagsAsync()),this.enqueue("identify",o),this},e.prototype.capture=function(t,r,n){if(n===void 0&&(n=!1),r!=null&&r.$groups&&this.groups(r.$groups),n)this._sendFeatureFlags(t,r);else{var o=this.buildPayload({event:t,properties:r});this.enqueue("capture",o)}return this},e.prototype.alias=function(t){var r=this.getDistinctId(),n=this.buildPayload({event:"$create_alias",properties:{distinct_id:r,alias:t}});return this.enqueue("alias",n),this},e.prototype.autocapture=function(t,r,n){n===void 0&&(n={});var o=this.buildPayload({event:"$autocapture",properties:xt(xt({},n),{$event_type:t,$elements:r})});return this.enqueue("autocapture",o),this},e.prototype.groups=function(t){var r=this.props.$groups||{};return this.register({$groups:xt(xt({},r),t)}),Object.keys(t).find(function(n){return r[n]!==t[n]})&&this.getFeatureFlags()&&this.reloadFeatureFlagsAsync(),this},e.prototype.group=function(t,r,n){var o;return this.groups((o={},o[t]=r,o)),n&&this.groupIdentify(t,r,n),this},e.prototype.groupIdentify=function(t,r,n){var o={event:"$groupidentify",distinctId:"$".concat(t,"_").concat(r),properties:xt({$group_type:t,$group_key:r,$group_set:n||{}},this.getCommonEventProperties())};return this.enqueue("capture",o),this},e.prototype.personProperties=function(t){var r=this.getPersistedProperty(lt.PersonProperties)||{};return this.setPersistedProperty(lt.PersonProperties,xt(xt({},r),t)),this},e.prototype.groupProperties=function(t){var r=this.getPersistedProperty(lt.GroupProperties)||{};return Object.keys(r).length!==0&&Object.keys(r).forEach(function(n){r[n]=xt(xt({},r[n]),t[n]),delete t[n]}),this.setPersistedProperty(lt.GroupProperties,xt(xt({},r),t)),this},e.prototype.decideAsync=function(t){return t===void 0&&(t=!0),this._decideResponsePromise?this._decideResponsePromise:this._decideAsync(t)},e.prototype._decideAsync=function(t){return t===void 0&&(t=!0),ma(this,void 0,void 0,function(){var r,n,o,i,a,s,l=this;return ga(this,function(c){return r="".concat(this.host,"/decide/?v=2"),n=this.getDistinctId(),o=this.props.$groups||{},i=this.getPersistedProperty(lt.PersonProperties)||{},a=this.getPersistedProperty(lt.GroupProperties)||{},s={method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:this.apiKey,distinct_id:n,$anon_distinct_id:t?this.getAnonymousId():void 0,groups:o,person_properties:i,group_properties:a})},this._decideResponsePromise=this.fetchWithRetry(r,s).then(function(v){return v.json()}).then(function(v){return v.featureFlags&&l.setKnownFeatureFlags(v.featureFlags),v}).finally(function(){l._decideResponsePromise=void 0}),[2,this._decideResponsePromise]})})},e.prototype.setKnownFeatureFlags=function(t){this.setPersistedProperty(lt.FeatureFlags,t),this._events.emit("featureflags",t)},e.prototype.getFeatureFlag=function(t){var r=this.getFeatureFlags();if(!!r){var n=r[t];return n===void 0&&(n=!1),this.sendFeatureFlagEvent&&!this.flagCallReported[t]&&(this.flagCallReported[t]=!0,this.capture("$feature_flag_called",{$feature_flag:t,$feature_flag_response:n})),n}},e.prototype.getFeatureFlags=function(){var t=this.getPersistedProperty(lt.FeatureFlags),r=this.getPersistedProperty(lt.OverrideFeatureFlags);if(!r)return t;t=t||{};for(var n in r)r[n]?t[n]=r[n]:delete t[n];return t},e.prototype.isFeatureEnabled=function(t){var r=this.getFeatureFlag(t);if(r!==void 0)return!!r},e.prototype.reloadFeatureFlagsAsync=function(t){return t===void 0&&(t=!0),ma(this,void 0,void 0,function(){return ga(this,function(r){switch(r.label){case 0:return[4,this.decideAsync(t)];case 1:return[2,r.sent().featureFlags]}})})},e.prototype.onFeatureFlags=function(t){var r=this;return this.on("featureflags",function(){return ma(r,void 0,void 0,function(){var n;return ga(this,function(o){return n=this.getFeatureFlags(),n&&t(n),[2]})})})},e.prototype.onFeatureFlag=function(t,r){var n=this;return this.on("featureflags",function(){return ma(n,void 0,void 0,function(){var o;return ga(this,function(i){return o=this.getFeatureFlag(t),o!==void 0&&r(o),[2]})})})},e.prototype.overrideFeatureFlag=function(t){return t===null?this.setPersistedProperty(lt.OverrideFeatureFlags,null):this.setPersistedProperty(lt.OverrideFeatureFlags,t)},e.prototype._sendFeatureFlags=function(t,r){var n=this;this.reloadFeatureFlagsAsync(!1).finally(function(){var o=n.buildPayload({event:t,properties:r});n.enqueue("capture",o)})},e.prototype.enqueue=function(t,r){var n=this;if(!this.optedOut){var o=xt(xt({},r),{type:t,library:this.getLibraryId(),library_version:this.getLibraryVersion(),timestamp:r.timestamp?r.timestamp:$w()});o.distinctId&&(o.distinct_id=o.distinctId,delete o.distinctId);var i=this.getPersistedProperty(lt.Queue)||[];i.push({message:o}),this.setPersistedProperty(lt.Queue,i),this._events.emit(t,o),i.length>=this.flushAt&&this.flush(),this.flushInterval&&!this._flushTimer&&(this._flushTimer=Uw(function(){return n.flush()},this.flushInterval))}},e.prototype.flushAsync=function(){var t=this;return new Promise(function(r,n){t.flush(function(o,i){return o?n(o):r(i)})})},e.prototype.flush=function(t){var r=this;if(this.optedOut)return t==null?void 0:t();this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=null);var n=this.getPersistedProperty(lt.Queue)||[];if(!n.length)return t==null?void 0:t();var o=n.splice(0,this.flushAt);this.setPersistedProperty(lt.Queue,n);var i=o.map(function(_){return _.message}),a={api_key:this.apiKey,batch:i,sent_at:$w()},s=function(_){t==null||t(_,i),r._events.emit("flush",i)};this.getCustomUserAgent();var l=JSON.stringify(a),c=this.captureMode==="form"?"".concat(this.host,"/e/?ip=1&_=").concat(Hw(),"&v=").concat(this.getLibraryVersion()):"".concat(this.host,"/batch/"),v=this.captureMode==="form"?{method:"POST",mode:"no-cors",credentials:"omit",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:"data=".concat(encodeURIComponent(bu.compressToBase64(l)),"&compression=lz64")}:{method:"POST",headers:{"Content-Type":"application/json"},body:l};this.fetchWithRetry(c,v).then(function(){return s()}).catch(function(_){if(_.response){var T=new Error(_.response.statusText);return s(T)}s(_)})},e.prototype.fetchWithRetry=function(t,r,n){var o,i;return ma(this,void 0,void 0,function(){var a=this;return ga(this,function(s){return(o=(i=AbortSignal).timeout)!==null&&o!==void 0||(i.timeout=function(c){var v=new AbortController;return setTimeout(function(){return v.abort()},c),v.signal}),[2,gR(function(){return a.fetch(t,xt({signal:AbortSignal.timeout(a.requestTimeout)},r))},n||this._retryOptions)]})})},e.prototype.shutdownAsync=function(){return ma(this,void 0,void 0,function(){return ga(this,function(t){switch(t.label){case 0:return clearTimeout(this._flushTimer),[4,this.flushAsync()];case 1:return t.sent(),[2]}})})},e.prototype.shutdown=function(){this.shutdownAsync()},e}(),Gw="2.0.0";function xR(e){var t={};if(e.navigator){var r=e.navigator.userAgent;t=xt(xt({},t),{$os:bR(e),$browser:Ww(r,e.navigator.vendor,!!e.opera),$referrer:e.document.referrer,$referring_domain:MR(e.document.referrer),$device:SR(r),$current_url:e.location.href,$host:e.location.host,$pathname:e.location.pathname,$browser_version:_R(r,e.navigator.vendor,!!e.opera),$screen_height:e.screen.height,$screen_width:e.screen.width,$screen_dpr:e.devicePixelRatio})}return t=xt(xt({},t),{$lib:"js",$lib_version:Gw,$insert_id:Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10),$time:Hw()/1e3}),t}function Qt(e,t){return e.indexOf(t)>=0}function Ww(e,t,r){return t=t||"",r||Qt(e," OPR/")?Qt(e,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":Qt(e,"IEMobile")||Qt(e,"WPDesktop")?"Internet Explorer Mobile":Qt(e,"SamsungBrowser/")?"Samsung Internet":Qt(e,"Edge")||Qt(e,"Edg/")?"Microsoft Edge":Qt(e,"FBIOS")?"Facebook Mobile":Qt(e,"Chrome")?"Chrome":Qt(e,"CriOS")?"Chrome iOS":Qt(e,"UCWEB")||Qt(e,"UCBrowser")?"UC Browser":Qt(e,"FxiOS")?"Firefox iOS":Qt(t,"Apple")?Qt(e,"Mobile")?"Mobile Safari":"Safari":Qt(e,"Android")?"Android Mobile":Qt(e,"Konqueror")?"Konqueror":Qt(e,"Firefox")?"Firefox":Qt(e,"MSIE")||Qt(e,"Trident/")?"Internet Explorer":Qt(e,"Gecko")?"Mozilla":""}function _R(e,t,r){var n={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/},o=Ww(e,t,r),i=n[o]||void 0;if(i===void 0)return null;var a=e.match(i);return a?parseFloat(a[a.length-2]):null}function bR(e){var t=e.navigator.userAgent;return/Windows/i.test(t)?/Phone/.test(t)||/WPDesktop/.test(t)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(t)?"iOS":/Android/.test(t)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(t)?"BlackBerry":/Mac/i.test(t)?"Mac OS X":/Linux/.test(t)?"Linux":/CrOS/.test(t)?"Chrome OS":""}function SR(e){return/Windows Phone/i.test(e)||/WPDesktop/.test(e)?"Windows Phone":/iPad/.test(e)?"iPad":/iPod/.test(e)?"iPod Touch":/iPhone/.test(e)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(e)?"BlackBerry":/Android/.test(e)?"Android":""}function MR(e){var t=e.split("/");return t.length>=3?t[2]:""}var Zw={getItem:function(e){try{for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var o=r[n];o.charAt(0)==" ";)o=o.substring(1,o.length);if(o.indexOf(t)===0)return decodeURIComponent(o.substring(t.length,o.length))}}catch(i){}return null},setItem:function(e,t){try{var r="",n="",o="",i=e+"="+encodeURIComponent(t)+n+"; path=/"+r+o;document.cookie=i}catch(a){return}},removeItem:function(e){try{Zw.setItem(e,"")}catch(t){return}},clear:function(){document.cookie=""},getAllKeys:function(){for(var e=document.cookie.split(";"),t=[],r=0;r<e.length;r++){for(var n=e[r];n.charAt(0)==" ";)n=n.substring(1,n.length);t.push(n.split("=")[0])}return t}},Vw=function(e){return{getItem:function(t){return e.getItem(t)},setItem:function(t,r){e.setItem(t,r)},removeItem:function(t){e.removeItem(t)},clear:function(){e.clear()},getAllKeys:function(){var t=[];for(var r in localStorage)t.push(r);return t}}},jw=function(e,t){if(t===void 0&&(t="__mplssupport__"),!window)return!1;try{var r="xyz";return e.setItem(t,r),e.getItem(t)!==r?!1:(e.removeItem(t),!0)}catch(n){return!1}},km=void 0,xu=void 0,_u=function(){var e={},t={getItem:function(r){return e[r]},setItem:function(r,n){e[r]=n!==null?n:void 0},removeItem:function(r){delete e[r]},clear:function(){for(var r in e)delete e[r]},getAllKeys:function(){var r=[];for(var n in e)r.push(n);return r}};return t},ER=function(e,t){if(t){if(!localStorage){var r=Vw(t.localStorage);km=jw(r)?r:void 0}if(!xu){var n=Vw(t.sessionStorage);xu=jw(n)?n:void 0}}switch(e){case"cookie":return Zw||km||xu||_u();case"localStorage":return km||xu||_u();case"sessionStorage":return xu||_u();case"memory":return _u();default:return _u()}},qw=function(e){dR(t,e);function t(r,n){var o=e.call(this,r,n)||this;return o._storageKey=n!=null&&n.persistence_name?"ph_".concat(n.persistence_name):"ph_".concat(r,"_posthog"),o._storage=ER((n==null?void 0:n.persistence)||"localStorage",window),o.setupBootstrap(n),o}return t.prototype.getPersistedProperty=function(r){return this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),this._storageCache[r]},t.prototype.setPersistedProperty=function(r,n){this._storageCache||(this._storageCache=JSON.parse(this._storage.getItem(this._storageKey)||"{}")||{}),n===null?delete this._storageCache[r]:this._storageCache[r]=n,this._storage.setItem(this._storageKey,JSON.stringify(this._storageCache))},t.prototype.fetch=function(r,n){return window.fetch(r,n)},t.prototype.getLibraryId=function(){return"posthog-js-lite"},t.prototype.getLibraryVersion=function(){return Gw},t.prototype.getCustomUserAgent=function(){},t.prototype.getCommonEventProperties=function(){return xt(xt({},e.prototype.getCommonEventProperties.call(this)),xR(window))},t}(wR);function CR(e){return{name:"telemetry-error",error:e}}typeof globalThis.window<"u"&&(window.onunhandledrejection=function(e){return e.reason.name!=="telemetry-error"});async function TR(e,t){try{return await fetch(e,t)}catch(r){throw CR(r)}}var er=null;typeof globalThis.window<"u"&&(er=new qw("phc_QttqgDbMQDYHX1EMH7FnT6ECBVzdp0kGUq92aQaVQ6I",{persistence:"memory"}),er.fetch=TR);var Tf={version:"0.2.3",package:"idkit-js"},Ss=()=>{var e;return(e=er==null?void 0:er.getDistinctId())!=null?e:""},Qw=e=>{e?er==null||er.capture("idkit loaded",Tf):er==null||er.optOut()},Jw=()=>{er==null||er.capture("idkit opened",Tf)},Kw=()=>{er==null||er.capture("idkit phone typed",Tf)},Xw=e=>{er==null||er.capture("idkit phone code retried",Ae(se({},Tf),{channel:e}))};var kR=bf()((e,t)=>({open:!1,code:"",signal:"",result:null,actionId:"",errorTitle:"",errorDetail:"",phoneNumber:"",autoClose:!1,errorState:null,processing:!1,verifyCallbacks:{},successCallbacks:{},stringifiedActionId:"",stage:"ENTER_PHONE",copy:{},setCode:r=>e({code:r}),setStage:r=>e({stage:r}),setErrorState:r=>e({errorState:r}),setPhoneNumber:r=>e({phoneNumber:r}),setProcessing:r=>e({processing:r}),retryFlow:()=>e({stage:"ENTER_PHONE",phoneNumber:"",errorState:null}),addSuccessCallback:(r,n)=>{e(o=>(o.successCallbacks[n]=r,o))},addVerificationCallback:(r,n)=>{e(o=>(o.verifyCallbacks[n]=r,o))},setOptions:({handleVerify:r,onSuccess:n,signal:o,actionId:i,autoClose:a,copy:s},l)=>{let c=typeof i=="string"?i:yu(i).digest;e(v=>({actionId:i,stringifiedActionId:c,signal:o,autoClose:a,copy:se(se({},v.copy),s)})),n&&t().addSuccessCallback(n,l),r&&t().addVerificationCallback(r,l)},handleVerify:r=>{e({stage:"HOST_APP_VERIFICATION",processing:!1}),Promise.all(Object.values(t().verifyCallbacks).map(n=>n==null?void 0:n(r))).then(()=>{e({stage:"SUCCESS",result:r}),t().autoClose&&setTimeout(()=>t().onOpenChange(!1),1e3)},n=>{let o;n&&typeof n=="object"&&n.message&&(o=n.message),e({stage:"ERROR",errorState:{code:"REJECTED_BY_HOST_APP",message:o}})})},onOpenChange:r=>{if(r)return Jw(),e({open:r});if(t().stage=="SUCCESS"){let n=t().result;n&&requestAnimationFrame(()=>Object.values(t().successCallbacks).map(o=>()=>o==null?void 0:o(n)))}e({open:r,phoneNumber:"",code:"",processing:!1,stage:"ENTER_PHONE",result:null})}})),zt=kR;d();h();p();var Do={title:"World ID",heading:"Verify your phone number",subheading:"We'll take care of the rest!",success:"Your phone number has been verified"};var Bk=he(x3(),1);d();h();p();var Fk=he(ye(),1);d();h();p();d();h();p();var ur=he(ye()),P3=he(Oa()),Go=he(Hg()),OO=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};function R3(e,t){return e(t={exports:{}},t.exports),t.exports}var AO=R3(function(e){(function(t){var r=function(V,F,N){if(!l(F)||v(F)||_(F)||T(F)||s(F))return F;var U,q=0,X=0;if(c(F))for(U=[],X=F.length;q<X;q++)U.push(r(V,F[q],N));else for(var ue in U={},F)Object.prototype.hasOwnProperty.call(F,ue)&&(U[V(ue,N)]=r(V,F[ue],N));return U},n=function(V){return R(V)?V:(V=V.replace(/[\-_\s]+(.)?/g,function(F,N){return N?N.toUpperCase():""})).substr(0,1).toLowerCase()+V.substr(1)},o=function(V){var F=n(V);return F.substr(0,1).toUpperCase()+F.substr(1)},i=function(V,F){return function(N,U){var q=(U=U||{}).separator||"_",X=U.split||/(?=[A-Z])/;return N.split(X).join(q)}(V,F).toLowerCase()},a=Object.prototype.toString,s=function(V){return typeof V=="function"},l=function(V){return V===Object(V)},c=function(V){return a.call(V)=="[object Array]"},v=function(V){return a.call(V)=="[object Date]"},_=function(V){return a.call(V)=="[object RegExp]"},T=function(V){return a.call(V)=="[object Boolean]"},R=function(V){return(V-=0)==V},O=function(V,F){var N=F&&"process"in F?F.process:F;return typeof N!="function"?V:function(U,q){return N(U,V,q)}},$={camelize:n,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(V,F){return r(O(n,F),V)},decamelizeKeys:function(V,F){return r(O(i,F),V,F)},pascalizeKeys:function(V,F){return r(O(o,F),V)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=$:t.humps=$})(OO)}).decamelize,DO=R3(function(e){function t(){return e.exports=t=Object.assign||function(r){for(var n=1;n<arguments.length;n++){var o=arguments[n];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(r[i]=o[i])}return r},t.apply(this,arguments)}e.exports=t}),NO=function(e){if(Array.isArray(e))return e},FO=function(e,t){if(typeof Symbol<"u"&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(l){o=!0,i=l}finally{try{n||s.return==null||s.return()}finally{if(o)throw i}}return r}},k3=function(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n},LO=function(e,t){if(e){if(typeof e=="string")return k3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k3(e,t):void 0}},BO=function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
23
23
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)},$O=function(e,t){return NO(e)||FO(e,t)||LO(e,t)||BO()},UO=function(e,t){if(e==null)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o},zO=function(e,t){if(e==null)return{};var r,n,o=UO(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o},VO=(0,ur.createContext)(null);function Wg(e){var t=e.root,r=e.children;return(0,P3.createPortal)(r,t)}function jO(e){var t=(0,ur.forwardRef)(function(r,n){var o,i,a=r.mode,s=r.delegatesFocus,l=r.styleSheets,c=r.ssr,v=r.children,_=zO(r,["mode","delegatesFocus","styleSheets","ssr","children"]),T=(i=(0,ur.useRef)((o=n)&&o.current),(0,ur.useEffect)(function(){o&&(o.current=i.current)},[o]),i),R=(0,ur.useState)(null),O=$O(R,2),$=O[0],V=O[1],F="node_".concat(a).concat(s);return(0,ur.useEffect)(function(){if(T.current)try{if(typeof n=="function"&&n(T.current),c){var N=T.current.shadowRoot;return void V(N)}var U=T.current.attachShadow({mode:a,delegatesFocus:s});l.length>0&&(U.adoptedStyleSheets=l),V(U)}catch(q){(function(X){var ue=X.error,ie=X.styleSheets,ve=X.root;switch(ue.name){case"NotSupportedError":ie.length>0&&(ve.adoptedStyleSheets=ie);break;default:throw ue}})({error:q,styleSheets:l,root:$})}},[n,T,l]),ur.default.createElement(ur.default.Fragment,null,ur.default.createElement(e.tag,DO({key:F,ref:T},_),($||c)&&ur.default.createElement(VO.Provider,{value:$},c?ur.default.createElement("template",{shadowroot:"open"},e.render({root:$,ssr:c,children:v})):ur.default.createElement(Wg,{root:$},e.render({root:$,ssr:c,children:v})))))});return t.propTypes={mode:Go.default.oneOf(["open","closed"]),delegatesFocus:Go.default.bool,styleSheets:Go.default.arrayOf(Go.default.instanceOf(globalThis.CSSStyleSheet)),ssr:Go.default.bool,children:Go.default.node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}Wg.propTypes={root:Go.default.object.isRequired,children:Go.default.node},Wg.defaultProps={children:null};var Gg=new Map;function HO(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"core",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(n){return n.children};return new Proxy(e,{get:function(n,o){var i=AO(o,{separator:"-"}),a="".concat(t,"-").concat(i);return Gg.has(a)||Gg.set(a,jO({tag:i,render:r})),Gg.get(a)}})}var GO=HO(),I3=GO;var Dk=he(ye(),1);d();h();p();var WO=`@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@300..700&display=swap");
|
|
24
24
|
/*! tailwindcss v3.2.4 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;line-height:1.5;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}[multiple],[type=date],[type=datetime-local],[type=email],[type=month],[type=number],[type=password],[type=search],[type=tel],[type=text],[type=time],[type=url],[type=week],select,textarea{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;border-color:#6b7280;border-radius:0;border-width:1px;font-size:1rem;line-height:1.5rem;padding:.5rem .75rem}[multiple]:focus,[type=date]:focus,[type=datetime-local]:focus,[type=email]:focus,[type=month]:focus,[type=number]:focus,[type=password]:focus,[type=search]:focus,[type=tel]:focus,[type=text]:focus,[type=time]:focus,[type=url]:focus,[type=week]:focus,select:focus,textarea:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);border-color:#2563eb;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-bottom:0;padding-top:0}select{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3E%3C/svg%3E");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple]{background-image:none;background-position:0 0;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{--tw-shadow:0 0 #0000;appearance:none;background-color:#fff;background-origin:border-box;border-color:#6b7280;border-width:1px;color:#2563eb;display:inline-block;flex-shrink:0;height:1rem;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;-webkit-user-select:none;user-select:none;vertical-align:middle;width:1rem}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{--tw-ring-inset:var(--tw-empty,/*!*/ /*!*/);--tw-ring-offset-width:2px;--tw-ring-offset-color:#fff;--tw-ring-color:#2563eb;--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);outline:2px solid transparent;outline-offset:2px}[type=checkbox]:checked,[type=radio]:checked{background-color:currentColor;background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 0 1 0 1.414l-5 5a1 1 0 0 1-1.414 0l-2-2a1 1 0 0 1 1.414-1.414L6.5 9.086l4.293-4.293a1 1 0 0 1 1.414 0z'/%3E%3C/svg%3E")}[type=radio]:checked{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg viewBox='0 0 16 16' fill='%23fff' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3C/svg%3E")}[type=checkbox]:checked:focus,[type=checkbox]:checked:hover,[type=radio]:checked:focus,[type=radio]:checked:hover{background-color:currentColor;border-color:transparent}[type=checkbox]:indeterminate{background-color:currentColor;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3E%3C/svg%3E");background-position:50%;background-repeat:no-repeat;background-size:100% 100%;border-color:transparent}[type=checkbox]:indeterminate:focus,[type=checkbox]:indeterminate:hover{background-color:currentColor;border-color:transparent}[type=file]{background:unset;border-color:inherit;border-radius:0;border-width:0;font-size:unset;line-height:inherit;padding:0}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width:414px){.container{max-width:414px}}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.sr-only{clip:rect(0,0,0,0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{bottom:0;top:0}.inset-0,.inset-x-0{left:0;right:0}.top-full{top:100%}.left-1\\/2{left:50%}.top-1\\/2{top:50%}.bottom-0{bottom:0}.z-10{z-index:10}.z-0{z-index:0}.z-50{z-index:50}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.ml-2\\.5{margin-left:.625rem}.mr-1{margin-right:.25rem}.ml-2{margin-left:.5rem}.mt-1\\.5{margin-top:.375rem}.mt-1{margin-top:.25rem}.-mt-\\[2px\\]{margin-top:-2px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.-mt-6{margin-top:-1.5rem}.mt-4{margin-top:1rem}.mt-3{margin-top:.75rem}.-mt-1{margin-top:-.25rem}.mt-2{margin-top:.5rem}.-mt-5{margin-top:-1.25rem}.box-border{box-sizing:border-box}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.aspect-\\[6\\/7\\]{aspect-ratio:6/7}.h-4{height:1rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-24{height:6rem}.h-80{height:20rem}.max-h-\\[var\\(--max-h\\2c _0px\\)\\]{max-height:var(--max-h,0)}.min-h-full{min-height:100%}.w-4{width:1rem}.w-full{width:100%}.w-5{width:1.25rem}.w-10{width:2.5rem}.w-\\[34px\\]{width:34px}.w-8{width:2rem}.w-1\\.5{width:.375rem}.w-1{width:.25rem}.w-24{width:6rem}.w-80{width:20rem}.min-w-\\[calc\\(100vw_-_48px\\)\\]{min-width:calc(100vw - 48px)}.flex-none{flex:none}.shrink-0{flex-shrink:0}.basis-4{flex-basis:1rem}.-translate-x-1\\/2{--tw-translate-x:-50%}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y:-50%}.translate-y-1\\/2{--tw-translate-y:50%}.transform,.translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}.select-none{-webkit-user-select:none;user-select:none}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-4{gap:1rem}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.75rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.75rem*var(--tw-space-x-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.5rem*var(--tw-space-y-reverse));margin-top:calc(1.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(2rem*var(--tw-space-y-reverse));margin-top:calc(2rem*(1 - var(--tw-space-y-reverse)))}.overflow-y-hidden{overflow-y:hidden}.overflow-y-scroll{overflow-y:scroll}.whitespace-pre-wrap{white-space:pre-wrap}.rounded-md{border-radius:.375rem}.rounded-2xl{border-radius:1rem}.rounded{border-radius:.25rem}.rounded-xl{border-radius:.75rem}.rounded-full{border-radius:9999px}.rounded-t-3xl{border-top-left-radius:1.5rem;border-top-right-radius:1.5rem}.border{border-width:1px}.border-0{border-width:0}.border-transparent{border-color:transparent}.border-white\\/10{border-color:hsla(0,0%,100%,.1)}.border-f1f5f8{--tw-border-opacity:1;border-color:rgb(241 245 248/var(--tw-border-opacity))}.bg-indigo-600{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-indigo-500{--tw-bg-opacity:1;background-color:rgb(99 102 241/var(--tw-bg-opacity))}.bg-indigo-50\\/50{background-color:rgba(238,242,255,.5)}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-black\\/50{background-color:rgba(0,0,0,.5)}.bg-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.bg-\\[\\#fecaca\\]{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-ff6848\\/10{background-color:rgba(255,104,72,.1)}.bg-ff6848{--tw-bg-opacity:1;background-color:rgb(255 104 72/var(--tw-bg-opacity))}.bg-6445dd\\/10{background-color:rgba(100,69,221,.1)}.bg-6445dd{--tw-bg-opacity:1;background-color:rgb(100 69 221/var(--tw-bg-opacity))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#FF6848\\]{--tw-gradient-from:#ff6848;--tw-gradient-to:rgba(255,104,72,0);--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to)}.to-\\[\\#4940E0\\]{--tw-gradient-to:#4940e0}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.p-3{padding:.75rem}.p-5{padding:1.25rem}.px-4{padding-left:1rem;padding-right:1rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-4{padding-bottom:1rem;padding-top:1rem}.px-3{padding-left:.75rem;padding-right:.75rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-8{padding-bottom:2rem;padding-top:2rem}.pl-6{padding-left:1.5rem}.pt-6{padding-top:1.5rem}.pb-10{padding-bottom:2.5rem}.text-center{text-align:center}.text-justify{text-align:justify}.font-sans{font-family:Rubik,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.text-sm{font-size:.875rem;line-height:1.25rem}.text-base{font-size:1rem;line-height:1.5rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity))}.text-9eafc0{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-6445dd{--tw-text-opacity:1;color:rgb(100 69 221/var(--tw-text-opacity))}.text-indigo-500{--tw-text-opacity:1;color:rgb(99 102 241/var(--tw-text-opacity))}.text-indigo-600{--tw-text-opacity:1;color:rgb(79 70 229/var(--tw-text-opacity))}.text-29343f{--tw-text-opacity:1;color:rgb(41 52 63/var(--tw-text-opacity))}.text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-transparent{color:transparent}.text-red-400{--tw-text-opacity:1;color:rgb(248 113 113/var(--tw-text-opacity))}.text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.caret-transparent{caret-color:transparent}.opacity-100{opacity:1}.opacity-0{opacity:0}.opacity-20{opacity:.2}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.shadow-lg,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow:0 10px 15px -3px rgba(0,0,0,.1),0 4px 6px -4px rgba(0,0,0,.1);--tw-shadow-colored:0 10px 15px -3px var(--tw-shadow-color),0 4px 6px -4px var(--tw-shadow-color)}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.outline-0{outline-width:0}.ring-1{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring,.ring-1{box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color)}.ring-black\\/5{--tw-ring-color:rgba(0,0,0,.05)}.ring-transparent{--tw-ring-color:transparent}.blur{--tw-blur:blur(8px)}.blur,.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-lg{--tw-backdrop-blur:blur(16px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-100{transition-duration:.1s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{appearance:none}.focus-within\\:border-\\[\\#5b52f3\\]:focus-within{--tw-border-opacity:1;border-color:rgb(91 82 243/var(--tw-border-opacity))}.hover\\:bg-indigo-700:hover{--tw-bg-opacity:1;background-color:rgb(67 56 202/var(--tw-bg-opacity))}.hover\\:bg-gray-300\\/50:hover{background-color:rgba(209,213,219,.5)}.hover\\:underline:hover{text-decoration-line:underline}.focus\\:border-transparent:focus{border-color:transparent}.focus\\:bg-gray-100:focus{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.focus\\:bg-transparent:focus{background-color:transparent}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:ring-indigo-500:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(99 102 241/var(--tw-ring-opacity))}.focus\\:ring-transparent:focus{--tw-ring-color:transparent}.focus\\:ring-5b52f3:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(91 82 243/var(--tw-ring-opacity))}.focus\\:ring-gray-300:focus{--tw-ring-opacity:1;--tw-ring-color:rgb(209 213 219/var(--tw-ring-opacity))}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus-visible\\:ring-purple-500\\/75:focus-visible{--tw-ring-color:rgba(168,85,247,.75)}.disabled\\:cursor-wait:disabled{cursor:wait}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:bg-d3dfea:disabled{--tw-bg-opacity:1;background-color:rgb(211 223 234/var(--tw-bg-opacity))}.disabled\\:text-gray-900:disabled{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.disabled\\:text-9eafc0:disabled{--tw-text-opacity:1;color:rgb(158 175 192/var(--tw-text-opacity))}.disabled\\:opacity-40:disabled{opacity:.4}.disabled\\:hover\\:bg-indigo-600:hover:disabled{--tw-bg-opacity:1;background-color:rgb(79 70 229/var(--tw-bg-opacity))}@media (prefers-color-scheme:dark){.dark\\:border-black\\/10{border-color:rgba(0,0,0,.1)}.dark\\:border-f1f5f8\\/10{border-color:rgba(241,245,248,.1)}.dark\\:bg-29343f{--tw-bg-opacity:1;background-color:rgb(41 52 63/var(--tw-bg-opacity))}.dark\\:bg-ece8fb\\/10{background-color:rgba(236,232,251,.1)}.dark\\:bg-0d151d{--tw-bg-opacity:1;background-color:rgb(13 21 29/var(--tw-bg-opacity))}.dark\\:bg-d3dfea\\/15{background-color:rgba(211,223,234,.15)}.dark\\:text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.dark\\:text-d3dfea{--tw-text-opacity:1;color:rgb(211 223 234/var(--tw-text-opacity))}.dark\\:text-70868f{--tw-text-opacity:1;color:rgb(112 134 143/var(--tw-text-opacity))}.dark\\:text-596673{--tw-text-opacity:1;color:rgb(89 102 115/var(--tw-text-opacity))}.dark\\:text-white\\/80{color:hsla(0,0%,100%,.8)}.dark\\:hover\\:bg-29343f\\/50:hover{background-color:rgba(41,52,63,.5)}.dark\\:focus\\:bg-ece8fb\\/25:focus{background-color:rgba(236,232,251,.25)}.dark\\:disabled\\:bg-29343f\\/50:disabled{background-color:rgba(41,52,63,.5)}.dark\\:disabled\\:text-white:disabled{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}}@media (min-width:414px){.xs\\:w-12{width:3rem}}@media (min-width:640px){.sm\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width:768px){.md\\:mt-2{margin-top:.5rem}.md\\:max-h-96{max-height:24rem}.md\\:min-w-\\[20rem\\]{min-width:20rem}.md\\:max-w-md{max-width:28rem}.md\\:items-center{align-items:center}.md\\:overflow-y-auto{overflow-y:auto}.md\\:rounded-b-3xl{border-bottom-left-radius:1.5rem;border-bottom-right-radius:1.5rem}.md\\:p-4{padding:1rem}}.\\[\\&_\\*\\]\\:text-black *{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}@media (prefers-color-scheme:dark){.dark\\:\\[\\&_\\*\\]\\:text-white *{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}}`,O3=()=>g.createElement("style",null,WO);d();h();p();d();h();p();d();h();p();var Ys=he(ye(),1);function ZO(o,n){var i=o,{title:e,titleId:t}=i,r=Ee(i,["title","titleId"]);return Ys.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?Ys.createElement("title",{id:t},e):null,Ys.createElement("path",{fillRule:"evenodd",d:"M18 10a.75.75 0 01-.75.75H4.66l2.1 1.95a.75.75 0 11-1.02 1.1l-3.5-3.25a.75.75 0 010-1.1l3.5-3.25a.75.75 0 111.02 1.1l-2.1 1.95h12.59A.75.75 0 0118 10z",clipRule:"evenodd"}))}var qO=Ys.forwardRef(ZO),Zg=qO;d();h();p();var el=he(ye(),1);function QO(o,n){var i=o,{title:e,titleId:t}=i,r=Ee(i,["title","titleId"]);return el.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?el.createElement("title",{id:t},e):null,el.createElement("path",{fillRule:"evenodd",d:"M16.704 4.153a.75.75 0 01.143 1.052l-8 10.5a.75.75 0 01-1.127.075l-4.5-4.5a.75.75 0 011.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 011.05-.143z",clipRule:"evenodd"}))}var JO=el.forwardRef(QO),hc=JO;d();h();p();var tl=he(ye(),1);function KO(o,n){var i=o,{title:e,titleId:t}=i,r=Ee(i,["title","titleId"]);return tl.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?tl.createElement("title",{id:t},e):null,tl.createElement("path",{fillRule:"evenodd",d:"M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z",clipRule:"evenodd"}))}var XO=tl.forwardRef(KO),qg=XO;d();h();p();var Aa=he(ye(),1);function YO(o,n){var i=o,{title:e,titleId:t}=i,r=Ee(i,["title","titleId"]);return Aa.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?Aa.createElement("title",{id:t},e):null,Aa.createElement("path",{d:"M8 16.25a.75.75 0 01.75-.75h2.5a.75.75 0 010 1.5h-2.5a.75.75 0 01-.75-.75z"}),Aa.createElement("path",{fillRule:"evenodd",d:"M4 4a3 3 0 013-3h6a3 3 0 013 3v12a3 3 0 01-3 3H7a3 3 0 01-3-3V4zm4-1.5v.75c0 .414.336.75.75.75h2.5a.75.75 0 00.75-.75V2.5h1A1.5 1.5 0 0114.5 4v12a1.5 1.5 0 01-1.5 1.5H7A1.5 1.5 0 015.5 16V4A1.5 1.5 0 017 2.5h1z",clipRule:"evenodd"}))}var eA=Aa.forwardRef(YO),Qg=eA;d();h();p();var rl=he(ye(),1);function tA(o,n){var i=o,{title:e,titleId:t}=i,r=Ee(i,["title","titleId"]);return rl.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",ref:n,"aria-labelledby":t},r),e?rl.createElement("title",{id:t},e):null,rl.createElement("path",{d:"M6.28 5.22a.75.75 0 00-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 101.06 1.06L10 11.06l3.72 3.72a.75.75 0 101.06-1.06L11.06 10l3.72-3.72a.75.75 0 00-1.06-1.06L10 8.94 6.28 5.22z"}))}var rA=rl.forwardRef(tA),Da=rA;var nA=({retryFlow:e,errorState:t})=>({retryFlow:e,errorState:t}),oA={["GENERIC_ERROR"]:"Something went wrong",["INVALID_CODE"]:"Invalid code",["PHONE_OTP_REQUEST_ERROR"]:"We could not send you a code",["REJECTED_BY_HOST_APP"]:"Verification declined by app"},iA=()=>{var r;let{retryFlow:e,errorState:t}=zt(nA);return g.createElement("div",{className:"space-y-8"},g.createElement("div",{className:"-mt-5 flex items-center justify-center"},g.createElement("div",{className:"bg-ff6848/10 inline-flex items-center justify-center rounded-full p-5"},g.createElement("div",{className:"bg-ff6848 flex items-center justify-center rounded-full p-5"},g.createElement(Da,{className:"w-8 text-white"})))),g.createElement("div",null,g.createElement("p",{className:"text-center text-2xl font-semibold text-gray-900 dark:text-white"},oA[(r=t==null?void 0:t.code)!=null?r:"GENERIC_ERROR"]),g.createElement("p",{className:"mt-2 text-center text-lg text-gray-400"},(t==null?void 0:t.message)||"Please try again in a moment.")),g.createElement("div",{className:"flex justify-center"},g.createElement("button",{type:"button",onClick:e,className:"inline-flex items-center rounded-full border border-transparent bg-indigo-600 px-8 py-3 font-medium text-white shadow-sm hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-indigo-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-indigo-600"},"Try Again")),g.createElement("div",null,g.createElement("p",{className:"mt-4 text-xs text-gray-400"},"If you are the app owner, check the console for further details.")))},A3=iA;d();h();p();d();h();p();d();h();p();d();h();p();var Jg=he(ye(),1),Ba=he(ye(),1);d();h();p();var D3=he(ye(),1),nl=(0,D3.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});d();h();p();var Q0=he(ye(),1),Na=(0,Q0.createContext)({});function N3(){return(0,Q0.useContext)(Na).visualElement}d();h();p();var Di=he(ye(),1);d();h();p();var F3=he(ye(),1),bo=(0,F3.createContext)(null);d();h();p();var J0=he(ye(),1);d();h();p();var Un=typeof document<"u";var Fa=Un?J0.useLayoutEffect:J0.useEffect;d();h();p();var L3=he(ye(),1),K0=(0,L3.createContext)({strict:!1});function B3(e,t,r,n){let o=N3(),i=(0,Di.useContext)(K0),a=(0,Di.useContext)(bo),s=(0,Di.useContext)(nl).reducedMotion,l=(0,Di.useRef)();n=n||i.renderer,!l.current&&n&&(l.current=n(e,{visualState:t,parent:o,props:r,presenceId:a?a.id:void 0,blockInitialAnimation:a?a.initial===!1:!1,reducedMotionConfig:s}));let c=l.current;return Fa(()=>{c&&c.render()}),(0,Di.useEffect)(()=>{c&&c.animationState&&c.animationState.animateChanges()}),Fa(()=>()=>c&&c.notify("Unmount"),[]),c}d();h();p();var $3=he(ye(),1);d();h();p();function Wo(e){return typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function U3(e,t,r){return(0,$3.useCallback)(n=>{n&&e.mount&&e.mount(n),t&&(n?t.mount(n):t.unmount()),r&&(typeof r=="function"?r(n):Wo(r)&&(r.current=n))},[t])}d();h();p();var Y0=he(ye(),1);d();h();p();d();h();p();function Zo(e){return typeof e=="string"||Array.isArray(e)}d();h();p();d();h();p();function Ni(e){return typeof e=="object"&&typeof e.start=="function"}var aA=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function La(e){return Ni(e.animate)||aA.some(t=>Zo(e[t]))}function X0(e){return Boolean(La(e)||e.variants)}function z3(e,t){if(La(e)){let{initial:r,animate:n}=e;return{initial:r===!1||Zo(r)?r:void 0,animate:Zo(n)?n:void 0}}return e.inherit!==!1?t:{}}function j3(e){let{initial:t,animate:r}=z3(e,(0,Y0.useContext)(Na));return(0,Y0.useMemo)(()=>({initial:t,animate:r}),[V3(t),V3(r)])}function V3(e){return Array.isArray(e)?e.join(" "):e}d();h();p();var qo=e=>({isEnabled:t=>e.some(r=>!!t[r])}),Fi={measureLayout:qo(["layout","layoutId","drag"]),animation:qo(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:qo(["exit"]),drag:qo(["drag","dragControls"]),focus:qo(["whileFocus"]),hover:qo(["whileHover","onHoverStart","onHoverEnd"]),tap:qo(["whileTap","onTap","onTapStart","onTapCancel"]),pan:qo(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:qo(["whileInView","onViewportEnter","onViewportLeave"])};d();h();p();function H3(e){for(let t in e)t==="projectionNodeConstructor"?Fi.projectionNodeConstructor=e[t]:Fi[t].Component=e[t]}d();h();p();d();h();p();var G3=he(ye(),1);function Li(e){let t=(0,G3.useRef)(null);return t.current===null&&(t.current=e()),t.current}d();h();p();var Bi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};var sA=1;function W3(){return Li(()=>{if(Bi.hasEverUpdated)return sA++})}d();h();p();var Z3=he(ye(),1),ol=(0,Z3.createContext)({});d();h();p();var q3=he(ye(),1),ed=class extends q3.default.Component{getSnapshotBeforeUpdate(){let{visualElement:t,props:r}=this.props;return t&&t.setProps(r),null}componentDidUpdate(){}render(){return this.props.children}};d();h();p();var Q3=he(ye(),1),td=(0,Q3.createContext)({});d();h();p();var J3=Symbol.for("motionComponentSymbol");function K3({preloadedFeatures:e,createVisualElement:t,projectionNodeConstructor:r,useRender:n,useVisualState:o,Component:i}){e&&H3(e);function a(l,c){let v=Ae(se(se({},(0,Ba.useContext)(nl)),l),{layoutId:lA(l)}),{isStatic:_}=v,T=null,R=j3(l),O=_?void 0:W3(),$=o(l,_);if(!_&&Un){R.visualElement=B3(i,$,v,t);let V=(0,Ba.useContext)(K0).strict,F=(0,Ba.useContext)(td);R.visualElement&&(T=R.visualElement.loadFeatures(v,V,e,O,r||Fi.projectionNodeConstructor,F))}return Jg.createElement(ed,{visualElement:R.visualElement,props:v},T,Jg.createElement(Na.Provider,{value:R},n(i,l,O,U3($,R.visualElement,c),$,_,R.visualElement)))}let s=(0,Ba.forwardRef)(a);return s[J3]=i,s}function lA({layoutId:e}){let t=(0,Ba.useContext)(ol).id;return t&&e!==void 0?t+"-"+e:e}d();h();p();function X3(e){function t(n,o={}){return K3(e(n,o))}if(typeof Proxy>"u")return t;let r=new Map;return new Proxy(t,{get:(n,o)=>(r.has(o)||r.set(o,t(o)),r.get(o))})}d();h();p();d();h();p();d();h();p();var Y3=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function il(e){return typeof e!="string"||e.includes("-")?!1:!!(Y3.indexOf(e)>-1||/[A-Z]/.test(e))}d();h();p();var xb=he(ye(),1);d();h();p();var ub=he(ye(),1);d();h();p();d();h();p();var al={};function eb(e){Object.assign(al,e)}d();h();p();var sl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],zn=new Set(sl);function rd(e,{layout:t,layoutId:r}){return zn.has(e)||e.startsWith("origin")||(t||r!==void 0)&&(!!al[e]||e==="opacity")}d();h();p();var gr=e=>!!(e!=null&&e.getVelocity);d();h();p();d();h();p();var uA={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},cA=(e,t)=>sl.indexOf(e)-sl.indexOf(t);function tb({transform:e,transformKeys:t},{enableHardwareAcceleration:r=!0,allowTransformNone:n=!0},o,i){let a="";t.sort(cA);for(let s of t)a+=`${uA[s]||s}(${e[s]}) `;return r&&!e.z&&(a+="translateZ(0)"),a=a.trim(),i?a=i(e,o?"":a):n&&o&&(a="none"),a}d();h();p();function nd(e){return e.startsWith("--")}d();h();p();var rb=(e,t)=>t&&typeof e=="number"?t.transform(e):e;d();h();p();d();h();p();d();h();p();d();h();p();var od=(e,t)=>r=>Math.max(Math.min(r,t),e),$i=e=>e%1?Number(e.toFixed(5)):e,Ui=/(-)?([\d]*\.?[\d])+/g,id=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,nb=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function Qo(e){return typeof e=="string"}var vn={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Jo=Object.assign(Object.assign({},vn),{transform:od(0,1)}),ll=Object.assign(Object.assign({},vn),{default:1});d();h();p();var mc=e=>({test:t=>Qo(t)&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),oo=mc("deg"),Or=mc("%"),Ze=mc("px"),Kg=mc("vh"),Xg=mc("vw"),ad=Object.assign(Object.assign({},Or),{parse:e=>Or.parse(e)/100,transform:e=>Or.transform(e*100)});d();h();p();d();h();p();var ul=(e,t)=>r=>Boolean(Qo(r)&&nb.test(r)&&r.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(r,t)),sd=(e,t,r)=>n=>{if(!Qo(n))return n;let[o,i,a,s]=n.match(Ui);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}};var Ko={test:ul("hsl","hue"),parse:sd("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Or.transform($i(t))+", "+Or.transform($i(r))+", "+$i(Jo.transform(n))+")"};d();h();p();var fA=od(0,255),ld=Object.assign(Object.assign({},vn),{transform:e=>Math.round(fA(e))}),io={test:ul("rgb","red"),parse:sd("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+ld.transform(e)+", "+ld.transform(t)+", "+ld.transform(r)+", "+$i(Jo.transform(n))+")"};d();h();p();function dA(e){let t="",r="",n="",o="";return e.length>5?(t=e.substr(1,2),r=e.substr(3,2),n=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),r=e.substr(2,1),n=e.substr(3,1),o=e.substr(4,1),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}}var cl={test:ul("#"),parse:dA,transform:io.transform};d();h();p();var Kt={test:e=>io.test(e)||cl.test(e)||Ko.test(e),parse:e=>io.test(e)?io.parse(e):Ko.test(e)?Ko.parse(e):cl.parse(e),transform:e=>Qo(e)?e:e.hasOwnProperty("red")?io.transform(e):Ko.transform(e)};d();h();p();var ob="${c}",ib="${n}";function pA(e){var t,r,n,o;return isNaN(e)&&Qo(e)&&((r=(t=e.match(Ui))===null||t===void 0?void 0:t.length)!==null&&r!==void 0?r:0)+((o=(n=e.match(id))===null||n===void 0?void 0:n.length)!==null&&o!==void 0?o:0)>0}function ab(e){typeof e=="number"&&(e=`${e}`);let t=[],r=0,n=e.match(id);n&&(r=n.length,e=e.replace(id,ob),t.push(...n.map(Kt.parse)));let o=e.match(Ui);return o&&(e=e.replace(Ui,ib),t.push(...o.map(vn.parse))),{values:t,numColors:r,tokenised:e}}function sb(e){return ab(e).values}function lb(e){let{values:t,numColors:r,tokenised:n}=ab(e),o=t.length;return i=>{let a=n;for(let s=0;s<o;s++)a=a.replace(s<r?ob:ib,s<r?Kt.transform(i[s]):$i(i[s]));return a}}var hA=e=>typeof e=="number"?0:e;function mA(e){let t=sb(e);return lb(e)(t.map(hA))}var xr={test:pA,parse:sb,createTransformer:lb,getAnimatableNone:mA};d();h();p();var gA=new Set(["brightness","contrast","saturate","opacity"]);function vA(e){let[t,r]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;let[n]=r.match(Ui)||[];if(!n)return e;let o=r.replace(n,""),i=gA.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}var yA=/([a-z-]*)\(.*?\)/g,fl=Object.assign(Object.assign({},xr),{getAnimatableNone:e=>{let t=e.match(yA);return t?t.map(vA).join(" "):e}});d();h();p();var Yg=Ae(se({},vn),{transform:Math.round});var ud={borderWidth:Ze,borderTopWidth:Ze,borderRightWidth:Ze,borderBottomWidth:Ze,borderLeftWidth:Ze,borderRadius:Ze,radius:Ze,borderTopLeftRadius:Ze,borderTopRightRadius:Ze,borderBottomRightRadius:Ze,borderBottomLeftRadius:Ze,width:Ze,maxWidth:Ze,height:Ze,maxHeight:Ze,size:Ze,top:Ze,right:Ze,bottom:Ze,left:Ze,padding:Ze,paddingTop:Ze,paddingRight:Ze,paddingBottom:Ze,paddingLeft:Ze,margin:Ze,marginTop:Ze,marginRight:Ze,marginBottom:Ze,marginLeft:Ze,rotate:oo,rotateX:oo,rotateY:oo,rotateZ:oo,scale:ll,scaleX:ll,scaleY:ll,scaleZ:ll,skew:oo,skewX:oo,skewY:oo,distance:Ze,translateX:Ze,translateY:Ze,translateZ:Ze,x:Ze,y:Ze,z:Ze,perspective:Ze,transformPerspective:Ze,opacity:Jo,originX:ad,originY:ad,originZ:Ze,zIndex:Yg,fillOpacity:Jo,strokeOpacity:Jo,numOctaves:Yg};function dl(e,t,r,n){let{style:o,vars:i,transform:a,transformKeys:s,transformOrigin:l}=e;s.length=0;let c=!1,v=!1,_=!0;for(let T in t){let R=t[T];if(nd(T)){i[T]=R;continue}let O=ud[T],$=rb(R,O);if(zn.has(T)){if(c=!0,a[T]=$,s.push(T),!_)continue;R!==(O.default||0)&&(_=!1)}else T.startsWith("origin")?(v=!0,l[T]=$):o[T]=$}if(t.transform||(c||n?o.transform=tb(e,r,_,n):o.transform&&(o.transform="none")),v){let{originX:T="50%",originY:R="50%",originZ:O=0}=l;o.transformOrigin=`${T} ${R} ${O}`}}d();h();p();var pl=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function ev(e,t,r){for(let n in t)!gr(t[n])&&!rd(n,r)&&(e[n]=t[n])}function wA({transformTemplate:e},t,r){return(0,ub.useMemo)(()=>{let n=pl();return dl(n,t,{enableHardwareAcceleration:!r},e),Object.assign({},n.vars,n.style)},[t])}function xA(e,t,r){let n=e.style||{},o={};return ev(o,n,e),Object.assign(o,wA(e,t,r)),e.transformValues?e.transformValues(o):o}function cb(e,t,r){let n={},o=xA(e,t,r);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),n.style=o,n}d();h();p();d();h();p();var _A=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],bA=["whileTap","onTap","onTapStart","onTapCancel"],SA=["onPan","onPanStart","onPanSessionStart","onPanEnd"],MA=["whileInView","onViewportEnter","onViewportLeave","viewport"],EA=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...MA,...bA,..._A,...SA]);function gc(e){return EA.has(e)}var pb=e=>!gc(e);function IA(e){!e||(pb=t=>t.startsWith("on")?!gc(t):e(t))}try{IA(db().default)}catch(e){}function hb(e,t,r){let n={};for(let o in e)(pb(o)||r===!0&&gc(o)||!t&&!gc(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}d();h();p();var yb=he(ye(),1);d();h();p();d();h();p();function mb(e,t,r){return typeof e=="string"?e:Ze.transform(t+r*e)}function gb(e,t,r){let n=mb(t,e.x,e.width),o=mb(r,e.y,e.height);return`${n} ${o}`}d();h();p();var OA={offset:"stroke-dashoffset",array:"stroke-dasharray"},AA={offset:"strokeDashoffset",array:"strokeDasharray"};function vb(e,t,r=1,n=0,o=!0){e.pathLength=1;let i=o?OA:AA;e[i.offset]=Ze.transform(-n);let a=Ze.transform(t),s=Ze.transform(r);e[i.array]=`${a} ${s}`}function hl(e,T,c,v,_){var R=T,{attrX:t,attrY:r,originX:n,originY:o,pathLength:i,pathSpacing:a=1,pathOffset:s=0}=R,l=Ee(R,["attrX","attrY","originX","originY","pathLength","pathSpacing","pathOffset"]);if(dl(e,l,c,_),v){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:O,style:$,dimensions:V}=e;O.transform&&(V&&($.transform=O.transform),delete O.transform),V&&(n!==void 0||o!==void 0||$.transform)&&($.transformOrigin=gb(V,n!==void 0?n:.5,o!==void 0?o:.5)),t!==void 0&&(O.x=t),r!==void 0&&(O.y=r),i!==void 0&&vb(O,i,a,s,!1)}d();h();p();var cd=()=>Ae(se({},pl()),{attrs:{}});d();h();p();var ml=e=>typeof e=="string"&&e.toLowerCase()==="svg";function wb(e,t,r,n){let o=(0,yb.useMemo)(()=>{let i=cd();return hl(i,t,{enableHardwareAcceleration:!1},ml(n),e.transformTemplate),Ae(se({},i.attrs),{style:se({},i.style)})},[t]);if(e.style){let i={};ev(i,e.style,e),o.style=se(se({},i),o.style)}return o}function _b(e=!1){return(r,n,o,i,{latestValues:a},s)=>{let c=(il(r)?wb:cb)(n,a,s,r),v=hb(n,typeof r=="string",e),_=Ae(se(se({},v),c),{ref:i});return o&&(_["data-projection-id"]=o),(0,xb.createElement)(r,_)}}d();h();p();d();h();p();d();h();p();var fd=e=>e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();d();h();p();function dd(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(let i in r)e.style.setProperty(i,r[i])}d();h();p();var pd=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength"]);function hd(e,t,r,n){dd(e,t,void 0,n);for(let o in t.attrs)e.setAttribute(pd.has(o)?o:fd(o),t.attrs[o])}d();h();p();d();h();p();function gl(e){let{style:t}=e,r={};for(let n in t)(gr(t[n])||rd(n,e))&&(r[n]=t[n]);return r}function md(e){let t=gl(e);for(let r in e)if(gr(e[r])){let n=r==="x"||r==="y"?"attr"+r.toUpperCase():r;t[n]=e[r]}return t}d();h();p();var nv=he(ye(),1);d();h();p();function vl(e,t,r,n={},o={}){return typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"&&(t=t(r!==void 0?r:e.custom,n,o)),t}d();h();p();d();h();p();d();h();p();var Xo=e=>Array.isArray(e);var bb=e=>Boolean(e&&typeof e=="object"&&e.mix&&e.toValue),gd=e=>Xo(e)?e[e.length-1]||0:e;function yl(e){let t=gr(e)?e.get():e;return bb(t)?t.toValue():t}function DA({scrapeMotionValuesFromProps:e,createRenderState:t,onMount:r},n,o,i){let a={latestValues:NA(n,o,i,e),renderState:t()};return r&&(a.mount=s=>r(n,s,a)),a}var vd=e=>(t,r)=>{let n=(0,nv.useContext)(Na),o=(0,nv.useContext)(bo),i=()=>DA(e,t,n,o);return r?i():Li(i)};function NA(e,t,r,n){let o={},i=n(e);for(let T in i)o[T]=yl(i[T]);let{initial:a,animate:s}=e,l=La(e),c=X0(e);t&&c&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let v=r?r.initial===!1:!1;v=v||a===!1;let _=v?s:a;return _&&typeof _!="boolean"&&!Ni(_)&&(Array.isArray(_)?_:[_]).forEach(R=>{let O=vl(e,R);if(!O)return;let N=O,{transitionEnd:$,transition:V}=N,F=Ee(N,["transitionEnd","transition"]);for(let U in F){let q=F[U];if(Array.isArray(q)){let X=v?q.length-1:0;q=q[X]}q!==null&&(o[U]=q)}for(let U in $)o[U]=$[U]}),o}var Sb={useVisualState:vd({scrapeMotionValuesFromProps:md,createRenderState:cd,onMount:(e,t,{renderState:r,latestValues:n})=>{try{r.dimensions=typeof t.getBBox=="function"?t.getBBox():t.getBoundingClientRect()}catch(o){r.dimensions={x:0,y:0,width:0,height:0}}hl(r,n,{enableHardwareAcceleration:!1},ml(t.tagName),e.transformTemplate),hd(t,r)}})};d();h();p();var Mb={useVisualState:vd({scrapeMotionValuesFromProps:gl,createRenderState:pl})};function Eb(e,{forwardMotionProps:t=!1},r,n,o){let i=il(e)?Sb:Mb;return Ae(se({},i),{preloadedFeatures:r,useRender:_b(t),createVisualElement:n,projectionNodeConstructor:o,Component:e})}d();h();p();d();h();p();d();h();p();var bt;(function(e){e.Animate="animate",e.Hover="whileHover",e.Tap="whileTap",e.Drag="whileDrag",e.Focus="whileFocus",e.InView="whileInView",e.Exit="exit"})(bt||(bt={}));d();h();p();var Cb=he(ye(),1);function $a(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function vc(e,t,r,n){(0,Cb.useEffect)(()=>{let o=e.current;if(r&&o)return $a(o,t,r,n)},[e,t,r,n])}function Tb({whileFocus:e,visualElement:t}){let{animationState:r}=t,n=()=>{r&&r.setActive(bt.Focus,!0)},o=()=>{r&&r.setActive(bt.Focus,!1)};vc(t,"focus",e?n:void 0),vc(t,"blur",e?o:void 0)}d();h();p();d();h();p();function yd(e){return typeof PointerEvent<"u"&&e instanceof PointerEvent?e.pointerType==="mouse":e instanceof MouseEvent}function wd(e){return!!e.touches}d();h();p();d();h();p();function FA(e){return t=>{let r=t instanceof MouseEvent;(!r||r&&t.button===0)&&e(t)}}var LA={pageX:0,pageY:0};function BA(e,t="page"){let n=e.touches[0]||e.changedTouches[0]||LA;return{x:n[t+"X"],y:n[t+"Y"]}}function $A(e,t="page"){return{x:e[t+"X"],y:e[t+"Y"]}}function yc(e,t="page"){return{point:wd(e)?BA(e,t):$A(e,t)}}var ov=(e,t=!1)=>{let r=n=>e(n,yc(n));return t?FA(r):r};d();h();p();var kb=()=>Un&&window.onpointerdown===null,Pb=()=>Un&&window.ontouchstart===null,Rb=()=>Un&&window.onmousedown===null;var UA={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},zA={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function Ib(e){return kb()?e:Pb()?zA[e]:Rb()?UA[e]:e}function Yo(e,t,r,n){return $a(e,Ib(t),ov(r,t==="pointerdown"),n)}function Ua(e,t,r,n){return vc(e,Ib(t),r&&ov(r,t==="pointerdown"),n)}d();h();p();function Db(e){let t=null;return()=>{let r=()=>{t=null};return t===null?(t=e,r):!1}}var Ob=Db("dragHorizontal"),Ab=Db("dragVertical");function iv(e){let t=!1;if(e==="y")t=Ab();else if(e==="x")t=Ob();else{let r=Ob(),n=Ab();r&&n?t=()=>{r(),n()}:(r&&r(),n&&n())}return t}function xd(){let e=iv(!0);return e?(e(),!1):!0}function Nb(e,t,r){return(n,o)=>{!yd(n)||xd()||(e.animationState&&e.animationState.setActive(bt.Hover,t),r&&r(n,o))}}function Fb({onHoverStart:e,onHoverEnd:t,whileHover:r,visualElement:n}){Ua(n,"pointerenter",e||r?Nb(n,!0,e):void 0,{passive:!e}),Ua(n,"pointerleave",t||r?Nb(n,!1,t):void 0,{passive:!t})}d();h();p();var sv=he(ye(),1);d();h();p();var av=(e,t)=>t?e===t?!0:av(e,t.parentElement):!1;d();h();p();var Lb=he(ye(),1);function wl(e){return(0,Lb.useEffect)(()=>()=>e(),[])}d();h();p();var VA=(e,t)=>r=>t(e(r)),zi=(...e)=>e.reduce(VA);function Bb({onTap:e,onTapStart:t,onTapCancel:r,whileTap:n,visualElement:o}){let i=e||t||r||n,a=(0,sv.useRef)(!1),s=(0,sv.useRef)(null),l={passive:!(t||e||r||R)};function c(){s.current&&s.current(),s.current=null}function v(){return c(),a.current=!1,o.animationState&&o.animationState.setActive(bt.Tap,!1),!xd()}function _(O,$){!v()||(av(o.current,O.target)?e&&e(O,$):r&&r(O,$))}function T(O,$){!v()||r&&r(O,$)}function R(O,$){c(),!a.current&&(a.current=!0,s.current=zi(Yo(window,"pointerup",_,l),Yo(window,"pointercancel",T,l)),o.animationState&&o.animationState.setActive(bt.Tap,!0),t&&t(O,$))}Ua(o,"pointerdown",i?R:void 0,l),wl(c)}d();h();p();d();h();p();var jA="production",xl=typeof process>"u"||process.env===void 0?jA:"production";var wc=he(ye(),1);d();h();p();var $b=new Set;function _d(e,t,r){e||$b.has(t)||(console.warn(t),r&&console.warn(r),$b.add(t))}d();h();p();var uv=new WeakMap,lv=new WeakMap,HA=e=>{let t=uv.get(e.target);t&&t(e)},GA=e=>{e.forEach(HA)};function WA(r){var n=r,{root:e}=n,t=Ee(n,["root"]);let o=e||document;lv.has(o)||lv.set(o,{});let i=lv.get(o),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(GA,se({root:e},t))),i[a]}function Ub(e,t,r){let n=WA(t);return uv.set(e,r),n.observe(e),()=>{uv.delete(e),n.unobserve(e)}}function zb({visualElement:e,whileInView:t,onViewportEnter:r,onViewportLeave:n,viewport:o={}}){let i=(0,wc.useRef)({hasEnteredView:!1,isInView:!1}),a=Boolean(t||r||n);o.once&&i.current.hasEnteredView&&(a=!1),(typeof IntersectionObserver>"u"?QA:qA)(a,i.current,e,o)}var ZA={some:0,all:1};function qA(e,t,r,{root:n,margin:o,amount:i="some",once:a}){(0,wc.useEffect)(()=>{if(!e||!r.current)return;let s={root:n==null?void 0:n.current,rootMargin:o,threshold:typeof i=="number"?i:ZA[i]},l=c=>{let{isIntersecting:v}=c;if(t.isInView===v||(t.isInView=v,a&&!v&&t.hasEnteredView))return;v&&(t.hasEnteredView=!0),r.animationState&&r.animationState.setActive(bt.InView,v);let _=r.getProps(),T=v?_.onViewportEnter:_.onViewportLeave;T&&T(c)};return Ub(r.current,s,l)},[e,n,o,i])}function QA(e,t,r,{fallback:n=!0}){(0,wc.useEffect)(()=>{!e||!n||(xl!=="production"&&_d(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{t.hasEnteredView=!0;let{onViewportEnter:o}=r.getProps();o&&o(null),r.animationState&&r.animationState.setActive(bt.InView,!0)}))},[e])}d();h();p();var ao=e=>t=>(e(t),null);var Vb={inView:ao(zb),tap:ao(Bb),focus:ao(Tb),hover:ao(Fb)};d();h();p();var Mc=he(ye(),1);d();h();p();var _l=he(ye(),1);function bd(){let e=(0,_l.useContext)(bo);if(e===null)return[!0,null];let{isPresent:t,onExitComplete:r,register:n}=e,o=(0,_l.useId)();return(0,_l.useEffect)(()=>n(o),[]),!t&&r?[!1,()=>r&&r(o)]:[!0]}d();h();p();d();h();p();function cv(e,t){if(!Array.isArray(t))return!1;let r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}d();h();p();d();h();p();d();h();p();var bl=e=>e*1e3;d();h();p();d();h();p();var za=function(){},_r=function(){};d();h();p();d();h();p();var Sl=e=>e;var jb=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e,JA=1e-7,KA=12;function XA(e,t,r,n,o){let i,a,s=0;do a=t+(r-t)/2,i=jb(a,n,o)-e,i>0?r=a:t=a;while(Math.abs(i)>JA&&++s<KA);return a}function Hb(e,t,r,n){if(e===t&&r===n)return Sl;let o=i=>XA(i,0,1,e,r);return i=>i===0||i===1?i:jb(o(i),t,n)}d();h();p();d();h();p();var Ml=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2;d();h();p();var El=e=>t=>1-e(1-t);var Sd=e=>e*e,Gb=El(Sd),Md=Ml(Sd);d();h();p();var fv=e=>1-Math.sin(Math.acos(e)),xc=El(fv),Wb=Ml(xc);d();h();p();var dv=(e=1.525)=>t=>t*t*((e+1)*t-e),Ed=dv(),Zb=El(Ed),qb=Ml(Ed);d();h();p();var YA=e=>{let t=dv(e);return r=>(r*=2)<1?.5*t(r):.5*(2-Math.pow(2,-10*(r-1)))},Qb=YA();var Jb={linear:Sl,easeIn:Sd,easeInOut:Md,easeOut:Gb,circIn:fv,circInOut:Wb,circOut:xc,backIn:Ed,backInOut:qb,backOut:Zb,anticipate:Qb},pv=e=>{if(Array.isArray(e)){_r(e.length===4,"Cubic bezier arrays must contain four numerical values.");let[t,r,n,o]=e;return Hb(t,r,n,o)}else if(typeof e=="string")return _r(Jb[e]!==void 0,`Invalid easing type '${e}'`),Jb[e];return e},Kb=e=>Array.isArray(e)&&typeof e[0]!="number";d();h();p();var hv=(e,t)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&xr.test(t)&&!t.startsWith("url("));d();h();p();var Va=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),Cd=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mv=()=>({type:"keyframes",ease:"linear",duration:.3}),eD=e=>({type:"keyframes",duration:.8,values:e}),Xb={x:Va,y:Va,z:Va,rotate:Va,rotateX:Va,rotateY:Va,rotateZ:Va,scaleX:Cd,scaleY:Cd,scale:Cd,opacity:mv,backgroundColor:mv,color:mv,default:Cd},Yb=(e,t)=>{let r;return Xo(t)?r=eD:r=Xb[e]||Xb.default,se({to:t},r(t))};d();h();p();d();h();p();var tD=Ae(se({},ud),{color:Kt,backgroundColor:Kt,outlineColor:Kt,fill:Kt,stroke:Kt,borderColor:Kt,borderTopColor:Kt,borderRightColor:Kt,borderBottomColor:Kt,borderLeftColor:Kt,filter:fl,WebkitFilter:fl}),Cl=e=>tD[e];function _c(e,t){var r;let n=Cl(e);return n!==fl&&(n=xr),(r=n.getAnimatableNone)===null||r===void 0?void 0:r.call(n,t)}d();h();p();var eS={current:!1};d();h();p();d();h();p();d();h();p();var gv=16.666666666666668,rD=typeof performance<"u"?()=>performance.now():()=>Date.now(),vv=typeof window<"u"?e=>window.requestAnimationFrame(e):e=>setTimeout(()=>e(rD()),gv);d();h();p();function tS(e){let t=[],r=[],n=0,o=!1,i=!1,a=new WeakSet,s={schedule:(l,c=!1,v=!1)=>{let _=v&&o,T=_?t:r;return c&&a.add(l),T.indexOf(l)===-1&&(T.push(l),_&&o&&(n=t.length)),l},cancel:l=>{let c=r.indexOf(l);c!==-1&&r.splice(c,1),a.delete(l)},process:l=>{if(o){i=!0;return}if(o=!0,[t,r]=[r,t],r.length=0,n=t.length,n)for(let c=0;c<n;c++){let v=t[c];v(l),a.has(v)&&(s.schedule(v),e())}o=!1,i&&(i=!1,s.process(l))}};return s}var nD=40,yv=!0,bc=!1,wv=!1,Tl={delta:0,timestamp:0},Sc=["read","update","preRender","render","postRender"],Td=Sc.reduce((e,t)=>(e[t]=tS(()=>bc=!0),e),{}),oD=Sc.reduce((e,t)=>{let r=Td[t];return e[t]=(n,o=!1,i=!1)=>(bc||aD(),r.schedule(n,o,i)),e},{}),yn=Sc.reduce((e,t)=>(e[t]=Td[t].cancel,e),{}),kd=Sc.reduce((e,t)=>(e[t]=()=>Td[t].process(Tl),e),{}),iD=e=>Td[e].process(Tl),rS=e=>{bc=!1,Tl.delta=yv?gv:Math.max(Math.min(e-Tl.timestamp,nD),1),Tl.timestamp=e,wv=!0,Sc.forEach(iD),wv=!1,bc&&(yv=!1,vv(rS))},aD=()=>{bc=!0,yv=!0,wv||vv(rS)},ja=()=>Tl,rr=oD;function Pd(e,t){let r=performance.now(),n=({timestamp:o})=>{let i=o-r;i>=t&&(yn.read(n),e(i-t))};return rr.read(n,!0),()=>yn.read(n)}d();h();p();d();h();p();d();h();p();d();h();p();d();h();p();var Ha=(e,t,r)=>Math.min(Math.max(r,e),t);d();h();p();var St=(e,t,r)=>-r*e+r*t+e;d();h();p();d();h();p();function xv(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+(t-e)*6*r:r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function nS({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,t/=100,r/=100;let o=0,i=0,a=0;if(!t)o=i=a=r;else{let s=r<.5?r*(1+t):r+t-r*t,l=2*r-s;o=xv(l,s,e+1/3),i=xv(l,s,e),a=xv(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:n}}var _v=(e,t,r)=>{let n=e*e;return Math.sqrt(Math.max(0,r*(t*t-n)+n))},sD=[cl,io,Ko],lD=e=>sD.find(t=>t.test(e));function oS(e){let t=lD(e);_r(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`);let r=t.parse(e);return t===Ko&&(r=nS(r)),r}var Rd=(e,t)=>{let r=oS(e),n=oS(t),o=se({},r);return i=>(o.red=_v(r.red,n.red,i),o.green=_v(r.green,n.green,i),o.blue=_v(r.blue,n.blue,i),o.alpha=St(r.alpha,n.alpha,i),io.transform(o))};d();h();p();function aS(e,t){return typeof e=="number"?r=>St(e,t,r):Kt.test(e)?Rd(e,t):Sv(e,t)}var bv=(e,t)=>{let r=[...e],n=r.length,o=e.map((i,a)=>aS(i,t[a]));return i=>{for(let a=0;a<n;a++)r[a]=o[a](i);return r}},sS=(e,t)=>{let r=se(se({},e),t),n={};for(let o in r)e[o]!==void 0&&t[o]!==void 0&&(n[o]=aS(e[o],t[o]));return o=>{for(let i in n)r[i]=n[i](o);return r}};function iS(e){let t=xr.parse(e),r=t.length,n=0,o=0;for(let i=0;i<r;i++)n||typeof t[i]=="number"?n++:o++;return{parsed:t,numNumbers:n,numColors:o}}var Sv=(e,t)=>{let r=xr.createTransformer(t),n=iS(e),o=iS(t);return n.numColors===o.numColors&&n.numNumbers>=o.numNumbers?zi(bv(n.parsed,o.parsed),r):(za(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),a=>`${a>0?t:e}`)};d();h();p();var Ga=(e,t,r)=>{let n=t-e;return n===0?1:(r-e)/n};var lS=(e,t)=>r=>St(e,t,r);function uD(e){return typeof e=="number"?lS:typeof e=="string"?Kt.test(e)?Rd:Sv:Array.isArray(e)?bv:typeof e=="object"?sS:lS}function cD(e,t,r){let n=[],o=r||uD(e[0]),i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){let l=Array.isArray(t)?t[a]:t;s=zi(l,s)}n.push(s)}return n}function Id(e,t,{clamp:r=!0,ease:n,mixer:o}={}){let i=e.length;_r(i===t.length,"Both input and output ranges must be the same length"),_r(!n||!Array.isArray(n)||n.length===i-1,"Array of easing functions must be of length `input.length - 1`, as it applies to the transitions **between** the defined values."),e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());let a=cD(t,n,o),s=a.length,l=c=>{let v=0;if(s>1)for(;v<e.length-2&&!(c<e[v+1]);v++);let _=Ga(e[v],e[v+1],c);return a[v](_)};return r?c=>l(Ha(e[0],e[i-1],c)):l}function fD(e,t){return e.map(()=>t||Md).splice(0,e.length-1)}function dD(e){let t=e.length;return e.map((r,n)=>n!==0?n/(t-1):0)}function pD(e,t){return e.map(r=>r*t)}function uS({from:e=0,to:t=1,ease:r,offset:n,duration:o=300}){let i={done:!1,value:e},a=Array.isArray(t)?t:[e,t],s=pD(n&&n.length===a.length?n:dD(a),o);function l(){return Id(s,a,{ease:Array.isArray(r)?r:fD(a,r)})}let c=l();return{next:v=>(i.value=c(v),i.done=v>=o,i),flipTarget:()=>{a.reverse(),c=l()}}}d();h();p();d();h();p();var Mv=.001,hD=.01,cS=10,mD=.05,gD=1;function fS({duration:e=800,bounce:t=.25,velocity:r=0,mass:n=1}){let o,i;za(e<=cS*1e3,"Spring duration must be 10 seconds or less");let a=1-t;a=Ha(mD,gD,a),e=Ha(hD,cS,e/1e3),a<1?(o=c=>{let v=c*a,_=v*e,T=v-r,R=Od(c,a),O=Math.exp(-_);return Mv-T/R*O},i=c=>{let _=c*a*e,T=_*r+r,R=Math.pow(a,2)*Math.pow(c,2)*e,O=Math.exp(-_),$=Od(Math.pow(c,2),a);return(-o(c)+Mv>0?-1:1)*((T-R)*O)/$}):(o=c=>{let v=Math.exp(-c*e),_=(c-r)*e+1;return-Mv+v*_},i=c=>{let v=Math.exp(-c*e),_=(r-c)*(e*e);return v*_});let s=5/e,l=yD(o,i,s);if(e=e*1e3,isNaN(l))return{stiffness:100,damping:10,duration:e};{let c=Math.pow(l,2)*n;return{stiffness:c,damping:a*2*Math.sqrt(n*c),duration:e}}}var vD=12;function yD(e,t,r){let n=r;for(let o=1;o<vD;o++)n=n-e(n)/t(n);return n}function Od(e,t){return e*Math.sqrt(1-t*t)}var wD=["duration","bounce"],xD=["stiffness","damping","mass"];function dS(e,t){return t.some(r=>e[r]!==void 0)}function _D(e){let t=se({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!dS(e,xD)&&dS(e,wD)){let r=fS(e);t=Ae(se(se({},t),r),{velocity:0,mass:1}),t.isResolvedFromDuration=!0}return t}function Ev(i){var a=i,{from:e=0,to:t=1,restSpeed:r=2,restDelta:n=.01}=a,o=Ee(a,["from","to","restSpeed","restDelta"]);let s={done:!1,value:e},{stiffness:l,damping:c,mass:v,velocity:_,duration:T,isResolvedFromDuration:R}=_D(o),O=pS,$=pS;function V(){let F=_?-(_/1e3):0,N=t-e,U=c/(2*Math.sqrt(l*v)),q=Math.sqrt(l/v)/1e3;if(n===void 0&&(n=Math.min(Math.abs(t-e)/100,.4)),U<1){let X=Od(q,U);O=ue=>{let ie=Math.exp(-U*q*ue);return t-ie*((F+U*q*N)/X*Math.sin(X*ue)+N*Math.cos(X*ue))},$=ue=>{let ie=Math.exp(-U*q*ue);return U*q*ie*(Math.sin(X*ue)*(F+U*q*N)/X+N*Math.cos(X*ue))-ie*(Math.cos(X*ue)*(F+U*q*N)-X*N*Math.sin(X*ue))}}else if(U===1)O=X=>t-Math.exp(-q*X)*(N+(F+q*N)*X);else{let X=q*Math.sqrt(U*U-1);O=ue=>{let ie=Math.exp(-U*q*ue),ve=Math.min(X*ue,300);return t-ie*((F+U*q*N)*Math.sinh(ve)+X*N*Math.cosh(ve))/X}}}return V(),{next:F=>{let N=O(F);if(R)s.done=F>=T;else{let U=$(F)*1e3,q=Math.abs(U)<=r,X=Math.abs(t-N)<=n;s.done=q&&X}return s.value=s.done?t:N,s},flipTarget:()=>{_=-_,[e,t]=[t,e],V()}}}Ev.needsInterpolation=(e,t)=>typeof e=="string"||typeof t=="string";var pS=e=>0;d();h();p();function hS({velocity:e=0,from:t=0,power:r=.8,timeConstant:n=350,restDelta:o=.5,modifyTarget:i}){let a={done:!1,value:t},s=r*e,l=t+s,c=i===void 0?l:i(l);return c!==l&&(s=c-t),{next:v=>{let _=-s*Math.exp(-v/n);return a.done=!(_>o||_<-o),a.value=a.done?c:c+_,a},flipTarget:()=>{}}}var bD={decay:hS,keyframes:uS,spring:Ev};function mS(e,t,r=0){return e-t-r}function SD(e,t=0,r=0,n=!0){return n?mS(t+-e,t,r):t-(e-t)+r}function MD(e,t,r,n){return n?e>=t+r:e<=-r}var ED=e=>{let t=({delta:r})=>e(r);return{start:()=>rr.update(t,!0),stop:()=>yn.update(t)}};function Ad(O){var $=O,{from:e,autoplay:t=!0,driver:r=ED,elapsed:n=0,repeat:o=0,repeatType:i="loop",repeatDelay:a=0,onPlay:s,onStop:l,onComplete:c,onRepeat:v,onUpdate:_,type:T="keyframes"}=$,R=Ee($,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate","type"]);var V,F;let{to:N}=R,U,q=0,X=R.duration,ue,ie=!1,ve=!0,Z,w=bD[Array.isArray(N)?"keyframes":T];!((F=(V=w).needsInterpolation)===null||F===void 0)&&F.call(V,e,N)&&(Z=Id([0,100],[e,N],{clamp:!1}),e=0,N=100);let k=w(Ae(se({},R),{from:e,to:N}));function I(){q++,i==="reverse"?(ve=q%2===0,n=SD(n,X,a,ve)):(n=mS(n,X,a),i==="mirror"&&k.flipTarget()),ie=!1,v&&v()}function b(){U.stop(),c&&c()}function u(y){if(ve||(y=-y),n+=y,!ie){let x=k.next(Math.max(0,n));ue=x.value,Z&&(ue=Z(ue)),ie=ve?x.done:n<=0}_==null||_(ue),ie&&(q===0&&(X!=null||(X=n)),q<o?MD(n,X,a,ve)&&I():b())}function m(){s==null||s(),U=r(u),U.start()}return t&&m(),{stop:()=>{l==null||l(),U.stop()}}}d();h();p();function Dd(e,t){return t?e*(1e3/t):0}function gS({from:e=0,velocity:t=0,min:r,max:n,power:o=.8,timeConstant:i=750,bounceStiffness:a=500,bounceDamping:s=10,restDelta:l=1,modifyTarget:c,driver:v,onUpdate:_,onComplete:T,onStop:R}){let O;function $(U){return r!==void 0&&U<r||n!==void 0&&U>n}function V(U){return r===void 0?n:n===void 0||Math.abs(r-U)<Math.abs(n-U)?r:n}function F(U){O==null||O.stop(),O=Ad(Ae(se({},U),{driver:v,onUpdate:q=>{var X;_==null||_(q),(X=U.onUpdate)===null||X===void 0||X.call(U,q)},onComplete:T,onStop:R}))}function N(U){F(se({type:"spring",stiffness:a,damping:s,restDelta:l},U))}if($(e))N({from:e,velocity:t,to:V(e)});else{let U=o*t+e;typeof c<"u"&&(U=c(U));let q=V(U),X=q===r?-1:1,ue,ie,ve=Z=>{ue=ie,ie=Z,t=Dd(Z-ue,ja().delta),(X===1&&Z>q||X===-1&&Z<q)&&N({from:Z,to:q,velocity:t})};F({type:"decay",from:e,velocity:t,timeConstant:i,power:o,restDelta:l,modifyTarget:c,onUpdate:$(U)?ve:void 0})}return{stop:()=>O==null?void 0:O.stop()}}function CD(v){var _=v,{when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l}=_,c=Ee(_,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(c).length}var vS=!1;function TD(a){var s=a,{ease:e,times:t,yoyo:r,flip:n,loop:o}=s,i=Ee(s,["ease","times","yoyo","flip","loop"]);let l=se({},i);return t&&(l.offset=t),i.duration&&(l.duration=bl(i.duration)),i.repeatDelay&&(l.repeatDelay=bl(i.repeatDelay)),e&&(l.ease=Kb(e)?e.map(pv):pv(e)),i.type==="tween"&&(l.type="keyframes"),(r||o||n)&&(za(!vS,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),vS=!0,r?l.repeatType="reverse":o?l.repeatType="loop":n&&(l.repeatType="mirror"),l.repeat=o||r||n||i.repeat),i.type!=="spring"&&(l.type="keyframes"),l}function kD(e,t){var r,n;return(n=(r=(Nd(e,t)||{}).delay)!==null&&r!==void 0?r:e.delay)!==null&&n!==void 0?n:0}function PD(e){return Array.isArray(e.to)&&e.to[0]===null&&(e.to=[...e.to],e.to[0]=e.from),e}function RD(e,t,r){return Array.isArray(t.to)&&e.duration===void 0&&(e.duration=.8),PD(t),CD(e)||(e=se(se({},e),Yb(r,t.to))),se(se({},t),TD(e))}function ID(e,t,r,n,o){let i=Nd(n,e)||{},a=i.from!==void 0?i.from:t.get(),s=hv(e,r);a==="none"&&s&&typeof r=="string"?a=_c(e,r):yS(a)&&typeof r=="string"?a=wS(r):!Array.isArray(r)&&yS(r)&&typeof a=="string"&&(r=wS(a));let l=hv(e,a);za(l===s,`You are trying to animate ${e} from "${a}" to "${r}". ${a} is not an animatable value - to enable this animation set ${a} to a value animatable to ${r} via the \`style\` property.`);function c(){let _={from:a,to:r,velocity:t.getVelocity(),onComplete:o,onUpdate:T=>t.set(T)};return i.type==="inertia"||i.type==="decay"?gS(se(se({},_),i)):Ad(Ae(se({},RD(i,_,e)),{onUpdate:T=>{_.onUpdate(T),i.onUpdate&&i.onUpdate(T)},onComplete:()=>{_.onComplete(),i.onComplete&&i.onComplete()}}))}function v(){let _=gd(r);return t.set(_),o(),i.onUpdate&&i.onUpdate(_),i.onComplete&&i.onComplete(),{stop:()=>{}}}return!l||!s||i.type===!1?v:c}function yS(e){return e===0||typeof e=="string"&&parseFloat(e)===0&&e.indexOf(" ")===-1}function wS(e){return typeof e=="number"?0:_c("",e)}function Nd(e,t){return e[t]||e.default||e}function kl(e,t,r,n={}){return eS.current&&(n={type:!1}),t.start(o=>{let i,a=ID(e,t,r,n,o),s=kD(n,e),l=()=>i=a(),c;return s?c=Pd(l,bl(s)):l(),()=>{c&&c(),i&&i.stop()}})}d();h();p();d();h();p();var xS=e=>/^\-?\d*\.?\d+$/.test(e);d();h();p();var _S=e=>/^0[^.\s]+$/.test(e);d();h();p();d();h();p();d();h();p();function Pl(e,t){e.indexOf(t)===-1&&e.push(t)}function Rl(e,t){let r=e.indexOf(t);r>-1&&e.splice(r,1)}var So=class{constructor(){this.subscriptions=[]}add(t){return Pl(this.subscriptions,t),()=>Rl(this.subscriptions,t)}notify(t,r,n){let o=this.subscriptions.length;if(!!o)if(o===1)this.subscriptions[0](t,r,n);else for(let i=0;i<o;i++){let a=this.subscriptions[i];a&&a(t,r,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}};var OD=e=>!isNaN(parseFloat(e)),Cv=class{constructor(t){this.version="7.6.19",this.timeDelta=0,this.lastUpdated=0,this.updateSubscribers=new So,this.velocityUpdateSubscribers=new So,this.renderSubscribers=new So,this.canTrackVelocity=!1,this.updateAndNotify=(r,n=!0)=>{this.prev=this.current,this.current=r;let{delta:o,timestamp:i}=ja();this.lastUpdated!==i&&(this.timeDelta=o,this.lastUpdated=i,rr.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.updateSubscribers.notify(this.current),this.velocityUpdateSubscribers.getSize()&&this.velocityUpdateSubscribers.notify(this.getVelocity()),n&&this.renderSubscribers.notify(this.current)},this.scheduleVelocityCheck=()=>rr.postRender(this.velocityCheck),this.velocityCheck=({timestamp:r})=>{r!==this.lastUpdated&&(this.prev=this.current,this.velocityUpdateSubscribers.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=OD(this.current)}onChange(t){return this.updateSubscribers.add(t)}clearListeners(){this.updateSubscribers.clear()}onRenderRequest(t){return t(this.get()),this.renderSubscribers.add(t)}attach(t){this.passiveEffect=t}set(t,r=!0){!r||!this.passiveEffect?this.updateAndNotify(t,r):this.passiveEffect(t,this.updateAndNotify)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Dd(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(r=>{this.hasAnimated=!0,this.stopAnimation=t(r)}).then(()=>this.clearAnimation())}stop(){this.stopAnimation&&this.stopAnimation(),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.updateSubscribers.clear(),this.renderSubscribers.clear(),this.stop()}};function Mo(e){return new Cv(e)}d();h();p();d();h();p();d();h();p();var Fd=e=>t=>t.test(e);d();h();p();var bS={test:e=>e==="auto",parse:e=>e};var Tv=[vn,Ze,Or,oo,Xg,Kg,bS],Il=e=>Tv.find(Fd(e));var AD=[...Tv,Kt,xr],SS=e=>AD.find(Fd(e));d();h();p();function DD(e){let t={};return e.values.forEach((r,n)=>t[n]=r.get()),t}function ND(e){let t={};return e.values.forEach((r,n)=>t[n]=r.getVelocity()),t}function Wa(e,t,r){let n=e.getProps();return vl(n,t,r!==void 0?r:n.custom,DD(e),ND(e))}function FD(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,Mo(r))}function MS(e,t){let r=Wa(e,t),a=r?e.makeTargetAnimatable(r,!1):{},{transitionEnd:n={},transition:o={}}=a,i=Ee(a,["transitionEnd","transition"]);i=se(se({},i),n);for(let s in i){let l=gd(i[s]);FD(e,s,l)}}function ES(e,t,r){var n,o;let i=Object.keys(t).filter(s=>!e.hasValue(s)),a=i.length;if(!!a)for(let s=0;s<a;s++){let l=i[s],c=t[l],v=null;Array.isArray(c)&&(v=c[0]),v===null&&(v=(o=(n=r[l])!==null&&n!==void 0?n:e.readValue(l))!==null&&o!==void 0?o:t[l]),v!=null&&(typeof v=="string"&&(xS(v)||_S(v))?v=parseFloat(v):!SS(v)&&xr.test(c)&&(v=_c(l,c)),e.addValue(l,Mo(v)),r[l]===void 0&&(r[l]=v),v!==null&&e.setBaseTarget(l,v))}}function LD(e,t){return t?(t[e]||t.default||t).from:void 0}function CS(e,t,r){var n;let o={};for(let i in e){let a=LD(i,t);o[i]=a!==void 0?a:(n=r.getValue(i))===null||n===void 0?void 0:n.get()}return o}d();h();p();function Za(e){return Boolean(gr(e)&&e.add)}function TS(e,t,r={}){e.notify("AnimationStart",t);let n;if(Array.isArray(t)){let o=t.map(i=>kv(e,i,r));n=Promise.all(o)}else if(typeof t=="string")n=kv(e,t,r);else{let o=typeof t=="function"?Wa(e,t,r.custom):t;n=kS(e,o,r)}return n.then(()=>e.notify("AnimationComplete",t))}function kv(e,t,r={}){var n;let o=Wa(e,t,r.custom),{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);let a=o?()=>kS(e,o,r):()=>Promise.resolve(),s=!((n=e.variantChildren)===null||n===void 0)&&n.size?(c=0)=>{let{delayChildren:v=0,staggerChildren:_,staggerDirection:T}=i;return BD(e,t,v+c,_,T,r)}:()=>Promise.resolve(),{when:l}=i;if(l){let[c,v]=l==="beforeChildren"?[a,s]:[s,a];return c().then(v)}else return Promise.all([a(),s(r.delay)])}function kS(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let T=e.makeTargetAnimatable(t),{transition:a=e.getDefaultTransition(),transitionEnd:s}=T,l=Ee(T,["transition","transitionEnd"]),c=e.getValue("willChange");n&&(a=n);let v=[],_=o&&((i=e.animationState)===null||i===void 0?void 0:i.getState()[o]);for(let R in l){let O=e.getValue(R),$=l[R];if(!O||$===void 0||_&&UD(_,R))continue;let V=se({delay:r},a);e.shouldReduceMotion&&zn.has(R)&&(V=Ae(se({},V),{type:!1,delay:0}));let F=kl(R,O,$,V);Za(c)&&(c.add(R),F=F.then(()=>c.remove(R))),v.push(F)}return Promise.all(v).then(()=>{s&&MS(e,s)})}function BD(e,t,r=0,n=0,o=1,i){let a=[],s=(e.variantChildren.size-1)*n,l=o===1?(c=0)=>c*n:(c=0)=>s-c*n;return Array.from(e.variantChildren).sort($D).forEach((c,v)=>{a.push(kv(c,t,Ae(se({},i),{delay:r+l(v)})).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(a)}function $D(e,t){return e.sortNodePosition(t)}function UD({protectedKeys:e,needsAnimating:t},r){let n=e.hasOwnProperty(r)&&t[r]!==!0;return t[r]=!1,n}var Ld=[bt.Animate,bt.InView,bt.Focus,bt.Hover,bt.Tap,bt.Drag,bt.Exit],zD=[...Ld].reverse(),VD=Ld.length;function jD(e){return t=>Promise.all(t.map(({animation:r,options:n})=>TS(e,r,n)))}function PS(e){let t=jD(e),r=GD(),n=!0,o=(l,c)=>{let v=Wa(e,c);if(v){let _=v,{transition:T,transitionEnd:R}=_,O=Ee(_,["transition","transitionEnd"]);l=se(se(se({},l),O),R)}return l};function i(l){t=l(e)}function a(l,c){var v;let _=e.getProps(),T=e.getVariantContext(!0)||{},R=[],O=new Set,$={},V=1/0;for(let N=0;N<VD;N++){let U=zD[N],q=r[U],X=(v=_[U])!==null&&v!==void 0?v:T[U],ue=Zo(X),ie=U===c?q.isActive:null;ie===!1&&(V=N);let ve=X===T[U]&&X!==_[U]&&ue;if(ve&&n&&e.manuallyAnimateOnMount&&(ve=!1),q.protectedKeys=se({},$),!q.isActive&&ie===null||!X&&!q.prevProp||Ni(X)||typeof X=="boolean")continue;let Z=HD(q.prevProp,X),w=Z||U===c&&q.isActive&&!ve&&ue||N>V&&ue,k=Array.isArray(X)?X:[X],I=k.reduce(o,{});ie===!1&&(I={});let{prevResolvedValues:b={}}=q,u=se(se({},b),I),m=y=>{w=!0,O.delete(y),q.needsAnimating[y]=!0};for(let y in u){let x=I[y],f=b[y];$.hasOwnProperty(y)||(x!==f?Xo(x)&&Xo(f)?!cv(x,f)||Z?m(y):q.protectedKeys[y]=!0:x!==void 0?m(y):O.add(y):x!==void 0&&O.has(y)?m(y):q.protectedKeys[y]=!0)}q.prevProp=X,q.prevResolvedValues=I,q.isActive&&($=se(se({},$),I)),n&&e.blockInitialAnimation&&(w=!1),w&&!ve&&R.push(...k.map(y=>({animation:y,options:se({type:U},l)})))}if(O.size){let N={};O.forEach(U=>{let q=e.getBaseTarget(U);q!==void 0&&(N[U]=q)}),R.push({animation:N})}let F=Boolean(R.length);return n&&_.initial===!1&&!e.manuallyAnimateOnMount&&(F=!1),n=!1,F?t(R):Promise.resolve()}function s(l,c,v){var _;if(r[l].isActive===c)return Promise.resolve();(_=e.variantChildren)===null||_===void 0||_.forEach(R=>{var O;return(O=R.animationState)===null||O===void 0?void 0:O.setActive(l,c)}),r[l].isActive=c;let T=a(v,l);for(let R in r)r[R].protectedKeys={};return T}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>r}}function HD(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!cv(t,e):!1}function qa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function GD(){return{[bt.Animate]:qa(!0),[bt.InView]:qa(),[bt.Hover]:qa(),[bt.Tap]:qa(),[bt.Drag]:qa(),[bt.Focus]:qa(),[bt.Exit]:qa()}}var RS={animation:ao(({visualElement:e,animate:t})=>{e.animationState||(e.animationState=PS(e)),Ni(t)&&(0,Mc.useEffect)(()=>t.subscribe(e),[t])}),exit:ao(e=>{let{custom:t,visualElement:r}=e,[n,o]=bd(),i=(0,Mc.useContext)(bo);(0,Mc.useEffect)(()=>{r.isPresent=n;let a=r.animationState&&r.animationState.setActive(bt.Exit,!n,{custom:i&&i.custom||t});a&&!n&&a.then(o)},[n])})};d();h();p();d();h();p();var Fv=he(ye(),1);d();h();p();d();h();p();d();h();p();var IS=(e,t)=>Math.abs(e-t);function OS(e,t){let r=IS(e.x,t.x),n=IS(e.y,t.y);return Math.sqrt(r**2+n**2)}var Ol=class{constructor(t,r,{transformPagePoint:n}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let c=Rv(this.lastMoveEventInfo,this.history),v=this.startEvent!==null,_=OS(c.offset,{x:0,y:0})>=3;if(!v&&!_)return;let{point:T}=c,{timestamp:R}=ja();this.history.push(Ae(se({},T),{timestamp:R}));let{onStart:O,onMove:$}=this.handlers;v||(O&&O(this.lastMoveEvent,c),this.startEvent=this.lastMoveEvent),$&&$(this.lastMoveEvent,c)},this.handlePointerMove=(c,v)=>{if(this.lastMoveEvent=c,this.lastMoveEventInfo=Pv(v,this.transformPagePoint),yd(c)&&c.buttons===0){this.handlePointerUp(c,v);return}rr.update(this.updatePoint,!0)},this.handlePointerUp=(c,v)=>{this.end();let{onEnd:_,onSessionEnd:T}=this.handlers,R=Rv(Pv(v,this.transformPagePoint),this.history);this.startEvent&&_&&_(c,R),T&&T(c,R)},wd(t)&&t.touches.length>1)return;this.handlers=r,this.transformPagePoint=n;let o=yc(t),i=Pv(o,this.transformPagePoint),{point:a}=i,{timestamp:s}=ja();this.history=[Ae(se({},a),{timestamp:s})];let{onSessionStart:l}=r;l&&l(t,Rv(i,this.history)),this.removeListeners=zi(Yo(window,"pointermove",this.handlePointerMove),Yo(window,"pointerup",this.handlePointerUp),Yo(window,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),yn.update(this.updatePoint)}};function Pv(e,t){return t?{point:t(e.point)}:e}function AS(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Rv({point:e},t){return{point:e,delta:AS(e,DS(t)),offset:AS(e,WD(t)),velocity:ZD(t,.1)}}function WD(e){return e[0]}function DS(e){return e[e.length-1]}function ZD(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null,o=DS(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>bl(t)));)r--;if(!n)return{x:0,y:0};let i=(o.timestamp-n.timestamp)/1e3;if(i===0)return{x:0,y:0};let a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}d();h();p();d();h();p();function br(e){return e.max-e.min}function Bd(e,t=0,r=.01){return Math.abs(e-t)<=r}function NS(e,t,r,n=.5){e.origin=n,e.originPoint=St(t.min,t.max,e.origin),e.scale=br(r)/br(t),(Bd(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=St(r.min,r.max,e.origin)-e.originPoint,(Bd(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Al(e,t,r,n){NS(e.x,t.x,r.x,n==null?void 0:n.originX),NS(e.y,t.y,r.y,n==null?void 0:n.originY)}function FS(e,t,r){e.min=r.min+t.min,e.max=e.min+br(t)}function BS(e,t,r){FS(e.x,t.x,r.x),FS(e.y,t.y,r.y)}function LS(e,t,r){e.min=t.min-r.min,e.max=e.min+br(t)}function Dl(e,t,r){LS(e.x,t.x,r.x),LS(e.y,t.y,r.y)}function jS(e,{min:t,max:r},n){return t!==void 0&&e<t?e=n?St(t,e,n.min):Math.max(e,t):r!==void 0&&e>r&&(e=n?St(r,e,n.max):Math.min(e,r)),e}function $S(e,t,r){return{min:t!==void 0?e.min+t:void 0,max:r!==void 0?e.max+r-(e.max-e.min):void 0}}function HS(e,{top:t,left:r,bottom:n,right:o}){return{x:$S(e.x,r,o),y:$S(e.y,t,n)}}function US(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}function GS(e,t){return{x:US(e.x,t.x),y:US(e.y,t.y)}}function WS(e,t){let r=.5,n=br(e),o=br(t);return o>n?r=Ga(t.min,t.max-n,e.min):n>o&&(r=Ga(e.min,e.max-o,t.min)),Ha(0,1,r)}function ZS(e,t){let r={};return t.min!==void 0&&(r.min=t.min-e.min),t.max!==void 0&&(r.max=t.max-e.min),r}var $d=.35;function qS(e=$d){return e===!1?e=0:e===!0&&(e=$d),{x:zS(e,"left","right"),y:zS(e,"top","bottom")}}function zS(e,t,r){return{min:VS(e,t),max:VS(e,r)}}function VS(e,t){var r;return typeof e=="number"?e:(r=e[t])!==null&&r!==void 0?r:0}d();h();p();var QS=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nl=()=>({x:QS(),y:QS()}),JS=()=>({min:0,max:0}),Gt=()=>({x:JS(),y:JS()});d();h();p();function Vn(e){return[e("x"),e("y")]}d();h();p();d();h();p();function Ud({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function KS({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function XS(e,t){if(!t)return e;let r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}d();h();p();d();h();p();function Iv(e){return e===void 0||e===1}function zd({scale:e,scaleX:t,scaleY:r}){return!Iv(e)||!Iv(t)||!Iv(r)}function ei(e){return zd(e)||Ov(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ov(e){return YS(e.x)||YS(e.y)}function YS(e){return e&&e!=="0%"}function Ec(e,t,r){let n=e-r,o=t*n;return r+o}function e5(e,t,r,n,o){return o!==void 0&&(e=Ec(e,o,n)),Ec(e,r,n)+t}function Av(e,t=0,r=1,n,o){e.min=e5(e.min,t,r,n,o),e.max=e5(e.max,t,r,n,o)}function Dv(e,{x:t,y:r}){Av(e.x,t.translate,t.scale,t.originPoint),Av(e.y,r.translate,r.scale,r.originPoint)}function n5(e,t,r,n=!1){var o,i;let a=r.length;if(!a)return;t.x=t.y=1;let s,l;for(let c=0;c<a;c++)s=r[c],l=s.projectionDelta,((i=(o=s.instance)===null||o===void 0?void 0:o.style)===null||i===void 0?void 0:i.display)!=="contents"&&(n&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Qa(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Dv(e,l)),n&&ei(s.latestValues)&&Qa(e,s.latestValues));t.x=t5(t.x),t.y=t5(t.y)}function t5(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function Eo(e,t){e.min=e.min+t,e.max=e.max+t}function r5(e,t,[r,n,o]){let i=t[o]!==void 0?t[o]:.5,a=St(e.min,e.max,i);Av(e,t[r],t[n],a,t.scale)}var qD=["x","scaleX","originX"],QD=["y","scaleY","originY"];function Qa(e,t){r5(e.x,t,qD),r5(e.y,t,QD)}function Nv(e,t){return Ud(XS(e.getBoundingClientRect(),t))}function o5(e,t,r){let n=Nv(e,r),{scroll:o}=t;return o&&(Eo(n.x,o.offset.x),Eo(n.y,o.offset.y)),n}var JD=new WeakMap,jd=class{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Gt(),this.visualElement=t}start(t,{snapToCursor:r=!1}={}){if(this.visualElement.isPresent===!1)return;let n=s=>{this.stopAnimation(),r&&this.snapToCursor(yc(s,"page").point)},o=(s,l)=>{var c;let{drag:v,dragPropagation:_,onDragStart:T}=this.getProps();v&&!_&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=iv(v),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Vn(R=>{var O,$;let V=this.getAxisMotionValue(R).get()||0;if(Or.test(V)){let F=($=(O=this.visualElement.projection)===null||O===void 0?void 0:O.layout)===null||$===void 0?void 0:$.layoutBox[R];F&&(V=br(F)*(parseFloat(V)/100))}this.originPoint[R]=V}),T==null||T(s,l),(c=this.visualElement.animationState)===null||c===void 0||c.setActive(bt.Drag,!0))},i=(s,l)=>{let{dragPropagation:c,dragDirectionLock:v,onDirectionLock:_,onDrag:T}=this.getProps();if(!c&&!this.openGlobalLock)return;let{offset:R}=l;if(v&&this.currentDirection===null){this.currentDirection=KD(R),this.currentDirection!==null&&(_==null||_(this.currentDirection));return}this.updateAxis("x",l.point,R),this.updateAxis("y",l.point,R),this.visualElement.render(),T==null||T(s,l)},a=(s,l)=>this.stop(s,l);this.panSession=new Ol(t,{onSessionStart:n,onStart:o,onMove:i,onSessionEnd:a},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(t,r){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:o}=r;this.startAnimation(o);let{onDragEnd:i}=this.getProps();i==null||i(t,r)}cancel(){var t,r;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(t=this.panSession)===null||t===void 0||t.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(r=this.visualElement.animationState)===null||r===void 0||r.setActive(bt.Drag,!1)}updateAxis(t,r,n){let{drag:o}=this.getProps();if(!n||!Vd(t,o,this.currentDirection))return;let i=this.getAxisMotionValue(t),a=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(a=jS(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){let{dragConstraints:t,dragElastic:r}=this.getProps(),{layout:n}=this.visualElement.projection||{},o=this.constraints;t&&Wo(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&n?this.constraints=HS(n.layoutBox,t):this.constraints=!1,this.elastic=qS(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&Vn(i=>{this.getAxisMotionValue(i)&&(this.constraints[i]=ZS(n.layoutBox[i],this.constraints[i]))})}resolveRefConstraints(){let{dragConstraints:t,onMeasureDragConstraints:r}=this.getProps();if(!t||!Wo(t))return!1;let n=t.current;_r(n!==null,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:o}=this.visualElement;if(!o||!o.layout)return!1;let i=o5(n,o.root,this.visualElement.getTransformPagePoint()),a=GS(o.layout.layoutBox,i);if(r){let s=r(KS(a));this.hasMutatedConstraints=!!s,s&&(a=Ud(s))}return a}startAnimation(t){let{drag:r,dragMomentum:n,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},c=Vn(v=>{var _;if(!Vd(v,r,this.currentDirection))return;let T=(_=l==null?void 0:l[v])!==null&&_!==void 0?_:{};a&&(T={min:0,max:0});let R=o?200:1e6,O=o?40:1e7,$=se(se({type:"inertia",velocity:n?t[v]:0,bounceStiffness:R,bounceDamping:O,timeConstant:750,restDelta:1,restSpeed:10},i),T);return this.startAxisValueAnimation(v,$)});return Promise.all(c).then(s)}startAxisValueAnimation(t,r){let n=this.getAxisMotionValue(t);return kl(t,n,0,r)}stopAnimation(){Vn(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){var r,n;let o="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[o];return i||this.visualElement.getValue(t,(n=(r=this.visualElement.getProps().initial)===null||r===void 0?void 0:r[t])!==null&&n!==void 0?n:0)}snapToCursor(t){Vn(r=>{let{drag:n}=this.getProps();if(!Vd(r,n,this.currentDirection))return;let{projection:o}=this.visualElement,i=this.getAxisMotionValue(r);if(o&&o.layout){let{min:a,max:s}=o.layout.layoutBox[r];i.set(t[r]-St(a,s,.5))}})}scalePositionWithinConstraints(){var t;if(!this.visualElement.current)return;let{drag:r,dragConstraints:n}=this.getProps(),{projection:o}=this.visualElement;if(!Wo(n)||!o||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};Vn(s=>{let l=this.getAxisMotionValue(s);if(l){let c=l.get();i[s]=WS({min:c,max:c},this.constraints[s])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",(t=o.root)===null||t===void 0||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),Vn(s=>{if(!Vd(s,r,null))return;let l=this.getAxisMotionValue(s),{min:c,max:v}=this.constraints[s];l.set(St(c,v,i[s]))})}addListeners(){var t;if(!this.visualElement.current)return;JD.set(this.visualElement,this);let r=this.visualElement.current,n=Yo(r,"pointerdown",c=>{let{drag:v,dragListener:_=!0}=this.getProps();v&&_&&this.start(c)}),o=()=>{let{dragConstraints:c}=this.getProps();Wo(c)&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",o);i&&!i.layout&&((t=i.root)===null||t===void 0||t.updateScroll(),i.updateLayout()),o();let s=$a(window,"resize",()=>this.scalePositionWithinConstraints()),l=i.addEventListener("didUpdate",({delta:c,hasLayoutChanged:v})=>{this.isDragging&&v&&(Vn(_=>{let T=this.getAxisMotionValue(_);!T||(this.originPoint[_]+=c[_].translate,T.set(T.get()+c[_].translate))}),this.visualElement.render())});return()=>{s(),n(),a(),l==null||l()}}getProps(){let t=this.visualElement.getProps(),{drag:r=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=$d,dragMomentum:s=!0}=t;return Ae(se({},t),{drag:r,dragDirectionLock:n,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s})}};function Vd(e,t,r){return(t===!0||t===e)&&(r===null||r===e)}function KD(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}function i5(e){let{dragControls:t,visualElement:r}=e,n=Li(()=>new jd(r));(0,Fv.useEffect)(()=>t&&t.subscribe(n),[n,t]),(0,Fv.useEffect)(()=>n.addListeners(),[n])}d();h();p();var Fl=he(ye(),1);function a5({onPan:e,onPanStart:t,onPanEnd:r,onPanSessionStart:n,visualElement:o}){let i=e||t||r||n,a=(0,Fl.useRef)(null),{transformPagePoint:s}=(0,Fl.useContext)(nl),l={onSessionStart:n,onStart:t,onMove:e,onEnd:(v,_)=>{a.current=null,r&&r(v,_)}};(0,Fl.useEffect)(()=>{a.current!==null&&a.current.updateHandlers(l)});function c(v){a.current=new Ol(v,l,{transformPagePoint:s})}Ua(o,"pointerdown",i&&c),wl(()=>a.current&&a.current.end())}var s5={pan:ao(a5),drag:ao(i5)};d();h();p();d();h();p();d();h();p();d();h();p();d();h();p();function Lv(e){return typeof e=="string"&&e.startsWith("var(--")}var $v=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function XD(e){let t=$v.exec(e);if(!t)return[,];let[,r,n]=t;return[r,n]}var YD=4;function Bv(e,t,r=1){_r(r<=YD,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);let[n,o]=XD(e);if(!n)return;let i=window.getComputedStyle(t).getPropertyValue(n);return i?i.trim():Lv(o)?Bv(o,t,r+1):o}function l5(e,n,r){var t=Ee(n,[]);let o=e.current;if(!(o instanceof Element))return{target:t,transitionEnd:r};r&&(r=se({},r)),e.values.forEach(i=>{let a=i.get();if(!Lv(a))return;let s=Bv(a,o);s&&i.set(s)});for(let i in t){let a=t[i];if(!Lv(a))continue;let s=Bv(a,o);!s||(t[i]=s,r&&r[i]===void 0&&(r[i]=a))}return{target:t,transitionEnd:r}}d();h();p();var eN=new Set(["width","height","top","left","right","bottom","x","y"]),p5=e=>eN.has(e),tN=e=>Object.keys(e).some(p5),h5=(e,t)=>{e.set(t,!1),e.set(t)},Hd=e=>e===vn||e===Ze,u5;(function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"})(u5||(u5={}));var c5=(e,t)=>parseFloat(e.split(", ")[t]),f5=(e,t)=>(r,{transform:n})=>{if(n==="none"||!n)return 0;let o=n.match(/^matrix3d\((.+)\)$/);if(o)return c5(o[1],t);{let i=n.match(/^matrix\((.+)\)$/);return i?c5(i[1],e):0}},rN=new Set(["x","y","z"]),nN=sl.filter(e=>!rN.has(e));function oN(e){let t=[];return nN.forEach(r=>{let n=e.getValue(r);n!==void 0&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))}),t.length&&e.render(),t}var d5={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:f5(4,13),y:f5(5,14)},iN=(e,t,r)=>{let n=t.measureViewportBox(),o=t.current,i=getComputedStyle(o),{display:a}=i,s={};a==="none"&&t.setStaticValue("display",e.display||"block"),r.forEach(c=>{s[c]=d5[c](n,i)}),t.render();let l=t.measureViewportBox();return r.forEach(c=>{let v=t.getValue(c);h5(v,s[c]),e[c]=d5[c](l,i)}),e},aN=(e,t,r={},n={})=>{t=se({},t),n=se({},n);let o=Object.keys(t).filter(p5),i=[],a=!1,s=[];if(o.forEach(l=>{let c=e.getValue(l);if(!e.hasValue(l))return;let v=r[l],_=Il(v),T=t[l],R;if(Xo(T)){let O=T.length,$=T[0]===null?1:0;v=T[$],_=Il(v);for(let V=$;V<O;V++)R?_r(Il(T[V])===R,"All keyframes must be of the same type"):(R=Il(T[V]),_r(R===_||Hd(_)&&Hd(R),"Keyframes must be of the same dimension as the current value"))}else R=Il(T);if(_!==R)if(Hd(_)&&Hd(R)){let O=c.get();typeof O=="string"&&c.set(parseFloat(O)),typeof T=="string"?t[l]=parseFloat(T):Array.isArray(T)&&R===Ze&&(t[l]=T.map(parseFloat))}else(_==null?void 0:_.transform)&&(R==null?void 0:R.transform)&&(v===0||T===0)?v===0?c.set(R.transform(v)):t[l]=_.transform(T):(a||(i=oN(e),a=!0),s.push(l),n[l]=n[l]!==void 0?n[l]:t[l],h5(c,T))}),s.length){let l=s.indexOf("height")>=0?window.pageYOffset:null,c=iN(t,e,s);return i.length&&i.forEach(([v,_])=>{e.getValue(v).set(_)}),e.render(),Un&&l!==null&&window.scrollTo({top:l}),{target:c,transitionEnd:n}}else return{target:t,transitionEnd:n}};function m5(e,t,r,n){return tN(t)?aN(e,t,r,n):{target:t,transitionEnd:n}}var g5=(e,t,r,n)=>{let o=l5(e,t,n);return t=o.target,n=o.transitionEnd,m5(e,t,r,n)};d();h();p();var x5=he(ye(),1);d();h();p();d();h();p();var Cc={current:null},Gd={current:!1};function v5(){if(Gd.current=!0,!!Un)if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Cc.current=e.matches;e.addListener(t),t()}else Cc.current=!1}d();h();p();function y5(e,t,r){let{willChange:n}=t;for(let o in t){let i=t[o],a=r[o];if(gr(i))e.addValue(o,i),Za(n)&&n.add(o);else if(gr(a))e.addValue(o,Mo(i)),Za(n)&&n.remove(o);else if(a!==i)if(e.hasValue(o)){let s=e.getValue(o);!s.hasAnimated&&s.set(i)}else{let s=e.getStaticValue(o);e.addValue(o,Mo(s!==void 0?s:i))}}for(let o in r)t[o]===void 0&&e.removeValue(o);return t}var _5=Object.keys(Fi),sN=_5.length,w5=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Wd=class{constructor({parent:t,props:r,reducedMotionConfig:n,visualState:o},i={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{!this.current||(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>rr.render(this.render,!1,!0);let{latestValues:a,renderState:s}=o;this.latestValues=a,this.baseTarget=se({},a),this.initialValues=r.initial?se({},a):{},this.renderState=s,this.parent=t,this.props=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=n,this.options=i,this.isControllingVariants=La(r),this.isVariantNode=X0(r),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(t&&t.current);let v=this.scrapeMotionValuesFromProps(r),{willChange:l}=v,c=Ee(v,["willChange"]);for(let _ in c){let T=c[_];a[_]!==void 0&&gr(T)&&(T.set(a[_],!1),Za(l)&&l.add(_))}}scrapeMotionValuesFromProps(t){return{}}mount(t){var r;this.current=t,this.projection&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(r=this.parent)===null||r===void 0?void 0:r.addVariantChild(this)),this.values.forEach((n,o)=>this.bindToMotionValue(o,n)),Gd.current||v5(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Cc.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var t,r,n;(t=this.projection)===null||t===void 0||t.unmount(),yn.update(this.notifyUpdate),yn.render(this.render),this.valueSubscriptions.forEach(o=>o()),(r=this.removeFromVariantTree)===null||r===void 0||r.call(this),(n=this.parent)===null||n===void 0||n.children.delete(this);for(let o in this.events)this.events[o].clear();this.current=null}bindToMotionValue(t,r){let n=zn.has(t),o=r.onChange(a=>{this.latestValues[t]=a,this.props.onUpdate&&rr.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=r.onRenderRequest(this.scheduleRender);this.valueSubscriptions.set(t,()=>{o(),i()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}loadFeatures(t,r,n,o,i,a){let s=[];xl!=="production"&&n&&r&&_r(!1,"You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.");for(let l=0;l<sN;l++){let c=_5[l],{isEnabled:v,Component:_}=Fi[c];v(t)&&_&&s.push((0,x5.createElement)(_,Ae(se({key:c},t),{visualElement:this})))}if(!this.projection&&i){this.projection=new i(o,this.latestValues,this.parent&&this.parent.projection);let{layoutId:l,layout:c,drag:v,dragConstraints:_,layoutScroll:T}=t;this.projection.setOptions({layoutId:l,layout:c,alwaysMeasureLayout:Boolean(v)||_&&Wo(_),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:typeof c=="string"?c:"both",initialPromotionConfig:a,layoutScroll:T})}return s}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Gt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,r){this.latestValues[t]=r}makeTargetAnimatable(t,r=!0){return this.makeTargetAnimatableFromInstance(t,this.props,r)}setProps(t){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=t;for(let r=0;r<w5.length;r++){let n=w5[r];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let o=t["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=y5(this,this.scrapeMotionValuesFromProps(t),this.prevMotionValues)}getProps(){return this.props}getVariant(t){var r;return(r=this.props.variants)===null||r===void 0?void 0:r[t]}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){var t;return this.isVariantNode?this:(t=this.parent)===null||t===void 0?void 0:t.getClosestVariantNode()}getVariantContext(t=!1){var r,n;if(t)return(r=this.parent)===null||r===void 0?void 0:r.getVariantContext();if(!this.isControllingVariants){let i=((n=this.parent)===null||n===void 0?void 0:n.getVariantContext())||{};return this.props.initial!==void 0&&(i.initial=this.props.initial),i}let o={};for(let i=0;i<lN;i++){let a=b5[i],s=this.props[a];(Zo(s)||s===!1)&&(o[a]=s)}return o}addVariantChild(t){var r;let n=this.getClosestVariantNode();if(n)return(r=n.variantChildren)===null||r===void 0||r.add(t),()=>n.variantChildren.delete(t)}addValue(t,r){this.hasValue(t)&&this.removeValue(t),this.values.set(t,r),this.latestValues[t]=r.get(),this.bindToMotionValue(t,r)}removeValue(t){var r;this.values.delete(t),(r=this.valueSubscriptions.get(t))===null||r===void 0||r(),this.valueSubscriptions.delete(t),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,r){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return n===void 0&&r!==void 0&&(n=Mo(r),this.addValue(t,n)),n}readValue(t){return this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.readValueFromInstance(this.current,t,this.options)}setBaseTarget(t,r){this.baseTarget[t]=r}getBaseTarget(t){var r;let{initial:n}=this.props,o=typeof n=="string"||typeof n=="object"?(r=vl(this.props,n))===null||r===void 0?void 0:r[t]:void 0;if(n&&o!==void 0)return o;let i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!gr(i)?i:this.initialValues[t]!==void 0&&o===void 0?void 0:this.baseTarget[t]}on(t,r){return this.events[t]||(this.events[t]=new So),this.events[t].add(r)}notify(t,...r){var n;(n=this.events[t])===null||n===void 0||n.notify(...r)}},b5=["initial",...Ld],lN=b5.length;var Ll=class extends Wd{sortInstanceNodePosition(t,r){return t.compareDocumentPosition(r)&2?1:-1}getBaseTargetFromProps(t,r){var n;return(n=t.style)===null||n===void 0?void 0:n[r]}removeValueFromRenderState(t,{vars:r,style:n}){delete r[t],delete n[t]}makeTargetAnimatableFromInstance(a,{transformValues:o},i){var s=a,{transition:t,transitionEnd:r}=s,n=Ee(s,["transition","transitionEnd"]);let l=CS(n,t||{},this);if(o&&(r&&(r=o(r)),n&&(n=o(n)),l&&(l=o(l))),i){ES(this,n,l);let c=g5(this,n,l,r);r=c.transitionEnd,n=c.target}return se({transition:t,transitionEnd:r},n)}};function uN(e){return window.getComputedStyle(e)}var Zd=class extends Ll{readValueFromInstance(t,r){if(zn.has(r)){let n=Cl(r);return n&&n.default||0}else{let n=uN(t),o=(nd(r)?n.getPropertyValue(r):n[r])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:r}){return Nv(t,r)}build(t,r,n,o){dl(t,r,n,o.transformTemplate)}scrapeMotionValuesFromProps(t){return gl(t)}renderInstance(t,r,n,o){dd(t,r,n,o)}};d();h();p();var qd=class extends Ll{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,r){return t[r]}readValueFromInstance(t,r){var n;return zn.has(r)?((n=Cl(r))===null||n===void 0?void 0:n.default)||0:(r=pd.has(r)?r:fd(r),t.getAttribute(r))}measureInstanceViewportBox(){return Gt()}scrapeMotionValuesFromProps(t){return md(t)}build(t,r,n,o){hl(t,r,n,this.isSVGTag,o.transformTemplate)}renderInstance(t,r,n,o){hd(t,r,n,o)}mount(t){this.isSVGTag=ml(t.tagName),super.mount(t)}};var S5=(e,t)=>il(e)?new qd(t,{enableHardwareAcceleration:!1}):new Zd(t,{enableHardwareAcceleration:!0});d();h();p();d();h();p();var $l=he(ye(),1);d();h();p();function M5(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Bl={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(Ze.test(e))e=parseFloat(e);else return e;let r=M5(e,t.target.x),n=M5(e,t.target.y);return`${r}% ${n}%`}};d();h();p();var E5="_$css",C5={correct:(e,{treeScale:t,projectionDelta:r})=>{let n=e,o=e.includes("var("),i=[];o&&(e=e.replace($v,R=>(i.push(R),E5)));let a=xr.parse(e);if(a.length>5)return n;let s=xr.createTransformer(e),l=typeof a[0]!="number"?1:0,c=r.x.scale*t.x,v=r.y.scale*t.y;a[0+l]/=c,a[1+l]/=v;let _=St(c,v,.5);typeof a[2+l]=="number"&&(a[2+l]/=_),typeof a[3+l]=="number"&&(a[3+l]/=_);let T=s(a);if(o){let R=0;T=T.replace(E5,()=>{let O=i[R];return R++,O})}return T}};var Uv=class extends $l.default.Component{componentDidMount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n,layoutId:o}=this.props,{projection:i}=t;eb(cN),i&&(r.group&&r.group.add(i),n&&n.register&&o&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions(Ae(se({},i.options),{onExitComplete:()=>this.safeToRemove()}))),Bi.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:r,visualElement:n,drag:o,isPresent:i}=this.props,a=n.projection;return a&&(a.isPresent=i,o||t.layoutDependency!==r||r===void 0?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||rr.postRender(()=>{var s;!((s=a.getStack())===null||s===void 0)&&s.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())}componentWillUnmount(){let{visualElement:t,layoutGroup:r,switchLayoutGroup:n}=this.props,{projection:o}=t;o&&(o.scheduleCheckAfterUnmount(),r!=null&&r.group&&r.group.remove(o),n!=null&&n.deregister&&n.deregister(o))}safeToRemove(){let{safeToRemove:t}=this.props;t==null||t()}render(){return null}};function T5(e){let[t,r]=bd(),n=(0,$l.useContext)(ol);return $l.default.createElement(Uv,Ae(se({},e),{layoutGroup:n,switchLayoutGroup:(0,$l.useContext)(td),isPresent:t,safeToRemove:r}))}var cN={borderRadius:Ae(se({},Bl),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:Bl,borderTopRightRadius:Bl,borderBottomLeftRadius:Bl,borderBottomRightRadius:Bl,boxShadow:C5};var k5={measureLayout:T5};d();h();p();d();h();p();d();h();p();function P5(e,t,r={}){let n=gr(e)?e:Mo(e);return kl("",n,t,r),{stop:()=>n.stop(),isAnimating:()=>n.isAnimating()}}d();h();p();var A5=["TopLeft","TopRight","BottomLeft","BottomRight"],fN=A5.length,R5=e=>typeof e=="string"?parseFloat(e):e,I5=e=>typeof e=="number"||Ze.test(e);function D5(e,t,r,n,o,i){var a,s,l,c;o?(e.opacity=St(0,(a=r.opacity)!==null&&a!==void 0?a:1,dN(n)),e.opacityExit=St((s=t.opacity)!==null&&s!==void 0?s:1,0,pN(n))):i&&(e.opacity=St((l=t.opacity)!==null&&l!==void 0?l:1,(c=r.opacity)!==null&&c!==void 0?c:1,n));for(let v=0;v<fN;v++){let _=`border${A5[v]}Radius`,T=O5(t,_),R=O5(r,_);if(T===void 0&&R===void 0)continue;T||(T=0),R||(R=0),T===0||R===0||I5(T)===I5(R)?(e[_]=Math.max(St(R5(T),R5(R),n),0),(Or.test(R)||Or.test(T))&&(e[_]+="%")):e[_]=R}(t.rotate||r.rotate)&&(e.rotate=St(t.rotate||0,r.rotate||0,n))}function O5(e,t){var r;return(r=e[t])!==null&&r!==void 0?r:e.borderRadius}var dN=N5(0,.5,xc),pN=N5(.5,.95,Sl);function N5(e,t,r){return n=>n<e?0:n>t?1:r(Ga(e,t,n))}d();h();p();function F5(e,t){e.min=t.min,e.max=t.max}function jn(e,t){F5(e.x,t.x),F5(e.y,t.y)}d();h();p();function L5(e,t,r,n,o){return e-=t,e=Ec(e,1/r,n),o!==void 0&&(e=Ec(e,1/o,n)),e}function hN(e,t=0,r=1,n=.5,o,i=e,a=e){if(Or.test(t)&&(t=parseFloat(t),t=St(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=St(i.min,i.max,n);e===i&&(s-=t),e.min=L5(e.min,t,r,s,o),e.max=L5(e.max,t,r,s,o)}function B5(e,t,[r,n,o],i,a){hN(e,t[r],t[n],t[o],t.scale,i,a)}var mN=["x","scaleX","originX"],gN=["y","scaleY","originY"];function zv(e,t,r,n){B5(e.x,t,mN,r==null?void 0:r.x,n==null?void 0:n.x),B5(e.y,t,gN,r==null?void 0:r.y,n==null?void 0:n.y)}d();h();p();function $5(e){return e.translate===0&&e.scale===1}function Vv(e){return $5(e.x)&&$5(e.y)}function jv(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Hv(e){return br(e.x)/br(e.y)}d();h();p();var Qd=class{constructor(){this.members=[]}add(t){Pl(this.members,t),t.scheduleRender()}remove(t){if(Rl(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let r=this.members[this.members.length-1];r&&this.promote(r)}}relegate(t){let r=this.members.findIndex(o=>t===o);if(r===0)return!1;let n;for(let o=r;o>=0;o--){let i=this.members[o];if(i.isPresent!==!1){n=i;break}}return n?(this.promote(n),!0):!1}promote(t,r){var n;let o=this.lead;if(t!==o&&(this.prevLead=o,this.lead=t,t.show(),o)){o.instance&&o.scheduleRender(),t.scheduleRender(),t.resumeFrom=o,r&&(t.resumeFrom.preserveOpacity=!0),o.snapshot&&(t.snapshot=o.snapshot,t.snapshot.latestValues=o.animationValues||o.latestValues),!((n=t.root)===null||n===void 0)&&n.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:i}=t.options;i===!1&&o.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var r,n,o,i,a;(n=(r=t.options).onExitComplete)===null||n===void 0||n.call(r),(a=(o=t.resumingFrom)===null||o===void 0?void 0:(i=o.options).onExitComplete)===null||a===void 0||a.call(i)})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}};d();h();p();function Gv(e,t,r){let n="",o=e.x.translate/t.x,i=e.y.translate/t.y;if((o||i)&&(n=`translate3d(${o}px, ${i}px, 0) `),(t.x!==1||t.y!==1)&&(n+=`scale(${1/t.x}, ${1/t.y}) `),r){let{rotate:l,rotateX:c,rotateY:v}=r;l&&(n+=`rotate(${l}deg) `),c&&(n+=`rotateX(${c}deg) `),v&&(n+=`rotateY(${v}deg) `)}let a=e.x.scale*t.x,s=e.y.scale*t.y;return(a!==1||s!==1)&&(n+=`scale(${a}, ${s})`),n||"none"}d();h();p();d();h();p();var U5=(e,t)=>e.depth-t.depth;var Jd=class{constructor(){this.children=[],this.isDirty=!1}add(t){Pl(this.children,t),this.isDirty=!0}remove(t){Rl(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(U5),this.isDirty=!1,this.children.forEach(t)}};var z5=["","X","Y","Z"],V5=1e3,vN=0;function Kd({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(a,s={},l=t==null?void 0:t()){this.id=vN++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(xN),this.nodes.forEach(SN),this.nodes.forEach(MN)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=a,this.latestValues=s,this.root=l?l.root||l:this,this.path=l?[...l.path,l]:[],this.parent=l,this.depth=l?l.depth+1:0,a&&this.root.registerPotentialNode(a,this);for(let c=0;c<this.path.length;c++)this.path[c].shouldResetTransform=!0;this.root===this&&(this.nodes=new Jd)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new So),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){let l=this.eventHandlers.get(a);l==null||l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}registerPotentialNode(a,s){this.potentialNodes.set(a,s)}mount(a,s=!1){var l;if(this.instance)return;this.isSVG=a instanceof SVGElement&&a.tagName!=="svg",this.instance=a;let{layoutId:c,layout:v,visualElement:_}=this.options;if(_&&!_.current&&_.mount(a),this.root.nodes.add(this),(l=this.parent)===null||l===void 0||l.children.add(this),this.elementId&&this.root.potentialNodes.delete(this.elementId),s&&(v||c)&&(this.isLayoutDirty=!0),e){let T,R=()=>this.root.updateBlockedByResize=!1;e(a,()=>{this.root.updateBlockedByResize=!0,T&&T(),T=Pd(R,250),Bi.hasAnimatedSinceResize&&(Bi.hasAnimatedSinceResize=!1,this.nodes.forEach(H5))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&_&&(c||v)&&this.addEventListener("didUpdate",({delta:T,hasLayoutChanged:R,hasRelativeTargetChanged:O,layout:$})=>{var V,F,N,U,q;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let X=(F=(V=this.options.transition)!==null&&V!==void 0?V:_.getDefaultTransition())!==null&&F!==void 0?F:PN,{onLayoutAnimationStart:ue,onLayoutAnimationComplete:ie}=_.getProps(),ve=!this.targetLayout||!jv(this.targetLayout,$)||O,Z=!R&&O;if(((N=this.resumeFrom)===null||N===void 0?void 0:N.instance)||Z||R&&(ve||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(T,Z);let w=Ae(se({},Nd(X,"layout")),{onPlay:ue,onComplete:ie});_.shouldReduceMotion&&(w.delay=0,w.type=!1),this.startAnimation(w)}else!R&&this.animationProgress===0&&H5(this),this.isLead()&&((q=(U=this.options).onExitComplete)===null||q===void 0||q.call(U));this.targetLayout=$})}unmount(){var a,s;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(a=this.getStack())===null||a===void 0||a.remove(this),(s=this.parent)===null||s===void 0||s.children.delete(this),this.instance=void 0,yn.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var a;return this.isAnimationBlocked||((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimationBlocked())||!1}startUpdate(){var a;this.isUpdateBlocked()||(this.isUpdating=!0,(a=this.nodes)===null||a===void 0||a.forEach(EN),this.animationId++)}willUpdate(a=!0){var s,l,c;if(this.root.isUpdateBlocked()){(l=(s=this.options).onExitComplete)===null||l===void 0||l.call(s);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let R=0;R<this.path.length;R++){let O=this.path[R];O.shouldResetTransform=!0,O.updateScroll("snapshot")}let{layoutId:v,layout:_}=this.options;if(v===void 0&&!_)return;let T=(c=this.options.visualElement)===null||c===void 0?void 0:c.getProps().transformTemplate;this.prevTransformTemplateValue=T==null?void 0:T(this.latestValues,""),this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}didUpdate(){if(this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(j5);return}!this.isUpdating||(this.isUpdating=!1,this.potentialNodes.size&&(this.potentialNodes.forEach(RN),this.potentialNodes.clear()),this.nodes.forEach(bN),this.nodes.forEach(yN),this.nodes.forEach(wN),this.clearAllSnapshots(),kd.update(),kd.preRender(),kd.render())}clearAllSnapshots(){this.nodes.forEach(_N),this.sharedNodes.forEach(CN)}scheduleUpdateProjection(){rr.preRender(this.updateProjection,!1,!0)}scheduleCheckAfterUnmount(){rr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var a;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();let s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Gt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox),(a=this.options.visualElement)===null||a===void 0||a.notify("LayoutMeasure",this.layout.layoutBox,s==null?void 0:s.layoutBox)}updateScroll(a="measure"){let s=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&(this.scroll={animationId:this.root.animationId,phase:a,isRoot:n(this.instance),offset:r(this.instance)})}resetTransform(){var a;if(!o)return;let s=this.isLayoutDirty||this.shouldResetTransform,l=this.projectionDelta&&!Vv(this.projectionDelta),c=(a=this.options.visualElement)===null||a===void 0?void 0:a.getProps().transformTemplate,v=c==null?void 0:c(this.latestValues,""),_=v!==this.prevTransformTemplateValue;s&&(l||ei(this.latestValues)||_)&&(o(this.instance,v),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){let s=this.measurePageBox(),l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),IN(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:a}=this.options;if(!a)return Gt();let s=a.measureViewportBox(),{scroll:l}=this.root;return l&&(Eo(s.x,l.offset.x),Eo(s.y,l.offset.y)),s}removeElementScroll(a){let s=Gt();jn(s,a);for(let l=0;l<this.path.length;l++){let c=this.path[l],{scroll:v,options:_}=c;if(c!==this.root&&v&&_.layoutScroll){if(v.isRoot){jn(s,a);let{scroll:T}=this.root;T&&(Eo(s.x,-T.offset.x),Eo(s.y,-T.offset.y))}Eo(s.x,v.offset.x),Eo(s.y,v.offset.y)}}return s}applyTransform(a,s=!1){let l=Gt();jn(l,a);for(let c=0;c<this.path.length;c++){let v=this.path[c];!s&&v.options.layoutScroll&&v.scroll&&v!==v.root&&Qa(l,{x:-v.scroll.offset.x,y:-v.scroll.offset.y}),ei(v.latestValues)&&Qa(l,v.latestValues)}return ei(this.latestValues)&&Qa(l,this.latestValues),l}removeTransform(a){var s;let l=Gt();jn(l,a);for(let c=0;c<this.path.length;c++){let v=this.path[c];if(!v.instance||!ei(v.latestValues))continue;zd(v.latestValues)&&v.updateSnapshot();let _=Gt(),T=v.measurePageBox();jn(_,T),zv(l,v.latestValues,(s=v.snapshot)===null||s===void 0?void 0:s.layoutBox,_)}return ei(this.latestValues)&&zv(l,this.latestValues),l}setTargetDelta(a){this.targetDelta=a,this.isProjectionDirty=!0,this.root.scheduleUpdateProjection()}setOptions(a){this.options=Ae(se(se({},this.options),a),{crossfade:a.crossfade!==void 0?a.crossfade:!0})}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}resolveTargetDelta(){var a;let s=this.getLead();if(this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),!this.isProjectionDirty&&!this.attemptToResolveRelativeTarget)return;let{layout:l,layoutId:c}=this.options;if(!(!this.layout||!(l||c))){if(!this.targetDelta&&!this.relativeTarget){let v=this.getClosestProjectingParent();v&&v.layout?(this.relativeParent=v,this.relativeTarget=Gt(),this.relativeTargetOrigin=Gt(),Dl(this.relativeTargetOrigin,this.layout.layoutBox,v.layout.layoutBox),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Gt(),this.targetWithTransforms=Gt()),this.relativeTarget&&this.relativeTargetOrigin&&((a=this.relativeParent)===null||a===void 0?void 0:a.target)?BS(this.target,this.relativeTarget,this.relativeParent.target):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):jn(this.target,this.layout.layoutBox),Dv(this.target,this.targetDelta)):jn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;let v=this.getClosestProjectingParent();v&&Boolean(v.resumingFrom)===Boolean(this.resumingFrom)&&!v.options.layoutScroll&&v.target?(this.relativeParent=v,this.relativeTarget=Gt(),this.relativeTargetOrigin=Gt(),Dl(this.relativeTargetOrigin,this.target,v.target),jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||zd(this.parent.latestValues)||Ov(this.parent.latestValues)))return(this.parent.relativeTarget||this.parent.targetDelta)&&this.parent.layout?this.parent:this.parent.getClosestProjectingParent()}calcProjection(){var a;let{isProjectionDirty:s,isTransformDirty:l}=this;this.isProjectionDirty=this.isTransformDirty=!1;let c=this.getLead(),v=Boolean(this.resumingFrom)||this!==c,_=!0;if(s&&(_=!1),v&&l&&(_=!1),_)return;let{layout:T,layoutId:R}=this.options;if(this.isTreeAnimating=Boolean(((a=this.parent)===null||a===void 0?void 0:a.isTreeAnimating)||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(T||R))return;jn(this.layoutCorrected,this.layout.layoutBox),n5(this.layoutCorrected,this.treeScale,this.path,v);let{target:O}=c;if(!O)return;this.projectionDelta||(this.projectionDelta=Nl(),this.projectionDeltaWithTransform=Nl());let $=this.treeScale.x,V=this.treeScale.y,F=this.projectionTransform;Al(this.projectionDelta,this.layoutCorrected,O,this.latestValues),this.projectionTransform=Gv(this.projectionDelta,this.treeScale),(this.projectionTransform!==F||this.treeScale.x!==$||this.treeScale.y!==V)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",O))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s,l,c;(l=(s=this.options).scheduleRender)===null||l===void 0||l.call(s),a&&((c=this.getStack())===null||c===void 0||c.scheduleRender()),this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(a,s=!1){var l,c;let v=this.snapshot,_=(v==null?void 0:v.latestValues)||{},T=se({},this.latestValues),R=Nl();this.relativeTarget=this.relativeTargetOrigin=void 0,this.attemptToResolveRelativeTarget=!s;let O=Gt(),$=(v==null?void 0:v.source)!==((l=this.layout)===null||l===void 0?void 0:l.source),V=(((c=this.getStack())===null||c===void 0?void 0:c.members.length)||0)<=1,F=Boolean($&&!V&&this.options.crossfade===!0&&!this.path.some(kN));this.animationProgress=0,this.mixTargetDelta=N=>{var U;let q=N/1e3;G5(R.x,a.x,q),G5(R.y,a.y,q),this.setTargetDelta(R),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&((U=this.relativeParent)===null||U===void 0?void 0:U.layout)&&(Dl(O,this.layout.layoutBox,this.relativeParent.layout.layoutBox),TN(this.relativeTarget,this.relativeTargetOrigin,O,q)),$&&(this.animationValues=T,D5(T,_,this.latestValues,q,F,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=q},this.mixTargetDelta(0)}startAnimation(a){var s,l;this.notifyListeners("animationStart"),(s=this.currentAnimation)===null||s===void 0||s.stop(),this.resumingFrom&&((l=this.resumingFrom.currentAnimation)===null||l===void 0||l.stop()),this.pendingAnimation&&(yn.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=rr.update(()=>{Bi.hasAnimatedSinceResize=!0,this.currentAnimation=P5(0,V5,Ae(se({},a),{onUpdate:c=>{var v;this.mixTargetDelta(c),(v=a.onUpdate)===null||v===void 0||v.call(a,c)},onComplete:()=>{var c;(c=a.onComplete)===null||c===void 0||c.call(a),this.completeAnimation()}})),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var a;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(a=this.getStack())===null||a===void 0||a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var a;this.currentAnimation&&((a=this.mixTargetDelta)===null||a===void 0||a.call(this,V5),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let a=this.getLead(),{targetWithTransforms:s,target:l,layout:c,latestValues:v}=a;if(!(!s||!l||!c)){if(this!==a&&this.layout&&c&&q5(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||Gt();let _=br(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+_;let T=br(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+T}jn(s,l),Qa(s,v),Al(this.projectionDeltaWithTransform,this.layoutCorrected,s,v)}}registerSharedNode(a,s){var l,c,v;this.sharedNodes.has(a)||this.sharedNodes.set(a,new Qd),this.sharedNodes.get(a).add(s),s.promote({transition:(l=s.options.initialPromotionConfig)===null||l===void 0?void 0:l.transition,preserveFollowOpacity:(v=(c=s.options.initialPromotionConfig)===null||c===void 0?void 0:c.shouldPreserveFollowOpacity)===null||v===void 0?void 0:v.call(c,s)})}isLead(){let a=this.getStack();return a?a.lead===this:!0}getLead(){var a;let{layoutId:s}=this.options;return s?((a=this.getStack())===null||a===void 0?void 0:a.lead)||this:this}getPrevLead(){var a;let{layoutId:s}=this.options;return s?(a=this.getStack())===null||a===void 0?void 0:a.prevLead:void 0}getStack(){let{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){let c=this.getStack();c&&c.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){let a=this.getStack();return a?a.relegate(this):!1}resetRotation(){let{visualElement:a}=this.options;if(!a)return;let s=!1,{latestValues:l}=a;if((l.rotate||l.rotateX||l.rotateY||l.rotateZ)&&(s=!0),!s)return;let c={};for(let v=0;v<z5.length;v++){let _="rotate"+z5[v];l[_]&&(c[_]=l[_],a.setStaticValue(_,0))}a==null||a.render();for(let v in c)a.setStaticValue(v,c[v]);a.scheduleRender()}getProjectionStyles(a={}){var s,l,c;let v={};if(!this.instance||this.isSVG)return v;if(this.isVisible)v.visibility="";else return{visibility:"hidden"};let _=(s=this.options.visualElement)===null||s===void 0?void 0:s.getProps().transformTemplate;if(this.needsReset)return this.needsReset=!1,v.opacity="",v.pointerEvents=yl(a.pointerEvents)||"",v.transform=_?_(this.latestValues,""):"none",v;let T=this.getLead();if(!this.projectionDelta||!this.layout||!T.target){let V={};return this.options.layoutId&&(V.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,V.pointerEvents=yl(a.pointerEvents)||""),this.hasProjected&&!ei(this.latestValues)&&(V.transform=_?_({},""):"none",this.hasProjected=!1),V}let R=T.animationValues||T.latestValues;this.applyTransformsToTarget(),v.transform=Gv(this.projectionDeltaWithTransform,this.treeScale,R),_&&(v.transform=_(R,v.transform));let{x:O,y:$}=this.projectionDelta;v.transformOrigin=`${O.origin*100}% ${$.origin*100}% 0`,T.animationValues?v.opacity=T===this?(c=(l=R.opacity)!==null&&l!==void 0?l:this.latestValues.opacity)!==null&&c!==void 0?c:1:this.preserveOpacity?this.latestValues.opacity:R.opacityExit:v.opacity=T===this?R.opacity!==void 0?R.opacity:"":R.opacityExit!==void 0?R.opacityExit:0;for(let V in al){if(R[V]===void 0)continue;let{correct:F,applyTo:N}=al[V],U=F(R[V],T);if(N){let q=N.length;for(let X=0;X<q;X++)v[N[X]]=U}else v[V]=U}return this.options.layoutId&&(v.pointerEvents=T===this?yl(a.pointerEvents)||"":"none"),v}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)===null||s===void 0?void 0:s.stop()}),this.root.nodes.forEach(j5),this.root.sharedNodes.clear()}}}function yN(e){e.updateLayout()}function wN(e){var t,r,n;let o=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&o&&e.hasListeners("didUpdate")){let{layoutBox:i,measuredBox:a}=e.layout,{animationType:s}=e.options,l=o.source!==e.layout.source;s==="size"?Vn(R=>{let O=l?o.measuredBox[R]:o.layoutBox[R],$=br(O);O.min=i[R].min,O.max=O.min+$}):q5(s,o.layoutBox,i)&&Vn(R=>{let O=l?o.measuredBox[R]:o.layoutBox[R],$=br(i[R]);O.max=O.min+$});let c=Nl();Al(c,i,o.layoutBox);let v=Nl();l?Al(v,e.applyTransform(a,!0),o.measuredBox):Al(v,i,o.layoutBox);let _=!Vv(c),T=!1;if(!e.resumeFrom){let R=e.getClosestProjectingParent();if(R&&!R.resumeFrom){let{snapshot:O,layout:$}=R;if(O&&$){let V=Gt();Dl(V,o.layoutBox,O.layoutBox);let F=Gt();Dl(F,i,$.layoutBox),jv(V,F)||(T=!0)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:o,delta:v,layoutDelta:c,hasLayoutChanged:_,hasRelativeTargetChanged:T})}else e.isLead()&&((n=(r=e.options).onExitComplete)===null||n===void 0||n.call(r));e.options.transition=void 0}function xN(e){e.isProjectionDirty||(e.isProjectionDirty=Boolean(e.parent&&e.parent.isProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=Boolean(e.parent&&e.parent.isTransformDirty))}function _N(e){e.clearSnapshot()}function j5(e){e.clearMeasurements()}function bN(e){let{visualElement:t}=e.options;t!=null&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function H5(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0}function SN(e){e.resolveTargetDelta()}function MN(e){e.calcProjection()}function EN(e){e.resetRotation()}function CN(e){e.removeLeadSnapshot()}function G5(e,t,r){e.translate=St(t.translate,0,r),e.scale=St(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function W5(e,t,r,n){e.min=St(t.min,r.min,n),e.max=St(t.max,r.max,n)}function TN(e,t,r,n){W5(e.x,t.x,r.x,n),W5(e.y,t.y,r.y,n)}function kN(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var PN={duration:.45,ease:[.4,0,.1,1]};function RN(e,t){let r=e.root;for(let i=e.path.length-1;i>=0;i--)if(Boolean(e.path[i].instance)){r=e.path[i];break}let o=(r&&r!==e.root?r.instance:document).querySelector(`[data-projection-id="${t}"]`);o&&e.mount(o,!0)}function Z5(e){e.min=Math.round(e.min),e.max=Math.round(e.max)}function IN(e){Z5(e.x),Z5(e.y)}function q5(e,t,r){return e==="position"||e==="preserve-aspect"&&!Bd(Hv(t),Hv(r),.2)}d();h();p();var Q5=Kd({attachResizeListener:(e,t)=>$a(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0});var Wv={current:void 0},J5=Kd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Wv.current){let e=new Q5(0,{});e.mount(window),e.setOptions({layoutScroll:!0}),Wv.current=e}return Wv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>Boolean(window.getComputedStyle(e).position==="fixed")});var ON=se(se(se(se({},RS),Vb),s5),k5),kt=X3((e,t)=>Eb(e,t,ON,S5,J5));d();h();p();var ti=he(ye(),1),Hn=he(ye(),1);d();h();p();var Tc=he(ye(),1);d();h();p();var K5=he(ye(),1);function Xd(){let e=(0,K5.useRef)(!1);return Fa(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function X5(){let e=Xd(),[t,r]=(0,Tc.useState)(0),n=(0,Tc.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,Tc.useCallback)(()=>rr.postRender(n),[n]),t]}d();h();p();var kc=he(ye(),1),Pc=he(ye(),1);d();h();p();var Ul=he(ye(),1),Ja=he(ye(),1),Zv=class extends Ul.Component{getSnapshotBeforeUpdate(t){let r=this.props.childRef.current;if(r&&t.isPresent&&!this.props.isPresent){let n=this.props.sizeRef.current;n.height=r.offsetHeight||0,n.width=r.offsetWidth||0,n.top=r.offsetTop,n.left=r.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}};function Y5({children:e,isPresent:t}){let r=(0,Ja.useId)(),n=(0,Ja.useRef)(null),o=(0,Ja.useRef)({width:0,height:0,top:0,left:0});return(0,Ja.useInsertionEffect)(()=>{let{width:i,height:a,top:s,left:l}=o.current;if(t||!n.current||!i||!a)return;n.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
|
|
25
25
|
[data-motion-pop-id="${r}"] {
|