UNPKG

@clerk/clerk-js

Version:
1 lines • 634 kB
"use strict";(globalThis.rspackChunk_clerk_clerk_js=globalThis.rspackChunk_clerk_clerk_js||[]).push([[994],{6306(e,t,n){n(5254),n(4104);var r=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,i){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new o(n,r||e,i),c=a?a+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(a=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,o=Array(i);r<i;r++)o[r]=n[r].fn;return o},l.prototype.listenerCount=function(e){var t=a?a+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,i,o){var s=a?a+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,o),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||r&&!o.once||n&&o.context!==n||c(this,i);else{for(var s=0,l=[],u=o.length;s<u;s++)(o[s].fn!==t||r&&!o[s].once||n&&o[s].context!==n)&&l.push(o[s]);l.length?this._events[i]=1===l.length?l[0]:l:c(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,e.exports=l},7215(e,t,n){n(5254),n(4104);var r=Object.prototype.hasOwnProperty,a="~";function i(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,i){if("function"!=typeof n)throw TypeError("The listener must be a function");var s=new o(n,r||e,i),c=a?a+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function c(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function l(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(a=!1)),l.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=a?a+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,i=n.length,o=Array(i);r<i;r++)o[r]=n[r].fn;return o},l.prototype.listenerCount=function(e){var t=a?a+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,r,i,o){var s=a?a+e:e;if(!this._events[s])return!1;var c,l,u=this._events[s],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,i),!0;case 6:return u.fn.call(u.context,t,n,r,i,o),!0}for(l=1,c=Array(d-1);l<d;l++)c[l-1]=arguments[l];u.fn.apply(u.context,c)}else{var f,p=u.length;for(l=0;l<p;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),d){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,n);break;case 4:u[l].fn.call(u[l].context,t,n,r);break;default:if(!c)for(f=1,c=Array(d-1);f<d;f++)c[f-1]=arguments[f];u[l].fn.apply(u[l].context,c)}}return!0},l.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,n,r){var i=a?a+e:e;if(!this._events[i])return this;if(!t)return c(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||r&&!o.once||n&&o.context!==n||c(this,i);else{for(var s=0,l=[],u=o.length;s<u;s++)(o[s].fn!==t||r&&!o[s].once||n&&o[s].context!==n)&&l.push(o[s]);l.length?this._events[i]=1===l.length?l[0]:l:c(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&c(this,t)):(this._events=new i,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,e.exports=l},2109(e,t,n){n(4104),n(2949),n(2021),n(5281),n(6954),n(4086),n(7891),n(7548),n(954),n(8803),n(9162),n(5385),n(9342),n(9152),n(6395),n(3560);var r,a,i,o,s,c,l,u,d,f,p,m={},h=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(e,t){for(var n in t)e[n]=t[n];return e}function v(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function w(e,t,n){var a,i,o,s={};for(o in t)"key"==o?a=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return x(e,s,a,i,null)}function x(e,t,n,r,o){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==o?++i:o,__i:-1,__u:0};return null==o&&null!=a.vnode&&a.vnode(s),s}function E(e){return e.children}function _(e,t){this.props=e,this.context=t}function A(e,t){if(null==t)return e.__?A(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?A(e):null}function P(e){(!e.__d&&(e.__d=!0)&&o.push(e)&&!k.__r++||s!=a.debounceRendering)&&((s=a.debounceRendering)||c)(k)}function k(){for(var e,t,n,r,i,s,c=1;o.length;)o.length>c&&o.sort(l),e=o.shift(),c=o.length,e.__d&&(t=void 0,n=void 0,r=(n=e.__v).__e,i=[],s=[],e.__P&&((t=g({},n)).__v=n.__v+1,a.vnode&&a.vnode(t),B(e.__P,t,n,e.__n,e.__P.namespaceURI,32&n.__u?[r]:null,i,null==r?A(n):r,!!(32&n.__u),s),t.__v=n.__v,t.__.__k[t.__i]=t,j(i,t,s),n.__e=n.__=null,t.__e!=r&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(t)));k.__r=0}function O(e,t,n,r,i,o,s,c,l,u,d){var f,p,y,g,w,_,P,k=r&&r.__k||h,O=t.length;for(l=function(e,t,n,r,i){var o,s,c,l,u,d=n.length,f=d,p=0;for(e.__k=Array(i),o=0;o<i;o++)null!=(s=t[o])&&"boolean"!=typeof s&&"function"!=typeof s?(l=o+p,(s=e.__k[o]="string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?x(null,s,null,null,null):b(s)?x(E,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?x(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):s).__=e,s.__b=e.__b+1,c=null,-1!=(u=s.__i=function(e,t,n,r){var a,i,o,s=e.key,c=e.type,l=t[n],u=null!=l&&0==(2&l.__u);if(null===l&&null==e.key||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(a=n-1,i=n+1;a>=0||i<t.length;)if(null!=(l=t[o=a>=0?a--:i++])&&0==(2&l.__u)&&s==l.key&&c==l.type)return o}return -1}(s,n,l,f))&&(f--,(c=n[u])&&(c.__u|=2)),null==c||null==c.__v?(-1==u&&(i>d?p--:i<d&&p++),"function"!=typeof s.type&&(s.__u|=4)):u!=l&&(u==l-1?p--:u==l+1?p++:(u>l?p--:p++,s.__u|=4))):e.__k[o]=null;if(f)for(o=0;o<d;o++)null!=(c=n[o])&&0==(2&c.__u)&&(c.__e==r&&(r=A(c)),function e(t,n,r){var i,o;if(a.unmount&&a.unmount(t),(i=t.ref)&&(i.current&&i.current!=t.__e||M(i,null,n)),null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){a.__e(e,n)}i.base=i.__P=null}if(i=t.__k)for(o=0;o<i.length;o++)i[o]&&e(i[o],n,r||"function"!=typeof t.type);r||v(t.__e),t.__c=t.__=t.__e=void 0}(c,c));return r}(n,t,k,l,O),f=0;f<O;f++)null!=(y=n.__k[f])&&(p=-1==y.__i?m:k[y.__i]||m,y.__i=f,_=B(e,y,p,i,o,s,c,l,u,d),g=y.__e,y.ref&&p.ref!=y.ref&&(p.ref&&M(p.ref,null,y),d.push(y.ref,y.__c||g,y)),null==w&&null!=g&&(w=g),(P=!!(4&y.__u))||p.__k===y.__k?l=function e(t,n,r,a){var i,o;if("function"==typeof t.type){for(i=t.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=t,n=e(i[o],n,r,a));return n}t.__e!=n&&(a&&(n&&t.type&&!n.parentNode&&(n=A(t)),r.insertBefore(t.__e,n||null)),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8==n.nodeType)return n}(y,l,e,P):"function"==typeof y.type&&void 0!==_?l=_:g&&(l=g.nextSibling),y.__u&=-7);return n.__e=w,l}function S(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||y.test(t)?n:n+"px"}function I(e,t,n,r,a){var i,o;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||S(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||S(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])i=t!=(t=t.replace(u,"$1")),t=(o=t.toLowerCase())in e||"onFocusOut"==t||"onFocusIn"==t?o.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=d,e.addEventListener(t,i?p:f,i)):e.removeEventListener(t,i?p:f,i);else{if("http://www.w3.org/2000/svg"==a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function C(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=d++;else if(t.t<n.u)return;return n(a.event?a.event(t):t)}}}function B(e,t,n,i,o,s,c,l,u,d){var f,p,h,y,w,x,P,k,S,C,B,j,M,R,U,z,F,D=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),s=[l=t.__e=n.__e]),(f=a.__b)&&f(t);e:if("function"==typeof D)try{if(k=t.props,S="prototype"in D&&D.prototype.render,C=(f=D.contextType)&&i[f.__c],B=f?C?C.props.value:f.__:i,n.__c?P=(p=t.__c=n.__c).__=p.__E:(S?t.__c=p=new D(k,B):(t.__c=p=new _(k,B),p.constructor=D,p.render=N),C&&C.sub(p),p.props=k,p.state||(p.state={}),p.context=B,p.__n=i,h=p.__d=!0,p.__h=[],p._sb=[]),S&&null==p.__s&&(p.__s=p.state),S&&null!=D.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=g({},p.__s)),g(p.__s,D.getDerivedStateFromProps(k,p.__s))),y=p.props,w=p.state,p.__v=t,h)S&&null==D.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),S&&null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(S&&null==D.getDerivedStateFromProps&&k!==y&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(k,B),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(k,p.__s,B)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=k,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),j=0;j<p._sb.length;j++)p.__h.push(p._sb[j]);p._sb=[],p.__h.length&&c.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(k,p.__s,B),S&&null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(y,w,x)})}if(p.context=B,p.props=k,p.__P=e,p.__e=!1,M=a.__r,R=0,S){for(p.state=p.__s,p.__d=!1,M&&M(t),f=p.render(p.props,p.state,p.context),U=0;U<p._sb.length;U++)p.__h.push(p._sb[U]);p._sb=[]}else do p.__d=!1,M&&M(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++R<25)p.state=p.__s,null!=p.getChildContext&&(i=g(g({},i),p.getChildContext())),S&&!h&&null!=p.getSnapshotBeforeUpdate&&(x=p.getSnapshotBeforeUpdate(y,w)),z=f,null!=f&&f.type===E&&null==f.key&&(z=function e(t){return"object"!=typeof t||null==t||t.__b&&t.__b>0?t:b(t)?t.map(e):g({},t)}(f.props.children)),l=O(e,b(z)?z:[z],t,n,i,o,s,c,l,u,d),p.base=t.__e,t.__u&=-161,p.__h.length&&c.push(p),P&&(p.__E=p.__=null)}catch(e){if(t.__v=null,u||null!=s)if(e.then){for(t.__u|=u?160:128;l&&8==l.nodeType&&l.nextSibling;)l=l.nextSibling;s[s.indexOf(l)]=null,t.__e=l}else{for(F=s.length;F--;)v(s[F]);T(t)}else t.__e=n.__e,t.__k=n.__k,e.then||T(t);a.__e(e,t,n)}else null==s&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):l=t.__e=function(e,t,n,i,o,s,c,l,u){var d,f,p,h,y,g,w,x=n.props,E=t.props,_=t.type;if("svg"==_?o="http://www.w3.org/2000/svg":"math"==_?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=s){for(d=0;d<s.length;d++)if((y=s[d])&&"setAttribute"in y==!!_&&(_?y.localName==_:3==y.nodeType)){e=y,s[d]=null;break}}if(null==e){if(null==_)return document.createTextNode(E);e=document.createElementNS(o,_,E.is&&E),l&&(a.__m&&a.__m(t,s),l=!1),s=null}if(null==_)x===E||l&&e.data==E||(e.data=E);else{if(s=s&&r.call(e.childNodes),x=n.props||m,!l&&null!=s)for(x={},d=0;d<e.attributes.length;d++)x[(y=e.attributes[d]).name]=y.value;for(d in x)if(y=x[d],"children"==d);else if("dangerouslySetInnerHTML"==d)p=y;else if(!(d in E)){if("value"==d&&"defaultValue"in E||"checked"==d&&"defaultChecked"in E)continue;I(e,d,null,y,o)}for(d in E)y=E[d],"children"==d?h=y:"dangerouslySetInnerHTML"==d?f=y:"value"==d?g=y:"checked"==d?w=y:l&&"function"!=typeof y||x[d]===y||I(e,d,y,x[d],o);if(f)l||p&&(f.__html==p.__html||f.__html==e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(p&&(e.innerHTML=""),O("template"==t.type?e.content:e,b(h)?h:[h],t,n,i,"foreignObject"==_?"http://www.w3.org/1999/xhtml":o,s,c,s?s[0]:n.__k&&A(n,0),l,u),null!=s)for(d=s.length;d--;)v(s[d]);l||(d="value","progress"==_&&null==g?e.removeAttribute("value"):null==g||g===e[d]&&("progress"!=_||g)&&("option"!=_||g==x[d])||I(e,d,g,x[d],o),d="checked",null!=w&&w!=e[d]&&I(e,d,w,x[d],o))}return e}(n.__e,t,n,i,o,s,c,u,d);return(f=a.diffed)&&f(t),128&t.__u?void 0:l}function T(e){e&&e.__c&&(e.__c.__e=!0),e&&e.__k&&e.__k.forEach(T)}function j(e,t,n){for(var r=0;r<n.length;r++)M(n[r],n[++r],n[++r]);a.__c&&a.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){a.__e(e,t.__v)}})}function M(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){a.__e(e,n)}}function N(e,t,n){return this.constructor(e,n)}function R(e,t,n){var i,o,s,c;t==document&&(t=document.documentElement),a.__&&a.__(e,t),o=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],c=[],B(t,e=(!i&&n||t).__k=w(E,null,[e]),o||m,m,t.namespaceURI,!i&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,s,!i&&n?n:o?o.__e:t.firstChild,i,c),j(s,e,c)}r=h.slice,a={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},i=0,_.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),P(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),P(this))},_.prototype.render=E,o=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,u=/(PointerCapture)$|Capture$/i,d=0,f=C(!1),p=C(!0),n.d(t,{XX:()=>R,fF:()=>a,h:()=>w})},7977(e,t,n){n(4104),n(2949),n(8723),n(1178),n(4086),n(2021);var r,a,i,o,s=n(2109),c=0,l=[],u=s.fF,d=u.__b,f=u.__r,p=u.diffed,m=u.__c,h=u.unmount,y=u.__;function b(e,t){u.__h&&u.__h(a,e,c||t),c=0;var n=a.__H||(a.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function g(e){return c=1,function(e,t){var n=b(r++,2);if(n.t=e,!n.__c&&(n.__=[A(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=a,!a.__f)){var i=function(e,t,r){if(!n.__c.__H)return!0;var a=n.__c.__H.__.filter(function(e){return!!e.__c});if(a.every(function(e){return!e.__N}))return!o||o.call(this,e,t,r);var i=n.__c.props!==e;return a.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),o&&o.call(this,e,t,r)||i};a.__f=!0;var o=a.shouldComponentUpdate,s=a.componentWillUpdate;a.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}s&&s.call(this,e,t,n)},a.shouldComponentUpdate=i}return n.__N||n.__}(A,e)}function v(e,t){var n,i,o=b(r++,3);!u.__s&&(n=o.__H,i=t,!n||n.length!==i.length||i.some(function(e,t){return e!==n[t]}))&&(o.__=e,o.u=t,a.__H.__h.push(o))}function w(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(E),e.__H.__h.forEach(_),e.__H.__h=[]}catch(t){e.__H.__h=[],u.__e(t,e.__v)}}u.__b=function(e){a=null,d&&d(e)},u.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),y&&y(e,t)},u.__r=function(e){f&&f(e),r=0;var t=(a=e.__c).__H;t&&(i===a?(t.__h=[],a.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(E),t.__h.forEach(_),t.__h=[],r=0)),i=a},u.diffed=function(e){p&&p(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==l.push(t)&&o===u.requestAnimationFrame||((o=u.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),x&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);x&&(t=requestAnimationFrame(n))})(w)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),i=a=null},u.__c=function(e,t){t.some(function(e){try{e.__h.forEach(E),e.__h=e.__h.filter(function(e){return!e.__||_(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.__e(n,e.__v)}}),m&&m(e,t)},u.unmount=function(e){h&&h(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{E(e)}catch(e){t=e}}),n.__H=void 0,t&&u.__e(t,n.__v))};var x="function"==typeof requestAnimationFrame;function E(e){var t=a,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),a=t}function _(e){var t=a;e.__c=e.__(),a=t}function A(e,t){return"function"==typeof t?t(e):t}n.d(t,{J0:()=>g,vJ:()=>v})},7003(e,t,n){let r,a,i,o,s;n.r(t),n.d(t,{base:()=>u3,createBaseAccountSDK:()=>uZ,getCryptoKeyAccount:()=>ut,getPaymentStatus:()=>u1,pay:()=>u8,removeCryptoKey:()=>un}),n(3560),n(5254),n(6395),n(4104);var c,l,u,d=JSON.parse('{"UU":"@base-org/account","rE":"2.0.1"}');let f="https://rpc.wallet.coinbase.com",p=d.UU,m=d.rE;function h(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var r;let a=e=>null===e?null:JSON.parse(e,null==t?void 0:t.reviver),i=null!=(r=n.getItem(e))?r:null;return i instanceof Promise?i.then(a):a(i)},setItem:(e,r)=>n.setItem(e,JSON.stringify(r,null==t?void 0:t.replacer)),removeItem:e=>n.removeItem(e)}}n(2949),n(7891),n(7548),n(954),n(8803),n(9162),n(5385),n(9342),n(9152),n(4086);let y=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>y(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>y(t)(e)}}},b=e=>{let t,n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a||null===a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,i={setState:r,getState:a,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e))},o=t=e(r,a,i);return i},g=e=>e?b(e):b,v=g((a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(()=>({chains:[]}))(...t)),(()=>({keys:{}}))(...t)),(()=>({account:{}}))(...t)),(()=>({subAccount:void 0}))(...t)),(()=>({spendPermissions:[]}))(...t)),(()=>({config:{version:m}}))(...t)),(()=>({subAccountConfig:{}}))(...t))},i={name:"base-acc-sdk.store",storage:h(()=>localStorage),partialize:e=>({chains:e.chains,keys:e.keys,account:e.account,subAccount:e.subAccount,spendPermissions:e.spendPermissions,config:e.config})},(e,t,n)=>{let r,o={storage:h(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...i},s=!1,c=new Set,l=new Set,u=o.storage;if(!u)return a(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];console.warn("[zustand persist middleware] Unable to update item '".concat(o.name,"', the given storage is currently unavailable.")),e(...n)},t,n);let d=()=>{let e=o.partialize({...t()});return u.setItem(o.name,{state:e,version:o.version})},f=n.setState;n.setState=(e,t)=>{f(e,t),d()};let p=a(function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e(...n),d()},t,n);n.getInitialState=()=>p;let m=()=>{var n,a;if(!u)return;s=!1,c.forEach(e=>{var n;return e(null!=(n=t())?n:p)});let i=(null==(a=o.onRehydrateStorage)?void 0:a.call(o,null!=(n=t())?n:p))||void 0;return y(u.getItem.bind(u))(o.name).then(e=>{if(e)if("number"!=typeof e.version||e.version===o.version)return[!1,e.state];else{if(o.migrate){let t=o.migrate(e.state,e.version);return t instanceof Promise?t.then(e=>[!0,e]):[!0,t]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}return[!1,void 0]}).then(n=>{var a;let[i,s]=n;if(e(r=o.merge(s,null!=(a=t())?a:p),!0),i)return d()}).then(()=>{null==i||i(r,void 0),r=t(),s=!0,l.forEach(e=>e(r))}).catch(e=>{null==i||i(void 0,e)})};return n.persist={setOptions:e=>{o={...o,...e},e.storage&&(u=e.storage)},clearStorage:()=>{null==u||u.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>s,onHydrate:e=>(c.add(e),()=>{c.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},o.skipHydration||m(),r||p})),w={get:()=>v.getState().config,set:e=>{v.setState(t=>({config:Object.assign(Object.assign({},t.config),e)}))}},x=Object.assign(Object.assign({},v),{subAccounts:{get:()=>v.getState().subAccount,set:e=>{v.setState(t=>({subAccount:t.subAccount?Object.assign(Object.assign({},t.subAccount),e):Object.assign({address:e.address},e)}))},clear:()=>{v.setState({subAccount:void 0})}},subAccountsConfig:{get:()=>v.getState().subAccountConfig,set:e=>{v.setState(t=>({subAccountConfig:Object.assign(Object.assign({},t.subAccountConfig),e)}))},clear:()=>{v.setState({subAccountConfig:{}})}},spendPermissions:{get:()=>v.getState().spendPermissions,set:e=>{v.setState({spendPermissions:e})},clear:()=>{v.setState({spendPermissions:[]})}},account:{get:()=>v.getState().account,set:e=>{v.setState(t=>({account:Object.assign(Object.assign({},t.account),e)}))},clear:()=>{v.setState({account:{}})}},chains:{get:()=>v.getState().chains,set:e=>{v.setState({chains:e})},clear:()=>{v.setState({chains:[]})}},keys:{get:e=>v.getState().keys[e],set:(e,t)=>{v.setState(n=>({keys:Object.assign(Object.assign({},n.keys),{[e]:t})}))},clear:()=>{v.setState({keys:{}})}},config:w}),E="0xf85210B21cC50302F477BA56686d2019dC9b67Ad",_=[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"owner",type:"bytes"}],name:"AlreadyOwner",type:"error"},{inputs:[],name:"Initialized",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidEthereumAddressOwner",type:"error"},{inputs:[{name:"key",type:"uint256"}],name:"InvalidNonceKey",type:"error"},{inputs:[{name:"owner",type:"bytes"}],name:"InvalidOwnerBytesLength",type:"error"},{inputs:[],name:"LastOwner",type:"error"},{inputs:[{name:"index",type:"uint256"}],name:"NoOwnerAtIndex",type:"error"},{inputs:[{name:"ownersRemaining",type:"uint256"}],name:"NotLastOwner",type:"error"},{inputs:[{name:"selector",type:"bytes4"}],name:"SelectorNotAllowed",type:"error"},{inputs:[],name:"Unauthorized",type:"error"},{inputs:[],name:"UnauthorizedCallContext",type:"error"},{inputs:[],name:"UpgradeFailed",type:"error"},{inputs:[{name:"index",type:"uint256"},{name:"expectedOwner",type:"bytes"},{name:"actualOwner",type:"bytes"}],name:"WrongOwnerAtIndex",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"AddOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"index",type:"uint256"},{indexed:!1,name:"owner",type:"bytes"}],name:"RemoveOwner",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"implementation",type:"address"}],name:"Upgraded",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"REPLAYABLE_NONCE_KEY",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"owner",type:"address"}],name:"addOwnerAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"addOwnerPublicKey",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"functionSelector",type:"bytes4"}],name:"canSkipChainIdValidation",outputs:[{name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"domainSeparator",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"entryPoint",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"executeBatch",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"calls",type:"bytes[]"}],name:"executeWithoutChainIdValidation",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHashWithoutChainId",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"$",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{name:"owners",type:"bytes[]"}],name:"initialize",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"isOwnerAddress",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"bytes"}],name:"isOwnerBytes",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"x",type:"bytes32"},{name:"y",type:"bytes32"}],name:"isOwnerPublicKey",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"},{name:"signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"result",type:"bytes4"}],stateMutability:"view",type:"function"},{inputs:[],name:"nextOwnerIndex",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"}],name:"ownerAtIndex",outputs:[{name:"",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[],name:"ownerCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"proxiableUUID",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeLastOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"index",type:"uint256"},{name:"owner",type:"bytes"}],name:"removeOwnerAtIndex",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"removedOwnersCount",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"hash",type:"bytes32"}],name:"replaySafeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{name:"newImplementation",type:"address"},{name:"data",type:"bytes"}],name:"upgradeToAndCall",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"callGasLimit",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"missingAccountFunds",type:"uint256"}],name:"validateUserOp",outputs:[{name:"validationData",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],A=[{inputs:[{name:"implementation_",type:"address"}],stateMutability:"payable",type:"constructor"},{inputs:[],name:"OwnerRequired",type:"error"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"createAccount",outputs:[{name:"account",type:"address"}],stateMutability:"payable",type:"function"},{inputs:[{name:"owners",type:"bytes[]"},{name:"nonce",type:"uint256"}],name:"getAddress",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"implementation",outputs:[{name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"initCodeHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"}],P=-32004,k=-32602,O=-32603,S=4001,I=4100,C=4200,B=4900,T={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."},4902:{standard:"EIP-3085",message:"Unrecognized chain ID."}},j="Unspecified error message.";function M(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j;if(e&&Number.isInteger(e)){var n;let t=e.toString();if(R(T,t))return T[t].message;if((n=e)>=-32099&&n<=-32e3)return"Unspecified server error."}return t}function N(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function R(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function U(e,t){return"object"==typeof e&&null!==e&&t in e&&"string"==typeof e[t]}let z=e=>V(k,e),F=e=>V(O,e),D=e=>V(P,e),L=e=>H(S,e),q=e=>H(I,e),G=e=>H(C,e),K=e=>H(B,e);function V(e,t){let[n,r]=W(t);return new Z(e,n||M(e),r)}function H(e,t){let[n,r]=W(t);return new J(e,n||M(e),r)}function W(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}class Z extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}}class J extends Z{constructor(e,t,n){if(!function(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}(e))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}function Y(e){return"object"==typeof e&&null!==e&&"code"in e&&"data"in e&&-32090===e.code&&"object"==typeof e.data&&null!==e.data&&"type"in e.data&&"INSUFFICIENT_FUNDS"===e.data.type}function Q(e){return"object"==typeof e&&null!==e&&"details"in e}function X(e,t,n){if(null==e)throw null!=t?t:z({message:null!=n?n:"value must be present",data:e})}function $(e,t){if(!Array.isArray(e))throw z({message:null!=t?t:"value must be an array",data:e})}let{checkCrossOriginOpenerPolicy:ee,getCrossOriginOpenerPolicy:et}={getCrossOriginOpenerPolicy:()=>void 0===o?"undefined":o,checkCrossOriginOpenerPolicy:async()=>{if("u"<typeof window){o="non-browser-env";return}try{let e="".concat(window.location.origin).concat(window.location.pathname),t=await fetch(e,{method:"HEAD"});if(!t.ok)throw Error("HTTP error! status: ".concat(t.status));let n=t.headers.get("Cross-Origin-Opener-Policy");o=null!=n?n:"null","same-origin"===o&&console.error("Base Account SDK requires the Cross-Origin-Opener-Policy header to not be set to 'same-origin'. This is to ensure that the SDK can communicate with the Base Account app.\n\nPlease see https://docs.base.org/smart-wallet/quickstart#cross-origin-opener-policy for more information.")}catch(e){console.error("Error checking Cross-Origin-Opener-Policy:",e.message),o="error"}}};function en(e){if("function"!=typeof e)throw Error("toAccount is not a function")}var er=n(4647),ea=n(9609),ei=n(7373);function eo(e,t,n){var r,a,i;window.ClientAnalytics&&(null==(r=window.ClientAnalytics)||r.logEvent(e,Object.assign(Object.assign({},t),{sdkVersion:m,sdkName:p,appName:null!=(i=null==(a=x.config.get().metadata)?void 0:a.appName)?i:"",appOrigin:window.location.origin}),n))}n(4302),n(686),n(8978),n(2205),n(768),n(6235),n(5281),(ed=em||(em={})).unknown="unknown",ed.banner="banner",ed.button="button",ed.card="card",ed.chart="chart",ed.content_script="content_script",ed.dropdown="dropdown",ed.link="link",ed.page="page",ed.modal="modal",ed.table="table",ed.search_bar="search_bar",ed.service_worker="service_worker",ed.text="text",ed.text_input="text_input",ed.tray="tray",ed.checkbox="checkbox",ed.icon="icon",(ef=eh||(eh={})).unknown="unknown",ef.blur="blur",ef.click="click",ef.change="change",ef.dismiss="dismiss",ef.focus="focus",ef.hover="hover",ef.select="select",ef.measurement="measurement",ef.move="move",ef.process="process",ef.render="render",ef.scroll="scroll",ef.view="view",ef.search="search",ef.keyPress="keyPress",ef.error="error",(ep=ey||(ey={})).low="low",ep.high="high",n(6954);let es=e=>{let{dialogContext:t}=e;eo("dialog.".concat(t,".shown"),{action:eh.render,componentType:em.modal,dialogContext:t},ey.high)},ec=e=>{let{dialogContext:t}=e;eo("dialog.".concat(t,".dismissed"),{action:eh.dismiss,componentType:em.modal,dialogContext:t},ey.high)},el=e=>{let{dialogContext:t,dialogAction:n}=e;eo("dialog.".concat(t,".action_clicked"),{action:eh.click,componentType:em.button,dialogContext:t,dialogAction:n},ey.high)},eu="BaseSans-Regular";n(2021);var ed,ef,ep,em,eh,ey,eb,eg,ev,ew,ex,eE,e_,eA,eP,ek,eO={},eS=[],eI=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,eC=Array.isArray;function eB(e,t){for(var n in t)e[n]=t[n];return e}function eT(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ej(e,t,n){var r,a,i,o={};for(i in t)"key"==i?r=t[i]:"ref"==i?a=t[i]:o[i]=t[i];if(arguments.length>2&&(o.children=arguments.length>3?eb.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===o[i]&&(o[i]=e.defaultProps[i]);return eM(e,o,r,a,null)}function eM(e,t,n,r,a){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==a?++ev:a,__i:-1,__u:0};return null==a&&null!=eg.vnode&&eg.vnode(i),i}function eN(e){return e.children}function eR(e,t){this.props=e,this.context=t}function eU(e,t){if(null==t)return e.__?eU(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?eU(e):null}function ez(e){(!e.__d&&(e.__d=!0)&&ew.push(e)&&!eF.__r++||ex!==eg.debounceRendering)&&((ex=eg.debounceRendering)||eE)(eF)}function eF(){var e,t,n,r,a,i,o,s;for(ew.sort(e_);e=ew.shift();)e.__d&&(t=ew.length,r=void 0,i=(a=(n=e).__v).__e,o=[],s=[],n.__P&&((r=eB({},a)).__v=a.__v+1,eg.vnode&&eg.vnode(r),eK(n.__P,r,a,n.__n,n.__P.namespaceURI,32&a.__u?[i]:null,o,null==i?eU(a):i,!!(32&a.__u),s),r.__v=a.__v,r.__.__k[r.__i]=r,eV(o,r,s),r.__e!=i&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(r)),ew.length>t&&ew.sort(e_));eF.__r=0}function eD(e,t,n,r,a,i,o,s,c,l,u){var d,f,p,m,h,y=r&&r.__k||eS,b=t.length;for(n.__d=c,function(e,t,n){var r,a,i,o,s,c=t.length,l=n.length,u=l,d=0;for(e.__k=[],r=0;r<c;r++)null!=(a=t[r])&&"boolean"!=typeof a&&"function"!=typeof a?(o=r+d,(a=e.__k[r]="string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?eM(null,a,null,null,null):eC(a)?eM(eN,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?eM(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,i=null,-1!==(s=a.__i=function(e,t,n,r){var a=e.key,i=e.type,o=n-1,s=n+1,c=t[n];if(null===c||c&&a==c.key&&i===c.type&&0==(131072&c.__u))return n;if(r>+(null!=c&&0==(131072&c.__u)))for(;o>=0||s<t.length;){if(o>=0){if((c=t[o])&&0==(131072&c.__u)&&a==c.key&&i===c.type)return o;o--}if(s<t.length){if((c=t[s])&&0==(131072&c.__u)&&a==c.key&&i===c.type)return s;s++}}return -1}(a,n,o,u))&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof a.type&&(a.__u|=65536)):s!==o&&(s==o-1?d--:s==o+1?d++:(s>o?d--:d++,a.__u|=65536))):a=e.__k[r]=null;if(u)for(r=0;r<l;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=eU(i)),function e(t,n,r){var a,i;if(eg.unmount&&eg.unmount(t),(a=t.ref)&&(a.current&&a.current!==t.__e||eH(a,null,n)),null!=(a=t.__c)){if(a.componentWillUnmount)try{a.componentWillUnmount()}catch(e){eg.__e(e,n)}a.base=a.__P=null}if(a=t.__k)for(i=0;i<a.length;i++)a[i]&&e(a[i],n,r||"function"!=typeof t.type);r||eT(t.__e),t.__c=t.__=t.__e=t.__d=void 0}(i,i))}(n,t,y),c=n.__d,d=0;d<b;d++)null!=(p=n.__k[d])&&(f=-1===p.__i?eO:y[p.__i]||eO,p.__i=d,eK(e,p,f,a,i,o,s,c,l,u),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&eH(f.ref,null,p),u.push(p.ref,p.__c||m,p)),null==h&&null!=m&&(h=m),65536&p.__u||f.__k===p.__k?c=function e(t,n,r){var a,i;if("function"==typeof t.type){for(a=t.__k,i=0;a&&i<a.length;i++)a[i]&&(a[i].__=t,n=e(a[i],n,r));return n}t.__e!=n&&(n&&t.type&&!r.contains(n)&&(n=eU(t)),r.insertBefore(t.__e,n||null),n=t.__e);do n=n&&n.nextSibling;while(null!=n&&8===n.nodeType)return n}(p,c,e):"function"==typeof p.type&&void 0!==p.__d?c=p.__d:m&&(c=m.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=c,n.__e=h}function eL(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||eI.test(t)?n:n+"px"}function eq(e,t,n,r,a){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||eL(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||eL(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=eA,e.addEventListener(t,i?ek:eP,i)):e.removeEventListener(t,i?ek:eP,i);else{if("http://www.w3.org/2000/svg"==a)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function eG(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=eA++;else if(t.t<n.u)return;return n(eg.event?eg.event(t):t)}}}function eK(e,t,n,r,a,i,o,s,c,l){var u,d,f,p,m,h,y,b,g,v,w,x,E,_,A,P,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),i=[s=t.__e=n.__e]),(u=eg.__b)&&u(t);e:if("function"==typeof k)try{if(b=t.props,g="prototype"in k&&k.prototype.render,v=(u=k.contextType)&&r[u.__c],w=u?v?v.props.value:u.__:r,n.__c?y=(d=t.__c=n.__c).__=d.__E:(g?t.__c=d=new k(b,w):(t.__c=d=new eR(b,w),d.constructor=k,d.render=eW),v&&v.sub(d),d.props=b,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=eB({},d.__s)),eB(d.__s,k.getDerivedStateFromProps(b,d.__s))),p=d.props,m=d.state,d.__v=t,f)g&&null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==k.getDerivedStateFromProps&&b!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(b,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(b,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=b,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(b,d.__s,w),g&&null!=d.componentDidUpdate&&d.__h.push(function(){d.componentDidUpdate(p,m,h)})}if(d.context=w,d.props=b,d.__P=e,d.__e=!1,E=eg.__r,_=0,g){for(d.state=d.__s,d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),A=0;A<d._sb.length;A++)d.__h.push(d._sb[A]);d._sb=[]}else do d.__d=!1,E&&E(t),u=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++_<25)d.state=d.__s,null!=d.getChildContext&&(r=eB(eB({},r),d.getChildContext())),g&&!f&&null!=d.getSnapshotBeforeUpdate&&(h=d.getSnapshotBeforeUpdate(p,m)),eD(e,eC(P=null!=u&&u.type===eN&&null==u.key?u.props.children:u)?P:[P],t,n,r,a,i,o,s,c,l),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),y&&(d.__E=d.__=null)}catch(e){if(t.__v=null,c||null!=i){for(t.__u|=c?160:32;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;eg.__e(e,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,a,i,o,s,c){var l,u,d,f,p,m,h,y=n.props,b=t.props,g=t.type;if("svg"===g?a="http://www.w3.org/2000/svg":"math"===g?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=i){for(l=0;l<i.length;l++)if((p=i[l])&&"setAttribute"in p==!!g&&(g?p.localName===g:3===p.nodeType)){e=p,i[l]=null;break}}if(null==e){if(null===g)return document.createTextNode(b);e=document.createElementNS(a,g,b.is&&b),s&&(eg.__m&&eg.__m(t,i),s=!1),i=null}if(null===g)y===b||s&&e.data===b||(e.data=b);else{if(i=i&&eb.call(e.childNodes),y=n.props||eO,!s&&null!=i)for(y={},l=0;l<e.attributes.length;l++)y[(p=e.attributes[l]).name]=p.value;for(l in y)if(p=y[l],"children"==l);else if("dangerouslySetInnerHTML"==l)d=p;else if(!(l in b)){if("value"==l&&"defaultValue"in b||"checked"==l&&"defaultChecked"in b)continue;eq(e,l,null,p,a)}for(l in b)p=b[l],"children"==l?f=p:"dangerouslySetInnerHTML"==l?u=p:"value"==l?m=p:"checked"==l?h=p:s&&"function"!=typeof p||y[l]===p||eq(e,l,p,y[l],a);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),eD(e,eC(f)?f:[f],t,n,r,"foreignObject"===g?"http://www.w3.org/1999/xhtml":a,i,o,i?i[0]:n.__k&&eU(n,0),s,c),null!=i)for(l=i.length;l--;)eT(i[l]);s||(l="value","progress"===g&&null==m?e.removeAttribute("value"):void 0===m||m===e[l]&&("progress"!==g||m)&&("option"!==g||m===y[l])||eq(e,l,m,y[l],a),l="checked",void 0!==h&&h!==e[l]&&eq(e,l,h,y[l],a))}return e}(n.__e,t,n,r,a,i,o,c,l);(u=eg.diffed)&&u(t)}function eV(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)eH(n[r],n[++r],n[++r]);eg.__c&&eg.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){eg.__e(e,t.__v)}})}function eH(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){eg.__e(e,n)}}function eW(e,t,n){return this.constructor(e,n)}function eZ(e,t,n){var r,a,i,o;eg.__&&eg.__(e,t),a=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],o=[],eK(t,e=(!r&&n||t).__k=ej(eN,null,[e]),a||eO,eO,t.namespaceURI,!r&&n?[n]:a?null:t.firstChild?eb.call(t.childNodes):null,i,!r&&n?n:a?a.__e:t.firstChild,r,o),eV(i,e,o)}eb=eS.slice,eg={__e:function(e,t,n,r){for(var a,i,o;t=t.__;)if((a=t.__c)&&!a.__)try{if((i=a.constructor)&&null!=i.getDerivedStateFromError&&(a.setState(i.getDerivedStateFromError(e)),o=a.__d),null!=a.componentDidCatch&&(a.componentDidCatch(e,r||{}),o=a.__d),o)return a.__E=a}catch(t){e=t}throw e}},ev=0,eR.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=eB({},this.state),"function"==typeof e&&(e=e(eB({},n),this.props)),e&&eB(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ez(this))},eR.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ez(this))},eR.prototype.render=eN,ew=[],eE="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,e_=function(e,t){return e.__v.__b-t.__v.__b},eF.__r=0,eA=0,eP=eG(!1),ek=eG(!0);var eJ=0;function eY(e,t,n,r,a,i){t||(t={});var o,s,c=t;"ref"in t&&(o=t.ref,delete t.ref);var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--eJ,__i:-1,__u:0,__source:a,__self:i};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===c[s]&&(c[s]=o[s]);return eg.vnode&&eg.vnode(l),l}var eQ=n(4362);async function eX(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;return"".concat(e.slice(0,2+t),"...").concat(e.slice(-t))}(e)}let e$=e=>{let{fill:t}=e;return eY("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:eY("path",{d:"M0 2.014C0 1.58105 0 1.36457 0.0815779 1.19805C0.159686 1.03861 0.288611 0.909686 0.448049 0.831578C0.61457 0.75 0.831047 0.75 1.264 0.75H14.736C15.169 0.75 15.3854 0.75 15.552 0.831578C15.7114 0.909686 15.8403 1.03861 15.9184 1.19805C16 1.36457 16 1.58105 16 2.014V15.486C16 15.919 16 16.1354 15.9184 16.302C15.8403 16.4614 15.7114 16.5903 15.552 16.6684C15.3854 16.75 15.169 16.75 14.736 16.75H1.264C0.831047 16.75 0.61457 16.75 0.448049 16.6684C0.288611 16.5903 0.159686 16.4614 0.0815779 16.302C0 16.1354 0 15.919 0 15.486V2.014Z",fill:"blue"===t?"#0000FF":"#FFF"})})};n(8723),n(1178);var e0,e1,e6,e5,e2=0,e8=[],e3=eg,e9=e3.__b,e4=e3.__r,e7=e3.diffed,te=e3.__c,tt=e3.unmount,tn=e3.__;function tr(e,t){e3.__h&&e3.__h(e1,e,e2||t),e2=0;var n=e1.__H||(e1.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ta(e){return e2=1,function(e,t){var n=tr(e0++,2);if(n.t=e,!n.__c&&(n.__=[td(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=e1,!e1.u)){var r=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,r);var o=!1;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&n.__c.props===e)&&(!a||a.call(this,e,t,r))};e1.u=!0;var a=e1.shouldComponentUpdate,i=e1.componentWillUpdate;e1.componentWillUpdate=function(e,t,n){if(this.__e){var o=a;a=void 0,r(e,t,n),a=o}i&&i.call(this,e,t,n)},e1.shouldComponentUpdate=r}return n.__N||n.__}(td,e)}function ti(e,t){var n=tr(e0++,3);!e3.__s&&tu(n.__H,t)&&(n.__=e,n.i=t,e1.__H.__h.push(n))}function to(){for(var e;e=e8.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tc),e.__H.__h.forEach(tl),e.__H.__h=[]}catch(t){e.__H.__h=[],e3.__e(t,e.__v)}}e3.__b=function(e){e1=null,e9&&e9(e)},e3.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tn&&tn(e,t)},e3.__r=function(e){e4&&e4(e),e0=0;var t=(e1=e.__c).__H;t&&(e6===e1?(t.__h=[],e1.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0})):(t.__h.forEach(tc),t.__h.forEach(tl),t.__h=[],e0=0)),e6=e1},e3.diffed=function(e){e7&&e7(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==e8.push(t)&&e5===e3.requestAnimationFrame||((e5=e3.requestAnimationFrame)||function(e){var t,n=function(){clearTimeout(r),ts&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);ts&&(t=requestAnimationFrame(n))})(to)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.i=void 0})),e6=e1=null},e3.__c=function(e,t){t.some(function(e){try{e.__h.forEach(tc),e.__h=e.__h.filter(function(e){return!e.__||tl(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],e3.__e(n,e.__v)}}),te&&te(e,t)},e3.unmount=function(e){tt&&tt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{tc(e)}catch(e){t=e}}),n.__H=void 0,t&&e3.__e(t,n.__v))};var ts="function"==typeof requestAnimationFrame;function tc(e){var t=e1,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),e1=t}function tl(e){var t=e1;e.__c=e.__(),e1=t}function tu(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function td(e,t){return