/*! For license information please see main.ad292e5f.js.LICENSE.txt */
!function(){var e={1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},9998:function(e,t,n){var r=n(7061).default;!function(e){"use strict";function t(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){e.done?a(e.value):new n((function(t){t(e.value)})).then(i,s)}l((r=r.apply(e,t||[])).next())}))}var n;(n=e.Orientation||(e.Orientation={}))[n.TOP_LEFT=1]="TOP_LEFT",n[n.TOP_RIGHT=2]="TOP_RIGHT",n[n.BOTTOM_RIGHT=3]="BOTTOM_RIGHT",n[n.BOTTOM_LEFT=4]="BOTTOM_LEFT",n[n.LEFT_TOP=5]="LEFT_TOP",n[n.RIGHT_TOP=6]="RIGHT_TOP",n[n.RIGHT_BOTTOM=7]="RIGHT_BOTTOM",n[n.LEFT_BOTTOM=8]="LEFT_BOTTOM";var a=new WeakMap;function o(n){return t(this,void 0,void 0,r().mark((function t(){var a,o,l,c,u,d,p,f,m,h,x,g,b,v,y,w,k,j,N,A,S;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n instanceof ArrayBuffer||n instanceof Blob){t.next=2;break}throw new TypeError("Unexpected input type");case 2:return a=0,o=s(n),t.next=6,i(n,a,4);case 6:if(l=t.sent,a+=l.byteLength,c=new DataView(l),u=c.getUint16(0),d=c.getUint16(2),65496!==u){t.next=47;break}p=l.slice(2);case 13:if(65505!==(f=new DataView(p).getUint16(0))){t.next=29;break}return t.next=17,i(n,a,8);case 17:if(m=t.sent,17784!==(h=new DataView(m)).getUint16(2)||26982!==h.getUint16(4)||0!==h.getUint16(6)){t.next=25;break}return a+=m.byteLength,t.abrupt("break",45);case 25:x=h.getUint16(0),a+=x;case 27:t.next=40;break;case 29:if(!(65504<=f&&f<=65519)){t.next=39;break}return t.next=32,i(n,a,2);case 32:g=t.sent,a+=g.byteLength,b=new DataView(g).getUint16(0),a+=b-2,t.next=40;break;case 39:return t.abrupt("return",e.Orientation.TOP_LEFT);case 40:return t.next=42,i(n,a,2);case 42:p=t.sent,a+=p.byteLength;case 44:if(a<o){t.next=13;break}case 45:t.next=52;break;case 47:if(!(18761===u&&10752===d||19789===u&&42===d)){t.next=51;break}a=0,t.next=52;break;case 51:return t.abrupt("return",e.Orientation.TOP_LEFT);case 52:return t.next=54,i(n,a,8);case 54:return v=t.sent,y=new DataView(v),w=18761===y.getUint16(0),k=y.getUint32(4,w),a+=k,t.next=61,i(n,a,2);case 61:j=t.sent,a+=j.byteLength,N=new DataView(j).getUint16(0,w);case 64:if(!(N-- >0)){t.next=80;break}return t.next=67,i(n,a,12);case 67:if(A=t.sent,a+=A.byteLength,274!==new DataView(A).getUint16(0,w)){t.next=78;break}if(!(1<=(S=new DataView(A.slice(8,12)).getUint16(0,w))&&S<=8)){t.next=77;break}return t.abrupt("return",S);case 77:throw new Error("Unexpected Orientation Value");case 78:t.next=64;break;case 80:return t.abrupt("return",e.Orientation.TOP_LEFT);case 81:case"end":return t.stop()}}),t)})))}function i(e,t,n){return e instanceof Blob?new Promise((function(r,o){var i=a.get(e);i||(i=new FileReader,a.set(e,i)),i.onerror=function(e){i.onerror=null,i.onload=null,o(e)},i.onload=function(){i.onerror=null,i.onload=null,r(i.result)},i.readAsArrayBuffer(e.slice(t,t+n))})):Promise.resolve(e.slice(t,t+n))}function s(e){return e instanceof Blob?e.size:e.byteLength}e.getOrientation=o,Object.defineProperty(e,"__esModule",{value:!0})}(t)},2110:function(e,t,n){"use strict";var r=n(8309),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?i:s[e.$$typeof]||a}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=i;var c=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(m){var a=f(n);a&&a!==m&&e(t,a,r)}var i=u(n);d&&(i=i.concat(d(n)));for(var s=l(t),h=l(n),x=0;x<i.length;++x){var g=i[x];if(!o[g]&&(!r||!r[g])&&(!h||!h[g])&&(!s||!s[g])){var b=p(n,g);try{c(t,g,b)}catch(v){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,a=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,i=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,p=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,x=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,v=n?Symbol.for("react.responder"):60118,y=n?Symbol.for("react.scope"):60119;function w(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case d:case o:case s:case i:case f:return e;default:switch(e=e&&e.$$typeof){case c:case p:case x:case h:case l:return e;default:return t}}case a:return t}}}function k(e){return w(e)===d}t.AsyncMode=u,t.ConcurrentMode=d,t.ContextConsumer=c,t.ContextProvider=l,t.Element=r,t.ForwardRef=p,t.Fragment=o,t.Lazy=x,t.Memo=h,t.Portal=a,t.Profiler=s,t.StrictMode=i,t.Suspense=f,t.isAsyncMode=function(e){return k(e)||w(e)===u},t.isConcurrentMode=k,t.isContextConsumer=function(e){return w(e)===c},t.isContextProvider=function(e){return w(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===p},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===x},t.isMemo=function(e){return w(e)===h},t.isPortal=function(e){return w(e)===a},t.isProfiler=function(e){return w(e)===s},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===f},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===d||e===s||e===i||e===f||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===x||e.$$typeof===h||e.$$typeof===l||e.$$typeof===c||e.$$typeof===p||e.$$typeof===b||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},t.typeOf=w},8309:function(e,t,n){"use strict";e.exports=n(746)},8136:function(e,t,n){e.exports=n(166)},4872:function(e){"use strict";var t=!("undefined"===typeof window||!window.document||!window.document.createElement),n={canUseDOM:t,canUseWorkers:"undefined"!==typeof Worker,canUseEventListeners:t&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t};e.exports=n},5811:function(e){var t,n,r,a,o,i,s,l,c,u,d,p,f,m,h,x=!1;function g(){if(!x){x=!0;var e=navigator.userAgent,g=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),b=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(p=/\b(iPhone|iP[ao]d)/.exec(e),f=/\b(iP[ao]d)/.exec(e),u=/Android/i.exec(e),m=/FBAN\/\w+;/i.exec(e),h=/Mobile/i.exec(e),d=!!/Win64/.exec(e),g){(t=g[1]?parseFloat(g[1]):g[5]?parseFloat(g[5]):NaN)&&document&&document.documentMode&&(t=document.documentMode);var v=/(?:Trident\/(\d+.\d+))/.exec(e);i=v?parseFloat(v[1])+4:t,n=g[2]?parseFloat(g[2]):NaN,r=g[3]?parseFloat(g[3]):NaN,(a=g[4]?parseFloat(g[4]):NaN)?(g=/(?:Chrome\/(\d+\.\d+))/.exec(e),o=g&&g[1]?parseFloat(g[1]):NaN):o=NaN}else t=n=r=o=a=NaN;if(b){if(b[1]){var y=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);s=!y||parseFloat(y[1].replace("_","."))}else s=!1;l=!!b[2],c=!!b[3]}else s=l=c=!1}}var b={ie:function(){return g()||t},ieCompatibilityMode:function(){return g()||i>t},ie64:function(){return b.ie()&&d},firefox:function(){return g()||n},opera:function(){return g()||r},webkit:function(){return g()||a},safari:function(){return b.webkit()},chrome:function(){return g()||o},windows:function(){return g()||l},osx:function(){return g()||s},linux:function(){return g()||c},iphone:function(){return g()||p},mobile:function(){return g()||p||f||u||h},nativeApp:function(){return g()||m},android:function(){return g()||u},ipad:function(){return g()||f}};e.exports=b},5780:function(e,t,n){"use strict";var r,a=n(4872);a.canUseDOM&&(r=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("","")),e.exports=function(e,t){if(!a.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,o=n in document;if(!o){var i=document.createElement("div");i.setAttribute(n,"return;"),o="function"===typeof i[n]}return!o&&r&&"wheel"===e&&(o=document.implementation.hasFeature("Events.wheel","3.0")),o}},166:function(e,t,n){"use strict";var r=n(5811),a=n(5780);function o(e){var t=0,n=0,r=0,a=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,a=10*n,"deltaY"in e&&(a=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||a)&&e.deltaMode&&(1==e.deltaMode?(r*=40,a*=40):(r*=800,a*=800)),r&&!t&&(t=r<1?-1:1),a&&!n&&(n=a<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:a}}o.getEventType=function(){return r.firefox()?"DOMMouseScroll":a("wheel")?"wheel":"mousewheel"},e.exports=o},8281:function(e,t,n){var r,a=n(7061).default,o=n(1588).default,i=n(3808).default,s=n(6115).default,l=n(1655).default,c=n(6389).default,u=n(3496).default,d=n(6690).default,p=n(9728).default;window,r=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){"use strict";var r=this&&this.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();Object.defineProperty(t,"__esModule",{value:!0});var a=256,o=function(){function e(e){void 0===e&&(e="="),this._paddingCharacter=e}return e.prototype.encodedLength=function(e){return this._paddingCharacter?(e+2)/3*4|0:(8*e+5)/6|0},e.prototype.encode=function(e){for(var t="",n=0;n<e.length-2;n+=3){var r=e[n]<<16|e[n+1]<<8|e[n+2];t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),t+=this._encodeByte(r>>>6&63),t+=this._encodeByte(r>>>0&63)}var a=e.length-n;return a>0&&(r=e[n]<<16|(2===a?e[n+1]<<8:0),t+=this._encodeByte(r>>>18&63),t+=this._encodeByte(r>>>12&63),t+=2===a?this._encodeByte(r>>>6&63):this._paddingCharacter||"",t+=this._paddingCharacter||""),t},e.prototype.maxDecodedLength=function(e){return this._paddingCharacter?e/4*3|0:(6*e+7)/8|0},e.prototype.decodedLength=function(e){return this.maxDecodedLength(e.length-this._getPaddingLength(e))},e.prototype.decode=function(e){if(0===e.length)return new Uint8Array(0);for(var t=this._getPaddingLength(e),n=e.length-t,r=new Uint8Array(this.maxDecodedLength(n)),o=0,i=0,s=0,l=0,c=0,u=0,d=0;i<n-4;i+=4)l=this._decodeChar(e.charCodeAt(i+0)),c=this._decodeChar(e.charCodeAt(i+1)),u=this._decodeChar(e.charCodeAt(i+2)),d=this._decodeChar(e.charCodeAt(i+3)),r[o++]=l<<2|c>>>4,r[o++]=c<<4|u>>>2,r[o++]=u<<6|d,s|=l&a,s|=c&a,s|=u&a,s|=d&a;if(i<n-1&&(l=this._decodeChar(e.charCodeAt(i)),c=this._decodeChar(e.charCodeAt(i+1)),r[o++]=l<<2|c>>>4,s|=l&a,s|=c&a),i<n-2&&(u=this._decodeChar(e.charCodeAt(i+2)),r[o++]=c<<4|u>>>2,s|=u&a),i<n-3&&(d=this._decodeChar(e.charCodeAt(i+3)),r[o++]=u<<6|d,s|=d&a),0!==s)throw new Error("Base64Coder: incorrect characters for decoding");return r},e.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-15,t+=62-e>>>8&3,String.fromCharCode(t)},e.prototype._decodeChar=function(e){var t=a;return t+=(42-e&e-44)>>>8&-256+e-43+62,t+=(46-e&e-48)>>>8&-256+e-47+63,t+=(47-e&e-58)>>>8&-256+e-48+52,t+=(64-e&e-91)>>>8&-256+e-65+0,t+=(96-e&e-123)>>>8&-256+e-97+26},e.prototype._getPaddingLength=function(e){var t=0;if(this._paddingCharacter){for(var n=e.length-1;n>=0&&e[n]===this._paddingCharacter;n--)t++;if(e.length<4||t>2)throw new Error("Base64Coder: incorrect padding")}return t},e}();t.Coder=o;var i=new o;t.encode=function(e){return i.encode(e)},t.decode=function(e){return i.decode(e)};var s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype._encodeByte=function(e){var t=e;return t+=65,t+=25-e>>>8&6,t+=51-e>>>8&-75,t+=61-e>>>8&-13,t+=62-e>>>8&49,String.fromCharCode(t)},t.prototype._decodeChar=function(e){var t=a;return t+=(44-e&e-46)>>>8&-256+e-45+62,t+=(94-e&e-96)>>>8&-256+e-95+63,t+=(47-e&e-58)>>>8&-256+e-48+52,t+=(64-e&e-91)>>>8&-256+e-65+0,t+=(96-e&e-123)>>>8&-256+e-97+26},t}(o);t.URLSafeCoder=s;var l=new s;t.encodeURLSafe=function(e){return l.encode(e)},t.decodeURLSafe=function(e){return l.decode(e)},t.encodedLength=function(e){return i.encodedLength(e)},t.maxDecodedLength=function(e){return i.maxDecodedLength(e)},t.decodedLength=function(e){return i.decodedLength(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="utf8: invalid string",a="utf8: invalid source encoding";function o(e){for(var t=0,n=0;n<e.length;n++){var a=e.charCodeAt(n);if(a<128)t+=1;else if(a<2048)t+=2;else if(a<55296)t+=3;else{if(!(a<=57343))throw new Error(r);if(n>=e.length-1)throw new Error(r);n++,t+=4}}return t}t.encode=function(e){for(var t=new Uint8Array(o(e)),n=0,r=0;r<e.length;r++){var a=e.charCodeAt(r);a<128?t[n++]=a:a<2048?(t[n++]=192|a>>6,t[n++]=128|63&a):a<55296?(t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a):(r++,a=(1023&a)<<10,a|=1023&e.charCodeAt(r),a+=65536,t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a)}return t},t.encodedLength=o,t.decode=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(128&r){var o=void 0;if(r<224){if(n>=e.length)throw new Error(a);if(128!==(192&(i=e[++n])))throw new Error(a);r=(31&r)<<6|63&i,o=128}else if(r<240){if(n>=e.length-1)throw new Error(a);var i=e[++n],s=e[++n];if(128!==(192&i)||128!==(192&s))throw new Error(a);r=(15&r)<<12|(63&i)<<6|63&s,o=2048}else{if(!(r<248))throw new Error(a);if(n>=e.length-2)throw new Error(a);i=e[++n],s=e[++n];var l=e[++n];if(128!==(192&i)||128!==(192&s)||128!==(192&l))throw new Error(a);r=(15&r)<<18|(63&i)<<12|(63&s)<<6|63&l,o=65536}if(r<o||r>=55296&&r<=57343)throw new Error(a);if(r>=65536){if(r>1114111)throw new Error(a);r-=65536,t.push(String.fromCharCode(55296|r>>10)),r=56320|1023&r}}t.push(String.fromCharCode(r))}return t.join("")}},function(e,t,n){e.exports=n(3).default},function(e,t,n){"use strict";n.r(t);var r,f=function(){function e(t,n){d(this,e),this.lastId=0,this.prefix=t,this.name=n}return p(e,[{key:"create",value:function(e){this.lastId++;var t=this.lastId,n=this.prefix+t,r=this.name+"["+t+"]",a=!1,o=function(){a||(e.apply(null,arguments),a=!0)};return this[t]=o,{number:t,id:n,name:r,callback:o}}},{key:"remove",value:function(e){delete this[e.number]}}]),e}(),m=new f("_pusher_script_","Pusher.ScriptReceivers"),h={VERSION:"8.3.0",PROTOCOL:7,wsPort:80,wssPort:443,wsPath:"",httpHost:"sockjs.pusher.com",httpPort:80,httpsPort:443,httpPath:"/pusher",stats_host:"stats.pusher.com",authEndpoint:"/pusher/auth",authTransport:"ajax",activityTimeout:12e4,pongTimeout:3e4,unavailableTimeout:1e4,userAuthentication:{endpoint:"/pusher/user-auth",transport:"ajax"},channelAuthorization:{endpoint:"/pusher/auth",transport:"ajax"},cdn_http:"http://js.pusher.com",cdn_https:"https://js.pusher.com",dependency_suffix:""},x=function(){function e(t){d(this,e),this.options=t,this.receivers=t.receivers||m,this.loading={}}return p(e,[{key:"load",value:function(e,t,n){var r=this;if(r.loading[e]&&r.loading[e].length>0)r.loading[e].push(n);else{r.loading[e]=[n];var a=kt.createScriptRequest(r.getPath(e,t)),o=r.receivers.create((function(t){if(r.receivers.remove(o),r.loading[e]){var n=r.loading[e];delete r.loading[e];for(var i=function(e){e||a.cleanup()},s=0;s<n.length;s++)n[s](t,i)}}));a.send(o)}}},{key:"getRoot",value:function(e){var t=kt.getDocument().location.protocol;return(e&&e.useTLS||"https:"===t?this.options.cdn_https:this.options.cdn_http).replace(/\/*$/,"")+"/"+this.options.version}},{key:"getPath",value:function(e,t){return this.getRoot(t)+"/"+e+this.options.suffix+".js"}}]),e}(),g=new f("_pusher_dependencies","Pusher.DependenciesReceivers"),b=new x({cdn_http:h.cdn_http,cdn_https:h.cdn_https,version:h.VERSION,suffix:h.dependency_suffix,receivers:g}),v={baseUrl:"https://pusher.com",urls:{authenticationEndpoint:{path:"/docs/channels/server_api/authenticating_users"},authorizationEndpoint:{path:"/docs/channels/server_api/authorizing-users/"},javascriptQuickStart:{path:"/docs/javascript_quick_start"},triggeringClientEvents:{path:"/docs/client_api_guide/client_events#trigger-events"},encryptedChannelSupport:{fullUrl:"https://github.com/pusher/pusher-js/tree/cc491015371a4bde5743d1c87a0fbac0feb53195#encrypted-channel-support"}}},y=function(e){var t,n=v.urls[e];return n?(n.fullUrl?t=n.fullUrl:n.path&&(t=v.baseUrl+n.path),t?"".concat("See:"," ").concat(t):""):""};!function(e){e.UserAuthentication="user-authentication",e.ChannelAuthorization="channel-authorization"}(r||(r={}));for(var w=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),k=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),j=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),N=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),A=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),S=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),C=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),E=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),r=t.call(this,e),Object.setPrototypeOf(s(r),(this instanceof n?this.constructor:void 0).prototype),r}return p(n)}(u(Error)),P=function(e){l(n,e);var t=c(n);function n(e,r){var a;return d(this,n),(a=t.call(this,r)).status=e,Object.setPrototypeOf(s(a),(this instanceof n?this.constructor:void 0).prototype),a}return p(n)}(u(Error)),F=function(e,t,n,a,o){var i=kt.createXHR();for(var s in i.open("POST",n.endpoint,!0),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),n.headers)i.setRequestHeader(s,n.headers[s]);if(null!=n.headersProvider){var l=n.headersProvider();for(var s in l)i.setRequestHeader(s,l[s])}return i.onreadystatechange=function(){if(4===i.readyState)if(200===i.status){var e,t=!1;try{e=JSON.parse(i.responseText),t=!0}catch(l){o(new P(200,"JSON returned from ".concat(a.toString()," endpoint was invalid, yet status code was 200. Data was: ").concat(i.responseText)),null)}t&&o(null,e)}else{var s="";switch(a){case r.UserAuthentication:s=y("authenticationEndpoint");break;case r.ChannelAuthorization:s="Clients must be authorized to join private or presence channels. ".concat(y("authorizationEndpoint"))}o(new P(i.status,"Unable to retrieve auth string from ".concat(a.toString()," endpoint - ")+"received status: ".concat(i.status," from ").concat(n.endpoint,". ").concat(s)),null)}},i.send(t),i},T=String.fromCharCode,O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",_={},D=0,I=O.length;D<I;D++)_[O.charAt(D)]=D;var R=function(e){var t=e.charCodeAt(0);return t<128?e:t<2048?T(192|t>>>6)+T(128|63&t):T(224|t>>>12&15)+T(128|t>>>6&63)+T(128|63&t)},L=function(e){return e.replace(/[^\x00-\x7F]/g,R)},M=function(e){var t=[0,2,1][e.length%3],n=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[O.charAt(n>>>18),O.charAt(n>>>12&63),t>=2?"=":O.charAt(n>>>6&63),t>=1?"=":O.charAt(63&n)].join("")},B=window.btoa||function(e){return e.replace(/[\s\S]{1,3}/g,M)},U=function(){function e(t,n,r,a){var o=this;d(this,e),this.clear=n,this.timer=t((function(){o.timer&&(o.timer=a(o.timer))}),r)}return p(e,[{key:"isRunning",value:function(){return null!==this.timer}},{key:"ensureAborted",value:function(){this.timer&&(this.clear(this.timer),this.timer=null)}}]),e}();function z(e){window.clearTimeout(e)}function H(e){window.clearInterval(e)}var W=function(e){l(n,e);var t=c(n);function n(e,r){return d(this,n),t.call(this,setTimeout,z,e,(function(e){return r(),null}))}return p(n)}(U),V=function(e){l(n,e);var t=c(n);function n(e,r){return d(this,n),t.call(this,setInterval,H,e,(function(e){return r(),e}))}return p(n)}(U),Q={now:function(){return Date.now?Date.now():(new Date).valueOf()},defer:function(e){return new W(0,e)},method:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Array.prototype.slice.call(arguments,1);return function(t){return t[e].apply(t,a.concat(arguments))}}},Y=Q;function q(e){for(var t=0;t<(arguments.length<=1?0:arguments.length-1);t++){var n=t+1<1||arguments.length<=t+1?void 0:arguments[t+1];for(var r in n)n[r]&&n[r].constructor&&n[r].constructor===Object?e[r]=q(e[r]||{},n[r]):e[r]=n[r]}return e}function G(){for(var e=["Pusher"],t=0;t<arguments.length;t++)"string"===typeof arguments[t]?e.push(arguments[t]):e.push(oe(arguments[t]));return e.join(" : ")}function X(e,t){var n=Array.prototype.indexOf;if(null===e)return-1;if(n&&e.indexOf===n)return e.indexOf(t);for(var r=0,a=e.length;r<a;r++)if(e[r]===t)return r;return-1}function J(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(e[n],n,e)}function K(e){var t=[];return J(e,(function(e,n){t.push(n)})),t}function Z(e,t,n){for(var r=0;r<e.length;r++)t.call(n||window,e[r],r,e)}function $(e,t){for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r,e,n));return n}function ee(e,t){t=t||function(e){return!!e};for(var n=[],r=0;r<e.length;r++)t(e[r],r,e,n)&&n.push(e[r]);return n}function te(e,t){var n={};return J(e,(function(r,a){(t&&t(r,a,e,n)||Boolean(r))&&(n[a]=r)})),n}function ne(e,t){for(var n=0;n<e.length;n++)if(t(e[n],n,e))return!0;return!1}function re(e){return function(e,t){var n={};return J(e,(function(e,r){n[r]=t(e)})),n}(e,(function(e){return"object"===typeof e&&(e=oe(e)),encodeURIComponent((t=e.toString(),B(L(t))));var t}))}function ae(e){return $(function(e){var t=[];return J(e,(function(e,n){t.push([n,e])})),t}(re(te(e,(function(e){return void 0!==e})))),Y.method("join","=")).join("&")}function oe(e){try{return JSON.stringify(e)}catch(t){return JSON.stringify(function(e){var t=[],n=[];return function e(r,a){var o,i,s;switch(typeof r){case"object":if(!r)return null;for(o=0;o<t.length;o+=1)if(t[o]===r)return{$ref:n[o]};if(t.push(r),n.push(a),"[object Array]"===Object.prototype.toString.apply(r))for(s=[],o=0;o<r.length;o+=1)s[o]=e(r[o],a+"["+o+"]");else for(i in s={},r)Object.prototype.hasOwnProperty.call(r,i)&&(s[i]=e(r[i],a+"["+JSON.stringify(i)+"]"));return s;case"number":case"string":case"boolean":return r}}(e,"$")}(e))}}var ie=function(){function e(){d(this,e),this.globalLog=function(e){window.console&&window.console.log&&window.console.log(e)}}return p(e,[{key:"debug",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.log(this.globalLog,t)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.log(this.globalLogWarn,t)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.log(this.globalLogError,t)}},{key:"globalLogWarn",value:function(e){window.console&&window.console.warn?window.console.warn(e):this.globalLog(e)}},{key:"globalLogError",value:function(e){window.console&&window.console.error?window.console.error(e):this.globalLogWarn(e)}},{key:"log",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=G.apply(this,arguments);if(Ht.log)Ht.log(a);else if(Ht.logToConsole){var o=e.bind(this);o(a)}}}]),e}(),se=new ie,le=function(e,t,n,r,a){void 0===n.headers&&null==n.headersProvider||se.warn("To send headers with the ".concat(r.toString()," request, you must use AJAX, rather than JSONP."));var o=e.nextAuthCallbackID.toString();e.nextAuthCallbackID++;var i=e.getDocument(),s=i.createElement("script");e.auth_callbacks[o]=function(e){a(null,e)};var l="Pusher.auth_callbacks['"+o+"']";s.src=n.endpoint+"?callback="+encodeURIComponent(l)+"&"+t;var c=i.getElementsByTagName("head")[0]||i.documentElement;c.insertBefore(s,c.firstChild)},ce=function(){function e(t){d(this,e),this.src=t}return p(e,[{key:"send",value:function(e){var t=this,n="Error loading "+t.src;t.script=document.createElement("script"),t.script.id=e.id,t.script.src=t.src,t.script.type="text/javascript",t.script.charset="UTF-8",t.script.addEventListener?(t.script.onerror=function(){e.callback(n)},t.script.onload=function(){e.callback(null)}):t.script.onreadystatechange=function(){"loaded"!==t.script.readyState&&"complete"!==t.script.readyState||e.callback(null)},void 0===t.script.async&&document.attachEvent&&/opera/i.test(navigator.userAgent)?(t.errorScript=document.createElement("script"),t.errorScript.id=e.id+"_error",t.errorScript.text=e.name+"('"+n+"');",t.script.async=t.errorScript.async=!1):t.script.async=!0;var r=document.getElementsByTagName("head")[0];r.insertBefore(t.script,r.firstChild),t.errorScript&&r.insertBefore(t.errorScript,t.script.nextSibling)}},{key:"cleanup",value:function(){this.script&&(this.script.onload=this.script.onerror=null,this.script.onreadystatechange=null),this.script&&this.script.parentNode&&this.script.parentNode.removeChild(this.script),this.errorScript&&this.errorScript.parentNode&&this.errorScript.parentNode.removeChild(this.errorScript),this.script=null,this.errorScript=null}}]),e}(),ue=function(){function e(t,n){d(this,e),this.url=t,this.data=n}return p(e,[{key:"send",value:function(e){if(!this.request){var t=ae(this.data),n=this.url+"/"+e.number+"?"+t;this.request=kt.createScriptRequest(n),this.request.send(e)}}},{key:"cleanup",value:function(){this.request&&this.request.cleanup()}}]),e}(),de={name:"jsonp",getAgent:function(e,t){return function(n,r){var a="http"+(t?"s":"")+"://"+(e.host||e.options.host)+e.options.path,o=kt.createJSONPRequest(a,n),i=kt.ScriptReceivers.create((function(t,n){m.remove(i),o.cleanup(),n&&n.host&&(e.host=n.host),r&&r(t,n)}));o.send(i)}}};function pe(e,t,n){return e+(t.useTLS?"s":"")+"://"+(t.useTLS?t.hostTLS:t.hostNonTLS)+n}function fe(e,t){return"/app/"+e+"?protocol="+h.PROTOCOL+"&client=js&version="+h.VERSION+(t?"&"+t:"")}var me={getInitial:function(e,t){return pe("ws",t,(t.httpPath||"")+fe(e,"flash=false"))}},he={getInitial:function(e,t){return pe("http",t,(t.httpPath||"/pusher")+fe(e))}},xe={getInitial:function(e,t){return pe("http",t,t.httpPath||"/pusher")},getPath:function(e,t){return fe(e)}},ge=function(){function e(){d(this,e),this._callbacks={}}return p(e,[{key:"get",value:function(e){return this._callbacks[be(e)]}},{key:"add",value:function(e,t,n){var r=be(e);this._callbacks[r]=this._callbacks[r]||[],this._callbacks[r].push({fn:t,context:n})}},{key:"remove",value:function(e,t,n){if(e||t||n){var r=e?[be(e)]:K(this._callbacks);t||n?this.removeCallback(r,t,n):this.removeAllCallbacks(r)}else this._callbacks={}}},{key:"removeCallback",value:function(e,t,n){Z(e,(function(e){this._callbacks[e]=ee(this._callbacks[e]||[],(function(e){return t&&t!==e.fn||n&&n!==e.context})),0===this._callbacks[e].length&&delete this._callbacks[e]}),this)}},{key:"removeAllCallbacks",value:function(e){Z(e,(function(e){delete this._callbacks[e]}),this)}}]),e}();function be(e){return"_"+e}var ve=function(){function e(t){d(this,e),this.callbacks=new ge,this.global_callbacks=[],this.failThrough=t}return p(e,[{key:"bind",value:function(e,t,n){return this.callbacks.add(e,t,n),this}},{key:"bind_global",value:function(e){return this.global_callbacks.push(e),this}},{key:"unbind",value:function(e,t,n){return this.callbacks.remove(e,t,n),this}},{key:"unbind_global",value:function(e){return e?(this.global_callbacks=ee(this.global_callbacks||[],(function(t){return t!==e})),this):(this.global_callbacks=[],this)}},{key:"unbind_all",value:function(){return this.unbind(),this.unbind_global(),this}},{key:"emit",value:function(e,t,n){for(var r=0;r<this.global_callbacks.length;r++)this.global_callbacks[r](e,t);var a=this.callbacks.get(e),o=[];if(n?o.push(t,n):t&&o.push(t),a&&a.length>0)for(r=0;r<a.length;r++)a[r].fn.apply(a[r].context||window,o);else this.failThrough&&this.failThrough(e,t);return this}}]),e}(),ye=function(e){l(n,e);var t=c(n);function n(e,r,a,o,i){var s;return d(this,n),(s=t.call(this)).initialize=kt.transportConnectionInitializer,s.hooks=e,s.name=r,s.priority=a,s.key=o,s.options=i,s.state="new",s.timeline=i.timeline,s.activityTimeout=i.activityTimeout,s.id=s.timeline.generateUniqueID(),s}return p(n,[{key:"handlesActivityChecks",value:function(){return Boolean(this.hooks.handlesActivityChecks)}},{key:"supportsPing",value:function(){return Boolean(this.hooks.supportsPing)}},{key:"connect",value:function(){var e=this;if(this.socket||"initialized"!==this.state)return!1;var t=this.hooks.urls.getInitial(this.key,this.options);try{this.socket=this.hooks.getSocket(t,this.options)}catch(n){return Y.defer((function(){e.onError(n),e.changeState("closed")})),!1}return this.bindListeners(),se.debug("Connecting",{transport:this.name,url:t}),this.changeState("connecting"),!0}},{key:"close",value:function(){return!!this.socket&&(this.socket.close(),!0)}},{key:"send",value:function(e){var t=this;return"open"===this.state&&(Y.defer((function(){t.socket&&t.socket.send(e)})),!0)}},{key:"ping",value:function(){"open"===this.state&&this.supportsPing()&&this.socket.ping()}},{key:"onOpen",value:function(){this.hooks.beforeOpen&&this.hooks.beforeOpen(this.socket,this.hooks.urls.getPath(this.key,this.options)),this.changeState("open"),this.socket.onopen=void 0}},{key:"onError",value:function(e){this.emit("error",{type:"WebSocketError",error:e}),this.timeline.error(this.buildTimelineMessage({error:e.toString()}))}},{key:"onClose",value:function(e){e?this.changeState("closed",{code:e.code,reason:e.reason,wasClean:e.wasClean}):this.changeState("closed"),this.unbindListeners(),this.socket=void 0}},{key:"onMessage",value:function(e){this.emit("message",e)}},{key:"onActivity",value:function(){this.emit("activity")}},{key:"bindListeners",value:function(){var e=this;this.socket.onopen=function(){e.onOpen()},this.socket.onerror=function(t){e.onError(t)},this.socket.onclose=function(t){e.onClose(t)},this.socket.onmessage=function(t){e.onMessage(t)},this.supportsPing()&&(this.socket.onactivity=function(){e.onActivity()})}},{key:"unbindListeners",value:function(){this.socket&&(this.socket.onopen=void 0,this.socket.onerror=void 0,this.socket.onclose=void 0,this.socket.onmessage=void 0,this.supportsPing()&&(this.socket.onactivity=void 0))}},{key:"changeState",value:function(e,t){this.state=e,this.timeline.info(this.buildTimelineMessage({state:e,params:t})),this.emit(e,t)}},{key:"buildTimelineMessage",value:function(e){return q({cid:this.id},e)}}]),n}(ve),we=function(){function e(t){d(this,e),this.hooks=t}return p(e,[{key:"isSupported",value:function(e){return this.hooks.isSupported(e)}},{key:"createConnection",value:function(e,t,n,r){return new ye(this.hooks,e,t,n,r)}}]),e}(),ke=new we({urls:me,handlesActivityChecks:!1,supportsPing:!1,isInitialized:function(){return Boolean(kt.getWebSocketAPI())},isSupported:function(){return Boolean(kt.getWebSocketAPI())},getSocket:function(e){return kt.createWebSocket(e)}}),je={urls:he,handlesActivityChecks:!1,supportsPing:!0,isInitialized:function(){return!0}},Ne=q({getSocket:function(e){return kt.HTTPFactory.createStreamingSocket(e)}},je),Ae=q({getSocket:function(e){return kt.HTTPFactory.createPollingSocket(e)}},je),Se={isSupported:function(){return kt.isXHRSupported()}},Ce={ws:ke,xhr_streaming:new we(q({},Ne,Se)),xhr_polling:new we(q({},Ae,Se))},Ee=new we({file:"sockjs",urls:xe,handlesActivityChecks:!0,supportsPing:!1,isSupported:function(){return!0},isInitialized:function(){return void 0!==window.SockJS},getSocket:function(e,t){return new window.SockJS(e,null,{js_path:b.getPath("sockjs",{useTLS:t.useTLS}),ignore_null_origin:t.ignoreNullOrigin})},beforeOpen:function(e,t){e.send(JSON.stringify({path:t}))}}),Pe={isSupported:function(e){return kt.isXDRSupported(e.useTLS)}},Fe=new we(q({},Ne,Pe)),Te=new we(q({},Ae,Pe));Ce.xdr_streaming=Fe,Ce.xdr_polling=Te,Ce.sockjs=Ee;var Oe=Ce,_e=new(function(e){l(n,e);var t=c(n);function n(){var e;d(this,n),e=t.call(this);var r=s(e);return void 0!==window.addEventListener&&(window.addEventListener("online",(function(){r.emit("online")}),!1),window.addEventListener("offline",(function(){r.emit("offline")}),!1)),e}return p(n,[{key:"isOnline",value:function(){return void 0===window.navigator.onLine||window.navigator.onLine}}]),n}(ve)),De=function(){function e(t,n,r){d(this,e),this.manager=t,this.transport=n,this.minPingDelay=r.minPingDelay,this.maxPingDelay=r.maxPingDelay,this.pingDelay=void 0}return p(e,[{key:"createConnection",value:function(e,t,n,r){var a=this;r=q({},r,{activityTimeout:this.pingDelay});var o=this.transport.createConnection(e,t,n,r),i=null,s=function e(t){if(o.unbind("closed",e),1002===t.code||1003===t.code)a.manager.reportDeath();else if(!t.wasClean&&i){var n=Y.now()-i;n<2*a.maxPingDelay&&(a.manager.reportDeath(),a.pingDelay=Math.max(n/2,a.minPingDelay))}};return o.bind("open",(function e(){o.unbind("open",e),o.bind("closed",s),i=Y.now()})),o}},{key:"isSupported",value:function(e){return this.manager.isAlive()&&this.transport.isSupported(e)}}]),e}(),Ie={decodeMessage:function(e){try{var t=JSON.parse(e.data),n=t.data;if("string"===typeof n)try{n=JSON.parse(t.data)}catch(a){}var r={event:t.event,channel:t.channel,data:n};return t.user_id&&(r.user_id=t.user_id),r}catch(a){throw{type:"MessageParseError",error:a,data:e.data}}},encodeMessage:function(e){return JSON.stringify(e)},processHandshake:function(e){var t=Ie.decodeMessage(e);if("pusher:connection_established"===t.event){if(!t.data.activity_timeout)throw"No activity timeout specified in handshake";return{action:"connected",id:t.data.socket_id,activityTimeout:1e3*t.data.activity_timeout}}if("pusher:error"===t.event)return{action:this.getCloseAction(t.data),error:this.getCloseError(t.data)};throw"Invalid handshake"},getCloseAction:function(e){return e.code<4e3?e.code>=1002&&e.code<=1004?"backoff":null:4e3===e.code?"tls_only":e.code<4100?"refused":e.code<4200?"backoff":e.code<4300?"retry":"refused"},getCloseError:function(e){return 1e3!==e.code&&1001!==e.code?{type:"PusherError",data:{code:e.code,message:e.reason||e.message}}:null}},Re=Ie,Le=function(e){l(n,e);var t=c(n);function n(e,r){var a;return d(this,n),(a=t.call(this)).id=e,a.transport=r,a.activityTimeout=r.activityTimeout,a.bindListeners(),a}return p(n,[{key:"handlesActivityChecks",value:function(){return this.transport.handlesActivityChecks()}},{key:"send",value:function(e){return this.transport.send(e)}},{key:"send_event",value:function(e,t,n){var r={event:e,data:t};return n&&(r.channel=n),se.debug("Event sent",r),this.send(Re.encodeMessage(r))}},{key:"ping",value:function(){this.transport.supportsPing()?this.transport.ping():this.send_event("pusher:ping",{})}},{key:"close",value:function(){this.transport.close()}},{key:"bindListeners",value:function(){var e=this,t={message:function(t){var n;try{n=Re.decodeMessage(t)}catch(r){e.emit("error",{type:"MessageParseError",error:r,data:t.data})}if(void 0!==n){switch(se.debug("Event recd",n),n.event){case"pusher:error":e.emit("error",{type:"PusherError",data:n.data});break;case"pusher:ping":e.emit("ping");break;case"pusher:pong":e.emit("pong")}e.emit("message",n)}},activity:function(){e.emit("activity")},error:function(t){e.emit("error",t)},closed:function(t){n(),t&&t.code&&e.handleCloseEvent(t),e.transport=null,e.emit("closed")}},n=function(){J(t,(function(t,n){e.transport.unbind(n,t)}))};J(t,(function(t,n){e.transport.bind(n,t)}))}},{key:"handleCloseEvent",value:function(e){var t=Re.getCloseAction(e),n=Re.getCloseError(e);n&&this.emit("error",n),t&&this.emit(t,{action:t,error:n})}}]),n}(ve),Me=function(){function e(t,n){d(this,e),this.transport=t,this.callback=n,this.bindListeners()}return p(e,[{key:"close",value:function(){this.unbindListeners(),this.transport.close()}},{key:"bindListeners",value:function(){var e=this;this.onMessage=function(t){var n;e.unbindListeners();try{n=Re.processHandshake(t)}catch(r){return e.finish("error",{error:r}),void e.transport.close()}"connected"===n.action?e.finish("connected",{connection:new Le(n.id,e.transport),activityTimeout:n.activityTimeout}):(e.finish(n.action,{error:n.error}),e.transport.close())},this.onClosed=function(t){e.unbindListeners();var n=Re.getCloseAction(t)||"backoff",r=Re.getCloseError(t);e.finish(n,{error:r})},this.transport.bind("message",this.onMessage),this.transport.bind("closed",this.onClosed)}},{key:"unbindListeners",value:function(){this.transport.unbind("message",this.onMessage),this.transport.unbind("closed",this.onClosed)}},{key:"finish",value:function(e,t){this.callback(q({transport:this.transport,action:e},t))}}]),e}(),Be=function(){function e(t,n){d(this,e),this.timeline=t,this.options=n||{}}return p(e,[{key:"send",value:function(e,t){this.timeline.isEmpty()||this.timeline.send(kt.TimelineTransport.getAgent(this,e),t)}}]),e}(),Ue=function(e){l(n,e);var t=c(n);function n(e,r){var a;return d(this,n),(a=t.call(this,(function(t,n){se.debug("No callbacks on "+e+" for "+t)}))).name=e,a.pusher=r,a.subscribed=!1,a.subscriptionPending=!1,a.subscriptionCancelled=!1,a}return p(n,[{key:"authorize",value:function(e,t){return t(null,{auth:""})}},{key:"trigger",value:function(e,t){if(0!==e.indexOf("client-"))throw new w("Event '"+e+"' does not start with 'client-'");if(!this.subscribed){var n=y("triggeringClientEvents");se.warn("Client event triggered before channel 'subscription_succeeded' event . ".concat(n))}return this.pusher.send_event(e,t,this.name)}},{key:"disconnect",value:function(){this.subscribed=!1,this.subscriptionPending=!1}},{key:"handleEvent",value:function(e){var t=e.event,n=e.data;"pusher_internal:subscription_succeeded"===t?this.handleSubscriptionSucceededEvent(e):"pusher_internal:subscription_count"===t?this.handleSubscriptionCountEvent(e):0!==t.indexOf("pusher_internal:")&&this.emit(t,n,{})}},{key:"handleSubscriptionSucceededEvent",value:function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):this.emit("pusher:subscription_succeeded",e.data)}},{key:"handleSubscriptionCountEvent",value:function(e){e.data.subscription_count&&(this.subscriptionCount=e.data.subscription_count),this.emit("pusher:subscription_count",e.data)}},{key:"subscribe",value:function(){var e=this;this.subscribed||(this.subscriptionPending=!0,this.subscriptionCancelled=!1,this.authorize(this.pusher.connection.socket_id,(function(t,n){t?(e.subscriptionPending=!1,se.error(t.toString()),e.emit("pusher:subscription_error",Object.assign({},{type:"AuthError",error:t.message},t instanceof P?{status:t.status}:{}))):e.pusher.send_event("pusher:subscribe",{auth:n.auth,channel_data:n.channel_data,channel:e.name})})))}},{key:"unsubscribe",value:function(){this.subscribed=!1,this.pusher.send_event("pusher:unsubscribe",{channel:this.name})}},{key:"cancelSubscription",value:function(){this.subscriptionCancelled=!0}},{key:"reinstateSubscription",value:function(){this.subscriptionCancelled=!1}}]),n}(ve),ze=function(e){l(n,e);var t=c(n);function n(){return d(this,n),t.apply(this,arguments)}return p(n,[{key:"authorize",value:function(e,t){return this.pusher.config.channelAuthorizer({channelName:this.name,socketId:e},t)}}]),n}(Ue),He=function(){function e(){d(this,e),this.reset()}return p(e,[{key:"get",value:function(e){return Object.prototype.hasOwnProperty.call(this.members,e)?{id:e,info:this.members[e]}:null}},{key:"each",value:function(e){var t=this;J(this.members,(function(n,r){e(t.get(r))}))}},{key:"setMyID",value:function(e){this.myID=e}},{key:"onSubscription",value:function(e){this.members=e.presence.hash,this.count=e.presence.count,this.me=this.get(this.myID)}},{key:"addMember",value:function(e){return null===this.get(e.user_id)&&this.count++,this.members[e.user_id]=e.user_info,this.get(e.user_id)}},{key:"removeMember",value:function(e){var t=this.get(e.user_id);return t&&(delete this.members[e.user_id],this.count--),t}},{key:"reset",value:function(){this.members={},this.count=0,this.myID=null,this.me=null}}]),e}(),We=function(e,t,n,r){return new(n||(n=Promise))((function(a,o){function i(e){try{l(r.next(e))}catch(t){o(t)}}function s(e){try{l(r.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))},Ve=function(e){l(n,e);var t=c(n);function n(e,r){var a;return d(this,n),(a=t.call(this,e,r)).members=new He,a}return p(n,[{key:"authorize",value:function(e,t){var r=this;o(i(n.prototype),"authorize",this).call(this,e,(function(e,n){return We(r,void 0,void 0,a().mark((function r(){var o,i;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e){r.next=17;break}if(null==n.channel_data){r.next=7;break}o=JSON.parse(n.channel_data),this.members.setMyID(o.user_id),r.next=17;break;case 7:return r.next=9,this.pusher.user.signinDonePromise;case 9:if(null==this.pusher.user.user_data){r.next=13;break}this.members.setMyID(this.pusher.user.user_data.id),r.next=17;break;case 13:return i=y("authorizationEndpoint"),se.error("Invalid auth response for channel '".concat(this.name,"', ")+"expected 'channel_data' field. ".concat(i,", ")+"or the user should be signed in."),t("Invalid auth response"),r.abrupt("return");case 17:t(e,n);case 18:case"end":return r.stop()}}),r,this)})))}))}},{key:"handleEvent",value:function(e){var t=e.event;if(0===t.indexOf("pusher_internal:"))this.handleInternalEvent(e);else{var n=e.data,r={};e.user_id&&(r.user_id=e.user_id),this.emit(t,n,r)}}},{key:"handleInternalEvent",value:function(e){var t=e.event,n=e.data;switch(t){case"pusher_internal:subscription_succeeded":this.handleSubscriptionSucceededEvent(e);break;case"pusher_internal:subscription_count":this.handleSubscriptionCountEvent(e);break;case"pusher_internal:member_added":var r=this.members.addMember(n);this.emit("pusher:member_added",r);break;case"pusher_internal:member_removed":var a=this.members.removeMember(n);a&&this.emit("pusher:member_removed",a)}}},{key:"handleSubscriptionSucceededEvent",value:function(e){this.subscriptionPending=!1,this.subscribed=!0,this.subscriptionCancelled?this.pusher.unsubscribe(this.name):(this.members.onSubscription(e.data),this.emit("pusher:subscription_succeeded",this.members))}},{key:"disconnect",value:function(){this.members.reset(),o(i(n.prototype),"disconnect",this).call(this)}}]),n}(ze),Qe=n(1),Ye=n(0),qe=function(e){l(n,e);var t=c(n);function n(e,r,a){var o;return d(this,n),(o=t.call(this,e,r)).key=null,o.nacl=a,o}return p(n,[{key:"authorize",value:function(e,t){var r=this;o(i(n.prototype),"authorize",this).call(this,e,(function(e,n){if(e)t(e,n);else{var a=n.shared_secret;a?(r.key=Object(Ye.decode)(a),delete n.shared_secret,t(null,n)):t(new Error("No shared_secret key in auth payload for encrypted channel: ".concat(r.name)),null)}}))}},{key:"trigger",value:function(e,t){throw new S("Client events are not currently supported for encrypted channels")}},{key:"handleEvent",value:function(e){var t=e.event,r=e.data;0!==t.indexOf("pusher_internal:")&&0!==t.indexOf("pusher:")?this.handleEncryptedEvent(t,r):o(i(n.prototype),"handleEvent",this).call(this,e)}},{key:"handleEncryptedEvent",value:function(e,t){var n=this;if(this.key)if(t.ciphertext&&t.nonce){var r=Object(Ye.decode)(t.ciphertext);if(r.length<this.nacl.secretbox.overheadLength)se.error("Expected encrypted event ciphertext length to be ".concat(this.nacl.secretbox.overheadLength,", got: ").concat(r.length));else{var a=Object(Ye.decode)(t.nonce);if(a.length<this.nacl.secretbox.nonceLength)se.error("Expected encrypted event nonce length to be ".concat(this.nacl.secretbox.nonceLength,", got: ").concat(a.length));else{var o=this.nacl.secretbox.open(r,a,this.key);if(null===o)return se.debug("Failed to decrypt an event, probably because it was encrypted with a different key. Fetching a new key from the authEndpoint..."),void this.authorize(this.pusher.connection.socket_id,(function(t,i){t?se.error("Failed to make a request to the authEndpoint: ".concat(i,". Unable to fetch new key, so dropping encrypted event")):null!==(o=n.nacl.secretbox.open(r,a,n.key))?n.emit(e,n.getDataToEmit(o)):se.error("Failed to decrypt event with new key. Dropping encrypted event")}));this.emit(e,this.getDataToEmit(o))}}}else se.error("Unexpected format for encrypted event, expected object with `ciphertext` and `nonce` fields, got: "+t);else se.debug("Received encrypted event before key has been retrieved from the authEndpoint")}},{key:"getDataToEmit",value:function(e){var t=Object(Qe.decode)(e);try{return JSON.parse(t)}catch(n){return t}}}]),n}(ze),Ge=function(e){l(n,e);var t=c(n);function n(e,r){var a;d(this,n),(a=t.call(this)).state="initialized",a.connection=null,a.key=e,a.options=r,a.timeline=a.options.timeline,a.usingTLS=a.options.useTLS,a.errorCallbacks=a.buildErrorCallbacks(),a.connectionCallbacks=a.buildConnectionCallbacks(a.errorCallbacks),a.handshakeCallbacks=a.buildHandshakeCallbacks(a.errorCallbacks);var o=kt.getNetwork();return o.bind("online",(function(){a.timeline.info({netinfo:"online"}),"connecting"!==a.state&&"unavailable"!==a.state||a.retryIn(0)})),o.bind("offline",(function(){a.timeline.info({netinfo:"offline"}),a.connection&&a.sendActivityCheck()})),a.updateStrategy(),a}return p(n,[{key:"connect",value:function(){this.connection||this.runner||(this.strategy.isSupported()?(this.updateState("connecting"),this.startConnecting(),this.setUnavailableTimer()):this.updateState("failed"))}},{key:"send",value:function(e){return!!this.connection&&this.connection.send(e)}},{key:"send_event",value:function(e,t,n){return!!this.connection&&this.connection.send_event(e,t,n)}},{key:"disconnect",value:function(){this.disconnectInternally(),this.updateState("disconnected")}},{key:"isUsingTLS",value:function(){return this.usingTLS}},{key:"startConnecting",value:function(){var e=this;this.runner=this.strategy.connect(0,(function t(n,r){n?e.runner=e.strategy.connect(0,t):"error"===r.action?(e.emit("error",{type:"HandshakeError",error:r.error}),e.timeline.error({handshakeError:r.error})):(e.abortConnecting(),e.handshakeCallbacks[r.action](r))}))}},{key:"abortConnecting",value:function(){this.runner&&(this.runner.abort(),this.runner=null)}},{key:"disconnectInternally",value:function(){this.abortConnecting(),this.clearRetryTimer(),this.clearUnavailableTimer(),this.connection&&this.abandonConnection().close()}},{key:"updateStrategy",value:function(){this.strategy=this.options.getStrategy({key:this.key,timeline:this.timeline,useTLS:this.usingTLS})}},{key:"retryIn",value:function(e){var t=this;this.timeline.info({action:"retry",delay:e}),e>0&&this.emit("connecting_in",Math.round(e/1e3)),this.retryTimer=new W(e||0,(function(){t.disconnectInternally(),t.connect()}))}},{key:"clearRetryTimer",value:function(){this.retryTimer&&(this.retryTimer.ensureAborted(),this.retryTimer=null)}},{key:"setUnavailableTimer",value:function(){var e=this;this.unavailableTimer=new W(this.options.unavailableTimeout,(function(){e.updateState("unavailable")}))}},{key:"clearUnavailableTimer",value:function(){this.unavailableTimer&&this.unavailableTimer.ensureAborted()}},{key:"sendActivityCheck",value:function(){var e=this;this.stopActivityCheck(),this.connection.ping(),this.activityTimer=new W(this.options.pongTimeout,(function(){e.timeline.error({pong_timed_out:e.options.pongTimeout}),e.retryIn(0)}))}},{key:"resetActivityCheck",value:function(){var e=this;this.stopActivityCheck(),this.connection&&!this.connection.handlesActivityChecks()&&(this.activityTimer=new W(this.activityTimeout,(function(){e.sendActivityCheck()})))}},{key:"stopActivityCheck",value:function(){this.activityTimer&&this.activityTimer.ensureAborted()}},{key:"buildConnectionCallbacks",value:function(e){var t=this;return q({},e,{message:function(e){t.resetActivityCheck(),t.emit("message",e)},ping:function(){t.send_event("pusher:pong",{})},activity:function(){t.resetActivityCheck()},error:function(e){t.emit("error",e)},closed:function(){t.abandonConnection(),t.shouldRetry()&&t.retryIn(1e3)}})}},{key:"buildHandshakeCallbacks",value:function(e){var t=this;return q({},e,{connected:function(e){t.activityTimeout=Math.min(t.options.activityTimeout,e.activityTimeout,e.connection.activityTimeout||1/0),t.clearUnavailableTimer(),t.setConnection(e.connection),t.socket_id=t.connection.id,t.updateState("connected",{socket_id:t.socket_id})}})}},{key:"buildErrorCallbacks",value:function(){var e=this,t=function(t){return function(n){n.error&&e.emit("error",{type:"WebSocketError",error:n.error}),t(n)}};return{tls_only:t((function(){e.usingTLS=!0,e.updateStrategy(),e.retryIn(0)})),refused:t((function(){e.disconnect()})),backoff:t((function(){e.retryIn(1e3)})),retry:t((function(){e.retryIn(0)}))}}},{key:"setConnection",value:function(e){for(var t in this.connection=e,this.connectionCallbacks)this.connection.bind(t,this.connectionCallbacks[t]);this.resetActivityCheck()}},{key:"abandonConnection",value:function(){if(this.connection){for(var e in this.stopActivityCheck(),this.connectionCallbacks)this.connection.unbind(e,this.connectionCallbacks[e]);var t=this.connection;return this.connection=null,t}}},{key:"updateState",value:function(e,t){var n=this.state;if(this.state=e,n!==e){var r=e;"connected"===r&&(r+=" with new socket ID "+t.socket_id),se.debug("State changed",n+" -> "+r),this.timeline.info({state:e,params:t}),this.emit("state_change",{previous:n,current:e}),this.emit(e,t)}}},{key:"shouldRetry",value:function(){return"connecting"===this.state||"connected"===this.state}}]),n}(ve),Xe=function(){function e(){d(this,e),this.channels={}}return p(e,[{key:"add",value:function(e,t){return this.channels[e]||(this.channels[e]=function(e,t){if(0===e.indexOf("private-encrypted-")){if(t.config.nacl)return Je.createEncryptedChannel(e,t,t.config.nacl);var n="Tried to subscribe to a private-encrypted- channel but no nacl implementation available",r=y("encryptedChannelSupport");throw new S("".concat(n,". ").concat(r))}if(0===e.indexOf("private-"))return Je.createPrivateChannel(e,t);if(0===e.indexOf("presence-"))return Je.createPresenceChannel(e,t);if(0===e.indexOf("#"))throw new k('Cannot create a channel with name "'+e+'".');return Je.createChannel(e,t)}(e,t)),this.channels[e]}},{key:"all",value:function(){return function(e){var t=[];return J(e,(function(e){t.push(e)})),t}(this.channels)}},{key:"find",value:function(e){return this.channels[e]}},{key:"remove",value:function(e){var t=this.channels[e];return delete this.channels[e],t}},{key:"disconnect",value:function(){J(this.channels,(function(e){e.disconnect()}))}}]),e}(),Je={createChannels:function(){return new Xe},createConnectionManager:function(e,t){return new Ge(e,t)},createChannel:function(e,t){return new Ue(e,t)},createPrivateChannel:function(e,t){return new ze(e,t)},createPresenceChannel:function(e,t){return new Ve(e,t)},createEncryptedChannel:function(e,t,n){return new qe(e,t,n)},createTimelineSender:function(e,t){return new Be(e,t)},createHandshake:function(e,t){return new Me(e,t)},createAssistantToTheTransportManager:function(e,t,n){return new De(e,t,n)}},Ke=function(){function e(t){d(this,e),this.options=t||{},this.livesLeft=this.options.lives||1/0}return p(e,[{key:"getAssistant",value:function(e){return Je.createAssistantToTheTransportManager(this,e,{minPingDelay:this.options.minPingDelay,maxPingDelay:this.options.maxPingDelay})}},{key:"isAlive",value:function(){return this.livesLeft>0}},{key:"reportDeath",value:function(){this.livesLeft-=1}}]),e}(),Ze=function(){function e(t,n){d(this,e),this.strategies=t,this.loop=Boolean(n.loop),this.failFast=Boolean(n.failFast),this.timeout=n.timeout,this.timeoutLimit=n.timeoutLimit}return p(e,[{key:"isSupported",value:function(){return ne(this.strategies,Y.method("isSupported"))}},{key:"connect",value:function(e,t){var n=this,r=this.strategies,a=0,o=this.timeout,i=null;return i=this.tryStrategy(r[a],e,{timeout:o,failFast:this.failFast},(function s(l,c){c?t(null,c):(a+=1,n.loop&&(a%=r.length),a<r.length?(o&&(o*=2,n.timeoutLimit&&(o=Math.min(o,n.timeoutLimit))),i=n.tryStrategy(r[a],e,{timeout:o,failFast:n.failFast},s)):t(!0))})),{abort:function(){i.abort()},forceMinPriority:function(t){e=t,i&&i.forceMinPriority(t)}}}},{key:"tryStrategy",value:function(e,t,n,r){var a=null,o=null;return n.timeout>0&&(a=new W(n.timeout,(function(){o.abort(),r(!0)}))),o=e.connect(t,(function(e,t){e&&a&&a.isRunning()&&!n.failFast||(a&&a.ensureAborted(),r(e,t))})),{abort:function(){a&&a.ensureAborted(),o.abort()},forceMinPriority:function(e){o.forceMinPriority(e)}}}}]),e}(),$e=function(){function e(t){d(this,e),this.strategies=t}return p(e,[{key:"isSupported",value:function(){return ne(this.strategies,Y.method("isSupported"))}},{key:"connect",value:function(e,t){return function(e,t,n){var r=$(e,(function(e,r,a,o){return e.connect(t,n(r,o))}));return{abort:function(){Z(r,et)},forceMinPriority:function(e){Z(r,(function(t){t.forceMinPriority(e)}))}}}(this.strategies,e,(function(e,n){return function(r,a){n[e].error=r,r?function(e){return function(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n,e))return!1;return!0}(e,(function(e){return Boolean(e.error)}))}(n)&&t(!0):(Z(n,(function(e){e.forceMinPriority(a.transport.priority)})),t(null,a))}}))}}]),e}();function et(e){e.error||e.aborted||(e.abort(),e.aborted=!0)}var tt=function(){function e(t,n,r){d(this,e),this.strategy=t,this.transports=n,this.ttl=r.ttl||18e5,this.usingTLS=r.useTLS,this.timeline=r.timeline}return p(e,[{key:"isSupported",value:function(){return this.strategy.isSupported()}},{key:"connect",value:function(e,t){var n=this.usingTLS,r=function(e){var t=kt.getLocalStorage();if(t)try{var n=t[nt(e)];if(n)return JSON.parse(n)}catch(r){rt(e)}return null}(n),a=r&&r.cacheSkipCount?r.cacheSkipCount:0,o=[this.strategy];if(r&&r.timestamp+this.ttl>=Y.now()){var i=this.transports[r.transport];i&&(["ws","wss"].includes(r.transport)||a>3?(this.timeline.info({cached:!0,transport:r.transport,latency:r.latency}),o.push(new Ze([i],{timeout:2*r.latency+1e3,failFast:!0}))):a++)}var s=Y.now(),l=o.pop().connect(e,(function r(i,c){i?(rt(n),o.length>0?(s=Y.now(),l=o.pop().connect(e,r)):t(i)):(function(e,t,n,r){var a=kt.getLocalStorage();if(a)try{a[nt(e)]=oe({timestamp:Y.now(),transport:t,latency:n,cacheSkipCount:r})}catch(o){}}(n,c.transport.name,Y.now()-s,a),t(null,c))}));return{abort:function(){l.abort()},forceMinPriority:function(t){e=t,l&&l.forceMinPriority(t)}}}}]),e}();function nt(e){return"pusherTransport"+(e?"TLS":"NonTLS")}function rt(e){var t=kt.getLocalStorage();if(t)try{delete t[nt(e)]}catch(n){}}var at=function(){function e(t,n){var r=n.delay;d(this,e),this.strategy=t,this.options={delay:r}}return p(e,[{key:"isSupported",value:function(){return this.strategy.isSupported()}},{key:"connect",value:function(e,t){var n,r=this.strategy,a=new W(this.options.delay,(function(){n=r.connect(e,t)}));return{abort:function(){a.ensureAborted(),n&&n.abort()},forceMinPriority:function(t){e=t,n&&n.forceMinPriority(t)}}}}]),e}(),ot=function(){function e(t,n,r){d(this,e),this.test=t,this.trueBranch=n,this.falseBranch=r}return p(e,[{key:"isSupported",value:function(){return(this.test()?this.trueBranch:this.falseBranch).isSupported()}},{key:"connect",value:function(e,t){return(this.test()?this.trueBranch:this.falseBranch).connect(e,t)}}]),e}(),it=function(){function e(t){d(this,e),this.strategy=t}return p(e,[{key:"isSupported",value:function(){return this.strategy.isSupported()}},{key:"connect",value:function(e,t){var n=this.strategy.connect(e,(function(e,r){r&&n.abort(),t(e,r)}));return n}}]),e}();function st(e){return function(){return e.isSupported()}}var lt,ct=function(e,t,n){var r={};function a(t,a,o,i,s){var l=n(e,t,a,o,i,s);return r[t]=l,l}var o,i=Object.assign({},t,{hostNonTLS:e.wsHost+":"+e.wsPort,hostTLS:e.wsHost+":"+e.wssPort,httpPath:e.wsPath}),s=Object.assign({},i,{useTLS:!0}),l=Object.assign({},t,{hostNonTLS:e.httpHost+":"+e.httpPort,hostTLS:e.httpHost+":"+e.httpsPort,httpPath:e.httpPath}),c={loop:!0,timeout:15e3,timeoutLimit:6e4},u=new Ke({minPingDelay:1e4,maxPingDelay:e.activityTimeout}),d=new Ke({lives:2,minPingDelay:1e4,maxPingDelay:e.activityTimeout}),p=a("ws","ws",3,i,u),f=a("wss","ws",3,s,u),m=a("sockjs","sockjs",1,l),h=a("xhr_streaming","xhr_streaming",1,l,d),x=a("xdr_streaming","xdr_streaming",1,l,d),g=a("xhr_polling","xhr_polling",1,l),b=a("xdr_polling","xdr_polling",1,l),v=new Ze([p],c),y=new Ze([f],c),w=new Ze([m],c),k=new Ze([new ot(st(h),h,x)],c),j=new Ze([new ot(st(g),g,b)],c),N=new Ze([new ot(st(k),new $e([k,new at(j,{delay:4e3})]),j)],c),A=new ot(st(N),N,w);return o=t.useTLS?new $e([v,new at(A,{delay:2e3})]):new $e([v,new at(y,{delay:2e3}),new at(A,{delay:5e3})]),new tt(new it(new ot(st(p),o,A)),r,{ttl:18e5,timeline:t.timeline,useTLS:t.useTLS})},ut={getRequest:function(e){var t=new window.XDomainRequest;return t.ontimeout=function(){e.emit("error",new j),e.close()},t.onerror=function(t){e.emit("error",t),e.close()},t.onprogress=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText)},t.onload=function(){t.responseText&&t.responseText.length>0&&e.onChunk(200,t.responseText),e.emit("finished",200),e.close()},t},abortRequest:function(e){e.ontimeout=e.onerror=e.onprogress=e.onload=null,e.abort()}},dt=function(e){l(n,e);var t=c(n);function n(e,r,a){var o;return d(this,n),(o=t.call(this)).hooks=e,o.method=r,o.url=a,o}return p(n,[{key:"start",value:function(e){var t=this;this.position=0,this.xhr=this.hooks.getRequest(this),this.unloader=function(){t.close()},kt.addUnloadListener(this.unloader),this.xhr.open(this.method,this.url,!0),this.xhr.setRequestHeader&&this.xhr.setRequestHeader("Content-Type","application/json"),this.xhr.send(e)}},{key:"close",value:function(){this.unloader&&(kt.removeUnloadListener(this.unloader),this.unloader=null),this.xhr&&(this.hooks.abortRequest(this.xhr),this.xhr=null)}},{key:"onChunk",value:function(e,t){for(;;){var n=this.advanceBuffer(t);if(!n)break;this.emit("chunk",{status:e,data:n})}this.isBufferTooLong(t)&&this.emit("buffer_too_long")}},{key:"advanceBuffer",value:function(e){var t=e.slice(this.position),n=t.indexOf("\n");return-1!==n?(this.position+=n+1,t.slice(0,n)):null}},{key:"isBufferTooLong",value:function(e){return this.position===e.length&&e.length>262144}}]),n}(ve);!function(e){e[e.CONNECTING=0]="CONNECTING",e[e.OPEN=1]="OPEN",e[e.CLOSED=3]="CLOSED"}(lt||(lt={}));var pt=lt,ft=1;function mt(e){var t=-1===e.indexOf("?")?"?":"&";return e+t+"t="+ +new Date+"&n="+ft++}function ht(e){return kt.randomInt(e)}var xt,gt=function(){function e(t,n){d(this,e),this.hooks=t,this.session=ht(1e3)+"/"+function(e){for(var t=[],n=0;n<e;n++)t.push(ht(32).toString(32));return t.join("")}(8),this.location=function(e){var t=/([^\?]*)\/*(\??.*)/.exec(e);return{base:t[1],queryString:t[2]}}(n),this.readyState=pt.CONNECTING,this.openStream()}return p(e,[{key:"send",value:function(e){return this.sendRaw(JSON.stringify([e]))}},{key:"ping",value:function(){this.hooks.sendHeartbeat(this)}},{key:"close",value:function(e,t){this.onClose(e,t,!0)}},{key:"sendRaw",value:function(e){if(this.readyState!==pt.OPEN)return!1;try{return kt.createSocketRequest("POST",mt((t=this.location,n=this.session,t.base+"/"+n+"/xhr_send"))).start(e),!0}catch(r){return!1}var t,n}},{key:"reconnect",value:function(){this.closeStream(),this.openStream()}},{key:"onClose",value:function(e,t,n){this.closeStream(),this.readyState=pt.CLOSED,this.onclose&&this.onclose({code:e,reason:t,wasClean:n})}},{key:"onChunk",value:function(e){var t;if(200===e.status)switch(this.readyState===pt.OPEN&&this.onActivity(),e.data.slice(0,1)){case"o":t=JSON.parse(e.data.slice(1)||"{}"),this.onOpen(t);break;case"a":t=JSON.parse(e.data.slice(1)||"[]");for(var n=0;n<t.length;n++)this.onEvent(t[n]);break;case"m":t=JSON.parse(e.data.slice(1)||"null"),this.onEvent(t);break;case"h":this.hooks.onHeartbeat(this);break;case"c":t=JSON.parse(e.data.slice(1)||"[]"),this.onClose(t[0],t[1],!0)}}},{key:"onOpen",value:function(e){this.readyState===pt.CONNECTING?(e&&e.hostname&&(this.location.base=function(e,t){var n=/(https?:\/\/)([^\/:]+)((\/|:)?.*)/.exec(e);return n[1]+t+n[3]}(this.location.base,e.hostname)),this.readyState=pt.OPEN,this.onopen&&this.onopen()):this.onClose(1006,"Server lost session",!0)}},{key:"onEvent",value:function(e){this.readyState===pt.OPEN&&this.onmessage&&this.onmessage({data:e})}},{key:"onActivity",value:function(){this.onactivity&&this.onactivity()}},{key:"onError",value:function(e){this.onerror&&this.onerror(e)}},{key:"openStream",value:function(){var e=this;this.stream=kt.createSocketRequest("POST",mt(this.hooks.getReceiveURL(this.location,this.session))),this.stream.bind("chunk",(function(t){e.onChunk(t)})),this.stream.bind("finished",(function(t){e.hooks.onFinished(e,t)})),this.stream.bind("buffer_too_long",(function(){e.reconnect()}));try{this.stream.start()}catch(t){Y.defer((function(){e.onError(t),e.onClose(1006,"Could not start streaming",!1)}))}}},{key:"closeStream",value:function(){this.stream&&(this.stream.unbind_all(),this.stream.close(),this.stream=null)}}]),e}(),bt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr_streaming"+e.queryString},onHeartbeat:function(e){e.sendRaw("[]")},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){e.onClose(1006,"Connection interrupted ("+t+")",!1)}},vt={getReceiveURL:function(e,t){return e.base+"/"+t+"/xhr"+e.queryString},onHeartbeat:function(){},sendHeartbeat:function(e){e.sendRaw("[]")},onFinished:function(e,t){200===t?e.reconnect():e.onClose(1006,"Connection interrupted ("+t+")",!1)}},yt={getRequest:function(e){var t=new(kt.getXHRAPI());return t.onreadystatechange=t.onprogress=function(){switch(t.readyState){case 3:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText);break;case 4:t.responseText&&t.responseText.length>0&&e.onChunk(t.status,t.responseText),e.emit("finished",t.status),e.close()}},t},abortRequest:function(e){e.onreadystatechange=null,e.abort()}},wt={createStreamingSocket:function(e){return this.createSocket(bt,e)},createPollingSocket:function(e){return this.createSocket(vt,e)},createSocket:function(e,t){return new gt(e,t)},createXHR:function(e,t){return this.createRequest(yt,e,t)},createRequest:function(e,t,n){return new dt(e,t,n)},createXDR:function(e,t){return this.createRequest(ut,e,t)}},kt={nextAuthCallbackID:1,auth_callbacks:{},ScriptReceivers:m,DependenciesReceivers:g,getDefaultStrategy:ct,Transports:Oe,transportConnectionInitializer:function(){var e=this;e.timeline.info(e.buildTimelineMessage({transport:e.name+(e.options.useTLS?"s":"")})),e.hooks.isInitialized()?e.changeState("initialized"):e.hooks.file?(e.changeState("initializing"),b.load(e.hooks.file,{useTLS:e.options.useTLS},(function(t,n){e.hooks.isInitialized()?(e.changeState("initialized"),n(!0)):(t&&e.onError(t),e.onClose(),n(!1))}))):e.onClose()},HTTPFactory:wt,TimelineTransport:de,getXHRAPI:function(){return window.XMLHttpRequest},getWebSocketAPI:function(){return window.WebSocket||window.MozWebSocket},setup:function(e){var t=this;window.Pusher=e;var n=function(){t.onDocumentBody(e.ready)};window.JSON?n():b.load("json2",{},n)},getDocument:function(){return document},getProtocol:function(){return this.getDocument().location.protocol},getAuthorizers:function(){return{ajax:F,jsonp:le}},onDocumentBody:function(e){var t=this;document.body?e():setTimeout((function(){t.onDocumentBody(e)}),0)},createJSONPRequest:function(e,t){return new ue(e,t)},createScriptRequest:function(e){return new ce(e)},getLocalStorage:function(){try{return window.localStorage}catch(e){return}},createXHR:function(){return this.getXHRAPI()?this.createXMLHttpRequest():this.createMicrosoftXHR()},createXMLHttpRequest:function(){return new(this.getXHRAPI())},createMicrosoftXHR:function(){return new ActiveXObject("Microsoft.XMLHTTP")},getNetwork:function(){return _e},createWebSocket:function(e){return new(this.getWebSocketAPI())(e)},createSocketRequest:function(e,t){if(this.isXHRSupported())return this.HTTPFactory.createXHR(e,t);if(this.isXDRSupported(0===t.indexOf("https:")))return this.HTTPFactory.createXDR(e,t);throw"Cross-origin HTTP requests are not supported"},isXHRSupported:function(){var e=this.getXHRAPI();return Boolean(e)&&void 0!==(new e).withCredentials},isXDRSupported:function(e){var t=e?"https:":"http:",n=this.getProtocol();return Boolean(window.XDomainRequest)&&n===t},addUnloadListener:function(e){void 0!==window.addEventListener?window.addEventListener("unload",e,!1):void 0!==window.attachEvent&&window.attachEvent("onunload",e)},removeUnloadListener:function(e){void 0!==window.addEventListener?window.removeEventListener("unload",e,!1):void 0!==window.detachEvent&&window.detachEvent("onunload",e)},randomInt:function(e){return Math.floor(function(){var e=(window.crypto||window.msCrypto).getRandomValues(new Uint32Array(1))[0];return e/Math.pow(2,32)}()*e)}};!function(e){e[e.ERROR=3]="ERROR",e[e.INFO=6]="INFO",e[e.DEBUG=7]="DEBUG"}(xt||(xt={}));var jt=xt,Nt=function(){function e(t,n,r){d(this,e),this.key=t,this.session=n,this.events=[],this.options=r||{},this.sent=0,this.uniqueID=0}return p(e,[{key:"log",value:function(e,t){e<=this.options.level&&(this.events.push(q({},t,{timestamp:Y.now()})),this.options.limit&&this.events.length>this.options.limit&&this.events.shift())}},{key:"error",value:function(e){this.log(jt.ERROR,e)}},{key:"info",value:function(e){this.log(jt.INFO,e)}},{key:"debug",value:function(e){this.log(jt.DEBUG,e)}},{key:"isEmpty",value:function(){return 0===this.events.length}},{key:"send",value:function(e,t){var n=this,r=q({session:this.session,bundle:this.sent+1,key:this.key,lib:"js",version:this.options.version,cluster:this.options.cluster,features:this.options.features,timeline:this.events},this.options.params);return this.events=[],e(r,(function(e,r){e||n.sent++,t&&t(e,r)})),!0}},{key:"generateUniqueID",value:function(){return this.uniqueID++,this.uniqueID}}]),e}(),At=function(){function e(t,n,r,a){d(this,e),this.name=t,this.priority=n,this.transport=r,this.options=a||{}}return p(e,[{key:"isSupported",value:function(){return this.transport.isSupported({useTLS:this.options.useTLS})}},{key:"connect",value:function(e,t){var n=this;if(!this.isSupported())return St(new E,t);if(this.priority<e)return St(new N,t);var r=!1,a=this.transport.createConnection(this.name,this.priority,this.options.key,this.options),o=null,i=function e(){a.unbind("initialized",e),a.connect()},s=function(){o=Je.createHandshake(a,(function(e){r=!0,u(),t(null,e)}))},l=function(e){u(),t(e)},c=function(){var e;u(),e=oe(a),t(new A(e))},u=function(){a.unbind("initialized",i),a.unbind("open",s),a.unbind("error",l),a.unbind("closed",c)};return a.bind("initialized",i),a.bind("open",s),a.bind("error",l),a.bind("closed",c),a.initialize(),{abort:function(){r||(u(),o?o.close():a.close())},forceMinPriority:function(e){r||n.priority<e&&(o?o.close():a.close())}}}}]),e}();function St(e,t){return Y.defer((function(){t(e)})),{abort:function(){},forceMinPriority:function(){}}}var Ct=kt.Transports,Et=function(e,t,n,r,a,o){var i,s=Ct[n];if(!s)throw new C(n);return e.enabledTransports&&-1===X(e.enabledTransports,t)||e.disabledTransports&&-1!==X(e.disabledTransports,t)?i=Pt:(a=Object.assign({ignoreNullOrigin:e.ignoreNullOrigin},a),i=new At(t,r,o?o.getAssistant(s):s,a)),i},Pt={isSupported:function(){return!1},connect:function(e,t){var n=Y.defer((function(){t(new E)}));return{abort:function(){n.ensureAborted()},forceMinPriority:function(){}}}},Ft=function(e){if("undefined"===typeof kt.getAuthorizers()[e.transport])throw"'".concat(e.transport,"' is not a recognized auth transport");return function(t,n){var a=function(e,t){var n="socket_id="+encodeURIComponent(e.socketId);for(var r in t.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){var a=t.paramsProvider();for(var r in a)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(a[r])}return n}(t,e);kt.getAuthorizers()[e.transport](kt,a,e,r.UserAuthentication,n)}},Tt=function(e){if("undefined"===typeof kt.getAuthorizers()[e.transport])throw"'".concat(e.transport,"' is not a recognized auth transport");return function(t,n){var a=function(e,t){var n="socket_id="+encodeURIComponent(e.socketId);for(var r in n+="&channel_name="+encodeURIComponent(e.channelName),t.params)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(t.params[r]);if(null!=t.paramsProvider){var a=t.paramsProvider();for(var r in a)n+="&"+encodeURIComponent(r)+"="+encodeURIComponent(a[r])}return n}(t,e);kt.getAuthorizers()[e.transport](kt,a,e,r.ChannelAuthorization,n)}};function Ot(e){return e.httpHost?e.httpHost:e.cluster?"sockjs-".concat(e.cluster,".pusher.com"):h.httpHost}function _t(e){return e.wsHost?e.wsHost:(t=e.cluster,"ws-".concat(t,".pusher.com"));var t}function Dt(e){return"https:"===kt.getProtocol()||!1!==e.forceTLS}function It(e){return"enableStats"in e?e.enableStats:"disableStats"in e&&!e.disableStats}function Rt(e){var t=Object.assign(Object.assign({},h.userAuthentication),e.userAuthentication);return"customHandler"in t&&null!=t.customHandler?t.customHandler:Ft(t)}function Lt(e,t){var n=function(e,t){var n;return"channelAuthorization"in e?n=Object.assign(Object.assign({},h.channelAuthorization),e.channelAuthorization):(n={transport:e.authTransport||h.authTransport,endpoint:e.authEndpoint||h.authEndpoint},"auth"in e&&("params"in e.auth&&(n.params=e.auth.params),"headers"in e.auth&&(n.headers=e.auth.headers)),"authorizer"in e&&(n.customHandler=function(e,t,n){var r={authTransport:t.transport,authEndpoint:t.endpoint,auth:{params:t.params,headers:t.headers}};return function(t,a){var o=e.channel(t.channelName);n(o,r).authorize(t.socketId,a)}}(t,n,e.authorizer))),n}(e,t);return"customHandler"in n&&null!=n.customHandler?n.customHandler:Tt(n)}var Mt=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),(r=t.call(this,(function(e,t){se.debug("No callbacks on watchlist events for ".concat(e))}))).pusher=e,r.bindWatchlistInternalEvent(),r}return p(n,[{key:"handleEvent",value:function(e){var t=this;e.data.events.forEach((function(e){t.emit(e.name,e)}))}},{key:"bindWatchlistInternalEvent",value:function(){var e=this;this.pusher.connection.bind("message",(function(t){"pusher_internal:watchlist_events"===t.event&&e.handleEvent(t)}))}}]),n}(ve),Bt=function(){var e,t;return{promise:new Promise((function(n,r){e=n,t=r})),resolve:e,reject:t}},Ut=function(e){l(n,e);var t=c(n);function n(e){var r;return d(this,n),(r=t.call(this,(function(e,t){se.debug("No callbacks on user for "+e)}))).signin_requested=!1,r.user_data=null,r.serverToUserChannel=null,r.signinDonePromise=null,r._signinDoneResolve=null,r._onAuthorize=function(e,t){if(e)return se.warn("Error during signin: ".concat(e)),void r._cleanup();r.pusher.send_event("pusher:signin",{auth:t.auth,user_data:t.user_data})},r.pusher=e,r.pusher.connection.bind("state_change",(function(e){var t=e.previous,n=e.current;"connected"!==t&&"connected"===n&&r._signin(),"connected"===t&&"connected"!==n&&(r._cleanup(),r._newSigninPromiseIfNeeded())})),r.watchlist=new Mt(e),r.pusher.connection.bind("message",(function(e){"pusher:signin_success"===e.event&&r._onSigninSuccess(e.data),r.serverToUserChannel&&r.serverToUserChannel.name===e.channel&&r.serverToUserChannel.handleEvent(e)})),r}return p(n,[{key:"signin",value:function(){this.signin_requested||(this.signin_requested=!0,this._signin())}},{key:"_signin",value:function(){this.signin_requested&&(this._newSigninPromiseIfNeeded(),"connected"===this.pusher.connection.state&&this.pusher.config.userAuthenticator({socketId:this.pusher.connection.socket_id},this._onAuthorize))}},{key:"_onSigninSuccess",value:function(e){try{this.user_data=JSON.parse(e.user_data)}catch(t){return se.error("Failed parsing user data after signin: ".concat(e.user_data)),void this._cleanup()}if("string"!==typeof this.user_data.id||""===this.user_data.id)return se.error("user_data doesn't contain an id. user_data: ".concat(this.user_data)),void this._cleanup();this._signinDoneResolve(),this._subscribeChannels()}},{key:"_subscribeChannels",value:function(){var e,t=this;this.serverToUserChannel=new Ue("#server-to-user-".concat(this.user_data.id),this.pusher),this.serverToUserChannel.bind_global((function(e,n){0!==e.indexOf("pusher_internal:")&&0!==e.indexOf("pusher:")&&t.emit(e,n)})),(e=this.serverToUserChannel).subscriptionPending&&e.subscriptionCancelled?e.reinstateSubscription():e.subscriptionPending||"connected"!==t.pusher.connection.state||e.subscribe()}},{key:"_cleanup",value:function(){this.user_data=null,this.serverToUserChannel&&(this.serverToUserChannel.unbind_all(),this.serverToUserChannel.disconnect(),this.serverToUserChannel=null),this.signin_requested&&this._signinDoneResolve()}},{key:"_newSigninPromiseIfNeeded",value:function(){if(this.signin_requested&&(!this.signinDonePromise||this.signinDonePromise.done)){var e=Bt(),t=e.promise,n=e.resolve;e.reject,t.done=!1;var r=function(){t.done=!0};t.then(r).catch(r),this.signinDonePromise=t,this._signinDoneResolve=n}}}]),n}(ve),zt=function(){function e(t,n){var r=this;d(this,e),function(e){if(null===e||void 0===e)throw"You must pass your app key when you instantiate Pusher."}(t),function(e){if(null==e)throw"You must pass an options object";if(null==e.cluster)throw"Options object must provide a cluster";"disableStats"in e&&se.warn("The disableStats option is deprecated in favor of enableStats")}(n),this.key=t,this.config=function(e,t){var n={activityTimeout:e.activityTimeout||h.activityTimeout,cluster:e.cluster,httpPath:e.httpPath||h.httpPath,httpPort:e.httpPort||h.httpPort,httpsPort:e.httpsPort||h.httpsPort,pongTimeout:e.pongTimeout||h.pongTimeout,statsHost:e.statsHost||h.stats_host,unavailableTimeout:e.unavailableTimeout||h.unavailableTimeout,wsPath:e.wsPath||h.wsPath,wsPort:e.wsPort||h.wsPort,wssPort:e.wssPort||h.wssPort,enableStats:It(e),httpHost:Ot(e),useTLS:Dt(e),wsHost:_t(e),userAuthenticator:Rt(e),channelAuthorizer:Lt(e,t)};return"disabledTransports"in e&&(n.disabledTransports=e.disabledTransports),"enabledTransports"in e&&(n.enabledTransports=e.enabledTransports),"ignoreNullOrigin"in e&&(n.ignoreNullOrigin=e.ignoreNullOrigin),"timelineParams"in e&&(n.timelineParams=e.timelineParams),"nacl"in e&&(n.nacl=e.nacl),n}(n,this),this.channels=Je.createChannels(),this.global_emitter=new ve,this.sessionID=kt.randomInt(1e9),this.timeline=new Nt(this.key,this.sessionID,{cluster:this.config.cluster,features:e.getClientFeatures(),params:this.config.timelineParams||{},limit:50,level:jt.INFO,version:h.VERSION}),this.config.enableStats&&(this.timelineSender=Je.createTimelineSender(this.timeline,{host:this.config.statsHost,path:"/timeline/v2/"+kt.TimelineTransport.name})),this.connection=Je.createConnectionManager(this.key,{getStrategy:function(e){return kt.getDefaultStrategy(r.config,e,Et)},timeline:this.timeline,activityTimeout:this.config.activityTimeout,pongTimeout:this.config.pongTimeout,unavailableTimeout:this.config.unavailableTimeout,useTLS:Boolean(this.config.useTLS)}),this.connection.bind("connected",(function(){r.subscribeAll(),r.timelineSender&&r.timelineSender.send(r.connection.isUsingTLS())})),this.connection.bind("message",(function(e){var t=0===e.event.indexOf("pusher_internal:");if(e.channel){var n=r.channel(e.channel);n&&n.handleEvent(e)}t||r.global_emitter.emit(e.event,e.data)})),this.connection.bind("connecting",(function(){r.channels.disconnect()})),this.connection.bind("disconnected",(function(){r.channels.disconnect()})),this.connection.bind("error",(function(e){se.warn(e)})),e.instances.push(this),this.timeline.info({instances:e.instances.length}),this.user=new Ut(this),e.isReady&&this.connect()}return p(e,[{key:"channel",value:function(e){return this.channels.find(e)}},{key:"allChannels",value:function(){return this.channels.all()}},{key:"connect",value:function(){if(this.connection.connect(),this.timelineSender&&!this.timelineSenderTimer){var e=this.connection.isUsingTLS(),t=this.timelineSender;this.timelineSenderTimer=new V(6e4,(function(){t.send(e)}))}}},{key:"disconnect",value:function(){this.connection.disconnect(),this.timelineSenderTimer&&(this.timelineSenderTimer.ensureAborted(),this.timelineSenderTimer=null)}},{key:"bind",value:function(e,t,n){return this.global_emitter.bind(e,t,n),this}},{key:"unbind",value:function(e,t,n){return this.global_emitter.unbind(e,t,n),this}},{key:"bind_global",value:function(e){return this.global_emitter.bind_global(e),this}},{key:"unbind_global",value:function(e){return this.global_emitter.unbind_global(e),this}},{key:"unbind_all",value:function(e){return this.global_emitter.unbind_all(),this}},{key:"subscribeAll",value:function(){var e;for(e in this.channels.channels)this.channels.channels.hasOwnProperty(e)&&this.subscribe(e)}},{key:"subscribe",value:function(e){var t=this.channels.add(e,this);return t.subscriptionPending&&t.subscriptionCancelled?t.reinstateSubscription():t.subscriptionPending||"connected"!==this.connection.state||t.subscribe(),t}},{key:"unsubscribe",value:function(e){var t=this.channels.find(e);t&&t.subscriptionPending?t.cancelSubscription():(t=this.channels.remove(e))&&t.subscribed&&t.unsubscribe()}},{key:"send_event",value:function(e,t,n){return this.connection.send_event(e,t,n)}},{key:"shouldUseTLS",value:function(){return this.config.useTLS}},{key:"signin",value:function(){this.user.signin()}}],[{key:"ready",value:function(){e.isReady=!0;for(var t=0,n=e.instances.length;t<n;t++)e.instances[t].connect()}},{key:"getClientFeatures",value:function(){return K(te({ws:kt.Transports.ws},(function(e){return e.isSupported({})})))}}]),e}();zt.instances=[],zt.isReady=!1,zt.logToConsole=!1,zt.Runtime=kt,zt.ScriptReceivers=kt.ScriptReceivers,zt.DependenciesReceivers=kt.DependenciesReceivers,zt.auth_callbacks=kt.auth_callbacks;var Ht=t.default=zt;kt.setup(zt)}])},e.exports=r()},4463:function(e,t,n){"use strict";var r=n(2791),a=n(5296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),d=Object.prototype.hasOwnProperty,p=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,f={},m={};function h(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){x[e]=new h(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];x[t]=new h(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){x[e]=new h(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){x[e]=new h(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){x[e]=new h(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){x[e]=new h(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){x[e]=new h(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){x[e]=new h(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){x[e]=new h(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function b(e){return e[1].toUpperCase()}function v(e,t,n,r){var a=x.hasOwnProperty(t)?x[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!d.call(m,e)||!d.call(f,e)&&(p.test(e)?m[e]=!0:(f[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,b);x[t]=new h(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,b);x[t]=new h(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,b);x[t]=new h(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){x[e]=new h(e,1,!1,e.toLowerCase(),null,!1,!1)})),x.xlinkHref=new h("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){x[e]=new h(e,1,!1,e.toLowerCase(),null,!0,!0)}));var y=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),k=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.context"),E=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),O=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var _=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function I(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var R,L=Object.assign;function M(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var B=!1;function U(e,t){if(!e||B)return"";B=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{B=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function z(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=U(e.type,!1);case 11:return e=U(e.type.render,!1);case 1:return e=U(e.type,!0);default:return""}}function H(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case j:return"Fragment";case k:return"Portal";case A:return"Profiler";case N:return"StrictMode";case P:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case C:return(e.displayName||"Context")+".Consumer";case S:return(e._context.displayName||"Context")+".Provider";case E:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:H(e.type)||"Memo";case O:t=e._payload,e=e._init;try{return H(e(t))}catch(n){}}return null}function W(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return H(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function V(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Y(e){e._valueTracker||(e._valueTracker=function(e){var t=Q(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function q(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Q(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function G(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function X(e,t){var n=t.checked;return L({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function J(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=V(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function K(e,t){null!=(t=t.checked)&&v(e,"checked",t,!1)}function Z(e,t){K(e,t);var n=V(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,V(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&G(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+V(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return L({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:V(n)}}function oe(e,t){var n=V(t.value),r=V(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,de=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ue(e,t)}))}:ue);function pe(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var fe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},me=["Webkit","ms","Moz","O"];function he(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}function xe(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=he(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(fe).forEach((function(e){me.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),fe[t]=fe[e]}))}));var ge=L({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function be(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function ve(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ye=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var ke=null,je=null,Ne=null;function Ae(e){if(e=va(e)){if("function"!==typeof ke)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),ke(e.stateNode,e.type,t))}}function Se(e){je?Ne?Ne.push(e):Ne=[e]:je=e}function Ce(){if(je){var e=je,t=Ne;if(Ne=je=null,Ae(e),t)for(e=0;e<t.length;e++)Ae(t[e])}}function Ee(e,t){return e(t)}function Pe(){}var Fe=!1;function Te(e,t,n){if(Fe)return e(t,n);Fe=!0;try{return Ee(e,t,n)}finally{Fe=!1,(null!==je||null!==Ne)&&(Pe(),Ce())}}function Oe(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var _e=!1;if(u)try{var De={};Object.defineProperty(De,"passive",{get:function(){_e=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ue){_e=!1}function Ie(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var Re=!1,Le=null,Me=!1,Be=null,Ue={onError:function(e){Re=!0,Le=e}};function ze(e,t,n,r,a,o,i,s,l){Re=!1,Le=null,Ie.apply(Ue,arguments)}function He(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function We(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Ve(e){if(He(e)!==e)throw Error(o(188))}function Qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=He(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Ve(a),e;if(i===r)return Ve(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ye(e):null}function Ye(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ye(e);if(null!==t)return t;e=e.sibling}return null}var qe=a.unstable_scheduleCallback,Ge=a.unstable_cancelCallback,Xe=a.unstable_shouldYield,Je=a.unstable_requestPaint,Ke=a.unstable_now,Ze=a.unstable_getCurrentPriorityLevel,$e=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function dt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function pt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=dt(s):0!==(o&=i)&&(r=dt(o))}else 0!==(i=n&~a)?r=dt(i):0!==o&&(r=dt(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function ft(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function mt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ht(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function xt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function gt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function bt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var vt=0;function yt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,kt,jt,Nt,At,St=!1,Ct=[],Et=null,Pt=null,Ft=null,Tt=new Map,Ot=new Map,_t=[],Dt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function It(e,t){switch(e){case"focusin":case"focusout":Et=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Ft=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ot.delete(t.pointerId)}}function Rt(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=va(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.push(a),e)}function Lt(e){var t=ba(e.target);if(null!==t){var n=He(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=We(n)))return e.blockedOn=t,void At(e.priority,(function(){jt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Mt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Xt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=va(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ye=r,n.target.dispatchEvent(r),ye=null,t.shift()}return!0}function Bt(e,t,n){Mt(e)&&n.delete(t)}function Ut(){St=!1,null!==Et&&Mt(Et)&&(Et=null),null!==Pt&&Mt(Pt)&&(Pt=null),null!==Ft&&Mt(Ft)&&(Ft=null),Tt.forEach(Bt),Ot.forEach(Bt)}function zt(e,t){e.blockedOn===t&&(e.blockedOn=null,St||(St=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Ut)))}function Ht(e){function t(t){return zt(t,e)}if(0<Ct.length){zt(Ct[0],e);for(var n=1;n<Ct.length;n++){var r=Ct[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Et&&zt(Et,e),null!==Pt&&zt(Pt,e),null!==Ft&&zt(Ft,e),Tt.forEach(t),Ot.forEach(t),n=0;n<_t.length;n++)(r=_t[n]).blockedOn===e&&(r.blockedOn=null);for(;0<_t.length&&null===(n=_t[0]).blockedOn;)Lt(n),null===n.blockedOn&&_t.shift()}var Wt=y.ReactCurrentBatchConfig,Vt=!0;function Qt(e,t,n,r){var a=vt,o=Wt.transition;Wt.transition=null;try{vt=1,qt(e,t,n,r)}finally{vt=a,Wt.transition=o}}function Yt(e,t,n,r){var a=vt,o=Wt.transition;Wt.transition=null;try{vt=4,qt(e,t,n,r)}finally{vt=a,Wt.transition=o}}function qt(e,t,n,r){if(Vt){var a=Xt(e,t,n,r);if(null===a)Vr(e,t,r,Gt,n),It(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Et=Rt(Et,e,t,n,r,a),!0;case"dragenter":return Pt=Rt(Pt,e,t,n,r,a),!0;case"mouseover":return Ft=Rt(Ft,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Tt.set(o,Rt(Tt.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Ot.set(o,Rt(Ot.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(It(e,r),4&t&&-1<Dt.indexOf(e)){for(;null!==a;){var o=va(a);if(null!==o&&wt(o),null===(o=Xt(e,t,n,r))&&Vr(e,t,r,Gt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else Vr(e,t,r,null,n)}}var Gt=null;function Xt(e,t,n,r){if(Gt=null,null!==(e=ba(e=we(r))))if(null===(t=He(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=We(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Gt=e,null}function Jt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Kt=null,Zt=null,$t=null;function en(){if($t)return $t;var e,t,n=Zt,r=n.length,a="value"in Kt?Kt.value:Kt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return $t=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return L(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),dn=L({},cn,{view:0,detail:0}),pn=an(dn),fn=L({},dn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:An,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),mn=an(fn),hn=an(L({},fn,{dataTransfer:0})),xn=an(L({},dn,{relatedTarget:0})),gn=an(L({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),bn=L({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vn=an(bn),yn=an(L({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},kn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=jn[e])&&!!t[e]}function An(){return Nn}var Sn=L({},dn,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?kn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:An,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=an(Sn),En=an(L({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pn=an(L({},dn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:An})),Fn=an(L({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Tn=L({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),On=an(Tn),_n=[9,13,27,32],Dn=u&&"CompositionEvent"in window,In=null;u&&"documentMode"in document&&(In=document.documentMode);var Rn=u&&"TextEvent"in window&&!In,Ln=u&&(!Dn||In&&8<In&&11>=In),Mn=String.fromCharCode(32),Bn=!1;function Un(e,t){switch(e){case"keyup":return-1!==_n.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Hn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Qn(e,t,n,r){Se(r),0<(t=Yr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Yn=null,qn=null;function Gn(e){Mr(e,0)}function Xn(e){if(q(ya(e)))return e}function Jn(e,t){if("change"===e)return t}var Kn=!1;if(u){var Zn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Zn=$n}else Zn=!1;Kn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Yn&&(Yn.detachEvent("onpropertychange",nr),qn=Yn=null)}function nr(e){if("value"===e.propertyName&&Xn(qn)){var t=[];Qn(t,qn,e,we(e)),Te(Gn,t)}}function rr(e,t,n){"focusin"===e?(tr(),qn=n,(Yn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Xn(qn)}function or(e,t){if("click"===e)return Xn(t)}function ir(e,t){if("input"===e||"change"===e)return Xn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!d.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function dr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?dr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function pr(){for(var e=window,t=G();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=G((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function mr(e){var t=pr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&dr(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=u&&"documentMode"in document&&11>=document.documentMode,xr=null,gr=null,br=null,vr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;vr||null==xr||xr!==G(r)||("selectionStart"in(r=xr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},br&&lr(br,r)||(br=r,0<(r=Yr(gr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=xr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kr={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},jr={},Nr={};function Ar(e){if(jr[e])return jr[e];if(!kr[e])return e;var t,n=kr[e];for(t in n)if(n.hasOwnProperty(t)&&t in Nr)return jr[e]=n[t];return e}u&&(Nr=document.createElement("div").style,"AnimationEvent"in window||(delete kr.animationend.animation,delete kr.animationiteration.animation,delete kr.animationstart.animation),"TransitionEvent"in window||delete kr.transitionend.transition);var Sr=Ar("animationend"),Cr=Ar("animationiteration"),Er=Ar("animationstart"),Pr=Ar("transitionend"),Fr=new Map,Tr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Or(e,t){Fr.set(e,t),l(t,[e])}for(var _r=0;_r<Tr.length;_r++){var Dr=Tr[_r];Or(Dr.toLowerCase(),"on"+(Dr[0].toUpperCase()+Dr.slice(1)))}Or(Sr,"onAnimationEnd"),Or(Cr,"onAnimationIteration"),Or(Er,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(Pr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ir="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Rr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ir));function Lr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if(ze.apply(this,arguments),Re){if(!Re)throw Error(o(198));var u=Le;Re=!1,Le=null,Me||(Me=!0,Be=u)}}(r,t,void 0,e),e.currentTarget=null}function Mr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Lr(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Lr(a,s,c),o=l}}}if(Me)throw e=Be,Me=!1,Be=null,e}function Br(e,t){var n=t[ha];void 0===n&&(n=t[ha]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function Ur(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var zr="_reactListening"+Math.random().toString(36).slice(2);function Hr(e){if(!e[zr]){e[zr]=!0,i.forEach((function(t){"selectionchange"!==t&&(Rr.has(t)||Ur(t,!1,e),Ur(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[zr]||(t[zr]=!0,Ur("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(Jt(t)){case 1:var a=Qt;break;case 4:a=Yt;break;default:a=qt}n=a.bind(null,t,n,e),a=void 0,!_e||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ba(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Te((function(){var r=o,a=we(n),i=[];e:{var s=Fr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":c="focus",l=xn;break;case"focusout":c="blur",l=xn;break;case"beforeblur":case"afterblur":l=xn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=mn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Pn;break;case Sr:case Cr:case Er:l=gn;break;case Pr:l=Fn;break;case"scroll":l=pn;break;case"wheel":l=On;break;case"copy":case"cut":case"paste":l=vn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var u=0!==(4&t),d=!u&&"scroll"===e,p=u?null!==s?s+"Capture":null:s;u=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Oe(m,p))&&u.push(Qr(m,h,f)))),d)break;m=m.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ye||!(c=n.relatedTarget||n.fromElement)||!ba(c)&&!c[ma])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ba(c):null)&&(c!==(d=He(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=mn,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(u=En,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==l?s:ya(l),f=null==c?s:ya(c),(s=new u(h,m+"leave",l,n,a)).target=d,s.relatedTarget=f,h=null,ba(a)===r&&((u=new u(p,m+"enter",c,n,a)).target=f,u.relatedTarget=d,h=u),d=h,l&&c)e:{for(p=c,m=0,f=u=l;f;f=qr(f))m++;for(f=0,h=p;h;h=qr(h))f++;for(;0<m-f;)u=qr(u),m--;for(;0<f-m;)p=qr(p),f--;for(;m--;){if(u===p||null!==p&&u===p.alternate)break e;u=qr(u),p=qr(p)}u=null}else u=null;null!==l&&Gr(i,s,l,u,!1),null!==c&&null!==d&&Gr(i,d,c,u,!0)}if("select"===(l=(s=r?ya(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var x=Jn;else if(Vn(s))if(Kn)x=ir;else{x=ar;var g=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(x=or);switch(x&&(x=x(e,r))?Qn(i,x,n,a):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?ya(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(xr=g,gr=r,br=null);break;case"focusout":br=gr=xr=null;break;case"mousedown":vr=!0;break;case"contextmenu":case"mouseup":case"dragend":vr=!1,yr(i,n,a);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":yr(i,n,a)}var b;if(Dn)e:{switch(e){case"compositionstart":var v="onCompositionStart";break e;case"compositionend":v="onCompositionEnd";break e;case"compositionupdate":v="onCompositionUpdate";break e}v=void 0}else Hn?Un(e,n)&&(v="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(v="onCompositionStart");v&&(Ln&&"ko"!==n.locale&&(Hn||"onCompositionStart"!==v?"onCompositionEnd"===v&&Hn&&(b=en()):(Zt="value"in(Kt=a)?Kt.value:Kt.textContent,Hn=!0)),0<(g=Yr(r,v)).length&&(v=new yn(v,e,null,n,a),i.push({event:v,listeners:g}),b?v.data=b:null!==(b=zn(n))&&(v.data=b))),(b=Rn?function(e,t){switch(e){case"compositionend":return zn(t);case"keypress":return 32!==t.which?null:(Bn=!0,Mn);case"textInput":return(e=t.data)===Mn&&Bn?null:e;default:return null}}(e,n):function(e,t){if(Hn)return"compositionend"===e||!Dn&&Un(e,t)?(e=en(),$t=Zt=Kt=null,Hn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ln&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Yr(r,"onBeforeInput")).length&&(a=new yn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=b))}Mr(i,t)}))}function Qr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Yr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Oe(e,n))&&r.unshift(Qr(e,o,a)),null!=(o=Oe(e,t))&&r.push(Qr(e,o,a))),e=e.return}return r}function qr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Gr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Oe(n,o))&&i.unshift(Qr(n,l,s)):a||null!=(l=Oe(n,o))&&i.push(Qr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Xr=/\r\n?/g,Jr=/\u0000|\uFFFD/g;function Kr(e){return("string"===typeof e?e:""+e).replace(Xr,"\n").replace(Jr,"")}function Zr(e,t,n){if(t=Kr(t),Kr(e)!==t&&n)throw Error(o(425))}function $r(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof Promise?Promise:void 0,ia="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout((function(){throw e}))}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void Ht(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);Ht(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var da=Math.random().toString(36).slice(2),pa="__reactFiber$"+da,fa="__reactProps$"+da,ma="__reactContainer$"+da,ha="__reactEvents$"+da,xa="__reactListeners$"+da,ga="__reactHandles$"+da;function ba(e){var t=e[pa];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ma]||n[pa]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[pa])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function va(e){return!(e=e[pa]||e[ma])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function ya(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[fa]||null}var ka=[],ja=-1;function Na(e){return{current:e}}function Aa(e){0>ja||(e.current=ka[ja],ka[ja]=null,ja--)}function Sa(e,t){ja++,ka[ja]=e.current,e.current=t}var Ca={},Ea=Na(Ca),Pa=Na(!1),Fa=Ca;function Ta(e,t){var n=e.type.contextTypes;if(!n)return Ca;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Oa(e){return null!==(e=e.childContextTypes)&&void 0!==e}function _a(){Aa(Pa),Aa(Ea)}function Da(e,t,n){if(Ea.current!==Ca)throw Error(o(168));Sa(Ea,t),Sa(Pa,n)}function Ia(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,W(e)||"Unknown",a));return L({},n,r)}function Ra(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ca,Fa=Ea.current,Sa(Ea,e),Sa(Pa,Pa.current),!0}function La(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ia(e,t,Fa),r.__reactInternalMemoizedMergedChildContext=e,Aa(Pa),Aa(Ea),Sa(Ea,e)):Aa(Pa),Sa(Pa,n)}var Ma=null,Ba=!1,Ua=!1;function za(e){null===Ma?Ma=[e]:Ma.push(e)}function Ha(){if(!Ua&&null!==Ma){Ua=!0;var e=0,t=vt;try{var n=Ma;for(vt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ma=null,Ba=!1}catch(a){throw null!==Ma&&(Ma=Ma.slice(e+1)),qe($e,Ha),a}finally{vt=t,Ua=!1}}return null}var Wa=[],Va=0,Qa=null,Ya=0,qa=[],Ga=0,Xa=null,Ja=1,Ka="";function Za(e,t){Wa[Va++]=Ya,Wa[Va++]=Qa,Qa=e,Ya=t}function $a(e,t,n){qa[Ga++]=Ja,qa[Ga++]=Ka,qa[Ga++]=Xa,Xa=e;var r=Ja;e=Ka;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Ja=1<<32-it(t)+a|n<<a|r,Ka=o+e}else Ja=1<<o|n<<a|r,Ka=e}function eo(e){null!==e.return&&(Za(e,1),$a(e,1,0))}function to(e){for(;e===Qa;)Qa=Wa[--Va],Wa[Va]=null,Ya=Wa[--Va],Wa[Va]=null;for(;e===Xa;)Xa=qa[--Ga],qa[Ga]=null,Ka=qa[--Ga],qa[Ga]=null,Ja=qa[--Ga],qa[Ga]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=Tc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Xa?{id:Ja,overflow:Ka}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Tc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function po(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw fo(),Error(o(418));for(;t;)io(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function fo(){for(var e=ro;e;)e=ca(e.nextSibling)}function mo(){ro=no=null,ao=!1}function ho(e){null===oo?oo=[e]:oo.push(e)}var xo=y.ReactCurrentBatchConfig;function go(e,t){if(e&&e.defaultProps){for(var n in t=L({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var bo=Na(null),vo=null,yo=null,wo=null;function ko(){wo=yo=vo=null}function jo(e){var t=bo.current;Aa(bo),e._currentValue=t}function No(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ao(e,t){vo=e,wo=yo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function So(e){var t=e._currentValue;if(wo!==e)if(e={context:e,memoizedValue:t,next:null},null===yo){if(null===vo)throw Error(o(308));yo=e,vo.dependencies={lanes:0,firstContext:e}}else yo=yo.next=e;return t}var Co=null;function Eo(e){null===Co?Co=[e]:Co.push(e)}function Po(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Eo(t)):(n.next=a.next,a.next=n),t.interleaved=n,Fo(e,r)}function Fo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var To=!1;function Oo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function _o(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Io(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&El)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Fo(e,n)}return null===(a=r.interleaved)?(t.next=t,Eo(r)):(t.next=a.next,a.next=t),r.interleaved=t,Fo(e,n)}function Ro(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}function Lo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Mo(e,t,n,r){var a=e.updateQueue;To=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var d=a.baseState;for(i=0,u=c=l=null,s=o;;){var p=s.lane,f=s.eventTime;if((r&p)===p){null!==u&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,h=s;switch(p=t,f=n,h.tag){case 1:if("function"===typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null===(p="function"===typeof(m=h.payload)?m.call(f,d,p):m)||void 0===p)break e;d=L({},d,p);break e;case 2:To=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(p=a.effects)?a.effects=[s]:p.push(s))}else f={eventTime:f,lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=f,l=d):u=u.next=f,i|=p;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(p=s).next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}if(null===u&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Rl|=i,e.lanes=i,e.memoizedState=d}}function Bo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var Uo=(new r.Component).refs;function zo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:L({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ho={isMounted:function(e){return!!(e=e._reactInternals)&&He(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=ec(),a=tc(e),o=Do(r,a);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Io(e,o,a))&&(nc(t,e,a,r),Ro(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=ec(),a=tc(e),o=Do(r,a);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Io(e,o,a))&&(nc(t,e,a,r),Ro(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=ec(),r=tc(e),a=Do(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Io(e,a,r))&&(nc(t,e,r,n),Ro(t,e,r))}};function Wo(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function Vo(e,t,n){var r=!1,a=Ca,o=t.contextType;return"object"===typeof o&&null!==o?o=So(o):(a=Oa(t)?Fa:Ea.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ta(e,a):Ca),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ho,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function Qo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ho.enqueueReplaceState(t,t.state,null)}function Yo(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs=Uo,Oo(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=So(o):(o=Oa(t)?Fa:Ea.current,a.context=Ta(e,o)),a.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(zo(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&Ho.enqueueReplaceState(a,a.state,null),Mo(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function qo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;t===Uo&&(t=a.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Go(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Xo(e){return(0,e._init)(e._payload)}function Jo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=_c(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===j?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===O&&Xo(o)===t.type)?((r=a(t,n.props)).ref=qo(e,t,n),r.return=e,r):((r=Dc(n.type,n.key,n.props,null,e.mode,r)).ref=qo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Mc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function p(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Dc(t.type,t.key,t.props,null,e.mode,n)).ref=qo(e,null,t),n.return=e,n;case k:return(t=Mc(t,e.mode,n)).return=e,t;case O:return p(e,(0,t._init)(t._payload),n)}if(te(t)||I(t))return(t=Ic(t,e.mode,n,null)).return=e,t;Go(e,t)}return null}function f(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case k:return n.key===a?u(e,t,n,r):null;case O:return f(e,t,(a=n._init)(n._payload),r)}if(te(n)||I(n))return null!==a?null:d(e,t,n,r,null);Go(e,n)}return null}function m(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case O:return m(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||I(r))return d(t,e=e.get(n)||null,r,a,null);Go(t,r)}return null}function h(a,o,s,l){for(var c=null,u=null,d=o,h=o=0,x=null;null!==d&&h<s.length;h++){d.index>h?(x=d,d=null):x=d.sibling;var g=f(a,d,s[h],l);if(null===g){null===d&&(d=x);break}e&&d&&null===g.alternate&&t(a,d),o=i(g,o,h),null===u?c=g:u.sibling=g,u=g,d=x}if(h===s.length)return n(a,d),ao&&Za(a,h),c;if(null===d){for(;h<s.length;h++)null!==(d=p(a,s[h],l))&&(o=i(d,o,h),null===u?c=d:u.sibling=d,u=d);return ao&&Za(a,h),c}for(d=r(a,d);h<s.length;h++)null!==(x=m(d,a,h,s[h],l))&&(e&&null!==x.alternate&&d.delete(null===x.key?h:x.key),o=i(x,o,h),null===u?c=x:u.sibling=x,u=x);return e&&d.forEach((function(e){return t(a,e)})),ao&&Za(a,h),c}function x(a,s,l,c){var u=I(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var d=u=null,h=s,x=s=0,g=null,b=l.next();null!==h&&!b.done;x++,b=l.next()){h.index>x?(g=h,h=null):g=h.sibling;var v=f(a,h,b.value,c);if(null===v){null===h&&(h=g);break}e&&h&&null===v.alternate&&t(a,h),s=i(v,s,x),null===d?u=v:d.sibling=v,d=v,h=g}if(b.done)return n(a,h),ao&&Za(a,x),u;if(null===h){for(;!b.done;x++,b=l.next())null!==(b=p(a,b.value,c))&&(s=i(b,s,x),null===d?u=b:d.sibling=b,d=b);return ao&&Za(a,x),u}for(h=r(a,h);!b.done;x++,b=l.next())null!==(b=m(h,a,x,b.value,c))&&(e&&null!==b.alternate&&h.delete(null===b.key?x:b.key),s=i(b,s,x),null===d?u=b:d.sibling=b,d=b);return e&&h.forEach((function(e){return t(a,e)})),ao&&Za(a,x),u}return function e(r,o,i,l){if("object"===typeof i&&null!==i&&i.type===j&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===j){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===O&&Xo(c)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=qo(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===j?((o=Ic(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=Dc(i.type,i.key,i.props,null,r.mode,l)).ref=qo(r,o,i),l.return=r,r=l)}return s(r);case k:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Mc(i,r.mode,l)).return=r,r=o}return s(r);case O:return e(r,o,(u=i._init)(i._payload),l)}if(te(i))return h(r,o,i,l);if(I(i))return x(r,o,i,l);Go(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Lc(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var Ko=Jo(!0),Zo=Jo(!1),$o={},ei=Na($o),ti=Na($o),ni=Na($o);function ri(e){if(e===$o)throw Error(o(174));return e}function ai(e,t){switch(Sa(ni,t),Sa(ti,e),Sa(ei,$o),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Aa(ei),Sa(ei,t)}function oi(){Aa(ei),Aa(ti),Aa(ni)}function ii(e){ri(ni.current);var t=ri(ei.current),n=le(t,e.type);t!==n&&(Sa(ti,e),Sa(ei,n))}function si(e){ti.current===e&&(Aa(ei),Aa(ti))}var li=Na(0);function ci(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ui=[];function di(){for(var e=0;e<ui.length;e++)ui[e]._workInProgressVersionPrimary=null;ui.length=0}var pi=y.ReactCurrentDispatcher,fi=y.ReactCurrentBatchConfig,mi=0,hi=null,xi=null,gi=null,bi=!1,vi=!1,yi=0,wi=0;function ki(){throw Error(o(321))}function ji(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ni(e,t,n,r,a,i){if(mi=i,hi=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,pi.current=null===e||null===e.memoizedState?ss:ls,e=n(r,a),vi){i=0;do{if(vi=!1,yi=0,25<=i)throw Error(o(301));i+=1,gi=xi=null,t.updateQueue=null,pi.current=cs,e=n(r,a)}while(vi)}if(pi.current=is,t=null!==xi&&null!==xi.next,mi=0,gi=xi=hi=null,bi=!1,t)throw Error(o(300));return e}function Ai(){var e=0!==yi;return yi=0,e}function Si(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===gi?hi.memoizedState=gi=e:gi=gi.next=e,gi}function Ci(){if(null===xi){var e=hi.alternate;e=null!==e?e.memoizedState:null}else e=xi.next;var t=null===gi?hi.memoizedState:gi.next;if(null!==t)gi=t,xi=e;else{if(null===e)throw Error(o(310));e={memoizedState:(xi=e).memoizedState,baseState:xi.baseState,baseQueue:xi.baseQueue,queue:xi.queue,next:null},null===gi?hi.memoizedState=gi=e:gi=gi.next=e}return gi}function Ei(e,t){return"function"===typeof t?t(e):t}function Pi(e){var t=Ci(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=xi,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,c=null,u=i;do{var d=u.lane;if((mi&d)===d)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var p={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=p,s=r):c=c.next=p,hi.lanes|=d,Rl|=d}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,hi.lanes|=i,Rl|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Fi(e){var t=Ci(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(ys=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ti(){}function Oi(e,t){var n=hi,r=Ci(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,ys=!0),r=r.queue,Vi(Ii.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==gi&&1&gi.memoizedState.tag){if(n.flags|=2048,Bi(9,Di.bind(null,n,r,a,t),void 0,null),null===Pl)throw Error(o(349));0!==(30&mi)||_i(n,t,a)}return a}function _i(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Di(e,t,n,r){t.value=n,t.getSnapshot=r,Ri(t)&&Li(e)}function Ii(e,t,n){return n((function(){Ri(t)&&Li(e)}))}function Ri(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Li(e){var t=Fo(e,1);null!==t&&nc(t,e,1,-1)}function Mi(e){var t=Si();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ei,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,hi,e),[t.memoizedState,e]}function Bi(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=hi.updateQueue)?(t={lastEffect:null,stores:null},hi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ui(){return Ci().memoizedState}function zi(e,t,n,r){var a=Si();hi.flags|=e,a.memoizedState=Bi(1|t,n,void 0,void 0===r?null:r)}function Hi(e,t,n,r){var a=Ci();r=void 0===r?null:r;var o=void 0;if(null!==xi){var i=xi.memoizedState;if(o=i.destroy,null!==r&&ji(r,i.deps))return void(a.memoizedState=Bi(t,n,o,r))}hi.flags|=e,a.memoizedState=Bi(1|t,n,o,r)}function Wi(e,t){return zi(8390656,8,e,t)}function Vi(e,t){return Hi(2048,8,e,t)}function Qi(e,t){return Hi(4,2,e,t)}function Yi(e,t){return Hi(4,4,e,t)}function qi(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Gi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Hi(4,4,qi.bind(null,t,e),n)}function Xi(){}function Ji(e,t){var n=Ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=Ci();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ji(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Zi(e,t,n){return 0===(21&mi)?(e.baseState&&(e.baseState=!1,ys=!0),e.memoizedState=n):(sr(n,t)||(n=ht(),hi.lanes|=n,Rl|=n,e.baseState=!0),t)}function $i(e,t){var n=vt;vt=0!==n&&4>n?n:4,e(!0);var r=fi.transition;fi.transition={};try{e(!1),t()}finally{vt=n,fi.transition=r}}function es(){return Ci().memoizedState}function ts(e,t,n){var r=tc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))as(t,n);else if(null!==(n=Po(e,t,n,r))){nc(n,e,r,ec()),os(n,t,r)}}function ns(e,t,n){var r=tc(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))as(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,Eo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Po(e,t,a,r))&&(nc(n,e,r,a=ec()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===hi||null!==t&&t===hi}function as(e,t){vi=bi=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,bt(e,n)}}var is={readContext:So,useCallback:ki,useContext:ki,useEffect:ki,useImperativeHandle:ki,useInsertionEffect:ki,useLayoutEffect:ki,useMemo:ki,useReducer:ki,useRef:ki,useState:ki,useDebugValue:ki,useDeferredValue:ki,useTransition:ki,useMutableSource:ki,useSyncExternalStore:ki,useId:ki,unstable_isNewReconciler:!1},ss={readContext:So,useCallback:function(e,t){return Si().memoizedState=[e,void 0===t?null:t],e},useContext:So,useEffect:Wi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,zi(4194308,4,qi.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return zi(4,2,e,t)},useMemo:function(e,t){var n=Si();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Si();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,hi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Si().memoizedState=e},useState:Mi,useDebugValue:Xi,useDeferredValue:function(e){return Si().memoizedState=e},useTransition:function(){var e=Mi(!1),t=e[0];return e=$i.bind(null,e[1]),Si().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=hi,a=Si();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Pl)throw Error(o(349));0!==(30&mi)||_i(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Wi(Ii.bind(null,r,i,e),[e]),r.flags|=2048,Bi(9,Di.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Si(),t=Pl.identifierPrefix;if(ao){var n=Ka;t=":"+t+"R"+(n=(Ja&~(1<<32-it(Ja)-1)).toString(32)+n),0<(n=yi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=wi++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},ls={readContext:So,useCallback:Ji,useContext:So,useEffect:Vi,useImperativeHandle:Gi,useInsertionEffect:Qi,useLayoutEffect:Yi,useMemo:Ki,useReducer:Pi,useRef:Ui,useState:function(){return Pi(Ei)},useDebugValue:Xi,useDeferredValue:function(e){return Zi(Ci(),xi.memoizedState,e)},useTransition:function(){return[Pi(Ei)[0],Ci().memoizedState]},useMutableSource:Ti,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1},cs={readContext:So,useCallback:Ji,useContext:So,useEffect:Vi,useImperativeHandle:Gi,useInsertionEffect:Qi,useLayoutEffect:Yi,useMemo:Ki,useReducer:Fi,useRef:Ui,useState:function(){return Fi(Ei)},useDebugValue:Xi,useDeferredValue:function(e){var t=Ci();return null===xi?t.memoizedState=e:Zi(t,xi.memoizedState,e)},useTransition:function(){return[Fi(Ei)[0],Ci().memoizedState]},useMutableSource:Ti,useSyncExternalStore:Oi,useId:es,unstable_isNewReconciler:!1};function us(e,t){try{var n="",r=t;do{n+=z(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function ds(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ps(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ms(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vl||(Vl=!0,Ql=r),ps(0,t)},n}function hs(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){ps(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ps(0,t),"function"!==typeof r&&(null===Yl?Yl=new Set([this]):Yl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function xs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Ac.bind(null,e,t,n),t.then(e,e))}function gs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function bs(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Io(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var vs=y.ReactCurrentOwner,ys=!1;function ws(e,t,n,r){t.child=null===e?Zo(t,null,n,r):Ko(t,e.child,n,r)}function ks(e,t,n,r,a){n=n.render;var o=t.ref;return Ao(t,a),r=Ni(e,t,n,r,o,a),n=Ai(),null===e||ys?(ao&&n&&eo(t),t.flags|=1,ws(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vs(e,t,a))}function js(e,t,n,r,a){if(null===e){var o=n.type;return"function"!==typeof o||Oc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Dc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ns(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Vs(e,t,a)}return t.flags|=1,(e=_c(o,r)).ref=t.ref,e.return=t,t.child=e}function Ns(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(ys=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Vs(e,t,a);0!==(131072&e.flags)&&(ys=!0)}}return Cs(e,t,n,r,a)}function As(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Sa(_l,Ol),Ol|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Sa(_l,Ol),Ol|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,Sa(_l,Ol),Ol|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,Sa(_l,Ol),Ol|=r;return ws(e,t,a,n),t.child}function Ss(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,a){var o=Oa(n)?Fa:Ea.current;return o=Ta(t,o),Ao(t,a),n=Ni(e,t,n,r,o,a),r=Ai(),null===e||ys?(ao&&r&&eo(t),t.flags|=1,ws(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Vs(e,t,a))}function Es(e,t,n,r,a){if(Oa(n)){var o=!0;Ra(t)}else o=!1;if(Ao(t,a),null===t.stateNode)Ws(e,t),Vo(t,n,r),Yo(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=So(c):c=Ta(t,c=Oa(n)?Fa:Ea.current);var u=n.getDerivedStateFromProps,d="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;d||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==c)&&Qo(t,i,r,c),To=!1;var p=t.memoizedState;i.state=p,Mo(t,r,i,a),l=t.memoizedState,s!==r||p!==l||Pa.current||To?("function"===typeof u&&(zo(t,n,u,r),l=t.memoizedState),(s=To||Wo(t,n,s,r,p,l,c))?(d||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,_o(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:go(t.type,s),i.props=c,d=t.pendingProps,p=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=So(l):l=Ta(t,l=Oa(n)?Fa:Ea.current);var f=n.getDerivedStateFromProps;(u="function"===typeof f||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==d||p!==l)&&Qo(t,i,r,l),To=!1,p=t.memoizedState,i.state=p,Mo(t,r,i,a);var m=t.memoizedState;s!==d||p!==m||Pa.current||To?("function"===typeof f&&(zo(t,n,f,r),m=t.memoizedState),(c=To||Wo(t,n,c,r,p,m,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,m,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,m,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),i.props=r,i.state=m,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Ps(e,t,n,r,o,a)}function Ps(e,t,n,r,a,o){Ss(e,t);var i=0!==(128&t.flags);if(!r&&!i)return a&&La(t,n,!1),Vs(e,t,o);r=t.stateNode,vs.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=Ko(t,e.child,null,o),t.child=Ko(t,null,s,o)):ws(e,t,s,o),t.memoizedState=r.state,a&&La(t,n,!0),t.child}function Fs(e){var t=e.stateNode;t.pendingContext?Da(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Da(0,t.context,!1),ai(e,t.containerInfo)}function Ts(e,t,n,r,a){return mo(),ho(a),t.flags|=256,ws(e,t,n,r),t.child}var Os,_s,Ds,Is={dehydrated:null,treeContext:null,retryLane:0};function Rs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,a=t.pendingProps,i=li.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Sa(li,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Rc(l,a,0,null),e=Ic(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Rs(n),t.memoizedState=Is,e):Ms(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,Bs(e,t,s,r=ds(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Rc({mode:"visible",children:r.children},a,0,null),(i=Ic(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&Ko(t,e.child,null,s),t.child.memoizedState=Rs(s),t.memoizedState=Is,i);if(0===(1&t.mode))return Bs(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Bs(e,t,s,r=ds(i=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),ys||l){if(null!==(r=Pl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Fo(e,a),nc(r,e,a,-1))}return hc(),Bs(e,t,s,r=ds(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(qa[Ga++]=Ja,qa[Ga++]=Ka,qa[Ga++]=Xa,Ja=e.id,Ka=e.overflow,Xa=t),t=Ms(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0===(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=_c(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=_c(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Rs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,a}return e=(s=e.child).sibling,a=_c(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Ms(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bs(e,t,n,r){return null!==r&&ho(r),Ko(t,e.child,null,n),(e=Ms(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),No(e.return,t,n)}function zs(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function Hs(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(ws(e,t,r.children,n),0!==(2&(r=li.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Sa(li,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ci(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zs(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ci(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zs(t,!0,n,null,o);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ws(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=_c(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=_c(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ys(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function qs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ys(t),null;case 1:case 17:return Oa(t.type)&&_a(),Ys(t),null;case 3:return r=t.stateNode,oi(),Aa(Pa),Aa(Ea),di(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(po(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(ic(oo),oo=null))),Ys(t),null;case 5:si(t);var a=ri(ni.current);if(n=t.type,null!==e&&null!=t.stateNode)_s(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ys(t),null}if(e=ri(ei.current),po(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[pa]=t,r[fa]=i,e=0!==(1&t.mode),n){case"dialog":Br("cancel",r),Br("close",r);break;case"iframe":case"object":case"embed":Br("load",r);break;case"video":case"audio":for(a=0;a<Ir.length;a++)Br(Ir[a],r);break;case"source":Br("error",r);break;case"img":case"image":case"link":Br("error",r),Br("load",r);break;case"details":Br("toggle",r);break;case"input":J(r,i),Br("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Br("invalid",r);break;case"textarea":ae(r,i),Br("invalid",r)}for(var l in be(n,i),a=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),a=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Br("scroll",r)}switch(n){case"input":Y(r),$(r,i,!0);break;case"textarea":Y(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=$r)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[pa]=t,e[fa]=r,Os(e,t),t.stateNode=e;e:{switch(l=ve(n,r),n){case"dialog":Br("cancel",e),Br("close",e),a=r;break;case"iframe":case"object":case"embed":Br("load",e),a=r;break;case"video":case"audio":for(a=0;a<Ir.length;a++)Br(Ir[a],e);a=r;break;case"source":Br("error",e),a=r;break;case"img":case"image":case"link":Br("error",e),Br("load",e),a=r;break;case"details":Br("toggle",e),a=r;break;case"input":J(e,r),a=X(e,r),Br("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=L({},r,{value:void 0}),Br("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Br("invalid",e)}for(i in be(n,a),c=a)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?xe(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&de(e,u):"children"===i?"string"===typeof u?("textarea"!==n||""!==u)&&pe(e,u):"number"===typeof u&&pe(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Br("scroll",e):null!=u&&v(e,i,u,l))}switch(n){case"input":Y(e),$(e,r,!1);break;case"textarea":Y(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+V(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ys(t),null;case 6:if(e&&null!=t.stateNode)Ds(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ri(ni.current),ri(ei.current),po(t)){if(r=t.stateNode,n=t.memoizedProps,r[pa]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[pa]=t,t.stateNode=r}return Ys(t),null;case 13:if(Aa(li),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))fo(),mo(),t.flags|=98560,i=!1;else if(i=po(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[pa]=t}else mo(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ys(t),i=!1}else null!==oo&&(ic(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&li.current)?0===Dl&&(Dl=3):hc())),null!==t.updateQueue&&(t.flags|=4),Ys(t),null);case 4:return oi(),null===e&&Hr(t.stateNode.containerInfo),Ys(t),null;case 10:return jo(t.type._context),Ys(t),null;case 19:if(Aa(li),null===(i=t.memoizedState))return Ys(t),null;if(r=0!==(128&t.flags),null===(l=i.rendering))if(r)Qs(i,!1);else{if(0!==Dl||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ci(e))){for(t.flags|=128,Qs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Sa(li,1&li.current|2),t.child}e=e.sibling}null!==i.tail&&Ke()>Hl&&(t.flags|=128,r=!0,Qs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ci(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Ys(t),null}else 2*Ke()-i.renderingStartTime>Hl&&1073741824!==n&&(t.flags|=128,r=!0,Qs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Ke(),t.sibling=null,n=li.current,Sa(li,r?1&n|2:1&n),t):(Ys(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ol)&&(Ys(t),6&t.subtreeFlags&&(t.flags|=8192)):Ys(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return Oa(t.type)&&_a(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oi(),Aa(Pa),Aa(Ea),di(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return si(t),null;case 13:if(Aa(li),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));mo()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Aa(li),null;case 4:return oi(),null;case 10:return jo(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Os=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},_s=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,ri(ei.current);var o,i=null;switch(n){case"input":a=X(e,a),r=X(e,r),i=[];break;case"select":a=L({},a,{value:void 0}),r=L({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in be(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Br("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Ds=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Js=!1,Ks="function"===typeof WeakSet?WeakSet:Set,Zs=null;function $s(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Nc(e,t,r)}else n.current=null}function el(e,t,n){try{n()}catch(r){Nc(e,t,r)}}var tl=!1;function nl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&el(t,n,o)}a=a.next}while(a!==r)}}function rl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[pa],delete t[fa],delete t[ha],delete t[xa],delete t[ga])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function il(e){return 5===e.tag||3===e.tag||4===e.tag}function sl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var ul=null,dl=!1;function pl(e,t,n){for(n=n.child;null!==n;)fl(e,t,n),n=n.sibling}function fl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Js||$s(n,t);case 6:var r=ul,a=dl;ul=null,pl(e,t,n),dl=a,null!==(ul=r)&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ul.removeChild(n.stateNode));break;case 18:null!==ul&&(dl?(e=ul,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),Ht(e)):la(ul,n.stateNode));break;case 4:r=ul,a=dl,ul=n.stateNode.containerInfo,dl=!0,pl(e,t,n),ul=r,dl=a;break;case 0:case 11:case 14:case 15:if(!Js&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!==(2&o)||0!==(4&o))&&el(n,t,i),a=a.next}while(a!==r)}pl(e,t,n);break;case 1:if(!Js&&($s(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Nc(n,t,s)}pl(e,t,n);break;case 21:pl(e,t,n);break;case 22:1&n.mode?(Js=(r=Js)||null!==n.memoizedState,pl(e,t,n),Js=r):pl(e,t,n);break;default:pl(e,t,n)}}function ml(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Ks),t.forEach((function(t){var r=Ec.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function hl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:ul=l.stateNode,dl=!1;break e;case 3:case 4:ul=l.stateNode.containerInfo,dl=!0;break e}l=l.return}if(null===ul)throw Error(o(160));fl(i,s,a),ul=null,dl=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){Nc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)xl(t,e),t=t.sibling}function xl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(hl(t,e),gl(e),4&r){try{nl(3,e,e.return),rl(3,e)}catch(x){Nc(e,e.return,x)}try{nl(5,e,e.return)}catch(x){Nc(e,e.return,x)}}break;case 1:hl(t,e),gl(e),512&r&&null!==n&&$s(n,n.return);break;case 5:if(hl(t,e),gl(e),512&r&&null!==n&&$s(n,n.return),32&e.flags){var a=e.stateNode;try{pe(a,"")}catch(x){Nc(e,e.return,x)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&K(a,i),ve(l,s);var u=ve(l,i);for(s=0;s<c.length;s+=2){var d=c[s],p=c[s+1];"style"===d?xe(a,p):"dangerouslySetInnerHTML"===d?de(a,p):"children"===d?pe(a,p):v(a,d,p,u)}switch(l){case"input":Z(a,i);break;case"textarea":oe(a,i);break;case"select":var f=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var m=i.value;null!=m?ne(a,!!i.multiple,m,!1):f!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[fa]=i}catch(x){Nc(e,e.return,x)}}break;case 6:if(hl(t,e),gl(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(x){Nc(e,e.return,x)}}break;case 3:if(hl(t,e),gl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Ht(t.containerInfo)}catch(x){Nc(e,e.return,x)}break;case 4:default:hl(t,e),gl(e);break;case 13:hl(t,e),gl(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(zl=Ke())),4&r&&ml(e);break;case 22:if(d=null!==n&&null!==n.memoizedState,1&e.mode?(Js=(u=Js)||d,hl(t,e),Js=u):hl(t,e),gl(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!d&&0!==(1&e.mode))for(Zs=e,d=e.child;null!==d;){for(p=Zs=d;null!==Zs;){switch(m=(f=Zs).child,f.tag){case 0:case 11:case 14:case 15:nl(4,f,f.return);break;case 1:$s(f,f.return);var h=f.stateNode;if("function"===typeof h.componentWillUnmount){r=f,n=f.return;try{t=r,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(x){Nc(r,n,x)}}break;case 5:$s(f,f.return);break;case 22:if(null!==f.memoizedState){wl(p);continue}}null!==m?(m.return=f,Zs=m):wl(p)}d=d.sibling}e:for(d=null,p=e;;){if(5===p.tag){if(null===d){d=p;try{a=p.stateNode,u?"function"===typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=p.stateNode,s=void 0!==(c=p.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=he("display",s))}catch(x){Nc(e,e.return,x)}}}else if(6===p.tag){if(null===d)try{p.stateNode.nodeValue=u?"":p.memoizedProps}catch(x){Nc(e,e.return,x)}}else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===e)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===e)break e;for(;null===p.sibling;){if(null===p.return||p.return===e)break e;d===p&&(d=null),p=p.return}d===p&&(d=null),p.sibling.return=p.return,p=p.sibling}}break;case 19:hl(t,e),gl(e),4&r&&ml(e);case 21:}}function gl(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(il(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(pe(a,""),r.flags&=-33),cl(e,sl(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;ll(e,sl(e),i);break;default:throw Error(o(161))}}catch(s){Nc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bl(e,t,n){Zs=e,vl(e,t,n)}function vl(e,t,n){for(var r=0!==(1&e.mode);null!==Zs;){var a=Zs,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||Xs;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Js;s=Xs;var c=Js;if(Xs=i,(Js=l)&&!c)for(Zs=a;null!==Zs;)l=(i=Zs).child,22===i.tag&&null!==i.memoizedState?kl(a):null!==l?(l.return=i,Zs=l):kl(a);for(;null!==o;)Zs=o,vl(o,t,n),o=o.sibling;Zs=a,Xs=s,Js=c}yl(e)}else 0!==(8772&a.subtreeFlags)&&null!==o?(o.return=a,Zs=o):yl(e)}}function yl(e){for(;null!==Zs;){var t=Zs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Js||rl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Js)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:go(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Bo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Bo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var d=u.memoizedState;if(null!==d){var p=d.dehydrated;null!==p&&Ht(p)}}}break;default:throw Error(o(163))}Js||512&t.flags&&al(t)}catch(f){Nc(t,t.return,f)}}if(t===e){Zs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Zs=n;break}Zs=t.return}}function wl(e){for(;null!==Zs;){var t=Zs;if(t===e){Zs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Zs=n;break}Zs=t.return}}function kl(e){for(;null!==Zs;){var t=Zs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{rl(4,t)}catch(l){Nc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Nc(t,a,l)}}var o=t.return;try{al(t)}catch(l){Nc(t,o,l)}break;case 5:var i=t.return;try{al(t)}catch(l){Nc(t,i,l)}}}catch(l){Nc(t,t.return,l)}if(t===e){Zs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Zs=s;break}Zs=t.return}}var jl,Nl=Math.ceil,Al=y.ReactCurrentDispatcher,Sl=y.ReactCurrentOwner,Cl=y.ReactCurrentBatchConfig,El=0,Pl=null,Fl=null,Tl=0,Ol=0,_l=Na(0),Dl=0,Il=null,Rl=0,Ll=0,Ml=0,Bl=null,Ul=null,zl=0,Hl=1/0,Wl=null,Vl=!1,Ql=null,Yl=null,ql=!1,Gl=null,Xl=0,Jl=0,Kl=null,Zl=-1,$l=0;function ec(){return 0!==(6&El)?Ke():-1!==Zl?Zl:Zl=Ke()}function tc(e){return 0===(1&e.mode)?1:0!==(2&El)&&0!==Tl?Tl&-Tl:null!==xo.transition?(0===$l&&($l=ht()),$l):0!==(e=vt)?e:e=void 0===(e=window.event)?16:Jt(e.type)}function nc(e,t,n,r){if(50<Jl)throw Jl=0,Kl=null,Error(o(185));gt(e,n,r),0!==(2&El)&&e===Pl||(e===Pl&&(0===(2&El)&&(Ll|=n),4===Dl&&sc(e,Tl)),rc(e,r),1===n&&0===El&&0===(1&t.mode)&&(Hl=Ke()+500,Ba&&Ha()))}function rc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!==(s&n)&&0===(s&r)||(a[i]=ft(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=pt(e,e===Pl?Tl:0);if(0===r)null!==n&&Ge(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ge(n),1===t)0===e.tag?function(e){Ba=!0,za(e)}(lc.bind(null,e)):za(lc.bind(null,e)),ia((function(){0===(6&El)&&Ha()})),n=null;else{switch(yt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Pc(n,ac.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ac(e,t){if(Zl=-1,$l=0,0!==(6&El))throw Error(o(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=pt(e,e===Pl?Tl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=xc(e,r);else{t=r;var a=El;El|=2;var i=mc();for(Pl===e&&Tl===t||(Wl=null,Hl=Ke()+500,pc(e,t));;)try{bc();break}catch(l){fc(e,l)}ko(),Al.current=i,El=a,null!==Fl?t=0:(Pl=null,Tl=0,t=Dl)}if(0!==t){if(2===t&&(0!==(a=mt(e))&&(r=a,t=oc(e,a))),1===t)throw n=Il,pc(e,0),sc(e,r),rc(e,Ke()),n;if(6===t)sc(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=xc(e,r))&&(0!==(i=mt(e))&&(r=i,t=oc(e,i))),1===t))throw n=Il,pc(e,0),sc(e,r),rc(e,Ke()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:wc(e,Ul,Wl);break;case 3:if(sc(e,r),(130023424&r)===r&&10<(t=zl+500-Ke())){if(0!==pt(e,0))break;if(((a=e.suspendedLanes)&r)!==r){ec(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(wc.bind(null,e,Ul,Wl),t);break}wc(e,Ul,Wl);break;case 4:if(sc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Ke()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Nl(r/1960))-r)){e.timeoutHandle=ra(wc.bind(null,e,Ul,Wl),r);break}wc(e,Ul,Wl);break;default:throw Error(o(329))}}}return rc(e,Ke()),e.callbackNode===n?ac.bind(null,e):null}function oc(e,t){var n=Bl;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=xc(e,t))&&(t=Ul,Ul=n,null!==t&&ic(t)),e}function ic(e){null===Ul?Ul=e:Ul.push.apply(Ul,e)}function sc(e,t){for(t&=~Ml,t&=~Ll,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function lc(e){if(0!==(6&El))throw Error(o(327));kc();var t=pt(e,0);if(0===(1&t))return rc(e,Ke()),null;var n=xc(e,t);if(0!==e.tag&&2===n){var r=mt(e);0!==r&&(t=r,n=oc(e,r))}if(1===n)throw n=Il,pc(e,0),sc(e,t),rc(e,Ke()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,wc(e,Ul,Wl),rc(e,Ke()),null}function cc(e,t){var n=El;El|=1;try{return e(t)}finally{0===(El=n)&&(Hl=Ke()+500,Ba&&Ha())}}function uc(e){null!==Gl&&0===Gl.tag&&0===(6&El)&&kc();var t=El;El|=1;var n=Cl.transition,r=vt;try{if(Cl.transition=null,vt=1,e)return e()}finally{vt=r,Cl.transition=n,0===(6&(El=t))&&Ha()}}function dc(){Ol=_l.current,Aa(_l)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Fl)for(n=Fl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&_a();break;case 3:oi(),Aa(Pa),Aa(Ea),di();break;case 5:si(r);break;case 4:oi();break;case 13:case 19:Aa(li);break;case 10:jo(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Pl=e,Fl=e=_c(e.current,null),Tl=Ol=t,Dl=0,Il=null,Ml=Ll=Rl=0,Ul=Bl=null,null!==Co){for(t=0;t<Co.length;t++)if(null!==(r=(n=Co[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}Co=null}return e}function fc(e,t){for(;;){var n=Fl;try{if(ko(),pi.current=is,bi){for(var r=hi.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}bi=!1}if(mi=0,gi=xi=hi=null,vi=!1,yi=0,Sl.current=null,null===n||null===n.return){Dl=1,Il=t,Fl=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=Tl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,d=l,p=d.tag;if(0===(1&d.mode)&&(0===p||11===p||15===p)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=gs(s);if(null!==m){m.flags&=-257,bs(m,s,l,0,t),1&m.mode&&xs(i,u,t),c=u;var h=(t=m).updateQueue;if(null===h){var x=new Set;x.add(c),t.updateQueue=x}else h.add(c);break e}if(0===(1&t)){xs(i,u,t),hc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var g=gs(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),bs(g,s,l,0,t),ho(us(c,l));break e}}i=c=us(c,l),4!==Dl&&(Dl=2),null===Bl?Bl=[i]:Bl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Lo(i,ms(0,c,t));break e;case 1:l=c;var b=i.type,v=i.stateNode;if(0===(128&i.flags)&&("function"===typeof b.getDerivedStateFromError||null!==v&&"function"===typeof v.componentDidCatch&&(null===Yl||!Yl.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Lo(i,hs(i,l,t));break e}}i=i.return}while(null!==i)}yc(n)}catch(y){t=y,Fl===n&&null!==n&&(Fl=n=n.return);continue}break}}function mc(){var e=Al.current;return Al.current=is,null===e?is:e}function hc(){0!==Dl&&3!==Dl&&2!==Dl||(Dl=4),null===Pl||0===(268435455&Rl)&&0===(268435455&Ll)||sc(Pl,Tl)}function xc(e,t){var n=El;El|=2;var r=mc();for(Pl===e&&Tl===t||(Wl=null,pc(e,t));;)try{gc();break}catch(a){fc(e,a)}if(ko(),El=n,Al.current=r,null!==Fl)throw Error(o(261));return Pl=null,Tl=0,Dl}function gc(){for(;null!==Fl;)vc(Fl)}function bc(){for(;null!==Fl&&!Xe();)vc(Fl)}function vc(e){var t=jl(e.alternate,e,Ol);e.memoizedProps=e.pendingProps,null===t?yc(e):Fl=t,Sl.current=null}function yc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=qs(n,t,Ol)))return void(Fl=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Fl=n);if(null===e)return Dl=6,void(Fl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fl=t);Fl=t=e}while(null!==t);0===Dl&&(Dl=5)}function wc(e,t,n){var r=vt,a=Cl.transition;try{Cl.transition=null,vt=1,function(e,t,n,r){do{kc()}while(null!==Gl);if(0!==(6&El))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Pl&&(Fl=Pl=null,Tl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||ql||(ql=!0,Pc(tt,(function(){return kc(),null}))),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=Cl.transition,Cl.transition=null;var s=vt;vt=1;var l=El;El|=4,Sl.current=null,function(e,t){if(ea=Vt,fr(e=pr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,d=0,p=e,f=null;t:for(;;){for(var m;p!==n||0!==a&&3!==p.nodeType||(l=s+a),p!==i||0!==r&&3!==p.nodeType||(c=s+r),3===p.nodeType&&(s+=p.nodeValue.length),null!==(m=p.firstChild);)f=p,p=m;for(;;){if(p===e)break t;if(f===n&&++u===a&&(l=s),f===i&&++d===r&&(c=s),null!==(m=p.nextSibling))break;f=(p=f).parentNode}p=m}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},Vt=!1,Zs=t;null!==Zs;)if(e=(t=Zs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Zs=e;else for(;null!==Zs;){t=Zs;try{var h=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==h){var x=h.memoizedProps,g=h.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?x:go(t.type,x),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(o(163))}}catch(w){Nc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Zs=e;break}Zs=t.return}h=tl,tl=!1}(e,n),xl(n,e),mr(ta),Vt=!!ea,ta=ea=null,e.current=n,bl(n,e,a),Je(),El=l,vt=s,Cl.transition=i}else e.current=n;if(ql&&(ql=!1,Gl=e,Xl=a),i=e.pendingLanes,0===i&&(Yl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),rc(e,Ke()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)r((a=t[n]).value,{componentStack:a.stack,digest:a.digest});if(Vl)throw Vl=!1,e=Ql,Ql=null,e;0!==(1&Xl)&&0!==e.tag&&kc(),i=e.pendingLanes,0!==(1&i)?e===Kl?Jl++:(Jl=0,Kl=e):Jl=0,Ha()}(e,t,n,r)}finally{Cl.transition=a,vt=r}return null}function kc(){if(null!==Gl){var e=yt(Xl),t=Cl.transition,n=vt;try{if(Cl.transition=null,vt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,Xl=0,0!==(6&El))throw Error(o(331));var a=El;for(El|=4,Zs=e.current;null!==Zs;){var i=Zs,s=i.child;if(0!==(16&Zs.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Zs=u;null!==Zs;){var d=Zs;switch(d.tag){case 0:case 11:case 15:nl(8,d,i)}var p=d.child;if(null!==p)p.return=d,Zs=p;else for(;null!==Zs;){var f=(d=Zs).sibling,m=d.return;if(ol(d),d===u){Zs=null;break}if(null!==f){f.return=m,Zs=f;break}Zs=m}}}var h=i.alternate;if(null!==h){var x=h.child;if(null!==x){h.child=null;do{var g=x.sibling;x.sibling=null,x=g}while(null!==x)}}Zs=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Zs=s;else e:for(;null!==Zs;){if(0!==(2048&(i=Zs).flags))switch(i.tag){case 0:case 11:case 15:nl(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,Zs=b;break e}Zs=i.return}}var v=e.current;for(Zs=v;null!==Zs;){var y=(s=Zs).child;if(0!==(2064&s.subtreeFlags)&&null!==y)y.return=s,Zs=y;else e:for(s=v;null!==Zs;){if(0!==(2048&(l=Zs).flags))try{switch(l.tag){case 0:case 11:case 15:rl(9,l)}}catch(k){Nc(l,l.return,k)}if(l===s){Zs=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Zs=w;break e}Zs=l.return}}if(El=a,Ha(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(k){}r=!0}return r}finally{vt=n,Cl.transition=t}}return!1}function jc(e,t,n){e=Io(e,t=ms(0,t=us(n,t),1),1),t=ec(),null!==e&&(gt(e,1,t),rc(e,t))}function Nc(e,t,n){if(3===e.tag)jc(e,e,n);else for(;null!==t;){if(3===t.tag){jc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Yl||!Yl.has(r))){t=Io(t,e=hs(t,e=us(n,e),1),1),e=ec(),null!==t&&(gt(t,1,e),rc(t,e));break}}t=t.return}}function Ac(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=ec(),e.pingedLanes|=e.suspendedLanes&n,Pl===e&&(Tl&n)===n&&(4===Dl||3===Dl&&(130023424&Tl)===Tl&&500>Ke()-zl?pc(e,0):Ml|=n),rc(e,t)}function Sc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=ec();null!==(e=Fo(e,t))&&(gt(e,t,n),rc(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sc(e,n)}function Ec(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Sc(e,n)}function Pc(e,t){return qe(e,t)}function Fc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Tc(e,t,n,r){return new Fc(e,t,n,r)}function Oc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function _c(e,t){var n=e.alternate;return null===n?((n=Tc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Dc(e,t,n,r,a,i){var s=2;if(r=e,"function"===typeof e)Oc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case j:return Ic(n.children,a,i,t);case N:s=8,a|=8;break;case A:return(e=Tc(12,n,t,2|a)).elementType=A,e.lanes=i,e;case P:return(e=Tc(13,n,t,a)).elementType=P,e.lanes=i,e;case F:return(e=Tc(19,n,t,a)).elementType=F,e.lanes=i,e;case _:return Rc(n,a,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case S:s=10;break e;case C:s=9;break e;case E:s=11;break e;case T:s=14;break e;case O:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Tc(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Ic(e,t,n,r){return(e=Tc(7,e,r,t)).lanes=n,e}function Rc(e,t,n,r){return(e=Tc(22,e,r,t)).elementType=_,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Tc(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Tc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xt(0),this.expirationTimes=xt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,a,o,i,s,l){return e=new Bc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Tc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Oo(o),e}function zc(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:k,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Hc(e){if(!e)return Ca;e:{if(He(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Oa(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Oa(n))return Ia(e,n,t)}return t}function Wc(e,t,n,r,a,o,i,s,l){return(e=Uc(n,r,!0,e,0,o,0,s,l)).context=Hc(null),n=e.current,(o=Do(r=ec(),a=tc(n))).callback=void 0!==t&&null!==t?t:null,Io(n,o,a),e.current.lanes=a,gt(e,a,r),rc(e,r),e}function Vc(e,t,n,r){var a=t.current,o=ec(),i=tc(a);return n=Hc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Io(a,t,i))&&(nc(e,a,i,o),Ro(e,a,i)),i}function Qc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Yc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function qc(e,t){Yc(e,t),(e=e.alternate)&&Yc(e,t)}jl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Pa.current)ys=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Fs(t),mo();break;case 5:ii(t);break;case 1:Oa(t.type)&&Ra(t);break;case 4:ai(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;Sa(bo,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Sa(li,1&li.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(Sa(li,1&li.current),null!==(e=Vs(e,t,n))?e.sibling:null);Sa(li,1&li.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Hs(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),Sa(li,li.current),r)break;return null;case 22:case 23:return t.lanes=0,As(e,t,n)}return Vs(e,t,n)}(e,t,n);ys=0!==(131072&e.flags)}else ys=!1,ao&&0!==(1048576&t.flags)&&$a(t,Ya,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ws(e,t),e=t.pendingProps;var a=Ta(t,Ea.current);Ao(t,n),a=Ni(null,t,r,e,a,n);var i=Ai();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Oa(r)?(i=!0,Ra(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Oo(t),a.updater=Ho,t.stateNode=a,a._reactInternals=t,Yo(t,r,e,n),t=Ps(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),ws(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ws(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Oc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===E)return 11;if(e===T)return 14}return 2}(r),e=go(r,e),a){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Es(null,t,r,e,n);break e;case 11:t=ks(null,t,r,e,n);break e;case 14:t=js(null,t,r,go(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,Cs(e,t,r,a=t.elementType===r?a:go(r,a),n);case 1:return r=t.type,a=t.pendingProps,Es(e,t,r,a=t.elementType===r?a:go(r,a),n);case 3:e:{if(Fs(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,_o(e,t),Mo(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=Ts(e,t,r,n,a=us(Error(o(423)),t));break e}if(r!==a){t=Ts(e,t,r,n,a=us(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Zo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(mo(),r===a){t=Vs(e,t,n);break e}ws(e,t,r,n)}t=t.child}return t;case 5:return ii(t),null===e&&co(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),Ss(e,t),ws(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return ai(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Ko(t,null,r,n):ws(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ks(e,t,r,a=t.elementType===r?a:go(r,a),n);case 7:return ws(e,t,t.pendingProps,n),t.child;case 8:case 12:return ws(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,Sa(bo,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!Pa.current){t=Vs(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Do(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var d=(u=u.shared).pending;null===d?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),No(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),No(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}ws(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,r=t.pendingProps.children,Ao(t,n),r=r(a=So(a)),t.flags|=1,ws(e,t,r,n),t.child;case 14:return a=go(r=t.type,t.pendingProps),js(e,t,r,a=go(r.type,a),n);case 15:return Ns(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:go(r,a),Ws(e,t),t.tag=1,Oa(r)?(e=!0,Ra(t)):e=!1,Ao(t,n),Vo(t,r,a),Yo(t,r,a,n),Ps(null,t,r,!0,e,n);case 19:return Hs(e,t,n);case 22:return As(e,t,n)}throw Error(o(156,t.tag))};var Gc="function"===typeof reportError?reportError:function(e){console.error(e)};function Xc(e){this._internalRoot=e}function Jc(e){this._internalRoot=e}function Kc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function $c(){}function eu(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"===typeof a){var s=a;a=function(){var e=Qc(i);s.call(e)}}Vc(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"===typeof r){var o=r;r=function(){var e=Qc(i);o.call(e)}}var i=Wc(t,r,e,0,null,!1,0,"",$c);return e._reactRootContainer=i,e[ma]=i.current,Hr(8===e.nodeType?e.parentNode:e),uc(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var s=r;r=function(){var e=Qc(l);s.call(e)}}var l=Uc(e,0,!1,null,0,!1,0,"",$c);return e._reactRootContainer=l,e[ma]=l.current,Hr(8===e.nodeType?e.parentNode:e),uc((function(){Vc(t,l,n,r)})),l}(n,t,e,a,r);return Qc(i)}Jc.prototype.render=Xc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Vc(e,t,null,null)},Jc.prototype.unmount=Xc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;uc((function(){Vc(null,e,null,null)})),t[ma]=null}},Jc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_t.length&&0!==t&&t<_t[n].priority;n++);_t.splice(n,0,e),0===n&&Lt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=dt(t.pendingLanes);0!==n&&(bt(t,1|n),rc(t,Ke()),0===(6&El)&&(Hl=Ke()+500,Ha()))}break;case 13:uc((function(){var t=Fo(e,1);if(null!==t){var n=ec();nc(t,e,1,n)}})),qc(e,1)}},kt=function(e){if(13===e.tag){var t=Fo(e,134217728);if(null!==t)nc(t,e,134217728,ec());qc(e,134217728)}},jt=function(e){if(13===e.tag){var t=tc(e),n=Fo(e,t);if(null!==n)nc(n,e,t,ec());qc(e,t)}},Nt=function(){return vt},At=function(e,t){var n=vt;try{return vt=e,t()}finally{vt=n}},ke=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));q(r),Z(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ee=cc,Pe=uc;var tu={usingClientEntryPoint:!1,Events:[va,ya,wa,Se,Ce,cc]},nu={findFiberByHostInstance:ba,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},ru={bundleType:nu.bundleType,version:nu.version,rendererPackageName:nu.rendererPackageName,rendererConfig:nu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:y.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qe(e))?null:e.stateNode},findFiberByHostInstance:nu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var au=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!au.isDisabled&&au.supportsFiber)try{at=au.inject(ru),ot=au}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Kc(t))throw Error(o(200));return zc(e,t,null,n)},t.createRoot=function(e,t){if(!Kc(e))throw Error(o(299));var n=!1,r="",a=Gc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,a),e[ma]=t.current,Hr(8===e.nodeType?e.parentNode:e),new Xc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Qe(t))?null:e.stateNode},t.flushSync=function(e){return uc(e)},t.hydrate=function(e,t,n){if(!Zc(t))throw Error(o(200));return eu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Gc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Wc(t,null,e,1,null!=n?n:null,a,0,i,s),e[ma]=t.current,Hr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Jc(t)},t.render=function(e,t,n){if(!Zc(t))throw Error(o(200));return eu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Zc(e))throw Error(o(40));return!!e._reactRootContainer&&(uc((function(){eu(null,null,e,!1,(function(){e._reactRootContainer=null,e[ma]=null}))})),!0)},t.unstable_batchedUpdates=cc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Zc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return eu(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},1250:function(e,t,n){"use strict";var r=n(4164);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},8459:function(e,t){"use strict";var n,r=Symbol.for("react.element"),a=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),c=Symbol.for("react.context"),u=Symbol.for("react.server_context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case i:case p:case f:return e;default:switch(e=e&&e.$$typeof){case u:case c:case d:case h:case m:case l:return e;default:return t}}case a:return t}}}n=Symbol.for("react.module.reference")},6900:function(e,t,n){"use strict";n(8459)},4805:function(e,t,n){var r;r=function(e){return function(){var t={"./node_modules/css-mediaquery/index.js":function(e,t){"use strict";t.match=function(e,t){return s(e).some((function(e){var n=e.inverse,r="all"===e.type||t.type===e.type;if(r&&n||!r&&!n)return!1;var a=e.expressions.every((function(e){var n=e.feature,r=e.modifier,a=e.value,o=t[n];if(!o)return!1;switch(n){case"orientation":case"scan":return o.toLowerCase()===a.toLowerCase();case"width":case"height":case"device-width":case"device-height":a=u(a),o=u(o);break;case"resolution":a=c(a),o=c(o);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":a=l(a),o=l(o);break;case"grid":case"color":case"color-index":case"monochrome":a=parseInt(a,10)||1,o=parseInt(o,10)||0}switch(r){case"min":return o>=a;case"max":return o<=a;default:return o===a}}));return a&&!n||!a&&n}))},t.parse=s;var n=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,r=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,a=/^(?:(min|max)-)?(.+)/,o=/(em|rem|px|cm|mm|in|pt|pc)?$/,i=/(dpi|dpcm|dppx)?$/;function s(e){return e.split(",").map((function(e){var t=(e=e.trim()).match(n),o=t[1],i=t[2],s=t[3]||"",l={};return l.inverse=!!o&&"not"===o.toLowerCase(),l.type=i?i.toLowerCase():"all",s=s.match(/\([^\)]+\)/g)||[],l.expressions=s.map((function(e){var t=e.match(r),n=t[1].toLowerCase().match(a);return{modifier:n[1],feature:n[2],value:t[2]}})),l}))}function l(e){var t,n=Number(e);return n||(n=(t=e.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/t[2]),n}function c(e){var t=parseFloat(e);switch(String(e).match(i)[1]){case"dpcm":return t/2.54;case"dppx":return 96*t;default:return t}}function u(e){var t=parseFloat(e);switch(String(e).match(o)[1]){case"em":case"rem":return 16*t;case"cm":return 96*t/2.54;case"mm":return 96*t/2.54/10;case"in":return 96*t;case"pt":return 72*t;case"pc":return 72*t/12;default:return t}}},"./node_modules/hyphenate-style-name/index.js":function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return s}});var r=/[A-Z]/g,a=/^ms-/,o={};function i(e){return"-"+e.toLowerCase()}var s=function(e){if(o.hasOwnProperty(e))return o[e];var t=e.replace(r,i);return o[e]=a.test(t)?"-"+t:t}},"./node_modules/matchmediaquery/index.js":function(e,t,n){"use strict";var r=n("./node_modules/css-mediaquery/index.js").match,a="undefined"!==typeof window?window.matchMedia:null;function o(e,t,n){var o=this;if(a&&!n){var i=a.call(window,e);this.matches=i.matches,this.media=i.media,i.addListener(s)}else this.matches=r(e,t),this.media=e;function s(e){o.matches=e.matches,o.media=e.media}this.addListener=function(e){i&&i.addListener(e)},this.removeListener=function(e){i&&i.removeListener(e)},this.dispose=function(){i&&i.removeListener(s)}}e.exports=function(e,t,n){return new o(e,t,n)}},"./node_modules/object-assign/index.js":function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(a){return!1}}()?Object.assign:function(e,o){for(var i,s,l=a(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))n.call(i,u)&&(l[u]=i[u]);if(t){s=t(i);for(var d=0;d<s.length;d++)r.call(i,s[d])&&(l[s[d]]=i[s[d]])}}return l}},"./node_modules/prop-types/checkPropTypes.js":function(e,t,n){"use strict";var r=function(){},a=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),o={},i=n("./node_modules/prop-types/lib/has.js");function s(e,t,n,s,l){for(var c in e)if(i(e,c)){var u;try{if("function"!==typeof e[c]){var d=Error((s||"React class")+": "+n+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}u=e[c](t,c,s,n,null,a)}catch(f){u=f}if(!u||u instanceof Error||r((s||"React class")+": type specification of "+n+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),u instanceof Error&&!(u.message in o)){o[u.message]=!0;var p=l?l():"";r("Failed "+n+" type: "+u.message+(null!=p?p:""))}}}r=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},s.resetWarningCache=function(){o={}},e.exports=s},"./node_modules/prop-types/factoryWithTypeCheckers.js":function(e,t,n){"use strict";var r=n("./node_modules/react-is/index.js"),a=n("./node_modules/object-assign/index.js"),o=n("./node_modules/prop-types/lib/ReactPropTypesSecret.js"),i=n("./node_modules/prop-types/lib/has.js"),s=n("./node_modules/prop-types/checkPropTypes.js"),l=function(){};function c(){return null}l=function(e){var t="Warning: "+e;"undefined"!==typeof console&&console.error(t);try{throw new Error(t)}catch(n){}},e.exports=function(e,t){var n="function"===typeof Symbol&&Symbol.iterator,u="<<anonymous>>",d={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:m(c),arrayOf:function(e){return m((function(t,n,r,a,i){if("function"!==typeof e)return new f("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s))return new f("Invalid "+a+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<s.length;l++){var c=e(s,l,r,a,i+"["+l+"]",o);if(c instanceof Error)return c}return null}))},element:m((function(t,n,r,a,o){var i=t[n];return e(i)?null:new f("Invalid "+a+" `"+o+"` of type `"+b(i)+"` supplied to `"+r+"`, expected a single ReactElement.")})),elementType:m((function(e,t,n,a,o){var i=e[t];return r.isValidElementType(i)?null:new f("Invalid "+a+" `"+o+"` of type `"+b(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return m((function(t,n,r,a,o){if(!(t[n]instanceof e)){var i=e.name||u;return new f("Invalid "+a+" `"+o+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:u)+"` supplied to `"+r+"`, expected instance of `"+i+"`.")}var s;return null}))},node:m((function(e,t,n,r,a){return g(e[t])?null:new f("Invalid "+r+" `"+a+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return m((function(t,n,r,a,s){if("function"!==typeof e)return new f("Property `"+s+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var l=t[n],c=b(l);if("object"!==c)return new f("Invalid "+a+" `"+s+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in l)if(i(l,u)){var d=e(l,u,r,a,s+"."+u,o);if(d instanceof Error)return d}return null}))},oneOf:function(e){if(!Array.isArray(e))return l(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),c;function t(t,n,r,a,o){for(var i=t[n],s=0;s<e.length;s++)if(p(i,e[s]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===v(t)?String(t):t}));return new f("Invalid "+a+" `"+o+"` of value `"+String(i)+"` supplied to `"+r+"`, expected one of "+l+".")}return m(t)},oneOfType:function(e){if(!Array.isArray(e))return l("Invalid argument supplied to oneOfType, expected an instance of array."),c;for(var t=0;t<e.length;t++){var n=e[t];if("function"!==typeof n)return l("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+y(n)+" at index "+t+"."),c}return m((function(t,n,r,a,s){for(var l=[],c=0;c<e.length;c++){var u=(0,e[c])(t,n,r,a,s,o);if(null==u)return null;u.data&&i(u.data,"expectedType")&&l.push(u.data.expectedType)}return new f("Invalid "+a+" `"+s+"` supplied to `"+r+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return m((function(t,n,r,a,i){var s=t[n],l=b(s);if("object"!==l)return new f("Invalid "+a+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var u=e[c];if("function"!==typeof u)return x(r,a,i,c,v(u));var d=u(s,c,r,a,i+"."+c,o);if(d)return d}return null}))},exact:function(e){return m((function(t,n,r,s,l){var c=t[n],u=b(c);if("object"!==u)return new f("Invalid "+s+" `"+l+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var d=a({},t[n],e);for(var p in d){var m=e[p];if(i(e,p)&&"function"!==typeof m)return x(r,s,l,p,v(m));if(!m)return new f("Invalid "+s+" `"+l+"` key `"+p+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null,"  ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null,"  "));var h=m(c,p,r,s,l+"."+p,o);if(h)return h}return null}))}};function p(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e,t){this.message=e,this.data=t&&"object"===typeof t?t:{},this.stack=""}function m(e){var n={},r=0;function a(a,i,s,c,d,p,m){if(c=c||u,p=p||s,m!==o){if(t){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}if("undefined"!==typeof console){var x=c+":"+s;!n[x]&&r<3&&(l("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[x]=!0,r++)}}return null==i[s]?a?null===i[s]?new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new f("The "+d+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,s,c,d,p)}var i=a.bind(null,!1);return i.isRequired=a.bind(null,!0),i}function h(e){return m((function(t,n,r,a,o,i){var s=t[n];return b(s)!==e?new f("Invalid "+a+" `"+o+"` of type `"+v(s)+"` supplied to `"+r+"`, expected `"+e+"`.",{expectedType:e}):null}))}function x(e,t,n,r,a){return new f((e||"React class")+": "+t+" type `"+n+"."+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+a+"`.")}function g(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(g);if(null===t||e(t))return!0;var r=function(e){var t=e&&(n&&e[n]||e["@@iterator"]);if("function"===typeof t)return t}(t);if(!r)return!1;var a,o=r.call(t);if(r!==t.entries){for(;!(a=o.next()).done;)if(!g(a.value))return!1}else for(;!(a=o.next()).done;){var i=a.value;if(i&&!g(i[1]))return!1}return!0;default:return!1}}function b(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"===typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function v(e){if("undefined"===typeof e||null===e)return""+e;var t=b(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function y(e){var t=v(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return f.prototype=Error.prototype,d.checkPropTypes=s,d.resetWarningCache=s.resetWarningCache,d.PropTypes=d,d}},"./node_modules/prop-types/index.js":function(e,t,n){var r=n("./node_modules/react-is/index.js");e.exports=n("./node_modules/prop-types/factoryWithTypeCheckers.js")(r.isElement,!0)},"./node_modules/prop-types/lib/ReactPropTypesSecret.js":function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},"./node_modules/prop-types/lib/has.js":function(e){e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":function(e,t){"use strict";!function(){var e="function"===typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,a=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,f=e?Symbol.for("react.suspense_list"):60120,m=e?Symbol.for("react.memo"):60115,h=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function y(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var f=e.type;switch(f){case c:case u:case a:case i:case o:case p:return f;default:var x=f&&f.$$typeof;switch(x){case l:case d:case h:case m:case s:return x;default:return t}}case r:return t}}}var w=c,k=u,j=l,N=s,A=n,S=d,C=a,E=h,P=m,F=r,T=i,O=o,_=p,D=!1;function I(e){return y(e)===u}t.AsyncMode=w,t.ConcurrentMode=k,t.ContextConsumer=j,t.ContextProvider=N,t.Element=A,t.ForwardRef=S,t.Fragment=C,t.Lazy=E,t.Memo=P,t.Portal=F,t.Profiler=T,t.StrictMode=O,t.Suspense=_,t.isAsyncMode=function(e){return D||(D=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),I(e)||y(e)===c},t.isConcurrentMode=I,t.isContextConsumer=function(e){return y(e)===l},t.isContextProvider=function(e){return y(e)===s},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return y(e)===d},t.isFragment=function(e){return y(e)===a},t.isLazy=function(e){return y(e)===h},t.isMemo=function(e){return y(e)===m},t.isPortal=function(e){return y(e)===r},t.isProfiler=function(e){return y(e)===i},t.isStrictMode=function(e){return y(e)===o},t.isSuspense=function(e){return y(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===u||e===i||e===o||e===p||e===f||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===v||e.$$typeof===x)},t.typeOf=y}()},"./node_modules/react-is/index.js":function(e,t,n){"use strict";e.exports=n("./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),a=n.length;if(r.length!==a)return!1;for(var o=0;o<a;o++){var i=n[o];if(e[i]!==t[i]||!Object.prototype.hasOwnProperty.call(t,i))return!1}return!0}function a(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=e.length;if(t.length!==n)return!1;for(var r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}n.r(t),n.d(t,{shallowEqualArrays:function(){return a},shallowEqualObjects:function(){return r}})},"./src/Component.ts":function(e,t,n){"use strict";var r=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=a(n("./src/useMediaQuery.ts"));t.default=function(e){var t=e.children,n=e.device,a=e.onChange,i=r(e,["children","device","onChange"]),s=(0,o.default)(i,n,a);return"function"===typeof t?t(s):s?t:null}},"./src/Context.ts":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(0,n("react").createContext)(void 0);t.default=r},"./src/index.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Context=t.toQuery=t.useMediaQuery=t.default=void 0;var a=r(n("./src/useMediaQuery.ts"));t.useMediaQuery=a.default;var o=r(n("./src/Component.ts"));t.default=o.default;var i=r(n("./src/toQuery.ts"));t.toQuery=i.default;var s=r(n("./src/Context.ts"));t.Context=s.default},"./src/mediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},r.apply(this,arguments)},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]])}return n},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(n("./node_modules/prop-types/index.js")),s=i.default.oneOfType([i.default.string,i.default.number]),l={all:i.default.bool,grid:i.default.bool,aural:i.default.bool,braille:i.default.bool,handheld:i.default.bool,print:i.default.bool,projection:i.default.bool,screen:i.default.bool,tty:i.default.bool,tv:i.default.bool,embossed:i.default.bool},c={orientation:i.default.oneOf(["portrait","landscape"]),scan:i.default.oneOf(["progressive","interlace"]),aspectRatio:i.default.string,deviceAspectRatio:i.default.string,height:s,deviceHeight:s,width:s,deviceWidth:s,color:i.default.bool,colorIndex:i.default.bool,monochrome:i.default.bool,resolution:s,type:Object.keys(l)},u=a(c,["type"]),d=r({minAspectRatio:i.default.string,maxAspectRatio:i.default.string,minDeviceAspectRatio:i.default.string,maxDeviceAspectRatio:i.default.string,minHeight:s,maxHeight:s,minDeviceHeight:s,maxDeviceHeight:s,minWidth:s,maxWidth:s,minDeviceWidth:s,maxDeviceWidth:s,minColor:i.default.number,maxColor:i.default.number,minColorIndex:i.default.number,maxColorIndex:i.default.number,minMonochrome:i.default.number,maxMonochrome:i.default.number,minResolution:s,maxResolution:s},u),p=r(r({},l),d);t.default={all:p,types:l,matchers:c,features:d}},"./src/toQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(n("./node_modules/hyphenate-style-name/index.js")),o=r(n("./src/mediaQuery.ts"));t.default=function(e){var t=[];return Object.keys(o.default.all).forEach((function(n){var r=e[n];null!=r&&t.push(function(e,t){var n=(0,a.default)(e);return"number"===typeof t&&(t="".concat(t,"px")),!0===t?n:!1===t?"not ".concat(n):"(".concat(n,": ").concat(t,")")}(n,r))})),t.join(" and ")}},"./src/useMediaQuery.ts":function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=n("react"),o=r(n("./node_modules/matchmediaquery/index.js")),i=r(n("./node_modules/hyphenate-style-name/index.js")),s=n("./node_modules/shallow-equal/dist/index.esm.js"),l=r(n("./src/toQuery.ts")),c=r(n("./src/Context.ts")),u=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,i.default)(n)]=e[n],t}),{})},d=function(){var e=(0,a.useRef)(!1);return(0,a.useEffect)((function(){e.current=!0}),[]),e.current},p=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},n=(0,a.useState)(t),r=n[0],o=n[1];return(0,a.useEffect)((function(){var e=t();r!==e&&o(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,a.useContext)(c.default),n=function(){return u(e)||u(t)},r=(0,a.useState)(n),o=r[0],i=r[1];return(0,a.useEffect)((function(){var e=n();(0,s.shallowEqualObjects)(o,e)||i(e)}),[e,t]),o}(t),i=p(e);if(!i)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var n=function(){return(0,o.default)(e,t||{},!!t)},r=(0,a.useState)(n),i=r[0],s=r[1],l=d();return(0,a.useEffect)((function(){if(l){var e=n();return s(e),function(){e&&e.dispose()}}}),[e,t]),i}(i,r),f=function(e){var t=(0,a.useState)(e.matches),n=t[0],r=t[1];return(0,a.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(l),m=d();return(0,a.useEffect)((function(){m&&n&&n(f)}),[f]),(0,a.useEffect)((function(){return function(){l&&l.dispose()}}),[]),f}},react:function(t){"use strict";t.exports=e}},n={};function r(e){var a=n[e];if(void 0!==a)return a.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}return r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")}()},e.exports=r(n(2791))},6374:function(e,t,n){"use strict";var r=n(2791),a=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,u=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,r)&&!l.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:a,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,x={};function g(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||m}function b(){}function v(e,t,n){this.props=e,this.context=t,this.refs=x,this.updater=n||m}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=g.prototype;var y=v.prototype=new b;y.constructor=v,h(y,g.prototype),y.isPureReactComponent=!0;var w=Array.isArray,k=Object.prototype.hasOwnProperty,j={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function A(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)k.call(t,a)&&!N.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:j.current}}function S(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var C=/\/+/g;function E(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+E(l,0):o,w(i)?(a="",null!=e&&(a=e.replace(C,"$&/")+"/"),P(i,t,a,"",(function(e){return e}))):null!=i&&(S(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(C,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+E(s=e[c],c);l+=P(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=f&&e[f]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=P(s=s.value,t,a,u=o+E(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function F(e,t,n){if(null==e)return e;var r=[],a=0;return P(e,r,"","",(function(e){return t.call(n,e,a++)})),r}function T(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var O={current:null},_={transition:null},D={ReactCurrentDispatcher:O,ReactCurrentBatchConfig:_,ReactCurrentOwner:j};t.Children={map:F,forEach:function(e,t,n){F(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return F(e,(function(){t++})),t},toArray:function(e){return F(e,(function(e){return e}))||[]},only:function(e){if(!S(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=a,t.Profiler=i,t.PureComponent=v,t.StrictMode=o,t.Suspense=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=h({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=j.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)k.call(t,c)&&!N.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=A,t.createFactory=function(e){var t=A.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=S,t.lazy=function(e){return{$$typeof:p,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=_.transition;_.transition={};try{e()}finally{_.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return O.current.useCallback(e,t)},t.useContext=function(e){return O.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return O.current.useDeferredValue(e)},t.useEffect=function(e,t){return O.current.useEffect(e,t)},t.useId=function(){return O.current.useId()},t.useImperativeHandle=function(e,t,n){return O.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return O.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return O.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return O.current.useMemo(e,t)},t.useReducer=function(e,t,n){return O.current.useReducer(e,t,n)},t.useRef=function(e){return O.current.useRef(e)},t.useState=function(e){return O.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return O.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return O.current.useTransition()},t.version="18.2.0"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},3315:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,a.default)(e);return{getItem:function(e){return new Promise((function(n,r){n(t.getItem(e))}))},setItem:function(e,n){return new Promise((function(r,a){r(t.setItem(e,n))}))},removeItem:function(e){return new Promise((function(n,r){n(t.removeItem(e))}))}}};var r,a=(r=n(2900))&&r.__esModule?r:{default:r}},2900:function(e,t){"use strict";function n(e){return n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return function(e){if("object"!==("undefined"===typeof self?"undefined":n(self))||!(e in self))return!1;try{var t=self[e],r="redux-persist ".concat(e," test");t.setItem(r,"test"),t.getItem(r),t.removeItem(r)}catch(a){return!1}return!0}(t)?self[t]:a};var a={getItem:r,setItem:r,removeItem:r}},5752:function(e,t,n){"use strict";var r;t.Z=void 0;var a=(0,((r=n(3315))&&r.__esModule?r:{default:r}).default)("local");t.Z=a},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],d=1,p=null,f=3,m=!1,h=!1,x=!1,g="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,v="undefined"!==typeof setImmediate?setImmediate:null;function y(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(x=!1,y(e),!h)if(null!==r(c))h=!0,_(k);else{var t=r(u);null!==t&&D(w,t.startTime-e)}}function k(e,n){h=!1,x&&(x=!1,b(S),S=-1),m=!0;var o=f;try{for(y(n),p=r(c);null!==p&&(!(p.expirationTime>n)||e&&!P());){var i=p.callback;if("function"===typeof i){p.callback=null,f=p.priorityLevel;var s=i(p.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?p.callback=s:p===r(c)&&a(c),y(n)}else a(c);p=r(c)}if(null!==p)var l=!0;else{var d=r(u);null!==d&&D(w,d.startTime-n),l=!1}return l}finally{p=null,f=o,m=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var j,N=!1,A=null,S=-1,C=5,E=-1;function P(){return!(t.unstable_now()-E<C)}function F(){if(null!==A){var e=t.unstable_now();E=e;var n=!0;try{n=A(!0,e)}finally{n?j():(N=!1,A=null)}}else N=!1}if("function"===typeof v)j=function(){v(F)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,O=T.port2;T.port1.onmessage=F,j=function(){O.postMessage(null)}}else j=function(){g(F,0)};function _(e){A=e,N||(N=!0,j())}function D(e,n){S=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){h||m||(h=!0,_(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(x?(b(S),S=-1):x=!0,D(w,o-i))):(e.sortIndex=s,n(c,e),h||m||(h=!0,_(k))),e},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},1561:function(e,t,n){"use strict";var r=n(2791);var a="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},o=r.useState,i=r.useEffect,s=r.useLayoutEffect,l=r.useDebugValue;function c(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!a(e,n)}catch(r){return!0}}var u="undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=o({inst:{value:n,getSnapshot:t}}),a=r[0].inst,u=r[1];return s((function(){a.value=n,a.getSnapshot=t,c(a)&&u({inst:a})}),[e,n,t]),i((function(){return c(a)&&u({inst:a}),e((function(){c(a)&&u({inst:a})}))}),[e]),l(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:u},7595:function(e,t,n){"use strict";var r=n(2791),a=n(7248);var o="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},i=a.useSyncExternalStore,s=r.useRef,l=r.useEffect,c=r.useMemo,u=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,a){var d=s(null);if(null===d.current){var p={hasValue:!1,value:null};d.current=p}else p=d.current;d=c((function(){function e(e){if(!l){if(l=!0,i=e,e=r(e),void 0!==a&&p.hasValue){var t=p.value;if(a(t,e))return s=t}return s=e}if(t=s,o(i,e))return t;var n=r(e);return void 0!==a&&a(t,n)?t:(i=e,s=n)}var i,s,l=!1,c=void 0===n?null:n;return[function(){return e(t())},null===c?void 0:function(){return e(c())}]}),[t,n,r,a]);var f=i(e,d[0],d[1]);return l((function(){p.hasValue=!0,p.value=f}),[f]),u(f),f}},7248:function(e,t,n){"use strict";e.exports=n(1561)},327:function(e,t,n){"use strict";e.exports=n(7595)},6115:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},6690:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},3515:function(e,t,n){var r=n(6015),a=n(9617);function o(t,n,i){return a()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var a=[null];a.push.apply(a,t);var o=new(Function.bind.apply(e,a));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},9728:function(e,t,n){var r=n(4062);function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,r(a.key),a)}}e.exports=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},6389:function(e,t,n){var r=n(3808),a=n(9617),o=n(4993);e.exports=function(e){var t=a();return function(){var n,a=r(e);if(t){var i=r(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},1588:function(e,t,n){var r=n(1753);function a(){return"undefined"!==typeof Reflect&&Reflect.get?(e.exports=a=Reflect.get.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=a=function(e,t,n){var a=r(e,t);if(a){var o=Object.getOwnPropertyDescriptor(a,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},e.exports.__esModule=!0,e.exports.default=e.exports),a.apply(this,arguments)}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},3808:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1655:function(e,t,n){var r=n(6015);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},6035:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},9617:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},4993:function(e,t,n){var r=n(8698).default,a=n(6115);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)},e.exports.__esModule=!0,e.exports.default=e.exports},7061:function(e,t,n){var r=n(8698).default;function a(){"use strict";e.exports=a=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(T){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var a=t&&t.prototype instanceof h?t:h,o=Object.create(a.prototype),s=new E(r||[]);return i(o,"_invoke",{value:N(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(T){return{type:"throw",arg:T}}}t.wrap=p;var m={};function h(){}function x(){}function g(){}var b={};d(b,l,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==n&&o.call(y,l)&&(b=y);var w=g.prototype=h.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function j(e,t){function n(a,i,s,l){var c=f(e[a],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return n("throw",e,s,l)}))}l(c.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,a){n(e,r,t,a)}))}return a=a?a.then(o,o):o()}})}function N(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return F()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=A(i,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=f(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function A(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,A(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var a=f(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,m;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:F}}function F(){return{value:void 0,done:!0}}return x.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(g,"constructor",{value:x,configurable:!0}),x.displayName=d(g,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},k(j.prototype),d(j.prototype,c,(function(){return this})),t.AsyncIterator=j,t.async=function(e,n,r,a,o){void 0===o&&(o=Promise);var i=new j(p(e,n,r,a),o);return t.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},k(w),d(w,u,"Generator"),d(w,l,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r],i=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),l=o.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var a=r;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=e,i.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;C(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},t}e.exports=a,e.exports.__esModule=!0,e.exports.default=e.exports},6015:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},1753:function(e,t,n){var r=n(3808);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.__esModule=!0,e.exports.default=e.exports},5036:function(e,t,n){var r=n(8698).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!==r(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},4062:function(e,t,n){var r=n(8698).default,a=n(5036);e.exports=function(e){var t=a(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3496:function(e,t,n){var r=n(3808),a=n(6015),o=n(6035),i=n(3515);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return i(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(r){var a=t[r];if(void 0!==a)return a.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,a){if(1&a&&(r=this(r)),8&a)return r;if("object"===typeof r&&r){if(4&a&&r.__esModule)return r;if(16&a&&"function"===typeof r.then)return r}var o=Object.create(null);n.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var s=2&a&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){i[e]=function(){return r[e]}}));return i.default=function(){return r},n.d(o,i),o}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".a21be2b6.chunk.js"},n.miniCssF=function(e){},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="palbucks:";n.l=function(r,a,o,i){if(e[r])e[r].push(a);else{var s,l;if(void 0!==o)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==t+o){s=d;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[a];var p=function(t,n){s.onerror=s.onload=null,clearTimeout(f);var a=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach((function(e){return e(n)})),t)return t(n)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=p.bind(null,s.onerror),s.onload=p.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{var o=new Promise((function(n,r){a=e[t]=[n,r]}));r.push(a[2]=o);var i=n.p+n.u(t),s=new Error;n.l(i,(function(r){if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,a[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var a,o,i=r[0],s=r[1],l=r[2],c=0;if(i.some((function(t){return 0!==e[t]}))){for(a in s)n.o(s,a)&&(n.m[a]=s[a]);if(l)l(n)}for(t&&t(r);c<i.length;c++)o=i[c],n.o(e,o)&&e[o]&&e[o][0](),e[o]=0},r=self.webpackChunkpalbucks=self.webpackChunkpalbucks||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var r={};!function(){"use strict";n.d(r,{D:function(){return hf}});var e=n(2791),t=n.t(e,2),a=n(1250);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(F){u=function(e,t,n){return e[t]=n}}function d(e,t,n,a){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),s=new C(a||[]);return r(i,"_invoke",{value:j(e,n,s)}),i}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(F){return{type:"throw",arg:F}}}e.wrap=d;var f={};function m(){}function h(){}function x(){}var g={};u(g,s,(function(){return this}));var b=Object.getPrototypeOf,v=b&&b(b(E([])));v&&v!==t&&n.call(v,s)&&(g=v);var y=x.prototype=m.prototype=Object.create(g);function w(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function a(r,i,s,l){var c=p(e[r],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==o(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){a("next",e,s,l)}),(function(e){a("throw",e,s,l)})):t.resolve(d).then((function(e){u.value=e,s(u)}),(function(e){return a("throw",e,s,l)}))}l(c.arg)}var i;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){a(e,n,t,r)}))}return i=i?i.then(r,r):r()}})}function j(e,t,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return P()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=N(i,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function N(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,N(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var a=p(r,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,f;var o=a.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function E(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,a=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return a.next=a}}return{next:P}}function P(){return{value:void 0,done:!0}}return h.prototype=x,r(y,"constructor",{value:x,configurable:!0}),r(x,"constructor",{value:h,configurable:!0}),h.displayName=u(x,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,x):(e.__proto__=x,u(e,c,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},w(k.prototype),u(k.prototype,l,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new k(d(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},w(y),u(y,c,"Generator"),u(y,s,(function(){return this})),u(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return i.type="throw",i.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),l=n.call(o,"finallyLoc");if(s&&l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;S(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function s(e,t,n,r,a,o,i){try{var s=e[o](i),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,a)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,a){var o=e.apply(t,n);function i(e){s(o,r,a,i,l,"next",e)}function l(e){s(o,r,a,i,l,"throw",e)}i(void 0)}))}}n.p;n.p;n.p;var c=n.p+"static/media/eventimg.9b731164859409024222.png",u=(n.p,n.p,n.p+"static/media/eventimg4.1b021e24dbd95b8ee7c6.jpg");n.p,n.p;var d=n.p+"static/media/environment label.b631b6579b433a83181d69bde867aa16.svg";var p=n.p+"static/media/medical label.334639193aa0704b84aae50199f26828.svg";var f,m=n.p+"static/media/animal label.30bda94076123fc89ec9a42ce5e3949b.svg";function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function x(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function g(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function b(e){return function(e){if(Array.isArray(e))return h(e)}(e)||x(e)||g(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e){var t=function(e,t){if("object"!==o(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===o(t)?t:String(t)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,y(r.key),r)}}function k(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function N(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}function S(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function C(e,t){if(t&&("object"===o(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function E(e){var t=S();return function(){var n,r=A(e);if(t){var a=A(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return C(this,n)}}function P(e){if(Array.isArray(e))return e}function F(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function T(e,t){return P(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,s=[],l=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,a=u}finally{try{if(!l&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw a}}return s}}(e,t)||g(e,t)||F()}function O(e,t,n){return O=S()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var a=new(Function.bind.apply(e,r));return n&&j(a,n.prototype),a},O.apply(null,arguments)}function _(e){var t="function"===typeof Map?new Map:void 0;return _=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return O(e,arguments,A(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),j(r,e)},_(e)}function D(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){s=!0,o=e},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}!function(e){e.Pop="POP",e.Push="PUSH",e.Replace="REPLACE"}(f||(f={}));var R,L="popstate";function M(e,t){if(!1===e||null===e||"undefined"===typeof e)throw new Error(t)}function B(e){return{usr:e.state,key:e.key}}function U(e,t,n,r){return void 0===n&&(n=null),I({pathname:"string"===typeof e?e:e.pathname,search:"",hash:""},"string"===typeof t?H(t):t,{state:n,key:t&&t.key||r||Math.random().toString(36).substr(2,8)})}function z(e){var t=e.pathname,n=void 0===t?"/":t,r=e.search,a=void 0===r?"":r,o=e.hash,i=void 0===o?"":o;return a&&"?"!==a&&(n+="?"===a.charAt(0)?a:"?"+a),i&&"#"!==i&&(n+="#"===i.charAt(0)?i:"#"+i),n}function H(e){var t={};if(e){var n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function W(e){var t="undefined"!==typeof window&&"undefined"!==typeof window.location&&"null"!==window.location.origin?window.location.origin:window.location.href,n="string"===typeof e?e:z(e);return M(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}function V(e,t,n,r){void 0===r&&(r={});var a=r,o=a.window,i=void 0===o?document.defaultView:o,s=a.v5Compat,l=void 0!==s&&s,c=i.history,u=f.Pop,d=null;function p(){u=f.Pop,d&&d({action:u,location:m.location})}var m={get action(){return u},get location(){return e(i,c)},listen:function(e){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(L,p),d=e,function(){i.removeEventListener(L,p),d=null}},createHref:function(e){return t(i,e)},encodeLocation:function(e){var t=W("string"===typeof e?e:z(e));return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){u=f.Push;var r=U(m.location,e,t);n&&n(r,e);var a=B(r),o=m.createHref(r);try{c.pushState(a,"",o)}catch(s){i.location.assign(o)}l&&d&&d({action:u,location:m.location})},replace:function(e,t){u=f.Replace;var r=U(m.location,e,t);n&&n(r,e);var a=B(r),o=m.createHref(r);c.replaceState(a,"",o),l&&d&&d({action:u,location:m.location})},go:function(e){return c.go(e)}};return m}function Q(e,t,n){void 0===n&&(n="/");var r=ee(("string"===typeof t?H(t):t).pathname||"/",n);if(null==r)return null;var a=Y(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(a);for(var o=null,i=0;null==o&&i<a.length;++i)o=K(a[i],$(r));return o}function Y(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");var a=function(e,a,o){var i={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:a,route:e};i.relativePath.startsWith("/")&&(M(i.relativePath.startsWith(r),'Absolute route path "'+i.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),i.relativePath=i.relativePath.slice(r.length));var s=oe([r,i.relativePath]),l=n.concat(i);e.children&&e.children.length>0&&(M(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),Y(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:J(s,e.index),routesMeta:l})};return e.forEach((function(e,t){var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?")){var r,o=D(q(e.path));try{for(o.s();!(r=o.n()).done;){var i=r.value;a(e,t,i)}}catch(s){o.e(s)}finally{o.f()}}else a(e,t)})),t}function q(e){var t=e.split("/");if(0===t.length)return[];var n,r=P(n=t)||x(n)||g(n)||F(),a=r[0],o=r.slice(1),i=a.endsWith("?"),s=a.replace(/\?$/,"");if(0===o.length)return i?[s,""]:[s];var l=q(o.join("/")),c=[];return c.push.apply(c,b(l.map((function(e){return""===e?s:[s,e].join("/")})))),i&&c.push.apply(c,b(l)),c.map((function(t){return e.startsWith("/")&&""===t?"/":t}))}!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(R||(R={}));var G=/^:\w+$/,X=function(e){return"*"===e};function J(e,t){var n=e.split("/"),r=n.length;return n.some(X)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!X(e)})).reduce((function(e,t){return e+(G.test(t)?3:""===t?1:10)}),r)}function K(e,t){for(var n=e.routesMeta,r={},a="/",o=[],i=0;i<n.length;++i){var s=n[i],l=i===n.length-1,c="/"===a?t:t.slice(a.length)||"/",u=Z({path:s.relativePath,caseSensitive:s.caseSensitive,end:l},c);if(!u)return null;Object.assign(r,u.params);var d=s.route;o.push({params:r,pathname:oe([a,u.pathname]),pathnameBase:ie(oe([a,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(a=oe([a,u.pathnameBase]))}return o}function Z(e,t){"string"===typeof e&&(e={path:e,caseSensitive:!1,end:!0});var n=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);te("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');var r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(function(e,t){return r.push(t),"/([^\\/]+)"}));e.endsWith("*")?(r.push("*"),a+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":""!==e&&"/"!==e&&(a+="(?:(?=\\/|$))");var o=new RegExp(a,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),r=T(n,2),a=r[0],o=r[1],i=t.match(a);if(!i)return null;var s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1),u=o.reduce((function(e,t,n){if("*"===t){var r=c[n]||"";l=s.slice(0,s.length-r.length).replace(/(.)\/+$/,"$1")}return e[t]=function(e,t){try{return decodeURIComponent(e)}catch(n){return te(!1,'The value for the URL param "'+t+'" will not be decoded because the string "'+e+'" is a malformed URL segment. This is probably due to a bad percent encoding ('+n+")."),e}}(c[n]||"",t),e}),{});return{params:u,pathname:s,pathnameBase:l,pattern:e}}function $(e){try{return decodeURI(e)}catch(t){return te(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function ee(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function te(e,t){if(!e){"undefined"!==typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function ne(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"].  Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function re(e){return e.filter((function(e,t){return 0===t||e.route.path&&e.route.path.length>0}))}function ae(e,t,n,r){var a;void 0===r&&(r=!1),"string"===typeof e?a=H(e):(M(!(a=I({},e)).pathname||!a.pathname.includes("?"),ne("?","pathname","search",a)),M(!a.pathname||!a.pathname.includes("#"),ne("#","pathname","hash",a)),M(!a.search||!a.search.includes("#"),ne("#","search","hash",a)));var o,i=""===e||""===a.pathname,s=i?"/":a.pathname;if(r||null==s)o=n;else{var l=t.length-1;if(s.startsWith("..")){for(var c=s.split("/");".."===c[0];)c.shift(),l-=1;a.pathname=c.join("/")}o=l>=0?t[l]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?H(e):e,r=n.pathname,a=n.search,o=void 0===a?"":a,i=n.hash,s=void 0===i?"":i,l=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:l,search:se(o),hash:le(s)}}(a,o),d=s&&"/"!==s&&s.endsWith("/"),p=(i||"."===s)&&n.endsWith("/");return u.pathname.endsWith("/")||!d&&!p||(u.pathname+="/"),u}var oe=function(e){return e.join("/").replace(/\/\/+/g,"/")},ie=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},se=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},le=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""},ce=function(e){N(n,e);var t=E(n);function n(){return v(this,n),t.apply(this,arguments)}return k(n)}(_(Error));var ue=k((function e(t,n,r,a){v(this,e),void 0===a&&(a=!1),this.status=t,this.statusText=n||"",this.internal=a,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}));function de(e){return e instanceof ue}var pe=["post","put","patch","delete"],fe=(new Set(pe),["get"].concat(pe));new Set(fe),new Set([301,302,303,307,308]),new Set([307,308]),"undefined"!==typeof window&&"undefined"!==typeof window.document&&window.document.createElement;function me(){return me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},me.apply(this,arguments)}var he="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},xe=e.useState,ge=e.useEffect,be=e.useLayoutEffect,ve=e.useDebugValue;function ye(e){var t=e.getSnapshot,n=e.value;try{var r=t();return!he(n,r)}catch(a){return!0}}"undefined"===typeof window||"undefined"===typeof window.document||window.document.createElement,t.useSyncExternalStore;var we=e.createContext(null);var ke=e.createContext(null);var je=e.createContext(null);var Ne=e.createContext(null);var Ae=e.createContext(null);var Se=e.createContext(null);var Ce=e.createContext({outlet:null,matches:[]});var Ee=e.createContext(null);function Pe(){return null!=e.useContext(Se)}function Fe(){return Pe()||M(!1),e.useContext(Se).location}function Te(){Pe()||M(!1);var t=e.useContext(Ae),n=t.basename,r=t.navigator,a=e.useContext(Ce).matches,o=Fe().pathname,i=JSON.stringify(re(a).map((function(e){return e.pathnameBase}))),s=e.useRef(!1);e.useEffect((function(){s.current=!0}));var l=e.useCallback((function(e,t){if(void 0===t&&(t={}),s.current)if("number"!==typeof e){var a=ae(e,JSON.parse(i),o,"path"===t.relative);"/"!==n&&(a.pathname="/"===a.pathname?n:oe([n,a.pathname])),(t.replace?r.replace:r.push)(a,t.state,t)}else r.go(e)}),[n,r,i,o]);return l}var Oe=e.createContext(null);function _e(){var t=e.useContext(Ce).matches,n=t[t.length-1];return n?n.params:{}}function De(t,n){var r=(void 0===n?{}:n).relative,a=e.useContext(Ce).matches,o=Fe().pathname,i=JSON.stringify(re(a).map((function(e){return e.pathnameBase})));return e.useMemo((function(){return ae(t,JSON.parse(i),o,"path"===r)}),[t,i,o,r])}function Ie(){var t=function(){var t,n=e.useContext(Ee),r=ze(Le.UseRouteError),a=He(Le.UseRouteError);if(n)return n;return null==(t=r.errors)?void 0:t[a]}(),n=de(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,a="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:a},i={padding:"2px 4px",backgroundColor:a};return e.createElement(e.Fragment,null,e.createElement("h2",null,"Unhandled Thrown Error!"),e.createElement("h3",{style:{fontStyle:"italic"}},n),r?e.createElement("pre",{style:o},r):null,e.createElement("p",null,"\ud83d\udcbf Hey developer \ud83d\udc4b"),e.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own\xa0",e.createElement("code",{style:i},"errorElement")," props on\xa0",e.createElement("code",{style:i},"<Route>")))}var Re,Le,Me=function(t){N(r,t);var n=E(r);function r(e){var t;return v(this,r),(t=n.call(this,e)).state={location:e.location,error:e.error},t}return k(r,[{key:"componentDidCatch",value:function(e,t){console.error("React Router caught the following error during render",e,t)}},{key:"render",value:function(){return this.state.error?e.createElement(Ce.Provider,{value:this.props.routeContext},e.createElement(Ee.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}},{key:"getDerivedStateFromProps",value:function(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}}]),r}(e.Component);function Be(t){var n=t.routeContext,r=t.match,a=t.children,o=e.useContext(we);return o&&r.route.errorElement&&(o._deepestRenderedBoundaryId=r.route.id),e.createElement(Ce.Provider,{value:n},a)}function Ue(t,n,r){if(void 0===n&&(n=[]),null==t){if(null==r||!r.errors)return null;t=r.matches}var a=t,o=null==r?void 0:r.errors;if(null!=o){var i=a.findIndex((function(e){return e.route.id&&(null==o?void 0:o[e.route.id])}));i>=0||M(!1),a=a.slice(0,Math.min(a.length,i+1))}return a.reduceRight((function(t,i,s){var l=i.route.id?null==o?void 0:o[i.route.id]:null,c=r?i.route.errorElement||e.createElement(Ie,null):null,u=n.concat(a.slice(0,s+1)),d=function(){return e.createElement(Be,{match:i,routeContext:{outlet:t,matches:u}},l?c:void 0!==i.route.element?i.route.element:t)};return r&&(i.route.errorElement||0===s)?e.createElement(Me,{location:r.location,component:c,error:l,children:d(),routeContext:{outlet:null,matches:u}}):d()}),null)}function ze(t){var n=e.useContext(je);return n||M(!1),n}function He(t){var n=function(t){var n=e.useContext(Ce);return n||M(!1),n}(),r=n.matches[n.matches.length-1];return r.route.id||M(!1),r.route.id}!function(e){e.UseRevalidator="useRevalidator"}(Re||(Re={})),function(e){e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator"}(Le||(Le={}));var We;function Ve(t){var n=t.to,r=t.replace,a=t.state,o=t.relative;Pe()||M(!1);var i=e.useContext(je),s=Te();return e.useEffect((function(){i&&"idle"!==i.navigation.state||s(n,{replace:r,state:a,relative:o})})),null}function Qe(t){return function(t){var n=e.useContext(Ce).outlet;return n?e.createElement(Oe.Provider,{value:t},n):n}(t.context)}function Ye(e){M(!1)}function qe(t){var n=t.basename,r=void 0===n?"/":n,a=t.children,o=void 0===a?null:a,i=t.location,s=t.navigationType,l=void 0===s?f.Pop:s,c=t.navigator,u=t.static,d=void 0!==u&&u;Pe()&&M(!1);var p=r.replace(/^\/*/,"/"),m=e.useMemo((function(){return{basename:p,navigator:c,static:d}}),[p,c,d]);"string"===typeof i&&(i=H(i));var h=i,x=h.pathname,g=void 0===x?"/":x,b=h.search,v=void 0===b?"":b,y=h.hash,w=void 0===y?"":y,k=h.state,j=void 0===k?null:k,N=h.key,A=void 0===N?"default":N,S=e.useMemo((function(){var e=ee(g,p);return null==e?null:{pathname:e,search:v,hash:w,state:j,key:A}}),[p,g,v,w,j,A]);return null==S?null:e.createElement(Ae.Provider,{value:m},e.createElement(Se.Provider,{children:o,value:{location:S,navigationType:l}}))}function Ge(t){var n=t.children,r=t.location,a=e.useContext(ke);return function(t,n){Pe()||M(!1);var r,a=e.useContext(Ae).navigator,o=e.useContext(je),i=e.useContext(Ce).matches,s=i[i.length-1],l=s?s.params:{},c=(s&&s.pathname,s?s.pathnameBase:"/"),u=(s&&s.route,Fe());if(n){var d,p="string"===typeof n?H(n):n;"/"===c||(null==(d=p.pathname)?void 0:d.startsWith(c))||M(!1),r=p}else r=u;var m=r.pathname||"/",h=Q(t,{pathname:"/"===c?m:m.slice(c.length)||"/"}),x=Ue(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},l,e.params),pathname:oe([c,a.encodeLocation?a.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?c:oe([c,a.encodeLocation?a.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})})),i,o||void 0);return n&&x?e.createElement(Se.Provider,{value:{location:me({pathname:"/",search:"",hash:"",state:null,key:"default"},r),navigationType:f.Pop}},x):x}(a&&!n?a.router.routes:Je(n),r)}!function(e){e[e.pending=0]="pending",e[e.success=1]="success",e[e.error=2]="error"}(We||(We={}));var Xe=new Promise((function(){}));e.Component;function Je(t,n){void 0===n&&(n=[]);var r=[];return e.Children.forEach(t,(function(t,a){if(e.isValidElement(t))if(t.type!==e.Fragment){t.type!==Ye&&M(!1),t.props.index&&t.props.children&&M(!1);var o=[].concat(b(n),[a]),i={id:t.props.id||o.join("-"),caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path,loader:t.props.loader,action:t.props.action,errorElement:t.props.errorElement,hasErrorBoundary:null!=t.props.errorElement,shouldRevalidate:t.props.shouldRevalidate,handle:t.props.handle};t.props.children&&(i.children=Je(t.props.children,o)),r.push(i)}else r.push.apply(r,Je(t.props.children,n))})),r}var Ke=n(7248),Ze=n(327),$e=n(4164);var et=function(e){e()},tt=function(){return et},nt=(0,e.createContext)(null);function rt(){return(0,e.useContext)(nt)}var at=function(){throw new Error("uSES not initialized!")},ot=at,it=function(e,t){return e===t};function st(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,n=t===nt?rt:function(){return(0,e.useContext)(t)};return function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:it;var a=n(),o=a.store,i=a.subscription,s=a.getServerState,l=ot(i.addNestedSub,o.getState,s||o.getState,t,r);return(0,e.useDebugValue)(l),l}}var lt=st();n(2110),n(6900);var ct={notify:function(){},get:function(){return[]}};function ut(e,t){var n,r=ct;function a(){i.onStateChange&&i.onStateChange()}function o(){n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){var e=tt(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,a=n={callback:e,next:null,prev:n};return a.prev?a.prev.next=a:t=a,function(){r&&null!==t&&(r=!1,a.next?a.next.prev=a.prev:n=a.prev,a.prev?a.prev.next=a.next:t=a.next)}}}}())}var i={addNestedSub:function(e){return o(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(n)},trySubscribe:o,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=ct)},getListeners:function(){return r}};return i}var dt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement)?e.useLayoutEffect:e.useEffect;var pt=function(t){var n=t.store,r=t.context,a=t.children,o=t.serverState,i=(0,e.useMemo)((function(){var e=ut(n);return{store:n,subscription:e,getServerState:o?function(){return o}:void 0}}),[n,o]),s=(0,e.useMemo)((function(){return n.getState()}),[n]);dt((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),s!==n.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=void 0}}),[i,s]);var l=r||nt;return e.createElement(l.Provider,{value:i},a)};function ft(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,n=t===nt?rt:function(){return(0,e.useContext)(t)};return function(){return n().store}}var mt=ft();function ht(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:nt,t=e===nt?mt:ft(e);return function(){return t().dispatch}}var xt,gt,bt=ht();xt=Ze.useSyncExternalStoreWithSelector,ot=xt,function(e){e}(Ke.useSyncExternalStore),gt=$e.unstable_batchedUpdates,et=gt;var vt=n(4805),yt=function(e){return{type:"set link color",payload:e}},wt=function(e){return{type:"addCrowdfundEvent",payload:e}},kt=function(e){return{type:"loadCrowdfundEvents",payload:e}},jt=function(e){return{type:"updateSignupInfo",payload:e}},Nt=function(e){return console.log("addOtp action dispatched with otp:",e),{type:"addOtp",payload:e}},At=function(e){return{type:"setisauthenticated",payload:e}},St=function(e){return{type:"setlogoutloading",payload:e}},Ct=function(e){return{type:"setotpverified",payload:e}},Et=function(e){return{type:"editEventData",payload:e}},Pt=function(e){return{type:"addNotification",payload:e}},Ft=function(e){return{type:"setPaymentMode",payload:e}},Tt=function(e){return{type:"addCountryOptions",payload:e}},Ot=function(e){return{type:"updateAnonymousCrowdfundData",payload:e}};function _t(e,t,n){return(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Dt(Object(n),!0).forEach((function(t){_t(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Rt=n.p+"static/media/backarrow.bc9b4f5ccd62432800c8ce598bb7d061.svg";var Lt=n.p+"static/media/date.75839265a9553d9b7829e973beb032a2.svg";var Mt=n.p+"static/media/share.9bb9dd5cbde9081d2c355792cda7f3c0.svg";n.p;var Bt=n.p+"static/media/locateicon.67239f2a82f7087a153e38eb92815c99.svg";n.p;n.p;n.p;var Ut=n.p+"static/media/profileplaceholder.0e9fc1a1538610ad17ce24f2c260a45d.svg";n.p;var zt=n.p+"static/media/arrowdown.335c4c94c1ac35e7dd2d655683a10076.svg";var Ht=n.p+"static/media/arrowup.9faaeb6f1406118926d569c6bb33fe98.svg";var Wt=n.p+"static/media/organizers.f090e4f510e6f3029f7be5609eb65265.svg",Vt=n(184);var Qt=function(t){var n=T((0,e.useState)(!1),2),r=n[0],a=n[1];return(0,Vt.jsxs)("div",{className:"w-full bg-white cursor-pointer ",onClick:function(){a(1!=r)},children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center py-3 md:py-5 px-4 md:px-7",children:[(0,Vt.jsxs)("h3",{className:"md:text-lg font-bold flex gap-2 md:gap-4 ",children:[(0,Vt.jsx)("img",{src:Wt,alt:"organizer icon",className:"w-4 md:w-6"}),(0,Vt.jsx)("span",{children:"Campaign organiser(s)"})]}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(r?"":"rotate-180"," cursor-pointer w-[20px] md:w-[25px] h-[10px] md:h-[14px] ")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsxs)("div",{className:" ".concat(r?"flex":"hidden"," flex-col gap-3 px-4 md:px-7 py-3 md:py-6  "),children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 ",children:[(0,Vt.jsx)("img",{src:t.organiserimage,alt:"organizer profile pic",className:"w-[45px] md:w-[60px] rounded-full border-[#35FAA0] border-2 md:border-[3px] "}),(0,Vt.jsxs)("p",{className:"font-medium text-sm md:text-lg ",children:[(0,Vt.jsx)("span",{className:"font-bold",children:t.organiser})," is the organiser of this crowdfund "]}),(0,Vt.jsx)("div",{className:"min-w-[8px] md:w-[13px] h-2 md:h-[13px] bg-[#35FAA0] rounded-full "})]}),t.co_organisers.map((function(e,t){return(0,Vt.jsxs)("div",{className:"flex items-center gap-2 md:gap-4 ",children:[(0,Vt.jsx)("img",{src:e.dp?e.dp:Ut,alt:"coOrganizer profile pic",className:"w-[45px] md:w-[60px] rounded-full"}),(0,Vt.jsxs)("p",{className:"font-medium text-sm md:text-lg ",children:[(0,Vt.jsxs)("span",{className:"font-bold",children:[e.first_name," ",e.last_name]})," is a co-organiser "]})]},t)}))]})]})};var Yt=function(e){return(0,Vt.jsx)("svg",{className:"inline-block",width:"20",height:"20",viewBox:"0 0 20 18",fill:e.liked?"#35FAA0":"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Vt.jsx)("path",{d:"M10.5141 16.3417C10.2307 16.4417 9.76406 16.4417 9.48073 16.3417C7.06406 15.5167 1.66406 12.075 1.66406 6.24167C1.66406 3.66667 3.73906 1.58334 6.2974 1.58334C7.81406 1.58334 9.15573 2.31667 9.9974 3.45C10.4255 2.87157 10.9832 2.40144 11.6257 2.07729C12.2682 1.75314 12.9777 1.58397 13.6974 1.58334C16.2557 1.58334 18.3307 3.66667 18.3307 6.24167C18.3307 12.075 12.9307 15.5167 10.5141 16.3417Z",stroke:"black"===e.color?"black":"#8E8E93",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})};var qt=n.p+"static/media/editIcon.0e2bb44805c9903570bc3ef8c1c49940.svg";var Gt=n.p+"static/media/commentIcon.c1185996c1367a4273ffc17c15c922e4.svg";var Xt=n.p+"static/media/uploadicon.e9c3ba4fa8f3ba4b0923a6b49b88f024.svg",Jt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAUCAYAAABvVQZ0AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAILSURBVHgBnVRLUttAEO2eGdiQhW4Q5QTRDeLcgBs4LFPBiQcXVLHyeEUVLnsck1SWkBv4Bjg3UE4QcwMtwoZCM3RLMgIxKgO9ak13v36t/iC0iDE22tmBRAiZAPgIADPn8vT6GlJjdBaKwebDyYmNt7ZEXwjskjkKBXnvL25u8tHxsV61go3H876UMKxB/B/SU+9dhijozRNL/FC5ZwQ6Ggy+zp6ATSZnQ0QwxSPCAkBprT+vmqys/RV7f8t+3ZIlmMGgN7oHG49tR0p1WRkpW8/ABqHkhpIOWc9z+Hh42FsK/pBSnr8EiKXy+17G+yIeJ5P5J0SkD1wdHOy/awadntpEKWXpn1HZX9KmfTr98Y9oxMyOme2WrNyonYfHVot3BTulsKuI1Vv+oHlKQ85HR5rfO21gQuQL75Ul0A4zS/gxVAILlzmdnl1a+zMJ2an2ValhLGCDUMeikpmLNvkKGrwrVqy1MbxCmHmlpoL+2ZI15+QuvEJorCowfyWopResUjnfQs40e1m5ViK83NXgkt+iaPl6VqjkGe2ahmdKvYLljBYNyHO/V2bBPju8DIjjqvgHRlNTDp8YFj5R29uSNgKrYa9XEB9nm/fJiQHXY7B0zv2lJHRuIBJCvId6gOkNCWj/6QlaS/PEBIQb8RtRzZonqnXnrD0ndv8T5/z92abrS1vyJtV6L9jZO2tN6zKd8jfwAAAAAElFTkSuQmCC",Kt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAHESURBVHgBxVeNVcJADE6ZoCPcBrKBt4EdASewG9ANqBPACDqBOIEwQXECukFM3l0xjQVyxer3XuD+cl+SO3IhAwMQMaevOUlBck/iSPI43ZLsSPYk2yzLXuBWMCHJkuSIdjRRx8EYkGKZSDhkwCKFk0lXAxuxERWJl95giAqP1ZFMY2UlXQ9Y7sEI9nLAgPU1Je0pe5FDImIUapPn0VKJCm5EPBqJUi9wKjw1/BKU58deBDFcf3mmyeG9QJwrpyo5KScWhs28WO8T1wev6aOQ3oIBqcRRR+YEP6MxqfgKNnCKfIxyMOo8i3bBlrylWj8GKkofOgSmS4Xf2con6Dh5ziA6CEaMOeOod8IM/glM3HYdHPuUGaCOpGXigxhwMB3mor1n4ncx4GE6FKK9Y2JZqjzBdHgQ7S0TczLozjnHCX7LGNKwi93DqS7D/vPV4B8+ErlKJLZyxUa8Uk45vaDEPpZwI7D/3CKee/lwoFzB8aXPjzLqmtJGKTSYUKZiSKeN2mNjVdaedwbUqB4GDMnf4/nCP62MwuEyNQVsRAljEL2pEg3oCv+LdyMDI2gjTnkeQs69g/6ftk+SLYQsuKME0V7b7wv+CRaHk9Rw2QAAAABJRU5ErkJggg==",Zt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAWCAYAAAAvg9c4AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAJvSURBVHgBnVVBbtNAFP1/nBbstsg3IJygQQIadYMtkUqsCCeAG5CcwM4JmtyAGzQ7pKZVzAYl7YL0BJgbRCq1myb2549dO7GxQ9q3mXjG/+X9mTfPCGtgnJDu7XlGSFQVgHoINBWIrnatOc5HnJbVYdHkq8G1oWDFkrxlhQTUpzDsXB7tTtaSSmX+s5kFRC3YENxFd6eidhxzqRwzhLuzISDVMoqIviPChMcpIupEUOPxbU7bRFWemAlxJZn2925PeEgJCakvBLbHpubm1dWHfjUMQhtBfLp/u+YHUb2ZKj0YeC1APF6qCzsXjR0b/oP6wLcJwVppqz1uaF00htx2cPuTp6oPIUxwcOZ1WduXqJbdoSnqC3Ezv2kmhKzbLSJ8ffqndnDmD+WYXxu/01qyLi5H3V/4n3nbRDN5gfeiU6RmC7blgRXaL0JIveQnqzUqzJT+exAEk6KaH0fbct4ooQSsYJ8CiM4EUewLHp4ni0VGlljXvsTIVN2VR759G0BBRZdK2Wb6Ju8zKf1OHurf/Co8Aoend6sduIJ3Nm2ZKtSER2AOS1K25JVs30lXMfZbHoKUaXRdqTiZhFCs5W/Rj8zvBf4v6TE5KQPisqG1YUPUz2cWq7NjUeCq4ulLIUNAQZH6k/Oy9ebctx5MGCvqSb7U0NIykPXiV5xDZ/Q+Y5eYjA803KJj7i49A7k9Fw3NiAXfI84Ajj6gvBcdVnDFdprynurcyj78cxGy0ZcN6YjYt5OA2AzUUxXVLgzpVRwO72qLxdzmK/ehlIrb5e+WPWqoTn6tPCQgVu4FnsFJX6WQdBQoreVqCn/4zPIP31+FbibvUrwJXQAAAABJRU5ErkJggg==";var $t=n.p+"static/media/arrowdown2.d246b755da9ef919243bccd6231a8608.svg";var en=n.p+"static/media/plusicon.b836697079505334fd2ee5ed88cfca91.svg";var tn=n.p+"static/media/removeicon.07616bdb57d0171f269d1830374cc2ae.svg";var nn=n.p+"static/media/Business label.ed4f90c86bb3f85361a594a0cbfcec66.svg";var rn=n.p+"static/media/charity label.79d13033b8c24ba71ebe06489acc8529.svg";var an=n.p+"static/media/Community label.81b7d961d545f04cf7c60c281077feb0.svg";var on=n.p+"static/media/Faith label.dec617703414554de2e473da20f163f5.svg";var sn=n.p+"static/media/Family label.6fa11d32e1830cc182f48dbc4f8234c8.svg";var ln=n.p+"static/media/Football icon.1e65a601c272d6936b379b64d9f21cbf.svg";var cn=n.p+"static/media/Others icon.e13988b5c9667aa8c5ed4488512691c8.svg";var un=n.p+"static/media/travel label.46e167fac6d260f69ce1c13ce88e2a91.svg";var dn=n.p+"static/media/Wish label.5976a7e00df0dc48e7c069650f311f41.svg",pn=function(e,t){return pn=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},pn(e,t)};var fn=function(){return fn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},fn.apply(this,arguments)};Object.create;Object.create;var mn=n(8136),hn=n.n(mn);function xn(e,t,n,r,a,o){void 0===o&&(o=0);var i=Cn(e,t,o),s=i.width,l=i.height,c=Math.min(s,n),u=Math.min(l,r);return c>u*a?{width:u*a,height:u}:{width:c,height:c/a}}function gn(e,t,n,r,a){void 0===a&&(a=0);var o=Cn(t.width,t.height,a),i=o.width,s=o.height;return{x:bn(e.x,i,n.width,r),y:bn(e.y,s,n.height,r)}}function bn(e,t,n,r){var a=t*r/2-n/2;return En(e,-a,a)}function vn(e,t){return Math.sqrt(Math.pow(e.y-t.y,2)+Math.pow(e.x-t.x,2))}function yn(e,t){return 180*Math.atan2(t.y-e.y,t.x-e.x)/Math.PI}function wn(e,t,n,r,a,o,i){void 0===o&&(o=0),void 0===i&&(i=!0);var s=i?kn:jn,l=Cn(t.width,t.height,o),c=Cn(t.naturalWidth,t.naturalHeight,o),u={x:s(100,((l.width-n.width/a)/2-e.x/a)/l.width*100),y:s(100,((l.height-n.height/a)/2-e.y/a)/l.height*100),width:s(100,n.width/l.width*100/a),height:s(100,n.height/l.height*100/a)},d=Math.round(s(c.width,u.width*c.width/100)),p=Math.round(s(c.height,u.height*c.height/100)),f=c.width>=c.height*r?{width:Math.round(p*r),height:p}:{width:d,height:Math.round(d/r)};return{croppedAreaPercentages:u,croppedAreaPixels:fn(fn({},f),{x:Math.round(s(c.width-f.width,u.x*c.width/100)),y:Math.round(s(c.height-f.height,u.y*c.height/100))})}}function kn(e,t){return Math.min(e,Math.max(0,t))}function jn(e,t){return t}function Nn(e,t,n,r,a,o){var i=Cn(t.width,t.height,n),s=En(r.width/i.width*(100/e.width),a,o);return{crop:{x:s*i.width/2-r.width/2-i.width*s*(e.x/100),y:s*i.height/2-r.height/2-i.height*s*(e.y/100)},zoom:s}}function An(e,t,n,r,a,o){void 0===n&&(n=0);var i=Cn(t.naturalWidth,t.naturalHeight,n),s=En(function(e,t,n){var r=function(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}(t);return n.height>n.width?n.height/(e.height*r):n.width/(e.width*r)}(e,t,r),a,o),l=r.height>r.width?r.height/e.height:r.width/e.width;return{crop:{x:((i.width-e.width)/2-e.x)*l,y:((i.height-e.height)/2-e.y)*l},zoom:s}}function Sn(e,t){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function Cn(e,t,n){var r=n*Math.PI/180;return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function En(e,t,n){return Math.min(Math.max(e,t),n)}function Pn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e.filter((function(e){return"string"===typeof e&&e.length>0})).join(" ").trim()}var Fn=function(t){function n(){var r=null!==t&&t.apply(this,arguments)||this;return r.imageRef=e.createRef(),r.videoRef=e.createRef(),r.containerRef=null,r.styleRef=null,r.containerRect=null,r.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},r.dragStartPosition={x:0,y:0},r.dragStartCrop={x:0,y:0},r.gestureZoomStart=0,r.gestureRotationStart=0,r.isTouching=!1,r.lastPinchDistance=0,r.lastPinchRotation=0,r.rafDragTimeout=null,r.rafPinchTimeout=null,r.wheelTimer=null,r.currentDoc="undefined"!==typeof document?document:null,r.currentWindow="undefined"!==typeof window?window:null,r.resizeObserver=null,r.state={cropSize:null,hasWheelJustStarted:!1},r.initResizeObserver=function(){if("undefined"!==typeof window.ResizeObserver&&r.containerRef){var e=!0;r.resizeObserver=new window.ResizeObserver((function(t){e?e=!1:r.computeSizes()})),r.resizeObserver.observe(r.containerRef)}},r.preventZoomSafari=function(e){return e.preventDefault()},r.cleanEvents=function(){r.currentDoc&&(r.currentDoc.removeEventListener("mousemove",r.onMouseMove),r.currentDoc.removeEventListener("mouseup",r.onDragStopped),r.currentDoc.removeEventListener("touchmove",r.onTouchMove),r.currentDoc.removeEventListener("touchend",r.onDragStopped),r.currentDoc.removeEventListener("gesturemove",r.onGestureMove),r.currentDoc.removeEventListener("gestureend",r.onGestureEnd))},r.clearScrollEvent=function(){r.containerRef&&r.containerRef.removeEventListener("wheel",r.onWheel),r.wheelTimer&&clearTimeout(r.wheelTimer)},r.onMediaLoad=function(){var e=r.computeSizes();e&&(r.emitCropData(),r.setInitialCrop(e)),r.props.onMediaLoaded&&r.props.onMediaLoaded(r.mediaSize)},r.setInitialCrop=function(e){if(r.props.initialCroppedAreaPercentages){var t=Nn(r.props.initialCroppedAreaPercentages,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom),n=t.crop,a=t.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(a)}else if(r.props.initialCroppedAreaPixels){var o=An(r.props.initialCroppedAreaPixels,r.mediaSize,r.props.rotation,e,r.props.minZoom,r.props.maxZoom);n=o.crop,a=o.zoom;r.props.onCropChange(n),r.props.onZoomChange&&r.props.onZoomChange(a)}},r.computeSizes=function(){var e,t,n,a,o,i,s=r.imageRef.current||r.videoRef.current;if(s&&r.containerRef){r.containerRect=r.containerRef.getBoundingClientRect();var l=r.containerRect.width/r.containerRect.height,c=(null===(e=r.imageRef.current)||void 0===e?void 0:e.naturalWidth)||(null===(t=r.videoRef.current)||void 0===t?void 0:t.videoWidth)||0,u=(null===(n=r.imageRef.current)||void 0===n?void 0:n.naturalHeight)||(null===(a=r.videoRef.current)||void 0===a?void 0:a.videoHeight)||0,d=c/u,p=void 0;if(s.offsetWidth<c||s.offsetHeight<u)switch(r.props.objectFit){default:case"contain":p=l>d?{width:r.containerRect.height*d,height:r.containerRect.height}:{width:r.containerRect.width,height:r.containerRect.width/d};break;case"horizontal-cover":p={width:r.containerRect.width,height:r.containerRect.width/d};break;case"vertical-cover":p={width:r.containerRect.height*d,height:r.containerRect.height};break;case"auto-cover":p=c>u?{width:r.containerRect.width,height:r.containerRect.width/d}:{width:r.containerRect.height*d,height:r.containerRect.height}}else p={width:s.offsetWidth,height:s.offsetHeight};r.mediaSize=fn(fn({},p),{naturalWidth:c,naturalHeight:u}),r.props.setMediaSize&&r.props.setMediaSize(r.mediaSize);var f=r.props.cropSize?r.props.cropSize:xn(r.mediaSize.width,r.mediaSize.height,r.containerRect.width,r.containerRect.height,r.props.aspect,r.props.rotation);return(null===(o=r.state.cropSize)||void 0===o?void 0:o.height)===f.height&&(null===(i=r.state.cropSize)||void 0===i?void 0:i.width)===f.width||r.props.onCropSizeChange&&r.props.onCropSizeChange(f),r.setState({cropSize:f},r.recomputeCropPosition),r.props.setCropSize&&r.props.setCropSize(f),f}},r.onMouseDown=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("mousemove",r.onMouseMove),r.currentDoc.addEventListener("mouseup",r.onDragStopped),r.onDragStart(n.getMousePoint(e)))},r.onMouseMove=function(e){return r.onDrag(n.getMousePoint(e))},r.onTouchStart=function(e){r.currentDoc&&(r.isTouching=!0,r.props.onTouchRequest&&!r.props.onTouchRequest(e)||(r.currentDoc.addEventListener("touchmove",r.onTouchMove,{passive:!1}),r.currentDoc.addEventListener("touchend",r.onDragStopped),2===e.touches.length?r.onPinchStart(e):1===e.touches.length&&r.onDragStart(n.getTouchPoint(e.touches[0]))))},r.onTouchMove=function(e){e.preventDefault(),2===e.touches.length?r.onPinchMove(e):1===e.touches.length&&r.onDrag(n.getTouchPoint(e.touches[0]))},r.onGestureStart=function(e){r.currentDoc&&(e.preventDefault(),r.currentDoc.addEventListener("gesturechange",r.onGestureMove),r.currentDoc.addEventListener("gestureend",r.onGestureEnd),r.gestureZoomStart=r.props.zoom,r.gestureRotationStart=r.props.rotation)},r.onGestureMove=function(e){if(e.preventDefault(),!r.isTouching){var t=n.getMousePoint(e),a=r.gestureZoomStart-1+e.scale;if(r.setNewZoom(a,t,{shouldUpdatePosition:!0}),r.props.onRotationChange){var o=r.gestureRotationStart+e.rotation;r.props.onRotationChange(o)}}},r.onGestureEnd=function(e){r.cleanEvents()},r.onDragStart=function(e){var t,n,a=e.x,o=e.y;r.dragStartPosition={x:a,y:o},r.dragStartCrop=fn({},r.props.crop),null===(n=(t=r.props).onInteractionStart)||void 0===n||n.call(t)},r.onDrag=function(e){var t=e.x,n=e.y;r.currentWindow&&(r.rafDragTimeout&&r.currentWindow.cancelAnimationFrame(r.rafDragTimeout),r.rafDragTimeout=r.currentWindow.requestAnimationFrame((function(){if(r.state.cropSize&&void 0!==t&&void 0!==n){var e=t-r.dragStartPosition.x,a=n-r.dragStartPosition.y,o={x:r.dragStartCrop.x+e,y:r.dragStartCrop.y+a},i=r.props.restrictPosition?gn(o,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):o;r.props.onCropChange(i)}})))},r.onDragStopped=function(){var e,t;r.isTouching=!1,r.cleanEvents(),r.emitCropData(),null===(t=(e=r.props).onInteractionEnd)||void 0===t||t.call(e)},r.onWheel=function(e){if(r.currentWindow&&(!r.props.onWheelRequest||r.props.onWheelRequest(e))){e.preventDefault();var t=n.getMousePoint(e),a=hn()(e).pixelY,o=r.props.zoom-a*r.props.zoomSpeed/200;r.setNewZoom(o,t,{shouldUpdatePosition:!0}),r.state.hasWheelJustStarted||r.setState({hasWheelJustStarted:!0},(function(){var e,t;return null===(t=(e=r.props).onInteractionStart)||void 0===t?void 0:t.call(e)})),r.wheelTimer&&clearTimeout(r.wheelTimer),r.wheelTimer=r.currentWindow.setTimeout((function(){return r.setState({hasWheelJustStarted:!1},(function(){var e,t;return null===(t=(e=r.props).onInteractionEnd)||void 0===t?void 0:t.call(e)}))}),250)}},r.getPointOnContainer=function(e){var t=e.x,n=e.y;if(!r.containerRect)throw new Error("The Cropper is not mounted");return{x:r.containerRect.width/2-(t-r.containerRect.left),y:r.containerRect.height/2-(n-r.containerRect.top)}},r.getPointOnMedia=function(e){var t=e.x,n=e.y,a=r.props,o=a.crop,i=a.zoom;return{x:(t+o.x)/i,y:(n+o.y)/i}},r.setNewZoom=function(e,t,n){var a=(void 0===n?{}:n).shouldUpdatePosition,o=void 0===a||a;if(r.state.cropSize&&r.props.onZoomChange){var i=En(e,r.props.minZoom,r.props.maxZoom);if(o){var s=r.getPointOnContainer(t),l=r.getPointOnMedia(s),c={x:l.x*i-s.x,y:l.y*i-s.y},u=r.props.restrictPosition?gn(c,r.mediaSize,r.state.cropSize,i,r.props.rotation):c;r.props.onCropChange(u)}r.props.onZoomChange(i)}},r.getCropData=function(){return r.state.cropSize?wn(r.props.restrictPosition?gn(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop,r.mediaSize,r.state.cropSize,r.getAspect(),r.props.zoom,r.props.rotation,r.props.restrictPosition):null},r.emitCropData=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropComplete&&r.props.onCropComplete(t,n),r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.emitCropAreaChange=function(){var e=r.getCropData();if(e){var t=e.croppedAreaPercentages,n=e.croppedAreaPixels;r.props.onCropAreaChange&&r.props.onCropAreaChange(t,n)}},r.recomputeCropPosition=function(){if(r.state.cropSize){var e=r.props.restrictPosition?gn(r.props.crop,r.mediaSize,r.state.cropSize,r.props.zoom,r.props.rotation):r.props.crop;r.props.onCropChange(e),r.emitCropData()}},r}return function(e,t){function n(){this.constructor=e}pn(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(n,t),n.prototype.componentDidMount=function(){this.currentDoc&&this.currentWindow&&(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),"undefined"===typeof window.ResizeObserver&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=".reactEasyCrop_Container {\n  position: absolute;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  overflow: hidden;\n  user-select: none;\n  touch-action: none;\n  cursor: move;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n}\n\n.reactEasyCrop_Image,\n.reactEasyCrop_Video {\n  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */\n}\n\n.reactEasyCrop_Contain {\n  max-width: 100%;\n  max-height: 100%;\n  margin: auto;\n  position: absolute;\n  top: 0;\n  bottom: 0;\n  left: 0;\n  right: 0;\n}\n.reactEasyCrop_Cover_Horizontal {\n  width: 100%;\n  height: auto;\n}\n.reactEasyCrop_Cover_Vertical {\n  width: auto;\n  height: 100%;\n}\n\n.reactEasyCrop_CropArea {\n  position: absolute;\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  box-sizing: border-box;\n  box-shadow: 0 0 0 9999em;\n  color: rgba(0, 0, 0, 0.5);\n  overflow: hidden;\n}\n\n.reactEasyCrop_CropAreaRound {\n  border-radius: 50%;\n}\n\n.reactEasyCrop_CropAreaGrid::before {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 0;\n  bottom: 0;\n  left: 33.33%;\n  right: 33.33%;\n  border-top: 0;\n  border-bottom: 0;\n}\n\n.reactEasyCrop_CropAreaGrid::after {\n  content: ' ';\n  box-sizing: border-box;\n  position: absolute;\n  border: 1px solid rgba(255, 255, 255, 0.5);\n  top: 33.33%;\n  bottom: 33.33%;\n  left: 0;\n  right: 0;\n  border-left: 0;\n  border-right: 0;\n}\n",this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef))},n.prototype.componentWillUnmount=function(){var e,t;this.currentDoc&&this.currentWindow&&("undefined"===typeof window.ResizeObserver&&this.currentWindow.removeEventListener("resize",this.computeSizes),null===(e=this.resizeObserver)||void 0===e||e.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&(null===(t=this.styleRef.parentNode)||void 0===t||t.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},n.prototype.componentDidUpdate=function(e){var t,n,r,a,o,i,s,l,c;e.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):e.aspect!==this.props.aspect?this.computeSizes():e.zoom!==this.props.zoom?this.recomputeCropPosition():(null===(t=e.cropSize)||void 0===t?void 0:t.height)!==(null===(n=this.props.cropSize)||void 0===n?void 0:n.height)||(null===(r=e.cropSize)||void 0===r?void 0:r.width)!==(null===(a=this.props.cropSize)||void 0===a?void 0:a.width)?this.computeSizes():(null===(o=e.crop)||void 0===o?void 0:o.x)===(null===(i=this.props.crop)||void 0===i?void 0:i.x)&&(null===(s=e.crop)||void 0===s?void 0:s.y)===(null===(l=this.props.crop)||void 0===l?void 0:l.y)||this.emitCropAreaChange(),e.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),e.video!==this.props.video&&(null===(c=this.videoRef.current)||void 0===c||c.load())},n.prototype.getAspect=function(){var e=this.props,t=e.cropSize,n=e.aspect;return t?t.width/t.height:n},n.prototype.onPinchStart=function(e){var t=n.getTouchPoint(e.touches[0]),r=n.getTouchPoint(e.touches[1]);this.lastPinchDistance=vn(t,r),this.lastPinchRotation=yn(t,r),this.onDragStart(Sn(t,r))},n.prototype.onPinchMove=function(e){var t=this;if(this.currentDoc&&this.currentWindow){var r=n.getTouchPoint(e.touches[0]),a=n.getTouchPoint(e.touches[1]),o=Sn(r,a);this.onDrag(o),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame((function(){var e=vn(r,a),n=t.props.zoom*(e/t.lastPinchDistance);t.setNewZoom(n,o,{shouldUpdatePosition:!1}),t.lastPinchDistance=e;var i=yn(r,a),s=t.props.rotation+(i-t.lastPinchRotation);t.props.onRotationChange&&t.props.onRotationChange(s),t.lastPinchRotation=i}))}},n.prototype.render=function(){var t=this,n=this.props,r=n.image,a=n.video,o=n.mediaProps,i=n.transform,s=n.crop,l=s.x,c=s.y,u=n.rotation,d=n.zoom,p=n.cropShape,f=n.showGrid,m=n.style,h=m.containerStyle,x=m.cropAreaStyle,g=m.mediaStyle,b=n.classes,v=b.containerClassName,y=b.cropAreaClassName,w=b.mediaClassName,k=n.objectFit;return e.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(e){return t.containerRef=e},"data-testid":"container",style:h,className:Pn("reactEasyCrop_Container",v)},r?e.createElement("img",fn({alt:"",className:Pn("reactEasyCrop_Image","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical","auto-cover"===k&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),w)},o,{src:r,ref:this.imageRef,style:fn(fn({},g),{transform:i||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),onLoad:this.onMediaLoad})):a&&e.createElement("video",fn({autoPlay:!0,loop:!0,muted:!0,className:Pn("reactEasyCrop_Video","contain"===k&&"reactEasyCrop_Contain","horizontal-cover"===k&&"reactEasyCrop_Cover_Horizontal","vertical-cover"===k&&"reactEasyCrop_Cover_Vertical","auto-cover"===k&&(this.mediaSize.naturalWidth>this.mediaSize.naturalHeight?"reactEasyCrop_Cover_Horizontal":"reactEasyCrop_Cover_Vertical"),w)},o,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:fn(fn({},g),{transform:i||"translate(".concat(l,"px, ").concat(c,"px) rotate(").concat(u,"deg) scale(").concat(d,")")}),controls:!1}),(Array.isArray(a)?a:[{src:a}]).map((function(t){return e.createElement("source",fn({key:t.src},t))}))),this.state.cropSize&&e.createElement("div",{style:fn(fn({},x),{width:this.state.cropSize.width,height:this.state.cropSize.height}),"data-testid":"cropper",className:Pn("reactEasyCrop_CropArea","round"===p&&"reactEasyCrop_CropAreaRound",f&&"reactEasyCrop_CropAreaGrid",y)}))},n.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:3,minZoom:1,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0},n.getMousePoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},n.getTouchPoint=function(e){return{x:Number(e.clientX),y:Number(e.clientY)}},n}(e.Component),Tn=n(1694),On=n.n(Tn),_n={},Dn=[];function In(e,t){}function Rn(e,t){}function Ln(e,t,n){t||_n[n]||(e(!1,n),_n[n]=!0)}function Mn(e,t){Ln(In,e,t)}Mn.preMessage=function(e){Dn.push(e)},Mn.resetWarned=function(){_n={}},Mn.noteOnce=function(e,t){Ln(Rn,e,t)};var Bn=Mn;var Un=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=new Set;function a(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=r.has(e);if(Bn(!s,"Warning: There may be circular references"),s)return!1;if(e===t)return!0;if(n&&i>1)return!1;r.add(e);var l=i+1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(var c=0;c<e.length;c++)if(!a(e[c],t[c],l))return!1;return!0}if(e&&t&&"object"===o(e)&&"object"===o(t)){var u=Object.keys(e);return u.length===Object.keys(t).length&&u.every((function(n){return a(e[n],t[n],l)}))}return!1}return a(e,t)};function zn(t){var n=e.useRef();n.current=t;var r=e.useCallback((function(){for(var e,t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return null===(e=n.current)||void 0===e?void 0:e.call.apply(e,[n].concat(r))}),[]);return r}var Hn="undefined"!==typeof window&&window.document&&window.document.createElement?e.useLayoutEffect:e.useEffect,Wn=function(t,n){var r=e.useRef(!0);Hn((function(){return t(r.current)}),n),Hn((function(){return r.current=!1,function(){r.current=!0}}),[])},Vn=function(e,t){Wn((function(t){if(!t)return e()}),t)};function Qn(t){var n=e.useRef(!1),r=T(e.useState(t),2),a=r[0],o=r[1];return e.useEffect((function(){return n.current=!1,function(){n.current=!0}}),[]),[a,function(e,t){t&&n.current||o(e)}]}function Yn(e){return void 0!==e}function qn(){return qn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function Gn(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Xn={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=Xn.F1&&t<=Xn.F12)return!1;switch(t){case Xn.ALT:case Xn.CAPS_LOCK:case Xn.CONTEXT_MENU:case Xn.CTRL:case Xn.DOWN:case Xn.END:case Xn.ESC:case Xn.HOME:case Xn.INSERT:case Xn.LEFT:case Xn.MAC_FF_META:case Xn.META:case Xn.NUMLOCK:case Xn.NUM_CENTER:case Xn.PAGE_DOWN:case Xn.PAGE_UP:case Xn.PAUSE:case Xn.PRINT_SCREEN:case Xn.RIGHT:case Xn.SHIFT:case Xn.UP:case Xn.WIN_KEY:case Xn.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Xn.ZERO&&e<=Xn.NINE)return!0;if(e>=Xn.NUM_ZERO&&e<=Xn.NUM_MULTIPLY)return!0;if(e>=Xn.A&&e<=Xn.Z)return!0;if(-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case Xn.SPACE:case Xn.QUESTION_MARK:case Xn.NUM_PLUS:case Xn.NUM_MINUS:case Xn.NUM_PERIOD:case Xn.NUM_DIVISION:case Xn.SEMICOLON:case Xn.DASH:case Xn.EQUALS:case Xn.COMMA:case Xn.PERIOD:case Xn.SLASH:case Xn.APOSTROPHE:case Xn.SINGLE_QUOTE:case Xn.OPEN_SQUARE_BRACKET:case Xn.BACKSLASH:case Xn.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},Jn=Xn,Kn=e.createContext({min:0,max:0,direction:"ltr",step:1,includedStart:0,includedEnd:0,tabIndex:0,keyboard:!0});function Zn(e,t,n){return(e-t)/(n-t)}function $n(e,t,n,r){var a=Zn(t,n,r),o={};switch(e){case"rtl":o.right="".concat(100*a,"%"),o.transform="translateX(50%)";break;case"btt":o.bottom="".concat(100*a,"%"),o.transform="translateY(50%)";break;case"ttb":o.top="".concat(100*a,"%"),o.transform="translateY(-50%)";break;default:o.left="".concat(100*a,"%"),o.transform="translateX(-50%)"}return o}function er(e,t){return Array.isArray(e)?e[t]:e}var tr=["prefixCls","value","valueIndex","onStartMove","style","render","dragging","onOffsetChange"],nr=e.forwardRef((function(t,n){var r,a,o=t.prefixCls,i=t.value,s=t.valueIndex,l=t.onStartMove,c=t.style,u=t.render,d=t.dragging,p=t.onOffsetChange,f=Gn(t,tr),m=e.useContext(Kn),h=m.min,x=m.max,g=m.direction,b=m.disabled,v=m.keyboard,y=m.range,w=m.tabIndex,k=m.ariaLabelForHandle,j=m.ariaLabelledByForHandle,N=m.ariaValueTextFormatterForHandle,A="".concat(o,"-handle"),S=function(e){b||l(e,s)},C=$n(g,i,h,x),E=e.createElement("div",qn({ref:n,className:On()(A,(r={},_t(r,"".concat(A,"-").concat(s+1),y),_t(r,"".concat(A,"-dragging"),d),r)),style:It(It({},C),c),onMouseDown:S,onTouchStart:S,onKeyDown:function(e){if(!b&&v){var t=null;switch(e.which||e.keyCode){case Jn.LEFT:t="ltr"===g||"btt"===g?-1:1;break;case Jn.RIGHT:t="ltr"===g||"btt"===g?1:-1;break;case Jn.UP:t="ttb"!==g?1:-1;break;case Jn.DOWN:t="ttb"!==g?-1:1;break;case Jn.HOME:t="min";break;case Jn.END:t="max";break;case Jn.PAGE_UP:t=2;break;case Jn.PAGE_DOWN:t=-2}null!==t&&(e.preventDefault(),p(t,s))}},tabIndex:b?null:er(w,s),role:"slider","aria-valuemin":h,"aria-valuemax":x,"aria-valuenow":i,"aria-disabled":b,"aria-label":er(k,s),"aria-labelledby":er(j,s),"aria-valuetext":null===(a=er(N,s))||void 0===a?void 0:a(i),"aria-orientation":"ltr"===g||"rtl"===g?"horizontal":"vertical"},f));return u&&(E=u(E,{index:s,prefixCls:o,value:i,dragging:d})),E}));var rr=nr,ar=["prefixCls","style","onStartMove","onOffsetChange","values","handleRender","draggingIndex"],or=e.forwardRef((function(t,n){var r=t.prefixCls,a=t.style,o=t.onStartMove,i=t.onOffsetChange,s=t.values,l=t.handleRender,c=t.draggingIndex,u=Gn(t,ar),d=e.useRef({});return e.useImperativeHandle(n,(function(){return{focus:function(e){var t;null===(t=d.current[e])||void 0===t||t.focus()}}})),e.createElement(e.Fragment,null,s.map((function(t,n){return e.createElement(rr,qn({ref:function(e){e?d.current[n]=e:delete d.current[n]},dragging:c===n,prefixCls:r,style:er(a,n),key:n,value:t,valueIndex:n,onStartMove:o,onOffsetChange:i,render:l},u))})))}));var ir=or;function sr(e){var t="touches"in e?e.touches[0]:e;return{pageX:t.pageX,pageY:t.pageY}}function lr(t){var n,r=t.prefixCls,a=t.style,o=t.start,i=t.end,s=t.index,l=t.onStartMove,c=e.useContext(Kn),u=c.direction,d=c.min,p=c.max,f=c.disabled,m=c.range,h="".concat(r,"-track"),x=Zn(o,d,p),g=Zn(i,d,p),b=function(e){!f&&l&&l(e,-1)},v={};switch(u){case"rtl":v.right="".concat(100*x,"%"),v.width="".concat(100*g-100*x,"%");break;case"btt":v.bottom="".concat(100*x,"%"),v.height="".concat(100*g-100*x,"%");break;case"ttb":v.top="".concat(100*x,"%"),v.height="".concat(100*g-100*x,"%");break;default:v.left="".concat(100*x,"%"),v.width="".concat(100*g-100*x,"%")}return e.createElement("div",{className:On()(h,(n={},_t(n,"".concat(h,"-").concat(s+1),m),_t(n,"".concat(r,"-track-draggable"),l),n)),style:It(It({},v),a),onMouseDown:b,onTouchStart:b})}function cr(t){var n=t.prefixCls,r=t.style,a=t.values,o=t.startPoint,i=t.onStartMove,s=e.useContext(Kn),l=s.included,c=s.range,u=s.min,d=e.useMemo((function(){if(!c){if(0===a.length)return[];var e=null!==o&&void 0!==o?o:u,t=a[0];return[{start:Math.min(e,t),end:Math.max(e,t)}]}for(var n=[],r=0;r<a.length-1;r+=1)n.push({start:a[r],end:a[r+1]});return n}),[a,c,o,u]);return l?d.map((function(t,a){var o=t.start,s=t.end;return e.createElement(lr,{index:a,prefixCls:n,style:er(r,a),start:o,end:s,key:a,onStartMove:i})})):null}function ur(t){var n=t.prefixCls,r=t.style,a=t.children,o=t.value,i=t.onClick,s=e.useContext(Kn),l=s.min,c=s.max,u=s.direction,d=s.includedStart,p=s.includedEnd,f=s.included,m="".concat(n,"-text"),h=$n(u,o,l,c);return e.createElement("span",{className:On()(m,_t({},"".concat(m,"-active"),f&&d<=o&&o<=p)),style:It(It({},h),r),onMouseDown:function(e){e.stopPropagation()},onClick:function(){i(o)}},a)}function dr(t){var n=t.prefixCls,r=t.marks,a=t.onClick,o="".concat(n,"-mark");return r.length?e.createElement("div",{className:o},r.map((function(t){var n=t.value,r=t.style,i=t.label;return e.createElement(ur,{key:n,prefixCls:o,style:r,value:n,onClick:a},i)}))):null}function pr(t){var n=t.prefixCls,r=t.value,a=t.style,o=t.activeStyle,i=e.useContext(Kn),s=i.min,l=i.max,c=i.direction,u=i.included,d=i.includedStart,p=i.includedEnd,f="".concat(n,"-dot"),m=u&&d<=r&&r<=p,h=It(It({},$n(c,r,s,l)),"function"===typeof a?a(r):a);return m&&(h=It(It({},h),"function"===typeof o?o(r):o)),e.createElement("span",{className:On()(f,_t({},"".concat(f,"-active"),m)),style:h})}function fr(t){var n=t.prefixCls,r=t.marks,a=t.dots,o=t.style,i=t.activeStyle,s=e.useContext(Kn),l=s.min,c=s.max,u=s.step,d=e.useMemo((function(){var e=new Set;if(r.forEach((function(t){e.add(t.value)})),a&&null!==u)for(var t=l;t<=c;)e.add(t),t+=u;return Array.from(e)}),[l,c,u,a,r]);return e.createElement("div",{className:"".concat(n,"-step")},d.map((function(t){return e.createElement(pr,{prefixCls:n,key:t,value:t,style:o,activeStyle:i})})))}var mr=e.forwardRef((function(t,n){var r,a=t.prefixCls,i=void 0===a?"rc-slider":a,s=t.className,l=t.style,c=t.disabled,u=void 0!==c&&c,d=t.keyboard,p=void 0===d||d,f=t.autoFocus,m=t.onFocus,h=t.onBlur,x=t.min,g=void 0===x?0:x,v=t.max,y=void 0===v?100:v,w=t.step,k=void 0===w?1:w,j=t.value,N=t.defaultValue,A=t.range,S=t.count,C=t.onChange,E=t.onBeforeChange,P=t.onAfterChange,F=t.allowCross,O=void 0===F||F,_=t.pushable,D=void 0!==_&&_,I=t.draggableTrack,R=t.reverse,L=t.vertical,M=t.included,B=void 0===M||M,U=t.startPoint,z=t.trackStyle,H=t.handleStyle,W=t.railStyle,V=t.dotStyle,Q=t.activeDotStyle,Y=t.marks,q=t.dots,G=t.handleRender,X=t.tabIndex,J=void 0===X?0:X,K=t.ariaLabelForHandle,Z=t.ariaLabelledByForHandle,$=t.ariaValueTextFormatterForHandle,ee=e.useRef(),te=e.useRef(),ne=e.useMemo((function(){return L?R?"ttb":"btt":R?"rtl":"ltr"}),[R,L]),re=e.useMemo((function(){return isFinite(g)?g:0}),[g]),ae=e.useMemo((function(){return isFinite(y)?y:100}),[y]),oe=e.useMemo((function(){return null!==k&&k<=0?1:k}),[k]),ie=e.useMemo((function(){return"boolean"===typeof D?!!D&&oe:D>=0&&D}),[D,oe]),se=e.useMemo((function(){return Object.keys(Y||{}).map((function(t){var n=Y[t],r={value:Number(t)};return n&&"object"===o(n)&&!e.isValidElement(n)&&("label"in n||"style"in n)?(r.style=n.style,r.label=n.label):r.label=n,r})).filter((function(e){var t=e.label;return t||"number"===typeof t})).sort((function(e,t){return e.value-t.value}))}),[Y]),le=function(t,n,r,a,o,i){var s=e.useCallback((function(e){var r=isFinite(e)?e:t;return r=Math.min(n,e),Math.max(t,r)}),[t,n]),l=e.useCallback((function(e){if(null!==r){var a=t+Math.round((s(e)-t)/r)*r,o=function(e){return(String(e).split(".")[1]||"").length},i=Math.max(o(r),o(n),o(t)),l=Number(a.toFixed(i));return t<=l&&l<=n?l:null}return null}),[r,t,n,s]),c=e.useCallback((function(e){var o=s(e),i=a.map((function(e){return e.value}));null!==r&&i.push(l(e)),i.push(t,n);var c=i[0],u=n-t;return i.forEach((function(e){var t=Math.abs(o-e);t<=u&&(c=e,u=t)})),c}),[t,n,a,r,s,l]),u=function e(o,i,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit";if("number"===typeof i){var u,d=o[s],p=d+i,f=[];a.forEach((function(e){f.push(e.value)})),f.push(t,n),f.push(l(d));var m=i>0?1:-1;"unit"===c?f.push(l(d+m*r)):f.push(l(p)),f=f.filter((function(e){return null!==e})).filter((function(e){return i<0?e<=d:e>=d})),"unit"===c&&(f=f.filter((function(e){return e!==d})));var h="unit"===c?d:p;u=f[0];var x=Math.abs(u-h);if(f.forEach((function(e){var t=Math.abs(e-h);t<x&&(u=e,x=t)})),void 0===u)return i<0?t:n;if("dist"===c)return u;if(Math.abs(i)>1){var g=b(o);return g[s]=u,e(g,i-m,s,c)}return u}return"min"===i?t:"max"===i?n:void 0},d=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e[n],o=u(e,t,n,r);return{value:o,changed:o!==a}},p=function(e){return null===i&&0===e||"number"===typeof i&&e<i};return[c,function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"unit",a=e.map(c),s=a[n],l=u(a,t,n,r);if(a[n]=l,!1===o){var f=i||0;n>0&&a[n-1]!==s&&(a[n]=Math.max(a[n],a[n-1]+f)),n<a.length-1&&a[n+1]!==s&&(a[n]=Math.min(a[n],a[n+1]-f))}else if("number"===typeof i||null===i){for(var m=n+1;m<a.length;m+=1)for(var h=!0;p(a[m]-a[m-1])&&h;){var x=d(a,1,m);a[m]=x.value,h=x.changed}for(var g=n;g>0;g-=1)for(var b=!0;p(a[g]-a[g-1])&&b;){var v=d(a,-1,g-1);a[g-1]=v.value,b=v.changed}for(var y=a.length-1;y>0;y-=1)for(var w=!0;p(a[y]-a[y-1])&&w;){var k=d(a,-1,y-1);a[y-1]=k.value,w=k.changed}for(var j=0;j<a.length-1;j+=1)for(var N=!0;p(a[j+1]-a[j])&&N;){var A=d(a,1,j+1);a[j+1]=A.value,N=A.changed}}return{value:a[n],values:a}}]}(re,ae,oe,se,O,ie),ce=T(le,2),ue=ce[0],de=ce[1],pe=function(e,t){var n=t||{},r=n.defaultValue,a=n.value,o=n.onChange,i=n.postState,s=T(Qn((function(){return Yn(a)?a:Yn(r)?"function"===typeof r?r():r:"function"===typeof e?e():e})),2),l=s[0],c=s[1],u=void 0!==a?a:l,d=i?i(u):u,p=zn(o),f=T(Qn([u]),2),m=f[0],h=f[1];return Vn((function(){var e=m[0];l!==e&&p(l,e)}),[m]),Vn((function(){Yn(a)||c(a)}),[a]),[d,zn((function(e,t){c(e,t),h([u],t)}))]}(N,{value:j}),fe=T(pe,2),me=fe[0],he=fe[1],xe=e.useMemo((function(){var e=null===me||void 0===me?[]:Array.isArray(me)?me:[me],t=T(e,1)[0],n=null===me?[]:[void 0===t?re:t];if(A){if(n=b(e),S||void 0===me){var r=S>=0?S+1:2;for(n=n.slice(0,r);n.length<r;){var a;n.push(null!==(a=n[n.length-1])&&void 0!==a?a:re)}}n.sort((function(e,t){return e-t}))}return n.forEach((function(e,t){n[t]=ue(e)})),n}),[me,A,re,S,ue]),ge=e.useRef(xe);ge.current=xe;var be=function(e){return A?e:e[0]},ve=function(e){var t=b(e).sort((function(e,t){return e-t}));C&&!Un(t,ge.current,!0)&&C(be(t)),he(t)},ye=function(e){if(!u){var t=0,n=ae-re;xe.forEach((function(r,a){var o=Math.abs(e-r);o<=n&&(n=o,t=a)}));var r=b(xe);r[t]=e,A&&!xe.length&&void 0===S&&r.push(e),null===E||void 0===E||E(be(r)),ve(r),null===P||void 0===P||P(be(r))}},we=T(e.useState(null),2),ke=we[0],je=we[1];e.useEffect((function(){if(null!==ke){var e=xe.indexOf(ke);e>=0&&ee.current.focus(e)}je(null)}),[ke]);var Ne=e.useMemo((function(){return(!I||null!==oe)&&I}),[I,oe]),Ae=function(t,n,r,a,o,i,s,l,c){var u=T(e.useState(null),2),d=u[0],p=u[1],f=T(e.useState(-1),2),m=f[0],h=f[1],x=T(e.useState(r),2),g=x[0],v=x[1],y=T(e.useState(r),2),w=y[0],k=y[1],j=e.useRef(null),N=e.useRef(null);e.useEffect((function(){-1===m&&v(r)}),[r,m]),e.useEffect((function(){return function(){document.removeEventListener("mousemove",j.current),document.removeEventListener("mouseup",N.current),document.removeEventListener("touchmove",j.current),document.removeEventListener("touchend",N.current)}}),[]);var A=function(e,t){g.some((function(t,n){return t!==e[n]}))&&(void 0!==t&&p(t),v(e),s(e))},S=function(e,t){if(-1===e){var n=w[0],r=w[w.length-1],s=a-n,l=o-r,u=t*(o-a);u=Math.max(u,s),u=Math.min(u,l);var d=i(n+u);u=d-n;var p=w.map((function(e){return e+u}));A(p)}else{var f=(o-a)*t,m=b(g);m[e]=w[e];var h=c(m,f,e,"dist");A(h.values,h.value)}},C=e.useRef(S);C.current=S;var E=e.useMemo((function(){var e=b(r).sort((function(e,t){return e-t})),t=b(g).sort((function(e,t){return e-t}));return e.every((function(e,n){return e===t[n]}))?g:r}),[r,g]);return[m,d,E,function(e,a){e.stopPropagation();var o=r[a];h(a),p(o),k(r);var i=sr(e),s=i.pageX,c=i.pageY,u=function(e){e.preventDefault();var r,o=sr(e),i=o.pageX,l=o.pageY,u=i-s,d=l-c,p=t.current.getBoundingClientRect(),f=p.width,m=p.height;switch(n){case"btt":r=-d/m;break;case"ttb":r=d/m;break;case"rtl":r=-u/f;break;default:r=u/f}C.current(a,r)},d=function e(t){t.preventDefault(),document.removeEventListener("mouseup",e),document.removeEventListener("mousemove",u),document.removeEventListener("touchend",e),document.removeEventListener("touchmove",u),j.current=null,N.current=null,h(-1),l()};document.addEventListener("mouseup",d),document.addEventListener("mousemove",u),document.addEventListener("touchend",d),document.addEventListener("touchmove",u),j.current=u,N.current=d}]}(te,ne,xe,re,ae,ue,ve,(function(){null===P||void 0===P||P(be(ge.current))}),de),Se=T(Ae,4),Ce=Se[0],Ee=Se[1],Pe=Se[2],Fe=Se[3],Te=function(e,t){Fe(e,t),null===E||void 0===E||E(be(ge.current))},Oe=-1!==Ce;e.useEffect((function(){if(!Oe){var e=xe.lastIndexOf(Ee);ee.current.focus(e)}}),[Oe]);var _e=e.useMemo((function(){return b(Pe).sort((function(e,t){return e-t}))}),[Pe]),De=T(e.useMemo((function(){return A?[_e[0],_e[_e.length-1]]:[re,_e[0]]}),[_e,A,re]),2),Ie=De[0],Re=De[1];e.useImperativeHandle(n,(function(){return{focus:function(){ee.current.focus(0)},blur:function(){var e=document.activeElement;te.current.contains(e)&&(null===e||void 0===e||e.blur())}}})),e.useEffect((function(){f&&ee.current.focus(0)}),[]);var Le=e.useMemo((function(){return{min:re,max:ae,direction:ne,disabled:u,keyboard:p,step:oe,included:B,includedStart:Ie,includedEnd:Re,range:A,tabIndex:J,ariaLabelForHandle:K,ariaLabelledByForHandle:Z,ariaValueTextFormatterForHandle:$}}),[re,ae,ne,u,p,oe,B,Ie,Re,A,J,K,Z,$]);return e.createElement(Kn.Provider,{value:Le},e.createElement("div",{ref:te,className:On()(i,s,(r={},_t(r,"".concat(i,"-disabled"),u),_t(r,"".concat(i,"-vertical"),L),_t(r,"".concat(i,"-horizontal"),!L),_t(r,"".concat(i,"-with-marks"),se.length),r)),style:l,onMouseDown:function(e){e.preventDefault();var t,n=te.current.getBoundingClientRect(),r=n.width,a=n.height,o=n.left,i=n.top,s=n.bottom,l=n.right,c=e.clientX,u=e.clientY;switch(ne){case"btt":t=(s-u)/a;break;case"ttb":t=(u-i)/a;break;case"rtl":t=(l-c)/r;break;default:t=(c-o)/r}ye(ue(re+t*(ae-re)))}},e.createElement("div",{className:"".concat(i,"-rail"),style:W}),e.createElement(cr,{prefixCls:i,style:z,values:_e,startPoint:U,onStartMove:Ne?Te:null}),e.createElement(fr,{prefixCls:i,marks:se,dots:q,style:V,activeStyle:Q}),e.createElement(ir,{ref:ee,prefixCls:i,style:H,values:Pe,draggingIndex:Ce,onStartMove:Te,onOffsetChange:function(e,t){if(!u){var n=de(xe,e,t);null===E||void 0===E||E(be(xe)),ve(n.values),null===P||void 0===P||P(be(n.values)),je(n.value)}},onFocus:m,onBlur:h,handleRender:G}),e.createElement(dr,{prefixCls:i,marks:se,onClick:ye})))}));var hr=mr,xr=n(9998),gr=function(e){return new Promise((function(t,n){var r=new Image;r.addEventListener("load",(function(){return t(r)})),r.addEventListener("error",(function(e){return n(e)})),r.setAttribute("crossOrigin","anonymous"),r.src=e}))};function br(e){return e*Math.PI/180}function vr(e,t,n){var r=br(n);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*t),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*t)}}function yr(e,t){return wr.apply(this,arguments)}function wr(){return wr=l(i().mark((function e(t,n){var r,a,o,s,l,c,u,d,p,f,m=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=m.length>2&&void 0!==m[2]?m[2]:0,a=m.length>3&&void 0!==m[3]?m[3]:{horizontal:!1,vertical:!1},e.next=4,gr(t);case 4:if(o=e.sent,s=document.createElement("canvas"),l=s.getContext("2d")){e.next=9;break}return e.abrupt("return",null);case 9:return c=br(r),u=vr(o.width,o.height,r),d=u.width,p=u.height,s.width=d,s.height=p,l.translate(d/2,p/2),l.rotate(c),l.scale(a.horizontal?-1:1,a.vertical?-1:1),l.translate(-o.width/2,-o.height/2),l.drawImage(o,0,0),f=l.getImageData(n.x,n.y,n.width,n.height),s.width=n.width,s.height=n.height,l.putImageData(f,0,0),e.abrupt("return",new Promise((function(e,t){s.toBlob((function(t){e(URL.createObjectURL(t))}),"image/jpeg")})));case 23:case"end":return e.stop()}}),e)}))),wr.apply(this,arguments)}function kr(e){return jr.apply(this,arguments)}function jr(){return jr=l(i().mark((function e(t){var n,r,a,o,s=arguments;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=s.length>1&&void 0!==s[1]?s[1]:0,e.next=3,gr(t);case 3:return r=e.sent,a=document.createElement("canvas"),o=a.getContext("2d"),90===n||-90===n||270===n||-270===n?(a.width=r.height,a.height=r.width):(a.width=r.width,a.height=r.height),o.translate(a.width/2,a.height/2),o.rotate(n*Math.PI/180),o.drawImage(r,-r.width/2,-r.height/2),e.abrupt("return",new Promise((function(e){a.toBlob((function(t){e(URL.createObjectURL(t))}),"image/png")})));case 12:case"end":return e.stop()}}),e)}))),jr.apply(this,arguments)}var Nr={3:180,6:90,8:-90};function Ar(e,t,n){return fetch(e).then((function(e){return e.arrayBuffer()})).then((function(e){return new File([e],t,{type:n})}))}function Sr(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(){return t(n.result)}),!1),n.readAsDataURL(e)}))}var Cr=function(t){t.formdata;var n=t.setformdata,r=t.crowdfundMode,a=t.eventdetails,o=t.params,s=T((0,e.useState)(null),2),c=s[0],u=s[1],d=T(e.useState(null),2),p=d[0],f=d[1],m=T((0,e.useState)({x:0,y:0}),2),h=m[0],x=m[1],g=T((0,e.useState)(0),2),b=g[0],v=g[1],y=T((0,e.useState)(1),2),w=y[0],k=y[1],j=T((0,e.useState)(null),2),N=j[0],A=j[1],S=T((0,e.useState)(null),2),C=S[0],E=S[1],P=(0,e.useCallback)((function(e,t){A(t)}),[]);(0,e.useEffect)((function(){null!==o&&void 0!==o&&o.id&&(E(a.banner),f(a.banner))}),[a,null===o||void 0===o?void 0:o.id]);var F=(0,e.useCallback)(l(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,yr(p,N,b);case 3:return t=e.sent,E(t),console.log(c),e.next=8,Ar(t,c);case 8:r=e.sent,n((function(e){return It(It({},e),{},{banner:r})})),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0);case 15:case"end":return e.stop()}}),e,null,[[0,12]])}))),[p,N,b]),O=function(){var e=l(i().mark((function e(t){var r,a,o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f(null),E(null),n((function(e){return It(It({},e),{},{banner:null})})),!(t.target.files&&t.target.files.length>0)){e.next=24;break}return r=t.target.files[0],u(r.name),e.next=8,Sr(r);case 8:return a=e.sent,e.prev=9,e.next=12,(0,xr.getOrientation)(r);case 12:if(o=e.sent,!(s=Nr[o])){e.next=18;break}return e.next=17,kr(a,s);case 17:a=e.sent;case 18:e.next=23;break;case 20:e.prev=20,e.t0=e.catch(9),console.warn("Failed to detect the orientation");case 23:f(a);case 24:case"end":return e.stop()}}),e,null,[[9,20]])})));return function(t){return e.apply(this,arguments)}}(),_=(0,vt.useMediaQuery)({query:"(max-width:768px)"});return(0,Vt.jsx)("div",{className:" ".concat(C?"":"bg-[#F9F9F9] w-full"," "),children:p?(0,Vt.jsxs)(e.Fragment,{children:[C?(0,Vt.jsx)("div",{className:"w-full md:w-[550px] mx-auto mt-5 ",children:(0,Vt.jsx)("label",{htmlFor:"campaignimage",children:(0,Vt.jsx)("img",{src:C,alt:"Cropped Crowdfund banner",className:"mx-auto w-full border-[2px] border-[#37BCF7] ".concat("edit"!==r?"cursor-pointer":"cursor-not-allowed")})})}):(0,Vt.jsx)("div",{className:"cropContainer",children:(0,Vt.jsx)(Fn,{image:p,crop:h,rotation:b,zoom:w,aspect:_?1:1.5,onCropChange:x,onRotationChange:v,onCropComplete:P,onZoomChange:k})}),(0,Vt.jsxs)("div",{className:"controls",children:[(0,Vt.jsxs)("div",{className:" ".concat(C?"hidden":"mb-2 flex flex-col sm:flex-row gap-2 justify-between"," "),children:[(0,Vt.jsxs)("div",{className:"sliderContainer",children:[(0,Vt.jsx)("label",{className:"sliderLabel",children:"Zoom"}),(0,Vt.jsx)(hr,{value:w,min:1,max:3,step:.1,onChange:function(e){return k(e)},className:"slider",disabled:!1})]}),(0,Vt.jsxs)("div",{className:"sliderContainer",children:[(0,Vt.jsx)("label",{className:"sliderLabel",children:"Rotation"}),(0,Vt.jsx)(hr,{value:b,min:0,max:360,step:1,onChange:function(e){return v(e)},className:"slider"})]})]}),(0,Vt.jsxs)("div",{className:"flex items-center justify-center",children:[C?null:(0,Vt.jsx)("button",{className:"bg-[#37BCF7] w-3/4 px-4 py-2 text-white font-semibold shrink-0 shadow-[0px_3px_1px_-2px_rgba(0,0,0,0.2)] rounded hover:bg-[#0baef4]",onClick:F,children:"Apply"}),(0,Vt.jsxs)("div",{className:"hidden",children:[(0,Vt.jsx)("label",{htmlFor:"campaignimage",className:"cursor-pointer bg-[#37BCF7] px-4 py-[10px] text-white font-semibold shrink-0 shadow-[0px_3px_1px_-2px_rgba(0,0,0,0.2)] rounded hover:bg-[#0baef4]",children:(0,Vt.jsx)("span",{className:"",children:"Change Image"})}),(0,Vt.jsx)("input",{type:"file",onChange:O,accept:"image/*",className:"hidden",id:"campaignimage",disabled:"edit"===r})]})]})]})]}):(0,Vt.jsxs)("div",{className:"w-full fold:h-[150px] phones:h-[200px] md:h-[240px] flex justify-center items-center mb-5",children:[(0,Vt.jsx)("label",{htmlFor:"campaignimage",className:"cursor-pointer",children:(0,Vt.jsx)("img",{src:Xt,alt:"upload icon",className:"w-9 h-11"})}),(0,Vt.jsx)("input",{disabled:"edit"===r,type:"file",onChange:O,accept:"image/*",className:"hidden",id:"campaignimage"})]})})};var Er=n.p+"static/media/addIcon.d68f1aa1a70c003e8cf22040888c2d91.svg";var Pr=n.p+"static/media/addIcon2.ec5bc2bd7686b8d012f1c4da6d7038e4.svg",Fr="https://palbucks-aad4f76ec2a6.herokuapp.com",Tr=function(){var e=l(i().mark((function e(t){var n,r,a,o,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=localStorage.getItem("access_token"))){e.next=47;break}return e.prev=2,e.next=5,fetch("".concat(Fr,"/auth/token/verify/"),{method:"POST",body:JSON.stringify({token:n}),headers:{"Content-Type":"application/json"}});case 5:return r=e.sent,e.next=8,r.json();case 8:if("token_not_valid"!=(a=e.sent).code){e.next=39;break}if(!(o=localStorage.getItem("refresh_token"))){e.next=34;break}return e.prev=12,e.next=15,fetch("".concat(Fr,"/auth/token/refresh/"),{method:"POST",body:JSON.stringify({refresh:o}),headers:{"Content-Type":"application/json"}});case 15:return s=e.sent,e.next=18,s.json();case 18:if(l=e.sent,console.log(l),!s.ok){e.next=26;break}localStorage.setItem("access_token",l.access),t(At(!0)),console.log("Token updated /refreshed successfully"),e.next=27;break;case 26:return e.abrupt("return",{detail:"Token is invalid or expired",code:"token_not_valid"});case 27:e.next=32;break;case 29:e.prev=29,e.t0=e.catch(12),console.error(e.t0);case 32:e.next=36;break;case 34:return t(At(!1)),e.abrupt("return",{detail:"Token is invalid or expired",code:"token_not_valid"});case 36:return e.abrupt("return",a);case 39:t(At(!0));case 40:e.next=45;break;case 42:e.prev=42,e.t1=e.catch(2),console.error(e.t1);case 45:e.next=48;break;case 47:t(At(!1));case 48:case"end":return e.stop()}}),e,null,[[2,42],[12,29]])})));return function(t){return e.apply(this,arguments)}}();var Or=function(t){var n=t.displaySearchCoOrganiser,r=t.setdisplaySearchCoOrganiser,a=t.formdata,o=t.setformdata,s=t.selected,c=t.setSelected,u=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),d=localStorage.getItem("access_token"),p=T((0,e.useState)(""),2),f=p[0],m=p[1],h=T((0,e.useState)([]),2),x=h[0],g=h[1],b=function(){var e=l(i().mark((function e(t){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m(t.target.value),e.next=4,fetch("".concat(Fr,"/funding/api/add-coorganisers/?q=").concat(t.target.value),{headers:{Authorization:"Bearer ".concat(d)}});case 4:if((n=e.sent).ok){e.next=9;break}return console.error("Request failed with status: ".concat(n.status)),g([]),e.abrupt("return");case 9:return e.next=11,n.json();case 11:r=e.sent,g(r),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),console.error("An error occurred:",e.t0),g([]);case 19:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t){return e.apply(this,arguments)}}();return(0,Vt.jsx)("div",{className:"fixed z-50 inset-0 overflow-y-auto font-arial ".concat(n?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsxs)("div",{className:"w-full md:w-[681px] min-h-[300px] h-fit py-5 md:py-10 px-1 phones:px-4 md:px-9 bg-white rounded-[10px] shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:"relative flex gap-5 md:gap-20 lg:gap-11 items-center justify-center ",children:[(0,Vt.jsx)("input",{type:"search",className:" w-[65%] phones:w-[70%] md:w-[420px] h-[30px] xphones:h-[40px] xl:w-[450px] xl:h-[44px] relative right-5 md:right-2 text-sm xphones:text-base pl-10 md:pl-12 lg:pl-14 placeholder-[#7A7575] bg-[#ecebeb] bg-[length:20px] md:bg-[length:24px] bg-[image:url('./images/search.svg')] bg-[left_calc(5%)_top_calc(48%)] bg-no-repeat rounded-3xl shadow-[0px_0px_16px_rgba(0,0,0,0.04)] md:shadow-none font-arial font-normal focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] ",placeholder:u?"Search":"Search for Co-organiser(s)",onChange:b}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] text-sm xphones:text-base md:text-xl font-bold absolute right-1 ",onClick:function(){r(!1)},children:"Cancel"})]}),(0,Vt.jsx)("div",{className:" ".concat(""==f?"flex items-center justify-center h-[300px] text-[#8E8E93] text-center text-base md:text-xl":"hidden"," "),children:"Search for co-organisers and add them to your campaign"}),(0,Vt.jsxs)("div",{className:"".concat(""==f?"hidden":"h-full pt-7 flex flex-col"," "),children:[(0,Vt.jsxs)("p",{className:"text-[#8E8E93] text-sm xphones:text-base md:text-lg text-center mb-8 ",children:["Selected ",s.length," of ",x.length]}),(0,Vt.jsx)("div",{className:"mb-10 modalScrollbar flex flex-col gap-10 max-h-[350px] overflow-auto p-2 xphones:p-4 ",children:x.map((function(e,t){return(0,Vt.jsx)(_r,{pk:e.pk,user:e,selected:s,setSelected:c,formdata:a,setformdata:o},e.pk)}))}),(0,Vt.jsx)("p",{className:"text-sm md:text-base text-center",children:"Users you invite will have to accept your invitation before they can appear on your campaign"})]})]})})]})})},_r=function(e){var t,n,r,a=e.user,o=e.pk,i=e.selected,s=e.setSelected,l=e.formdata,c=e.setformdata,u=JSON.parse(localStorage.getItem("userInfo"));return(0,Vt.jsxs)("div",{className:"flex flex-col phones:flex-row phones:items-center phones:justify-between gap-3 md:gap-4 font-arial ",children:[(0,Vt.jsxs)("div",{className:"flex gap-2 md:gap-[15px] items-center phones:justify-center",children:[(0,Vt.jsx)("img",{src:null==a.dp?Ut:a.dp,alt:"Profile pic",className:"w-10 xphones:w-12 h-10 xphones:h-12 md:w-[60px] md:h-[60px] rounded-full "}),(0,Vt.jsxs)("p",{className:"text-xs phones:text-sm md:text-base font-black ",children:[a.first_name," ",a.last_name]})]}),(0,Vt.jsxs)("button",{className:" ".concat(null!==(t=l.co_organisers)&&void 0!==t&&t.includes(o)?"bg-[#37BCF7] text-white ":"border-[3px] border-[#37BCF7] hover:bg-[#37BCF71A] text-[#37BCF7]"," \n                flex items-center justify-center gap-1 md:gap-2 py-1 xphones:py-[6px] pr-[2px] phones:pl-1 phones:pr-[6px] md:px-3 rounded-xl w-fit min-w-[100px] "),onClick:function(){var e;u.username!==a.username?i.length>=2&&!l.co_organisers.includes(o)?alert("You can only add 2 co-organisers"):null!==(e=l.co_organisers)&&void 0!==e&&e.includes(o)?(s(i.filter((function(e){return e.pk!==o}))),c(It(It({},l),{},{co_organisers:l.co_organisers.filter((function(e){return e!==o}))}))):(s([].concat(b(i),[a])),c(It(It({},l),{},{co_organisers:l.co_organisers?[].concat(b(l.co_organisers),[Number(o)]):[Number(o)]}))):alert("You cannot add yourself as a co-organiser")},children:[(0,Vt.jsx)("img",{src:null!==(n=l.co_organisers)&&void 0!==n&&n.includes(o)?Pr:Er,alt:"add Icon",className:"w-6 md:w-[30px]"}),(0,Vt.jsx)("p",{className:"text-xs phones:text-sm md:text-base font-black pt-1 ",children:null!==(r=l.co_organisers)&&void 0!==r&&r.includes(o)?"Invited User":"Invite user"})]})]})},Dr=function(e){return(0,Vt.jsx)("div",{className:"text-center",children:(0,Vt.jsxs)("div",{role:"status",children:[(0,Vt.jsxs)("svg",{"aria-hidden":"true",className:"inline ".concat(e.width?"w-[".concat(e.width,"] h-[").concat(e.height,"]"):"w-12 h-12","  mr-2 text-gray-400 animate-spin dark:text-gray-600 fill-[#37BCF7]"),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Vt.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,Vt.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]}),(0,Vt.jsx)("span",{className:"sr-only",children:"Loading..."})]})})},Ir=["defaultInputValue","defaultMenuIsOpen","defaultValue","inputValue","menuIsOpen","onChange","onInputChange","onMenuClose","onMenuOpen","value"];var Rr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Lr=Math.abs,Mr=String.fromCharCode,Br=Object.assign;function Ur(e){return e.trim()}function zr(e,t,n){return e.replace(t,n)}function Hr(e,t){return e.indexOf(t)}function Wr(e,t){return 0|e.charCodeAt(t)}function Vr(e,t,n){return e.slice(t,n)}function Qr(e){return e.length}function Yr(e){return e.length}function qr(e,t){return t.push(e),e}var Gr=1,Xr=1,Jr=0,Kr=0,Zr=0,$r="";function ea(e,t,n,r,a,o,i){return{value:e,root:t,parent:n,type:r,props:a,children:o,line:Gr,column:Xr,length:i,return:""}}function ta(e,t){return Br(ea("",null,null,"",null,null,0),e,{length:-e.length},t)}function na(){return Zr=Kr>0?Wr($r,--Kr):0,Xr--,10===Zr&&(Xr=1,Gr--),Zr}function ra(){return Zr=Kr<Jr?Wr($r,Kr++):0,Xr++,10===Zr&&(Xr=1,Gr++),Zr}function aa(){return Wr($r,Kr)}function oa(){return Kr}function ia(e,t){return Vr($r,e,t)}function sa(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function la(e){return Gr=Xr=1,Jr=Qr($r=e),Kr=0,[]}function ca(e){return $r="",e}function ua(e){return Ur(ia(Kr-1,fa(91===e?e+2:40===e?e+1:e)))}function da(e){for(;(Zr=aa())&&Zr<33;)ra();return sa(e)>2||sa(Zr)>3?"":" "}function pa(e,t){for(;--t&&ra()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return ia(e,oa()+(t<6&&32==aa()&&32==ra()))}function fa(e){for(;ra();)switch(Zr){case e:return Kr;case 34:case 39:34!==e&&39!==e&&fa(Zr);break;case 40:41===e&&fa(e);break;case 92:ra()}return Kr}function ma(e,t){for(;ra()&&e+Zr!==57&&(e+Zr!==84||47!==aa()););return"/*"+ia(t,Kr-1)+"*"+Mr(47===e?e:ra())}function ha(e){for(;!sa(aa());)ra();return ia(e,Kr)}var xa="-ms-",ga="-moz-",ba="-webkit-",va="comm",ya="rule",wa="decl",ka="@keyframes";function ja(e,t){for(var n="",r=Yr(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function Na(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case wa:return e.return=e.return||e.value;case va:return"";case ka:return e.return=e.value+"{"+ja(e.children,r)+"}";case ya:e.value=e.props.join(",")}return Qr(n=ja(e.children,r))?e.return=e.value+"{"+n+"}":""}function Aa(e){return ca(Sa("",null,null,null,[""],e=la(e),0,[0],e))}function Sa(e,t,n,r,a,o,i,s,l){for(var c=0,u=0,d=i,p=0,f=0,m=0,h=1,x=1,g=1,b=0,v="",y=a,w=o,k=r,j=v;x;)switch(m=b,b=ra()){case 40:if(108!=m&&58==Wr(j,d-1)){-1!=Hr(j+=zr(ua(b),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:j+=ua(b);break;case 9:case 10:case 13:case 32:j+=da(m);break;case 92:j+=pa(oa()-1,7);continue;case 47:switch(aa()){case 42:case 47:qr(Ea(ma(ra(),oa()),t,n),l);break;default:j+="/"}break;case 123*h:s[c++]=Qr(j)*g;case 125*h:case 59:case 0:switch(b){case 0:case 125:x=0;case 59+u:-1==g&&(j=zr(j,/\f/g,"")),f>0&&Qr(j)-d&&qr(f>32?Pa(j+";",r,n,d-1):Pa(zr(j," ","")+";",r,n,d-2),l);break;case 59:j+=";";default:if(qr(k=Ca(j,t,n,c,u,a,s,v,y=[],w=[],d),o),123===b)if(0===u)Sa(j,t,k,k,y,o,d,s,w);else switch(99===p&&110===Wr(j,3)?100:p){case 100:case 108:case 109:case 115:Sa(e,k,k,r&&qr(Ca(e,k,k,0,0,a,s,v,a,y=[],d),w),a,w,d,s,r?y:w);break;default:Sa(j,k,k,k,[""],w,0,s,w)}}c=u=f=0,h=g=1,v=j="",d=i;break;case 58:d=1+Qr(j),f=m;default:if(h<1)if(123==b)--h;else if(125==b&&0==h++&&125==na())continue;switch(j+=Mr(b),b*h){case 38:g=u>0?1:(j+="\f",-1);break;case 44:s[c++]=(Qr(j)-1)*g,g=1;break;case 64:45===aa()&&(j+=ua(ra())),p=aa(),u=d=Qr(v=j+=ha(oa())),b++;break;case 45:45===m&&2==Qr(j)&&(h=0)}}return o}function Ca(e,t,n,r,a,o,i,s,l,c,u){for(var d=a-1,p=0===a?o:[""],f=Yr(p),m=0,h=0,x=0;m<r;++m)for(var g=0,b=Vr(e,d+1,d=Lr(h=i[m])),v=e;g<f;++g)(v=Ur(h>0?p[g]+" "+b:zr(b,/&\f/g,p[g])))&&(l[x++]=v);return ea(e,t,n,0===a?ya:s,l,c,u)}function Ea(e,t,n){return ea(e,t,n,va,Mr(Zr),Vr(e,2,-2),0)}function Pa(e,t,n,r){return ea(e,t,n,wa,Vr(e,0,r),Vr(e,r+1,-1),r)}var Fa=function(e,t,n){for(var r=0,a=0;r=a,a=aa(),38===r&&12===a&&(t[n]=1),!sa(a);)ra();return ia(e,Kr)},Ta=function(e,t){return ca(function(e,t){var n=-1,r=44;do{switch(sa(r)){case 0:38===r&&12===aa()&&(t[n]=1),e[n]+=Fa(Kr-1,t,n);break;case 2:e[n]+=ua(r);break;case 4:if(44===r){e[++n]=58===aa()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Mr(r)}}while(r=ra());return e}(la(e),t))},Oa=new WeakMap,_a=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Oa.get(n))&&!r){Oa.set(e,!0);for(var a=[],o=Ta(t,a),i=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<i.length;c++,l++)e.props[l]=a[s]?o[s].replace(/&\f/g,i[c]):i[c]+" "+o[s]}}},Da=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ia(e,t){switch(function(e,t){return 45^Wr(e,0)?(((t<<2^Wr(e,0))<<2^Wr(e,1))<<2^Wr(e,2))<<2^Wr(e,3):0}(e,t)){case 5103:return ba+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ba+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ba+e+ga+e+xa+e+e;case 6828:case 4268:return ba+e+xa+e+e;case 6165:return ba+e+xa+"flex-"+e+e;case 5187:return ba+e+zr(e,/(\w+).+(:[^]+)/,ba+"box-$1$2"+xa+"flex-$1$2")+e;case 5443:return ba+e+xa+"flex-item-"+zr(e,/flex-|-self/,"")+e;case 4675:return ba+e+xa+"flex-line-pack"+zr(e,/align-content|flex-|-self/,"")+e;case 5548:return ba+e+xa+zr(e,"shrink","negative")+e;case 5292:return ba+e+xa+zr(e,"basis","preferred-size")+e;case 6060:return ba+"box-"+zr(e,"-grow","")+ba+e+xa+zr(e,"grow","positive")+e;case 4554:return ba+zr(e,/([^-])(transform)/g,"$1"+ba+"$2")+e;case 6187:return zr(zr(zr(e,/(zoom-|grab)/,ba+"$1"),/(image-set)/,ba+"$1"),e,"")+e;case 5495:case 3959:return zr(e,/(image-set\([^]*)/,ba+"$1$`$1");case 4968:return zr(zr(e,/(.+:)(flex-)?(.*)/,ba+"box-pack:$3"+xa+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ba+e+e;case 4095:case 3583:case 4068:case 2532:return zr(e,/(.+)-inline(.+)/,ba+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Qr(e)-1-t>6)switch(Wr(e,t+1)){case 109:if(45!==Wr(e,t+4))break;case 102:return zr(e,/(.+:)(.+)-([^]+)/,"$1"+ba+"$2-$3$1"+ga+(108==Wr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Hr(e,"stretch")?Ia(zr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Wr(e,t+1))break;case 6444:switch(Wr(e,Qr(e)-3-(~Hr(e,"!important")&&10))){case 107:return zr(e,":",":"+ba)+e;case 101:return zr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ba+(45===Wr(e,14)?"inline-":"")+"box$3$1"+ba+"$2$3$1"+xa+"$2box$3")+e}break;case 5936:switch(Wr(e,t+11)){case 114:return ba+e+xa+zr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ba+e+xa+zr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ba+e+xa+zr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ba+e+xa+e+e}return e}var Ra=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wa:e.return=Ia(e.value,e.length);break;case ka:return ja([ta(e,{value:zr(e.value,"@","@"+ba)})],r);case ya:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ja([ta(e,{props:[zr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return ja([ta(e,{props:[zr(t,/:(plac\w+)/,":"+ba+"input-$1")]}),ta(e,{props:[zr(t,/:(plac\w+)/,":-moz-$1")]}),ta(e,{props:[zr(t,/:(plac\w+)/,xa+"input-$1")]})],r)}return""}))}}],La=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Ra;var a,o,i={},s=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)i[t[n]]=!0;s.push(e)}));var l,c,u=[Na,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=Yr(e);return function(n,r,a,o){for(var i="",s=0;s<t;s++)i+=e[s](n,r,a,o)||"";return i}}([_a,Da].concat(r,u));o=function(e,t,n,r){l=n,function(e){ja(Aa(e),d)}(e?e+"{"+t.styles+"}":t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new Rr({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:o};return p.sheet.hydrate(s),p};var Ma=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var Ba={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Ua(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var za=/[A-Z]|^ms/g,Ha=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wa=function(e){return 45===e.charCodeAt(1)},Va=function(e){return null!=e&&"boolean"!==typeof e},Qa=Ua((function(e){return Wa(e)?e:e.replace(za,"-$&").toLowerCase()})),Ya=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Ha,(function(e,t,n){return Ga={name:t,styles:n,next:Ga},t}))}return 1===Ba[e]||Wa(e)||"number"!==typeof t||0===t?t:t+"px"};function qa(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ga={name:n.name,styles:n.styles,next:Ga},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ga={name:r.name,styles:r.styles,next:Ga},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=qa(e,t,n[a])+";";else for(var o in n){var i=n[o];if("object"!==typeof i)null!=t&&void 0!==t[i]?r+=o+"{"+t[i]+"}":Va(i)&&(r+=Qa(o)+":"+Ya(o,i)+";");else if(!Array.isArray(i)||"string"!==typeof i[0]||null!=t&&void 0!==t[i[0]]){var s=qa(e,t,i);switch(o){case"animation":case"animationName":r+=Qa(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var l=0;l<i.length;l++)Va(i[l])&&(r+=Qa(o)+":"+Ya(o,i[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var a=Ga,o=n(e);return Ga=a,qa(e,t,o)}}if(null==t)return n;var i=t[n];return void 0!==i?i:n}var Ga,Xa=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var Ja=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,a="";Ga=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,a+=qa(n,t,o)):a+=o[0];for(var i=1;i<e.length;i++)a+=qa(n,t,e[i]),r&&(a+=o[i]);Xa.lastIndex=0;for(var s,l="";null!==(s=Xa.exec(a));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,a=e.length;a>=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(a)+l;return{name:c,styles:a,next:Ga}},Ka=!!t.useInsertionEffect&&t.useInsertionEffect,Za=Ka||function(e){return e()},$a=(Ka||e.useLayoutEffect,{}.hasOwnProperty),eo=e.createContext("undefined"!==typeof HTMLElement?La({key:"css"}):null);eo.Provider;var to=function(t){return(0,e.forwardRef)((function(n,r){var a=(0,e.useContext)(eo);return t(n,a,r)}))};var no=e.createContext({});var ro="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ao=function(e,t){var n={};for(var r in t)$a.call(t,r)&&(n[r]=t[r]);return n[ro]=e,n},oo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Ma(t,n,r),Za((function(){return function(e,t,n){Ma(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var a=t;do{e.insert(t===a?"."+r:"",a,e.sheet,!0),a=a.next}while(void 0!==a)}}(t,n,r)})),null},io=to((function(t,n,r){var a=t.css;"string"===typeof a&&void 0!==n.registered[a]&&(a=n.registered[a]);var o=t[ro],i=[a],s="";"string"===typeof t.className?s=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,i,t.className):null!=t.className&&(s=t.className+" ");var l=Ja(i,void 0,e.useContext(no));s+=n.key+"-"+l.name;var c={};for(var u in t)$a.call(t,u)&&"css"!==u&&u!==ro&&(c[u]=t[u]);return c.ref=r,c.className=s,e.createElement(e.Fragment,null,e.createElement(oo,{cache:n,serialized:l,isStringTag:"string"===typeof o}),e.createElement(o,c))}));var so=io,lo=function(t,n){var r=arguments;if(null==n||!$a.call(n,"css"))return e.createElement.apply(void 0,r);var a=r.length,o=new Array(a);o[0]=so,o[1]=ao(t,n);for(var i=2;i<a;i++)o[i]=r[i];return e.createElement.apply(null,o)};function co(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ja(t)}var uo=Math.min,po=Math.max,fo=Math.round,mo=Math.floor,ho=function(e){return{x:e,y:e}};function xo(e){return It(It({},e),{},{top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height})}function go(e){return yo(e)?(e.nodeName||"").toLowerCase():"#document"}function bo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function vo(e){var t;return null==(t=(yo(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yo(e){return e instanceof Node||e instanceof bo(e).Node}function wo(e){return e instanceof Element||e instanceof bo(e).Element}function ko(e){return e instanceof HTMLElement||e instanceof bo(e).HTMLElement}function jo(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof bo(e).ShadowRoot)}function No(e){var t=Co(e),n=t.overflow,r=t.overflowX,a=t.overflowY,o=t.display;return/auto|scroll|overlay|hidden|clip/.test(n+a+r)&&!["inline","contents"].includes(o)}function Ao(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function So(e){return["html","body","#document"].includes(go(e))}function Co(e){return bo(e).getComputedStyle(e)}function Eo(e){if("html"===go(e))return e;var t=e.assignedSlot||e.parentNode||jo(e)&&e.host||vo(e);return jo(t)?t.host:t}function Po(e){var t=Eo(e);return So(t)?e.ownerDocument?e.ownerDocument.body:e.body:ko(t)&&No(t)?t:Po(t)}function Fo(e,t){var n;void 0===t&&(t=[]);var r=Po(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),o=bo(r);return a?t.concat(o,o.visualViewport||[],No(r)?r:[]):t.concat(r,Fo(r))}function To(e){var t=Co(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,a=ko(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=fo(n)!==o||fo(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function Oo(e){return wo(e)?e:e.contextElement}function _o(e){var t=Oo(e);if(!ko(t))return ho(1);var n=t.getBoundingClientRect(),r=To(t),a=r.width,o=r.height,i=r.$,s=(i?fo(n.width):n.width)/a,l=(i?fo(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}var Do=ho(0);function Io(e){var t=bo(e);return Ao()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Do}function Ro(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.getBoundingClientRect(),o=Oo(e),i=ho(1);t&&(r?wo(r)&&(i=_o(r)):i=_o(e));var s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==bo(e))&&t}(o,n,r)?Io(o):ho(0),l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,d=a.height/i.y;if(o)for(var p=bo(o),f=r&&wo(r)?bo(r):r,m=p.frameElement;m&&r&&f!==p;){var h=_o(m),x=m.getBoundingClientRect(),g=Co(m),b=x.left+(m.clientLeft+parseFloat(g.paddingLeft))*h.x,v=x.top+(m.clientTop+parseFloat(g.paddingTop))*h.y;l*=h.x,c*=h.y,u*=h.x,d*=h.y,l+=b,c+=v,m=bo(m).frameElement}return xo({width:u,height:d,x:l,y:c})}function Lo(e,t,n,r){void 0===r&&(r={});var a=r,o=a.ancestorScroll,i=void 0===o||o,s=a.ancestorResize,l=void 0===s||s,c=a.elementResize,u=void 0===c?"function"===typeof ResizeObserver:c,d=a.layoutShift,p=void 0===d?"function"===typeof IntersectionObserver:d,f=a.animationFrame,m=void 0!==f&&f,h=Oo(e),x=i||l?[].concat(b(h?Fo(h):[]),b(Fo(t))):[];x.forEach((function(e){i&&e.addEventListener("scroll",n,{passive:!0}),l&&e.addEventListener("resize",n)}));var g,v=h&&p?function(e,t){var n,r=null,a=vo(e);function o(){clearTimeout(n),r&&r.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();var c=e.getBoundingClientRect(),u=c.left,d=c.top,p=c.width,f=c.height;if(s||t(),p&&f){var m={rootMargin:-mo(d)+"px "+-mo(a.clientWidth-(u+p))+"px "+-mo(a.clientHeight-(d+f))+"px "+-mo(u)+"px",threshold:po(0,uo(1,l))||1},h=!0;try{r=new IntersectionObserver(x,It(It({},m),{},{root:a.ownerDocument}))}catch(g){r=new IntersectionObserver(x,m)}r.observe(e)}function x(e){var t=e[0].intersectionRatio;if(t!==l){if(!h)return i();t?i(!1,t):n=setTimeout((function(){i(!1,1e-7)}),100)}h=!1}}(!0),o}(h,n):null,y=-1,w=null;u&&(w=new ResizeObserver((function(e){var r=T(e,1)[0];r&&r.target===h&&w&&(w.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame((function(){w&&w.observe(t)}))),n()})),h&&!m&&w.observe(h),w.observe(t));var k=m?Ro(e):null;return m&&function t(){var r=Ro(e);!k||r.x===k.x&&r.y===k.y&&r.width===k.width&&r.height===k.height||n();k=r,g=requestAnimationFrame(t)}(),n(),function(){x.forEach((function(e){i&&e.removeEventListener("scroll",n),l&&e.removeEventListener("resize",n)})),v&&v(),w&&w.disconnect(),w=null,m&&cancelAnimationFrame(g)}}var Mo=e.useLayoutEffect,Bo=["className","clearValue","cx","getStyles","getClassNames","getValue","hasValue","isMulti","isRtl","options","selectOption","selectProps","setValue","theme"],Uo=function(){};function zo(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function Ho(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];var o=[].concat(r);if(t&&e)for(var i in t)t.hasOwnProperty(i)&&t[i]&&o.push("".concat(zo(e,i)));return o.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Wo=function(e){return t=e,Array.isArray(t)?e.filter(Boolean):"object"===o(e)&&null!==e?[e]:[];var t},Vo=function(e){return e.className,e.clearValue,e.cx,e.getStyles,e.getClassNames,e.getValue,e.hasValue,e.isMulti,e.isRtl,e.options,e.selectOption,e.selectProps,e.setValue,e.theme,It({},Gn(e,Bo))},Qo=function(e,t,n){var r=e.cx,a=e.getStyles,o=e.getClassNames,i=e.className;return{css:a(t,e),className:r(null!==n&&void 0!==n?n:{},o(t,e),i)}};function Yo(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function qo(e){return Yo(e)?window.pageYOffset:e.scrollTop}function Go(e,t){Yo(e)?window.scrollTo(0,t):e.scrollTop=t}function Xo(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function Jo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Uo,a=qo(e),o=t-a,i=10,s=0;function l(){var t=Xo(s+=i,a,o,n);Go(e,t),s<n?window.requestAnimationFrame(l):r(e)}l()}function Ko(e,t){var n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=t.offsetHeight/3;r.bottom+a>n.bottom?Go(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+a,e.scrollHeight)):r.top-a<n.top&&Go(e,Math.max(t.offsetTop-a,0))}function Zo(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var $o=!1,ei={get passive(){return $o=!0}},ti="undefined"!==typeof window?window:{};ti.addEventListener&&ti.removeEventListener&&(ti.addEventListener("p",Uo,ei),ti.removeEventListener("p",Uo,!1));var ni=$o;function ri(e){return null!=e}function ai(e,t,n){return e?t:n}var oi=["children","innerProps"],ii=["children","innerProps"];function si(e){var t=e.maxHeight,n=e.menuEl,r=e.minHeight,a=e.placement,o=e.shouldScroll,i=e.isFixedPosition,s=e.controlHeight,l=function(e){var t=getComputedStyle(e),n="absolute"===t.position,r=/(auto|scroll)/;if("fixed"===t.position)return document.documentElement;for(var a=e;a=a.parentElement;)if(t=getComputedStyle(a),(!n||"static"!==t.position)&&r.test(t.overflow+t.overflowY+t.overflowX))return a;return document.documentElement}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u,d=l.getBoundingClientRect().height,p=n.getBoundingClientRect(),f=p.bottom,m=p.height,h=p.top,x=n.offsetParent.getBoundingClientRect().top,g=i?window.innerHeight:Yo(u=l)?window.innerHeight:u.clientHeight,b=qo(l),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),w=x-y,k=g-h,j=w+b,N=d-b-h,A=f-g+b+v,S=b+h-y,C=160;switch(a){case"auto":case"bottom":if(k>=m)return{placement:"bottom",maxHeight:t};if(N>=m&&!i)return o&&Jo(l,A,C),{placement:"bottom",maxHeight:t};if(!i&&N>=r||i&&k>=r)return o&&Jo(l,A,C),{placement:"bottom",maxHeight:i?k-v:N-v};if("auto"===a||i){var E=t,P=i?w:j;return P>=r&&(E=Math.min(P-v-s,t)),{placement:"top",maxHeight:E}}if("bottom"===a)return o&&Go(l,A),{placement:"bottom",maxHeight:t};break;case"top":if(w>=m)return{placement:"top",maxHeight:t};if(j>=m&&!i)return o&&Jo(l,S,C),{placement:"top",maxHeight:t};if(!i&&j>=r||i&&w>=r){var F=t;return(!i&&j>=r||i&&w>=r)&&(F=i?w-y:j-y),o&&Jo(l,S,C),{placement:"top",maxHeight:F}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}var li,ci=function(e){return"auto"===e?"bottom":e},ui=(0,e.createContext)(null),di=function(t){var n=t.children,r=t.minMenuHeight,a=t.maxMenuHeight,o=t.menuPlacement,i=t.menuPosition,s=t.menuShouldScrollIntoView,l=t.theme,c=((0,e.useContext)(ui)||{}).setPortalPlacement,u=(0,e.useRef)(null),d=T((0,e.useState)(a),2),p=d[0],f=d[1],m=T((0,e.useState)(null),2),h=m[0],x=m[1],g=l.spacing.controlHeight;return Mo((function(){var e=u.current;if(e){var t="fixed"===i,n=si({maxHeight:a,menuEl:e,minHeight:r,placement:o,shouldScroll:s&&!t,isFixedPosition:t,controlHeight:g});f(n.maxHeight),x(n.placement),null===c||void 0===c||c(n.placement)}}),[a,o,i,s,r,c,g]),n({ref:u,placerProps:It(It({},t),{},{placement:h||ci(o),maxHeight:p})})},pi=function(e){var t=e.children,n=e.innerRef,r=e.innerProps;return lo("div",qn({},Qo(e,"menu",{menu:!0}),{ref:n},r),t)},fi=function(e,t){var n=e.theme,r=n.spacing.baseUnit,a=n.colors;return It({textAlign:"center"},t?{}:{color:a.neutral40,padding:"".concat(2*r,"px ").concat(3*r,"px")})},mi=fi,hi=fi,xi=["size"],gi=["innerProps","isRtl","size"];var bi,vi,yi={name:"8mmkcg",styles:"display:inline-block;fill:currentColor;line-height:1;stroke:currentColor;stroke-width:0"},wi=function(e){var t=e.size,n=Gn(e,xi);return lo("svg",qn({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:yi},n))},ki=function(e){return lo(wi,qn({size:20},e),lo("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},ji=function(e){return lo(wi,qn({size:20},e),lo("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},Ni=function(e,t){var n=e.isFocused,r=e.theme,a=r.spacing.baseUnit,o=r.colors;return It({label:"indicatorContainer",display:"flex",transition:"color 150ms"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*a,":hover":{color:n?o.neutral80:o.neutral40}})},Ai=Ni,Si=Ni,Ci=function(){var e=co.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}(li||(bi=["\n  0%, 80%, 100% { opacity: 0; }\n  40% { opacity: 1; }\n"],vi||(vi=bi.slice(0)),li=Object.freeze(Object.defineProperties(bi,{raw:{value:Object.freeze(vi)}})))),Ei=function(e){var t=e.delay,n=e.offset;return lo("span",{css:co({animation:"".concat(Ci," 1s ease-in-out ").concat(t,"ms infinite;"),backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:n?"1em":void 0,height:"1em",verticalAlign:"top",width:"1em"},"","")})},Pi=function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.innerRef,o=e.innerProps,i=e.menuIsOpen;return lo("div",qn({ref:a},Qo(e,"control",{control:!0,"control--is-disabled":n,"control--is-focused":r,"control--menu-is-open":i}),o),t)},Fi=["data"],Ti=function(e){var t=e.children,n=e.cx,r=e.getStyles,a=e.getClassNames,o=e.Heading,i=e.headingProps,s=e.innerProps,l=e.label,c=e.theme,u=e.selectProps;return lo("div",qn({},Qo(e,"group",{group:!0}),s),lo(o,qn({},i,{selectProps:u,theme:c,getStyles:r,getClassNames:a,cx:n}),l),lo("div",null,t))},Oi=["innerRef","isDisabled","isHidden","inputClassName"],_i={gridArea:"1 / 2",font:"inherit",minWidth:"2px",border:0,margin:0,outline:0,padding:0},Di={flex:"1 1 auto",display:"inline-grid",gridArea:"1 / 1 / 2 / 3",gridTemplateColumns:"0 min-content","&:after":It({content:'attr(data-value) " "',visibility:"hidden",whiteSpace:"pre"},_i)},Ii=function(e){return It({label:"input",color:"inherit",background:0,opacity:e?0:1,width:"100%"},_i)},Ri=function(e){var t=e.children,n=e.innerProps;return lo("div",n,t)};var Li=function(e){var t=e.children,n=e.components,r=e.data,a=e.innerProps,o=e.isDisabled,i=e.removeProps,s=e.selectProps,l=n.Container,c=n.Label,u=n.Remove;return lo(l,{data:r,innerProps:It(It({},Qo(e,"multiValue",{"multi-value":!0,"multi-value--is-disabled":o})),a),selectProps:s},lo(c,{data:r,innerProps:It({},Qo(e,"multiValueLabel",{"multi-value__label":!0})),selectProps:s},t),lo(u,{data:r,innerProps:It(It({},Qo(e,"multiValueRemove",{"multi-value__remove":!0})),{},{"aria-label":"Remove ".concat(t||"option")},i),selectProps:s}))},Mi={ClearIndicator:function(e){var t=e.children,n=e.innerProps;return lo("div",qn({},Qo(e,"clearIndicator",{indicator:!0,"clear-indicator":!0}),n),t||lo(ki,null))},Control:Pi,DropdownIndicator:function(e){var t=e.children,n=e.innerProps;return lo("div",qn({},Qo(e,"dropdownIndicator",{indicator:!0,"dropdown-indicator":!0}),n),t||lo(ji,null))},DownChevron:ji,CrossIcon:ki,Group:Ti,GroupHeading:function(e){var t=Vo(e);t.data;var n=Gn(t,Fi);return lo("div",qn({},Qo(e,"groupHeading",{"group-heading":!0}),n))},IndicatorsContainer:function(e){var t=e.children,n=e.innerProps;return lo("div",qn({},Qo(e,"indicatorsContainer",{indicators:!0}),n),t)},IndicatorSeparator:function(e){var t=e.innerProps;return lo("span",qn({},t,Qo(e,"indicatorSeparator",{"indicator-separator":!0})))},Input:function(e){var t=e.cx,n=e.value,r=Vo(e),a=r.innerRef,o=r.isDisabled,i=r.isHidden,s=r.inputClassName,l=Gn(r,Oi);return lo("div",qn({},Qo(e,"input",{"input-container":!0}),{"data-value":n||""}),lo("input",qn({className:t({input:!0},s),ref:a,style:Ii(i),disabled:o},l)))},LoadingIndicator:function(e){var t=e.innerProps,n=e.isRtl,r=e.size,a=void 0===r?4:r,o=Gn(e,gi);return lo("div",qn({},Qo(It(It({},o),{},{innerProps:t,isRtl:n,size:a}),"loadingIndicator",{indicator:!0,"loading-indicator":!0}),t),lo(Ei,{delay:0,offset:n}),lo(Ei,{delay:160,offset:!0}),lo(Ei,{delay:320,offset:!n}))},Menu:pi,MenuList:function(e){var t=e.children,n=e.innerProps,r=e.innerRef,a=e.isMulti;return lo("div",qn({},Qo(e,"menuList",{"menu-list":!0,"menu-list--is-multi":a}),{ref:r},n),t)},MenuPortal:function(t){var n=t.appendTo,r=t.children,a=t.controlElement,o=t.innerProps,i=t.menuPlacement,s=t.menuPosition,l=(0,e.useRef)(null),c=(0,e.useRef)(null),u=T((0,e.useState)(ci(i)),2),d=u[0],p=u[1],f=(0,e.useMemo)((function(){return{setPortalPlacement:p}}),[]),m=T((0,e.useState)(null),2),h=m[0],x=m[1],g=(0,e.useCallback)((function(){if(a){var e=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(a),t="fixed"===s?0:window.pageYOffset,n=e[d]+t;n===(null===h||void 0===h?void 0:h.offset)&&e.left===(null===h||void 0===h?void 0:h.rect.left)&&e.width===(null===h||void 0===h?void 0:h.rect.width)||x({offset:n,rect:e})}}),[a,s,d,null===h||void 0===h?void 0:h.offset,null===h||void 0===h?void 0:h.rect.left,null===h||void 0===h?void 0:h.rect.width]);Mo((function(){g()}),[g]);var b=(0,e.useCallback)((function(){"function"===typeof c.current&&(c.current(),c.current=null),a&&l.current&&(c.current=Lo(a,l.current,g,{elementResize:"ResizeObserver"in window}))}),[a,g]);Mo((function(){b()}),[b]);var v=(0,e.useCallback)((function(e){l.current=e,b()}),[b]);if(!n&&"fixed"!==s||!h)return null;var y=lo("div",qn({ref:v},Qo(It(It({},t),{},{offset:h.offset,position:s,rect:h.rect}),"menuPortal",{"menu-portal":!0}),o),r);return lo(ui.Provider,{value:f},n?(0,$e.createPortal)(y,n):y)},LoadingMessage:function(e){var t=e.children,n=void 0===t?"Loading...":t,r=e.innerProps,a=Gn(e,ii);return lo("div",qn({},Qo(It(It({},a),{},{children:n,innerProps:r}),"loadingMessage",{"menu-notice":!0,"menu-notice--loading":!0}),r),n)},NoOptionsMessage:function(e){var t=e.children,n=void 0===t?"No options":t,r=e.innerProps,a=Gn(e,oi);return lo("div",qn({},Qo(It(It({},a),{},{children:n,innerProps:r}),"noOptionsMessage",{"menu-notice":!0,"menu-notice--no-options":!0}),r),n)},MultiValue:Li,MultiValueContainer:Ri,MultiValueLabel:Ri,MultiValueRemove:function(e){var t=e.children,n=e.innerProps;return lo("div",qn({role:"button"},n),t||lo(ki,{size:14}))},Option:function(e){var t=e.children,n=e.isDisabled,r=e.isFocused,a=e.isSelected,o=e.innerRef,i=e.innerProps;return lo("div",qn({},Qo(e,"option",{option:!0,"option--is-disabled":n,"option--is-focused":r,"option--is-selected":a}),{ref:o,"aria-disabled":n},i),t)},Placeholder:function(e){var t=e.children,n=e.innerProps;return lo("div",qn({},Qo(e,"placeholder",{placeholder:!0}),n),t)},SelectContainer:function(e){var t=e.children,n=e.innerProps,r=e.isDisabled,a=e.isRtl;return lo("div",qn({},Qo(e,"container",{"--is-disabled":r,"--is-rtl":a}),n),t)},SingleValue:function(e){var t=e.children,n=e.isDisabled,r=e.innerProps;return lo("div",qn({},Qo(e,"singleValue",{"single-value":!0,"single-value--is-disabled":n}),r),t)},ValueContainer:function(e){var t=e.children,n=e.innerProps,r=e.isMulti,a=e.hasValue;return lo("div",qn({},Qo(e,"valueContainer",{"value-container":!0,"value-container--is-multi":r,"value-container--has-value":a}),n),t)}},Bi=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function Ui(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],a=t[n],!(r===a||Bi(r)&&Bi(a)))return!1;var r,a;return!0}for(var zi={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},Hi=function(e){return lo("span",qn({css:zi},e))},Wi={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,a=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(a?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,a=e.labels,o=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(a.length>1?"s":""," ").concat(a.join(","),", selected.");case"select-option":return"option ".concat(r,o?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,a=e.label,o=void 0===a?"":a,i=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&i)return"value ".concat(o," focused, ").concat(c(i,n),".");if("menu"===t){var u=s?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(o," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},Vi=function(t){var n=t.ariaSelection,r=t.focusedOption,a=t.focusedValue,o=t.focusableOptions,i=t.isFocused,s=t.selectValue,l=t.selectProps,c=t.id,u=l.ariaLiveMessages,d=l.getOptionLabel,p=l.inputValue,f=l.isMulti,m=l.isOptionDisabled,h=l.isSearchable,x=l.menuIsOpen,g=l.options,b=l.screenReaderStatus,v=l.tabSelectsValue,y=l["aria-label"],w=l["aria-live"],k=(0,e.useMemo)((function(){return It(It({},Wi),u||{})}),[u]),j=(0,e.useMemo)((function(){var e,t="";if(n&&k.onChange){var r=n.option,a=n.options,o=n.removedValue,i=n.removedValues,l=n.value,c=o||r||(e=l,Array.isArray(e)?null:e),u=c?d(c):"",p=a||i||void 0,f=p?p.map(d):[],h=It({isDisabled:c&&m(c,s),label:u,labels:f},n);t=k.onChange(h)}return t}),[n,k,m,s,d]),N=(0,e.useMemo)((function(){var e="",t=r||a,n=!!(r&&s&&s.includes(r));if(t&&k.onFocus){var i={focused:t,label:d(t),isDisabled:m(t,s),isSelected:n,options:o,context:t===r?"menu":"value",selectValue:s};e=k.onFocus(i)}return e}),[r,a,d,m,k,o,s]),A=(0,e.useMemo)((function(){var e="";if(x&&g.length&&k.onFilter){var t=b({count:o.length});e=k.onFilter({inputValue:p,resultsMessage:t})}return e}),[o,p,x,k,g,b]),S=(0,e.useMemo)((function(){var e="";if(k.guidance){var t=a?"value":x?"menu":"input";e=k.guidance({"aria-label":y,context:t,isDisabled:r&&m(r,s),isMulti:f,isSearchable:h,tabSelectsValue:v})}return e}),[y,r,a,f,m,h,x,k,s,v]),C="".concat(N," ").concat(A," ").concat(S),E=lo(e.Fragment,null,lo("span",{id:"aria-selection"},j),lo("span",{id:"aria-context"},C)),P="initial-input-focus"===(null===n||void 0===n?void 0:n.action);return lo(e.Fragment,null,lo(Hi,{id:c},P&&E),lo(Hi,{"aria-live":w,"aria-atomic":"false","aria-relevant":"additions text"},i&&!P&&E))},Qi=[{base:"A",letters:"A\u24b6\uff21\xc0\xc1\xc2\u1ea6\u1ea4\u1eaa\u1ea8\xc3\u0100\u0102\u1eb0\u1eae\u1eb4\u1eb2\u0226\u01e0\xc4\u01de\u1ea2\xc5\u01fa\u01cd\u0200\u0202\u1ea0\u1eac\u1eb6\u1e00\u0104\u023a\u2c6f"},{base:"AA",letters:"\ua732"},{base:"AE",letters:"\xc6\u01fc\u01e2"},{base:"AO",letters:"\ua734"},{base:"AU",letters:"\ua736"},{base:"AV",letters:"\ua738\ua73a"},{base:"AY",letters:"\ua73c"},{base:"B",letters:"B\u24b7\uff22\u1e02\u1e04\u1e06\u0243\u0182\u0181"},{base:"C",letters:"C\u24b8\uff23\u0106\u0108\u010a\u010c\xc7\u1e08\u0187\u023b\ua73e"},{base:"D",letters:"D\u24b9\uff24\u1e0a\u010e\u1e0c\u1e10\u1e12\u1e0e\u0110\u018b\u018a\u0189\ua779"},{base:"DZ",letters:"\u01f1\u01c4"},{base:"Dz",letters:"\u01f2\u01c5"},{base:"E",letters:"E\u24ba\uff25\xc8\xc9\xca\u1ec0\u1ebe\u1ec4\u1ec2\u1ebc\u0112\u1e14\u1e16\u0114\u0116\xcb\u1eba\u011a\u0204\u0206\u1eb8\u1ec6\u0228\u1e1c\u0118\u1e18\u1e1a\u0190\u018e"},{base:"F",letters:"F\u24bb\uff26\u1e1e\u0191\ua77b"},{base:"G",letters:"G\u24bc\uff27\u01f4\u011c\u1e20\u011e\u0120\u01e6\u0122\u01e4\u0193\ua7a0\ua77d\ua77e"},{base:"H",letters:"H\u24bd\uff28\u0124\u1e22\u1e26\u021e\u1e24\u1e28\u1e2a\u0126\u2c67\u2c75\ua78d"},{base:"I",letters:"I\u24be\uff29\xcc\xcd\xce\u0128\u012a\u012c\u0130\xcf\u1e2e\u1ec8\u01cf\u0208\u020a\u1eca\u012e\u1e2c\u0197"},{base:"J",letters:"J\u24bf\uff2a\u0134\u0248"},{base:"K",letters:"K\u24c0\uff2b\u1e30\u01e8\u1e32\u0136\u1e34\u0198\u2c69\ua740\ua742\ua744\ua7a2"},{base:"L",letters:"L\u24c1\uff2c\u013f\u0139\u013d\u1e36\u1e38\u013b\u1e3c\u1e3a\u0141\u023d\u2c62\u2c60\ua748\ua746\ua780"},{base:"LJ",letters:"\u01c7"},{base:"Lj",letters:"\u01c8"},{base:"M",letters:"M\u24c2\uff2d\u1e3e\u1e40\u1e42\u2c6e\u019c"},{base:"N",letters:"N\u24c3\uff2e\u01f8\u0143\xd1\u1e44\u0147\u1e46\u0145\u1e4a\u1e48\u0220\u019d\ua790\ua7a4"},{base:"NJ",letters:"\u01ca"},{base:"Nj",letters:"\u01cb"},{base:"O",letters:"O\u24c4\uff2f\xd2\xd3\xd4\u1ed2\u1ed0\u1ed6\u1ed4\xd5\u1e4c\u022c\u1e4e\u014c\u1e50\u1e52\u014e\u022e\u0230\xd6\u022a\u1ece\u0150\u01d1\u020c\u020e\u01a0\u1edc\u1eda\u1ee0\u1ede\u1ee2\u1ecc\u1ed8\u01ea\u01ec\xd8\u01fe\u0186\u019f\ua74a\ua74c"},{base:"OI",letters:"\u01a2"},{base:"OO",letters:"\ua74e"},{base:"OU",letters:"\u0222"},{base:"P",letters:"P\u24c5\uff30\u1e54\u1e56\u01a4\u2c63\ua750\ua752\ua754"},{base:"Q",letters:"Q\u24c6\uff31\ua756\ua758\u024a"},{base:"R",letters:"R\u24c7\uff32\u0154\u1e58\u0158\u0210\u0212\u1e5a\u1e5c\u0156\u1e5e\u024c\u2c64\ua75a\ua7a6\ua782"},{base:"S",letters:"S\u24c8\uff33\u1e9e\u015a\u1e64\u015c\u1e60\u0160\u1e66\u1e62\u1e68\u0218\u015e\u2c7e\ua7a8\ua784"},{base:"T",letters:"T\u24c9\uff34\u1e6a\u0164\u1e6c\u021a\u0162\u1e70\u1e6e\u0166\u01ac\u01ae\u023e\ua786"},{base:"TZ",letters:"\ua728"},{base:"U",letters:"U\u24ca\uff35\xd9\xda\xdb\u0168\u1e78\u016a\u1e7a\u016c\xdc\u01db\u01d7\u01d5\u01d9\u1ee6\u016e\u0170\u01d3\u0214\u0216\u01af\u1eea\u1ee8\u1eee\u1eec\u1ef0\u1ee4\u1e72\u0172\u1e76\u1e74\u0244"},{base:"V",letters:"V\u24cb\uff36\u1e7c\u1e7e\u01b2\ua75e\u0245"},{base:"VY",letters:"\ua760"},{base:"W",letters:"W\u24cc\uff37\u1e80\u1e82\u0174\u1e86\u1e84\u1e88\u2c72"},{base:"X",letters:"X\u24cd\uff38\u1e8a\u1e8c"},{base:"Y",letters:"Y\u24ce\uff39\u1ef2\xdd\u0176\u1ef8\u0232\u1e8e\u0178\u1ef6\u1ef4\u01b3\u024e\u1efe"},{base:"Z",letters:"Z\u24cf\uff3a\u0179\u1e90\u017b\u017d\u1e92\u1e94\u01b5\u0224\u2c7f\u2c6b\ua762"},{base:"a",letters:"a\u24d0\uff41\u1e9a\xe0\xe1\xe2\u1ea7\u1ea5\u1eab\u1ea9\xe3\u0101\u0103\u1eb1\u1eaf\u1eb5\u1eb3\u0227\u01e1\xe4\u01df\u1ea3\xe5\u01fb\u01ce\u0201\u0203\u1ea1\u1ead\u1eb7\u1e01\u0105\u2c65\u0250"},{base:"aa",letters:"\ua733"},{base:"ae",letters:"\xe6\u01fd\u01e3"},{base:"ao",letters:"\ua735"},{base:"au",letters:"\ua737"},{base:"av",letters:"\ua739\ua73b"},{base:"ay",letters:"\ua73d"},{base:"b",letters:"b\u24d1\uff42\u1e03\u1e05\u1e07\u0180\u0183\u0253"},{base:"c",letters:"c\u24d2\uff43\u0107\u0109\u010b\u010d\xe7\u1e09\u0188\u023c\ua73f\u2184"},{base:"d",letters:"d\u24d3\uff44\u1e0b\u010f\u1e0d\u1e11\u1e13\u1e0f\u0111\u018c\u0256\u0257\ua77a"},{base:"dz",letters:"\u01f3\u01c6"},{base:"e",letters:"e\u24d4\uff45\xe8\xe9\xea\u1ec1\u1ebf\u1ec5\u1ec3\u1ebd\u0113\u1e15\u1e17\u0115\u0117\xeb\u1ebb\u011b\u0205\u0207\u1eb9\u1ec7\u0229\u1e1d\u0119\u1e19\u1e1b\u0247\u025b\u01dd"},{base:"f",letters:"f\u24d5\uff46\u1e1f\u0192\ua77c"},{base:"g",letters:"g\u24d6\uff47\u01f5\u011d\u1e21\u011f\u0121\u01e7\u0123\u01e5\u0260\ua7a1\u1d79\ua77f"},{base:"h",letters:"h\u24d7\uff48\u0125\u1e23\u1e27\u021f\u1e25\u1e29\u1e2b\u1e96\u0127\u2c68\u2c76\u0265"},{base:"hv",letters:"\u0195"},{base:"i",letters:"i\u24d8\uff49\xec\xed\xee\u0129\u012b\u012d\xef\u1e2f\u1ec9\u01d0\u0209\u020b\u1ecb\u012f\u1e2d\u0268\u0131"},{base:"j",letters:"j\u24d9\uff4a\u0135\u01f0\u0249"},{base:"k",letters:"k\u24da\uff4b\u1e31\u01e9\u1e33\u0137\u1e35\u0199\u2c6a\ua741\ua743\ua745\ua7a3"},{base:"l",letters:"l\u24db\uff4c\u0140\u013a\u013e\u1e37\u1e39\u013c\u1e3d\u1e3b\u017f\u0142\u019a\u026b\u2c61\ua749\ua781\ua747"},{base:"lj",letters:"\u01c9"},{base:"m",letters:"m\u24dc\uff4d\u1e3f\u1e41\u1e43\u0271\u026f"},{base:"n",letters:"n\u24dd\uff4e\u01f9\u0144\xf1\u1e45\u0148\u1e47\u0146\u1e4b\u1e49\u019e\u0272\u0149\ua791\ua7a5"},{base:"nj",letters:"\u01cc"},{base:"o",letters:"o\u24de\uff4f\xf2\xf3\xf4\u1ed3\u1ed1\u1ed7\u1ed5\xf5\u1e4d\u022d\u1e4f\u014d\u1e51\u1e53\u014f\u022f\u0231\xf6\u022b\u1ecf\u0151\u01d2\u020d\u020f\u01a1\u1edd\u1edb\u1ee1\u1edf\u1ee3\u1ecd\u1ed9\u01eb\u01ed\xf8\u01ff\u0254\ua74b\ua74d\u0275"},{base:"oi",letters:"\u01a3"},{base:"ou",letters:"\u0223"},{base:"oo",letters:"\ua74f"},{base:"p",letters:"p\u24df\uff50\u1e55\u1e57\u01a5\u1d7d\ua751\ua753\ua755"},{base:"q",letters:"q\u24e0\uff51\u024b\ua757\ua759"},{base:"r",letters:"r\u24e1\uff52\u0155\u1e59\u0159\u0211\u0213\u1e5b\u1e5d\u0157\u1e5f\u024d\u027d\ua75b\ua7a7\ua783"},{base:"s",letters:"s\u24e2\uff53\xdf\u015b\u1e65\u015d\u1e61\u0161\u1e67\u1e63\u1e69\u0219\u015f\u023f\ua7a9\ua785\u1e9b"},{base:"t",letters:"t\u24e3\uff54\u1e6b\u1e97\u0165\u1e6d\u021b\u0163\u1e71\u1e6f\u0167\u01ad\u0288\u2c66\ua787"},{base:"tz",letters:"\ua729"},{base:"u",letters:"u\u24e4\uff55\xf9\xfa\xfb\u0169\u1e79\u016b\u1e7b\u016d\xfc\u01dc\u01d8\u01d6\u01da\u1ee7\u016f\u0171\u01d4\u0215\u0217\u01b0\u1eeb\u1ee9\u1eef\u1eed\u1ef1\u1ee5\u1e73\u0173\u1e77\u1e75\u0289"},{base:"v",letters:"v\u24e5\uff56\u1e7d\u1e7f\u028b\ua75f\u028c"},{base:"vy",letters:"\ua761"},{base:"w",letters:"w\u24e6\uff57\u1e81\u1e83\u0175\u1e87\u1e85\u1e98\u1e89\u2c73"},{base:"x",letters:"x\u24e7\uff58\u1e8b\u1e8d"},{base:"y",letters:"y\u24e8\uff59\u1ef3\xfd\u0177\u1ef9\u0233\u1e8f\xff\u1ef7\u1e99\u1ef5\u01b4\u024f\u1eff"},{base:"z",letters:"z\u24e9\uff5a\u017a\u1e91\u017c\u017e\u1e93\u1e95\u01b6\u0225\u0240\u2c6c\ua763"}],Yi=new RegExp("["+Qi.map((function(e){return e.letters})).join("")+"]","g"),qi={},Gi=0;Gi<Qi.length;Gi++)for(var Xi=Qi[Gi],Ji=0;Ji<Xi.letters.length;Ji++)qi[Xi.letters[Ji]]=Xi.base;var Ki=function(e){return e.replace(Yi,(function(e){return qi[e]}))},Zi=function(e,t){void 0===t&&(t=Ui);var n=null;function r(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];if(n&&n.lastThis===this&&t(r,n.lastArgs))return n.lastResult;var o=e.apply(this,r);return n={lastResult:o,lastArgs:r,lastThis:this},o}return r.clear=function(){n=null},r}(Ki),$i=function(e){return e.replace(/^\s+|\s+$/g,"")},es=function(e){return"".concat(e.label," ").concat(e.value)},ts=["innerRef"];function ns(e){var t=e.innerRef,n=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=Object.entries(e).filter((function(e){var t=T(e,1)[0];return!n.includes(t)}));return a.reduce((function(e,t){var n=T(t,2),r=n[0],a=n[1];return e[r]=a,e}),{})}(Gn(e,ts),"onExited","in","enter","exit","appear");return lo("input",qn({ref:t},n,{css:co({label:"dummyInput",background:0,border:0,caretColor:"transparent",fontSize:"inherit",gridArea:"1 / 1 / 2 / 3",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(.01)"},"","")}))}var rs=["boxSizing","height","overflow","paddingRight","position"],as={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function os(e){e.preventDefault()}function is(e){e.stopPropagation()}function ss(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function ls(){return"ontouchstart"in window||navigator.maxTouchPoints}var cs=!("undefined"===typeof window||!window.document||!window.document.createElement),us=0,ds={capture:!1,passive:!1};var ps=function(){return document.activeElement&&document.activeElement.blur()},fs={name:"1kfdb0e",styles:"position:fixed;left:0;bottom:0;right:0;top:0"};function ms(t){var n=t.children,r=t.lockEnabled,a=t.captureEnabled,o=function(t){var n=t.isEnabled,r=t.onBottomArrive,a=t.onBottomLeave,o=t.onTopArrive,i=t.onTopLeave,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),c=(0,e.useRef)(0),u=(0,e.useRef)(null),d=(0,e.useCallback)((function(e,t){if(null!==u.current){var n=u.current,c=n.scrollTop,d=n.scrollHeight,p=n.clientHeight,f=u.current,m=t>0,h=d-p-c,x=!1;h>t&&s.current&&(a&&a(e),s.current=!1),m&&l.current&&(i&&i(e),l.current=!1),m&&t>h?(r&&!s.current&&r(e),f.scrollTop=d,x=!0,s.current=!0):!m&&-t>c&&(o&&!l.current&&o(e),f.scrollTop=0,x=!0,l.current=!0),x&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[r,a,o,i]),p=(0,e.useCallback)((function(e){d(e,e.deltaY)}),[d]),f=(0,e.useCallback)((function(e){c.current=e.changedTouches[0].clientY}),[]),m=(0,e.useCallback)((function(e){var t=c.current-e.changedTouches[0].clientY;d(e,t)}),[d]),h=(0,e.useCallback)((function(e){if(e){var t=!!ni&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),x=(0,e.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return(0,e.useEffect)((function(){if(n){var e=u.current;return h(e),function(){x(e)}}}),[n,h,x]),function(e){u.current=e}}({isEnabled:void 0===a||a,onBottomArrive:t.onBottomArrive,onBottomLeave:t.onBottomLeave,onTopArrive:t.onTopArrive,onTopLeave:t.onTopLeave}),i=function(t){var n=t.isEnabled,r=t.accountForScrollbars,a=void 0===r||r,o=(0,e.useRef)({}),i=(0,e.useRef)(null),s=(0,e.useCallback)((function(e){if(cs){var t=document.body,n=t&&t.style;if(a&&rs.forEach((function(e){var t=n&&n[e];o.current[e]=t})),a&&us<1){var r=parseInt(o.current.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+r||0;Object.keys(as).forEach((function(e){var t=as[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&ls()&&(t.addEventListener("touchmove",os,ds),e&&(e.addEventListener("touchstart",ss,ds),e.addEventListener("touchmove",is,ds))),us+=1}}),[a]),l=(0,e.useCallback)((function(e){if(cs){var t=document.body,n=t&&t.style;us=Math.max(us-1,0),a&&us<1&&rs.forEach((function(e){var t=o.current[e];n&&(n[e]=t)})),t&&ls()&&(t.removeEventListener("touchmove",os,ds),e&&(e.removeEventListener("touchstart",ss,ds),e.removeEventListener("touchmove",is,ds)))}}),[a]);return(0,e.useEffect)((function(){if(n){var e=i.current;return s(e),function(){l(e)}}}),[n,s,l]),function(e){i.current=e}}({isEnabled:r});return lo(e.Fragment,null,r&&lo("div",{onClick:ps,css:fs}),n((function(e){o(e),i(e)})))}var hs={name:"1a0ro4n-requiredInput",styles:"label:requiredInput;opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;right:0;width:100%"},xs=function(e){var t=e.name,n=e.onFocus;return lo("input",{required:!0,name:t,tabIndex:-1,"aria-hidden":"true",onFocus:n,css:hs,value:"",onChange:function(){}})},gs={clearIndicator:Si,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":void 0,pointerEvents:t?"none":void 0,position:"relative"}},control:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.theme,o=a.colors,i=a.borderRadius;return It({label:"control",alignItems:"center",cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:a.spacing.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms"},t?{}:{backgroundColor:n?o.neutral5:o.neutral0,borderColor:n?o.neutral10:r?o.primary:o.neutral20,borderRadius:i,borderStyle:"solid",borderWidth:1,boxShadow:r?"0 0 0 1px ".concat(o.primary):void 0,"&:hover":{borderColor:r?o.primary:o.neutral30}})},dropdownIndicator:Ai,group:function(e,t){var n=e.theme.spacing;return t?{}:{paddingBottom:2*n.baseUnit,paddingTop:2*n.baseUnit}},groupHeading:function(e,t){var n=e.theme,r=n.colors,a=n.spacing;return It({label:"group",cursor:"default",display:"block"},t?{}:{color:r.neutral40,fontSize:"75%",fontWeight:500,marginBottom:"0.25em",paddingLeft:3*a.baseUnit,paddingRight:3*a.baseUnit,textTransform:"uppercase"})},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing.baseUnit,o=r.colors;return It({label:"indicatorSeparator",alignSelf:"stretch",width:1},t?{}:{backgroundColor:n?o.neutral10:o.neutral20,marginBottom:2*a,marginTop:2*a})},input:function(e,t){var n=e.isDisabled,r=e.value,a=e.theme,o=a.spacing,i=a.colors;return It(It({visibility:n?"hidden":"visible",transform:r?"translateZ(0)":""},Di),t?{}:{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,color:i.neutral80})},loadingIndicator:function(e,t){var n=e.isFocused,r=e.size,a=e.theme,o=a.colors,i=a.spacing.baseUnit;return It({label:"loadingIndicator",display:"flex",transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"},t?{}:{color:n?o.neutral60:o.neutral20,padding:2*i})},loadingMessage:hi,menu:function(e,t){var n,r=e.placement,a=e.theme,o=a.borderRadius,i=a.spacing,s=a.colors;return It((_t(n={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r),"100%"),_t(n,"position","absolute"),_t(n,"width","100%"),_t(n,"zIndex",1),n),t?{}:{backgroundColor:s.neutral0,borderRadius:o,boxShadow:"0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",marginBottom:i.menuGutter,marginTop:i.menuGutter})},menuList:function(e,t){var n=e.maxHeight,r=e.theme.spacing.baseUnit;return It({maxHeight:n,overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},t?{}:{paddingBottom:r,paddingTop:r})},menuPortal:function(e){var t=e.rect,n=e.offset,r=e.position;return{left:t.left,position:r,top:n,width:t.width,zIndex:1}},multiValue:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,o=n.colors;return It({label:"multiValue",display:"flex",minWidth:0},t?{}:{backgroundColor:o.neutral10,borderRadius:a/2,margin:r.baseUnit/2})},multiValueLabel:function(e,t){var n=e.theme,r=n.borderRadius,a=n.colors,o=e.cropWithEllipsis;return It({overflow:"hidden",textOverflow:o||void 0===o?"ellipsis":void 0,whiteSpace:"nowrap"},t?{}:{borderRadius:r/2,color:a.neutral80,fontSize:"85%",padding:3,paddingLeft:6})},multiValueRemove:function(e,t){var n=e.theme,r=n.spacing,a=n.borderRadius,o=n.colors,i=e.isFocused;return It({alignItems:"center",display:"flex"},t?{}:{borderRadius:a/2,backgroundColor:i?o.dangerLight:void 0,paddingLeft:r.baseUnit,paddingRight:r.baseUnit,":hover":{backgroundColor:o.dangerLight,color:o.danger}})},noOptionsMessage:mi,option:function(e,t){var n=e.isDisabled,r=e.isFocused,a=e.isSelected,o=e.theme,i=o.spacing,s=o.colors;return It({label:"option",cursor:"default",display:"block",fontSize:"inherit",width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)"},t?{}:{backgroundColor:a?s.primary:r?s.primary25:"transparent",color:n?s.neutral20:a?s.neutral0:"inherit",padding:"".concat(2*i.baseUnit,"px ").concat(3*i.baseUnit,"px"),":active":{backgroundColor:n?void 0:a?s.primary:s.primary50}})},placeholder:function(e,t){var n=e.theme,r=n.spacing,a=n.colors;return It({label:"placeholder",gridArea:"1 / 1 / 2 / 3"},t?{}:{color:a.neutral50,marginLeft:r.baseUnit/2,marginRight:r.baseUnit/2})},singleValue:function(e,t){var n=e.isDisabled,r=e.theme,a=r.spacing,o=r.colors;return It({label:"singleValue",gridArea:"1 / 1 / 2 / 3",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t?{}:{color:n?o.neutral40:o.neutral80,marginLeft:a.baseUnit/2,marginRight:a.baseUnit/2})},valueContainer:function(e,t){var n=e.theme.spacing,r=e.isMulti,a=e.hasValue,o=e.selectProps.controlShouldRenderValue;return It({alignItems:"center",display:r&&a&&o?"flex":"grid",flex:1,flexWrap:"wrap",WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"},t?{}:{padding:"".concat(n.baseUnit/2,"px ").concat(2*n.baseUnit,"px")})}};var bs,vs={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},ys={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Zo(),captureMenuScroll:!Zo(),classNames:{},closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=It({ignoreCase:!0,ignoreAccents:!0,stringify:es,trim:!0,matchFrom:"any"},bs),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,i=n.trim,s=n.matchFrom,l=i?$i(t):t,c=i?$i(o(e)):o(e);return r&&(l=l.toLowerCase(),c=c.toLowerCase()),a&&(l=Zi(l),c=Ki(c)),"start"===s?c.substr(0,l.length)===l:c.indexOf(l)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0,unstyled:!1};function ws(e,t,n,r){return{type:"option",data:t,isDisabled:Cs(e,t,n),isSelected:Es(e,t,n),label:As(e,t),value:Ss(e,t),index:r}}function ks(e,t){return e.options.map((function(n,r){if("options"in n){var a=n.options.map((function(n,r){return ws(e,n,t,r)})).filter((function(t){return Ns(e,t)}));return a.length>0?{type:"group",data:n,options:a,index:r}:void 0}var o=ws(e,n,t,r);return Ns(e,o)?o:void 0})).filter(ri)}function js(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,b(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Ns(e,t){var n=e.inputValue,r=void 0===n?"":n,a=t.data,o=t.isSelected,i=t.label,s=t.value;return(!Fs(e)||!o)&&Ps(e,{label:i,value:s,data:a},r)}var As=function(e,t){return e.getOptionLabel(t)},Ss=function(e,t){return e.getOptionValue(t)};function Cs(e,t,n){return"function"===typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function Es(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"===typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=Ss(e,t);return n.some((function(t){return Ss(e,t)===r}))}function Ps(e,t,n){return!e.filterOption||e.filterOption(t,n)}var Fs=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},Ts=1,Os=function(t){N(r,t);var n=E(r);function r(e){var t;if(v(this,r),(t=n.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},t.blockOptionHover=!1,t.isComposing=!1,t.commonProps=void 0,t.initialTouchX=0,t.initialTouchY=0,t.instancePrefix="",t.openAfterFocus=!1,t.scrollToFocusedOptionOnUpdate=!1,t.userIsDragging=void 0,t.controlRef=null,t.getControlRef=function(e){t.controlRef=e},t.focusedOptionRef=null,t.getFocusedOptionRef=function(e){t.focusedOptionRef=e},t.menuListRef=null,t.getMenuListRef=function(e){t.menuListRef=e},t.inputRef=null,t.getInputRef=function(e){t.inputRef=e},t.focus=t.focusInput,t.blur=t.blurInput,t.onChange=function(e,n){var r=t.props,a=r.onChange,o=r.name;n.name=o,t.ariaOnChange(e,n),a(e,n)},t.setValue=function(e,n,r){var a=t.props,o=a.closeMenuOnSelect,i=a.isMulti,s=a.inputValue;t.onInputChange("",{action:"set-value",prevInputValue:s}),o&&(t.setState({inputIsHiddenAfterUpdate:!i}),t.onMenuClose()),t.setState({clearFocusValueOnUpdate:!0}),t.onChange(e,{action:n,option:r})},t.selectOption=function(e){var n=t.props,r=n.blurInputOnSelect,a=n.isMulti,o=n.name,i=t.state.selectValue,s=a&&t.isOptionSelected(e,i),l=t.isOptionDisabled(e,i);if(s){var c=t.getOptionValue(e);t.setValue(i.filter((function(e){return t.getOptionValue(e)!==c})),"deselect-option",e)}else{if(l)return void t.ariaOnChange(e,{action:"select-option",option:e,name:o});a?t.setValue([].concat(b(i),[e]),"select-option",e):t.setValue(e,"select-option")}r&&t.blurInput()},t.removeValue=function(e){var n=t.props.isMulti,r=t.state.selectValue,a=t.getOptionValue(e),o=r.filter((function(e){return t.getOptionValue(e)!==a})),i=ai(n,o,o[0]||null);t.onChange(i,{action:"remove-value",removedValue:e}),t.focusInput()},t.clearValue=function(){var e=t.state.selectValue;t.onChange(ai(t.props.isMulti,[],null),{action:"clear",removedValues:e})},t.popValue=function(){var e=t.props.isMulti,n=t.state.selectValue,r=n[n.length-1],a=n.slice(0,n.length-1),o=ai(e,a,a[0]||null);t.onChange(o,{action:"pop-value",removedValue:r})},t.getValue=function(){return t.state.selectValue},t.cx=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return Ho.apply(void 0,[t.props.classNamePrefix].concat(n))},t.getOptionLabel=function(e){return As(t.props,e)},t.getOptionValue=function(e){return Ss(t.props,e)},t.getStyles=function(e,n){var r=t.props.unstyled,a=gs[e](n,r);a.boxSizing="border-box";var o=t.props.styles[e];return o?o(a,n):a},t.getClassNames=function(e,n){var r,a;return null===(r=(a=t.props.classNames)[e])||void 0===r?void 0:r.call(a,n)},t.getElementId=function(e){return"".concat(t.instancePrefix,"-").concat(e)},t.getComponents=function(){return e=t.props,It(It({},Mi),e.components);var e},t.buildCategorizedOptions=function(){return ks(t.props,t.state.selectValue)},t.getCategorizedOptions=function(){return t.props.menuIsOpen?t.buildCategorizedOptions():[]},t.buildFocusableOptions=function(){return js(t.buildCategorizedOptions())},t.getFocusableOptions=function(){return t.props.menuIsOpen?t.buildFocusableOptions():[]},t.ariaOnChange=function(e,n){t.setState({ariaSelection:It({value:e},n)})},t.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),t.focusInput())},t.onMenuMouseMove=function(e){t.blockOptionHover=!1},t.onControlMouseDown=function(e){if(!e.defaultPrevented){var n=t.props.openMenuOnClick;t.state.isFocused?t.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&t.onMenuClose():n&&t.openMenu("first"):(n&&(t.openAfterFocus=!0),t.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()}},t.onDropdownIndicatorMouseDown=function(e){if((!e||"mousedown"!==e.type||0===e.button)&&!t.props.isDisabled){var n=t.props,r=n.isMulti,a=n.menuIsOpen;t.focusInput(),a?(t.setState({inputIsHiddenAfterUpdate:!r}),t.onMenuClose()):t.openMenu("first"),e.preventDefault()}},t.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(t.clearValue(),e.preventDefault(),t.openAfterFocus=!1,"touchend"===e.type?t.focusInput():setTimeout((function(){return t.focusInput()})))},t.onScroll=function(e){"boolean"===typeof t.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Yo(e.target)&&t.props.onMenuClose():"function"===typeof t.props.closeMenuOnScroll&&t.props.closeMenuOnScroll(e)&&t.props.onMenuClose()},t.onCompositionStart=function(){t.isComposing=!0},t.onCompositionEnd=function(){t.isComposing=!1},t.onTouchStart=function(e){var n=e.touches,r=n&&n.item(0);r&&(t.initialTouchX=r.clientX,t.initialTouchY=r.clientY,t.userIsDragging=!1)},t.onTouchMove=function(e){var n=e.touches,r=n&&n.item(0);if(r){var a=Math.abs(r.clientX-t.initialTouchX),o=Math.abs(r.clientY-t.initialTouchY);t.userIsDragging=a>5||o>5}},t.onTouchEnd=function(e){t.userIsDragging||(t.controlRef&&!t.controlRef.contains(e.target)&&t.menuListRef&&!t.menuListRef.contains(e.target)&&t.blurInput(),t.initialTouchX=0,t.initialTouchY=0)},t.onControlTouchEnd=function(e){t.userIsDragging||t.onControlMouseDown(e)},t.onClearIndicatorTouchEnd=function(e){t.userIsDragging||t.onClearIndicatorMouseDown(e)},t.onDropdownIndicatorTouchEnd=function(e){t.userIsDragging||t.onDropdownIndicatorMouseDown(e)},t.handleInputChange=function(e){var n=t.props.inputValue,r=e.currentTarget.value;t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange(r,{action:"input-change",prevInputValue:n}),t.props.menuIsOpen||t.onMenuOpen()},t.onInputFocus=function(e){t.props.onFocus&&t.props.onFocus(e),t.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(t.openAfterFocus||t.props.openMenuOnFocus)&&t.openMenu("first"),t.openAfterFocus=!1},t.onInputBlur=function(e){var n=t.props.inputValue;t.menuListRef&&t.menuListRef.contains(document.activeElement)?t.inputRef.focus():(t.props.onBlur&&t.props.onBlur(e),t.onInputChange("",{action:"input-blur",prevInputValue:n}),t.onMenuClose(),t.setState({focusedValue:null,isFocused:!1}))},t.onOptionHover=function(e){t.blockOptionHover||t.state.focusedOption===e||t.setState({focusedOption:e})},t.shouldHideSelectedOptions=function(){return Fs(t.props)},t.onValueInputFocus=function(e){e.preventDefault(),e.stopPropagation(),t.focus()},t.onKeyDown=function(e){var n=t.props,r=n.isMulti,a=n.backspaceRemovesValue,o=n.escapeClearsValue,i=n.inputValue,s=n.isClearable,l=n.isDisabled,c=n.menuIsOpen,u=n.onKeyDown,d=n.tabSelectsValue,p=n.openMenuOnFocus,f=t.state,m=f.focusedOption,h=f.focusedValue,x=f.selectValue;if(!l&&("function"!==typeof u||(u(e),!e.defaultPrevented))){switch(t.blockOptionHover=!0,e.key){case"ArrowLeft":if(!r||i)return;t.focusValue("previous");break;case"ArrowRight":if(!r||i)return;t.focusValue("next");break;case"Delete":case"Backspace":if(i)return;if(h)t.removeValue(h);else{if(!a)return;r?t.popValue():s&&t.clearValue()}break;case"Tab":if(t.isComposing)return;if(e.shiftKey||!c||!d||!m||p&&t.isOptionSelected(m,x))return;t.selectOption(m);break;case"Enter":if(229===e.keyCode)break;if(c){if(!m)return;if(t.isComposing)return;t.selectOption(m);break}return;case"Escape":c?(t.setState({inputIsHiddenAfterUpdate:!1}),t.onInputChange("",{action:"menu-close",prevInputValue:i}),t.onMenuClose()):s&&o&&t.clearValue();break;case" ":if(i)return;if(!c){t.openMenu("first");break}if(!m)return;t.selectOption(m);break;case"ArrowUp":c?t.focusOption("up"):t.openMenu("last");break;case"ArrowDown":c?t.focusOption("down"):t.openMenu("first");break;case"PageUp":if(!c)return;t.focusOption("pageup");break;case"PageDown":if(!c)return;t.focusOption("pagedown");break;case"Home":if(!c)return;t.focusOption("first");break;case"End":if(!c)return;t.focusOption("last");break;default:return}e.preventDefault()}},t.instancePrefix="react-select-"+(t.props.instanceId||++Ts),t.state.selectValue=Wo(e.value),e.menuIsOpen&&t.state.selectValue.length){var a=t.buildFocusableOptions(),o=a.indexOf(t.state.selectValue[0]);t.state.focusedOption=a[o]}return t}return k(r,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput(),this.props.menuIsOpen&&this.state.focusedOption&&this.menuListRef&&this.focusedOptionRef&&Ko(this.menuListRef,this.focusedOptionRef)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled?this.setState({isFocused:!1},this.onMenuClose):a||n||!e.isDisabled||this.inputRef!==document.activeElement||this.setState({isFocused:!0}),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Ko(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close",prevInputValue:this.props.inputValue}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,a=n.isFocused,o=this.buildFocusableOptions(),i="first"===e?0:o.length-1;if(!this.props.isMulti){var s=o.indexOf(r[0]);s>-1&&(i=s)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:o[i]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var a=n.indexOf(r);r||(a=-1);var o=n.length-1,i=-1;if(n.length){switch(e){case"previous":i=0===a?0:-1===a?o:a-1;break;case"next":a>-1&&a<o&&(i=a+1)}this.setState({inputIsHidden:-1!==i,focusedValue:n[i]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var a=0,o=r.indexOf(n);n||(o=-1),"up"===e?a=o>0?o-1:r.length-1:"down"===e?a=(o+1)%r.length:"pageup"===e?(a=o-t)<0&&(a=0):"pagedown"===e?(a=o+t)>r.length-1&&(a=r.length-1):"last"===e&&(a=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[a],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"===typeof this.props.theme?this.props.theme(vs):It(It({},vs),this.props.theme):vs}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getClassNames,a=this.getValue,o=this.selectOption,i=this.setValue,s=this.props,l=s.isMulti,c=s.isRtl,u=s.options;return{clearValue:e,cx:t,getStyles:n,getClassNames:r,getValue:a,hasValue:this.hasValue(),isMulti:l,isRtl:c,options:u,selectOption:o,selectProps:s,setValue:i,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return Cs(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return Es(this.props,e,t)}},{key:"filterOption",value:function(e,t){return Ps(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"===typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var t=this.props,n=t.isDisabled,r=t.isSearchable,a=t.inputId,o=t.inputValue,i=t.tabIndex,s=t.form,l=t.menuIsOpen,c=t.required,u=this.getComponents().Input,d=this.state,p=d.inputIsHidden,f=d.ariaSelection,m=this.commonProps,h=a||this.getElementId("input"),x=It(It(It({"aria-autocomplete":"list","aria-expanded":l,"aria-haspopup":!0,"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],"aria-required":c,role:"combobox"},l&&{"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox")}),!r&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null===f||void 0===f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return r?e.createElement(u,qn({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:h,innerRef:this.getInputRef,isDisabled:n,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:i,form:s,type:"text",value:o},x)):e.createElement(ns,qn({id:h,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:Uo,onFocus:this.onInputFocus,disabled:n,tabIndex:i,inputMode:"none",form:s,value:""},x))}},{key:"renderPlaceholderOrValue",value:function(){var t=this,n=this.getComponents(),r=n.MultiValue,a=n.MultiValueContainer,o=n.MultiValueLabel,i=n.MultiValueRemove,s=n.SingleValue,l=n.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,f=u.isMulti,m=u.inputValue,h=u.placeholder,x=this.state,g=x.selectValue,b=x.focusedValue,v=x.isFocused;if(!this.hasValue()||!d)return m?null:e.createElement(l,qn({},c,{key:"placeholder",isDisabled:p,isFocused:v,innerProps:{id:this.getElementId("placeholder")}}),h);if(f)return g.map((function(n,s){var l=n===b,u="".concat(t.getOptionLabel(n),"-").concat(t.getOptionValue(n));return e.createElement(r,qn({},c,{components:{Container:a,Label:o,Remove:i},isFocused:l,isDisabled:p,key:u,index:s,removeProps:{onClick:function(){return t.removeValue(n)},onTouchEnd:function(){return t.removeValue(n)},onMouseDown:function(e){e.preventDefault()}},data:n}),t.formatOptionLabel(n,"value"))}));if(m)return null;var y=g[0];return e.createElement(s,qn({},c,{data:y,isDisabled:p}),this.formatOptionLabel(y,"value"))}},{key:"renderClearIndicator",value:function(){var t=this.getComponents().ClearIndicator,n=this.commonProps,r=this.props,a=r.isDisabled,o=r.isLoading,i=this.state.isFocused;if(!this.isClearable()||!t||a||!this.hasValue()||o)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,qn({},n,{innerProps:s,isFocused:i}))}},{key:"renderLoadingIndicator",value:function(){var t=this.getComponents().LoadingIndicator,n=this.commonProps,r=this.props,a=r.isDisabled,o=r.isLoading,i=this.state.isFocused;if(!t||!o)return null;return e.createElement(t,qn({},n,{innerProps:{"aria-hidden":"true"},isDisabled:a,isFocused:i}))}},{key:"renderIndicatorSeparator",value:function(){var t=this.getComponents(),n=t.DropdownIndicator,r=t.IndicatorSeparator;if(!n||!r)return null;var a=this.commonProps,o=this.props.isDisabled,i=this.state.isFocused;return e.createElement(r,qn({},a,{isDisabled:o,isFocused:i}))}},{key:"renderDropdownIndicator",value:function(){var t=this.getComponents().DropdownIndicator;if(!t)return null;var n=this.commonProps,r=this.props.isDisabled,a=this.state.isFocused,o={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return e.createElement(t,qn({},n,{innerProps:o,isDisabled:r,isFocused:a}))}},{key:"renderMenu",value:function(){var t=this,n=this.getComponents(),r=n.Group,a=n.GroupHeading,o=n.Menu,i=n.MenuList,s=n.MenuPortal,l=n.LoadingMessage,c=n.NoOptionsMessage,u=n.Option,d=this.commonProps,p=this.state.focusedOption,f=this.props,m=f.captureMenuScroll,h=f.inputValue,x=f.isLoading,g=f.loadingMessage,b=f.minMenuHeight,v=f.maxMenuHeight,y=f.menuIsOpen,w=f.menuPlacement,k=f.menuPosition,j=f.menuPortalTarget,N=f.menuShouldBlockScroll,A=f.menuShouldScrollIntoView,S=f.noOptionsMessage,C=f.onMenuScrollToTop,E=f.onMenuScrollToBottom;if(!y)return null;var P,F=function(n,r){var a=n.type,o=n.data,i=n.isDisabled,s=n.isSelected,l=n.label,c=n.value,f=p===o,m=i?void 0:function(){return t.onOptionHover(o)},h=i?void 0:function(){return t.selectOption(o)},x="".concat(t.getElementId("option"),"-").concat(r),g={id:x,onClick:h,onMouseMove:m,onMouseOver:m,tabIndex:-1};return e.createElement(u,qn({},d,{innerProps:g,data:o,isDisabled:i,isSelected:s,key:x,label:l,type:a,value:c,isFocused:f,innerRef:f?t.getFocusedOptionRef:void 0}),t.formatOptionLabel(n.data,"menu"))};if(this.hasOptions())P=this.getCategorizedOptions().map((function(n){if("group"===n.type){var o=n.data,i=n.options,s=n.index,l="".concat(t.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return e.createElement(r,qn({},d,{key:l,data:o,options:i,Heading:a,headingProps:{id:c,data:n.data},label:t.formatGroupLabel(n.data)}),n.options.map((function(e){return F(e,"".concat(s,"-").concat(e.index))})))}if("option"===n.type)return F(n,"".concat(n.index))}));else if(x){var T=g({inputValue:h});if(null===T)return null;P=e.createElement(l,d,T)}else{var O=S({inputValue:h});if(null===O)return null;P=e.createElement(c,d,O)}var _={minMenuHeight:b,maxMenuHeight:v,menuPlacement:w,menuPosition:k,menuShouldScrollIntoView:A},D=e.createElement(di,qn({},d,_),(function(n){var r=n.ref,a=n.placerProps,s=a.placement,l=a.maxHeight;return e.createElement(o,qn({},d,_,{innerRef:r,innerProps:{onMouseDown:t.onMenuMouseDown,onMouseMove:t.onMenuMouseMove,id:t.getElementId("listbox")},isLoading:x,placement:s}),e.createElement(ms,{captureEnabled:m,onTopArrive:C,onBottomArrive:E,lockEnabled:N},(function(n){return e.createElement(i,qn({},d,{innerRef:function(e){t.getMenuListRef(e),n(e)},isLoading:x,maxHeight:l,focusedOption:p}),P)})))}));return j||"fixed"===k?e.createElement(s,qn({},d,{appendTo:j,controlElement:this.controlRef,menuPlacement:w,menuPosition:k}),D):D}},{key:"renderFormField",value:function(){var t=this,n=this.props,r=n.delimiter,a=n.isDisabled,o=n.isMulti,i=n.name,s=n.required,l=this.state.selectValue;if(s&&!this.hasValue()&&!a)return e.createElement(xs,{name:i,onFocus:this.onValueInputFocus});if(i&&!a){if(o){if(r){var c=l.map((function(e){return t.getOptionValue(e)})).join(r);return e.createElement("input",{name:i,type:"hidden",value:c})}var u=l.length>0?l.map((function(n,r){return e.createElement("input",{key:"i-".concat(r),name:i,type:"hidden",value:t.getOptionValue(n)})})):e.createElement("input",{name:i,type:"hidden",value:""});return e.createElement("div",null,u)}var d=l[0]?this.getOptionValue(l[0]):"";return e.createElement("input",{name:i,type:"hidden",value:d})}}},{key:"renderLiveRegion",value:function(){var t=this.commonProps,n=this.state,r=n.ariaSelection,a=n.focusedOption,o=n.focusedValue,i=n.isFocused,s=n.selectValue,l=this.getFocusableOptions();return e.createElement(Vi,qn({},t,{id:this.getElementId("live-region"),ariaSelection:r,focusedOption:a,focusedValue:o,isFocused:i,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var t=this.getComponents(),n=t.Control,r=t.IndicatorsContainer,a=t.SelectContainer,o=t.ValueContainer,i=this.props,s=i.className,l=i.id,c=i.isDisabled,u=i.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return e.createElement(a,qn({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),e.createElement(n,qn({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),e.createElement(o,qn({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),e.createElement(r,qn({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,i=t.isFocused,s=t.prevWasFocused,l=e.options,c=e.value,u=e.menuIsOpen,d=e.inputValue,p=e.isMulti,f=Wo(c),m={};if(n&&(c!==n.value||l!==n.options||u!==n.menuIsOpen||d!==n.inputValue)){var h=u?function(e,t){return js(ks(e,t))}(e,f):[],x=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r<t.length)return t[r]}return null}(t,f):null,g=function(e,t){var n=e.focusedOption;return n&&t.indexOf(n)>-1?n:t[0]}(t,h);m={selectValue:f,focusedOption:g,focusedValue:x,clearFocusValueOnUpdate:!1}}var b=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},v=o,y=i&&s;return i&&!y&&(v={value:ai(p,f,f[0]||null),options:f,action:"initial-input-focus"},y=!s),"initial-input-focus"===(null===o||void 0===o?void 0:o.action)&&(v=null),It(It(It({},m),b),{},{prevProps:e,ariaSelection:v,prevWasFocused:y})}}]),r}(e.Component);Os.defaultProps=ys;var _s=(0,e.forwardRef)((function(t,n){var r=function(t){var n=t.defaultInputValue,r=void 0===n?"":n,a=t.defaultMenuIsOpen,o=void 0!==a&&a,i=t.defaultValue,s=void 0===i?null:i,l=t.inputValue,c=t.menuIsOpen,u=t.onChange,d=t.onInputChange,p=t.onMenuClose,f=t.onMenuOpen,m=t.value,h=Gn(t,Ir),x=T((0,e.useState)(void 0!==l?l:r),2),g=x[0],b=x[1],v=T((0,e.useState)(void 0!==c?c:o),2),y=v[0],w=v[1],k=T((0,e.useState)(void 0!==m?m:s),2),j=k[0],N=k[1],A=(0,e.useCallback)((function(e,t){"function"===typeof u&&u(e,t),N(e)}),[u]),S=(0,e.useCallback)((function(e,t){var n;"function"===typeof d&&(n=d(e,t)),b(void 0!==n?n:e)}),[d]),C=(0,e.useCallback)((function(){"function"===typeof f&&f(),w(!0)}),[f]),E=(0,e.useCallback)((function(){"function"===typeof p&&p(),w(!1)}),[p]),P=void 0!==l?l:g,F=void 0!==c?c:y,O=void 0!==m?m:j;return It(It({},h),{},{inputValue:P,menuIsOpen:F,onChange:A,onInputChange:S,onMenuClose:E,onMenuOpen:C,value:O})}(t);return e.createElement(Os,qn({ref:n},r))})),Ds=_s;var Is=n.p+"static/media/like.69a5317174e755b7592c630c9694faf7.svg";var Rs=n.p+"static/media/copy.5e2521a806fbe440f75d830b477308b3.svg";var Ls=n.p+"static/media/facebook.79e7b0daba431f7203de9864bd198477.svg";var Ms=n.p+"static/media/x.5f98073d5cf312300bec58bc94a015fb.svg";var Bs=n.p+"static/media/whatsapp.fd8a9d4d4501f22dfc86b316b48a9adf.svg";var Us=n.p+"static/media/mail.c55322ace2b5f6ec81d47a885cc23c82.svg";var zs=n.p+"static/media/messenger.4e0f812c0c3c1a78657a69651a121f8e.svg";var Hs=n.p+"static/media/instagram.1825be39e2dd443c4dfb6207880c9780.svg",Ws=function(t){var n=t.successfulLaunchModal,r=(t.setSuccessfulLaunchModal,T((0,e.useState)("congrats"),2)),a=r[0],o=r[1],i=Te();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(n.display?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsx)("div",{className:"w-[100%] xphones:w-[350px] md:w-[681px] 2xl:w-[881px] md:min-h-[300px] \n                    h-fit py-6 px-2 phones:px-4 md:p-10 bg-white rounded-md md:rounded-[10px]\n                    shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial mx-auto",children:"congrats"===a?(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("button",{className:" text-[14px] md:text-[26px] font-bold ml-auto ",onClick:function(){i("/home")},children:"Cancel"}),(0,Vt.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Vt.jsx)("img",{src:Is,alt:"Like icon",className:"w-[28px] md:w-[71px] mb-[10px] md:mb-[34px]"}),(0,Vt.jsx)("h5",{className:"mb-2 font-black text-[16px] md:text-[35px] text-center ",children:"Congratulations!!"}),(0,Vt.jsx)("p",{className:" mb-[26px] md:mb-[59px] text-center text-[13px] md:text-[20px] leading-[32px]",children:"You have successfully launched your campaign"}),(0,Vt.jsx)("button",{className:"rounded md:rounded-lg bg-[#000000] py-3 md:py-5 px-4 md:px-8 text-[#FFFFFF] text-sm md:text-2xl font-bold ",onClick:function(){o("share")},children:"Share your campaign"})]})]}):"share"===a?(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("button",{className:"mb-[28px] md:mb-8 text-[14px] md:text-[26px] font-bold ml-auto ",onClick:function(){i("/home")},children:"Cancel"}),(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("h5",{className:"mb-2 font-black text-[16px] md:text-[28px]",children:"Share to potential donors"}),(0,Vt.jsx)("p",{className:" mb-8 md:mb-[36px] text-xs md:text-[18px] leading-6 md:leading-[32px] font-bold ",children:"Encourage support by regularly sharing your campaign"}),(0,Vt.jsxs)("div",{className:"flex items-start gap-3 mb-4 md:mb-10",children:[(0,Vt.jsx)("button",{className:"",onClick:function(){var e="https://www.palbucks.co/detailed/".concat(n.crowdfundData.id);navigator.clipboard.writeText(e).then((function(){console.log("Text copied to clipboard:",e),alert("Text copied to clipboard!")})).catch((function(e){console.error("Unable to copy text:",e),alert("Failed to copy text to clipboard. Please try again.")}))},children:(0,Vt.jsx)("img",{src:Rs,alt:"copy icon",className:"w-[33px] md:w-[48px] h-full "})}),(0,Vt.jsxs)("div",{className:"flex flex-col relative -top-[2px]",children:[(0,Vt.jsx)("span",{className:"text-[13px] md:text-[18px] font-bold",children:"Copy link"}),(0,Vt.jsx)("span",{className:"text-[12px] md:text-sm ",children:"https://www.palbucks.co/detailed/".concat(n.crowdfundData.id)})]})]}),(0,Vt.jsx)("div",{className:" w-full md:w-fit mb-11 bg-[#35FAA01A] rounded-[10px] py-[10px] md:py-4 px-3 md:pl-6 md:pr-[93px] mx-auto ",children:(0,Vt.jsx)("p",{className:"text-[12px] xphones:text-[13px] md:text-[18px]",children:"Share to your social media using the links below"})}),(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row gap-[24px] md:gap-[30%] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-6 md:gap-11",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent("https://www.palbucks.co/detailed/".concat(n.crowdfundData.id)))},children:[(0,Vt.jsx)("img",{src:Ls,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"Facebook"})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){var e="Check out this link: "+"https://www.palbucks.co/detailed/".concat(n.crowdfundData.id);window.open("https://twitter.com/intent/tweet?text="+encodeURIComponent(e))},children:[(0,Vt.jsx)("img",{src:Ms,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"X"})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){window.open("fb-messenger://share/?link="+encodeURIComponent("https://www.palbucks.co/detailed/".concat(n.crowdfundData.id)))},children:[(0,Vt.jsx)("img",{src:zs,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"Messenger"})]})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-6 md:gap-11",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){var e="Check out this link: "+"https://www.palbucks.co/detailed/".concat(n.crowdfundData.id),t=encodeURIComponent(e),r=encodeURIComponent("https://palbucks-bucket.s3.amazonaws.com/crowdfunding/banners/66a4b9eff63f4605807b0f081aa07caf_Screenshot_from_2024-04-16_04-39-23.png");window.open("https://wa.me/?text=".concat(t,"&attachment=").concat(r))},children:[(0,Vt.jsx)("img",{src:Bs,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"Whatsapp"})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){window.open("https://www.facebook.com/sharer/sharer.php?u="+encodeURIComponent("https://www.palbucks.co/detailed/".concat(n.crowdfundData.id)))},children:[(0,Vt.jsx)("img",{src:Hs,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"Instagram"})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-3 ",onClick:function(){var e="Check out this link: "+"https://www.palbucks.co/detailed/".concat(n.crowdfundData.id);window.location.href="mailto:?subject="+encodeURIComponent("Check out this link")+"&body="+encodeURIComponent(e)},children:[(0,Vt.jsx)("img",{src:Us,alt:"",className:"w-[30px]"}),(0,Vt.jsx)("span",{className:"text-[18px] font-bold ",children:"Email"})]})]})]})]})]}):null})})]})})},Vs=[{value:"medical",label:"Medical",icon:p},{value:"faith",label:"Faith",icon:on},{value:"environment",label:"Environment",icon:d},{value:"travel",label:"Travel",icon:un},{value:"family",label:"Family",icon:sn},{value:"wish",label:"Wish",icon:dn},{value:"business",label:"Business",icon:nn},{value:"animal",label:"Animals",icon:m},{value:"charity",label:"Charity",icon:rn},{value:"community",label:"Community",icon:an},{value:"creative",label:"Creative",icon:cn},{value:"sports",label:"Sports",icon:ln},{value:"others",label:"Others",icon:cn}];var Qs=function(){var t=(0,vt.useMediaQuery)({query:"(max-width: 768px)"}),n=bt(),r=(Te(),_e()),a=T((0,e.useState)(!1),2),o=a[0],s=a[1],c=T((0,e.useState)(!1),2),u=c[0],d=c[1],p=T((0,e.useState)("new"),2),f=p[0],m=p[1];(0,e.useEffect)((function(){r.id?m("edit"):m("new")}),[]);var h=r.id?r.id:null,x=lt((function(e){return e.crowdfundEvents})),g=T((0,e.useState)(x.filter((function(e){return e.id==h}))[0]),2),b=g[0],v=(g[1],T((0,e.useState)({}),2)),y=v[0],w=v[1],k=new Date,j=new Date;j.setDate(k.getDate()+90);var N=function(e){var t=e.getFullYear(),n=(e.getMonth()+1).toString(),r=e.getDate().toString();return 1===n.length&&(n="0"+n),1===r.length&&(r="0"+r),"".concat(t,"-").concat(n,"-").concat(r)},A=N(j),S=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,C=T((0,e.useState)({banner:null,date_posted:k.toISOString(),end_date:"",organiser:{pk:S.pk,first_name:S.first_name,last_name:S.last_name,email:S.email,username:S.username},title:"",description:"",start_date:k.toISOString(),target_price:0,amt_raised:0,tags:"",location:S.location?S.location:""}),2),E=C[0],P=C[1],F=function(e){if("new"==f)if("end_date"===e.target.name){console.log(e.target.value);var t=new Date(e.target.value).toISOString();console.log(t),P((function(e){return It(It({},e),{},{end_date:t})}))}else P((function(t){return It(It({},t),{},_t({},e.target.name,e.target.value))}));else"edit"==f&&w((function(t){return It(It({},t),{},_t({},e.target.name,e.target.value))}))},O=function(){var e=l(i().mark((function e(){var t,r,a,o,l,c,u,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s(!0),console.log(E),t=new FormData,r=0,a=Object.entries(E);r<a.length;r++)o=T(a[r],2),l=o[0],c=o[1],t.append(l,c);if(""!==E.title){e.next=8;break}return alert("Please enter a title for your crowdfund"),s(!1),e.abrupt("return");case 8:if(""!==E.tags){e.next=12;break}return alert("Please select a category for your crowdfund"),s(!1),e.abrupt("return");case 12:if(!(E.target_price<=0)){e.next=16;break}return alert("Please enter a valid target price for your crowdfund"),s(!1),e.abrupt("return");case 16:if(!(E.target_price>9999999)){e.next=20;break}return alert("You've exceeded the maximum target amount"),s(!1),e.abrupt("return");case 20:if(""!==E.end_date){e.next=24;break}return alert("Please select an end date for your crowdfund"),s(!1),e.abrupt("return");case 24:if(null!==E.banner){e.next=28;break}return alert("Please upload a banner for your crowdfund"),s(!1),e.abrupt("return");case 28:return u=localStorage.getItem("access_token"),e.next=31,fetch("".concat(Fr,"/funding/api/"),{method:"POST",body:t,headers:{Authorization:"Bearer ".concat(u)}});case 31:return d=e.sent,e.next=34,d.json();case 34:p=e.sent,console.log(p),201===d.status?(console.log("success"),n(wt(p)),B({display:!0,crowdfundData:p})):s(!1),s(!1);case 38:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),_=T((0,e.useState)(null),2),D=_[0],I=_[1],R=function(){var e=l(i().mark((function e(){var t,r,a,o,l,c,u,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(s(!0),t=localStorage.getItem("access_token"),console.log(y),r=new FormData,a=0,o=Object.entries(y);a<o.length;a++)l=T(o[a],2),c=l[0],u=l[1],r.append(c,u);return e.next=7,fetch("".concat(Fr,"/funding/api/").concat(h,"/"),{method:"PATCH",body:r,headers:{Authorization:"Bearer ".concat(t)}});case 7:return d=e.sent,e.prev=8,e.next=11,d.json();case 11:p=e.sent,console.log(p),p.success?(console.log("success"),n(Et(It({id:h},y))),B({display:!0,crowdfundData:p})):alert("An error occurred, please try again later."),e.next=19;break;case 16:e.prev=16,e.t0=e.catch(8),console.error("Error updating crowdfund:",e.t0);case 19:return e.prev=19,s(!1),e.finish(19);case 22:case"end":return e.stop()}}),e,null,[[8,16,19,22]])})));return function(){return e.apply(this,arguments)}}(),L=T((0,e.useState)({display:!1,crowdfundData:{id:10}}),2),M=L[0],B=L[1],U=T((0,e.useState)({crowdfundingdetails:!0,amountdetails:!0,co_organisers:!0,location:!0,enddate:!0}),2),z=U[0],H=U[1],W=function(e){var t=e.target.id;console.log(t);var n=z[t];console.log(e.target.id),H(It(It({},z),{},_t({},t,!n)))},V=T((0,e.useState)([]),2),Q=V[0],Y=V[1];return(0,e.useEffect)((function(){console.log(Q)}),[Q]),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-6 lg:px-10 pt-6 md:pt-10 pb-16 md:pb-20 mt-[90px] md:mt-[100px] w-full h-full font-arial ",children:[(0,Vt.jsx)("h1",{className:"font-black text-xl phones:text-xl md:text-3xl leading-7 tracking-[0.5px] mb-8 md:mb-[15px] font-merriweather ",children:"Setup your crowdfunding campaign"}),(0,Vt.jsx)("p",{className:"hidden md:block text-lg tracking-[0.8px] mb-14 ",children:"Organising your campaign take less than 2 minutes"}),(0,Vt.jsxs)("div",{className:"max-w-full 2xl:max-w-[960px] 4xl:max-w-[1000px] ",children:[(0,Vt.jsxs)("div",{className:"bg-white rounded-[4px] mb-[59px] ",children:[(0,Vt.jsx)("div",{className:"text-center py-3 md:py-6 border-b-2 border-[#e5e2e2] ",children:(0,Vt.jsx)("h3",{className:"font-black text-xl ",children:"Upload campaign image"})}),(0,Vt.jsxs)("div",{className:"p-3 md:p-7 flex flex-col items-center relative ",children:[(0,Vt.jsx)(Cr,{formdata:E,setformdata:P,crowdfundMode:f,eventdetails:b,params:r}),(0,Vt.jsxs)("div",{className:" ".concat("edit"==f?"hidden":"","  ").concat(E.banner?"":"mt-4 md:mt-5"," flex gap-3 items-center py-1 "),children:[(0,Vt.jsx)("img",{src:E.banner?Zt:Jt,alt:"info icon"}),(0,Vt.jsx)("p",{className:" ".concat(E.banner?"text-[#37BCF7]":"text-[#8E8E93]"," text-sm md:text-base"),children:E.banner?"Image uploaded successfully":"Click icon to upload campaign image"})]})]})]}),(0,Vt.jsxs)("div",{className:"bg-[#FFFFFF] rounded-t-[4px] rounded-b-[10px] mb-6 md:mb-[59px] ",children:[(0,Vt.jsxs)("div",{id:"crowdfundingdetails",className:" p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:W,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] md:leading-[22px] tracking-[0.5px] font-black pointer-events-none ",children:"Enter crowdfunding details"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(z.crowdfundingdetails?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(z.crowdfundingdetails?"block":"hidden"," p-3 md:p-[30px] bg-[#FFFFFF]"),children:[(0,Vt.jsx)("label",{htmlFor:"title",className:"block text-sm md:text-xl leading-[20px] tracking-[1px] font-bold mb-3 md:mb-4 ",children:"Title*"}),(0,Vt.jsx)("input",{type:"text",id:"title",name:"title",defaultValue:"edit"==f?b.title:null,className:"px-[10px] md:px-5 py-3 mb-3 md:mb-5 w-full md:h-[56px] border-[1px] bg-white border-[#8E8E93] rounded-[4px] \n                            hover:border-[#37BCF7] hover:border-2 active:border-2 hover:bg-[#F9F9F9] \n                            outline-[#37BCF7] active:bg-[#FFFFFF] focus:caret-[#2CA9F2]\n                            text-sm md:text-base\n                            ".concat("edit"==f?"text-[#888888]":"","    "),readOnly:"edit"===f,placeholder:"What is the title of your crowdfund?",onChange:F}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center mb-5 md:mb-[53px] ",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-[15px] md:w-[20px] "}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"Limited to 50 characters"})]}),(0,Vt.jsx)("label",{htmlFor:"category",className:" block text-sm md:text-xl leading-[20px] tracking-[1px] font-bold mb-3 md:mb-4  ",children:"Category*"}),(0,Vt.jsx)("div",{className:"w-full max-w-[470px] mb-5 md:mb-[53px] ",children:(0,Vt.jsx)(Ds,{options:Vs,placeholder:"Select your category",onChange:function(e){P((function(t){return It(It({},t),{},{tags:e.value})})),I(e)},value:"edit"==f?Vs.find((function(e){return e.value===b.tags})):D,isDisabled:"edit"===f,components:{DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:$t,alt:"down arrow",className:"w-[15px] h-[14px] "})},IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:"50px",border:(t.isFocused,"1px solid gray"),boxShadow:(t.isFocused,0),"&:hover":{border:(t.isFocused,"1px solid gray")},cursor:"pointer",caretColor:"transparent",paddingRight:"20px",paddingLeft:"-10px"})}},formatOptionLabel:function(e){return(0,Vt.jsxs)("div",{className:"flex items-center gap-2 ",children:[(0,Vt.jsx)("img",{src:e.icon,alt:"category icon",className:"w-4 h-4"}),(0,Vt.jsx)("span",{className:"text-sm font-black pt-1",children:e.label})]})}})}),(0,Vt.jsx)("label",{htmlFor:"description",className:"block text-sm md:text-xl leading-[20px] tracking-[1px] font-bold mb-3 md:mb-4  ",children:"Description*"}),(0,Vt.jsx)("textarea",{name:"description",id:"description",rows:"10",defaultValue:"edit"==f?b.description:null,className:" mb-[10px] md:mb-5 w-full p-[10px] md:p-5 text-sm md:text-base outline-none border-[1px] border-[#8E8E93] focus:border-[#37BCF7] focus:border-2 ",placeholder:"Tell us a bit more about your crowdfund in other to make people understand your reason for your crowdfund. A story can also go a long way.",onChange:F,maxLength:"1500"}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center mb-5 md:mb-[53px] ",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-[15px] md:w-[20px] "}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"Limited to 1500 characters"})]})]})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] ",children:[(0,Vt.jsxs)("div",{className:"bg-[#37BCF7] rounded-t md:rounded-t-none py-[15px] md:py-5 px-[15px] md:pl-[30px] md:pr-[10px] flex gap-2 md:gap-5 items-center text-white  ",children:[(0,Vt.jsx)("img",{src:Kt,alt:"info icon",className:"w-4 h-4 md:w-6 md:h-6"}),(0,Vt.jsx)("h3",{className:"text-sm md:text-[18px] leading-[20px] tracking-[0.5px] font-black",children:t?"Click to view an important information":"At the end of your crowdfund, you will get 98% of total raised."})]}),(0,Vt.jsxs)("div",{id:"amountdetails",className:" p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:W,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] md:leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Enter amount details"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(z.amountdetails?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(z.amountdetails?"block":"hidden"," p-3 md:p-[30px] "),children:[(0,Vt.jsx)("label",{htmlFor:"target_price",className:"block text-sm md:text-xl leading-[20px] tracking-[1px] font-bold mb-3 md:mb-4  ",children:"Target amount*"}),(0,Vt.jsx)("div",{className:"flex flex-col md:flex-row gap-5 ",children:(0,Vt.jsxs)("div",{className:"flex flex-col w-full md:w-4/6 gap-[10px] md:gap-5 ",children:[(0,Vt.jsx)("input",{type:"number",defaultValue:"edit"==f?b.target_price:null,className:"md:h-[56px] w-full rounded text-sm md:text-base px-[10px] md:px-5 py-3 outline-[#37BCF7] outline-2 focus:caret-[#37BCF7]\n                                    border-[1px] border-[#8E8E93] hover:border-[#37BCF7] hover:border-2\n                                    ".concat(E.target_price>9999999?"border-[#FD6150] outline-[#FD6150] focus:border-[#FD6150] focus:caret-[#FD6150]":"","\n                                    ").concat("edit"==f?"text-[#888888]":"","    "),readOnly:"edit"===f,min:"100",max:"9999999",maxLength:"6",placeholder:"How much do you want to raise(amount is in $)?",onChange:F,onWheel:function(e){e.target.blur(),e.stopPropagation(),setTimeout((function(){e.target.focus()}),0)},id:"target_price",name:"target_price"}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon"}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-base leading-5 tracking-[0.1px]",children:"$100 - $9999999 "})]})]})})]})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] ",children:[(0,Vt.jsxs)("div",{id:"co_organisers",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:W,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Add Co-organisers (Optional)"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(z.co_organisers?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(z.co_organisers?"block":"hidden"," p-3 md:p-[30px]"),children:[(0,Vt.jsxs)("div",{className:"flex gap-5 lg:gap-10 items-center mb-[10px] md:mb-5",children:[Q.length>0?Q.map((function(e,t){return(0,Vt.jsxs)("button",{className:"flex justify-between rounded-r-[14px] md:rounded-r-[24px] rounded-l-[5px] md:rounded-l-lg py-[2px] md:py-1 px-[10px] md:px-4 items-center h-[34px] md:h-14 min-w-[106px] md:min-w-[183px] border-[1px] border-[#8E8E93] bg-[#F9F9F9]   ",children:[(0,Vt.jsx)("p",{className:"text-sm md:text-lg font-black",children:e.username}),(0,Vt.jsx)("img",{src:tn,alt:"remove icon",className:"w-[18px] md:w-6 ",onClick:function(){Y(Q.filter((function(t){return t.pk!==e.pk}))),P(It(It({},E),{},{co_organisers:E.co_organisers.filter((function(t){return t!==e.pk}))}))}})]},t)})):null,(0,Vt.jsxs)("button",{className:" ".concat(Q.length>1?"hidden":"flex"," \n                                justify-between rounded-r-[14px] md:rounded-r-[24px] rounded-l-[5px] md:rounded-l-lg\n                                py-1 px-[10px] md:px-4 items-center h-[35px] md:h-14 w-[145px] md:w-[294px] border-[1px] border-[#8E8E93] bg-[#F9F9F9]"),onClick:function(){d(!0)},children:[(0,Vt.jsx)("span",{className:"text-xs md:text-base",children:"Add co-organiser"}),(0,Vt.jsx)("img",{src:en,alt:"plus icon"})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-[15px] md:w-[20px] "}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"A maximum of two(2) users can be added"})]})]})]}),(0,Vt.jsx)(Or,{displaySearchCoOrganiser:u,setdisplaySearchCoOrganiser:d,formdata:E,setformdata:P,selected:Q,setSelected:Y}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] ",children:[(0,Vt.jsxs)("div",{id:"location",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:W,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Location"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(z.location?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(z.location?"block":"hidden"," p-3 md:p-[30px]"),children:[(0,Vt.jsxs)("button",{className:"flex justify-between mb-[10px] md:mb-5 rounded-r-[14px] md:rounded-r-[24px] rounded-l-[5px] md:rounded-l-lg py-[2px] md:py-1 px-[10px] md:px-4 items-center h-[34px] md:h-14 min-w-[106px] md:min-w-[183px] border-[1px] border-[#8E8E93] bg-[#F9F9F9]   ",children:[(0,Vt.jsx)("span",{className:"text-xs md:text-base ".concat("edit"==f?"text-[#888888]":""," "),children:S.location&&S.location}),(0,Vt.jsx)("img",{src:tn,alt:"remove icon",className:"w-[18px] md:w-6 "})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-[15px] md:w-5 "}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"By default the location you added in your settings will be used"})]})]})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-[47px] md:mb-[59px] ",children:[(0,Vt.jsxs)("div",{id:"enddate",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:W,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"End date*"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(z.enddate?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(z.enddate?"block":"hidden"," p-3 md:p-[30px]"),children:[(0,Vt.jsx)("input",{type:"date",name:"end_date",id:"end_date",defaultValue:"edit"==f?new Date(b.end_date).toISOString().split("T")[0]:null,className:"md:h-[56px] w-[250px] md:w-[393px] rounded px-[8px] md:px-5 py-[10px] outline-[#37BCF7] outline-2 \n                            focus:caret-[#37BCF7] border-[1px] border-[#8E8E93] hover:border-[#37BCF7] hover:border-2 mr-5 mb-5\n                            ".concat("edit"==f?"text-[#888888]":"","    "),readOnly:"edit"===f,min:N(k),max:A,onChange:F}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-[15px] md:w-5 "}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"Maximum period for a campaign is 90days"})]})]})]}),(0,Vt.jsxs)("button",{className:"bg-[#37BCF7] mb-3 md:mb-4 mx-auto px-5 py-[10.4px] min-w-full phones:min-w-[300px] w-fit md:w-1/2 md:min-h-[48px] rounded md:rounded-[10px] text-white font-bold text-base md:text-[18px] block  ",onClick:"edit"==f?R:O,children:[(0,Vt.jsx)("div",{className:" ".concat(o?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(o?"hidden":"block"," "),children:"new"==f?"All done, begin your crowdfund":"Make changes to campaign"})]}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] mx-auto px-5 py-[10.4px] min-w-full phones:min-w-[250px] w-fit md:w-1/2 md:h-[48px] rounded md:rounded-[10px] hover:bg-white font-bold text-base md:text-[18px] block ",children:"new"==f?"Not now, save for later":"Go back"}),(0,Vt.jsx)(Ws,{successfulLaunchModal:M,setSuccessfulLaunchModal:B})]})]})};n.p;n.p;var Ys=n.p+"static/media/appLogo.93065784d93d712c28ed495b921c773f.svg";var qs=n.p+"static/media/Hamburger Menu.1b479dbca56a16df05cb9181a2399490.svg";var Gs=n.p+"static/media/arrowright2.b47aa22f4553f8b2903a3b9466d7dffa.svg";var Xs=n.p+"static/media/Out.8e8895b6507a88144a990eb52b57f669.svg";var Js=function(e){var t=lt((function(e){return e.newNotificationsAlert})),n=bt();return(0,Vt.jsxs)("div",{className:"block relative",onClick:function(){n({type:"removeNotificationAlert"})},children:[(0,Vt.jsx)("div",{className:" ".concat(t?"block":"hidden"," w-[10px] h-[10px] bg-[#35FAA0] rounded-full absolute right-0 ")}),(0,Vt.jsxs)("svg",{onClick:e.onClick,width:"22",height:"30",viewBox:"0 0 22 30",fill:e.active?"#37BCF7":"none",xmlns:"http://www.w3.org/2000/svg",id:"notificationsicon",className:" cursor-pointer block w-[18px] md:w-[21px]",alt:"notifications icon",children:[(0,Vt.jsx)("path",{d:"M11.0308 3.66797C6.90428 3.66797 3.55069 7.02156 3.55069 11.1481V14.751C3.55069 15.5115 3.22655 16.6709 2.84007 17.3192L1.40638 19.7004C0.52123 21.1715 1.13211 22.8047 2.7528 23.3532C8.12604 25.1484 13.9231 25.1484 19.2964 23.3532C20.8049 22.8545 21.4656 21.0718 20.6428 19.7004L19.2091 17.3192C18.8351 16.6709 18.511 15.5115 18.511 14.751V11.1481C18.511 7.03403 15.1449 3.66797 11.0308 3.66797Z",stroke:e.active?"none":"black",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round"}),(0,Vt.jsx)("path",{d:"M13.3315 4.02896C11.8239 3.59959 10.2264 3.59959 8.71875 4.02896C9.08029 3.10641 9.97791 2.45813 11.0251 2.45813C12.0723 2.45813 12.97 3.10641 13.3315 4.02896V4.02896Z",stroke:e.active?"none":"black",strokeWidth:"3",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"}),(0,Vt.jsx)("path",{d:"M14.7702 23.8019C14.7702 25.8589 13.0871 27.5419 11.0301 27.5419C10.0078 27.5419 9.06034 27.1181 8.38713 26.4449C7.68668 25.7434 7.29228 24.7932 7.29004 23.8019",stroke:e.active?"none":"black",strokeWidth:"3",strokeMiterlimit:"10"})]})]})};var Ks=function(e){return(0,Vt.jsxs)("svg",{width:"48",height:"14",viewBox:"0 0 48 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:"hidden md:block w-[35px] h-[10px] cursor-pointer",onClick:e.onClick,children:[(0,Vt.jsx)("circle",{cx:"7",cy:"7",r:"7",fill:e.active?"#37BCF7":"#525252"}),(0,Vt.jsx)("circle",{cx:"24",cy:"7",r:"7",fill:e.active?"#37BCF7":"#525252"}),(0,Vt.jsx)("circle",{cx:"41",cy:"7",r:"7",fill:e.active?"#37BCF7":"#525252"})]})};var Zs=function(e){var t=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),n=bt();return(0,Vt.jsx)("input",{type:"search",className:" ".concat(e.onDonorPage?"w-[100%] xphones:w-[80%] md:w-[320px] brkpoint:w-[300px] lg:w-[400px] xl:w-[600px] ":"w-[100%] xphones:w-[80%] md:w-[320px] brkpoint:w-[300px] lg:w-[345px] xl:w-[480px]","  h-[30px] phones:h-[40px] xl:h-[44px] \n            text-base pl-10 md:pl-12 lg:pl-14 placeholder-[#7A7575] bg-[length:20px] md:bg-[length:24px] bg-[image:url('./images/search.svg')] bg-[left_calc(5%)_top_calc(48%)]\n            bg-no-repeat rounded-3xl shadow-[0px_0px_16px_rgba(0,0,0,0.04)] md:shadow-none font-arial font-normal \n            focus:caret-[#2CA9F2] focus:border-2 focus:border-[#37BCF7]  "),placeholder:t?"Search":"Search for campaign or user",onChange:function(e){n(function(e){return{type:"addSearchValue",payload:e}}(e.target.value))}})};function $s(){return $s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$s.apply(this,arguments)}function el(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}function tl(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}var nl=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],rl=["aria-current","caseSensitive","className","end","style","to","children"];function al(t){var n=t.basename,r=t.children,a=t.window,o=e.useRef();null==o.current&&(o.current=function(e){return void 0===e&&(e={}),V((function(e,t){var n=e.location;return U("",{pathname:n.pathname,search:n.search,hash:n.hash},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"===typeof t?t:z(t)}),null,e)}({window:a,v5Compat:!0}));var i=o.current,s=T(e.useState({action:i.action,location:i.location}),2),l=s[0],c=s[1];return e.useLayoutEffect((function(){return i.listen(c)}),[i]),e.createElement(qe,{basename:n,children:r,location:l.location,navigationType:l.action,navigator:i})}var ol=e.forwardRef((function(t,n){var r=t.onClick,a=t.relative,o=t.reloadDocument,i=t.replace,s=t.state,l=t.target,c=t.to,u=t.preventScrollReset,d=el(t,nl),p=function(t,n){var r=(void 0===n?{}:n).relative;Pe()||M(!1);var a=e.useContext(Ae),o=a.basename,i=a.navigator,s=De(t,{relative:r}),l=s.hash,c=s.pathname,u=s.search,d=c;return"/"!==o&&(d="/"===c?o:oe([o,c])),i.createHref({pathname:d,search:u,hash:l})}(c,{relative:a}),f=function(t,n){var r=void 0===n?{}:n,a=r.target,o=r.replace,i=r.state,s=r.preventScrollReset,l=r.relative,c=Te(),u=Fe(),d=De(t,{relative:l});return e.useCallback((function(e){if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(e,a)){e.preventDefault();var n=void 0!==o?o:z(u)===z(d);c(t,{replace:n,state:i,preventScrollReset:s,relative:l})}}),[u,c,d,o,i,a,t,s,l])}(c,{replace:i,state:s,target:l,preventScrollReset:u,relative:a});return e.createElement("a",$s({},d,{href:p,onClick:o?r:function(e){r&&r(e),e.defaultPrevented||f(e)},ref:n,target:l}))}));var il=e.forwardRef((function(t,n){var r=t["aria-current"],a=void 0===r?"page":r,o=t.caseSensitive,i=void 0!==o&&o,s=t.className,l=void 0===s?"":s,c=t.end,u=void 0!==c&&c,d=t.style,p=t.to,f=t.children,m=el(t,rl),h=De(p,{relative:m.relative}),x=Fe(),g=e.useContext(je),b=e.useContext(Ae).navigator,v=b.encodeLocation?b.encodeLocation(h).pathname:h.pathname,y=x.pathname,w=g&&g.navigation&&g.navigation.location?g.navigation.location.pathname:null;i||(y=y.toLowerCase(),w=w?w.toLowerCase():null,v=v.toLowerCase());var k,j=y===v||!u&&y.startsWith(v)&&"/"===y.charAt(v.length),N=null!=w&&(w===v||!u&&w.startsWith(v)&&"/"===w.charAt(v.length)),A=j?a:void 0;k="function"===typeof l?l({isActive:j,isPending:N}):[l,j?"active":null,N?"pending":null].filter(Boolean).join(" ");var S="function"===typeof d?d({isActive:j,isPending:N}):d;return e.createElement(ol,$s({},m,{"aria-current":A,className:k,ref:n,style:S,to:p}),"function"===typeof f?f({isActive:j,isPending:N}):f)}));var sl,ll;function cl(t){var n=e.useRef(tl(t)),r=Fe(),a=e.useMemo((function(){return function(e,t){var n,r=tl(e),a=D(t.keys());try{var o=function(){var e=n.value;r.has(e)||t.getAll(e).forEach((function(t){r.append(e,t)}))};for(a.s();!(n=a.n()).done;)o()}catch(i){a.e(i)}finally{a.f()}return r}(r.search,n.current)}),[r.search]),o=Te(),i=e.useCallback((function(e,t){var n=tl("function"===typeof e?e(a):e);o("?"+n,t)}),[o,a]);return[a,i]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmitImpl="useSubmitImpl",e.UseFetcher="useFetcher"})(sl||(sl={})),function(e){e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(ll||(ll={}));var ul=function(t){var n=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,r=T((0,e.useState)(!1),2),a=r[0],o=r[1],i=lt((function(e){return e.onprofilepage})),s=lt((function(e){return e.onnotificationspage})),l=lt((function(e){return e.sidebarstate})),c=bt(),u=lt((function(e){return e.sidebarslid})),d=Te(),p=Fe(),f=T((0,e.useState)(!1),2),m=(f[0],f[1]);return(0,e.useEffect)((function(){t.onDonorPage&&m(!0)}),[]),(0,e.useEffect)((function(){}),[]),(0,Vt.jsxs)("div",{className:"py-[10px] px-2 phones:px-5  md:px-10 h-[90px] md:h-[100px] fixed top-0 right-0\n        ".concat(!1===t.sidebar?"left-0":u?"left-0 brkpoint:left-[100px]":"left-0 brkpoint:left-[250px] lg:left-[280px] xl:left-[320px]"," z-30 bg-[#F9F9F9] \n        shadow-[0px_0px_16px_rgba(0,0,0,0.04)] flex items-center justify-between font-arial\n        \n        "),children:[(0,Vt.jsxs)("div",{className:"flex gap-[15px] max-w-[72%] phones:max-w-[75%] xphones:max-w-fit ",children:[(0,Vt.jsx)("img",{src:qs,alt:"menu icon",className:"block brkpoint:hidden w-[20px] phones:w-[24px]",onClick:function(){0==l&&c({type:"open sidebar"})}}),(0,Vt.jsx)(Zs,{onDonorPage:t.onDonorPage})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-3 xphones:gap-[15px] md:gap-4 lg:gap-8",children:[(0,Vt.jsx)(Js,{onClick:function(){"/notificationspage"!==p.pathname&&(d("/notificationspage"),c({type:"set notificationspage active"}))},active:!!s}),(0,Vt.jsxs)("div",{className:" flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:null!==n&&void 0!==n&&n.dp?n.dp:Ut,onClick:function(){"/profilepage"!==p.pathname&&(d("/profilepage"),c({type:"set profilepage active"}))},alt:"user avatar",className:" ".concat(i?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==n&&void 0!==n&&n.first_name?n.first_name:""," ",null!==n&&void 0!==n&&n.last_name?n.last_name:""]})]}),(0,Vt.jsx)(Ks,{active:a,onClick:function(){o(!a)}})]}),(0,Vt.jsx)("div",{className:" ".concat(a?"block":"hidden","  bg-white absolute right-10 top-[80px] w-[300px] xl:w-[369px] "),children:(0,Vt.jsxs)("ul",{className:"w-full py-[10px] px-[15px] flex flex-col",children:[(0,Vt.jsx)(ol,{to:"/howitworks",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"How it works"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})}),(0,Vt.jsx)(ol,{to:"/helpcenter",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] mb-[10px] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"Help center"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})}),(0,Vt.jsx)("hr",{className:"border-t-[1px] border-[#D8D8D8] w-full mb-5 "}),(0,Vt.jsx)(ol,{to:"/termsofuse",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"Terms of use"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})}),(0,Vt.jsx)(ol,{to:"/privacypolicy",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"Privacy policy"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] mb-[10px] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"Community guidelines"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] mb-[10px] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"AML policy"}),(0,Vt.jsx)("img",{src:Xs,alt:"",className:"w-[22px] h-[22px]"})]})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",children:(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] mb-[10px] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"KYC guidelines"}),(0,Vt.jsx)("img",{src:Xs,alt:"",className:"w-[22px] h-[22px]"})]})}),(0,Vt.jsx)("hr",{className:"border-t-[1px] border-[#D8D8D8] w-full mb-5 "}),(0,Vt.jsxs)("li",{className:"flex justify-between w-full bg-white cursor-pointer py-[15px] pl-[15px] pr-[22px] hover:bg-[#37BCF71A] ",children:[(0,Vt.jsx)("span",{className:"text-[17px] leading-4",children:"Advertisements"}),(0,Vt.jsx)("img",{src:Gs,alt:"",className:"w-[7px] h-[15px]"})]})]})})]})};var dl=n.p+"static/media/palbucks2.ed4d9a78cda540364119bdc65ef2f3c3.svg";var pl=n.p+"static/media/Enlarge icon.7cf415d305b5577adbd804c92aa57364.svg";var fl=n.p+"static/media/hamburger menu.d9858b9c7e92426492836444d184416c.svg";var ml=n.p+"static/media/home.079f84c146144b87596d91a5f3459d20.svg";var hl=n.p+"static/media/homeicon.f91d92e648cbbf7c77290cdf2186f3ae.svg";var xl=n.p+"static/media/crowdfundicon.3a26436c6783b49473ad2ff36942c449.svg";var gl=n.p+"static/media/crowdfundicon2.8539d1b7c86294bf1912147141dc32cb.svg";var bl=n.p+"static/media/walleticon2.6d3e71d2c708e517c2c5308db750d59e.svg";var vl=n.p+"static/media/walleticon.18d752b61e472bcd2ef78ca203d35e5a.svg";var yl=n.p+"static/media/settingsicon.cc630d3e75604f95a4f5e4f34403ec84.svg";var wl=n.p+"static/media/settingsicon2.5320bbb10f36616abe5a5b720881286b.svg";n.p;var kl=n.p+"static/media/logout.e8be471d862b4fbc02e6fd33bbc3d402.svg";var jl=n.p+"static/media/arrowright.8d64608289327bf50bafc1024ab313a8.svg";var Nl=n.p+"static/media/arrowwhite.2d835d27edc1c55004d1b7c059c9910d.svg";var Al=n.p+"static/media/Front arrow icon.9d86867363fad02fb624de02cecc8fc3.svg";var Sl=function(){var t=Te(),n=(lt((function(e){return e.authReducer.isLoading})),lt((function(e){return e.sidebarslid}))),r=lt((function(e){return e.sidebarstate})),a=bt(),o=lt((function(e){return e.managelinkcolor})),s=function(){c?1==r&&a({type:"close sidebar"}):a(n?{type:"reduce sidebar"}:{type:"increase sidebar"})},c=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),u=function(){var e=l(i().mark((function e(){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a(St(!0)),console.log("starting Log out"),c&&s(),e.prev=3,e.next=6,fetch("".concat(Fr,"/users/api/logout/"),{method:"POST"});case 6:return n=e.sent,e.next=9,n.json();case 9:if(r=e.sent,console.log(r),!n.ok){e.next=21;break}return e.next=14,hf.purge();case 14:return localStorage.clear(),e.next=17,Tr(a);case 17:a(St(!1)),t("/signin"),e.next=22;break;case 21:console.error("Logout failed");case 22:e.next=27;break;case 24:e.prev=24,e.t0=e.catch(3),console.error(e.t0);case 27:case"end":return e.stop()}}),e,null,[[3,24]])})));return function(){return e.apply(this,arguments)}}(),d=T((0,e.useState)(!1),2),p=d[0],f=d[1];return(0,Vt.jsxs)("div",{className:"".concat(c?r?"left-0 w-[80%] minitablet:w-[60%] overflow-y-auto scrollContainer":"-left-full":n?"w-[100px] flex flex-col items-center":"md:block w-[90%] minitablet:w-[60%] overflow-y-auto brkpoint:w-[250px] lg:w-[280px] xl:w-[320px]"," h-full fixed z-30 top-0 bottom-0 border-orange-600 border-0 py-16 md:py-[35px] bg-white flex-shrink-0 transition-all duration-500 ease-in-out font-arial"),children:[(0,Vt.jsxs)("div",{className:"mb-[60px] lg:mb-0",children:[(0,Vt.jsxs)("div",{className:"absolute left-[15px] md:left-0  brkpoint:relative brkpoint:float-none flex gap-2 items-center justify-start md:px-5 mb-5 cursor-pointer ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" ".concat(c?"block":n?"hidden":"block"," w-[100px] h-[18px] ")})]}),(0,Vt.jsx)("img",{src:c?fl:pl,alt:"Enlarge sidebar icon",className:"cursor-pointer \n                    ".concat(c?"w-[20px] absolute right-5 ":"w-[34px] h-[37px] absolute ".concat(n?"float-right":"right-5")," "),onClick:s})]}),(0,Vt.jsxs)("nav",{className:" ".concat(""," w-full brkpoint:mt-[50px] brkpoint:py-10 flex flex-col gap-0 "),children:[(0,Vt.jsx)(il,{to:"/home",className:" ".concat("home"==o?"text-[#FFFFFF] font-black bg-[#37BCF7] ":"hover:bg-[#37BCF71A] text-[#525252] font-medium"," } "),onClick:function(){a(yt("home")),a({type:"close sidebar"})},children:(0,Vt.jsxs)("div",{className:"h-[82px] flex items-center justify-between px-[15px] md:px-5 ",children:[(0,Vt.jsxs)("div",{className:"flex gap-[10px] items-center text-xl cursor-pointer",children:[(0,Vt.jsx)("img",{src:"home"==o?hl:ml,alt:"homepage icon",className:"w-[20px]"}),(0,Vt.jsx)("h2",{className:"".concat(c?"block":n?"hidden":"block"," text-base leading-4 ").concat("home"==o?"font-black":"font-normal"," "),children:"Home"})]}),(0,Vt.jsx)("img",{src:"home"==o?Nl:jl,alt:"right arrow",className:"w-[7px] h-[12px]"})]})}),(0,Vt.jsx)(il,{to:"/organisecrowdfund",className:" ".concat("organisecrowdfund"==o?"text-[#FFFFFF] font-black bg-[#37BCF7]":"hover:bg-[#37BCF71A] text-[#525252] font-medium"," } "),onClick:function(){a(yt("organisecrowdfund")),a({type:"close sidebar"})},children:(0,Vt.jsxs)("div",{className:"h-[82px] flex items-center justify-between px-[15px] md:px-5 ",children:[(0,Vt.jsxs)("div",{className:"flex gap-[10px] items-center text-xl cursor-pointer",children:[(0,Vt.jsx)("img",{src:"organisecrowdfund"==o?xl:gl,alt:"organise crowdfund icon",className:"w-[20px]"}),(0,Vt.jsx)("h2",{className:"".concat(c?"block":n?"hidden":"block"," text-base leading-4 ").concat("organisecrowdfund"==o?"font-semibold":"font-normal"," "),children:"Organise Crowdfund"})]}),(0,Vt.jsx)("img",{src:"organisecrowdfund"==o?Nl:jl,alt:"right arrow",className:"w-[7px] h-[12px]"})]})}),(0,Vt.jsx)(il,{to:"/wallet",className:" ".concat("wallet"==o?"text-[#FFFFFF] font-black bg-[#37BCF7]":"hover:bg-[#37BCF71A] text-[#525252] font-medium"," } "),onClick:function(){a(yt("wallet")),a({type:"close sidebar"})},children:(0,Vt.jsxs)("div",{className:"h-[82px] flex items-center justify-between px-[15px] md:px-5 ",children:[(0,Vt.jsxs)("div",{className:"flex gap-[10px] items-center text-xl cursor-pointer",children:[(0,Vt.jsx)("img",{src:"wallet"==o?vl:bl,alt:"wallet icon",className:"w-[20px]"}),(0,Vt.jsx)("h2",{className:"".concat(c?"block":n?"hidden":"block"," text-base leading-4 ").concat("wallet"==o?"font-semibold":"font-normal"," "),children:"Wallet"})]}),(0,Vt.jsx)("img",{src:"wallet"==o?Nl:jl,alt:"right arrow",className:"w-[7px] h-[12px]"})]})}),(0,Vt.jsx)(il,{to:"/settings",className:" ".concat("settings"==o?"text-[#FFFFFF] font-black bg-[#37BCF7]":"hover:bg-[#37BCF71A] text-[#525252] font-medium"," } "),onClick:function(){a(yt("settings")),a({type:"close sidebar"})},children:(0,Vt.jsxs)("div",{className:" h-[82px] flex items-center justify-between px-[15px] md:px-5 ",children:[(0,Vt.jsxs)("div",{className:"flex gap-[10px] items-center text-xl cursor-pointer",children:[(0,Vt.jsx)("img",{src:"settings"==o?yl:wl,alt:"settings crowdfund icon",className:"w-[20px]"}),(0,Vt.jsx)("h2",{className:"".concat(c?"block":n?"hidden":"block"," text-base leading-4 ").concat("settings"==o?"font-semibold":"font-normal"," "),children:"Settings & Privacy"})]}),(0,Vt.jsx)("img",{src:"settings"==o?Nl:jl,alt:"right arrow",className:"w-[7px] h-[12px]"})]})}),(0,Vt.jsx)("div",{className:"px-[15px] py-[30px]",children:(0,Vt.jsxs)("div",{className:" md:hidden border-t-[#888888] border-t-[0.5px] ",children:[(0,Vt.jsxs)("div",{onClick:function(){f(!p)},className:"flex gap-[10px] items-center justify-between cursor-pointer py-6 ",children:[(0,Vt.jsx)("h2",{className:"text-base leading-4 text-[#525252] ",children:"Support & Legal"}),(0,Vt.jsx)("img",{src:Al,alt:"down arrow",className:"w-[18px] ".concat(p?"rotate-180":""," ")})]}),(0,Vt.jsxs)("ul",{className:" ".concat(p?"":"hidden"," text-[#525252] text-sm border-l-[1px] border-l-[#37BCF7] pl-2 flex flex-col gap-1 "),children:[(0,Vt.jsx)(ol,{to:"/howitworks",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"pb-2",children:"How it works"})}),(0,Vt.jsx)(ol,{to:"/helpcenter",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"py-2",children:"Help center"})}),(0,Vt.jsx)(ol,{to:"/termsofuse",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"py-2",children:"Terms of use"})}),(0,Vt.jsx)(ol,{to:"/termsofuse",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"py-2",children:"Terms of use"})}),(0,Vt.jsx)(ol,{to:"/privacypolicy",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"py-2",children:"Privacy policy"})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsx)("li",{className:"py-2",children:"Community guidelines"})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsxs)("li",{className:"py-2 flex justify-between w-full",children:[(0,Vt.jsx)("span",{className:"",children:"AML policy"}),(0,Vt.jsx)("img",{src:Xs,alt:"",className:"w-[14px]"})]})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",onClick:function(){a({type:"close sidebar"})},children:(0,Vt.jsxs)("li",{className:"pt-2 flex justify-between w-full",children:[(0,Vt.jsx)("span",{className:"",children:"KYC guidelines"}),(0,Vt.jsx)("img",{src:Xs,alt:"",className:"w-[14px]"})]})})]})]})})]}),(0,Vt.jsxs)("div",{className:"md:absolute md:bottom-[5%] md:left-5 flex items-center gap-4 text-[#525252] text-base xl:text-lg font-normal cursor-pointer\n                px-[15px] md:px-0\n                ",onClick:u,children:[(0,Vt.jsx)("img",{src:kl,alt:"Logout icon",className:"w-[24px]"}),(0,Vt.jsx)("h3",{className:" ".concat(c?"block":n?"hidden":"block"," "),children:"Logout"})]})]})};var Cl=n.p+"static/media/user6.0336b1fe4066708886452f7b05287576.svg";var El=function(t){var n=T((0,e.useState)(!1),2),r=n[0],a=n[1];return(0,e.useEffect)((function(){t.timestamp.includes("mins")&&a(!0)}),[]),(0,Vt.jsxs)("div",{className:" ".concat(r?"bg-[#86FCC6]":"none"==t.background?"bg-inherit":"bg-white md:bg-[#F9F9F9] "," flex gap-[9px] lg:gap-3 py-[10px] md:py-3 px-2 phones:px-5 items-start rounded-[5px]  "),children:[(0,Vt.jsx)("img",{src:t.udp?t.dp:Cl,alt:"user profile dp",className:"w-12 md:w-[57px] rounded-full "}),(0,Vt.jsxs)("section",{children:[(0,Vt.jsx)("h3",{className:"font-black text-[15px] md:text-[17px] mb-[3px] md:mb-[6px] ",children:t.donor?t.donor:"John Doe"}),(0,Vt.jsx)("h4",{className:"text-[12px] md:text-[15px] mb-3",children:t.timestamp?Ml(t.timestamp):"2 hours ago"}),(0,Vt.jsxs)("h4",{className:"text-sm md:text-lg",children:["Made a donation of",(0,Vt.jsxs)("span",{className:"font-black",children:[" ",t.amount," USDT "]}),"to your crowdfund campaign"]})]})]})};var Pl=n.p+"static/media/downbutton.321e1769c40e9ad3d16ff7c5f25524d5.svg";n.p;n.p;var Fl=n.p+"static/media/downbutton2.d4fe681445df32e97660b400b7baf6f2.svg";var Tl=function(t){var n=bt(),r=Te(),a=T((0,e.useState)(!1),2),o=a[0],i=a[1];return(0,e.useEffect)((function(){}),[]),(0,Vt.jsxs)("section",{className:"font-arial flex-1 w-1/3 md:min-w-[320px] 2xl:min-w-[370px] lg:min-w-[350px] lg:max-w-[370px] bg-white h-fit rounded-[10px] ",children:["personalCampaign"===t.header?(0,Vt.jsxs)("div",{className:"py-[35px] px-[23px] border-b-[0.5px] border-[#D8D8D8]",children:[(0,Vt.jsxs)("p",{className:"text-lg font-black leading-4 mb-4",children:["$"+t.amt_raised+" raised",(0,Vt.jsx)("span",{className:"tracking-[0.06px] text-base text-[#8E8E93] leading-5 ",children:" of $"+t.target_price})]}),(0,Vt.jsx)("progress",{value:t.amt_raised?t.amt_raised:"23543",max:t.target?t.target:"150000",className:"progressbar w-full h-[10px] appearance-none rounded-[5px] mb-2 phones:mb-3 md:mb-4"}),(0,Vt.jsx)("p",{className:"text-lg text-[#C5C5C5] font-medium ",children:null==t.total_donors?"2.2k donations so far":1==t.total_donors?t.total_donors+" donation so far":t.total_donors+" donations so far"})]}):"wallet"==t.header?(0,Vt.jsxs)("div",{className:"py-[35px] px-[23px] border-b-[0.5px] border-[#D8D8D8]",children:[(0,Vt.jsx)("h3",{className:"text-[22px] font-black mb-3 ",children:"Activites"}),(0,Vt.jsx)("p",{className:"text-[16px]",children:"See  your donation activites for your campaign. "})]}):"campaign"===t.header?(0,Vt.jsxs)("div",{className:"py-[35px] px-[23px] border-b-[0.5px] border-[#D8D8D8]",children:[(0,Vt.jsxs)("p",{className:"text-lg font-black leading-4 mb-4",children:[t.amt_raised+" USDT raised",(0,Vt.jsx)("span",{className:"tracking-[0.06px] text-base text-[#8E8E93] leading-5 ",children:" of "+t.target_price+" USDT"})]}),(0,Vt.jsx)("progress",{value:t.amt_raised?t.amt_raised:"23543",max:t.target_price?t.target_price:"150000",className:"landingpageprogressbar w-full h-[10px] appearance-none rounded-[5px] mb-2 phones:mb-3 md:mb-4"}),(0,Vt.jsx)("p",{className:"text-lg text-[#C5C5C5] font-medium mb-6 ",children:null==t.total_donors?"2.2k donations so far":1==t.total_donors?t.total_donors+" donation so far":t.total_donors+" donations so far"}),(0,Vt.jsx)("button",{className:"mx-auto block px-[30px] py-[15px] rounded-[10px] bg-[#37BCF7] text-lg font-black leading-6 tracking-[0.073px] text-[#FFFFFF] ",onClick:function(){console.log(t.eventid),r("/".concat(t.eventid,"/donate")),n(Ft("crypto"))},children:"Donate using USDT wallet"}),(0,Vt.jsx)("button",{className:"mx-auto block px-[30px] pt-[15px] rounded-[10px] text-lg font-black leading-6 tracking-[0.073px] text-[#37BCF7] ",onClick:function(){console.log(t.eventid),r("/".concat(t.eventid,"/donate")),n(Ft("fiat"))},children:"Donate using card payment"})]}):null,(0,Vt.jsx)("div",{className:"md:py-2 md:px-5 flex flex-col gap-4 ".concat(o?"h-[450px] overflow-scroll activitiesScrollBar":""," ").concat(t.activityData.length?"":"flex items-center justify-center"," "),children:t.activityData.length?t.activityData.map((function(e,t){return(0,Vt.jsx)(El,{dp:e.userdp,timestamp:e.timestamp,amount:e.amount,donor:e.donor},t)})):(0,Vt.jsxs)("p",{className:"text-[#8E8E93] text-sm md:text-lg flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:""}),(0,Vt.jsx)("span",{children:"No latest activity "})]})}),(0,Vt.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-b-[10px] py-3 gap-2 ",children:[(0,Vt.jsx)("span",{className:"text-xs font-black text-center ".concat(t.activityData.length?"":"text-[#D8D8D8]"," "),children:o?"Click on button to go up":"Click on button to go down"}),(0,Vt.jsx)("img",{src:t.activityData.length?Pl:Fl,alt:"down button",className:"w-8 cursor-pointer transform ".concat(o?"rotate-180 duration-slow":"duration-slow"),onClick:function(){i(!o)}})]})]})};n.p;var Ol=function(t){var n=t.displayModals,r=t.setDisplayModals,a=t.eventid,o=t.setCommentData,s=(JSON.parse(localStorage.getItem("userInfo")),T((0,e.useState)(!1),2)),c=s[0],u=s[1],d=T((0,e.useState)(""),2),p=d[0],f=d[1],m=localStorage.getItem("access_token"),h=T((0,e.useState)(!1),2),x=h[0],g=h[1],v=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),e.next=3,fetch("".concat(Fr,"/funding/api/").concat(a,"/comments/"),{method:"POST",headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(m)},body:JSON.stringify({comment:p})});case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,console.log(n),200==t.status?(g(!0),o((function(e){return[n].concat(b(e))})),r((function(e){return It(It({},e),{},{commentModal:!1})}))):alert("Comment failed"),u(!1);case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(n.commentModal?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsx)("div",{className:"w-[280px] phones:w-[350px] md:w-[681px] 2xl:w-[881px] md:min-h-[300px] h-fit py-6 px-2 phones:px-4 md:p-9 bg-white rounded-md md:rounded-[10px] shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial ",children:(0,Vt.jsxs)("div",{className:"".concat(x?"hidden":"block md:pt-5 "),children:[(0,Vt.jsxs)("div",{className:"mb-4 md:mb-8 relative flex justify-center items-center md:px-4 xl:px-8 ",children:[(0,Vt.jsx)("h1",{className:"text-center text-xs phones:text-sm md:text-2xl font-bold relative right-5 phones:right-0 ",children:"Write in your comment"}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] text-xs phones:text-sm md:text-base lg:text-xl font-bold absolute right-10 phones:right-1 ",onClick:function(){r((function(e){return It(It({},e),{},{commentModal:!1})}))},children:"Cancel"})]}),(0,Vt.jsx)("textarea",{name:"comment",id:"comment",className:"mb-2 md:mb-4 border-[1px] border-[#8E8E93] h-[100px] phones:h-[140px] md:h-[280px] fold:w-[90%] phones:w-full rounded resize-none p-2 md:p-5 outline-none placeholder-[#888888] text-xs phones:text-sm md:text-base tracking-[0.8px] focus:border-2 focus:border-[#37BCF7] ",placeholder:"Write in words of support to this campaign",onChange:function(e){return f(e.target.value)}}),(0,Vt.jsxs)("div",{className:"flex gap-2 items-center mb-4 md:mb-6 ",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-3 md:w-5"}),(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-xs md:text-base leading-5 tracking-[0.1px]",children:"Limited to 400 characters"})]}),(0,Vt.jsxs)("button",{className:"bg-[#37BCF7] rounded-md md:rounded-[10px] py-[5px] md:py-2 px-[15px] w-1/2 min-w-[150px] md:min-w-[230px] block mx-auto ",onClick:v,children:[(0,Vt.jsx)("div",{className:" ".concat(c?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(c?"hidden":"block"," text-[#FFFFFF] text-xs phones:text-sm md:text-lg font-bold  "),children:"Send comment"})]})]})})})]})})};var _l=function(e){var t=e.displayModals,n=e.setDisplayModals,r=e.eventid,a=Te(),o=bt();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto xl:hidden ".concat(t.donateModal?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsxs)("div",{className:"w-[265px] phones:w-[350px] md:w-[681px] 2xl:w-[881px] h-fit py-4 bg-white rounded-md md:rounded-[10px] shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial ",children:[(0,Vt.jsxs)("div",{className:"border-b-2 border-[#D8D8D8] relative flex justify-center items-center py-2 px-4",children:[(0,Vt.jsx)("h1",{className:"text-center text-xs md:text-base font-bold ",children:"Select your donation method"}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] text-xs md:text-base font-bold absolute right-2 phones:right-6 xphones:right-4 md:right-8 ",onClick:function(){n((function(e){return It(It({},e),{},{donateModal:!1})}))},children:"Cancel"})]}),(0,Vt.jsxs)("div",{className:"py-9 flex flex-col gap-3",children:[(0,Vt.jsx)("button",{className:"mx-auto block px-[15px] py-[5px] rounded-md md:rounded-[10px] bg-[#37BCF7] text-sm md:text-lg font-black leading-6 tracking-[0.073px] text-[#FFFFFF] ",onClick:function(){o(Ft("crypto")),a("/".concat(r,"/donate"))},children:"Donate using USDT wallet"}),(0,Vt.jsx)("button",{className:"mx-auto block px-[15px] pt-[5px] rounded-md md:rounded-[10px] text-sm md:text-lg font-black leading-6 tracking-[0.073px] text-[#37BCF7] ",onClick:function(){o(Ft("fiat")),a("/".concat(r,"/donate"))},children:"Donate using card payment"})]})]})})]})})},Dl=function(t){var n=t.targetTime,r=function(){var e=(new Date).getTime(),t=new Date(n).getTime()-e;return t>0?{days:Math.floor(t/864e5),hours:Math.floor(t%864e5/36e5),minutes:Math.floor(t%36e5/6e4),seconds:Math.floor(t%6e4/1e3)}:{days:0,hours:0,minutes:0,seconds:0}},a=T((0,e.useState)(r()),2),o=a[0],i=a[1];return(0,e.useEffect)((function(){var e=setInterval((function(){i(r())}),1e3);return function(){return clearInterval(e)}}),[]),(0,Vt.jsxs)("div",{children:[(0,Vt.jsx)("h2",{className:"inline-block",children:"Expiration Time: "}),"\xa0",(0,Vt.jsxs)("div",{className:"inline-block",children:[(0,Vt.jsx)("span",{children:o.minutes})," minutes\xa0",(0,Vt.jsx)("span",{children:o.seconds})," seconds"]})]})};var Il=function(e){var t=e.displayModals,n=e.setDisplayModals;return e.eventid,Te(),(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(t.cryptoDonationModal?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsxs)("div",{className:"w-[265px] phones:w-[350px] md:w-[681px] 2xl:w-[881px] h-fit py-4 bg-white rounded-md md:rounded-[10px] shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial ",children:[(0,Vt.jsxs)("div",{className:"border-b-2 border-[#D8D8D8] relative flex justify-center items-center py-2 px-4",children:[(0,Vt.jsx)("h1",{className:"text-center text-xs md:text-base xl:text-xl font-bold ",children:"Make your crypto payment"}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] text-xs md:text-base font-bold absolute right-2 phones:right-6 xphones:right-4 md:right-8 ",onClick:function(){n((function(e){return It(It({},e),{},{cryptoDonationModal:!1})}))},children:"Cancel"})]}),(0,Vt.jsxs)("div",{className:"py-9 px-5 flex flex-col gap-3",children:[(0,Vt.jsxs)("h2",{children:["Pay into this wallet: ",t.cryptoDonationData.pay_address]}),(0,Vt.jsxs)("h2",{children:["Payment amount: ",t.cryptoDonationData.pay_amount]}),(0,Vt.jsxs)("p",{children:["Currency: ",t.cryptoDonationData.pay_currency]}),(0,Vt.jsx)(Dl,{targetTime:t.cryptoDonationData.expiration_estimate_date})]}),(0,Vt.jsx)("p",{className:"block text-center mb-3",children:"Click the button below after payment to verify"}),(0,Vt.jsx)("button",{className:"mx-auto w-fit block py-[10px] px-10 rounded md:rounded-lg bg-[#000000]  text-white text-lg font-bold md:leading-[43px] md:-tracking-[0.188px] ",children:"Verify Payment"})]})})]})})};var Rl=function(t){var n=localStorage.getItem("access_token"),r=JSON.parse(localStorage.getItem("userInfo")),a=lt((function(e){return e.crowdfundEvents})),o=bt(),s=_e(),c=Te(),u=s.id,d=T((0,e.useState)(a.filter((function(e){return e.id==u}))[0]),2),p=d[0],f=d[1];(0,e.useEffect)((function(){if(!p){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/").concat(u),{});case 2:if(!(t=e.sent).ok){e.next=12;break}return e.next=6,t.json();case 6:n=e.sent,console.log(p),f(n),b=g(n.no_of_donors),e.next=17;break;case 12:return e.t0=console,e.next=15,t.json();case 15:e.t1=e.sent,e.t0.error.call(e.t0,e.t1);case 17:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[]);var m=T((0,e.useState)([]),2),h=m[0],x=m[1];(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/").concat(u,"/activity/"),{headers:{Authorization:"Bearer ".concat(n)}});case 2:return t=e.sent,e.next=5,t.json();case 5:r=e.sent,t.ok?(console.log(r),console.log(r.donation_activity[0]),x(r.donation_activity)):console.log("Failed to get activities");case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var g=function(e){return e<1e3?e:e>=1e3&&e<1e6?+(e/1e3).toFixed(1)+"K":e>=1e6&&e<1e9?+(e/1e6).toFixed(1)+"M":e>=1e9&&e<1e12?+(e/1e9).toFixed(1)+"B":e>=1e12?+(e/1e12).toFixed(1)+"T":void 0};if(p)var b=g(p.no_of_donors);var v=T((0,e.useState)(!(null===p||void 0===p||!p.is_liked)&&p.is_liked),2),y=v[0],w=v[1],k=function(){var e=l(i().mark((function e(t){var r,a,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.stopPropagation(),r=function(){var e=l(i().mark((function e(t){var r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/").concat(u,"/like/"),{method:"POST",body:JSON.stringify({status:t}),headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!y){e.next=9;break}return e.next=5,r(0);case 5:200==e.sent.status?(w(!1),o(Et({id:u,is_liked:!1}))):alert("Crowdfund like failed"),e.next=25;break;case 9:return e.next=11,r(1);case 11:if(200!=(a=e.sent).status){e.next=17;break}w(!0),o(Et({id:u,is_liked:!0})),e.next=25;break;case 17:if("You cannot like the same funding more than once"!=a.data){e.next=24;break}return e.next=20,r(0);case 20:s=e.sent,console.log(s),e.next=25;break;case 24:alert("Crowdfund like failed");case 25:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),j=T((0,e.useState)({commentModal:!1,updateModal:!1,donateModal:!1,cryptoDonationModal:!1,cryptoDonationData:{payment_id:"5428124683",payment_status:"waiting",pay_address:"0x4Ffc8580870272E52a8eB07cb2B89fC5fE4402bF",pay_amount:100,pay_currency:"usdtbsc",order_id:"73282b3d-2afc-4d5e-aba5-f6feced5fcf3",expiration_estimate_date:"2024-02-01T15:53:15.177Z"}}),2),N=j[0],A=j[1],S=T((0,e.useState)({readMore:!1,displayButton:!1}),2),C=S[0],E=S[1],P=T((0,e.useState)("comments"),2),F=P[0],O=P[1];(0,e.useEffect)((function(){window.scrollTo(0,0),w(!(null===p||void 0===p||!p.is_liked)&&p.is_liked);var e=function(){var e=l(i().mark((function e(){var t,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/").concat(u,"/comments/"),{headers:{Authorization:"Bearer ".concat(n)}});case 2:return t=e.sent,e.next=5,t.json();case 5:r=e.sent,t.ok?(r.sort((function(e,t){return new Date(t.timestamp)-new Date(e.timestamp)})),I(r)):console.log("Failed to get comments");case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();if(e(),null!==p&&void 0!==p&&p.description){var t=p.description.length;E(t<=250?function(e){return It(It({},e),{},{displayButton:!1})}:function(e){return It(It({},e),{},{displayButton:!0})})}else E((function(e){return It(It({},e),{},{displayButton:!0})}))}),[]);var _=T((0,e.useState)([]),2),D=_[0],I=_[1];(0,e.useEffect)((function(){Q(Math.ceil(D.length/2<3?3:D.length/2))}),[D]);var R=lt((function(e){return e.sidebarstate})),L=lt((function(e){return e.sidebarslid})),M=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),B=(0,vt.useMediaQuery)({query:"(max-width: 1280px)"}),U=new Date(null!==p&&void 0!==p&&p.end_date?p.end_date:null),z=new Date,H=Math.ceil((U-z)/864e5),W=T((0,e.useState)(Math.ceil(D.length/2)),2),V=W[0],Q=W[1],Y=Vs.filter((function(e){return e.value===(null===p||void 0===p?void 0:p.tags)?p.tags:null})).map((function(e){return e.icon}));return p?(0,Vt.jsxs)("div",{className:" bg-[#F9F9F9] min-h-full relative ",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:"".concat(L?"brkpoint:ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(M&&R?"blur-sm":"","\n                    "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-1 phones:px-3 md:px-6 lg:px-10 pt-6 md:pt-8 pb-16 md:pb-20 mt-[90px] md:mt-[100px] w-full h-full font-arial ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"back arrow",className:"w-[22px] md:w-8 mb-5 md:mb-[34px] cursor-pointer",onClick:function(){c("/home")}}),(0,Vt.jsxs)("div",{className:"bg-[#636363] mb-4 md:mb-[30px] flex gap-2 px-3 md:px-5 py-2 w-fit rounded-[14px] md:rounded-2xl justify-center items-center text-white ",children:[(0,Vt.jsx)("img",{src:Lt,alt:"calendar icon",className:"w-4 hidden md:block "}),(0,Vt.jsx)("span",{className:"font-semibold text-sm md:text-base ",children:"".concat(p.end_date?H:p.days," days remaining")})]}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col xl:flex-row gap-3 xl:justify-between 2xl:gap-11 2xl:justify-start ",children:[(0,Vt.jsxs)("div",{className:"w-full xl:w-[60%] ",children:[(0,Vt.jsxs)("div",{className:" relative w-full shrink-0 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("img",{src:p.banner,alt:"Fund event",className:"w-full h-[200px] xphones:h-[215px] sm:h-[350px] rounded-[5px] md:rounded-xl object-cover "}),(0,Vt.jsxs)("div",{className:"absolute top-4 left-5 bg-white flex gap-1 md:gap-2 px-2 md:px-4 rounded-lg py-1 items-center",children:[(0,Vt.jsx)("img",{src:0!==Y.length?Y:Vs.slice(-1)[0].icon,alt:"Event category icon",className:"w-3 md:w-[17px] md:h-[17px] "}),(0,Vt.jsx)("span",{className:"text-xs md:text-base font-black",children:p.tags?p.tags:"Others"})]})]}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsxs)("div",{className:"flex gap-3 md:gap-10 px-1 md:px-3 mb-7 md:mb-8 ",children:[(0,Vt.jsxs)("button",{className:" ".concat(!B||r&&p.organiser.username===r.username?"bg-[#58cdff] text-white ":"border-[2px] border-black order-2"," \n                                                flex flex-1 gap-2 py-2 md:py-[10px] px-3 md:px-4 w-full sm:w-fit \n                                                rounded-lg md:rounded-xl font-black text-sm md:text-base justify-center items-center "),children:[(0,Vt.jsx)("img",{src:Mt,alt:"share icon",className:"w-[15px] sm:w-[20px] hidden md:block "}),(0,Vt.jsx)("span",{children:"Share Campaign"})]}),(0,Vt.jsxs)("button",{className:" ".concat(r&&null!==p.organiser.username&&p.organiser.username==r.username?"hidden ":B?"hidden":"flex items-center flex-1 justify-center gap-[8px] border-[2px] border-black rounded-[10px] w-full py-[10px] max-h-[40px] px-4 text-base text-[#000000] font-semibold "," "),onClick:k,children:[(0,Vt.jsx)(Yt,{liked:y,color:y?"":"black"}),(0,Vt.jsx)("span",{children:y?"Liked Campaign":"Like Campaign "})]}),(0,Vt.jsx)("button",{className:" ".concat(!B||r&&p.organiser.username===r.username?"hidden":"","\n                                                bg-[#58cdff] text-white flex flex-1 gap-2 py-2 md:py-[10px] px-3 md:px-4 w-full sm:w-fit \n                                                rounded-lg md:rounded-xl font-black text-sm md:text-base justify-center items-center "),onClick:function(){A((function(e){return It(It({},e),{},{donateModal:!0})}))},children:"Donate now"}),(0,Vt.jsxs)("button",{onClick:function(){c("/organisecrowdfund/".concat(u))},className:" ".concat(r&&null!==p.organiser.username&&p.organiser.username==r.username?"flex items-center flex-1 justify-center gap-[8px] border-[2px] border-[#37BCF7] rounded-lg md:rounded-[10px] w-full py-[7px] md:py-[10px] md:max-h-[40px] px-3 md:px-4 text-sm md:text-base text-[#37BCF7] h-fit font-black ":"hidden"," "),children:[(0,Vt.jsx)("img",{src:qt,alt:"Edit icon",className:"w-5 hidden md:block "}),(0,Vt.jsx)("span",{children:"Edit Campaign"})]})]}),(0,Vt.jsx)(_l,{displayModals:N,setDisplayModals:A,eventid:u}),(0,Vt.jsx)(Il,{displayModals:N,setDisplayModals:A,eventid:u}),(0,Vt.jsxs)("div",{className:" md:hidden ",children:[(0,Vt.jsxs)("p",{className:"text-sm md:text-lg font-black md:leading-4 mb-4",children:[p.amt_raised+" USDT raised",(0,Vt.jsx)("span",{className:"tracking-[0.06px] text-xs md:text-base text-[#8E8E93] leading-5 ",children:" of "+p.target_price+" USDT"})]}),(0,Vt.jsx)("progress",{value:p.amt_raised?p.amt_raised:"23543",max:p.target_price?p.target_price:"150000",className:"progressbar w-full h-[10px] appearance-none rounded-[5px] mb-2 phones:mb-3 md:mb-4"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg text-[#C5C5C5] font-medium mb-4 ",children:null==b?"2.2k donations so far":1==b?b+" donation so far":b+" donations so far"})]}),(0,Vt.jsx)("hr",{className:"border-[1px] border-[#dcdbdb] mb-[14px] md:mb-7 "}),(0,Vt.jsx)("h1",{className:"font-black text-base md:text-[22px] mb-3 md:mb-4 md:leading-7 ",children:p.title?p.title:"This is the title of the main user\u2019s crowdfunding"}),(0,Vt.jsx)("p",{className:" font-medium md:font-normal mb-1 md:mb-2 text-sm md:text-lg ".concat(C.readMore?"line-clamp-3 md:line-clamp-[3] lg:line-clamp-4":""," "),children:p.description?p.description:"This a  complete description for the crowdfunding to aid others fund this particular crowdfunding.\n                                                Users are allowed to read the complete reason why this use is requesting for money from people.\n                                                Why other users read this, if it is totally convincing enough then this user reading it can fund this project.\n                                                If not he will move elsewhere to search for where to put their money. This can go on and on and on till its stops."}),(0,Vt.jsx)("button",{className:"text-sm md:text-base mb-4 md:mb-5 border-b-2 border-black ".concat(C.displayButton?"block":"hidden"," "),onClick:function(){E((function(e){return It(It({},e),{},{readMore:!e.readMore})}))},children:C.readMore?"Read more":"Read less"}),(0,Vt.jsxs)("button",{className:"mb-4 flex items-center justify-center gap-[3px] h-[28px] rounded-[9px] md:py-3 text-base font-semibold ",children:[(0,Vt.jsx)("img",{src:Bt,alt:"location icon",className:"w-[16px] "}),(0,Vt.jsx)("span",{children:p.location?p.location:"NIGERIA"})]}),(0,Vt.jsx)("hr",{className:"border-[1px] border-[#dcdbdb] mb-5 md:mb-8 "}),(0,Vt.jsx)(Qt,{co_organisers:p.co_organisers,organiser:p.organiser.first_name+" "+p.organiser.last_name,organiserimage:p.organiser.dp?p.organiser.dp:Ut}),(0,Vt.jsxs)("div",{className:"flex  xl:hidden mt-[35px]",children:[(0,Vt.jsx)("button",{className:" ".concat("comments"==F?"bg-[#000000] rounded-[5px] text-white  text-sm  ":"text-[#8E8E93]"," py-[10px] px-[15px] font-black "),onClick:function(){return O("comments")},children:"Comments"}),(0,Vt.jsx)("button",{className:" ".concat("activities"==F?"bg-[#000000] rounded-[5px] text-white text-sm  ":"text-[#8E8E93]"," py-[10px] px-[15px] font-black "),onClick:function(){return O("activities")},children:"Activities"})]}),(0,Vt.jsxs)("div",{className:" ".concat(B&&"comments"!==F?"hidden":"block"," "),children:[(0,Vt.jsxs)("button",{className:"mt-[25px] md:mt-10 items-center flex justify-center gap-2 py-[3px] md:py-[5px] px-3 \n                                                rounded-[20px] bg-[#FFFFFF]\n                                                border-[2px] border-[#37BCF7] shadow-[0px_0px_15.786517143249512px_0px_rgba(0,0,0,0.04)]\n                                            ",onClick:function(){A((function(e){return It(It({},e),{},{commentModal:!0})}))},children:[(0,Vt.jsx)("img",{src:Gt,alt:"comment icon",className:"w-4"}),(0,Vt.jsx)("span",{className:"text-sm md:text-base ",children:"Write a comment"})]}),(0,Vt.jsx)(Ol,{displayModals:N,setDisplayModals:A,eventid:u,setCommentData:I}),(0,Vt.jsxs)("h3",{className:"mt-6 mb-6 md:mb-7 text-base md:text-lg font-bold ",children:["Comments (",D.length,")"]}),(0,Vt.jsx)("div",{className:" flex flex-col gap-5 md:gap-8",children:D.slice(0,V).map((function(e,t){return(0,Vt.jsx)(Ll,{image:e.user.dp?e.user.dp:Ut,name:e.user.first_name,time:e.timestamp,comment:e.comment},t)}))}),(0,Vt.jsx)("button",{className:" ".concat(0==D.length||D.length<4?"hidden":""," bg-[#D8D8D8] py-[5px] px-4 block mx-auto mt-10\n                                            rounded-[10px] font-black text-base tracking-[0.06px] "),onClick:function(){V<D.length?Q(D.length):V==D.length&&V>3&&Q(Math.ceil(D.length/2<3?3:D.length/2))},children:V<D.length?"See more":"See less"})]}),(0,Vt.jsxs)("div",{className:" ".concat(B&&"activities"==F?"block":"hidden"," "),children:[(0,Vt.jsx)("h3",{className:"mt-6 mb-6 md:mb-7 text-base md:text-lg font-bold ",children:"Activities"}),(0,Vt.jsx)("div",{className:"flex flex-col gap-5 md:gap-8",children:h.length?h.map((function(e,t){return(0,Vt.jsx)(El,{dp:e.dp,timestamp:e.timestamp,amount:e.amount,donor:e.donor,background:"none"},t)})):(0,Vt.jsxs)("p",{className:"text-[#8E8E93] text-sm md:text-lg flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:""}),(0,Vt.jsx)("span",{children:"No latest activity "})]})}),(0,Vt.jsx)("button",{className:" hidden ".concat(0==D.length?"hidden":""," bg-[#D8D8D8] py-[5px] px-4 block mx-auto mt-10\n                                            rounded-[10px] font-black text-base tracking-[0.06px] "),children:"See more"})]})]})]}),(0,Vt.jsx)("div",{className:"hidden xl:block",children:(0,Vt.jsx)(Tl,{header:null!==p.organiser.username&&r&&p.organiser.username==r.username?"personalCampaign":"campaign",target_price:p.target_price,amt_raised:p.amt_raised,total_donors:b,eventid:u,setDisplayModals:A,displayModals:N,activityData:h})})]})]})]})]}):(0,Vt.jsx)("div",{children:"Loading..."})};function Ll(e){return(0,Vt.jsxs)("div",{className:"flex items-start gap-3 md:gap-4  ",children:[(0,Vt.jsx)("img",{src:e.image,alt:"user 7 profile",className:"w-12 md:w-[60px] rounded-full "}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-[2px] md:gap-1 ",children:[(0,Vt.jsx)("h3",{className:"font-black text-base md:text-lg",children:e.name}),(0,Vt.jsx)("p",{className:"text-xs md:text-base",children:Ml(e.time)})]}),(0,Vt.jsx)("p",{className:"text-sm md:text-base",children:e.comment})]})]})}var Ml=function(e){var t=new Date-new Date(e),n=Math.floor(t/1e3),r=Math.floor(n/60),a=Math.floor(r/60),o=Math.floor(a/24),i=Math.floor(o/7),s=Math.floor(o/30),l=Math.floor(o/365);return l>0?"".concat(l," years ago"):1==s?"1 month ago":s>0?"".concat(s," months ago"):1==i?"1 week ago":i>0?"".concat(i," weeks ago"):o>0?"".concat(o," days ago"):1==a?"1 hour ago":a>0?"".concat(a," hours ago"):1==r?"1 min ago":r>0?"".concat(r," mins ago"):1==n?"1 sec ago":n>0?"".concat(n," secs ago"):"Just now"};var Bl=n.p+"static/media/eventimg8.0f3a11a26ff9c7420144aec5a74b5420.svg";var Ul=n.p+"static/media/eventimg7.0c7800225e0489508c12aec825821e91.svg";var zl=function(t){var n=localStorage.getItem("access_token"),r=bt(),a=(lt((function(e){return e.managehomebodydata})),T((0,e.useState)(t.is_liked),2)),o=a[0],s=a[1],u=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),d=Te();function p(){return p=l(i().mark((function e(a){var c,u,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a.stopPropagation(),c=function(){var e=l(i().mark((function e(r){var a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/").concat(t.id,"/like/"),{method:"POST",body:JSON.stringify({status:r}),headers:{Authorization:"Bearer ".concat(n),"Content-Type":"application/json"}});case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),!o){e.next=14;break}return e.next=5,c(0);case 5:return u=e.sent,e.t0=console,e.next=9,u.json();case 9:e.t1=e.sent,e.t0.log.call(e.t0,e.t1),200==u.status?(s(!1),r(Et({id:t.id,is_liked:!1}))):alert("Crowdfund like failed"),e.next=35;break;case 14:return e.next=16,c(1);case 16:return d=e.sent,e.t2=console,e.next=20,d.json();case 20:if(e.t3=e.sent,e.t2.log.call(e.t2,e.t3),200!=d.status){e.next=27;break}s(!0),r(Et({id:t.id,is_liked:!0})),e.next=35;break;case 27:if("You cannot like the same funding more than once"!=d.data){e.next=34;break}return e.next=30,c(0);case 30:p=e.sent,console.log(p),e.next=35;break;case 34:alert("Crowdfund like failed");case 35:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}return Vs.filter((function(e){return e.value===t.category})).map((function(e){return e.icon})),(0,Vt.jsx)("div",{className:"w-full sm:max-w-[380px] md:max-w-[360px] smlaptops:max-w-[280px] mdlaptops:max-w-[300px]\n         lglaptops:max-w-[280px]  min-w-[200px] cursor-pointer inline-block font-arial ",children:(0,Vt.jsxs)("div",{className:"",onClick:function(){d("/detailed/".concat(t.id))},children:[(0,Vt.jsxs)("div",{className:"flex gap-2 mb-3",children:[(0,Vt.jsxs)("div",{className:"flex shrink-0 -space-x-5",children:[(0,Vt.jsx)("img",{src:null!==t.organiser.dp?t.organiser.dp:Ut,alt:"Organizer profile",className:"z-20 rounded-full fold:min-w-[40px] fold:h-[40px] phones:min-w-[48px] phones:h-[48px] md:min-w-[45px] md:h-[45px] "}),t.co_organisers?t.co_organisers.map((function(e,t){return 0===t?(0,Vt.jsx)("img",{src:null!==e.dp?e.dp:Ut,alt:"co-organizer profile img",className:"z-10 rounded-full fold:min-w-[40px] fold:h-[40px] phones:min-w-[48px] phones:h-[48px] md:w-[45px] md:h-[45px] "},t):(0,Vt.jsx)("img",{src:null!==e.dp?e.dp:Ut,alt:"co-organizer profile img",className:"z-0 rounded-full fold:min-w-[40px] fold:h-[40px] phones:min-w-[48px] phones:h-[48px] md:w-[45px] md:h-[45px]"},t)})):""]}),(0,Vt.jsxs)("div",{className:"flex flex-col relative max-w-[100%] truncate",children:[(0,Vt.jsxs)("h3",{className:"font-black text-[14px] tracking-[0.06px] truncate",children:[t.organiser.first_name,t.co_organisers?t.co_organisers.map((function(e,t,n){return 1===n.length?" and "+e.first_name:n.length>1&&1==t?" and "+n.length+" others":""})):null]}),(0,Vt.jsx)("p",{className:"text-[13px] md:text-sm ",children:"is organizing ..."})]})]}),(0,Vt.jsx)("div",{className:"relative w-full rounded-t-[10px]",children:(0,Vt.jsx)("img",{src:t.crowdfundImage?t.crowdfundImage:c,alt:"Fund event",className:"rounded-t-[10px] w-full h-[196px] phones:h-[196px] xphones:h-[196px] brkpoint:h-[135px] object-cover "})}),(0,Vt.jsxs)("div",{className:"bg-white pt-2 phones:pt-3 xphones:pt-[17px] brkpoint:py-3 rounded-b-[10px] pb-2 px-[10px] xphones:px-[15px] md:px-[10px] h-fit brkpoint:h-[205.5px] \n                    relative shadow-[0px_0px_35.2294px_rgba(0,0,0,0.04)] hover:bg-[#033F591A] hover:border-[0.1px] hover:border-[#D2D2D4]  ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center mb-[10px] ",children:[(0,Vt.jsx)("h3",{className:"text-[#8E8E93] text-base leading-5",children:t.location?t.location.toUpperCase():"LAGOS"}),(0,Vt.jsx)("button",{onClick:function(e){return p.apply(this,arguments)},children:(0,Vt.jsx)(Yt,{liked:o})})]}),(0,Vt.jsxs)("div",{className:"mb-3 phones:mb-5 xphones:mb-6 brkpoint:mb-5 mx-auto",children:[(0,Vt.jsx)("h5",{className:"font-black text-base brkpoint:text-base leading-5 tracking-[0.06px] mb-[5px] phones:mb-[8px] xphones:mb-[11px] brkpoint:mb-[15px] line-clamp-2 ",children:t.title?t.title:"This is the title of the main user's Crowdfunding"}),(0,Vt.jsx)("p",{className:"leading-[18px] -tracking-[0.01px] text-sm brkpoint:text-[15px] line-clamp-2 ",children:u?"Click to know more about this campaign":t.description?t.description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read theories and project outcomes."})]}),(0,Vt.jsxs)("div",{className:"brkpoint:absolute w-full brkpoint:w-[93.5%] mx-auto brkpoint:bottom-2",children:[(0,Vt.jsx)("progress",{value:t.amt_raised?t.amt_raised:"23543",max:t.target_price?t.target_price:"150000",className:"progressbar w-full h-[8.5px] appearance-none rounded-[5px] mb-2 phones:mb-[15px] xphones:mb-4 md:mb-[8px]"}),(0,Vt.jsxs)("p",{className:"fold:text-[11px] phones:text-[13px] brkpoint:text-[11px] leading-[18px] -tracking-[0.08px] font-black",children:["$",t.amt_raised?t.amt_raised.toLocaleString():"23,543"," raised",(0,Vt.jsxs)("span",{className:"text-[#8E8E93]",children:[" of $",t.target_price?t.target_price.toLocaleString():"150,000"]})]})]})]})]})})};var Hl=n.p+"static/media/deleteicon.48983840ed69a2e8413d0f969f4d6a62.svg";var Wl=function(e){var t=Te();return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 w-fit mb-[11px] md:mb-[15px] ",children:[(0,Vt.jsx)("div",{className:"w-3 h-3 bg-[#35FAA0]  rounded-full"}),(0,Vt.jsx)("h4",{className:" relative top-[1px] ",children:"Active"})]}),(0,Vt.jsxs)("div",{className:"flex gap-[15px] md:gap-[20px] h-[125px] items-center mb-12 bg-white pr-3 xphones:pr-4",children:[(0,Vt.jsx)("div",{className:"w-[3px] md:w-[5px] h-full bg-[#35FAA0] shadow-[0px_0px_16px_rgba(0,0,0,0.04);] "}),(0,Vt.jsxs)("div",{className:"flex gap-[15px]  md:gap-[25px] w-full md:items-center ",children:[(0,Vt.jsx)("img",{src:e.img,alt:"user crowdfund img",className:"w-[55px] md:w-[80px] h-[49px] md:h-[70px] rounded object-cover "}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-start md:items-center gap-[10px] md:flex-row md:justify-between",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-1 ",children:[(0,Vt.jsx)("h5",{className:"text-base md:text-lg font-black leading-5",children:e.title}),(0,Vt.jsxs)("p",{className:" text-black md:text-[#525252] text-sm md:text-base ",children:[e.daysleft," days left"]})]}),(0,Vt.jsxs)("div",{className:"flex gap-1 phones:gap-[10px] md:gap-9 phones:max-h-[35px] md:max-h-[50px] ",children:[(0,Vt.jsxs)("button",{className:"flex gap-2 items-center py-[2px] px-3 xl:py-[5px] xl:px-[15px] md:min-w-[104px]  border-2 border-[#E61B00] rounded-[5px] md:rounded-[10px] text-xs md:text-base ",children:[(0,Vt.jsx)("img",{src:Hl,alt:"delete img",className:"w-3 md:w-[20px] h-[14px] md:h-[24px]"}),(0,Vt.jsx)("span",{className:"text-[#E61B00] font-black",children:"Delete"})]}),(0,Vt.jsx)("button",{className:"bg-[#37BCF7] max-h-[35px] md:max-h-[50px] text-white rounded-[5px] md:rounded-[10px] py-[5px] px-3 md:px-[15px] font-black text-xs md:text-base ",onClick:function(){return t("/detailed/".concat(e.id))},children:"View Campaign"})]})]})]})]})]})};var Vl=n.p+"static/media/smalluploadicon.9307ff8bfedee3d923934945ca683d51.svg";var Ql=function(e){return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 w-fit mb-[11px] md:mb-[15px] ",children:[(0,Vt.jsx)("div",{className:"w-3 h-3 bg-[#8E8E93] rounded-full"}),(0,Vt.jsx)("h4",{className:" relative top-[1px] ",children:"Draft"})]}),(0,Vt.jsxs)("div",{className:"flex gap-[10px] phones:gap-[15px] md:gap-[20px] h-[125px] items-center mb-12 bg-white pr-2 xphones:pr-4",children:[(0,Vt.jsx)("div",{className:"w-[3px] md:w-[5px] h-full bg-[#8E8E93] shadow-[0px_0px_16px_rgba(0,0,0,0.04);] "}),(0,Vt.jsxs)("div",{className:"flex gap-[10px] phones:gap-[15px] md:gap-[25px] w-full md:items-center ",children:[(0,Vt.jsx)("img",{src:e.img?e.img:Vl,alt:"user crowdfund img",className:"w-[55px] md:w-[80px] h-[49px] md:h-[70px] rounded object-cover "}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-start md:items-center gap-[10px] md:flex-row md:justify-between",children:[(0,Vt.jsxs)("div",{className:"flex flex-col phones:gap-1 ",children:[(0,Vt.jsx)("h5",{className:"text-base md:text-lg font-black leading-5",children:e.title?e.title:"Campaign title has not being added yet "}),(0,Vt.jsx)("p",{className:" text-black md:text-[#525252] text-sm md:text-base ",children:"Pending"})]}),(0,Vt.jsxs)("div",{className:"flex gap-1 phones:gap-[10px] md:gap-9 phones:max-h-[35px] md:max-h-[50px] ",children:[(0,Vt.jsxs)("button",{className:"flex gap-2 items-center py-[2px] px-3 xl:py-[5px] xl:px-[15px] md:min-w-[104px]  border-2 border-[#E61B00] rounded-[5px] md:rounded-[10px] text-xs md:text-base ",children:[(0,Vt.jsx)("img",{src:Hl,alt:"delete img",className:"w-3 md:w-[20px] h-[14px] md:h-[24px]"}),(0,Vt.jsx)("span",{className:"text-[#E61B00] font-black",children:"Delete"})]}),(0,Vt.jsx)("button",{className:"bg-[#37BCF7] text-white rounded-[5px] md:rounded-[10px] py-[5px] px-3 md:px-[15px] font-black text-xs md:text-base",children:"Continue Editing"})]})]})]})]})]})};var Yl=function(e){var t=Te();return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-1 md:gap-2 w-fit mb-[11px] md:mb-[15px] ",children:[(0,Vt.jsx)("div",{className:"w-3 h-3 bg-black rounded-full"}),(0,Vt.jsx)("h4",{className:" relative top-[1px] ",children:"Ended"})]}),(0,Vt.jsxs)("div",{className:"flex gap-[10px] phones:gap-[15px] md:gap-[20px] h-[125px] items-center mb-12 bg-white pr-2 xphones:pr-4",children:[(0,Vt.jsx)("div",{className:"w-[3px] md:w-[5px] h-full bg-black shadow-[0px_0px_16px_rgba(0,0,0,0.04);] "}),(0,Vt.jsxs)("div",{className:"flex gap-[10px] phones:gap-[15px] md:gap-[25px] w-full md:items-center ",children:[(0,Vt.jsx)("img",{src:e.img,alt:"user crowdfund img",className:"w-[55px] md:w-[80px] h-[49px] md:h-[70px] rounded object-cover "}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-start md:items-center gap-[10px] md:flex-row md:justify-between",children:[(0,Vt.jsxs)("div",{className:"flex flex-col phones:gap-1 ",children:[(0,Vt.jsx)("h5",{className:"text-base md:text-lg font-black leading-5",children:e.title}),(0,Vt.jsx)("p",{className:" text-black md:text-[#525252] text-sm md:text-base ",children:"Campaign has ended"})]}),(0,Vt.jsxs)("div",{className:"flex gap-1 phones:gap-[10px] md:gap-5 lg:gap-9 phones:max-h-[35px] md:max-h-[50px] ",children:[(0,Vt.jsxs)("button",{className:"flex gap-2 items-center py-[2px] px-3 xl:py-[5px] xl:px-[15px] md:min-w-[104px]  border-2 border-[#E61B00] rounded-[5px] md:rounded-[10px] text-xs md:text-base ",children:[(0,Vt.jsx)("img",{src:Hl,alt:"delete img",className:"w-3 md:w-[20px] h-[14px] md:h-[24px]"}),(0,Vt.jsx)("span",{className:"text-[#E61B00] font-black",children:"Delete"})]}),(0,Vt.jsx)("button",{className:"bg-[#37BCF7] text-white rounded-[5px] md:rounded-[10px] py-[5px] px-3 md:px-[15px] font-black text-xs md:text-base",onClick:function(){t("/detailed/".concat(e.id))},children:"View Campaign"})]})]})]})]})]})};var ql=function(e){return(0,Vt.jsxs)("div",{className:"w-full flex gap-4 md:gap-5 h-[90px] md:h-[100px] items-center mb-12 bg-white pr-4",children:[(0,Vt.jsx)("div",{className:"w-[3px] md:w-[5px] h-full bg-[#37BCF7] shadow-[0px_0px_16px_rgba(0,0,0,0.04);] "}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-start gap-[10px] md:flex-row md:justify-between",children:[(0,Vt.jsx)("h5",{className:"text-base md:text-lg font-black leading-5",children:e.title?e.title:"You have no campaign to show here"}),(0,Vt.jsx)(ol,{to:"/organisecrowdfund",className:"bg-[#37BCF7] max-h-[35px] md:max-h-[50px] text-white rounded-[5px] md:rounded-[10px] py-[5px] px-3 md:px-[15px] font-black text-xs md:text-base ",children:"Start a Campaign"})]})]})};var Gl=function(){var t=JSON.parse(localStorage.getItem("userInfo")),n=bt(),r=lt((function(e){return e.homescrollposition})),a=lt((function(e){return e.homePageSearchField})),o=function(e){var t=new Date,n=new Date(e)-t;return-1!==Math.sign(n)},s=lt((function(e){return e.crowdfundEvents.filter(o)})),c=lt((function(e){return e.crowdfundEvents.filter((function(e){return null!==e.organiser.username&&e.organiser.username==t.username}))})),u=T((0,e.useState)([]),2),d=u[0],p=u[1];(0,e.useEffect)((function(){function e(){return e=l(i().mark((function e(){var t,n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/funding/api/mine?filter=expired"),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,r=c.concat(n),p(r);case 8:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var f=(0,e.useRef)(null),m=lt((function(e){return e.homepagedisplay})),h=T((0,e.useState)(m),2),x=h[0],g=h[1],v=T((0,e.useState)("all"),2),y=v[0],w=v[1],k=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),j=[{label:"All",value:"all"}].concat(b(Vs)),N=T((0,e.useState)("all"),2),A=N[0],S=N[1],C=function(e){var t=new Date,n=new Date(e),r=(n.getTime()-t.getTime())/864e5,a=Math.ceil((n-t)/864e5);return r<=0?{campaignStatus:"ended"}:r>0?{campaignStatus:"active",daysLeft:a}:void 0};return(0,e.useEffect)((function(){window.scrollTo(0,r);var e=function(){f.current=window.scrollY};return window.addEventListener("scroll",e),function(){window.removeEventListener("scroll",e),null!==f.current&&n({type:"SET_SCROLL_POSITION",payload:f.current})}}),[]),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-6 lg:px-10 pt-6 md:pt-10 pb-16 md:pb-20 mt-[90px] md:mt-[100px] w-full h-full font-arial ",children:[(0,Vt.jsxs)("div",{className:"fold:mb-5 phones:mb-6 md:mb-10 ",children:[(0,Vt.jsx)("h1",{className:"font-black text-xl phones:text-xl md:text-3xl leading-7 tracking-[0.5px] mb-[15px] font-merriweather",children:"Crowdfunding is better when done together."}),(0,Vt.jsx)("p",{className:"hidden md:block font-normal text-lg tracking-[0.8px]",children:"Raise funds for a project or cause in a matter of seconds!"})]}),(0,Vt.jsxs)("div",{className:"flex fold:gap-4 phones:gap-4 font-black mb-4 md:mb-5 text-base tracking-[0.06px] leading-5",children:[(0,Vt.jsx)("button",{className:"w-[82px] md:w-[102px] ".concat("others"==x?"bg-[#D8D8D8]":"bg-inherit hover:bg-[#D8D8D8]","  \n                  h-[35px] md:h-[42px] py-1 px-[5px] rounded-[10px] font-bold text-sm md:text-base "),onClick:function(){n({type:"setothers"}),g("others")},children:"Others"}),(0,Vt.jsx)("button",{className:"w-[92px] md:w-[112px] ".concat("foryou"==x?"bg-[#D8D8D8]":"bg-inherit hover:bg-[#D8D8D8]","\n                   h-[35px] md:h-[42px] rounded-[10px] py-1 px-3 font-bold text-sm md:text-base "),onClick:function(){n({type:"setforyou"}),g("foryou")},children:"For you"})]}),(0,Vt.jsx)("div",{children:"others"==x?(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsxs)("div",{className:"flex gap-3 font-normal text-base leading-3 tracking-[0.1px] font-arial ",children:[(0,Vt.jsxs)("button",{className:"bg-white fold:w-[118px] phones:w-[120px] md:w-[172px] h-[38px] md:h-[39px] flex items-center justify-between pr-5 pl-3 \n                      rounded-r-[30px] rounded-l-[10px] shadow-[0px_0px_32px_rgba(0,0,0,0.04)] md:shadow-none ",children:[(0,Vt.jsx)("span",{className:"text-[13px] md:text-base ",children:"Popular"}),(0,Vt.jsx)("img",{src:zt,alt:"down arrow icon"})]}),(0,Vt.jsx)("div",{className:"bg-white min-w-[90px] phones:min-w-[120px] md:min-w-[150px] h-[30px] md:h-[39px] rounded-r-[30px] rounded-l-[10px] shadow-[0px_0px_32px_rgba(0,0,0,0.04)] md:shadow-none",children:(0,Vt.jsx)(Ds,{options:j,placeholder:"All",onChange:function(e){S(e.value)},components:{DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})},IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:"100%",border:(t.isFocused,0),boxShadow:(t.isFocused,0),"&:hover":{border:(t.isFocused,0)},cursor:"pointer",caretColor:"transparent",paddingRight:k?"12px":"20px",paddingLeft:k?"4px":"12px",borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px",borderTopRightRadius:"30px",borderBottomRightRadius:"30px",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"200%",zIndex:"30",color:"black"})},menuList:function(e){return It(It({},e),{},{padding:0})},placeholder:function(e){return It(It({},e),{},{color:"black",fontSize:k?"13px":"16px"})}},formatOptionLabel:function(e,t){t.isSelected;return(0,Vt.jsxs)("div",{className:"flex items-center gap-2 pl-0 ",children:[A!==e.value&&e.icon&&(0,Vt.jsx)("img",{src:e.icon,alt:"category icon",className:"w-4 h-4"}),(0,Vt.jsx)("span",{className:"text-[13px] md:text-base pt-1 ",children:e.label})]})}})})]}),(0,Vt.jsx)("div",{className:"eventparent w-full py-7 md:py-[35px]",children:a.length>0?s.filter((function(e){return e.title.toLowerCase().includes(a.toLowerCase())})).map((function(e,t){return(0,Vt.jsx)(zl,{category:e.tags,crowdfundImage:e.banner,accountimages:e.organizerimg,organiser:e.organiser,title:e.title,co_organisers:e.co_organisers,description:e.description,amt_raised:e.amt_raised,target_price:e.target_price,categoryimg:e.categoryimg,location:e.location,eventimg:e.placeholder,liked:e.liked,id:e.id,organizer:e.user_name,is_liked:e.is_liked},e.id)})):"all"==A?s.map((function(e,t){return(0,Vt.jsx)(zl,{category:e.tags,crowdfundImage:e.banner,accountimages:e.organizerimg,organiser:e.organiser,title:e.title,co_organisers:e.co_organisers,description:e.description,amt_raised:e.amt_raised,target_price:e.target_price,categoryimg:e.categoryimg,location:e.location,eventimg:e.placeholder,liked:e.liked,id:e.id,organizer:e.user_name,is_liked:e.is_liked},e.id)})):s.filter((function(e){return e.tags==A})).map((function(e,t){return(0,Vt.jsx)(zl,{category:e.tags,crowdfundImage:e.banner,accountimages:e.organizerimg,organiser:e.organiser,title:e.title,co_organisers:e.co_organisers,description:e.description,amt_raised:e.amt_raised,target_price:e.target_price,categoryimg:e.categoryimg,location:e.location,eventimg:e.placeholder,liked:e.liked,id:e.id,organizer:e.user_name,is_liked:e.is_liked},e.id)}))})]}):(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsxs)("div",{className:"bg-white w-fit mt-[30px] md:mt-[40px] mb-[30px]",children:[(0,Vt.jsx)("button",{className:"".concat("all"==y?"bg-black text-white ":"text-[#8E8E93] bg-white"," font-bold text-sm phones:text-base py-[10px] px-[15px] phones:w-[80px] rounded-[5px]  "),onClick:function(){w("all")},children:"All"}),(0,Vt.jsx)("button",{className:"".concat("active"==y?"bg-black text-white ":"text-[#8E8E93] bg-white"," font-bold text-sm phones:text-base py-[10px] px-[15px] phones:w-[80px] rounded-[5px]  "),onClick:function(){w("active")},children:"Active"}),(0,Vt.jsx)("button",{className:"".concat("ended"==y?"bg-black text-white ":"text-[#8E8E93] bg-white"," font-bold text-sm phones:text-base py-[10px] px-[15px] phones:w-[80px] rounded-[5px]  "),onClick:function(){w("ended")},children:"Ended"}),(0,Vt.jsx)("button",{className:"".concat("draft"==y?"bg-black text-white ":"text-[#8E8E93] bg-white"," font-bold text-sm phones:text-base py-[10px] px-[15px] phones:w-[80px] rounded-[5px]  "),onClick:function(){w("draft")},children:"Draft"})]}),(0,Vt.jsx)("div",{children:"all"==y?(0,Vt.jsxs)("div",{className:"md:pr-10",children:[(0,Vt.jsx)("h2",{className:"font-black text-xl md:text-2xl mb-[5px] md:mb-[10px]",children:"All Campaigns"}),(0,Vt.jsx)("p",{className:"text-base md:text-lg mb-6 md:mb-7",children:"This is a list of all your campaigns, including active, ended and draft campaigns."}),0===d.length?(0,Vt.jsx)(ql,{}):d.map((function(e,t){return"ended"===C(e.end_date).campaignStatus?(0,Vt.jsx)(Yl,{img:e.banner,id:e.id,title:e.title},e.id):"active"===C(e.end_date).campaignStatus?(0,Vt.jsx)(Wl,{img:e.banner,id:e.id,title:e.title,daysleft:C(e.end_date).daysLeft},e.id):"draft"===C(e.end_date).campaignStatus?(0,Vt.jsx)(Ql,{},e.id):null}))]}):"active"==y?(0,Vt.jsxs)("div",{className:"md:pr-[40px]",children:[(0,Vt.jsx)("h2",{className:"font-black text-xl md:text-2xl mb-[5px] md:mb-[10px]",children:"Active Campaign"}),(0,Vt.jsx)("p",{className:"text-base md:text-lg mb-6 md:mb-7",children:"Make edits and also view your dashboard for your active campaign"}),0==d.filter((function(e){return"active"===C(e.end_date).campaignStatus})).length?(0,Vt.jsx)(ql,{title:"You have no active campaign to show here"}):d.filter((function(e){return"active"===C(e.end_date).campaignStatus})).map((function(e,t){return(0,Vt.jsx)(Wl,{img:e.banner,id:e.id,title:e.title,daysleft:C(e.end_date).daysLeft},e.id)}))]}):"ended"==y?(0,Vt.jsxs)("div",{className:"md:pr-[40px]",children:[(0,Vt.jsx)("h2",{className:"font-black text-xl md:text-2xl mb-[5px] md:mb-[10px]",children:"Ended Campaign"}),(0,Vt.jsx)("p",{className:"md:text-lg mb-6 md:mb-7",children:"These are your campaigns that you ended or has completed its time frame. They will automatically be deleted after 30 days."}),0==d.filter((function(e){return"ended"===C(e.end_date).campaignStatus})).length?(0,Vt.jsx)(ql,{}):d.filter((function(e){return"ended"===C(e.end_date).campaignStatus})).map((function(e,t){return(0,Vt.jsx)(Yl,{img:e.banner,id:e.id,title:e.title},e.id)}))]}):"draft"==y?(0,Vt.jsxs)("div",{className:"md:pr-[40px]",children:[(0,Vt.jsx)("h2",{className:"font-black text-xl md:text-2xl mb-[5px] md:mb-[10px]",children:"Draft Campaign"}),(0,Vt.jsx)("p",{className:"text-base md:text-lg mb-6 md:mb-7",children:"Campaigns that are \u201csaved for later\u201d are stored as draft."}),0==Xl.filter((function(e){return"draft"==e.campaignstatus})).length?(0,Vt.jsx)(ql,{title:"Your draft box is empty"}):Xl.filter((function(e){return"draft"==e.campaignstatus})).map((function(e,t){return(0,Vt.jsx)(Ql,{},t)}))]}):""})]})})]})},Xl=[{campaignstatus:"active",title:"The fight for our environment in Lagos begins today",daysleft:"29",img:Bl},{campaignstatus:"draft",title:""},{campaignstatus:"ended",title:"The hours of hope is raising funding for the ultimate Brother Bernard",img:Ul},{campaignstatus:"active",title:"This is the title of the main user\u2019s crowdfunding and not a bigoted case so help them. ",daysleft:"60",img:Bl}];var Jl=n.p+"static/media/idIcon.c7d99085860cc1038a8ca5a44c8c5269.svg",Kl=function(e){var t=e.kycModal,n=e.setKycModal,r=Te();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(t?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsx)("div",{className:"w-[100%] xphones:w-[350px] md:w-[681px] 2xl:w-[800px] md:min-h-[300px] \n                    h-fit py-6 px-2 phones:px-4 md:p-10 bg-white rounded-md md:rounded-[10px]\n                    shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial mx-auto",children:(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("button",{className:"mb-4 md:mb-9 text-[14px] md:text-[26px] font-bold ml-auto ",onClick:function(){n(!1)},children:"Cancel"}),(0,Vt.jsxs)("div",{className:"flex flex-col items-center",children:[(0,Vt.jsx)("img",{src:Jl,alt:"Like icon",className:"w-[40px] md:w-[130px] mb-2"}),(0,Vt.jsx)("h5",{className:"mb-1 md:mb-2 font-black text-[16px] md:text-[35px] text-center ",children:"Let\u2019s verify your identity"}),(0,Vt.jsx)("p",{className:" mb-6 md:mb-8 text-center text-[13px] md:text-[20px] md:leading-[32px]",children:"You are to upload and submit a government issued  ID and any bank document"}),(0,Vt.jsx)("button",{className:"rounded md:rounded-lg bg-[#000000] py-3 md:py-5 px-[18px] md:px-9 text-[#FFFFFF] text-[14px] md:text-[28px] font-bold ",onClick:function(){n(!1),r("/kyc")},children:"Begin KYC verification"})]})]})})})]})})};var Zl=function(){var t=bt(),n=(Te(),lt((function(e){return e.managehomeorevent})),lt((function(e){return e.sidebarstate}))),r=lt((function(e){return e.sidebarslid})),a=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),o=JSON.parse(localStorage.getItem("userInfo")),s=T((0,e.useState)(!o.is_kyc_submitted),2),c=s[0],u=s[1];return(0,e.useEffect)((function(){t(yt("home"));var e=function(){var e=l(i().mark((function e(){var n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=localStorage.getItem("access_token"),e.prev=1,e.next=4,fetch("".concat(Fr,"/funding/api/"),{headers:{Authorization:"Bearer ".concat(n)}});case 4:return r=e.sent,e.next=7,r.json();case 7:a=e.sent,r.ok?t(kt(a)):console.error(a),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,Vt.jsxs)("div",{className:" bg-[#F9F9F9] min-h-full relative",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:"".concat(r?"brkpoint:ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(a&&n?"blur-md":""," \n            "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsx)(Gl,{})]}),(0,Vt.jsx)(Kl,{kycModal:c,setKycModal:u})]})};var $l=function(t){var n=bt(),r=T((0,e.useState)([]),2),a=r[0],o=r[1],s=T((0,e.useState)(""),2),c=s[0],u=s[1],d=T((0,e.useState)(!1),2),p=d[0],f=d[1];(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://restcountries.com/v3.1/all?fields=name");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,o(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching data: ",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var m=a.map((function(e){return{value:e.name.common,label:e.name.common}})).sort((function(e,t){return e.label.localeCompare(t.label)}));n(Tt(m));var h=T((0,e.useState)(!0),2),x=h[0],g=h[1],b=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),v=function(){var e=l(i().mark((function e(){var t,n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(f(!0),""===c){e.next=13;break}return t=localStorage.getItem("access_token"),(n=new FormData).append("location",c),e.next=7,fetch("".concat(Fr,"/users/api/profile/"),{method:"PATCH",headers:{Authorization:"Bearer ".concat(t)},body:n});case 7:return r=e.sent,e.next=10,r.json();case 10:a=e.sent,console.log(a),200==r.status?localStorage.setItem("userInfo",JSON.stringify(a)):alert("Location change failed");case 13:f(!1);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:" rounded-[5px] w-full md:w-[90%] lg:w-full xl:w-[75%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){g(1!=x)},children:[(0,Vt.jsx)("h3",{className:"text-sm md:text-lg font-bold",children:"Location"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(x?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsxs)("div",{className:" ".concat(x?"":"hidden"," flex flex-col gap-3 px-[15px] md:px-7 py-3 md:py-6"),children:[(0,Vt.jsxs)("div",{className:" ".concat(x?"flex flex-col md:flex-row md:items-center ":"hidden"," gap-5 md:gap-8 "),children:[(0,Vt.jsx)(Ds,{options:m,placeholder:"Search your country",onChange:function(e){u(e.value)},components:{DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})},IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"250px",height:"46px",border:t.isFocused?"1px solid #2CA9F2":"0.5px solid #DDDDDD",boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:b?"12px":"20px",paddingLeft:b?"4px":"12px",borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px",borderTopRightRadius:"10px",borderBottomRightRadius:"10px",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:b?"100%":"120%",zIndex:"30",color:"black"})}}}),(0,Vt.jsxs)("button",{onClick:v,className:"bg-[#2CA9F2] min-w-[102px] md:min-w-[160px] w-fit hover:bg-blue-500 h-9 md:h-[42px] text-white rounded-[5px] md:rounded-[12px] px-[11px] md:px-[15px] py-[2px] md:py-[5px] \n                        font-black text-sm md:text-lg leading-7 ",children:[(0,Vt.jsx)("div",{className:" ".concat(p?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(p?"hidden":"block"," "),children:"Change location"})]})]}),(0,Vt.jsx)("p",{className:"hidden md:block font-medium text-base leading-6 text-[#7D7D7D] ",children:c})]})]})};var ec=function(){var t=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):"",n=T((0,e.useState)(!0),2),r=n[0],a=n[1],o=T((0,e.useState)(""),2),s=o[0],c=o[1],u=T((0,e.useState)(!1),2),d=u[0],p=u[1],f=function(){var e=l(i().mark((function e(){var t,n,r,a;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p(!0),""===s){e.next=13;break}return t=localStorage.getItem("access_token"),(n=new FormData).append("email",s),e.next=7,fetch("".concat(Fr,"/users/api/profile/"),{method:"PATCH",headers:{Authorization:"Bearer ".concat(t)},body:n});case 7:return r=e.sent,e.next=10,r.json();case 10:a=e.sent,console.log(a),200==r.status?localStorage.setItem("userInfo",JSON.stringify(a)):alert("Email change failed");case 13:p(!1);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"rounded-[5px] w-full md:w-[90%] lg:w-full xl:w-[75%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){a(1!=r)},children:[(0,Vt.jsx)("h3",{className:"text-sm md:text-lg font-bold",children:"Email address"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(r?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsxs)("div",{className:" ".concat(r?"":"hidden"," flex flex-col gap-3 px-[15px] md:px-7 py-3 md:py-6"),children:[(0,Vt.jsxs)("div",{className:" ".concat(r?"flex flex-col md:flex-row md:items-center ":"hidden"," gap-5 md:gap-8 "),children:[(0,Vt.jsx)("input",{type:"text",placeholder:"What email do you want to change to?",className:"w-full md:w-[53%] h-[46px] \n                        border-[0.5px] border-[#DDDDDD] text-sm md:text-base py-2 px-2 md:px-5 \n                        outline-0 rounded focus:border-[#2CA9F2] focus:border-2 ",onChange:function(e){return c(e.target.value)}}),(0,Vt.jsxs)("button",{onClick:f,className:"bg-[#2CA9F2] min-w-[102px] md:min-w-[160px] w-fit hover:bg-blue-500 h-9 md:h-[42px] text-white rounded-[5px] md:rounded-[12px] px-[11px] md:px-[15px] py-[2px] md:py-[5px] \n                        font-black text-sm md:text-lg leading-7 ",children:[(0,Vt.jsx)("div",{className:" ".concat(d?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(d?"hidden":"block"," "),children:"Change email"})]})]}),(0,Vt.jsxs)("p",{className:"hidden md:block font-medium text-base leading-6 text-[#7D7D7D] ",children:["@",t.email]})]})]})};var tc=function(){var t=T((0,e.useState)(!0),2),n=t[0],r=t[1],a=T((0,e.useState)(!1),2),o=a[0],s=a[1],c=T((0,e.useState)({currentPassword:"",newPassword:"",confirmNewPassword:""}),2),u=c[0],d=c[1],p=function(){var e=l(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(!0),setTimeout((function(){alert(" Password change is coming soon "),s(!1)}),3e3);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{children:[(0,Vt.jsx)("h3",{className:"text-base md:text-xl font-bold mb-7 md:mb-8 ",children:"Change Your Password"}),(0,Vt.jsxs)("div",{className:" rounded-[5px] w-full md:w-[90%] lg:w-full xl:w-[75%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){r(1!=n)},children:[(0,Vt.jsx)("h3",{className:"text-sm md:text-lg font-bold",children:"Password"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(n?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsxs)("div",{className:" ".concat(n?"block":"hidden"," w-full py-3 md:py-6 px-[15px] md:px-7 "),children:[(0,Vt.jsx)("h4",{className:"font-bold text-sm md:text-base mb-[10px] md:mb-4",children:"Current password"}),(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row gap-[10px] md:gap-4 md:items-center mb-5 md:mb-9 ",children:[(0,Vt.jsx)("input",{type:"text",id:"currentpassword",placeholder:"What is your current password?",className:"w-full md:w-[370px] h-[46px] border-[0.5px] border-[#DDDDDD] \n                                py-2 px-[10px] md:px-5 outline-0 text-sm md:text-base rounded focus:border-[#2CA9F2] focus:border-2 ",onChange:function(e){return d(It(It({},u),{},{currentPassword:e.target.value}))}}),(0,Vt.jsx)("label",{htmlFor:"currentpassword",className:"text-[#2CA9F2] font-bold text-sm md:text-base cursor-pointer ",children:"Forgot password?"})]}),(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row gap-5 w-full mb-5 md:mb-8 ",children:[(0,Vt.jsxs)("section",{className:"w-full",children:[(0,Vt.jsx)("h4",{className:"font-bold text-sm md:text-base mb-[10px] md:mb-4",children:"New password"}),(0,Vt.jsx)("input",{type:"text",id:"newpassword",placeholder:"What is your new password?",className:"w-[100%] h-[46px] border-[0.5px] border-[#DDDDDD] \n                                    py-2 px-[10px] md:px-5 rounded text-sm md:text-base outline-0 focus:border-[#2CA9F2] focus:border-2 ",onChange:function(e){return d(It(It({},u),{},{newPassword:e.target.value}))}})]}),(0,Vt.jsxs)("section",{className:"w-full",children:[(0,Vt.jsx)("h4",{className:"font-bold text-sm md:text-base mb-[10px] md:mb-4",children:"Confirm new password"}),(0,Vt.jsx)("input",{type:"text",id:"newpassword",placeholder:"Repeat your new password?",className:"w-[100%] h-[46px] border-[0.5px] border-[#DDDDDD] \n                                    py-2 px-[10px] md:px-5 rounded text-sm md:text-base outline-0 focus:border-[#2CA9F2] focus:border-2 ",onChange:function(e){return d(It(It({},u),{},{confirmNewPassword:e.target.value}))}})]})]}),(0,Vt.jsxs)("button",{onClick:p,className:"bg-[#2CA9F2] min-w-[102px] md:min-w-[160px] w-fit hover:bg-blue-500 h-9 md:h-[42px] text-white rounded-[5px] md:rounded-[12px] px-[11px] md:px-[15px] py-[2px] md:py-[5px] \n                            font-black text-sm md:text-lg leading-7 ",children:[(0,Vt.jsx)("div",{className:" ".concat(o?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(o?"hidden":"block"," "),children:"Change password"})]})]})]})]})};var nc=function(){var t=T((0,e.useState)("open"),2),n=t[0],r=t[1],a=JSON.parse(localStorage.getItem("userInfo")),o=T((0,e.useState)(""),2),s=o[0],c=o[1],u=T((0,e.useState)(!1),2),d=u[0],p=u[1],f=function(){var e=l(i().mark((function e(){var t,n,r,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(p(!0),""===s){e.next=13;break}return t=localStorage.getItem("access_token"),(n=new FormData).append("username",s),e.next=7,fetch("".concat(Fr,"/users/api/profile/"),{method:"PATCH",headers:{Authorization:"Bearer ".concat(t)},body:n});case 7:return r=e.sent,e.next=10,r.json();case 10:o=e.sent,console.log(o),200==r.status?(localStorage.setItem("userInfo",JSON.stringify(o)),a=JSON.parse(localStorage.getItem("userInfo")),p(!1)):alert("Username change failed");case 13:p(!1);case 14:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"rounded-[5px] w-full md:w-[90%] lg:w-full xl:w-[75%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){r("open"==n?"close":"open")},children:[(0,Vt.jsx)("h3",{className:"text-sm md:text-lg font-bold",children:"Username"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat("open"==n?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsxs)("div",{className:" ".concat("open"==n?"":"hidden"," flex flex-col gap-3 px-[15px] md:px-7 py-3 md:py-6"),children:[(0,Vt.jsxs)("div",{className:" ".concat("open"==n?"flex flex-col md:flex-row md:items-center ":"hidden"," gap-5 md:gap-8 "),children:[(0,Vt.jsx)("input",{type:"text",placeholder:"What username do you want to change to?",className:"w-full md:w-[53%] h-[46px] \n                        border-[0.5px] border-[#DDDDDD] text-sm md:text-base \n                        py-2 px-2 md:px-5 outline-0 rounded focus:border-[#2CA9F2] focus:border-2  ",onChange:function(e){c(e.target.value)}}),(0,Vt.jsxs)("button",{className:"bg-[#2CA9F2] md:min-w-[160px] w-fit hover:bg-blue-500 h-9 md:h-[42px] text-white rounded-[5px] md:rounded-[12px] px-[11px] md:px-[15px] py-[2px] md:py-[5px] \n                        font-black text-sm md:text-lg leading-7 ",onClick:f,children:[(0,Vt.jsx)("div",{className:" ".concat(d?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(d?"hidden":"block"," "),children:"Change username"})]})]}),(0,Vt.jsxs)("p",{className:"hidden md:block font-medium text-base leading-6 text-[#7D7D7D] ",children:["@",a.username]})]})]})};var rc=function(e){return(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsxs)("div",{className:"mb-7 md:mb-11",children:[(0,Vt.jsx)("h2",{className:" font-black text-base md:text-xl leading-7 mb-2",children:"Account information"}),(0,Vt.jsx)("p",{className:"md:font-medium text-sm md:text-base ",children:"Update your account information such as your username, phone number, email address and country."})]}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col gap-8 md:gap-11 mb-[50px] md:mb-20",children:[(0,Vt.jsx)(nc,{}),(0,Vt.jsx)(ec,{}),(0,Vt.jsx)($l,{})]}),(0,Vt.jsx)(tc,{})]})};var ac=n.p+"static/media/Block icon2.aca7c99ca1bb2f1c057936cf2bcaac83.svg";var oc=n.p+"static/media/Block icon.61d170a501a0c046111a4f5447c687ed.svg";var ic=function(e){return(0,Vt.jsxs)("div",{className:"flex items-center max-w-[280px] truncate ",children:[(0,Vt.jsx)("img",{src:e.image,alt:"".concat(e.name,"'s profile picture "),className:"w-[50px] h-[50px] mr-2 "}),(0,Vt.jsx)("h4",{className:"font-bold text-base mr-4 truncate ",children:e.name}),(0,Vt.jsxs)("button",{className:" bg-[#2CA9F2] min-w-[90px] gap-1 flex items-start justify-center h-[33px] text-white py-2 px-2 rounded-xl font-semibold text-sm  ",children:[(0,Vt.jsx)("img",{src:oc,alt:"block icon",className:"w-[17px] h-[17px]"}),(0,Vt.jsx)("span",{children:"Unblock"})]})]})};n.p;n.p;var sc=[],lc=function(){var t=T((0,e.useState)("open"),2),n=t[0],r=t[1];return(0,Vt.jsxs)("div",{className:"w-full md:w-[90%] lg:w-[80] xl:w-[78%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){r("open"==n?"close":"open")},children:[(0,Vt.jsxs)("h3",{className:"text-sm md:text-lg font-bold flex items-center gap-2 ",children:[(0,Vt.jsx)("img",{src:ac,alt:"block icon",className:"w-[15px] h-[15px] md:w-5 md:h-5 "}),(0,Vt.jsx)("span",{className:"pt-[2px]",children:"Blocked accounts"})]}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat("open"==n?"":"rotate-180"," cursor-pointer w-[20px] h-[10px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsx)("div",{className:" ".concat("open"==n?"flex h-[300px] overflow-auto ":"hidden"," px-[10px] md:px-7 py-3 md:py-6 mb-3 gap-4 md:gap-8 flex-wrap items-center ").concat(sc.length?"":"justify-center h-[150px] "," "),children:sc.length?sc.map((function(e,t){return(0,Vt.jsx)(ic,{image:e.image,name:e.name},t)})):(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-[17px] text-center",children:"Nothing to show here :)"})})]})};var cc=n.p+"static/media/Mute icon.8856143a1698be64f4639a8dfee8cc85.svg";var uc=n.p+"static/media/Mute icon2.829e399d92e4ab04c2b739bef890aef1.svg";var dc=function(e){return(0,Vt.jsxs)("div",{className:"flex items-center max-w-[280px] truncate ",children:[(0,Vt.jsx)("img",{src:e.image,alt:"".concat(e.name,"'s profile picture "),className:"w-[50px] h-[50px] mr-2 "}),(0,Vt.jsx)("h4",{className:"font-bold text-base mr-4 truncate ",children:e.name}),(0,Vt.jsxs)("button",{className:" bg-[#2CA9F2] min-w-[90px] gap-1 flex items-start justify-center h-[33px] text-white py-2 px-2 rounded-xl font-semibold text-sm  ",children:[(0,Vt.jsx)("img",{src:uc,alt:"mute icon",className:"w-[17px] h-[17px]"}),(0,Vt.jsx)("span",{children:"Unmute"})]})]})};var pc=[],fc=function(){var t=T((0,e.useState)("open"),2),n=t[0],r=t[1];return(0,Vt.jsxs)("div",{className:"w-full md:w-[90%] lg:w-[80] xl:w-[78%] bg-white ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center p-[15px] md:py-5 md:px-7 cursor-pointer ",onClick:function(){r("open"==n?"close":"open")},children:[(0,Vt.jsxs)("h3",{className:"text-sm md:text-lg font-bold flex items-center gap-2 ",children:[(0,Vt.jsx)("img",{src:cc,alt:"mute icon",className:"w-[15px] h-[15px] md:w-5 md:h-5 "}),(0,Vt.jsx)("span",{className:"pt-[2px]",children:"Muted accounts"})]}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat("open"==n?"":"rotate-180"," cursor-pointer w-[20px] h-[10px] md:w-[30px] md:h-[14px]")})]}),(0,Vt.jsx)("hr",{className:" border-[1px] border-[#C4C4C4] "}),(0,Vt.jsx)("div",{className:" ".concat("open"==n?"flex h-[150px] overflow-auto ":"hidden"," px-[10px] md:px-7 py-3 md:py-6 mb-3 gap-4 md:gap-8 flex-wrap items-center ").concat(pc.length?"":"justify-center","  "),children:pc.length?pc.map((function(e,t){return(0,Vt.jsx)(dc,{image:e.image,name:e.name},t)})):(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-[17px] text-center",children:"Nothing to show here :)"})})]})};var mc=function(){return(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsxs)("div",{className:"mb-7 md:mb-11",children:[(0,Vt.jsx)("h2",{className:" font-black text-base md:text-xl leading-7 mb-2",children:"Privacy & Safety"}),(0,Vt.jsx)("p",{className:"md:font-medium text-sm md:text-base ",children:"You can mute and block other accounts or users, thereby restricting the kind of contents you want to see."})]}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col gap-8 md:gap-14 mb-5",children:[(0,Vt.jsx)(fc,{}),(0,Vt.jsx)(lc,{})]})]})};var hc=function(){var t=T((0,e.useState)("accounts"),2),n=t[0],r=t[1];return(0,Vt.jsxs)("div",{className:"mt-[90px] md:mt-[100px] w-full h-full fold:px-2 phones:px-3 xphones:px-5 md:px-8 lg:px-10 pt-6 pb-10 md:py-10 bg-[#F9F9F9]",children:[(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-xl phones:text-xl md:text-3xl leading-7 tracking-[0.5px] mb-9 md:mb-14 ",children:"Personalize your experience"}),(0,Vt.jsxs)("div",{className:"bg-white w-fit mt-[30px] md:mt-[40px] mb-[30px] md:mb-12",children:[(0,Vt.jsx)("button",{className:" ".concat("accounts"==n?"bg-black text-white ":"text-[#8E8E93] ","\n                  font-semibold rounded-[5px] px-[15px] py-[5px] text-xs phones:text-sm xphones:text-base"),onClick:function(){r("accounts")},children:"My accounts"}),(0,Vt.jsx)("button",{className:" ".concat("privacy"==n?"bg-black text-white ":"text-[#8E8E93] ","\n                  font-semibold rounded-[5px] px-[15px] py-[5px] text-xs phones:text-sm xphones:text-base "),onClick:function(){r("privacy")},children:"Privacy & Safety"}),(0,Vt.jsx)("button",{className:" ".concat("wallet"==n?"bg-black text-white ":"text-[#8E8E93] ","\n                  font-semibold rounded-[5px] px-[15px] py-[5px] text-xs phones:text-sm xphones:text-base "),onClick:function(){r("wallet")},children:"Wallet"})]}),(0,Vt.jsx)("div",{className:"w-full",children:"accounts"===n?(0,Vt.jsx)(rc,{}):(0,Vt.jsx)(mc,{})})]})};var xc=function(){var t=bt(),n=lt((function(e){return e.sidebarslid})),r=lt((function(e){return e.sidebarstate})),a=(0,vt.useMediaQuery)({query:"(max-width: 940px)"});return(0,e.useEffect)((function(){t(yt("settings")),window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:"font-arial bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(n?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(a&&r?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsx)(hc,{})]})]})};var gc=function(){var t=bt(),n=lt((function(e){return e.sidebarslid})),r=lt((function(e){return e.sidebarstate})),a=(0,vt.useMediaQuery)({query:"(max-width: 940px)"});return(0,e.useEffect)((function(){t(yt("organisecrowdfund")),window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:" bg-[#F9F9F9] relative min-h-full",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:"".concat(n?"brkpoint:ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(a&&r?"blur-sm":""," \n            "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsx)(Qs,{})]})]})};var bc=n.p+"static/media/usdtlogo.17dfb3c009861c86991cc622edbbd4b4.svg";n.p;n.p;var vc=n.p+"static/media/bank.b0d84e296d0f3205e871c24c38b309f4.svg";var yc=n.p+"static/media/tether.4f9903937448cecbb7b4e37e4259261a.svg",wc=function(e){var t=e.withdrawalModal,n=e.setWithdrawalModal,r=Te();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(t?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsx)("div",{className:"w-[100%] xphones:w-[350px] md:w-[781px] 2xl:w-[900px] md:min-h-[300px] \n                    h-fit py-6 px-2 phones:px-4 md:p-10 bg-white rounded-md md:rounded-[10px]\n                    shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial mx-auto",children:(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("button",{className:"mb-4 md:mb-8 text-[14px] md:text-[26px] font-bold ml-auto ",onClick:function(){n(!1)},children:"Cancel"}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-center px-2 md:px-4 xl:px-6 ",children:[(0,Vt.jsx)("h2",{className:"mb-[22px] md:mb-[62px] text-[16px] md:text-[35px] font-black text-center ",children:"Select method of withdrawal"}),(0,Vt.jsxs)("div",{className:"mb-[22px] md:mb-[56px] w-full flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:"flex gap-2 items-center ",children:[(0,Vt.jsx)("img",{src:vc,alt:"Bank",className:"w-[29px] md:w-[48px]  "}),(0,Vt.jsx)("h3",{className:"text-[12px] md:text-[22px] font-bold text-[#011217] ",children:"Withdraw into bank account"})]}),(0,Vt.jsx)("button",{className:"py-[5px] md:py-3 px-[9px] md:px-5 rounded-sm md:rounded-md border-[1px] md:border-2 border-black text-[10px] md:text-[18px] font-bold ",onClick:function(){return r("/bankwithdrawal")},children:"Add account"})]}),(0,Vt.jsxs)("div",{className:"mb-[24px] md:mb-[65px] w-full flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:"flex gap-2 items-center ",children:[(0,Vt.jsx)("img",{src:yc,alt:"Bank",className:"w-[29px] md:w-[48px]  "}),(0,Vt.jsx)("h3",{className:"text-[12px] md:text-[22px] font-bold text-[#011217] ",children:"Withdraw into USDT wallet"})]}),(0,Vt.jsx)("button",{className:"py-[5px] md:py-3 px-[9px] md:px-5 rounded-sm md:rounded-md border-[1px] md:border-2 border-black text-[10px] md:text-[18px] font-bold ",onClick:function(){return r("/usdtwithdrawal")},children:"Add address"})]}),(0,Vt.jsx)("p",{className:"text-center text-[11px] md:text-[18px]  ",children:"Bank account withdrawal option is available to only Nigerian users at this time. We're working on expanding this feature. Thank you for your understanding."})]})]})})})]})})},kc=function(e){var t=e.fundingModal,n=e.setFundingModal,r=Te();return(0,Vt.jsx)("div",{className:"w-full fixed z-50 inset-0 overflow-y-auto ".concat(t?"block":"hidden"),children:(0,Vt.jsxs)("div",{className:"w-full flex items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 transition-opacity","aria-hidden":"true",children:(0,Vt.jsx)("div",{className:"absolute inset-0 bg-gray-500 opacity-75"})}),(0,Vt.jsx)("div",{className:"inline-block align-bottom rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8",children:(0,Vt.jsx)("div",{className:"w-[100%] xphones:w-[350px] md:w-[781px] 2xl:w-[900px] md:min-h-[300px] \n                    h-fit py-6 px-2 phones:px-4 md:p-10 bg-white rounded-md md:rounded-[10px]\n                    shadow-[0px_0px_72px_0px_rgba(0,0,0,0.04)] font-arial mx-auto",children:(0,Vt.jsxs)("div",{className:"flex flex-col",children:[(0,Vt.jsx)("button",{className:"mb-4 md:mb-8 text-[14px] md:text-[26px] font-bold ml-auto ",onClick:function(){n(!1)},children:"Cancel"}),(0,Vt.jsxs)("div",{className:"w-full flex flex-col items-center px-2 md:px-4 xl:px-6 ",children:[(0,Vt.jsx)("h2",{className:"mb-[22px] md:mb-[62px] text-[16px] md:text-[35px] font-black text-center ",children:"Select method of funding"}),(0,Vt.jsxs)("div",{className:"mb-[22px] md:mb-[56px] w-full flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:"flex gap-2 items-center ",children:[(0,Vt.jsx)("img",{src:vc,alt:"Bank",className:"w-[29px] md:w-[48px]  "}),(0,Vt.jsx)("h3",{className:"text-[12px] md:text-[22px] font-bold text-[#011217] ",children:"Fund using debit/credit card"})]}),(0,Vt.jsx)("button",{className:"py-[5px] md:py-3 px-[9px] md:px-5 rounded-sm md:rounded-md border-[1px] md:border-2 border-black text-[10px] md:text-[18px] font-bold ",onClick:function(){return r("/bankfunding")},children:"Fund wallet"})]}),(0,Vt.jsxs)("div",{className:"mb-[24px] md:mb-[65px] w-full flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:"flex gap-2 items-center ",children:[(0,Vt.jsx)("img",{src:yc,alt:"Bank",className:"w-[29px] md:w-[48px]  "}),(0,Vt.jsx)("h3",{className:"text-[12px] md:text-[22px] font-bold text-[#011217] ",children:"Fund using USDT(Crypto) "})]}),(0,Vt.jsx)("button",{className:"py-[5px] md:py-3 px-[9px] md:px-5 rounded-sm md:rounded-md border-[1px] md:border-2 border-black text-[10px] md:text-[18px] font-bold ",onClick:function(){return r("/cryptofunding")},children:"Fund wallet"})]}),(0,Vt.jsx)("p",{className:"text-center text-[11px] md:text-[18px]  ",children:"We utilize the latest encryption technology and adhere to strict industry standards to ensure that your payment information remains confidential and secure at all times."})]})]})})})]})})};var jc=function(){var t=T((0,e.useState)("balance"),2),n=t[0],r=t[1],a=(0,vt.useMediaQuery)({query:"(max-width: 1024px)"}),o=T((0,e.useState)(!1),2),s=o[0],c=o[1],u=Ac.filter((function(e){return e.time.includes("mins")})),d=[{value:"last3months",label:"Last 3 months"},{value:"last6months",label:"Last 6 months"},{value:"last12months",label:"Last 12 months"}],p=[{value:"thismonth",label:"This month"}].concat(d),f=T((0,e.useState)({value:"last3months",label:"Last 3 months"}),2),m=(f[0],f[1]),h=T((0,e.useState)({value:"thismonth",label:"This month"}),2),x=(h[0],h[1]),g=function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[12px] md:w-[15px] h-[7px] md:h-[9px] "})},b=T((0,e.useState)(!1),2),v=b[0],y=b[1],w=T((0,e.useState)(!1),2),k=w[0],j=w[1],N=T((0,e.useState)({walletBalance:"0.00",amountEarned:"0.00"}),2),A=N[0],S=N[1];return(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(Fr,"/pay/api/wallet"),{headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))}});case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,console.log(n.wallet_balances.total_balance),t.ok&&S({walletBalance:n.wallet_balances.total_balance,amountEarned:n.wallet_balances.donation}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-[20px] md:px-3 lg:pl-[31px] lg:pr-[43px] pt-8 md:pt-[37px] pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("h1",{className:"font-black text-[22px] md:text-[32px] mb-[5px] md:mb-4 font-merriweather ",children:"Wallet"}),(0,Vt.jsx)("p",{className:" text-base md:text-lg mb-7 md:mb-8 ",children:"Check your wallet balance, withdraw  your funds"}),(0,Vt.jsxs)("div",{className:"flex lg:hidden md:gap-3 mb-7 ",children:[(0,Vt.jsx)("button",{className:"py-[7px] phones:py-[10px] px-[12px] phones:px-[15px] \n                    ".concat("balance"==n?"text-white bg-black":"text-[#8E8E93]"," rounded-[5px]  text-sm md:text-base "),onClick:function(){return r("balance")},children:"Balance"}),(0,Vt.jsx)("button",{className:"py-[7px] phones:py-[10px] px-[12px] phones:px-[15px] \n                    ".concat("transactions"==n?"text-white bg-black":"text-[#8E8E93]"," rounded-[5px]  text-sm md:text-base "),onClick:function(){return r("transactions")},children:"Transactions"}),(0,Vt.jsx)("button",{className:"py-[7px] phones:py-[10px] px-[12px] phones:px-[15px] \n                    ".concat("activities"==n?"text-white bg-black":"text-[#8E8E93]"," rounded-[5px]  text-sm md:text-base "),onClick:function(){return r("activities")},children:"Activities"})]}),(0,Vt.jsxs)("div",{className:"lg:flex lg:gap-[64px]",children:[(0,Vt.jsxs)("section",{className:"w-full md:w-fit",children:[(0,Vt.jsx)("h2",{className:" ".concat(a?"balance"==n?"":"hidden":""," text-lg md:text-[22px] font-black mb-5 md:mb-[35px] "),children:"Account Balance and Information"}),(0,Vt.jsxs)("div",{className:" ".concat(a?"balance"==n?"":"hidden":""," flex flex-col w-full "),children:[(0,Vt.jsxs)("div",{className:"flex flex-col 2xl:flex-row gap-4 lg:gap-7 mb-5 md:mb-12 w-full ",children:[(0,Vt.jsxs)("div",{className:"flex items-center md:justify-center gap-2 phones:gap-5 xl:gap-14 2xl:gap-5 md:min-w-[380px] 2xl:min-w-[350px]  bg-white py-3 phones:py-5 md:py-[25px] 2xl:py-[30px] px-[15px] phones:px-[30px] rounded-[10px] shadow-[0px_0px_16px_rgba(0,0,0,0.04)] w-full ",children:[(0,Vt.jsx)("img",{src:bc,alt:"USDT logo",className:"w-[52px] md:w-[68px] h-[48px] md:h-[64px] "}),(0,Vt.jsxs)("section",{className:"flex flex-col gap-2 md:gap-3",children:[(0,Vt.jsx)("h4",{className:"text-base md:text-lg text-[#525252]",children:"Wallet Balance"}),(0,Vt.jsx)("h4",{className:"text-lg md:text-[22px] font-black leading-6 ",children:A.walletBalance}),(0,Vt.jsx)("h4",{className:"text-base leading-5 text-[#37BCF7] font-black",children:"+0 USD "})]})]}),(0,Vt.jsxs)("div",{className:"flex items-center md:justify-center gap-2 phones:gap-5 xl:gap-14 2xl:gap-5 md:min-w-[380px] 2xl:min-w-[350px]  bg-white py-3 phones:py-5 md:py-[25px] 2xl:py-[30px] px-[15px] phones:px-[30px] rounded-[10px] shadow-[0px_0px_16px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsx)("img",{src:bc,alt:"USDT logo",className:"w-[52px] md:w-[68px] h-[48px] md:h-[64px] "}),(0,Vt.jsxs)("section",{className:"flex flex-col gap-2 md:gap-3",children:[(0,Vt.jsx)(Ds,{options:d,onChange:function(e){m(e.value)},placeholder:"Last 3 months",components:{DropdownIndicator:g,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"145px",height:"12px",border:(t.isFocused,0),boxShadow:(t.isFocused,0),"&:hover":{border:(t.isFocused,0)},backgroundColor:"#F9F9F9",cursor:"pointer",caretColor:"transparent",paddingRight:a?"12px":"16px",paddingLeft:a?"6px":"8px",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",borderTopRightRadius:a?"20px":"24px",borderBottomRightRadius:a?"20px":"24px",color:"blue",z:"10",fontSize:"12px"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black",fontSize:"12px"})},menuList:function(e){return It(It({},e),{},{padding:0,fontSize:"12px"})},placeholder:function(e){return It(It({},e),{},{color:"black",fontSize:"12px"})}}}),(0,Vt.jsx)("h4",{className:"text-[#525252] text-base md:text-lg ",children:"Amount Earned"}),(0,Vt.jsx)("h4",{className:"font-black text-lg md:text-[22px] leading-6 ",children:A.amountEarned})]})]})]}),(0,Vt.jsx)("button",{className:"text-base text-white bg-[#37BCF7] leading-5 font-black py-[10px] px-[15px] \n                        block w-[85%] md:w-[67%] max-w-[403px] h-[42px] rounded-[5px] md:rounded-[10px] mb-[12px] mx-auto ",onClick:function(){y(!0)},children:"Withdraw Funds"}),(0,Vt.jsx)("button",{className:"text-base text-[#37BCF7] hover:bg-white leading-5 font-black py-[10px] px-[15px] \n                            block w-[85%] md:w-[67%] max-w-[403px] h-[42px] rounded-[5px] md:rounded-[10px] mb-[70px] mx-auto ",onClick:function(){j(!0)},children:"Fund Wallet"})]}),(0,Vt.jsx)(wc,{withdrawalModal:v,setWithdrawalModal:y}),(0,Vt.jsx)(kc,{fundingModal:k,setFundingModal:j}),(0,Vt.jsxs)("div",{className:" ".concat(a?"transactions"==n?"block":"hidden":""," "),children:[(0,Vt.jsx)("h4",{className:"inline-block clear-right leading-6  text-lg md:text-[22px] font-black mb-7 md:4 ",children:"Latest Transactions"}),(0,Vt.jsx)("div",{className:"flex float-right relative bottom-2 ",children:(0,Vt.jsx)(Ds,{options:p,onChange:function(e){x(e.value)},placeholder:"This month",components:{DropdownIndicator:g,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:a?"120px":"145px",height:"12px",border:(t.isFocused,0),boxShadow:(t.isFocused,0),"&:hover":{border:(t.isFocused,0)},backgroundColor:"#ffffff",cursor:"pointer",caretColor:"transparent",paddingRight:a?"8px":"16px",paddingLeft:a?"4px":"8px",borderTopLeftRadius:"8px",borderBottomLeftRadius:"8px",borderTopRightRadius:a?"20px":"24px",borderBottomRightRadius:a?"20px":"24px",color:"blue",z:"10",fontSize:"12px"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black",fontSize:"12px"})},menuList:function(e){return It(It({},e),{},{padding:0,fontSize:"12px"})},placeholder:function(e){return It(It({},e),{},{color:"black",fontSize:"12px"})}}})}),(0,Vt.jsxs)("p",{className:"text-[#8E8E93] text-sm md:text-lg text-center flex gap-2 items-center justify-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:""}),"No latest transaction"]})]})]}),(0,Vt.jsx)("div",{className:" ".concat(a?"activities"==n?"block":"hidden":"","  "),children:(0,Vt.jsxs)("section",{className:"font-arial md:flex-1 md:min-w-[320px] md:max-w-[450px] 2xl:min-w-[370px] lg:min-w-[350px] lg:max-w-[370px] lg:bg-white h-fit rounded-[10px] ",children:[(0,Vt.jsxs)("div",{className:"py-5 md:py-[35px] md:px-[23px] md:border-b-[0.5px] md:border-[#D8D8D8]",children:[(0,Vt.jsx)("h3",{className:"text-lg md:text-[22px] font-black mb-[5px] md:mb-3 ",children:"Activites"}),(0,Vt.jsx)("p",{className:"text-sm md:text-base",children:"See  your donation activites for your campaign. "})]}),(0,Vt.jsx)(Nc,{number:u.length}),(0,Vt.jsx)("div",{className:"md:py-2 md:px-5 flex flex-col gap-4 ".concat(s?"h-[450px] overflow-scroll activitiesScrollBar":""," ").concat(Ac.length?"":"flex items-center justify-center"," "),children:Ac.length?Ac.map((function(e,t){return(0,Vt.jsx)(El,{userdp:e.userdp,time:e.time,amt:e.amt,username:e.username},t)})):(0,Vt.jsxs)("p",{className:"text-[#8E8E93] text-sm md:text-lg flex gap-2 items-center",children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:""}),(0,Vt.jsx)("span",{children:"No latest activity "})]})}),(0,Vt.jsxs)("div",{className:"hidden md:flex flex-col items-center justify-center rounded-b-[10px] py-3 gap-2 ",children:[(0,Vt.jsx)("span",{className:"text-xs font-black text-center ".concat(Ac.length?"":"text-[#D8D8D8]"," "),children:s?"Click on button to go up":"Click on button to go down"}),(0,Vt.jsx)("img",{src:Ac.length?Pl:Fl,alt:"down button",className:"w-8 cursor-pointer transform ".concat(s?"rotate-180 duration-slow":"duration-slow"),onClick:function(){c(!s)}})]})]})})]})]})},Nc=function(e){return(0,Vt.jsxs)("div",{className:" ".concat(e.number<1?"hidden":""," bg-[#37BCF7] rounded-full px-3 py-2 text-sm md:text-base font-black w-fit mt-1 mb-3 md:mt-3 md:mb-1 md:ml-3"),children:[e.number," new ",e.number>1?"activities":"activity"]})},Ac=[];var Sc=function(){var t=bt(),n=lt((function(e){return e.sidebarslid})),r=lt((function(e){return e.sidebarstate})),a=(0,vt.useMediaQuery)({query:"(max-width: 940px)"});return(0,e.useEffect)((function(){t(yt("wallet")),window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:" bg-[#F9F9F9] min-h-full",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(n?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(a&&r?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsx)(jc,{})]})]})};n.p;var Cc=n.p+"static/media/locateicon2.4c17aa203f87d50e3cd88067c8bfd69c.svg";var Ec=n.p+"static/media/twittericon.7f5a6903ef25879437d737bd8a6da247.svg";var Pc=n.p+"static/media/facebookicon.44d599c96d997d3cf14c1e2b0835f00e.svg";var Fc=n.p+"static/media/instagramicon.9fd4f1c15c5d830b6573cb67bf1b0a05.svg";var Tc=n.p+"static/media/likeIcon.4703e91d84b9f06619b679adb666668f.svg";var Oc=function(e){return(0,Vt.jsxs)("div",{className:"flex items-start gap-[10px] md:gap-4 bg-white border-[1px] border-[#F9F9F9] py-[10px] md:py-[15px] px-[20px] rounded-[5px] md:rounded-none ",children:[(0,Vt.jsx)("img",{src:e.userdp?"https://palbucks-bucket.s3.amazonaws.com/".concat(e.userdp):Ut,alt:"user profile",className:" w-12 md:w-[56px] rounded-full"}),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h4",{className:"font-black text-base md:text-lg mb-1 md:mb-[6px]",children:e.username}),(0,Vt.jsx)("p",{className:"mb-[10px] md:mb-[15px] text-[13px] md:text-base  ",children:e.time}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg",children:[(0,Vt.jsx)("img",{src:Tc,alt:"Like icon",className:"inline w-4 md:w-5 h-4 md:h-5"})," ",(0,Vt.jsx)("span",{className:"font-bold md:font-black ",children:"Liked"})," your crowdfunding campaign"]})]})]})};var _c=function(e){return console.log(e.username),(0,Vt.jsxs)("div",{className:"flex items-start gap-[10px] md:gap-4 bg-white border-[1px] border-[#F9F9F9] py-[10px] md:py-[15px] px-[20px] rounded-[5px] md:rounded-none ",children:[(0,Vt.jsx)("img",{src:e.userdp?"https://palbucks-bucket.s3.amazonaws.com/".concat(e.userdp):Ut,alt:"user profile",className:" w-12 md:w-[56px] rounded-full"}),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("h4",{className:"font-black text-base md:text-lg mb-1 md:mb-[6px]",children:["None None"!==e.username?e.username:" ","  "]}),(0,Vt.jsx)("p",{className:"mb-[10px] md:mb-[15px] text-[13px] md:text-base  ",children:e.time}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg",children:[(0,Vt.jsx)("span",{className:"font-black",children:"Commented"})," on your crowdfunding campaign ",(0,Vt.jsxs)("span",{className:"font-black",children:[" \u201c",e.comment,"\u201d"]})]})]})]})};var Dc=n.p+"static/media/palbuckslogo.943eaa14290edb06fccfa623c34993a0.svg";var Ic=function(e){return(0,Vt.jsxs)("div",{className:"flex items-start gap-[10px] md:gap-4 bg-white border-[1px] border-[#F9F9F9] py-[10px] md:py-[15px] px-[20px] rounded-[5px] md:rounded-none ",children:[(0,Vt.jsx)("img",{src:Dc,alt:"user profile",className:" w-12 md:w-[56px] rounded-full"}),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h4",{className:"font-black text-base md:text-lg mb-1 md:mb-[6px]",children:"Palbucks"}),(0,Vt.jsx)("p",{className:"mb-[10px] md:mb-[15px] text-[13px] md:text-base  ",children:e.timestamp}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg mb-[10px] md:mb-[15px] ",children:["Your crowdfunding campaign has reached ",(0,Vt.jsxs)("span",{className:"font-black",children:[e.percentage_reached,"%"]})," of its goal."]}),(0,Vt.jsx)("button",{className:"border-2 border-[#E61B00] py-[6px] px-[13px] md:px-[15px] rounded-[5px] md:rounded-[10px] text-[#E61B00] text-xs md:text-base font-black ",children:"End campaign"})]})]})};var Rc=function(e){function t(){return(t=l(i().mark((function t(){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(Fr,"/funding/api/").concat(e.id,"/organiser/response/"),{method:"POST",headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))},body:JSON.stringify({response:!0})});case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,console.log(r),"Co Organiser request accepted successfully."==r.message&&alert("Co Organiser request accepted successfully."),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error Accepting Request: ",t.t0),alert("Error Accepting Request");case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}function n(){return(n=l(i().mark((function t(){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(Fr,"/funding/api/").concat(e.id,"/organiser/response/"),{method:"POST",headers:{Authorization:"Bearer ".concat(localStorage.getItem("access_token"))},body:JSON.stringify({response:!1})});case 3:return n=t.sent,t.next=6,n.json();case 6:r=t.sent,console.log(r),"Co Organiser request rejected successfully."===r.message&&alert("Co Organiser request rejected successfully."),t.next=15;break;case 11:t.prev=11,t.t0=t.catch(0),console.error("Error Rejecting Request: ",t.t0),alert("Error Rejecting Request");case 15:case"end":return t.stop()}}),t,null,[[0,11]])})))).apply(this,arguments)}return(0,Vt.jsxs)("div",{className:"flex items-start gap-[10px] md:gap-4 bg-white border-[1px] border-[#F9F9F9] py-[10px] md:py-[15px] px-[20px] rounded-[5px] md:rounded-none ",children:[(0,Vt.jsx)("img",{src:e.userdp?"https://palbucks-bucket.s3.amazonaws.com/".concat(e.userdp):Ut,alt:"user profile",className:" w-12 md:w-[56px] rounded-full"}),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h4",{className:"font-black text-base md:text-lg mb-1 md:mb-[6px]",children:e.username}),(0,Vt.jsx)("p",{className:"mb-[10px] md:mb-[15px] text-[13px] md:text-base  ",children:e.time}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg mb-[10px] md:mb-[15px] ",children:["is requesting you to ",(0,Vt.jsx)("span",{className:"font-black",children:"join"})," her crowdfunding campaign"]}),(0,Vt.jsxs)("div",{className:"flex gap-[15px] ",children:[(0,Vt.jsx)("button",{className:"py-[6px] px-[13px] md:px-[15px] rounded-[5px] md:rounded-[10px] bg-[#37BCF7] text-white text-xs md:text-base font-black ",onClick:function(){return t.apply(this,arguments)},children:"Accept"}),(0,Vt.jsx)("button",{className:" border-2 border-[#37BCF7] py-[6px] px-[13px] md:px-[15px] rounded-[5px] md:rounded-[10px] bg-white text-[#37BCF7] text-xs md:text-base font-black ",onClick:function(){return n.apply(this,arguments)},children:"Decline"})]})]})]})};var Lc=function(e){return(0,Vt.jsxs)("div",{className:"flex items-start gap-[10px] md:gap-4 bg-white border-[1px] border-[#F9F9F9] py-[10px] md:py-[15px] px-[20px] rounded-[5px] md:rounded-none ",children:[(0,Vt.jsx)("img",{src:e.userdp?"https://palbucks-bucket.s3.amazonaws.com/".concat(e.userdp):Ut,alt:"user profile",className:" w-12 md:w-[56px] rounded-full"}),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h4",{className:"font-black text-base md:text-lg mb-1 md:mb-[6px]",children:e.username}),(0,Vt.jsx)("p",{className:"mb-[10px] md:mb-[15px] text-[13px] md:text-base  ",children:e.time}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg",children:[(0,Vt.jsx)("span",{className:"font-black",children:"Accepted"})," your co-organiser request"]})]})]})};var Mc=function(){var t=bt(),n=lt((function(e){return e.notificationsData}));console.log(n),n.forEach((function(e){e.time=Ml(e.timestamp)}));var r=n.filter((function(e){return e.time.includes("hour")||e.time.includes("min")||e.time.includes("sec")})),a=n.filter((function(e){return e.time.includes("day")})),o=n.filter((function(e){return e.time.includes("week")})),i=n.filter((function(e){return e.time.includes("month")||e.time.includes("year")})),s=lt((function(e){return e.newNotificationsAlert})),l=lt((function(e){return e.sidebarslid})),c=lt((function(e){return e.sidebarstate})),u=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),d=Te();return(0,e.useEffect)((function(){return t({type:"set notificationspage active"}),window.scrollTo(0,0),function(){t({type:"set notificationspage inactive"})}}),[]),(0,e.useEffect)((function(){s&&t({type:"removeNotificationAlert"})}),[s]),console.log(n.length),(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(l?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(u&&c?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[25px] lg:pr-[27px] pt-6 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-[22px] md:mb-10 w-[25px] md:w-[32px] inline-block cursor-pointer ",onClick:function(){d(-1),t({type:"set notificationspage inactive"})}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-2xl md:text-[32px] mb-[5px] md:mb-4 ",children:"Notifications"}),(0,Vt.jsx)("p",{className:" text-base md:text-lg mb-8 ",children:"See notifications about your crowdfunding campaigns"}),(0,Vt.jsx)(Bc,{period:"Today",periodNotifications:r}),(0,Vt.jsx)(Bc,{period:"This week",periodNotifications:a}),(0,Vt.jsx)(Bc,{period:"This month",periodNotifications:o}),(0,Vt.jsx)(Bc,{period:"This year",periodNotifications:i}),(0,Vt.jsxs)("div",{className:" ".concat(0==n.length?"flex mr-auto w-fit items-center justify-center gap-5 px-20 xl:px-40":"hidden","  "),children:[(0,Vt.jsx)("img",{src:Jt,alt:"info icon",className:"w-6"}),(0,Vt.jsx)("p",{className:"text-lg font-arial text-[#8E8E93]",children:"No notification to show"})]})]})]})]})};function Bc(e){var t=e.period,n=e.periodNotifications;return(0,Vt.jsxs)(Vt.Fragment,{children:[(0,Vt.jsx)("h2",{className:" ".concat(0==n.length?"hidden":"block"," text-base md:text-xl font-bold mb-[18px] md:mb-6 "),children:t}),(0,Vt.jsx)("div",{className:" ".concat(0==n.length?"hidden":"block"," mb-10 md:mb-[45px] flex flex-col gap-[15px] md:gap-0 "),children:n.reverse().map((function(e,t){return"like"==e.type?(0,Vt.jsx)(Oc,{userdp:e.dp,username:e.name,time:e.time},t):"comment"==e.type?(0,Vt.jsx)(_c,{userdp:e.dp,username:e.name,time:e.time,comment:e.comment},t):"milestone"==e.type?(0,Vt.jsx)(Ic,{timestamp:e.time,percentage_reached:e.percentage_reached},t):"co-organiser-request"==e.type?(0,Vt.jsx)(Rc,{userdp:e.userdp,username:e.invited_by,time:e.time},t):"accept"==e.type?(0,Vt.jsx)(Lc,{userdp:e.userdp,username:e.username,time:e.time},t):void 0}))})]})}var Uc=function(e){return(0,Vt.jsxs)("div",{className:" bg-[#FFFFFF] py-[15px] px-[20px] md:max-w-[540px] lg:max-w-[450px] 2xl:max-w-[540px]  shadow-[0px_0px_16px_rgba(0,0,0,0.04);] rounded-[5px] w-full md:w-[45%] lg:w-[46%] ",children:[(0,Vt.jsxs)("div",{className:"flex justify-between gap-2 w-full mb-[17px] items-center  ",children:[(0,Vt.jsx)("h2",{className:"font-bold text-lg md:text-[22px] md:leading-[30px] -tracking-[0.41px] ",children:e.topic}),(0,Vt.jsx)("img",{src:e.icon,alt:"article description icon",className:"w-7 md:w-[32px] h-8 md:h-9"})]}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg text-[#525252] md:leading-6 mb-[15px] md:mb-5 line-clamp-3 ",children:e.description}),(0,Vt.jsx)("button",{className:"text-white text-xs md:text-base bg-[#37BCF7] py-[5px] px-[13px] md:px-[15px] font-black rounded-[5px] md:rounded-[10px] ",children:"Read Article"})]})};var zc=n.p+"static/media/basicsarticleicon.3d6b56de1d12d41d3478054256a05154.svg";var Hc=n.p+"static/media/reportarticleicon.3002bb1b3f066a05af93ad83fe260ee8.svg";var Wc=n.p+"static/media/withdrawalarticleicon.26dda34a17758ea3cad3b04eff03e7ba.svg";var Vc=n.p+"static/media/manageaccountarticon.933257d9a4be730aa1005a524044bee9.svg";var Qc=n.p+"static/media/supportedcountriesart.10afe6f43fadff57c2899c2a920e0e76.svg";var Yc=n.p+"static/media/crowdfundart.36c6c06756c1f2ce52fd39c6d2874433.svg";var qc=n.p+"static/media/walletconnectart.364f00a51134e3b7b523b21cd6660f14.svg";var Gc=n.p+"static/media/palbucksart.e506d2390118c6726f4d7c149eba258c.svg";var Xc=n.p+"static/media/instagramicon2.94dafbd9c0916c47fed871e37f14b088.svg";var Jc=n.p+"static/media/emailicon.0adb276e0850bbb422f9712537113be2.svg";var Kc=n.p+"static/media/twittericon.2b1339544e769bba636338ad574d8b0a.svg";var Zc=function(){bt();var t=lt((function(e){return e.sidebarslid})),n=lt((function(e){return e.sidebarstate})),r=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),a=((0,vt.useMediaQuery)({query:"(max-width: 576px)"}),(0,vt.useMediaQuery)({query:"(max-width: 392px)"})),o=Te();return(0,e.useEffect)((function(){window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(t?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(r&&n?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[22px] lg:pr-[35px] pt-8 md:pt-[46px] pb-5 lg:pb-[30px] mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-[22px] md:mb-10 w-[25px] md:w-[32px] inline-block cursor-pointer ",onClick:function(){o(-1)}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-[22px] md:text-[32px] mb-[5px] md:mb-4 ",children:"Hi there, how can we help you?"}),(0,Vt.jsx)("p",{className:" text-base md:text-lg mb-7 md:mb-8 ",children:"Read helpful articles, and also report issues to us"}),(0,Vt.jsxs)("div",{className:"flex w-[96%] xl:w-[96%] mb-14 md:mb-10 gap-0 ",children:[(0,Vt.jsx)("input",{type:"search",className:" w-full xl:w-[80%] max-w-[950px] h-[30px] phones:h-[40px] xl:h-[44px] text-sm md:text-base pl-10 md:pl-12 lg:pl-14 placeholder-[#7A7575] bg-[length:20px] md:bg-[length:24px] bg-[image:url('./images/search.svg')] bg-[left_calc(5%)_top_calc(47%)] md:bg-[left_calc(2%)_top_calc(45%)] xl:bg-[left_calc(2%)_top_calc(48%)] bg-no-repeat rounded-l-3xl shadow-[0px_0px_16px_rgba(0,0,0,0.04)] md:shadow-none font-normal outline-2 outline-[#37BCF7] focus:caret-[#2CA9F2] focus:border-[#37BCF7] focus:border-2 ",placeholder:a?"Search Help":"Search the Palbucks Help Center"}),(0,Vt.jsx)("div",{className:"bg-[#37BCF7] text-white flex items-center justify-center w-[90px] lg:w-[110px] xl:w-[120px] h-[30px] phones:h-[40px] xl:h-[44px] rounded-r-3xl text-sm md:text-lg font-black cursor-pointer ",children:"Search"})]}),(0,Vt.jsx)("h2",{className:"text-xl lg:text-2xl font-black mb-6 ",children:"Articles by Topic"}),(0,Vt.jsx)("div",{className:"flex flex-wrap gap-[25px] md:gap-[30px] mb-16 ",children:$c.map((function(e,t){return(0,Vt.jsx)(Uc,{topic:e.topic,icon:e.icon,description:e.description},t)}))}),(0,Vt.jsx)("h2",{className:"text-xl lg:text-2xl font-black mb-6 ",children:"Most Frequent Articles"}),(0,Vt.jsx)("div",{className:"flex flex-wrap gap-[30px] mb-16 ",children:eu.map((function(e,t){return(0,Vt.jsx)(Uc,{topic:e.topic,icon:e.icon,description:e.description},t)}))}),(0,Vt.jsxs)("div",{className:"bg-white w-full md:w-[80%] mx-auto rounded ",children:[(0,Vt.jsx)("div",{className:"p-[15px] md:py-[25px] border-b-[2px] border-b-[#d1d1d5] ",children:(0,Vt.jsx)("h1",{className:"text-base md:text-[22px] text-center font-black ",children:"Contact Us"})}),(0,Vt.jsxs)("div",{className:"flex gap-2 justify-around p-3 md:py-[30px] md:px-14 2xl:px-20 ",children:[(0,Vt.jsxs)("div",{className:"cursor-pointer flex items-center justify-center gap-2 md:gap-4 bg-[#35FAA01A] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Kc,alt:"twitter icon",className:"w-4 md:w-6 lg:w-8 "}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Twitter"})]}),(0,Vt.jsxs)("div",{className:"cursor-pointer flex items-center justify-center gap-2 md:gap-4 bg-[#35FAA01A] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Jc,alt:"email icon",className:"w-4 md:w-6 lg:w-8"}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Email"})]}),(0,Vt.jsxs)("div",{className:"cursor-pointer flex items-center justify-center gap-2 md:gap-4 bg-[#35FAA01A] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Xc,alt:"Instagram icon",className:"w-4 md:w-6 lg:w-8"}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Instagram"})]})]})]})]})]})]})},$c=[{topic:"Basics",icon:zc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"Withdrawals",icon:Wc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"Manage account",icon:Vc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"Report & security",icon:Hc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"}],eu=[{topic:"Countries supported on Palbucks",icon:Qc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"How to connect to external wallet",icon:qc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"Organise a crowdfund step by step",icon:Yc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"},{topic:"What is Palbucks wallet",icon:Gc,description:"This a a complete description for the crowdfunding to aid others fund this particular crowdfunding. Users are allowed to read this and lorem ipsum the daya rkwme"}];var tu=n.p+"static/media/1icon.71ebe64b1b3f819bc8a9d92c6f412d26.svg";var nu=n.p+"static/media/2icon.1d37bfaebf7fa679bfec83b3d2396ce3.svg";var ru=n.p+"static/media/3icon.54c2f884854f18bbfd58d81a624c9c24.svg";var au=n.p+"static/media/4icon.1c9ab4b97ac7cc111c9b18f7300de1bf.svg";var ou=n.p+"static/media/5icon.b43d307ee8a4d244ae13ce1d292b8297.svg";var iu=n.p+"static/media/6icon.387d776911f01a1f9255e47e8535a0da.svg";var su=n.p+"static/media/7icon.b36018cc48339bd6a935727cef4a20fb.svg";var lu=n.p+"static/media/8icon.06b74b8d6b8b270166faf847068b1e16.svg";var cu=function(e){return(0,Vt.jsxs)("div",{className:" ".concat("green"==e.background?"bg-[#35FAA099]":"bg-[#FFFFFF]"," py-[15px] px-[20px] md:max-w-[540px] lg:max-w-[450px]\n         2xl:max-w-[540px] shadow-[0px_0px_16px_rgba(0,0,0,0.04);] rounded-[5px] w-full md:w-[45%] lg:w-[46%]\n          "),children:[(0,Vt.jsxs)("div",{className:"flex justify-between gap-2 w-full mb-2 md:mb-[17px]  items-center  ",children:[(0,Vt.jsx)("h2",{className:"font-bold text-lg md:text-[22px] md:leading-[30px] -tracking-[0.41px] ",children:e.step}),(0,Vt.jsx)("img",{src:e.icon,alt:"article description icon",className:"w-7 md:w-[32px] h-8 md:h-9"})]}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg text-[#525252] md:leading-6 mb-[15px] md:mb-5 font-normal ",children:e.description})]})};var uu=function(){var t=lt((function(e){return e.sidebarslid})),n=lt((function(e){return e.sidebarstate})),r=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),a=Te();return(0,e.useEffect)((function(){window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(t?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(r&&n?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[25px] lg:pr-[27px] pt-8 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-[22px] md:mb-10 w-[25px] md:w-[32px] inline-block cursor-pointer ",onClick:function(){a(-1)}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-[22px] md:text-[32px] mb-[5px] md:mb-4 ",children:"How does Palbucks crowdfunding work?"}),(0,Vt.jsx)("p",{className:" text-base md:text-lg mb-14 md:mb-16 ",children:"Palbucks is a platform that enables you crowdfund for a cause."}),(0,Vt.jsx)("h2",{className:"text-lg md:text-2xl font-black mb-5 md:mb-6 ",children:"Setup Your Crowdfunding Campaign - Step by Step"}),(0,Vt.jsx)("div",{className:"flex flex-wrap gap-6",children:du.map((function(e,t){return(0,Vt.jsx)(cu,{step:e.step,icon:e.icon,description:e.description,background:e.background},e.step)}))})]})]})]})},du=[{step:"Open Organise Crowdfund Page ",icon:tu,description:"Head to the side menu at the left corner of your screen, and click on the \u201cOrganise Crowdfund Page\u201d",background:"white"},{step:"Enter Crowdfunding details",icon:nu,description:"Type in your crowdfunding details, that is: (1) Title of the campaign, (2) Description  (3) Category of campaign",background:"white"},{step:"Enter Target Amount",icon:ru,description:"Next you will have to enter your target amount (denomination value is USD). This amount will be between 100 USD to 1 million USD. ",background:"white"},{step:"Add a Co-organiser (Optional) ",icon:au,description:"Although this is optional, you can choose to add a co-organiser to your campaign. This organiser must be an already existing user.",background:"white"},{step:"Enter Location & Campaign End Date",icon:ou,description:"Next you will enter your present location (Country) and then you will have to set a date when your crowdfund campaign will come to an end. ",background:"white"},{step:"Upload a Campaign Image",icon:iu,description:"Finally, you will have to upload an image that will be appropriate for your campaign. Your image should follow our Community Guidelines.",background:"white"},{step:"Let Everyone Know About your Campaign",icon:su,description:"Share your crowdfunding campaign on social media by either copying the generated link for your campaign or by using the share button.",background:"white"},{step:"Manage your Campaign",icon:lu,description:"You can manage your campaign in the \u201cFor you\u201d page. You can also withdraw your donated funds and at the end, thank your donors.",background:"white"}];var pu=function(e){return(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 ".concat(e.marginb?"mb-10 md:mb-20":"mb-4 md:mb-8"," "),children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:e.title}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7",children:e.description})]})]})};var fu=function(){bt();var t=lt((function(e){return e.sidebarslid})),n=lt((function(e){return e.sidebarstate})),r=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),a=Te();return(0,e.useEffect)((function(){window.scrollTo(0,0)}),[]),(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(t?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(r&&n?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[25px] lg:pr-[27px] pt-8 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-[22px] md:mb-10 w-[25px] md:w-[32px] inline-block cursor-pointer ",onClick:function(){a(-1)}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-[22px] md:text-[32px] mb-[5px] md:mb-4 ",children:"Learn About our Terms of Service"}),(0,Vt.jsx)("p",{className:" text-base md:text-lg mb-14 ",children:"Updated: March 30, 2022"}),(0,Vt.jsx)("h2",{className:"text-lg md:text-2xl font-black mb-[5px] md:mb-[15px] ",children:"Palbucks Terms of Service"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg mb-5 tracking-[0.1px] ",children:"These General Terms of Service (\u201cGeneral Terms\u201d) are a legal agreement between you, If you are an Organizer (as defined below), Beneficiary (as defined below) to a Fundraiser (as defined below), comment contributor, or Donor (as defined below) (collectively referred to herein as a \u201cUser\u201d)  ) AND Palbucks, (\u201dPalbucks,\u201d \u201cwe,\u201d \u201cour\u201d or \u201cus\u201d) and govern your use of Palbucks\u2019 services, including mobile applications, websites, software, hardware, and other products and services (collectively, the \u201cServices\u201d)."}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg mb-5 tracking-[0.1px] ",children:["Subject to these Terms of Service, as amended from time to time (\u201cTerms of Service\u201d), Beevibe Technologies Limited. provides the Palbucks platform to You (user) through its website at ",(0,Vt.jsx)("span",{className:"font-black",children:"www.Palbucks.co"})," and the Palbucks Community and related services (collectively, with the Platform, including any new features and applications, the \u201cServices\u201d). If You are located anywhere in the world you are contracting with Beevibe Technologies Ltd. (Nigeria). Unless specifically indicated otherwise, for purposes of the following Terms of Service, \u201cPalbucks,\u201d \u201cwe,\u201d \u201cus,\u201d \u201cour,\u201d and other similar terms, shall refer to the party with whom you are contracting."]}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg mb-5 tracking-[0.1px] ",children:"We reserve the right, at our sole discretion, to change or modify portions of these Terms of Service at any time and without notice. When we do this, we will post the revised Terms of Service on this page and will indicate the date of such revision."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg mb-12 md:mb-20 tracking-[0.1px] ",children:"Your continued use of the Services after the date of any such changes constitutes your acceptance of the new Terms of Service. To the extent allowed by law, the English version of these Terms of Service is binding and other translations are for convenience only. If you do not wish to accept the new Terms of Service, you may discontinue your use of the Services."}),(0,Vt.jsx)("h3",{className:"text-lg md:text-2xl font-black mb-4 md:mb-8 ",children:"ACCESS AND USE OF THE SERVICES"}),(0,Vt.jsx)(pu,{title:"1. The Services Description:",description:"The Services are offered as a platform to allow an individual, entity or non-profit organization \n                        (the \u201cOrganizer\u201d) to post a fundraiser (\u201cFundraiser\u201d) to the Platform to accept monetary donations \n                        (\u201cDonations\u201d) from donors (\u201cDonors\u201d) on behalf of the beneficiary of the Fundraiser (\u201cBeneficiary\u201d)."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"2. Payment Processor:"}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7",children:["Palbucks is not a payment processor and does not hold any funds. Instead, Palbucks uses stable coins and elements of decentralised finance (defi) on the blockchain for the movement of funds on the platform.. You acknowledge and agree that the use of the blockchain is integral to the Services and that we do not exchange information with any third- party Payment Processors in order to facilitate the provision of the Services. See our ",(0,Vt.jsx)(ol,{to:"/privacypolicy",className:" text-[#37BCF7] ",children:"Privacy Policy"}),"."]})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"3. Transaction Fee:"}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7",children:["Although there are no fees to start or maintain a Fundraiser, please keep in mind that a transaction fee, including credit and debit charges, is deducted from each withdrawal (hereinafter and on the website referred to as \u201cTransaction Fee\u201d). To learn more about the Platform and the applicable Transaction Fee, visit Palbucks",(0,Vt.jsx)(ol,{className:"text-[#37BCF7]",children:" Pricing "}),"."]})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"4. The Services are Platforms; We are not a Broker, Financial Institution, Creditor or Charity:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"The Services are administrative platforms only. Palbucks facilitates the Fundraiser of the Organizers and permits Donors to make donations to these Fundraisers. Palbucks is not a broker, agent, financial institution, creditor or nonprofit corporation."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"All information and content provided by Palbucks relating to the Services is for informational purposes only, and Palbucks does not guarantee the accuracy, completeness, timeliness or reliability of any such information or content. No content is intended to provide financial, legal, tax or other professional advice. Before making any decisions regarding any Fundraisers, Charities (as defined below), Donations, Donors, or any information or content relating to the Services, you should consult your financial, legal, tax or other professional advisor as appropriate. You acknowledge that all information and content accessed by you using the Services is at your own risk."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"Palbucks has no control over the conduct of, or any information provided by, a User and hereby disclaims all liability in this regard to the fullest extent permitted by applicable law. We do not guarantee that a Fundraiser will obtain a certain amount of Donations or any Donations at all. We do not endorse any Fundraiser, User, or cause and we"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"make no guarantee, express or implied, that any information provided through the Services is accurate. We expressly disclaim any liability or responsibility for the outcome or success of any Fundraiser. You, as a Donor, must make the final determination as to the value and appropriateness of contributing to any User or Fundraiser."})]})]}),(0,Vt.jsx)(pu,{title:"5. No Solicitation:",description:"The Platform is offered to help Organizers raise money. Palbucks merely provides the technology to allow \n                        Fundraisers to connect with Donors. The existence of the Services is not a solicitation of donations by \n                        Palbucks, and Palbucks does not engage in any solicitation activities, or consult on the solicitation of \n                        contributions from the public, on behalf of any individual, entity, or organization. By using the Services, \n                        you understand and agree that Palbucks is not responsible for the use of your Donations or the amount of \n                        funds raised for the User or Fundraiser."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"6. Donors:"}),(0,Vt.jsxs)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 ",children:["All Donations are at your own risk. When you make a Donation through the Platform, it is your responsibility to understand how your money will be used and to check the Fundraiser content regularly for any updates. Palbucks is not responsible for any offers, promises, rewards or Promotions (as defined below) made or offered by Users or Fundraisers; such conduct violates these Terms of Service. We do not and cannot verify the information that Users or Fundraisers supply, nor do we represent or guarantee that the Donations will be used in accordance with any fundraising purpose prescribed by a User or Fundraiser or in accordance with applicable laws. Notwithstanding the foregoing, we take possible fraudulent activity and the misuse of funds reported to us very seriously. You can learn more about How We Protect Our Community. If you have reason to believe that a User or Fundraiser is not raising or using the funds for their stated purpose, please use the \u201c",(0,Vt.jsx)("span",{className:"font-bold",children:"Report"}),"\u201d button on the Fundraiser to alert our team of this potential issue and we will investigate."]})]})]}),(0,Vt.jsx)(pu,{title:"7. Organizers:",description:"You, as an Organizer, represent, warrant, and covenant that: (i) all information you provide in connection \n                        with a Fundraiser or Beneficiary is accurate, complete, and not likely to deceive Users and that you will \n                        post updates as needed so that Users understand the use of funds and any other relevant information about \n                        your Fundraiser; (ii) all Donations contributed to your Fundraiser will be used solely as described in the \n                        materials that you post or otherwise provide; (iii) if you withdraw donations believed by Donors to be raised \n                        on behalf of someone other than you (i.e., the Beneficiary), all Donations will be given to and/or spent on \n                        behalf of the Beneficiary; (iv) if you add a Beneficiary through the Services, you relinquish control of the \n                        Donations; (v) you will not infringe the rights of others; (vi) you will comply with all relevant and \n                        applicable laws and financial reporting obligations, including but not limited to, laws and obligations \n                        relating to registration, tax reporting, political contributions, and asset disclosures for your Fundraiser; \n                        (vii) to the extent you share with us any personal data of any third party for any purpose, including the \n                        names, email addresses and phone numbers of your personal contacts, you have the authority (including any \n                        necessary consents), as required under applicable law, to provide us with such personal data and allow us \n                        to use such personal data for the purposes for which you shared it with us; and (viii) you will not provide \n                        or offer to provide goods or services in exchange for Donations. You authorize Palbucks, and Palbucks reserves \n                        the right to provide information relating to your Fundraiser to Donors, Beneficiaries of your Fundraiser or \n                        law enforcement or other regulatory authorities, and to assist in any investigation thereof. If you use the \n                        Services as an agent of a Charity to raise funds for such Charity, you represent and warrant that: (a) you \n                        are a representative of the Charity, which representative is authorized to raise funds for the Charity and \n                        bind the Charity to these Terms of Service; (b) you are raising funds for a Charity, with a cause or \n                        activity that is legal under all applicable federal, state, provincial, territorial and local laws and \n                        regulations; (c) all donated funds will be used solely for the purpose you have stated on and in connection \n                        with your Fundraiser, and under no circumstances may you use the funds for any other purpose; (d) your \n                        Charity has and will maintain tax-exempt status under applicable law (for example, the Internal Revenue \n                        Code in the United States or the Income Tax Act in Canada); and (e) if your Charity is in the United \n                        States, it is registered with GuideStar or the IRS tax exempt organization database, or, if your Charity \n                        is in Canada, it is listed in the Canada Revenue Agency\u2019s database of registered charities."}),(0,Vt.jsx)(pu,{title:"8. Your Registration Obligations:",description:"You may be required to register with Palbucks to access and use certain features of the Services. If you choose \n                        to register for the Services, you agree to provide and maintain true, accurate, current and complete information \n                        about yourself or your Charity as prompted by the Services\u2019 registration form. Organizers must register using \n                        their true identities (or the identities of the Charities\u2019 authorized representatives), including their name, \n                        address and any image or video purporting to depict the Organizer or the Beneficiary of such Fundraiser. You \n                        agree to keep registration information current and up to date. Registration data and certain other information \n                        about you are governed by these Terms of Service, including our Privacy Notice. If you are under 13 years of age \n                        (16 in Europe), you are not authorized to use the Services, with or without registering. In addition, if you are \n                        under the age of majority in your jurisdiction (typically 18 or 19 years of age), you may use the Services, with \n                        or without registering, only with the approval of your parent or guardian. Certain aspects of our Services may \n                        also require you to register with, and agree to the terms of, third-party service providers (e.g., Payment \n                        Processors), with whom Palbucks has entered into contracts, in order to be able to benefit from their services. \n                        If Palbucks or one of our partners at any time discovers that the information you provided about you or the \n                        purpose of your Fundraiser is incorrect or violates any of these Terms of Service or their terms of service, \n                        your access to the Services may be immediately suspended and/or terminated and fines may be applied by relevant \n                        authorities, which will in all such cases be payable by you."}),(0,Vt.jsx)(pu,{title:"9. Taxes:",description:"It is your responsibility to determine what, if any, taxes apply to the Donations you receive through your use \n                        of the Services. It is solely your responsibility to assess, collect, report or remit the correct tax, if any, \n                        to the appropriate tax authority."}),(0,Vt.jsx)(pu,{title:"10. Member Account, Password and Security:",description:"You are responsible for maintaining the confidentiality of your password and account, if any, and are fully \n                        responsible for any and all activities that occur under your password or account. You agree to: (i) \n                        immediately notify Palbucks of any unauthorized use of your password or account or any other breach of \n                        security; and (ii) sign out from your account at the end of each session when accessing the Services. \n                        Palbucks will not be liable for any loss or damage arising from your failure to comply with this section."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"11. Content Manifestly Made Public by the User:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"A. Public Content; Public Display of Information and Donations. Some of your activity on and through the Services is public, such as content you post publicly on the Platform (including descriptions, texts, music, sound, information, data, software, graphics, comments, photos, videos, images, trademarks, logos, brands or other materials you upload or post through the Services or share with other Users or recipients) (collectively, \u201cUser Content\u201d). Additionally, User profile information, including your first and last name, public email address, organization, personal biography, and other information you enter in connection with your User profile may be displayed to other Users to facilitate User interaction within the Services. For example, as an Organizer, you might post your personal data \u2013 such as information about a recent hospital stay \u2013 which data might be considered sensitive data. In addition, as a Donor, you have the option to publicly display your Donation for all to see, including on search engines (like Google and Yahoo). To keep the details of your Donation private from the general public, click the \u201cPrivate\u201d checkbox during the Donation process. Please remember that if you choose to provide information using certain public features of the Services, then that information is governed by the privacy settings of those particular features and may be publicly available. Individuals reading such information may use or disclose it to other individuals or entities without our knowledge and without your knowledge, and search engines may index that information. We therefore urge you to think carefully about including any specific information you may deem private in content that you create or information that you submit through the Services. Please see our Privacy Policy for information on the ways that we may collect, use, and store certain information about you and your use of the Services."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 ",children:"B. Other Information. Please be advised that User Content and other information, solicited or unsolicited, that you provide to Palbucks may be publicly accessible, such as information you post in forums, comment sections or in response to surveys we may send out. We also collect information through customer support communications, your communications to us of ideas for new products or modifications to existing products, and other unsolicited submissions, or any questions, comments, suggestions, ideas, feedback or other information about the Services (collectively, with publicly-accessible information, \u201cOther Information\u201d). By sending us Other Information: (i) you agree that we are under no obligation of confidentiality, expressed or implied, with respect to the Other Information; (ii) you acknowledge that we may have something similar to the Other Information already under consideration or in development; (iii) you agree that Palbucks will be entitled to the unrestricted use and dissemination of the Other Information for any purpose, commercial or otherwise, without acknowledgment or compensation to you; (iv) you represent and warrant that you have all rights necessary to submit the Other Information; (v) to the extent necessary, you hereby grant to Palbucks a fully paid, royalty-free, perpetual, irrevocable, worldwide, non-exclusive, and fully transferable and sublicensable right (through multiple tiers) and license to use, reproduce, perform, display, distribute, adapt, modify, re-format, create derivative works of, and otherwise commercially or non-commercially exploit in any manner, any and all Other Information, and to sublicense the foregoing rights; and (vi) you irrevocably waive, and cause to be waived, against Palbucks and its Users any claims and assertions of any moral rights contained in such Other Information. This Other Information section shall survive any termination of your account or the Services. You acknowledge and agree that Palbucks may preserve Other Information, as well as User Content, and may also disclose your Other Information or User Content if required to do so by law or in the good-faith belief that such preservation or disclosure is reasonably necessary to: (a) comply with legal process, applicable laws or government requests; (b) enforce these Terms of Service; (c) respond to claims that any User Content violates the rights of third parties; or (d) protect the rights, property, or personal safety of Beevibe, its Users, employees or the public."})]})]}),(0,Vt.jsx)(pu,{title:"12. Third-Party Communications:",description:"If you use any feature of the Services that allows you to communicate with third parties (such as to refer \n                        a third party to the Services or to communicate with them regarding a Fundraiser or a Donation), either by \n                        submitting data about the third party (\u201cThird-Party Data\u201d) to the Services or otherwise permitting the \n                        Services to automatically access Third-Party Data in your possession, you acknowledge and agree that you \n                        have the authority of the relevant third party for us to access and use the relevant Third-Party Data and \n                        that you have notified these third parties and informed them how their information is collected and used \n                        by Palbucks to provide the Services. We reserve the right to identify you as the person who has made the \n                        referral in any messages that are sent to them. We use Third-Party Data to: (i) contact such third party \n                        using the Third-Party Data provided; and/or (ii) provide you with an editable template message designed to \n                        facilitate communications between you and such third party through the Services. In addition to sending the \n                        foregoing communications, we may also send reminders or related messages to you and to third parties on your \n                        behalf from time to time where permitted by applicable law. In each case, any such communication sent to \n                        third parties using Third-Party Data will provide a means to \u201copt out\u201d of receiving further communication of \n                        the same nature."}),(0,Vt.jsx)(pu,{title:"13. Sales Prohibited on the Platform:",description:"You are not permitted to offer any goods or service \n                    in exchange for a Donation on the Platform."}),(0,Vt.jsx)(pu,{title:"14. Data Retention:",description:"You acknowledge that Palbucks has no obligation to you to retain data relating to any account or \n                        Fundraiser. You acknowledge that Palbucks reserves the right to delete data or to terminate accounts \n                        or Fundraisers at any time and for any reason, with or without notice, and without any liability to you \n                        or to any third party for any claims, damages, costs or losses resulting therefrom. The foregoing does not \n                        apply to Fundraisers or accounts started by Charities on the Platform, in which case Palbucks will provide \n                        reasonable notice where possible."}),(0,Vt.jsx)(pu,{title:"15. Mobile Services and Text Messages:",description:"The Palbucks Services include certain features that may be made available via a mobile device, including the ability to: \n                        (i) upload User Content to the Platform; (ii) browse the Platform; and (iii) access certain items through an application \n                        downloaded and installed on a mobile device (collectively, the \u201cMobile Services\u201d). To the extent you access Mobile Services, \n                        your wireless service carrier\u2019s standard charges, data rates and other fees may apply. In addition, downloading, installing, \n                        or using certain Mobile Services may be prohibited or restricted by your carrier, and not all Mobile Services may work with \n                        all carriers or devices. By using the Mobile Services, you agree that we may communicate with you about matters related to \n                        your account by SMS, MMS, text message or other electronic means to your mobile device and that certain information about \n                        your usage of the Mobile Services may be communicated to us. We will comply with any additional requirements that may apply \n                        under local laws and regulations before communicating with you in this manner. In the event that you change or deactivate \n                        your mobile telephone number, you agree to promptly update your Palbucks account information to ensure that your messages \n                        are not sent to the person that acquires your old number."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-10 md:mb-20 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"16. Prohibited Contents"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"You are solely responsible for compliance with all applicable law in relation to your Fundraiser or use of the Services. You are further solely responsible for all User Content that you upload, post, publish, display, transmit or otherwise use. If you are not the Beneficiary of the Fundraiser you organize, you agree to deliver funds to the ultimate Beneficiary directly and as soon as possible. You agree to fully cooperate with any request we make for evidence we deem necessary to verify your compliance with these Terms of Service. The following are examples of User Content and/or use that is illegal or prohibited by Palbucks. This list is not exhaustive and we reserve the right to remove any Fundraiser and/or investigate any User who, in our sole discretion, violates any of the terms or spirit of these Terms of Service, or other policies such as the Palbucks Giving Guarantee or Beneficiary Guarantee. As we investigate your Fundraiser, a User, or User Content, we may consider all available material including but not limited to social media, related news, and any other information that we, in our sole discretion, deem relevant in our review. We further reserve the right, without limitation, to ban or disable your use of the Services, remove the offending User Content, suspend or terminate your account, stop payments to any Fundraiser, freeze or place a hold on Donations, and report you to law enforcement authorities or otherwise take appropriate legal action, including without limitation, seeking restitution on behalf of ourselves and/or our Users. Without limiting the foregoing, you agree and represent, warrant and covenant:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 md:mb-8 ",children:"A. not to use the Services to raise funds or establish or contribute to any Fundraiser with the implicit or explicit purpose of promoting or involving:"}),(0,Vt.jsxs)("ul",{className:" list-disc flex flex-col gap-1 md:gap-3 text-sm md:text-lg pl-5 md:pl-10 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("li",{children:"the violation of any law, regulation, industry requirement, or third-party guidelines or agreements by which you are bound, including those of payment card providers and transaction processors that you utilize in connection with the Services;"}),(0,Vt.jsx)("li",{children:"any election campaigns in an unsupported country unless run by a registered organization within a supported country;"}),(0,Vt.jsx)("li",{children:"User Content or Fundraisers that are fraudulent, misleading, inaccurate, dishonest, or impossible;"}),(0,Vt.jsx)("li",{children:"drugs, narcotics, steroids, controlled substances, pharmaceuticals or similar products or therapies that are either illegal, prohibited, or enjoined by an applicable regulatory body; legal substances that provide the same effect as an illegal drug; or other products, medical practices, or any related equipment or paraphernalia that have been found by an applicable regulatory body to cause consumer harm;"}),(0,Vt.jsx)("li",{children:"knives, explosives, ammunition, firearms, or other weaponry or accessories;"}),(0,Vt.jsx)("li",{children:"annuities, investments, loans, equity or lottery contracts, lay-away systems, off-shore banking or similar transactions, money service businesses (including currency exchanges, check cashing or the like), pyramid schemes, \u201cget rich quick schemes\u201d (i.e., investment opportunities or other services that promise high rewards), network marketing and referral marketing programs, debt collection or crypto-currencies;"}),(0,Vt.jsx)("li",{children:"gambling, gaming and/or any other activity with an entry fee and a prize, including, but not limited to raffles, casino games, sports betting, fantasy sports, horse or greyhound racing, lottery tickets, raffle tickets, auctions and other ventures that facilitate gambling, games of skill or chance (whether or not it is legally defined as a lottery), Promotions involving monetary rewards, including gift cards, or sweepstakes;"}),(0,Vt.jsx)("li",{children:"User Content that reflects or promotes behavior that we deem, in our sole discretion, to be an abuse of power or in support of hate, violence, harassment, bullying, discrimination, terrorism, terrorist financing or intolerance of any kind relating to race, ethnicity, national origin, religious affiliation, sexual orientation, sex, gender, gender identity, gender expression, disabilities or diseases;"}),(0,Vt.jsx)("li",{children:"the legal defense of alleged crimes associated with hate, violence, harassment, bullying, discrimination, terrorism, or intolerance of any kind relating to race, ethnicity, national origin, religious affiliation, sexual orientation, sex, gender, gender identity, gender expression, serious disabilities or diseases, financial crimes or crimes of deception;"}),(0,Vt.jsx)("li",{children:"the funding of a ransom, human trafficking or exploitation, vigilantism, bribes or bounty;"}),(0,Vt.jsx)("li",{children:"pornography or other sexual content;"}),(0,Vt.jsx)("li",{children:"offensive, graphic, perverse or sensitive content;"}),(0,Vt.jsx)("li",{children:"credit repair or debt settlement services;"}),(0,Vt.jsx)("li",{children:"the receipt or grant of cash advances or lines of credit to yourself or to another person for purposes other than those purposes clearly stated in the Fundraiser;"}),(0,Vt.jsx)("li",{children:"publication of User Content (such as mug shots), where we deem, in our sole discretion, that the primary purpose of posting such User Content is to cause reputational harm;"}),(0,Vt.jsx)("li",{children:"the sale or resale of a good or service;"}),(0,Vt.jsx)("li",{children:"the aggregation of funds owed to third parties, factoring, or other activities intended to obfuscate the origin of funds;"}),(0,Vt.jsx)("li",{children:"counterfeit music, movies, software, or other licensed materials without the appropriate authorization from the rights holder;"}),(0,Vt.jsx)("li",{children:"products or services that directly infringe or facilitate infringement upon the trademark, patent, copyright, trade secrets, or proprietary or privacy rights of any third party;"}),(0,Vt.jsx)("li",{children:"the unauthorized sale or resale of brand name or designer products or services;"}),(0,Vt.jsx)("li",{children:"the sale of goods or services that are illegally imported or exported;"}),(0,Vt.jsx)("li",{children:"processing, where there is no bona fide donation accepted; cash advance; card testing; evasion of card network chargeback monitoring programs;"}),(0,Vt.jsx)("li",{children:"the collecting or providing of funds for any purpose other than as described in a Fundraiser description;"}),(0,Vt.jsx)("li",{children:"any other activity that Palbucks may deem, in its sole discretion, to be in support of individuals and/or entities associated with alleged financial crimes including but not limited to corruption, bribery, tax evasion, fraud, and activities of a similar nature; or"}),(0,Vt.jsx)("li",{children:"any other activity that Palbucks may deem, in its sole discretion, to: (a) be unacceptable or objectionable; (b) restrict or inhibit any other person from using or enjoying the Services; or (c) expose Palbucks or Users to any harm or liability of any type."})]}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"B. not to use the Services to transmit or otherwise upload any User Content that: (i) infringes any intellectual property or other proprietary rights of any party; (ii) you do not have a right to upload under any law or under contractual or fiduciary relationships; (iii) contains software viruses or any other computer code, files or programs designed to interrupt, destroy or limit the functionality of any computer software or hardware or telecommunications equipment; (iv) poses or creates a privacy or security risk to any person; or (v) constitutes unsolicited or unauthorized advertising, promotional materials, commercial activities and/or sales, \u201cjunk mail,\u201d \u201cspam,\u201d \u201cchain letters,\u201d \u201cpyramid schemes,\u201d \u201ccontests,\u201d \u201csweepstakes,\u201d or any other form of solicitation;;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"C. not to interfere with or disrupt servers or networks connected to or used to provide the Services or their respective features, or disobey any requirements, procedures, policies or regulations of the networks connected to or used to provide the Services;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"D. not to harvest, collect or publish personally identifiable information of others;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"E. not to raise funds for a minor without the express permission of the minor\u2019s guardian unless the funds are transferred into a trust account for the sole benefit of the minor;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"F. not to use the Services on behalf of a third party or post any personal data or other information about a third party, without the express consent of that third party;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"G. not to use another User\u2019s account or URL without permission, impersonate any person or entity, falsely state or otherwise misrepresent your affiliation with a person or entity, misrepresent a Charity or Fundraiser through the Services, or post User Content in any inappropriate category or areas on the Services;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"H. not to create any liability for Palbucks or cause us to lose (in whole or in part) the services of our Internet Service Provider(s), web hosting company or any other vendors or suppliers;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"I. not to gain unauthorized access to the Services, or any account, computer system, or network connected to the Services, by any unauthorized or illegal means;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"J. not to obtain or attempt to obtain any materials or information not intentionally made available through the Services;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"K. not to use the Services to post, transmit or in any way exploit any information, software or other material for commercial purposes, or that contain advertising, except that using the Services for fundraising activities in accordance with these Terms of Service is expressly permitted;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"L. not to transmit more request messages through the Services in a given period of time than a human can reasonably produce in the same period by using a conventional online web browser;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"M. not to undertake any activity or engage in any conduct that is inconsistent with the business or purpose of the Services; or"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"N. not to attempt to undertake indirectly any of the foregoing"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"Additionally, with respect to all Donations you make or accept through the Services, you agree and represent, warrant and covenant:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"A. not to make or accept any Donations that you know or suspect to be erroneous, suspicious or fraudulent;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"B. not to use the Services in or for the benefit of a country, organization, entity, or person embargoed or blocked by any government, including those on sanctions lists identified by the Nigerian Economic and financial Crimes commission and counterpart organisation elsewhere."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"C. to maintain reasonable and standard security measures to protect any information transmitted and received through the Services, including without limitation, adhering to any security procedures and controls required by Palbucks from time to time;"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"D. to maintain a copy of all electronic and other records related to Fundraisers and Donations as necessary for Palbucks to verify compliance with these Terms of Service and make such records available to Palbucks upon our request. For clarity, the foregoing does not affect or limit your obligations to maintain documentation as required by applicable laws, rules, regulations, or governmental authority; and"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"E. at Palbucks\u2019 request, to fully cooperate in the auditing of, investigation of (including without limitation, investigations by Palbucks, a Payment Processor, or a regulatory or governmental authority), and remedial efforts to correct any alleged or uncovered violation or wrongdoing of a User to whom, or Fundraiser or Donation to which, you are connected."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7",children:"Palbucks reserves the right to refuse, condition, or suspend any Donations or other transactions that we believe in our sole discretion may violate these Terms of Service or harm the interests of our Users, business partners, the public, or Palbucks, or that expose you, Palbucks, or others to risks unacceptable to us. We may share any information related to your use of the Services with the appropriate financial institution, regulatory authority, or law enforcement agency consistent with our Privacy Notice. This information may include information about you, your account, your Donors, your Donations, and transactions made through or in connection with your use of the Service."})]})]}),(0,Vt.jsx)("h3",{className:"text-lg md:text-2xl font-black mb-4 md:mb-8 ",children:"INTELLECTUAL PROPERTY RIGHTS"}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"1. Services Content, Software and Trademarks:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"You acknowledge and agree that the Services may contain content or features (\u201cServices Content\u201d) that are protected by copyright, patent, trademark, trade secret or other proprietary rights and laws. Except as expressly authorized by Palbucks, you agree not to modify, copy, frame, scrape, rent, lease, loan, sell, distribute or create derivative works based on the Services or the Services Content, in whole or in part, except that the foregoing does not apply to your own User Content that you legally upload to the Services. In connection with your use of the Services you will not engage in or use any data mining, spiders, robots, scraping or similar data gathering or extraction methods. If you are blocked by Palbucks from accessing the Services (including by blocking your IP address), you agree not to implement any measures to circumvent such blocking (e.g., by masking your IP address or using a proxy IP address). Any use of the Services or the Services Content other than as specifically authorized herein is strictly prohibited. The technology and software underlying the Services or distributed in connection therewith are the property of Palbucks, our affiliates and our partners (the \u201cSoftware\u201d). You agree not to copy, modify, create a derivative work of, reverse engineer, reverse assemble or otherwise attempt to discover any source code, sell, assign, sublicense, or otherwise transfer any right in the Software. Any rights not expressly granted herein are reserved by Palbucks."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 ",children:"The Palbucks name and logos are trademarks and service marks of Palbucks (collectively the \u201cPalbucks Trademarks\u201d). Other company, product, and service names and logos used and displayed via the Services may be trademarks or service marks of their respective owners, who may or may not endorse or be affiliated with or connected to Palbucks. Nothing in these Terms of Service or the Services should be construed as granting, by implication, estoppel, or otherwise, any license or right to use any of Palbucks Trademarks displayed on the Services, without our prior written permission in each instance. All goodwill generated from the use of Palbucks Trademarks will inure to our exclusive benefit."})]})]}),(0,Vt.jsx)(pu,{title:"2. Third-Party Material:",description:"Under no circumstances will Palbucks be \n                        liable in any way for any content or materials of any third parties \n                        (including Users) or any User Content (including, but not limited to, for any errors or omissions in any User Content), \n                        or for any loss or damage of any kind incurred as a result of the use of any such User Content. You \n                        acknowledge that Palbucks does not pre-screen User Content, but that Palbucks and its designees will \n                        have the right (but not the obligation) in their sole discretion to refuse, remove, or allow any User \n                        Content that is available via the Services at any time and for any reason, with or without notice, and \n                        without any liability to you or to any third party for any claims, damages, costs or losses resulting \n                        therefrom."}),(0,Vt.jsx)(pu,{title:"3. User Content Transmitted Through the Services:",description:"\n                    With respect to the User Content, you represent and warrant that you own all right, title and interest in \n                    and to, or otherwise have all necessary rights and consents to (and to allow others to) fully exploit, \n                    such User Content, including, without limitation, as it concerns all copyrights, trademark rights and \n                    rights of publicity or privacy related thereto. By uploading, sharing, providing, or otherwise making \n                    available any User Content, or any portion thereof, in connection with the Services, you hereby grant \n                    and will grant Palbucks and its affiliated companies and Users a nonexclusive, worldwide, royalty free, \n                    fully paid up, transferable, sublicensable, perpetual, irrevocable license to copy, display, upload, \n                    perform, distribute, store, modify and otherwise use your User Content in connection with the operation \n                    of the Services or the promotion, advertising or marketing thereof, in any form, medium or technology \n                    now known or later developed. Without limiting the foregoing, if any User Content contains your name, \n                    image or likeness, you hereby release and hold harmless Palbucks and its contractors and employees, from: \n                    (i) all claims for invasion of privacy, publicity or libel; (ii) any liability or other claims by virtue \n                    of any blurring, distortion, alteration, optical illusion, or other use or exploitation of your name, \n                    image or likeness; and (iii) any liability for claims made by you (or any successor to any claim you \n                    might bring) in connection with your User Content, name, image or likeness. You waive any right to \n                    inspect or approve any intermediary version(s) or finished version(s) of the results of the use of your \n                    User Content (including your name, image or likeness). Further, if any person (other than you) appears \n                    in your User Content, you represent and warrant that you have secured all necessary licenses, waivers \n                    and releases from such person(s) for the benefit of Palbucks in a manner fully consistent with the licenses, \n                    waivers and releases set forth above. You further acknowledge that your participation in the Services and \n                    submission of User Content is voluntary and that you will not receive financial compensation of any type \n                    associated with the licenses, waivers, and releases set forth herein (or Palbucks\u2019 exploitation thereof), \n                    and that the sole consideration for subject matter of this agreement is the opportunity to use the Services. \n                    We do not guarantee that any Services Content will be made available through the Services. We reserve the \n                    right to, but do not have any obligation to: (a) remove, edit or modify any Services Content or User \n                    Content, in our sole discretion, at any time, without notice to you and for any reason (including, but \n                    not limited to, upon receipt of claims or allegations from third parties or authorities relating to such \n                    Services Content or User Content, or if we are concerned that you may have violated these Terms of Service), \n                    or for no reason at all; and (b) remove or block any Services Content or User Content from the Services."}),(0,Vt.jsx)(pu,{title:"4. Copyright or Trademark Complaints:",description:"\n                    Palbucks respects the intellectual property of others, and we ask our Users to do the same. If you believe \n                    that your work has been copied in a way that constitutes copyright infringement, or that your intellectual \n                    property rights have been otherwise violated, you should notify Palbucks of your infringement claim in \n                    accordance with the procedure set forth below. Palbucks will process and investigate notices of alleged \n                    infringement and will take appropriate actions under the extant Copyright Act, trademark infringement and \n                    other applicable intellectual property laws with respect to any alleged or actual infringement. A \n                    notification of claimed infringement should be emailed to Palbucks\u2019s Copyright Agent via mail@palbucks.com. \n                    We do not guarantee that any Services Content will be made available through the Services. We reserve the \n                    right to, but do not have any obligation to: (a) remove, edit or modify any Services Content or User \n                    Content, in our sole discretion, at any time, without notice to you and for any reason (including, but \n                    not limited to, upon receipt of claims or allegations from third parties or authorities relating to \n                    such Services Content or User Content, or if we are concerned that you may have violated these Terms of \n                    Service), or for no reason at all; and (b) remove or block any Services Content or User Content from \n                    the Services.\n                    ",marginb:"20"}),(0,Vt.jsx)("h3",{className:"text-lg md:text-2xl font-black mb-3 ",children:"DISCLAIMER OF WARRANTIES"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"YOUR USE OF THE SERVICES IS AT YOUR SOLE RISK. THE SERVICES ARE PROVIDED ON AN \u201cAS IS\u201d AND \u201cAS AVAILABLE\u201d BASIS. PALBUCKS AND ITS AFFILIATES EXPRESSLY DISCLAIM AND EXCLUDE, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, ALL WARRANTIES, CONDITIONS AND REPRESENTATIONS OF ANY KIND, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-10 md:mb-20 ",children:"PALBUCKS AND ITS AFFILIATES MAKE NO WARRANTY OR CONDITION THAT: (I) THE SERVICES WILL MEET YOUR REQUIREMENTS; (II) THE SERVICES WILL BE UNINTERRUPTED, TIMELY, SECURE, OR ERROR-FREE; (III) THE RESULTS THAT MAY BE OBTAINED FROM THE USE OF THE SERVICES WILL BE ACCURATE OR RELIABLE; OR (IV) THE QUALITY OF ANY PRODUCTS, SERVICES, INFORMATION, OR OTHER MATERIAL PURCHASED OR OBTAINED BY YOU THROUGH THE SERVICES WILL MEET YOUR EXPECTATIONS."}),(0,Vt.jsx)("h3",{className:"text-lg md:text-2xl font-black mb-3 ",children:"LIMITATION OF LIABILITY"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"YOU EXPRESSLY UNDERSTAND AND AGREE THAT, TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, NEITHER PALBUCKS NOR ITS AFFILIATES WILL BE LIABLE FOR ANY: (I) INDIRECT, INCIDENTAL, SPECIAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES; (II) DAMAGES FOR LOSS OF PROFITS;, (III) DAMAGES FOR LOSS OF GOODWILL;, (IV) DAMAGES FOR LOSS OF USE; (V) LOSS OR CORRUPTION OF DATA; OR (VI) OTHER INTANGIBLE LOSSES (EVEN IF BEEVIBE HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES), WHETHER BASED ON CONTRACT, TORT, NEGLIGENCE, STRICT LIABILITY OR OTHERWISE, RESULTING FROM: (A) THE USE OR THE INABILITY TO USE THE SERVICES; (B) THE COST OF PROCUREMENT OF SUBSTITUTE GOODS AND SERVICES RESULTING FROM ANY GOODS, DATA, INFORMATION OR SERVICES PURCHASED OR OBTAINED OR MESSAGES RECEIVED OR TRANSACTIONS ENTERED INTO THROUGH OR FROM THE SERVICES; (C) ANY PROMOTIONS AND RELATED PRIZES OR REWARDS MADE AVAILABLE THROUGH THE SERVICES; (D) UNAUTHORIZED ACCESS TO OR ALTERATION OF YOUR TRANSMISSIONS OR DATA; (E) STATEMENTS OR CONDUCT OF ANY THIRD PARTY ON THE SERVICES; OR (F) ANY OTHER MATTER RELATING TO THE SERVICES. TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT WILL PALBUCKS TOTAL LIABILITY TO YOU FOR ALL DAMAGES, LOSSES (INCLUDING CONTRACT, NEGLIGENCE, STATUTORY LIABILITY OR OTHERWISE) OR CAUSES OF ACTION EXCEED THE AMOUNT YOU HAVE PAID PALBUCKS IN THE LAST SIX (6) MONTHS, OR, IF GREATER, ONE HUNDRED U.S. DOLLARS (US$ 100)."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-10 md:mb-20 ",children:"SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF CERTAIN WARRANTIES OR THE LIMITATION OR EXCLUSION OF LIABILITY FOR INCIDENTAL OR CONSEQUENTIAL DAMAGES. ACCORDINGLY, SOME OF THE LIMITATIONS SET FORTH ABOVE MAY NOT APPLY TO YOU. IF YOU ARE DISSATISFIED WITH ANY PORTION OF THE SERVICES OR WITH THESE TERMS OF SERVICE, YOUR SOLE AND EXCLUSIVE REMEDY IS TO DISCONTINUE USE OF THE SERVICES."}),(0,Vt.jsx)("h3",{className:"text-lg md:text-2xl font-black mb-3",children:"DISPUTES"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 md:mb-8 ",children:"ARBITRATION CLAUSE & CLASS ACTION WAIVER \u2013 IMPORTANT \u2013 PLEASE REVIEW AS THIS AFFECTS YOUR LEGAL RIGHTS"}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-4 md:mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[6px] md:w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-base md:text-[22px] font-black mb-[5px] md:mb-[15px] leading-7 tracking-[0.5px] ",children:"1. Arbitration; Class Action Waiver:"}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7 mb-5 ",children:"YOU AGREE THAT ALL DISPUTES BETWEEN YOU AND US OR ANY OF OUR OFFICERS, DIRECTORS OR EMPLOYEES ACTING IN THEIR CAPACITY AS SUCH (WHETHER OR NOT SUCH DISPUTE INVOLVES A THIRD PARTY) WITH REGARD TO YOUR RELATIONSHIP WITH US, INCLUDING WITHOUT LIMITATION DISPUTES RELATED TO THESE TERMS OF SERVICE, YOUR USE OF THE SERVICES, AND/OR RIGHTS OF PRIVACY AND/OR PUBLICITY, WILL BE RESOLVED BY BINDING, INDIVIDUAL ARBITRATION AND YOU AND WE HEREBY EXPRESSLY WAIVE TRIAL BY JURY. DISCOVERY AND RIGHTS TO APPEAL IN ARBITRATION ARE GENERALLY MORE LIMITED THAN IN A LAWSUIT, AND OTHER RIGHTS THAT YOU AND WE WOULD HAVE IN COURT MAY NOT BE AVAILABLE IN ARBITRATION. YOU UNDERSTAND AND AGREE THAT, BY ENTERING INTO THESE TERMS, YOU AND WE ARE EACH WAIVING OUR RIGHT TO A TRIAL BY JURY OR TO PARTICIPATE IN A CLASS ACTION."}),(0,Vt.jsx)("p",{className:"text-sm md:text-lg tracking-[0.1px] md:tracking-[0.8px] md:leading-7",children:"Notwithstanding the foregoing, nothing in these Terms of Service will be deemed to waive, preclude, or otherwise limit the right of either of us to: (i) bring an individual action in small claims court; (ii) pursue an enforcement action through the applicable federal, state, or local agency if that action is available; (iii) seek injunctive relief in a court of law; or (iv file suit in a court of law to address an intellectual property infringement claim."})]})]})]})]})]})};var mu=n.p+"static/media/policyicon1.27c6f5b2fae93e44e13a7fbe8e4d2b30.svg";var hu=n.p+"static/media/policyicon2.46f749e3c0ff6f615c44ae8ef8af3f5e.svg";var xu=n.p+"static/media/policyicon3.abf7bf790e855a57ae6be2f26474d9b0.svg";var gu=n.p+"static/media/policyicon4.d5a660fb2471a282e04fbe04d9445031.svg";var bu=function(e){return(0,Vt.jsxs)("div",{className:"w-full pr-5 flex justify-between bg-[#37BCF733] rounded-[10px] mb-[25px] ",children:[(0,Vt.jsxs)("div",{className:"flex",children:[(0,Vt.jsx)("div",{className:"h-full w-5 bg-[#37BCF7] rounded-[10px] "}),(0,Vt.jsx)("div",{className:"w-[404px] m-[15px]",children:(0,Vt.jsx)("h3",{className:"text-[#000000] font-black font-merriweather text-[40px] ",children:e.title})})]}),(0,Vt.jsx)("img",{src:e.icon,alt:e.alt,className:"w-[144px]"})]})};var vu=function(){bt();var e=lt((function(e){return e.sidebarslid})),t=lt((function(e){return e.sidebarstate})),n=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),r=Te();return(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(e?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(n&&t?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[25px] lg:pr-[27px] pt-8 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-10 w-[32px] inline-block cursor-pointer ",onClick:function(){r(-1)}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-[32px] mb-4 ",children:"Learn About our Privacy Policy"}),(0,Vt.jsx)("p",{className:" text-[18px] mb-16 ",children:"Updated: March 30, 2022"}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"Palbucks Privacy Policy"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-[45px] ",children:"At Palbucks we take the protection of Personal Data seriously. In this Privacy Notice we will explain what Personal Data we collect from you, how we use and share that data, how we keep your Personal Data safe, and how long we keep it for. We will also explain how we Process your data (and the Legal Basis for doing so) and help you to understand your Personal Data Rights."}),(0,Vt.jsx)(bu,{title:"WHAT DO WE MEAN BY PERSONAL DATA?",icon:mu}),(0,Vt.jsx)("p",{className:"text-[18px] mb-8 ",children:"Personal Data is any information that could be used to identify you. That could be anything from your name and address, your bank details, your email address, an image or recording of you, your IP address or any other data that could be used to identify you."}),(0,Vt.jsx)(bu,{title:"WHAT DO WE MEAN BY PROCESSING YOUR PERSONAL DATA?",icon:hu}),(0,Vt.jsx)("p",{className:"text-[18px] mb-8 ",children:"Processing Data simply means doing something with your Personal Data in the course of our business in order to provide our services to you. If a company or organization does anything with your Personal Data, they are processing it."}),(0,Vt.jsx)(bu,{title:"WE ARE ACCOUNTABLE",icon:xu}),(0,Vt.jsx)("p",{className:"text-[18px] mb-20 ",children:"At Palbucks we are committed to processing personal data in accordance with the Nigeria Data Protection Regulation (NDPR) principles, which ensure the safe processing of personal data."}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"DATA COLLECTION"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:"We Collect Your Personal Data When You Register For Our Services, When You Contact Us Through Social Media, Online Through The \u201cContact Us Form\u201d On Our Websites, Over The Telephone And When You Visit One Of Our Retail Outlets. We also collect your personal data when you directly apply for employment with us. We do not collect Personal Data of persons below the age of 18."}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"HOW WE COLLECT INFORMATION ABOUT YOU"}),(0,Vt.jsxs)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:["We collect your personal data in the following ways:",(0,Vt.jsxs)("ul",{className:" list-disc mt-4 flex flex-col gap-5 pl-7 ",children:[(0,Vt.jsxs)("li",{children:[(0,Vt.jsx)("span",{className:"font-bold",children:"When you sign up for a service - "}),"when you sign up, we collect certain personal data such as your email address, home address, birth date, gender (where possible) so you can use the service."]}),(0,Vt.jsxs)("li",{children:[(0,Vt.jsx)("span",{className:"font-bold",children:" Personal data collected that enables us to provide you with additional features/functionality - "}),"from time to time, you also may provide us with additional personal data or give us your permission to collect additional personal data, for example to provide you with better services."]}),(0,Vt.jsxs)("li",{children:[(0,Vt.jsx)("span",{className:"font-bold",children:" From third parties - "})," we may receive personal data about you and your activity from third parties, including partners we work with to provide you with a service."]})]})]}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"INFORMATION DIRECTLY GIVEN"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] leading-7 mb-8 ",children:"We use anonymised and aggregated information for purposes that include testing our IT systems, research, data analysis, creating marketing and promotion models, improving services, and developing new features and functions."}),(0,Vt.jsx)(pu,{title:"1. Registration information:",description:"When you register for our Services or \n                    open an account, we collect your email address and login details, your zip code, your country, your phone \n                    number (for purposes of multi-factor authentication and to provide you with important messages) and any \n                    information you choose to provide us (such as a profile picture). If you are a charity or nonprofit \n                    organization and are established as such under the applicable laws of incorporation (\u201cCharity\u201d), then \n                    we collect your name and email address. Thereafter, we will ask that you select your Charity and \n                    provide information to verify that you are a representative of said Charity."}),(0,Vt.jsx)(pu,{title:"2. Creation of a fundraiser:",description:"When you create a fundraiser on the \n                    Platform, we collect the information you choose to provide us in relation to your fundraiser and we display \n                    it through our Platform. For example, you can provide a fundraiser title, choose a fundraiser category, \n                    upload images and describe your fundraiser goal(s). You might, in creating a fundraiser, choose to provide \n                    us with information relating to third parties by organizing a fundraiser for a family member or friend, \n                    and in doing so, you disclose the name or circumstances of that family member or friend. By providing \n                    information in a fundraiser, you consent to our collection, storage and use of your data. If you upload \n                    personal data related to third parties, you acknowledge and agree that you have the authority of the relevant \n                    third parties for us to access and use the relevant data and that you have notified the third parties and \n                    informed them of how their information is collected and used by Palbucks to provide the Services. We reserve \n                    the right to identify you as the person who has made the referral in any messages that are sent to them."}),(0,Vt.jsx)(pu,{title:"3. Setting up withdrawals:",description:"When you are the beneficiary (or the \n                    recipient of funds from a fundraiser), we collect your contact details (such as name and email address), \n                    zip code, country, your phone number (for purposes of multi-factor authentication and to send you important \n                    messages) and any information you choose to provide us."}),(0,Vt.jsx)(pu,{title:"4. Donation information:",description:"On the Platform, when you donate to a \n                    fundraiser, we collect your contact details (such as name and email address), zip code, country, and any \n                    information you choose to provide us (such as a description of why you have donated)."}),(0,Vt.jsx)(pu,{title:"5. Public Communications:",description:"You can post comments, leave feedback, send \n                    thank-you notes or otherwise communicate with other users through our Platform. Any content, including such \n                    comments, feedback, and notes that you choose to post through our Platform are available to the public by \n                    default. Please remember that any information that is disclosed in these areas becomes public information \n                    for both us and other users to use and share. Take care not to share personal data unless you intend for \n                    that data to become public. Please also be considerate and respectful of others while using the community \n                    to share your opinions. We reserve the right, but do not have the obligation, to review and monitor such \n                    posting or any other content on our Services, and to remove postings or content that may be viewed as \n                    inappropriate or offensive to others"}),(0,Vt.jsx)(pu,{title:"6. Communications to Palbucks:",description:"You may contact us via a contact form, \n                    email, or by other means (for example, with questions about our Services, for customer support, or to let us \n                        know your ideas for new products or modifications to existing products). You may also choose to respond \n                        to surveys that we send out, or queries about your fundraisers. When you do so, we collect the information \n                        you choose to provide us, such as your contact details, any images you choose to upload and the contents \n                        and nature of your message. We would ask that you take care not to send financial information or other \n                        sensitive personal data to us through our chat services or other means, unless we ask you specifically \n                        for that data as part of providing our Service to you. When you provide such information to us directly, \n                        you consent to the processing of this data by Palbucks and/or our service providers. We collect the \n                        information listed in this section for the purposes described below in the sections \u201cOur Use of Information \n                        Collected\u201d and \u201cOur Disclosure of Information Collected Through the Services.\u201d While you are under no \n                        obligation to provide us with such information, should you choose to withhold such information, we may \n                        not be able to provide you with some or all of the Services."}),(0,Vt.jsx)(pu,{title:"7. Information relating to third parties:",description:"You can choose to provide us \n                    with information relating to third parties. For example, if you choose to share your fundraiser with family \n                    and friends through our Platform\u2019s texting services. If you decide to do that, we give you the option to either \n                    add information to our Platform or to provide us access to information stored in your email and mobile device\u2019s \n                    address books, such as names, email addresses, or phone numbers of your contacts (collectively, \u201cThird-Party \n                        Data\u201d). If you use any feature of the Services that allows you to communicate with third parties (such as \n                            to refer a third party to the Services or to communicate with them regarding a fundraiser or a \n                            donation), either by submitting Third-Party Data to the Services or otherwise permitting the Services \n                            to automatically access Third-Party Data in your possession, you acknowledge, represent, and agree (a) \n                            that you have the authority of the relevant third party for us to access and use the relevant Third-Party \n                            Data, and (b) that you have notified these third parties and informed them how their information is \n                            collected and used by Palbucks to provide the Services. We reserve the right to identify you as the \n                            person who has made the referral in any messages that are sent to them. We use Third-Party Data to \n                            (1) contact such third party using the Third-Party Data provided, and/or (2) provide you with an \n                            editable template message designed to facilitate communication between you and such third party \n                            through the Services. In addition to sending the foregoing communications, we may also send reminders \n                            or related messages to you and to third parties on your behalf from time to time where permitted by \n                            applicable law. In each case, any such communications sent to third parties using Third-Party Data \n                            will provide a means to \u201copt out\u201d of receiving further communication of the same nature."}),(0,Vt.jsx)(pu,{title:"8. Sensitive information:",description:"You can also provide us with information \n                    about yourself or third parties that is considered sensitive, such as political opinions, health information \n                    or religious beliefs. If you post this information in a fundraiser, you choose to provide such information \n                    to be published publicly in relation to your fundraiser, donation or otherwise. When you provide such \n                    information to us directly, you consent to the processing of this data by Palbucks and/or its service providers. \n                    We collect the information listed in this section for the purposes described below in the sections \u201cOur Use \n                    of Information Collected\u201d and \u201cOur Disclosure of Information Collected Through the Services."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] leading-7 tracking-[0.5px] ",children:"9. Biometric information:"}),(0,Vt.jsxs)("p",{className:"text-[18px] tracking-[0.8px] leading-7",children:["We use third-party services for identity verification and fraud prevention purposes. These biometric information services, acting as our processors, may collect a copy of your government-issued ID (i.e., your driver\u2019s license, state ID card, or passport) and a scan of the picture on your government-issued ID for identification purposes (\u201cbiometric information\u201d) and employ facial recognition technology to verify your identity. These biometric information services provide us with a confirmation as to whether your identity has been validated or not. Except as stated here, Palbucks does not retain any biometric information, and instead that information is maintained by the processors performing the services. By sharing your information with these biometric information services, you consent to the collection, processing, sharing and storage of your biometric information for identity verification and fraud prevention purposes. Your biometric information will be used for identity verification and fraud prevention purposes and in accordance with this Notice. If you do not consent to the collection and use of your biometric information, we will use a copy of your government-issued ID and other information to verify your identity. Your biometric information will be retained by our processors for as long as necessary for identity verification and fraud prevention and in accordance with applicable law. Please contact us as detailed in the ",(0,Vt.jsx)(ol,{to:"/helpcenter",className:"text-[#37BCF7]",children:"Help Center"})," section to the extent you have any questions regarding your biometric information."]})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-20 ",children:[(0,Vt.jsx)("div",{className:"w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] leading-7 tracking-[0.5px] ",children:"10. Data from Other Services:"}),(0,Vt.jsxs)("p",{className:"text-[18px] tracking-[0.8px] leading-7",children:["Palbucks may use other third-party services to improve the quality of our own customer database so that we might improve our Services to you. If you would like to opt out of these efforts, please contact us at the email address or mailing address set forth under ",(0,Vt.jsx)(ol,{to:"/helpcenter",className:"text-[#37BCF7]",children:"Help Center"})]})]})]}),(0,Vt.jsx)(bu,{title:"WHY WE COLLECT INFORMATION ABOUT YOU",icon:gu}),(0,Vt.jsxs)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:["We may not be able to provide you with a product or service unless we have enough information, or your permission to use that information. Some of the services we offer, that we cannot complete without your information, are below:",(0,Vt.jsxs)("ul",{className:" list-disc mt-4 flex flex-col gap-5 pl-7 ",children:[(0,Vt.jsx)("li",{children:"confirm your identity to provide services"}),(0,Vt.jsx)("li",{children:"contact you when the need arises"}),(0,Vt.jsx)("li",{children:"understand your needs to advise you on the correct service and then provide that service"}),(0,Vt.jsx)("li",{children:"obtain your opinion about our service"}),(0,Vt.jsx)("li",{children:"update our customer record"}),(0,Vt.jsx)("li",{children:"process financial transactions"}),(0,Vt.jsx)("li",{children:"prevent and detect fraud"})]})]}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"HOW WE USE INFORMATION ABOUT YOU"}),(0,Vt.jsxs)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:["We Will Use The Information You Have Provided In Accordance With Data Protection Regulation. We Will Not Keep It For Longer Than Is Necessary. In Some Instances, The Law Sets The Length Of Time Information Has To Be Kept. We Will Strive To Keep Your Information Up-To-Date And Accurate. We Will Always Make Sure You Understand Why We Need The Information. We Will Not Collect Irrelevant Information.",(0,Vt.jsxs)("ul",{className:" list-disc mt-4 flex flex-col gap-5 pl-7 mb-5 ",children:[(0,Vt.jsx)("p",{className:"-ml-7",children:"In General, We Process Your Information For The Following Reasons:"}),(0,Vt.jsx)("li",{children:"for the service you have requested, to monitor and improve our performance in responding to your request"}),(0,Vt.jsx)("li",{children:"to allow us to communicate effectively with you and provide services appropriate to your needs"}),(0,Vt.jsx)("li",{children:"to ensure we meet our legal obligations"}),(0,Vt.jsx)("li",{children:"to prevent or detect fraud or crime."})]}),(0,Vt.jsx)("p",{children:"We will not pass any personal data on to third parties, other than:"}),(0,Vt.jsxs)("ul",{className:" list-disc mt-4 flex flex-col gap-5 pl-7 mb-5 ",children:[(0,Vt.jsx)("li",{children:"those who process information on our behalf e.g other service providers, suppliers or partners sometimes need access to information to deliver services for us)"}),(0,Vt.jsx)("li",{children:"for legal or regulatory requirement"}),(0,Vt.jsx)("li",{children:"organizations that we engage with in joint working"})]}),"We will only do so, where possible, after we have ensured that sufficient steps have been taken to protect the personal data by the recipient."]}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"RETENTION OF YOUR INFORMATION"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-5 ",children:"We retain your information for as long as we deem necessary for the purpose for which that information was collected and for our legitimate business operations; provided, however, that your information is only retained to the extent permitted or required by applicable laws. When we no longer need to retain your information, we will take reasonable steps to remove it from our systems and records and/or take steps to anonymize it so that you can no longer be identified from it in accordance with our internal document retention policies."}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:"When determining the retention period for your information, we take into account various criteria, such as the type of products and services requested by or provided to you, the nature and length of our relationship with you, possible re-enrollment with our products or services, the impact on the Services we provide to you if we delete some information about you, mandatory retention periods provided by law and the statute of limitations."}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"CONTACTING BEEVIBE"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-20 ",children:"Please also feel free to contact us if you have any questions about this Notice or the information practices of the Services. You can contact us as follows: +2348035380697"})]})]})]})};var yu=function(){bt();var e=lt((function(e){return e.sidebarslid})),t=lt((function(e){return e.sidebarstate})),n=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),r=Te();return(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(e?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(n&&t?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[25px] lg:pr-[27px] pt-8 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-10 w-[32px] inline-block cursor-pointer ",onClick:function(){r(-1)}}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-[32px] mb-4 ",children:"Learn About Our Community Guidelines"}),(0,Vt.jsx)("p",{className:" text-[18px] mb-16 ",children:"The Palbucks community cannot condole any immoral or illicit behaviour"}),(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] ",children:"Palbucks Community Guidelines"}),(0,Vt.jsx)("p",{className:"text-[18px] tracking-[0.8px] mb-[60px] ",children:"Palbucks\u2019 purpose is to serve the public conversation. Violence, harassment and other similar types of behavior discourage people from expressing themselves, and ultimately diminish the value of global public conversation. Our rules are to ensure all people can participate in the public conversation freely and safely."}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-12 ",children:[(0,Vt.jsx)("div",{className:"w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] leading-7 tracking-[0.5px] ",children:"Safety"}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Violent Speech:"})," You may not threaten, incite, glorify, or express desire for violence or harm. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Violent & Hateful Entities:"})," You can\u2019t affiliate with or promote the activities of violent and hateful entities. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Child Sexual Exploitation:"})," We have zero tolerance for child sexual exploitation on Twitter. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Abuse/Harassment:"})," You may not share abusive content, engage in the targeted harassment of someone, or incite other people to do so. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Hateful conduct:"})," You may not attack other people on the basis of race, ethnicity, national origin, caste, sexual orientation, gender, gender identity, religious affiliation, age, disability, or serious disease. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Perpetrators of Violent Attacks:"})," We will remove any accounts maintained by individual perpetrators of terrorist, violent extremist, or mass violent attacks, and may also remove Tweets disseminating manifestos or other content produced by perpetrators. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Suicide:"})," You may not promote or encourage suicide or self-harm. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Sensitive media:"})," You may not post media that is excessively gory or share violent or adult content within live video or in profile or header images. Media depicting sexual violence and/or assault is also not permitted. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Illegal or Certain Regulated Goods or Services:"})," You may not use our service for any unlawful purpose or in furtherance of illegal activities. This includes selling, buying, or facilitating transactions in illegal goods or services, as well as certain types of regulated goods or services. Learn more."]})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-12 ",children:[(0,Vt.jsx)("div",{className:"w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] leading-7 tracking-[0.5px] ",children:"Privacy"}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Private Information:"})," You may not publish or post other people's private information (such as home phone number and address) without their express authorization and permission. We also prohibit threatening to expose private information or incentivizing others to do so. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Non-Consensual Nudity: "})," You may not post or share intimate photos or videos of someone that were produced or distributed without their consent. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Account Compromise: "})," You may not use or attempt to use credentials, passwords, tokens, keys, cookies or other data to log into or otherwise access, add, delete or modify the private information or account features of any Twitter account other than your own (or those you have been directly authorized to do so via Twitter\u2019s Teams authorization, OAuth authorization or similar mechanism)."]})]})]}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5 mb-8 ",children:[(0,Vt.jsx)("div",{className:"w-[10px] bg-[#37BCF7] rounded-[20px] "}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsx)("h2",{className:"text-[24px] font-black mb-[15px] leading-7 tracking-[0.5px] ",children:"Authenticity"}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Platform Manipulation and Spam: "})," You may not use Twitter\u2019s services in a manner intended to artificially amplify or suppress information or engage in behavior that manipulates or disrupts people\u2019s experience on Twitter. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Civic Integrity: "})," You may not use Twitter\u2019s services for the purpose of manipulating or interfering in elections or other civic processes. This includes posting or sharing content that may suppress participation or mislead people about when, where, or how to participate in a civic process. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Misleading and Deceptive Identities: "})," You may not impersonate individuals, groups, or organizations to mislead, confuse, or deceive others, nor use a fake identity in a manner that disrupts the experience of others on Twitter. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 mb-5 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Synthetic and Manipulated Media: "})," You may not deceptively share synthetic or manipulated media that are likely to cause harm. In addition, we may label Tweets containing synthetic and manipulated media to help people understand their authenticity and to provide additional context. Learn more."]}),(0,Vt.jsxs)("p",{className:"text-[18px] leading-6 tracking-[0.8px]",children:[(0,Vt.jsx)("span",{className:"font-bold",children:"Copyright and Trademark: "}),"You may not violate others\u2019 intellectual property rights, including copyright and trademark. Learn more about our trademark policy and copyright policy."]})]})]})]})]})]})};var wu=n.p+"static/media/bgradient1.7e0dd44d555c90894da4eb5027583147.svg";var ku=n.p+"static/media/bgradient2.aedd12371c0c3cab7f475d0fb8885e24.svg";var ju=n.p+"static/media/step2icon.a92b32f703087ec0a449689f47639bad.svg";var Nu=n.p+"static/media/step3icon.6871f83a8f6aca9fc9e4c7561a83c73d.svg";var Au=n.p+"static/media/stepdown.deac84febf38d67aa7d28256dd63ea94.svg";var Su=n.p+"static/media/stepleft.4436adfd785036aaa992024820b13270.svg",Cu=n.p+"static/media/landingcampaignimg.327876986d30ce9027db.jpg",Eu=n.p+"static/media/landingcampaignimg2.862ab67e90a6a8d770b2.jpg",Pu=n.p+"static/media/landingcampaignimg3.f942847e8653c61ef6ea.jpg";n.p;n.p;var Fu=n.p+"static/media/profileimage.20154059af50b2e3c535a958da3e441f.svg";var Tu=n.p+"static/media/profileimage2.74c2334474b8c5ac8f55017df65c0fbd.svg";var Ou=n.p+"static/media/profileimage3.97f5791391f44a2d50ca07b007f6ff6e.svg",_u=n.p+"static/media/profileimage4.770dcd194b4588fd5894.jpg",Du=n.p+"static/media/profileimage5.bb161c3a36dcbbf780d3.jpg",Iu=n.p+"static/media/profileimage6.58a4e637bb0db1ba88f2.jpg";var Ru=n.p+"static/media/like.983ba78aa3f4145cb24eab62ec2be382.svg";var Lu=n.p+"static/media/like2.7bdcaaefa11697c0adbbe57d4c90adf9.svg";var Mu=n.p+"static/media/like3.5a8675c1a7de264290c9ffa806eaf244.svg";var Bu=n.p+"static/media/joint.615e6453a728884e2141da57ba8bdcc7.svg";var Uu=n.p+"static/media/joint2.45f3cdf921c88a0157f9fb0d9d102516.svg";var zu=n.p+"static/media/joint3.7365a91c35e5052c3669f26d69501a94.svg";var Hu=n.p+"static/media/pointer.c158fae6f0cb2d07eb234c1b4b4c7fc7.svg";var Wu=n.p+"static/media/plus.3df9ceaf7dd05daf44a67a60632e8946.svg";var Vu=n.p+"static/media/oneicon.3430fe42f5cf9899f3a51699ce5ad2f2.svg";var Qu=n.p+"static/media/twoicon.5a6c701eb186e274f96d491aa6d1406d.svg";var Yu=n.p+"static/media/threeicon.0825320d1c94b6ebc4fc7bf29774ceb0.svg";var qu=n.p+"static/media/instagramicon.5a852113d5e272c63e954c4e14d75447.svg";var Gu=n.p+"static/media/copyright.2eebd52bd89046e5ffd9e27c0eea39bc.svg",Xu=function(e){return(0,Vt.jsxs)("div",{className:"shrink-0 max-w-[235px] lg:max-w-[525px] font-arial ",children:[(0,Vt.jsx)("img",{src:e.image,alt:e.alt?e.alt:"Campaign image",className:"mb-3 lg:mb-[20px] shrink-0 w-[235px] lg:w-[525px] h-[153px] lg:h-[350px] rounded-md lg:rounded-3xl"}),(0,Vt.jsxs)("div",{className:"pr-3 lg:pr-[30px] h-[131px] lg:h-[220px] relative ",children:[(0,Vt.jsx)("h3",{className:"mb-[11px] lg:mb-[12px] text-sm leading-5 lg:text-[34px] lg:leading-[40px] font-bold lg:tracking-[0.128px]",children:e.title?e.title:"Campaign Title"}),(0,Vt.jsxs)("div",{className:"absolute bottom-0",children:[(0,Vt.jsx)("p",{className:"mb-0 lg:mb-[16px] line-clamp-2 text-[#011217] text-xs lg:text-[20px] leading-5 lg:leading-[30px] font-arial tracking-[-0.021px;] ",children:"This is a complete description of the crowdfunding to aid others fund this particular crowdfunding that shows all that is coming up"}),(0,Vt.jsx)("progress",{value:e.value?e.value:"23543",max:e.target?e.target:"150000",className:"landingpageprogressbar w-full h-[9px] lg:h-[18px] appearance-none rounded-full  mb-0 md:mb-[12px]"}),(0,Vt.jsxs)("p",{className:"text-xs lg:text-[22px] font-bold ",children:[e.value," raised "]})]})]})]})};var Ju=n.p+"static/media/profileimage7.531ce9e33c7c24596cc02853fe0805ef.svg";var Ku=n.p+"static/media/withdrawalicon.098198145bc9a5468ca1d42f4d934301.svg",Zu=function(e){return(0,Vt.jsxs)("div",{className:"w-fit font-arial ",children:[(0,Vt.jsxs)("div",{className:"max-w-full phones:w-[300px] lg:w-[800px] bg-[#F9F9F9] rounded lg:rounded-[10px] py-[10px] lg:py-[30px] px-3 lg:px-[38px] relative z-10 ",children:[(0,Vt.jsx)("img",{src:Ju,alt:"profile pic",className:"absolute -top-5 lg:-top-12 -left-5 lg:-left-12 rounded-full w-[40px] lg:w-[90px] "}),(0,Vt.jsxs)("div",{className:"flex gap-[10px] lg:gap-6 items-center ",children:[(0,Vt.jsx)("img",{src:Ku,alt:"withdrawal icon",className:"w-[26px] lg:w-[79px] h-[24px] lg:h-[71px]  "}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[5px] lg:gap-2",children:[(0,Vt.jsx)("p",{className:"text-xs lg:text-2xl font-black ",children:"Withdrawal into bank account"}),(0,Vt.jsxs)("p",{className:"text-[10px] lg:text-xl ",children:[" March ",e.date,", 2023"]})]}),(0,Vt.jsx)("p",{className:"ml-auto text-sm lg:text-[28px] font-black ",children:e.amount})]})]}),(0,Vt.jsx)("div",{className:"max-w-full phones:w-[300px] lg:w-[800px] h-[70px] lg:h-[130px] bg-[#35FAA0] rounded lg:rounded-[10px] relative -top-[64px] lg:-top-[115px] -right-[10px] lg:-right-[25px] "})]})};var $u=function(){var t=Te(),n=lt((function(e){return e.authReducer.isAuthenticated})),r=(0,e.useRef)(null),a=T((0,e.useState)({isAtLeftEnd:!0,isAtRightEnd:!1}),2),o=a[0],i=a[1],s=function(e){var t=r.current;if(t){var n=(null===t||void 0===t?void 0:t.firstChild).offsetWidth,a=n*Math.floor(t.offsetWidth/n);"left"===e?t.scrollBy({left:-a,behavior:"smooth"}):t.scrollBy({left:a,behavior:"smooth"}),l(r)}},l=function(){var e=r.current;if(e){if(e.scrollWidth<=e.offsetWidth)return void i((function(e){return It(It({},e),{},{isAtLeftEnd:!1,isAtRightEnd:!1})}));Math.ceil(e.scrollLeft+e.offsetWidth)>=Math.floor(e.scrollWidth)?i((function(e){return It(It({},e),{},{isAtRightEnd:!0,isAtLeftEnd:!1})})):e.scrollLeft<=0?i((function(e){return It(It({},e),{},{isAtRightEnd:!1,isAtLeftEnd:!0})})):i((function(e){return It(It({},e),{},{isAtRightEnd:!1,isAtLeftEnd:!1})}))}};(0,e.useEffect)((function(){t(n?"/home":"/")}),[]);var c=T((0,e.useState)("close"),2),u=c[0],d=c[1],p=function(){d("open"==u?"close":"open")};return(0,Vt.jsxs)("div",{className:"font-merriweather",children:[(0,Vt.jsxs)("header",{className:"w-full z-50 py-4 md:py-6 lg:py-[30px] px-5 md:px-10 lg:px-[95px] flex justify-between shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] bg-white fixed top-0 ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center cursor-pointer ",onClick:function(){t("/")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-7 lg:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[108px] lg:w-[138px] h-[14px] md:h-5 lg:h-[24px] "})]}),(0,Vt.jsxs)("nav",{className:"hidden md:flex items-center xl:gap-[46px] font-arial ",children:[(0,Vt.jsx)(ol,{to:"/howitworks",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"How it works"})}),(0,Vt.jsx)(ol,{to:"/discover",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Discover"})}),(0,Vt.jsx)(ol,{to:"/signin",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign in"})}),(0,Vt.jsx)(ol,{to:"/signup",className:"text-[#000000] text-lg font-bold tracking-[0.069px] py-[8px] px-[16px] bg-[#35FAA0] hover:bg-[#35EB98] leading-[22px] flex items-center rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign up"})})]}),(0,Vt.jsx)("img",{src:qs,alt:"menu icon",className:"w-5 h-5 md:hidden",onClick:p})]}),(0,Vt.jsxs)("div",{className:" ".concat("open"==u?"":"hidden"," md:hidden font-arial h-full w-full z-50 bg-white fixed top-0 pt-4 px-5"),children:[(0,Vt.jsxs)("div",{className:"mb-6 flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] md:gap-4 items-center ",children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-7 lg:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[108px] lg:w-[138px] h-[14px] md:h-5 lg:h-[24px] "})]}),(0,Vt.jsx)("img",{src:fl,alt:"cancel menu icon",className:"w-6",onClick:p})]}),(0,Vt.jsxs)("nav",{className:"mb-8 flex flex-col gap-2",children:[(0,Vt.jsx)(ol,{to:"/howitworks",className:"py-3",children:(0,Vt.jsx)("span",{children:"How it works"})}),(0,Vt.jsx)(ol,{to:"/discover",className:"py-3",children:(0,Vt.jsx)("span",{children:"Discover campaigns"})}),(0,Vt.jsx)(ol,{to:"/helpcenter",className:"py-3",children:(0,Vt.jsx)("span",{children:"Help center"})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",className:"py-3",children:(0,Vt.jsx)("span",{children:"Community guidelines"})})]}),(0,Vt.jsx)("button",{className:"mb-5 bg-[#000] rounded w-full py-[10px] px-5 font-bold text-[#FFF]",onClick:function(){t("/anonymouscrowdfundformtitle")},children:"Start a crowdfund"}),(0,Vt.jsx)("button",{className:"border-[1px] border-[#8E8E93] rounded w-full py-[10px] px-5 font-bold text-[#000]",onClick:function(){t("/signin")},children:"Sign in"})]}),(0,Vt.jsxs)("main",{className:"pt-3 md:pt-[70px] lg:pt-[140px] pb-10 mt-[103px] ",children:[(0,Vt.jsxs)("h2",{className:"max-w-[80%] mx-auto mb-5 md:mb-7 lg:mb-[49px]  font-black text-center text-2xl md:text-5xl lg:text-[70px] lg:leading-[86px] tracking-[2.323px] [text-shadow:_0_1px_0_rgb(0_0_0_/_40%)] ",children:["From your wallet to ",(0,Vt.jsx)("br",{className:"hidden md:block"})," their hearts"]}),(0,Vt.jsxs)("p",{className:"mb-5 md:mb-7 lg:mb-[60px] text-sm md:text-xl lg:text-[33px] font-merriweather md:font-arial text-center lg:leading-[45px] tracking-[0.5px] ",children:["Start your crowdfunding campaign. Make online donation ",(0,Vt.jsx)("br",{className:"hidden md:block"})," by using your bank card or via transfer"]}),(0,Vt.jsx)("button",{className:"max-w-[85%] mb-7 md:mb-14 lg:mb-[100px]  px-8 md:px-12 lg:px-[52px] hover:md:px-12 hover:lg:px-[72.5px] transition-all duration-500 py-3 md:py-5 lg:py-[23.4px] font-bold bg-black text-white rounded md:rounded-[10px] text-base md:text-2xl lg:text-3xl mx-auto block font-arial",onClick:function(){t("/anonymouscrowdfundformtitle")},children:"Start a crowdfund"}),(0,Vt.jsxs)("div",{className:"mb-8 lg:mb-[113px] w-[90%] max-w-[1306px] bg-[#033F59] mx-auto pt-[30px] md:pt-10 lg:pt-[77px] pb-[30px] md:pb-10 lg:pb-[20px] \n                    px-8 lg:pl-[120px] lg:pr-[120px] 3xl:pr-[140px] flex flex-col items-center justify-between lg:block\n                    rounded-md md:rounded-xl lg:rounded-[20px] shadow-[13px_7px_58px_-9px_rgba(3,63,89,0.25)]\n                    font-arial\n                    ",children:[(0,Vt.jsxs)("h4",{className:"mb-9 md:mb-14 lg:mb-[70px] text-xl md:text-3xl md:leading-[48px] lg:text-[48px] font-black lg:leading-[73px] tracking-[0.069px] text-center text-white font-merriweather ",children:["Fundraising in Palbucks takes just ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," ",(0,Vt.jsx)("span",{className:"text-[#35FAA0]",children:" few minutes"})]}),(0,Vt.jsxs)("div",{className:" lg:mr-[110px] 2xl:mr-[130px] 3xl:mr-[150px]  relative max-w-[620px] py-2 lg:py-[15px] px-3 lg:px-[25px] rounded lg:rounded-[6.4px] rounded-tr-[21px] lg:rounded-tr-[55px] \n                        bg-[#F9F9F9] inline-block shadow-[0px_0px_20.715068817138672px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsx)("div",{className:"",children:(0,Vt.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAABWCAYAAACpQ0o9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAjLSURBVHgB7Z1dbBzVFcf/jt04OPFHlWTd2E08TkViGgenKSmoRGQJlCfA7lMQUupUbdWHSgEpD/DQkIS8kAekpq14ihQoUhukViQU9aFtiN0PhBqgazCSAcGuDQmy48ibOKyxSWTuf3bH3Ixndufr2jPj+UlH2p25Y9n/e/bcc+/1nlsFbzQJ2yasR1hb6bWGpUFeWK5k/cL6hGWwAKSFnRQ2IWw2sTnLCtsHRQ5Izz4HYDaxip1wCAFyCMBsYq47QYMPGNfPAYvyy8fFDqEMVTbXNRSF1+werG6qw+q9O7GyawPqd3WgurEONeJa3LmeL6AwMIKpd0YwceZtTP5rqNIjh4UdsbphJb6GMsIvb1uD1oM9aHp4+5IQuxLTuXFcOHoal1/8T7lmh2HRAVbi/x/FAXYeLb/uQfP+BxLRLWAnDP3oGcwMj9s12SfsBflCtakBY9Qj5qcYYjb99QDW9u7EshXfQMJ86JDfEo7JSG8TitLCXkJxnqAji68JO21+gsJvOf+0HtsTKtMgxj+bDliBYkSZ835Z/JPCOsxPfPffB3HL5nVIcA47YEaEoYIYlE1oKM6Kc3yzrHTRWCq4iVYR4+sSj/fEhmcf1ZMTC+bST0P8x80t+GDLUz1I8AbDdfuJn1vdSpdMF5+TqV5zC6aTCf5g+Km/p8Pqli5uDUq9IEOvX/OTnVDJjc+nUciNYSo7iuvi9UJT196M5akG1GkpqOSb3dutBt9uYY9bis8Zqyom3/sEn730X0wOfoIwUJtqxKot69Gy5269M4JmjVgFGDnwR/NljcZs5wmYZrPfFiFnRcAZzszYVXx07GUh/Ov6a1Xs6tyBxx7eiy9mZjA8drFie34Cp8QncOzVt8SMswr1nesRJJwXTfYPWU2++un57earNqO0Zy6/9h4+PXlWaXjpvnM39nfvRXrrDv39Y+J1bvQC+t89jxfOnkH/4PmKP+Oi+ETm//chvvPEjwP9FDBjtAg9GpcXZs1Xt489p4/WQUDhc7//G1TQlmpB7309utBNK+vLtmVHHPnTc/iD6IhKMBTd9mwvqlfWIgi49nPx6Lz565Eaq8ZBCT+VHQtceEPwXcLDDS93gtbciivXrjlqOz12RQ+Rm55+BEFQax1J2mqgkI+OnYYf6M1tqVZd6K72zUjf/gNoQnyv5C5dcNyWCQHDEAdiVSgT/7NTr+se5JTuu3brg2WjELxpVQO2bezwJbQVAx9XXHu/CQ7CzQ/eEVj4MaNM/Mt9g67ad991nwgn3VBF5uP34RZmQqOvvqnM+5dBAZfPDbry+oVgeMx5yJGh96tCifhhmUDJZFyGHAN9Ji4SBxUoEZ+TlrAx4CHsGKj6e5SIPz0arpBD3GQ6ZlSFUCUD7o2C+5nsmTfO6hMhM/nPJ3FFGMmJuM02hx79lavBmT9jwGPYUYnSPN8NZ954TTcntLlMQcMoPFESdlTDOYAbcqOVF9gWg8iJrzW3VFzHMZPJJp4fCG1rW+GWgUT8YOja6H6jJ4n5AZHeeoer9sx08qVsKWxEL+yk3IWdsHo9iZz4bjOdTCJ+MHRt3Ay39L/7JsJKpMTXUu4znXxB3Wa9X6Ll+e3uMx1uoIeVSIm/y8WeLcn4WMlcCCIlvtuZrdcNlIUiMuJT+DhlOiQy4nuJ9wNJ2AkGL8sKfjZQFoLIiO/230jCuoEiE1vPD7vwJDLix2UDRSYS4sdpA0UmEuLHaQNFJhLix2kDRSYS4sdpA0UmGmEnRhsoMpEQP27LCgahFz9uGygyoRc/bhsoMuH3/JhtoMiEXvy4baDIhF78uG2gyIRa/DhuoMiEWvw4bqDIhFv8GG6gyCzKlyPeOv5n/Rvh/JaJsRQwXHrNYhXG9W0uc/wobKDILIr4RhzftjHY0jJREp4oCTvlKnZ4mbE6JQobKDJKPL92baNtTR0vM1an9N7fjTax8cJJlm6DwUy2VFWjUiI+KzexopQVXe23QSVpqRoJx4A+0Qn8piM7w0nxIytuaVcjvmW9nR0zz8MP/Ab6B0+dsr3P/J2ZDFNJ/lcCYz/fu51QuYVzABY++u0rLzp+ZlXnemz2Wfpl9Hd/tyr1dZyeP4zi0RtzTA+P29WIcQRLZdWX8X56pBEaZOROofeyY7oCHJTZyfR+N+KvTnfCL6yzbEGe4vMIjpvEnxoY8SU+WbfnbkyW8X7L30bqFFmgrlL5F3aKUQrGa6f0uVh0W762AWt2+xfforIsyVD8AZiqhl/tH9JLtPuB3p968PuBVO1gCkmTvyTtNXS52VjfdDSYSlOst29BjuL3wVTU1EFBfkewTs01Ef8LCgpHOA1dfC+vjDpNR9ft+aFea80vV4WWN/IF82VWEs9wwGVF2Qnz3Y5/PBlIfU0Wjfjg4CnMXFrcDQ4jdDkpMUDhgypwlP3ZCYzPP9iAVfZ6WFfzCxQLm2ryXQ66QVSVrVm5QsTNrfgyfw1TuUtYLEYnxvH+p9mybarrarHhlw+g+SF3/y1hByuJZ39xwurWMWEZo4Q7a5rcFOBYhLPhng7Uav5rbC5bXoOmO28VA1ijXnHQS1US1ay+dwvaDzyEhs7gqqYzvbQYbHPCfsoX8rEd844XYsbT8c8nAy9yOjk4opcCK2QvLVphJHo5J09MiVPC02sCLmJnk9sTCv88X8jis7L1y+aWdbdv0DugWuE5KYtRjy2IwdQOJixD9z9jdSsHqYKv+cAanhKUNj/BDrj1L/sD/wTEER7flBNx/vr8DIfMeT0xi6/B5pgmVSEoTtiU7TU4DtMhEVZHNRnnIDZZ/QRmQDzYIOmEr2GYofCsFm4DTw39nvmi3Qlx+1A8wMYWdgJnwcyIqpfguVlMxfOvvI0JYWVEJxT+XkhHNBlUlXmInwAOwBoqwBLlS6UDOFtlGm4T083wZCAmMnl4QEMxBZ1NzLX9BgFxGEknOLU+WGSMftFQ7M0sgNnE/IteBW/0lIzjQheWJozjXI7vk8wVXsWXYUqqwSY1jSm5kvniK5/YHkOYBY4PAAAAAElFTkSuQmCC",alt:"Step one icon",className:"absolute -top-3 phones:-top-[15%] -left-[3%] w-8 xphones:w-10 lg:w-[70.5px]"})}),(0,Vt.jsx)("h5",{className:"text-sm xphones:text-base lg:text-[25px] font-bold mb-2 lg:mb-3 ml-6 lg:ml-[40px] ",children:"Begin with the Basics"}),(0,Vt.jsx)("p",{className:"text-[#525252] text-xs xphones:text-sm lg:text-xl tracking-[1.036px]",children:"Start by laying out the basic details of your crowdfunding campaign. Make sure you have a perfectly descriptive title."})]}),(0,Vt.jsx)("img",{src:Au,alt:"Step down icon pointing to next step",className:"mb-10 lg:mb-[75px] inline-block relative top-5 lg:top-20 rotate-45 lg:rotate-0 w-9 lg:w-[183px] "}),(0,Vt.jsxs)("div",{className:" lg:mt-20 lg:ml-auto mb-5 lg:mb-[90px]  relative max-w-[620px] py-2 lg:py-[15px] px-3 lg:px-[25px] rounded lg:rounded-[6.4px] \n                        rounded-tr-[21px] lg:rounded-tr-[55px] bg-[#35FAA0] shadow-[0px_0px_20.715068817138672px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsx)("div",{className:"",children:(0,Vt.jsx)("img",{src:ju,alt:"Step one icon",className:"absolute -top-3 phones:-top-[15%] -left-[3%] w-8 xphones:w-10 lg:w-[70.5px]"})}),(0,Vt.jsx)("h5",{className:"text-sm xphones:text-base lg:text-[25px] font-bold mb-2 lg:mb-3 ml-6 lg:ml-[40px] ",children:"Tell them your Story"}),(0,Vt.jsx)("p",{className:"text-xs xphones:text-sm lg:text-xl tracking-[1.036px]",children:"Describe to the world your story, so they can feel and understand what your mission is and more importantly, why you need them."})]}),(0,Vt.jsx)("img",{src:Su,alt:"Step down icon pointing to next step",className:"mb-10 lg:mb-0 lg:ml-auto lg:mr-20 2xl:mr-36 relative -rotate-[25.8deg] lg:rotate-0 w-9 lg:w-[183px] "}),(0,Vt.jsxs)("div",{className:"relative max-w-[620px] lg:-top-[110px] py-2 lg:py-[15px] px-3 lg:px-[25px] rounded lg:rounded-[6.4px] rounded-tr-[21px] lg:rounded-tr-[55px]\n                         bg-[#F9F9F9] shadow-[0px_0px_20.715068817138672px_0px_rgba(0,0,0,0.04)]   ",children:[(0,Vt.jsx)("div",{className:"",children:(0,Vt.jsx)("img",{src:Nu,alt:"Step one icon",className:"absolute -top-3 phones:-top-[15%] -left-[3%] w-8 xphones:w-10 lg:w-[70.5px]"})}),(0,Vt.jsx)("h5",{className:"text-sm xphones:text-base lg:text-[25px] font-bold mb-2 lg:mb-3 ml-6 lg:ml-[40px] ",children:"Launch, Share and Amplify"}),(0,Vt.jsx)("p",{className:"text-xs xphones:text-sm lg:text-xl text-[#525252] tracking-[1.036px]",children:"Seamlessly launch your campaign and leverage on our integrated social media features to amplify your campaign\u2019s reach."})]})]}),(0,Vt.jsxs)("div",{className:"w-[200px] md:w-[600px] h-screen absolute -z-10 right-0 top-[250px] md:top-[150px] ",children:[(0,Vt.jsx)("img",{src:ku,alt:"",className:"w-full "}),(0,Vt.jsx)("img",{src:ku,alt:"",className:" w-full relative -top-[350px] "}),(0,Vt.jsx)("img",{src:ku,alt:"",className:"hidden md:block w-full relative -top-[950px] "})]}),(0,Vt.jsxs)("div",{className:"w-[200px] md:w-[600px] h-screen absolute -z-10 left-0 top-[480px] md:top-[380px] ",children:[(0,Vt.jsx)("img",{src:wu,alt:"",className:"w-full "}),(0,Vt.jsx)("img",{src:wu,alt:"",className:"w-full relative -top-[350px] "}),(0,Vt.jsx)("img",{src:wu,alt:"",className:"hidden md:block w-full relative -top-[1000px] "})]}),(0,Vt.jsx)("h3",{className:"mb-4 lg:mb-[60px] ml-[5%] 2xl:ml-[8%] text-lg lg:text-[45px] text-[#000000] font-black lg:leading-[73px] tracking-[0.069px]  ",children:"Featured Crowdfunding Campaign"}),(0,Vt.jsxs)("div",{className:" ".concat(o.isAtRightEnd?"ml-[0] 2xl:ml-[0]":"ml-[5%] 2xl:ml-[8%]","  flex gap-5 lg:gap-[43px] mb-[25px] lg:mb-[35px] overflow-x-auto overflow-y-hidden pr-5 lg:pr-20 scrollContainer "),ref:r,onScroll:function(){l()},children:[(0,Vt.jsx)(Xu,{title:"The Fight for our Environment in Lagos Begins Today",image:Pu,value:"$23,543",target:"100000"}),(0,Vt.jsx)(Xu,{title:"Help Henry set up his art studio",image:Cu,value:"\u20a61034",target:"1500"}),(0,Vt.jsx)(Xu,{title:"Together we can build a better community",image:Eu,value:"$54,223",target:"250000"})]}),(0,Vt.jsxs)("div",{className:"mb-[53px] lg:mb-[178px] mx-[5%] 2xl:mx-[8%] flex justify-between",children:[(0,Vt.jsx)("img",{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAA0ADUDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/igD+Lj/AIK7/wDB1zoXwI+JGt/smf8ABMjwb4d/aM+OVlq0/gvxH8bNSs9S8WfDDw74ze7bSG8KfCnwp4dnt9Q+MXi6yvy8A1uPUIfAtvq0dnbaZbfEKCe+t7IA/KDwp/wSM/4OdP8Agq/YJ8S/2sP2lPG3wM8D+MF/tGLwl+0j8ZPGvw0t5dMvMCT+yv2Yvg14d1PTvBcxX5f7C8XeDvh5dSInmTRhJIpZgDsLj/gzW/4KM/D+OTxV8HP29fgbH49hb7fC6aj8bvhrNNf20X2i2aLxb4f0PxJqKXX22C2jhuZdNi8nCXRkRoFiIB53N+23/wAHK/8AwQF1/SW/a+0zxl+0d+zHFqWn6Kuo/GXxDJ8fPhZrNoZ4orS18L/tDaTe6j8SPhprU8Dy6Z4b0Txrq9jaxt5TS/DrV4LSxiUA/tQ/4JN/8Fjv2Wv+CuHwmv8Axd8G7i88CfF3wRZ6V/wuP9n3xfqFjc+Nfh/e6hDEo1XSb61S0h8c/Du81L7TYaF4707TtNF3JAlvr+g+Fdam/sSMA/WqgD+Nz/g6/wD+CuPjX9mn4b+Ef+Cc37Meua9pv7Qf7T/hlNX+KeveEVmfxH4W+B3iDU9T8Jab4K8PTWKy38Xi74y63p2s6I6aYF1ew8I6TqUMawyeL9Gu1APrP/g3v/4ILfC//gnH8GfBn7Q/x78EaT4r/by+JHh2313XtZ8SafZ6mf2dNJ16zdovhn8O47mKVNE8VRaTdiy+JHjCz26xqWp3Gq+F9Ov08KW7R6sAf04UAFAHN+MfB3hP4h+E/EngPx54b0Pxj4K8Y6HqfhnxZ4T8TaZZ614e8SeHtas5tP1fRNb0jUIbix1LS9Ssbie0vbK7glt7i3leKVGRiKAP82D/AILD/wDBO/4u/wDBu/8AtvfBj/gpb/wTl1LWPC/7Ofiz4gfZNN8LzXutato/wy8ZXEUmr+JP2fPHs8t0LzxP8F/ix4c0/Wj4Wj1TVJtbh0/Tde0W51G313wz4Z8U6sAf6DH7D37XHw4/bv8A2TfgZ+1r8KWkj8HfGvwPZ+JY9JuJori/8K+I7W5utC8b+CNVmg/cS6x4G8aaTr/hHVZrctaz3+jXE9o8trLDI4B/Ax+yNoUP/BUX/g7m+M/xH8fed4o8Afs0/Gb4v/EPStM1AbrRPDX7IEtj8GvghJYWcwmgsLG2+JFn8OfGk9oII/tt22pT3ccWp6pd3FAH+klQB/Hz/wAHE3/BxNZfsaWXiP8AYb/Yb8R2viT9snxJanQfiT8SdBMWsWX7NtlrEQhGjaMIRcQap8dtUguEGm6aEni+H0U8OqapDL4il0zTLcA+4P8Ag3g+F/7UP7Ln7Cslv/wUF/an/wCE7+K/xc8eXPxW8O/Dv4m/F2Dx541+CHhDW/D2h2Vt4P8AE/inxL4g1PV4vEms3dhP4m13wdHfz6Z4OvNQ+wlYPEt14ogQA/oK0PxP4a8TxTz+G/EOh+IYLWRYbmbQ9WsNWit5XXekU8lhcXCQyMnzqkhVmX5gCOaAPz8/4K8/st6J+2T/AME1P2yfgHqthHfaj4g+B/jDxR4FLKu+y+KHw1sW+I/wxvY5tjywRp458LaFBqDW+2a40i41Gx3GK7lRwD+Y/wD4Mpv2nbjUv2X/ANsn9m7xXrkyaJ8GPjF8OPiZ4QGpSvLBYWnx28MeKdI1nR9Jdmke3sYdW+C02ty6fGkVpFqXiG/1CNXutUvnIB8Pf8G72pxfBz/g5j/4KH/DHxe8dj4k8Vaf+3j8KdMtpmWF7zxJ4c/al8DfEG8hs0mkjkuN/h/4ba9qMQgSd3sYHulT7OklxGAf6OFAH+Nb/wAFqP8AgkL+0L/wSw/aZ1Wy+Jd/4k+J3wH+LvijXvEHwe/aSngutVl8d217fzarquieO7u5uMWfxk0SK6afxRpeo6hH/wAJIxPijR7ufTL6drAA/YH9iP8A4NR/hF/wUH/Z58GftL/s0f8ABV7wz4s8A+LITbahp9z+yXdWni3wF4ttILeTXvh/8QNBj/aUupPDvjLw7JdQpf2DzXFne2dxp+vaDqGseGtY0bWdQAP6ff8Aghx/wb1yf8Edfi38avjDqv7W2rfH/Vviv8OdL+Gtn4V0j4Zy/CrwdpGnWviay8UXniDXNNuPiF8QJfE/iaG50uy07wzerLo0fhzS9R8WQGPVG8RhtNAP32/aC8d6H8LfgJ8bvid4mnhtfDfw5+EPxK8d+Ibm4iM9vb6H4Q8Ga14g1aeeASRGaGKw0+4kliEsZkRWQSJncAD/AD0f+DPj4B+NPixpX/BQXW9DNnZaVp+ofst6UL3UJNkV3qC237Qt3d2tuEJcyWNtdafLcF0VduoW+xnPmBACT/gvj4E+KH/BIL/gu78Bf+Crnwr8M6hd/DP4xeKPCvxWuv7PM1jpGqeOfCujWfw8/aF+Et5qFrDbxabefEj4dyLr5lvJ5m1OXx9r95Ct2mjajb2wB/oOfs4/tDfCb9q/4G/DH9ov4G+KbPxl8K/i34T0zxf4R1u0khMv2O/ixdaTq9tDNcf2V4k8P6hHd6D4n0K4k+26D4g03UtHv0jvLKeNQDm/2s/2TPgN+298BvHX7N37SPgXT/H/AMLfH+nm21DT7kLBquh6rArto3i3wlrKo934b8YeG7txf6Dr1gVuLO4VopVuLG4vLO5APlD/AIJX/wDBJ79nT/gkh8G/HPwd/Z78SfFDxpafEj4gS/EPxf4t+LOteHtX8SX+px6RY6BpOmWsfhTwv4Q0Kw0fR9K09BBFFo7X1zf3mpXl3fyxTWdnYAH6f0AfyWf8HaP/AAU28J/swfsQ6r+xL4I8R2s/7Qn7ZGmpoWtaRpupOmreA/2fLLVbafx14m1mKylElnD8RpLD/hWOiWGprFb+JNH1Px9cWn2geGbyOgD63/4NjP2C9f8A2GP+CXngB/iN4cm8NfGT9pnxNqv7RPxB0u/CnVtF0rxRYaXovwv8N3uYIZ7NrP4b6F4f8QXuiXO+bRPEnirxJZyss/nIoB+nP/BRP9gD4Gf8FLv2WfHX7LPx6sbhNC8SfZ9b8H+M9Jht38VfC/4i6NFc/wDCLfELwnLcjy11TR5Lu6tL+wleO08Q+HNS1vwzqTf2brN2KAP8+X4J/tM/8FTv+DUn9o7WvgD8dvh9ffGn9iLx742vNT03TWkuoPhZ8S7dpLaKf4mfAXx+9rqJ+HfxNm0Czh/4Sj4f60Clw0UMHi/w1cta+G/F9oAf2c/sh/8ABxf/AMEj/wBr/wAPaPe6V+1b4J+A3jTUIbcan8MP2odR034IeJtD1G4WQx6UfEXirUI/hj4lupWiK27eCfHviWKWSW1tnaG/uI7KgD7v8V/8FJf+CeHgbQ38SeLv27P2PtA0NYfPTUNQ/aS+D0UV0mWCrYIvjBptRmlZWSC3sIrm4nkHlwxSSfLQB/Nz/wAFJf8Ag8B/ZA+BXh/XvAn7AGkzftYfGaa1mtLD4j65o3iLwj+z14N1At5TXd3Jq8Xh7x18S7qyYM8el+GNO0PwxqSNFPb/ABCZUe1mAPzi/wCCM3/BDj9qz/go1+1HH/wVd/4LBWviTWvB/iDxBbfEnwp8Mvi/pix+Mv2hvEdmkEHhLUPGPgTUbCC28HfADwzZWdgPDPg2503TLXxbo2maDo2j6Bb/AAzKzayAf6HFABQB5X8Z/gb8G/2i/h7rfwn+PXwu8B/GH4a+I4wms+CPiN4X0jxb4cvJESRLe9Gm6za3cFtqlgZXm0vV7RYNU0q623mm3lrdRxzKAfxX/wDBXX/g2U/4JmfBP4bax8evgZbfHr4P3019chfhz4X+KGna/wDDe1ZkhlLWkHxJ8G+O/HECiRpDHbr46NpCshigt44UhjiAP5hv2Q/+CYPwD+P3xs8JfDfxj4u+L+m6Hr2qWlleXXhnX/Blnq0cU4uC7W0+qeANZs0kHlLtMtjMoy2UPGAD/RI/YK/4N2f+CWP7COo+HviJ4C+Bt18Yfi3pcNle6T8V/wBpDWLX4qeJtEvVignh1Hw94d/sfQfhh4a1q1uVNxZ+I/Dvw/0vxJZySOltq8UGyFAD91aACgD/2Q==",alt:"",className:"w-[28px] lg:w-[44px] h-[28px] lg:h-[44px] rounded-full \n                        ".concat(o.isAtLeftEnd?"opacity-50":"cursor-pointer"),onClick:function(){s("left")}}),(0,Vt.jsx)("img",{src:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgEASABIAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/wAARCAA1ADUDAREAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+/igD+aD/AILCf8HMX7LH/BMzxFrnwE+GHh9f2ov2tNKhkg8QeAtC19dD+HPwiv5oI3s4fit45gs9Ud/EQE6XjfDzwpZX+vJb28tv4o1TwM99pN1egH83nh/45/8AB2z/AMFhLePx78F1+K37PXwO15pdR8N6p8OJfDX7G/w4i0u7SK5t73wn488T6to3xt+Iuizw3NrBY6npfizx5aExyvbzxNDqkqgHYTf8EZP+Ds74cxJ4v8I/t2/Fbxbr0TPM3hzQ/wDgoz8XLq/u38yVPLv7T4j6toHgrUlcH7SsWpapcW48yORgt0hSMAx/Cv8AwXs/4L9f8Ei/HnhXwF/wVM/Z48RfF34Y3d9HpUd38YvBWk+DfE+t2ds/2rUYvhf+0l8LbGf4ceONesrRpJLp9ch+Jk6xeRFdz6crJdIAf29/8E5P+Cof7I3/AAVI+D8nxZ/Zd8b3F9eaF/Z9r8SfhV4utrXQ/it8J9Z1NLh7LS/G/hq3vtStVt9QWzvG0XxL4f1TXfCWui0vYtJ126vNN1S0sQD9D6AP5mv+DmH/AILG6t/wTP8A2XtG+EXwE8Rf2T+2J+09b6ppvgDW7M20158HvhhpE1va+OPi01vPb3ka+ILuS5i8GfDeK7S0Vtevtb8XWV1dSfDu70fUQD89f+DdX/g3c8C+F/AXgr/gol/wUQ8EL8Uf2gPiqtv8Tvg38IPidB/wkOi/DTw94lgl1XR/iV8TtC1h72Dxb8XvGUGpR+KLHS/FkF4vw6iuNOv9QsI/iX558IAH9t9ABQB5f8Zvgp8I/wBon4aeK/g38dfhx4P+LHws8caf/ZnirwL460Ox8QeHdXtkljubWSWxvopVg1DTb6G21PRtWtDb6romr2llq+kXtlqdla3cIB/m1f8ABRn9h/8AaM/4NhP29PhD+3V+wp4k8Xaz+yV8QfEQ0HTbHxHqlzfW0UkmNZ8a/ss/Gm9trdbfxD4Z8XaHpV1rvw58S39mNaaDSbjUbUHxr8NR4p1EA/0Tv2OP2q/hf+29+zD8F/2q/g3eSXXw/wDjR4LsfFWl21zJDJqXh/UhLPpfijwfrZty0C+IPBfinT9Z8Ka8kDPbrq+j3n2eSW38qVwD/Pw+OHhlP+Cvn/B29/wp3x5a2viX4J/s+/Fpfh5rXh3UbYX+ix/Cz9jbw5qvinxz4O1lbVt0+k/EP4zaV4t0S+WaRWgk+IRsZjGkGxQD/SmoAKAP4Tv+C0f/AAUy/wCCxP8AwSI/4KuaH+0Bqmr3nxK/4Jv/ABDk8Kab8L/hU2m6XZ/CXxT4c0/wlpqfEf4c61rtlo91rfgb46ad4jfxP4n8P+J7u/vbrV9MGg6rHaeIPCOma54G0gA/ru/YV/bq/Z2/4KJ/s7eEP2lf2avF8fiTwX4kj+xa3ol79ntfGPw58Y2tvbza78P/AIgaFDcXL6D4s0F7mHz4POuNP1TT7jT/ABB4f1DV/Dmr6Tq16AeV/wDBWf8AY78Mft3f8E8f2pv2c9f0mPU9Z8Q/CvxL4m+GNyIRJeaF8YvAmnXPi74XazYyKpuIvL8YaTpmn6tFaPBPqnhzUda0NpkttVuAwB/KP/wZr/tyaD4T/Zp/a+/Zs+K/i6HR/DPwt+LXw6+J3w6k1i9QrGvxq8OeKdH8W6FpQuLgNbabp+pfCCw117KBEtU1TxXqd8qm61G8dwD5c/4ItyReAf8Ag7I/bx8K+MooYPEPif4pf8FGtF8PC88wzXWqXHxk1Lx9Be6a8irJI2peDND1fUoJpVRptJuJpGVWfaAD/RyoA/z6/wBoz/g2S/4Lq/Ez49fGD4h+Fv8Agph8L/E/hrxt8RPFXijQNb8fftKftYeEPGN3o2tavdX+mx694W8K/BrxX4Y8PXllZzw2A0fw74g1DQ9PgtYbbSWt7COC0twD+e//AIK5/wDBN79tv/gmzo/gPwP+2b+3p8Ffjd4o+I10muaH8APh98ff2jPip41s9A08X0EXxJ8R+GPiR8JfBvhTw94Zi1GKfRdG1TVdct9Y1rU3v4fDGmatb6N4mudHAP6Vv+DN7/gn5+2D8J7v4qftz/EPVNe+GX7L/wAcvhaPAvw5+FGr/bba6+N+sW3inQda0X43yaDcbbbTfCvg/TtO8S+HfA/iO4tl1bxWvjLXrnRJoPCaPc+JwD+7zWdY0zw9o+q6/rV5Dp2jaHpt9rGrahcErb2GmaZay3t/eTlQzCG1tYJZ5SqsQiMQCeKAP8kv/ghD8FfiJ8ctS/a/u/hhBq1na6JffBW4v7XR4rfbbW+vz/GeTSbeVPLMaLDHpt3HCsQVAFkAG0KAAfp9/wAF8/BvxC/4JE/8F7f2eP8Agqn8ONAvJvhx8ZfEnhT4tzR6YzxW2p+LfA+iaT8Lv2kfhl5oksxZ3nj/AOG9/ba1LLdX3k39x8StYaFzbadeWtqAf6G3wS+M/wANf2ivhF8Ofjp8HvFOm+NPhj8VvCOjeNvBXiXSriG4tdR0TW7SO6gEvkSSi01KxdpNO1nS52W90fV7S+0nUIoL+yuYIwD1KgD+aX9oX/g2d/Zt/av/AOCqviT/AIKO/tEfGbxh8Ufh74quPBPiDWv2Std8J2zeG9W8WeA/Bnh3wZolprHxLHitr/UPhX9m8M6bqF18Mk8FWj3kwn0q88W3Phm5udDmAP6TtO07T9I0+x0nSbGz0vS9Ls7bTtN03TraGy0/TtPsoUtrOxsbO2SK3tLO0t4o7e2treOOGCGNIokSNFUAH8+P/By7/wAFHPDv7Bv/AATb+J/g3Rddjg+P/wC1vofiD4BfCDRLY28mo2eieKNO/s74ufEG4jeeOex0vwh8P9S1Kw03V7aK5ntvH3iXwRAtuLe4vL6wAPmD/g0P/YZ8Qfswf8E6Nd/aE8e6LcaH45/ba8aaZ8StJs76yksdRT4I+CdNvdA+EM93HNI0k1v4juNY8deP9AvBHBDfeFfGug3tukkVwtxMAftN/wAFRf8Agm98G/8AgqV+yV4z/Zi+LTf2FqFxcQ+LfhN8TLSwXUda+E3xU0e0vrXw94002yNzZLqdmbXUdS0HxNoMt3axa94W1nWNOju9N1CXT9X04A/gv/Yb/wCCkP7eP/BsV+0b4o/YJ/bs+EviD4g/sn6j4s1LxFpun6R9okeytNRmEU/xm/ZZ8aauNM0PxZ4L8U7rXUPFngDVjZxrrsU1tcyfDvx7H4wtdWAP73P2Qf8Agqt/wT3/AG69C0nVf2af2qfhP421rU7O2upvhvqXiSz8HfF3RpJ3aBrTW/hZ4ufRfHFnJDeRy2YvI9FuNIvpYxNpOpajYz2t3OAfeur6zo/h/TrrV9e1XTdE0mxhkuL3VNXvrXTdOs7eGN5Zp7q9vJYba3hiiR5ZJZpURI0d2YKpIAP58f8AgpB/wcwf8E4P2DfDmuaL4F+Jfh39r79oCK1uI9C+EfwE8VaV4m8OWWrJI1uE+I/xf0ddb8D+CbWzuEkj1TS7O48S+OrWSMR/8IaY5GuoQD+VL9gH9gD9t/8A4OVP25Jv+Chv/BQaTWvD37H3h3xFpiSb7DVvDfhbxx4R8KaxLd6T+zR+zlpL3Nvd2fw+tHa90/x98Q9PvZ7i3ur7xHqN34g1z4ra3qmoQAH+lr4e8P6H4S0DQ/CvhjSdP0Dw14Z0fTPD/h7QtJtYbHStF0PRrKDTtJ0nTLK3VILPT9OsLa3s7O1gRIbe2hjijVURQADYoA+YP2s/2L/2Xv25vhde/Bv9qz4M+D/jJ4DuftUtlZeI7SaHWfDWoXds1pJrfgvxXpU+n+KfBfiBYG2R654X1jStTRVVPtJjGwgH8ZP7eX/BnD+zT4O0Txf8X/2av2t/ip8KfCel41A/DL4k/DvQ/jSlt9pndX07QvGWneMPhRqtlpdsZYVsV1+w8V6qkELJfavqM8v2pAD8EvgV/wAEJ9Y/aC+LMPwdvv2xNS0O1j1rSdMh1a7+DN14jt4XvftEEd1Hok3xo0uNGto1dEjW/UskjIssa53AH9gH7D//AAaD/wDBOj9mfXtI8dftEeJPHn7bHjXR5I57bRPiFYab4B+B4vITDJBfz/Cjw3eatq2uyJMswl0nxp8R/FnhO9tZUt77w1ctE08wB/Vdomh6L4Z0bSvDvhvR9L8P+H9C0+00nRNC0TT7TStG0fStPgS1sNM0rTLCG3stP0+ytoo7e0srSCG2toI0hhjSNFUAGpQA/9k=",alt:"",className:"w-[28px] lg:w-[44px] h-[28px] lg:h-[44px] rounded-full \n                        ".concat(o.isAtRightEnd?"opacity-50":"cursor-pointer"),onClick:function(){s("right")}})]}),(0,Vt.jsxs)("div",{className:"mb-[30px] lg:mb-[113px] bg-[#024C2B] w-full pt-5 lg:pt-[68px] pb-[16px] px-2 phones:px-6 ",children:[(0,Vt.jsx)("h4",{className:"mb-6 lg:mb-[55px] font-arial text-[#D8D8D8] text-center text-sm lg:text-[36px] font-bold lg:leading-[73px] tracking-[0.069px] ",children:"Features"}),(0,Vt.jsxs)("h5",{className:"mb-5 lg:mb-[54px] text-xl lg:text-[74px] leading-8 lg:leading-[113px] tracking-[0.08px] font-black text-white text-center font-merriweather",children:["Receive kind donations in ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," ",(0,Vt.jsx)("span",{className:"text-[#35FAA0]",children:" Different Currencies"})]}),(0,Vt.jsxs)("p",{className:"mb-14 lg:mb-[212px] font-arial text-white text-base lg:text-[36px] text-center lg:leading-[70px] tracking-[0.55px] ",children:["You can receive donations for your campaigns from anyone, ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," anywhere around the world. We believe that location should ",(0,Vt.jsx)("br",{className:"hidden lg:block"}),"not be a barrier when it comes to raising funds for a cause"]}),(0,Vt.jsxs)("div",{className:"mx-auto mb-[86px] lg:mb-[300px] block w-fit font-arial ",children:[(0,Vt.jsxs)("div",{className:"mb-[22px] lg:mb-[72px] w-[250px] phones:w-[270px] lg:w-[800px] lg:h-[200px] bg-[#F9F9F9] -rotate-[5deg] rounded-md lg:rounded-[15px] py-2 lg:py-[23px] px-3 lg:px-[31px]",children:[(0,Vt.jsx)("img",{src:Ru,alt:"like icon",className:"w-6 lg:w-[54px] absolute -top-3 lg:-top-7 -left-2 lg:-left-7 "}),(0,Vt.jsx)("img",{src:Bu,alt:"joint icon",className:"w-[14px] lg:w-[45px] h-5 lg:h-[60px] absolute -top-3 lg:-top-10 -right-1 lg:-right-5 "}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5",children:[(0,Vt.jsx)("img",{src:Fu,alt:"profile pic",className:"w-8 lg:w-[69px] h-8 lg:h-[69px] "}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[2px] lg:gap-2 ",children:[(0,Vt.jsx)("h6",{className:" text-xs lg:text-[27px] font-black lg:leading-[25px] tracking-[0.119px] ",children:"Davidflorin"}),(0,Vt.jsx)("p",{className:"mb-[5px] text-[10px] lg:text-[21px] lg:leading-[35px] -tracking-[0.155px]  ",children:"5 mins ago"}),(0,Vt.jsxs)("p",{className:"text-xs lg:text-[26px] lg:leading-8  ",children:["Made a donation of $",(0,Vt.jsx)("span",{className:"font-bold",children:"500"})," to your crowdfund campaign"]})]})]})]}),(0,Vt.jsxs)("div",{className:"mb-[22px] lg:mb-[72px] w-[250px] phones:w-[270px] lg:w-[800px] lg:h-[200px] bg-[#F9F9F9] rotate-[5deg] rounded-md lg:rounded-[15px] py-2 lg:py-[23px] px-3 lg:px-[31px]",children:[(0,Vt.jsx)("img",{src:Uu,alt:"like icon",className:"w-5 lg:w-[45px] h-5 lg:h-[60px] absolute -top-3 lg:-top-7 -left-1 lg:-left-2 "}),(0,Vt.jsx)("img",{src:Lu,alt:"joint icon",className:"w-7 lg:w-[60px] absolute -top-3 lg:-top-7 -right-4 lg:-right-7"}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5",children:[(0,Vt.jsx)("img",{src:Tu,alt:"profile pic",className:"w-8 lg:w-[69px] h-8 lg:h-[69px] "}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[2px] lg:gap-2 ",children:[(0,Vt.jsx)("h6",{className:"text-xs lg:text-[27px] font-black lg:leading-[25px] tracking-[0.119px] ",children:"Anonymous"}),(0,Vt.jsx)("p",{className:"mb-[5px] text-[10px] lg:text-[21px] lg:leading-[35px] -tracking-[0.155px]  ",children:"20 hours ago"}),(0,Vt.jsxs)("p",{className:"text-xs lg:text-[26px] lg:leading-8  ",children:["Made a donation of ",(0,Vt.jsx)("span",{className:"font-bold",children:"\u20a65000"})," to your crowdfund campaign"]})]})]})]}),(0,Vt.jsxs)("div",{className:"w-[250px] phones:w-[270px] lg:w-[800px] lg:h-[200px] bg-[#F9F9F9] -rotate-[5deg] rounded-md lg:rounded-[15px] py-2 lg:py-[23px] px-3 lg:px-[31px] ",children:[(0,Vt.jsx)("img",{src:Mu,alt:"like icon",className:"w-6 lg:w-[54px] absolute -top-3 lg:-top-7 -left-2 lg:-left-7 "}),(0,Vt.jsx)("img",{src:zu,alt:"joint icon",className:"w-5 lg:w-[45px] h-5 lg:h-[63px] absolute -top-3 lg:-top-9 -right-1  lg:-right-2 "}),(0,Vt.jsxs)("div",{className:"flex gap-2 lg:gap-5",children:[(0,Vt.jsx)("img",{src:Ou,alt:"profile pic",className:"w-7 lg:w-[69px] h-7 lg:h-[69px] "}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[2px] lg:gap-2 ",children:[(0,Vt.jsx)("h6",{className:" text-xs lg:text-[27px] font-black lg:leading-[25px] tracking-[0.119px] ",children:"MuabonjeRinga"}),(0,Vt.jsx)("p",{className:"mb-[5px] text-[10px] lg:text-[21px] lg:leading-[35px] -tracking-[0.155px]  ",children:"24 hours ago"}),(0,Vt.jsxs)("p",{className:"text-xs lg:text-[26px] lg:leading-8 ",children:["Made a donation of $",(0,Vt.jsx)("span",{className:"font-bold",children:"250"})," to your crowdfund campaign"]})]})]})]})]}),(0,Vt.jsxs)("h6",{className:"mb-6 lg:mb-[54px] text-xl lg:text-[74px] leading-8 lg:leading-[113px] font-black text-center text-white lg:tracking-[0.08px] ",children:["Amplify your Campaign by ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," adding ",(0,Vt.jsx)("span",{className:"text-[#35FAA0]",children:"Co-organisers"})]}),(0,Vt.jsxs)("p",{className:"mb-12 lg:mb-[133px] font-arial text-center text-[#FFFFFF] text-base lg:text-[36px] lg:leading-[70px] tracking-[0.552px] ",children:["You can add  participants as co - organisers  to your ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," crowdfunding campaign. Team up with friends around the ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," world to get your campaign amplified, and your mission ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," accomplished"]}),(0,Vt.jsx)("div",{className:"mx-auto z-[10] relative bg-white  py-[5px] lg:py-3 px-3 lg:px-[33px] rounded-full w-[175px] lg:w-[350px] h-[35px] lg:h-[64px] -rotate-[0.203deg] flex items-center justify-center ",children:(0,Vt.jsx)("span",{className:"text-base lg:text-[28px] font-arial font-bold leading-[50px] lg:leading-[121px] tracking-[0.088px] ",children:"Add Co-organisers"})}),(0,Vt.jsx)("div",{className:"mb-[42px] lg:mb-[78px] mx-auto relative -top-[26px] lg:-top-14 -right-1 lg:-right-2  bg-[#35FAA0] py-[5px] lg:py-3 px-3 lg:px-[33px] rounded-full w-[175px] lg:w-[350px] h-[30px] lg:h-[64px] -rotate-[0.203deg] flex items-center justify-center "}),(0,Vt.jsxs)("div",{className:"w-fit mx-auto mb-[84px] lg:mb-[301px] flex gap-[47px] lg:gap-[150px] xl:gap-[180px]",children:[(0,Vt.jsxs)("div",{className:"lg:mr-16 flex flex-col items-center gap-[6.12pxy] lg:gap-[23px] ",children:[(0,Vt.jsx)("img",{src:_u,alt:"profile pic",className:"w-[60px] lg:w-[180px] xl:w-[217px]"}),(0,Vt.jsx)("span",{className:"text-base lg:text-[43px] lg:leading-[72px] font-black text-white",children:"you"}),(0,Vt.jsx)("img",{src:Hu,alt:"pointer",className:"w-[25px] lg:w-[94px] h-[11px] lg:h-[42px] "})]}),(0,Vt.jsx)("img",{src:Wu,alt:"plus icon",className:"w-[24px] lg:w-[90px] h-[55px] lg:h-[206px] "}),(0,Vt.jsxs)("div",{className:"flex",children:[(0,Vt.jsx)("img",{src:Du,alt:"",className:"w-[60px] lg:w-[180px] xl:w-[217px] h-[60px] lg:h-[180px] xl:h-[217px] rounded-full"}),(0,Vt.jsx)("img",{src:Iu,alt:"",className:"w-[60px] lg:w-[180px] xl:w-[217px] h-[60px] lg:h-[180px] xl:h-[217px] rounded-full relative -left-4 lg:-left-16 "})]})]}),(0,Vt.jsxs)("h6",{className:"mb-5 lg:mb-[89px] text-center text-white text-xl lg:text-[74px] font-black leading-8 lg:leading-[113px] tracking-[0.08px] ",children:["Withdraw Donations into ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," any ",(0,Vt.jsx)("span",{className:"text-[#35FAA0]",children:"Verified Account"})," or Directly ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," into your ",(0,Vt.jsx)("span",{className:"text-[#35FAA0]",children:"Bank Account"})]}),(0,Vt.jsxs)("p",{className:"mb-[50px] lg:mb-[100px] font-arial text-center text-lg lg:text-[36px] text-white lg:leading-[70px]  ",children:["All funds generated from your donation can be withdrawn ",(0,Vt.jsx)("br",{className:"hidden lg:block"})," immediately into any verified account "," or can be ",(0,Vt.jsx)("br",{className:"hidden lg:block"}),"sent directly into your local bank account"]}),(0,Vt.jsxs)("div",{className:"w-fit max-w-[90%] mx-auto",children:[(0,Vt.jsx)(Zu,{date:"13",amount:"\u20a65000"}),(0,Vt.jsx)(Zu,{date:"9",amount:"$987"}),(0,Vt.jsx)(Zu,{date:"3",amount:"$5783"})]})]}),(0,Vt.jsx)("h6",{className:"mb-[22px] lg:mb-[45px] ml-[5%] 2xl:ml-[8%] text-xl lg:text-[45px] lg:leading-[73px] tracking-[0.069px]  text-[#000000] font-black ",children:"Palbucks is for"}),(0,Vt.jsxs)("div",{className:"mb-[54px] lg:mb-[174px] font-arial mx-[5%] 2xl:mx-[8%]  flex flex-col lg:flex-row items-center justify-between gap-8 lg:gap-1 ",children:[(0,Vt.jsxs)("div",{className:"relative rounded-md lg:rounded-lg w-full md:w-[380px] lg:w-[280px] xl:w-[380px] shadow-[0px_0px_4.016860485076904px_0px_rgba(0,0,0,0.20)] bg-[#F9F9F9] px-6 xl:px-7 py-4 xl:py-5 flex flex-col gap-1 lg:gap-4 xl:gap-[25px] items-center text-center  ",children:[(0,Vt.jsx)("img",{src:Vu,alt:"",className:"w-8 lg:w-[50px] absolute -right-3 lg:-right-7 -top-3 lg:-top-5"}),(0,Vt.jsx)("p",{className:"text-lg lg:text-[25px] xl:text-[33px] leading-9 lg:leading-[45px] font-bold ",children:"Yourself"}),(0,Vt.jsx)("p",{className:"text-[16px] lg:text-[18px] xl:text-[26px] text-[#525252] ",children:"Start a crowdfunding campaign for yourself to meet up necessary need, or to fulfil a mission of yours."})]}),(0,Vt.jsxs)("div",{className:"relative rounded-md lg:rounded-lg w-full md:w-[380px] lg:w-[270px] xl:w-[380px]  shadow-[0px_0px_4.016860485076904px_0px_rgba(0,0,0,0.20)] bg-[#35FAA0] px-6 xl:px-7 py-4 xl:py-5 flex flex-col gap-1 lg:gap-4 xl:gap-[25px] items-center text-center  ",children:[(0,Vt.jsx)("img",{src:Qu,alt:"",className:"w-8 lg:w-[50px] absolute -right-3 lg:-right-7 -top-3 lg:-top-5"}),(0,Vt.jsx)("p",{className:"text-lg lg:text-[25px] xl:text-[33px] leading-9 lg:leading-[45px] font-bold ",children:"Family & Friends"}),(0,Vt.jsx)("p",{className:"text-[16px] lg:text-[18px] xl:text-[27px] text-black ",children:"You can also start a crowdfunding campaign on behalf of a family member or a friend."})]}),(0,Vt.jsxs)("div",{className:"relative rounded-md lg:rounded-lg w-full md:w-[380px] lg:w-[270px] xl:w-[380px]  shadow-[0px_0px_4.016860485076904px_0px_rgba(0,0,0,0.20)] bg-[#F9F9F9] px-6 xl:px-7 py-4 xl:py-5 flex flex-col gap-1 lg:gap-4 xl:gap-[25px] items-center text-center  ",children:[(0,Vt.jsx)("img",{src:Yu,alt:"",className:"w-8 lg:w-[50px] absolute -right-3 lg:-right-7 -top-3 lg:-top-5"}),(0,Vt.jsx)("p",{className:"text-lg lg:text-[25px] xl:text-[33px] leading-9 lg:leading-[45px] font-bold ",children:"Charity"}),(0,Vt.jsx)("p",{className:"text-[16px] lg:text-[18px] xl:text-[27px] text-[#525252] ",children:"Charity Institutions are allowed to raise funds for different causes or needs that might arise overtime."})]})]}),(0,Vt.jsx)("button",{className:"mb-[15px] lg:mb-[33px] font-arial px-[26px] lg:px-[52px] hover:px-[72.5px] py-[10.4px] lg:py-[23.4px] transition-all duration-500 font-bold bg-black text-white rounded lg:rounded-[10px] text-base lg:text-3xl mx-auto block ",onClick:function(){t("/anonymouscrowdfundformtitle")},children:"Start a crowdfund"}),(0,Vt.jsx)("p",{className:"mb-10 lg:mb-[123px] font-arial text-base lg:text-[33px] text-center lg:leading-[55px] ",children:"Its totally free to get started"}),(0,Vt.jsx)("footer",{className:"lg:mx-[5%] 2xl:mx-[8%] font-arial border-t-[#D8D8D8] lg:border-t-[#525252] border-t-[1px] py-[29px] ",children:(0,Vt.jsxs)("nav",{className:"flex flex-col lg:flex-row items-center justify-between gap-8 xl:gap-[46px] ",children:[(0,Vt.jsxs)("div",{className:"order-2 lg:order-1 flex flex-col lg:flex-row items-center gap-5 lg:gap-7 xl:gap-[46px] ",children:[(0,Vt.jsx)(ol,{to:"/termsofuse",className:"text-[#525252] text-base lg:text-lg py-[5px] px-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Terms of use"})}),(0,Vt.jsx)(ol,{to:"/privacypolicy",className:"text-[#525252] text-base lg:text-lg py-[5px] px-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Privacy Policy"})}),(0,Vt.jsx)(ol,{to:"/helpcenter",className:"text-[#525252] text-base lg:text-lg py-[5px] px-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Help Center"})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",className:"text-[#525252] text-base lg:text-lg py-[5px] px-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Community Guidelines"})})]}),(0,Vt.jsxs)("div",{className:"order-1 lg:order-2 flex flex-col lg:flex-row gap-[15px] lg:gap-[38px] items-center ",children:[(0,Vt.jsxs)("div",{className:"order-2 lg:order-1 flex gap-[5px] ",children:[(0,Vt.jsx)("img",{src:Gu,alt:"copyright icon",className:"w-[18px] lg:w-6"}),(0,Vt.jsx)("span",{className:" text-[#525252] text-base lg:text-lg ",children:"2023 Palbucks"})]}),(0,Vt.jsxs)("div",{className:" order-1 lg:order-2 flex gap-[30px] lg:gap-[38px] items-center",children:[(0,Vt.jsx)("a",{target:"_blank",href:"https://x.com/palbucksco",children:(0,Vt.jsx)("img",{src:Kc,alt:"twitter icon",className:"w-[15px] lg:w-5 h-3 lg:h-4"})}),(0,Vt.jsx)("a",{target:"_blank",href:"https://www.instagram.com/palbucks?igsh=OGQ5ZDc2ODk2ZA%3D%3D&utm_source=qr",children:(0,Vt.jsx)("img",{src:qu,alt:"instagram icon",className:"w-[15px] lg:w-5"})})]})]})]})})]})]})};var ed=n.p+"static/media/googleicon.69d09cafcbee63e1c5953fc35c787501.svg";var td=n.p+"static/media/facebookicon.96688e532ab64845de91b7587b403ab0.svg";var nd=n.p+"static/media/bgradient.7a726ce515af287706c446d4e8ff86b5.svg";var rd=n.p+"static/media/bgradient2.281fbf3e3e693075ea8995310cd776c1.svg";var ad=n.p+"static/media/showpasswordicon.a81fab14dd4ea2176da78b215af927cb.svg";var od=n.p+"static/media/hidepassword.95288d96cf28ab8cf50bcd0b6afbb4d9.svg";var id=n.p+"static/media/checker.aa4af78eac6ff169c3725a40c180b57b.svg";var sd=n.p+"static/media/checker2.00be7753d6c2c9b3eee51a4f87086214.svg";var ld=n.p+"static/media/checker3.cef00e64250e76d7a19c0fcf4bf1e93d.svg",cd=function(){var e=l(i().mark((function e(t,n,r,a){var o,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},console.log(n),""==n?(t((function(e){return It(It({},e),{},{email:"Please enter your email address "})})),o.email="please put your email"):ud(n)?(t((function(e){return It(It({},e),{},{email:"correct"})})),o.email="correct"):(t((function(e){return It(It({},e),{},{email:"Enter valid email"})})),o.email="Invalid email type"),console.log("got here"),a||(r?(s=dd(r),o.password=s.message,t((function(e){return It(It({},e),{},{password:s.message,passwordtest:{testStage:"postRun",upperCase:s.upperCase,lowerCase:s.lowerCase,number:s.number,specialCharacter:s.specialCharacter,length:s.length}})}))):(t((function(e){return It(It({},e),{},{password:"Please enter your password"})})),o.password="Please enter your password")),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})));return function(t,n,r,a){return e.apply(this,arguments)}}(),ud=function(e){return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e)},dd=function(e){var t={upperCase:/[A-Z]/.test(e),lowerCase:/[a-z]/.test(e),number:/\d/.test(e),specialCharacter:/[@$!%*?&]/.test(e),length:e.length};return/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&\\(){}[\]:;<>,.?/~#'_"+\-=|\\^$]{8,}$/.test(e)?t.message="Strong password":t.message="Password strength is too weak",t},pd=cd,fd=function(t){var n=t.validateInput,r=t.setValidateInput,a=T((0,e.useState)(""),2),o=a[0],i=a[1],s=T((0,e.useState)(!1),2),l=s[0],c=s[1];return(0,e.useEffect)((function(){!function(e,t,n){if(!n)if(""==t)e((function(e){return It(It({},e),{},{password:"",passwordtest:{testStage:"preRun",upperCase:!1,lowerCase:!1,number:!1,specialCharacter:!1,length:0}})}));else{var r=dd(t);e((function(e){return It(It({},e),{},{password:r.message,passwordtest:{testStage:"postRun",upperCase:r.upperCase,lowerCase:r.lowerCase,number:r.number,specialCharacter:r.specialCharacter,length:r.length}})}))}}(r,o,!!t.ignorePasswordVerifier&&t.ignorePasswordVerifier)}),[o,r]),(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"relative mb-5 ",children:[(0,Vt.jsx)("input",{type:l?"text":"password",name:"password",placeholder:"Password",required:!0,value:o,onChange:function(e){!function(e){i(e.target.value)}(e),t.onChange&&t.onChange(e)},className:"w-full md:w-[700px] md:h-[82px] px-3 md:px-[29px] py-[10px] rounded-[6px] placeholder-[#888888] text-base md:text-xl bg-[#F9F9F9] border-2 md:border-[3px] \n              ".concat(n.password&&"Strong password"!==n.password?"border-[#FD6150] outline-[#FD6150] focus:border-[#FD6150] focus:caret-[#FD6150] ":"border-black outline-[#37BCF7] focus:border-[#37BCF7]"," \n              outline-[3px] focus:caret-[#37BCF7] ")}),(0,Vt.jsx)("span",{onClick:function(){c(!l)},className:"absolute top-[50%] right-4 transform -translate-y-1/2 cursor-pointer",children:(0,Vt.jsx)("img",{src:l?od:ad,alt:"show password",className:"w-5 h-4 md:w-[35px] md:h-5 "})})]}),n.password&&"Strong password"!==n.password?(0,Vt.jsx)("p",{className:"-mt-3 md:-mt-0 mb-5 text-[#FD6150] text-sm md:text-lg font-arial",children:n.password}):null,(0,Vt.jsxs)("div",{className:" ".concat(t.ignorePasswordVerifier?"hidden":"flex"," font-arial flex-col gap-[15px] bg-[#F9F9F9] py-[10px] px-[15px] rounded-md "),children:[(0,Vt.jsx)("p",{className:"text-sm md:text-lg font-bold ",children:"Your password must have:"}),(0,Vt.jsxs)("p",{className:"text-[13px] md:text-[17px] flex gap-3 ",children:[(0,Vt.jsx)("img",{src:"preRun"===n.passwordtest.testStage?id:n.passwordtest.upperCase?ld:sd,alt:"verification checker",className:"w-[11px] md:w-[15px]"}),(0,Vt.jsx)("span",{children:"1 Upper-case letter"})]}),(0,Vt.jsxs)("p",{className:"text-[13px] md:text-[17px] flex gap-3 ",children:[(0,Vt.jsx)("img",{src:"preRun"===n.passwordtest.testStage?id:n.passwordtest.lowerCase?ld:sd,alt:"verification checker",className:"w-[11px] md:w-[15px]"}),(0,Vt.jsx)("span",{children:"1 lower-case letter"})]}),(0,Vt.jsxs)("p",{className:"text-[13px] md:text-[17px] flex gap-3 ",children:[(0,Vt.jsx)("img",{src:"preRun"===n.passwordtest.testStage?id:n.passwordtest.number?ld:sd,alt:"verification checker",className:"w-[11px] md:w-[15px]"}),(0,Vt.jsx)("span",{children:"1 number"})]}),(0,Vt.jsxs)("p",{className:"text-[13px] md:text-[17px] flex gap-3 ",children:[(0,Vt.jsx)("img",{src:"preRun"===n.passwordtest.testStage?id:n.passwordtest.specialCharacter?ld:sd,alt:"verification checker",className:"w-[11px] md:w-[15px]"}),(0,Vt.jsx)("span",{children:"1 special character"})]}),(0,Vt.jsxs)("p",{className:"text-[13px] md:text-[17px] flex gap-3 ",children:[(0,Vt.jsx)("img",{src:"preRun"===n.passwordtest.testStage?id:n.passwordtest.length>=8?ld:sd,alt:"verification checker",className:"w-[11px] md:w-[15px]"}),(0,Vt.jsx)("span",{children:"8 characters at least "})]})]})]})},md=function(){(0,vt.useMediaQuery)({query:"(max-width: 768px)"});var t=bt(),n=Te(),r=T((0,e.useState)({}),2),a=r[0],o=r[1],s=T((0,e.useState)(!1),2),c=s[0],u=s[1],d=T((0,e.useState)({email:"",password:"",passwordtest:{testStage:"preRun",upperCase:!1,lowerCase:!1,number:!1,specialCharacter:!1,length:0}}),2),p=d[0],f=d[1],m=function(){var e=l(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return u(!0),r.preventDefault(),e.next=4,pd(f,a.email,a.password,!0).then(function(){var e=l(i().mark((function e(r){var o,s,l,c,u;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(r),"correct"!=r.email){e.next=27;break}return e.prev=2,console.log(a),e.next=6,fetch("".concat(Fr,"/users/api/login/"),{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}});case 6:return o=e.sent,e.next=9,o.json();case 9:if(s=e.sent,console.log(s),!o.ok){e.next=20;break}return l=s.access_token,c=s.refresh_token,u=s.user,l&&c&&u&&(localStorage.setItem("access_token",l),localStorage.setItem("refresh_token",c),localStorage.setItem("userInfo",JSON.stringify(u)),console.log(u)),e.next=16,Tr(t);case 16:t(St(!1)),n("/home",{replace:!0}),e.next=21;break;case 20:"Email or password incorrect."===s.message?f((function(e){return It(It({},e),{},{password:"Password or email is incorrect"})})):"You must complete registration before you login."===s.message?(alert("You must complete registration before you login."),n("/completesignup?email=".concat(a.email))):console.log(s);case 21:console.log(s),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(2),console.error("Error occurred during signin:",e.t0);case 27:case"end":return e.stop()}}),e,null,[[2,24]])})));return function(t){return e.apply(this,arguments)}}());case 4:u(!1);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"font-arial relative",children:[(0,Vt.jsxs)("header",{className:"w-full z-50 py-4 md:py-6 lg:py-[30px] px-5 md:px-[60px] lg:px-[95px] flex justify-between shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] bg-white fixed top-0 ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center cursor-pointer ",onClick:function(){n("/")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[138px] h-[14px] md:h-[24px] "})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-[35px]",children:[(0,Vt.jsx)(ol,{to:"/signin",className:"hidden md:flex items-center text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Don\u2019t have an account yet?"})}),(0,Vt.jsx)(ol,{to:"/signup",className:"text-[#000000] text-lg font-bold tracking-[0.069px] py-[6px] md:py-[8px] px-3 md:px-4 bg-[#35FAA0] hover:bg-[#35EB98] leading-[22px] flex items-center rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign up"})})]})]}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[200px] lg:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] top-[500px] md:bottom-0 lg:top-0 ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-[25px] lg:pt-[70px] md:pb-10 mt-[70px] md:mt-[90px] lg:mt-[103px] ",children:[(0,Vt.jsx)("h2",{className:"mb-9 md:mb-[59px] font-merriweather text-center text-2xl md:text-[48px] font-black md:leading-[73px] tracking-[0.069px] ",children:"Sign in"}),(0,Vt.jsxs)("form",{action:"",className:" block mx-auto w-fit max-w-[270px] phones:max-w-[300px] md:max-w-none  ",children:[(0,Vt.jsxs)("div",{className:"mb-10 md:mb-[56px] flex flex-col ",children:[(0,Vt.jsx)("input",{type:"email",name:"email",id:"email",placeholder:"Email",required:!0,onChange:function(e){o((function(t){return It(It({},t),{},_t({},e.target.name,e.target.value))}))},className:"mb-5 md:mb-[43px] w-full md:w-[700px] md:h-[82px] px-3 md:px-[29px] py-[10px] rounded-[6px] placeholder-[#888888] text-base md:text-xl bg-[#F9F9F9] border-2 md:border-[3px] \n                        ".concat(p.email&&"correct"!==p.email?"border-[#FD6150] outline-[#FD6150] focus:border-[#FD6150] focus:caret-[#FD6150] ":"border-black outline-[#37BCF7] focus:border-[#37BCF7]"," \n                        outline-[3px] focus:caret-[#37BCF7] ")}),p.email&&"correct"!==p.email?(0,Vt.jsx)("p",{className:"-mt-3 md:-mt-[23px] mb-5 md:mb-[43px] text-[#FD6150] text-sm md:text-lg font-merriweather",children:p.email}):null,(0,Vt.jsx)(fd,{ignorePasswordVerifier:!0,onChange:function(e){o((function(t){return It(It({},t),{},{password:e.target.value})}))},validateInput:p,setValidateInput:f}),(0,Vt.jsxs)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[70px] px-5 hover:px-[56px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:m,children:[(0,Vt.jsx)("div",{className:" ".concat(c?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(c?"hidden":"block"," "),children:"Sign in with email"})]})]}),(0,Vt.jsx)("p",{className:"mb-[32px] text-center text-base md:text-2xl",children:"or signin using"}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[18px] md:gap-[36px] items-center mb-[37px] ",children:[(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:ed,alt:"Google icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold mx-auto ",children:"Sign in with Google"})]}),(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:td,alt:"Facebook icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold mx-auto ",children:"Sign in with Facebook"})]}),(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:Ec,alt:"Twitter icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold mx-auto ",children:"Sign in with Twitter"})]})]}),(0,Vt.jsxs)("p",{className:"mx-auto text-base md:text-lg text-center tracking-[0.552px] ",children:[(0,Vt.jsx)(ol,{to:"/termsofuse",className:"font-bold",children:"Terms of Service "})," and ",(0,Vt.jsx)(ol,{to:"/privacypolicy",className:"font-bold",children:"Privacy Policy"})]})]})]})]})};var hd=function(e){var t=Te();return(0,Vt.jsxs)("header",{className:"w-full z-50 py-4 md:py-6 lg:py-[30px] px-5 md:px-[60px] lg:px-[95px] flex justify-between shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] bg-white fixed top-0 ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center cursor-pointer ",onClick:function(){t("/")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[138px] h-[14px] md:h-[24px] "})]}),(0,Vt.jsxs)("div",{className:"flex items-center gap-[35px] font-arial ",children:[(0,Vt.jsx)(ol,{to:"/signin",className:" ".concat("anonymouscrowdfund"==e.page?"hidden":"hidden md:flex","   items-center text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] hover:rounded-[5px] "),children:(0,Vt.jsx)("span",{children:"Already have an account?"})}),(0,Vt.jsx)(ol,{to:"/signin",className:"text-[#000000] text-lg font-bold tracking-[0.069px] py-[6px] md:py-[8px] px-3 md:px-4 bg-[#35FAA0] hover:bg-[#35EB98] leading-[22px] flex items-center rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign in"})})]})]})},xd=function(){var t=bt(),n=Te(),r=Fe(),a="anonymouscrowdfund"===new URLSearchParams(r.search).get("from"),o=T((0,e.useState)(!1),2),s=o[0],c=o[1],u=(lt((function(e){return e.signupInfo})),lt((function(e){return e.otpVerified})),T((0,e.useState)({email:"",password:""}),2)),d=u[0],p=u[1],f=T((0,e.useState)({email:"",password:"",passwordtest:{testStage:"preRun",upperCase:!1,lowerCase:!1,number:!1,specialCharacter:!1,length:0}}),2),m=f[0],h=f[1],x=function(e){p((function(t){return It(It({},t),{},_t({},e.target.name,e.target.value))}))},g=function(){var e=l(i().mark((function e(r){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),r.preventDefault(),console.log(s),e.next=5,pd(h,d.email,d.password).then(function(){var e=l(i().mark((function e(r){var o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("correct"!=r.email||"Strong password"!=r.password){e.next=5;break}return console.log(r),o=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch("".concat(Fr,"/users/api/register/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:d.email,password:d.password})});case 2:return t=e.sent,e.next=5,t.json();case 5:return n=e.sent,e.abrupt("return",n);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),e.next=5,o().then(function(){var e=l(i().mark((function e(r){var o,s,l;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log(r),1==r.status?(console.log(r.otp),o={email:d.email,password:d.password,otp:r.otp},t(jt(o)),t(Nt(r.otp)),s=r.access_token,l=r.refresh_token,s&&l&&(localStorage.setItem("access_token",s),localStorage.setItem("refresh_token",l)),n(a?"/otppage?from=anonymouscrowdfund":"/otppage")):h((function(e){return It(It({},e),{},{email:r.email[0]})}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.log(e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 5:c(!1);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"font-arial relative",children:[(0,Vt.jsx)(hd,{}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] bottom-0 md:bottom-[900px] ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-[25px] lg:pt-[70px] pb-5 md:pb-10 mt-[70px] md:mt-[90px] lg:mt-[103px] ",children:[(0,Vt.jsx)("h2",{className:"mb-9 md:mb-[59px] text-center text-2xl md:text-[48px] font-black md:leading-[73px] tracking-[0.069px] font-merriweather",children:a?"Create an account to continue":"Sign up"}),(0,Vt.jsxs)("form",{action:"",className:" block mx-auto w-fit max-w-[270px] phones:max-w-[300px] md:max-w-none font-arial  ",children:[(0,Vt.jsxs)("div",{className:"mb-10 md:mb-[56px] flex flex-col ",children:[(0,Vt.jsx)("input",{type:"email",name:"email",id:"email",placeholder:"Email",required:!0,onChange:x,className:"mb-5 md:mb-[43px] w-full md:w-[700px] md:h-[82px] px-3 md:px-[29px] py-[10px] rounded-[6px] placeholder-[#888888] text-base md:text-xl bg-[#F9F9F9] border-2 md:border-[3px] \n                        ".concat(m.email&&"correct"!==m.email?"border-[#FD6150] outline-[#FD6150] focus:border-[#FD6150] focus:caret-[#FD6150] ":"border-black outline-[#37BCF7] focus:border-[#37BCF7]"," \n                        outline-[3px] focus:caret-[#37BCF7] ")}),m.email&&"correct"!==m.email?(0,Vt.jsx)("p",{className:"-mt-3 md:-mt-[23px] mb-5 md:mb-[43px] text-[#FD6150] text-sm md:text-lg font-merriweather",children:m.email}):null,(0,Vt.jsx)(fd,{onChange:x,accountInfo:d,setAccountInfo:p,setValidateInput:h,validateInput:m}),(0,Vt.jsxs)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[70px] px-5 hover:px-[56px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center font-arial  ",onClick:g,children:[(0,Vt.jsx)("div",{className:" ".concat(s?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(s?"hidden":"block"," "),children:"Sign up with email"})]})]}),(0,Vt.jsx)("p",{className:"mb-[32px] text-center text-base md:text-2xl",children:"or signup using"}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[18px] md:gap-[36px] items-center mb-[37px] ",children:[(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:ed,alt:"Google icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold mx-auto ",children:"Sign up with Google"})]}),(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:td,alt:"Facebook icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold  mx-auto ",children:"Sign up with Facebook"})]}),(0,Vt.jsxs)("button",{className:"w-full md:w-[600px] md:h-[80px] py-[10px] md:py-5 px-4 md:px-7 flex items-center border-[1.5px] md:border-[3px] border-black\n                            rounded md:rounded-[8.5px] ",children:[(0,Vt.jsx)("img",{src:Ec,alt:"Twitter icon",className:"w-7 md:w-[50px] "}),(0,Vt.jsx)("span",{className:"text-lg md:text-3xl font-bold mx-auto  ",children:"Sign up with Twitter"})]})]}),(0,Vt.jsxs)("p",{className:"md:w-[580px] mx-auto text-base md:text-lg text-center tracking-[0.552px] ",children:["By signing up, you agree to our ",(0,Vt.jsx)(ol,{to:"/termsofuse",className:"font-bold",children:"Terms of Service "})," and ",(0,Vt.jsx)(ol,{to:"/privacypolicy",className:"font-bold",children:"Privacy Policy"})]})]})]})]})};var gd=n.p+"static/media/verify.b1b9323161284b0d8b16a596ec0d6014.svg",bd=function(e){return"object"===typeof e&&null!==e},vd=function(t){var n=t.value,r=void 0===n?"":n,a=t.numInputs,o=void 0===a?4:a,i=t.onChange,s=t.renderInput,l=t.shouldAutoFocus,c=void 0!==l&&l,u=t.inputType,d=void 0===u?"text":u,p=t.renderSeparator,f=t.placeholder,m=t.containerStyle,h=t.inputStyle,x=e.useState(0),g=x[0],b=x[1],v=e.useRef([]),y=function(){return r?r.toString().split(""):[]},w="number"===d||"tel"===d;e.useEffect((function(){v.current=v.current.slice(0,o)}),[o]),e.useEffect((function(){var e;c&&(null===(e=v.current[0])||void 0===e||e.focus())}),[c]);var k=function(){if("string"===typeof f){if(f.length===o)return f;f.length>0&&console.error("Length of the placeholder should be equal to the number of inputs.")}},j=function(e){return(w?!isNaN(Number(e)):"string"===typeof e)&&1===e.trim().length},N=function(e){var t=e.target.value;if(j(t))E(t),C(g+1);else{var n=e.nativeEvent;null===n.data&&"deleteContentBackward"===n.inputType&&(e.preventDefault(),E(""),C(g-1))}},A=function(){b(g-1)},S=function(e){var t=y();[e.code,e.key].includes("Backspace")?(e.preventDefault(),E(""),C(g-1)):"Delete"===e.code?(e.preventDefault(),E("")):"ArrowLeft"===e.code?(e.preventDefault(),C(g-1)):"ArrowRight"===e.code||e.key===t[g]?(e.preventDefault(),C(g+1)):("Spacebar"===e.code||"Space"===e.code||"ArrowUp"===e.code||"ArrowDown"===e.code||w&&!j(e.key))&&e.preventDefault()},C=function(e){var t,n,r=Math.max(Math.min(o-1,e),0);v.current[r]&&(null===(t=v.current[r])||void 0===t||t.focus(),null===(n=v.current[r])||void 0===n||n.select(),b(r))},E=function(e){var t=y();t[g]=e[0],P(t)},P=function(e){var t=e.join("");i(t)},F=function(e){var t;e.preventDefault();var n=y(),r=g,a=e.clipboardData.getData("text/plain").slice(0,o-g).split("");if(!w||!a.some((function(e){return isNaN(Number(e))}))){for(var i=0;i<o;++i)i>=g&&a.length>0&&(n[i]=null!==(t=a.shift())&&void 0!==t?t:"",r++);C(r),P(n)}};return e.createElement("div",{style:Object.assign({display:"flex",alignItems:"center"},bd(m)&&m),className:"string"===typeof m?m:void 0},Array.from({length:o},(function(e,t){return t})).map((function(t){var n,r,a;return e.createElement(e.Fragment,{key:t},s({value:null!==(n=y()[t])&&void 0!==n?n:"",placeholder:null!==(a=null===(r=k())||void 0===r?void 0:r[t])&&void 0!==a?a:void 0,ref:function(e){return v.current[t]=e},onChange:N,onFocus:function(e){return function(e){return function(t){b(t),e.target.select()}}(e)(t)},onBlur:A,onKeyDown:S,onPaste:F,autoComplete:"off",maxLength:1,"aria-label":"Please enter OTP character ".concat(t+1),style:Object.assign({width:"1em",textAlign:"center"},bd(h)&&h),className:"string"===typeof h?h:void 0,type:d},t),t<o-1&&("function"===typeof p?p(t):p))})))},yd=function(){var t=lt((function(e){return e.signupInfo})),n=Fe(),r="anonymouscrowdfund"===new URLSearchParams(n.search).get("from"),a=Te(),o=T((0,e.useState)(),2),s=o[0],c=o[1],u=lt((function(e){return e.otpVerified})),d=bt(),p=(0,vt.useMediaQuery)({query:"(max-width: 576px)"}),f=T((0,e.useState)(!1),2),m=f[0],h=f[1];(0,e.useEffect)((function(){console.log(u)}),[]);var x=function(){var e=l(i().mark((function e(){var n,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h(!0),console.log(t.otp),e.next=4,fetch("".concat(Fr,"/users/api/verify-email/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({otp:t.otp,email:t.email})});case 4:return n=e.sent,e.next=7,n.json();case 7:r=e.sent,console.log(r),1==r.status?(d(Ct(!0)),alert("Email verified successfully")):alert("Email verification failed"),h(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"font-merriweather relative",children:[(0,Vt.jsx)(hd,{}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[200px] lg:w-[400px] md:h-[200px] absolute -z-10 -left-[10px] md:-left-0 top-[250px] md:bottom-0 lg:top-0 rotate-[12deg] md:rotate-0 ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),u?(0,Vt.jsxs)("main",{className:"pt-[200px] md:pt-[250px] mt-[103px]px-3 font-arial ",children:[(0,Vt.jsxs)("div",{className:"mb-9 md:mb-[80px] flex flex-col items-center gap-3 md:gap-[25px] py-5 md:py-[50px] px-7 md:px-[106px] w-full phones:w-[90%] md:w-[800px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] mx-auto ",children:[(0,Vt.jsx)("img",{src:gd,alt:"verified",className:"w-[35px] md:w-[80px] "}),(0,Vt.jsx)("h3",{className:"mb-1 md:mb-[10px] text-xl md:text-[35px] font-black md:leading-[39px] ",children:"Verified!!"}),(0,Vt.jsx)("p",{className:"md:w-[591px] text-base md:text-[26px] text-center  ",children:"Hi there, you have successfully verified your email."})]}),(0,Vt.jsx)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[65px] mb-8 px-5 hover:px-[56px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:function(){a(r?"/anonymouscrowdfundformdescription":"/completesignup")},children:"Continue your signup"})]}):(0,Vt.jsxs)("main",{className:"pt-[48px] md:pt-[120px] mt-[103px] px-3 font-arial ",children:[(0,Vt.jsxs)("div",{className:"mb-5 md:mb-[49px] flex items-center justify-center w-fit mx-auto gap-[10px] md:gap-[25px] cursor-pointer ",onClick:function(){return a("/signup")},children:[(0,Vt.jsx)("img",{src:Rt,alt:"Back arrow",className:"w-6 md:w-[36px]"}),(0,Vt.jsx)("span",{className:"text-base md:text-[25px] font-bold ",children:"Entered a wrong email? Change email"})]}),(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[90%] md:w-[750px] mx-auto flex flex-col gap-[2px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:" pt-[18px] md:pt-[41px] pb-3 md:pb-[21px] px-[20px] ",children:(0,Vt.jsx)("h3",{className:"text-xl md:text-[30px] font-black leading-4 md:leading-[39px] text-center ",children:"Verify your email"})}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-[45px] px-3 md:px-6 py-6 md:py-[50px] border-t-[2.5px] md:border-t-[5px] border-[#F9F9F9] items-center ",children:[(0,Vt.jsx)("p",{className:"text-base md:text-[25px] font-bold leading-4 md:leading-[39px] text-center ",children:"Enter the 6 digit code"}),(0,Vt.jsx)("p",{className:"mb-2 md:mb-0 text-sm md:text-[22px] text-center ",children:"A 6-digit verification code has been sent to ".concat(t.email?t.email:"your email")}),(0,Vt.jsx)(vd,{value:s,onChange:c,numInputs:6,renderInput:function(e){return(0,Vt.jsx)("input",It({},e))},inputType:"number",renderSeparator:(0,Vt.jsx)("span",{style:{width:p?"10px":"15px"}}),inputStyle:{marginBottom:"",width:p?"36px":"84px",height:p?"36px":"84px",border:p?"0.5px solid #000":"1px solid #000",borderRadius:p?"2.3px":"5.3px",padding:p?"5px 10px":"13px 20px",outline:"none",textAlign:"center",fontSize:p?"14px":"24px",fontWeight:"700",background:"#F9F9F9",caretColor:"#37BCF7"},focusStyle:{border:"2px solid #37BCF7",outline:"none"}}),(0,Vt.jsx)("p",{className:" text-center text-sm md:text-xl ",children:"Your code will be active for 10 minutes"})]})]}),(0,Vt.jsxs)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[65px] mb-8 px-5 hover:px-[56px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:x,children:[(0,Vt.jsx)("div",{className:" ".concat(m?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(m?"hidden":"block"," "),children:"Confirm your email"})]}),(0,Vt.jsxs)("p",{className:"md:w-[630px] mx-auto text-sm md:text-lg text-center tracking-[0.552px] ",children:["By signing up, you agree to our ",(0,Vt.jsx)(ol,{to:"/termsofuse",className:"font-bold",children:"Terms of Service "})," and ",(0,Vt.jsx)(ol,{to:"/privacypolicy",className:"font-bold",children:"Privacy Policy"})]})]})]})},wd=function(){var t=bt(),n=Te(),r=T(cl(),1)[0].get("email"),a=T((0,e.useState)(!1),2),o=a[0],s=a[1],c=lt((function(e){return e.signupInfo})),u=T((0,e.useState)({first_name:"",last_name:"",dateOfBirth:"",username:"",gender:1,phone:"293",bio:"Humble man",email:r||c.email}),2),d=u[0],p=u[1],f=T((0,e.useState)({username:""}),2),m=f[0],h=f[1],x=function(e){p((function(t){return It(It({},t),{},_t({},e.target.name,e.target.value))}))},g=function(){var e=l(i().mark((function e(r){var a,o,l,u,p,f;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s(!0),e.prev=1,a=It(It({},c),d),console.log(a),e.next=6,fetch("".concat(Fr,"/users/api/complete-signup/"),{method:"POST",body:JSON.stringify(a),headers:{"Content-Type":"application/json"}});case 6:return o=e.sent,e.next=9,o.json();case 9:if(l=e.sent,console.log(l),!o.ok){e.next=20;break}return u=l.access_token,p=l.refresh_token,f=l.user,u&&p&&f&&(localStorage.setItem("access_token",u),localStorage.setItem("refresh_token",p),localStorage.setItem("userInfo",JSON.stringify(f))),console.log("request worked"),e.next=17,Tr(t);case 17:n("/home"),e.next=21;break;case 20:"Username already taken."===l.message&&h((function(e){return It(It({},e),{},{username:"Username already exists"})}));case 21:console.log(l),e.next=27;break;case 24:e.prev=24,e.t0=e.catch(1),console.error("Error occurred during signup:",e.t0);case 27:s(!1);case 28:case"end":return e.stop()}}),e,null,[[1,24]])})));return function(t){return e.apply(this,arguments)}}(),b=new Date;b.setFullYear(b.getFullYear()-18);var v=b.toISOString().split("T")[0];return(0,Vt.jsxs)("div",{className:"font-arial relative",children:[(0,Vt.jsx)(hd,{}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[200px] lg:w-[400px] md:h-[200px] absolute -z-10 -left-[10px] md:-left-0 top-[300px] md:top-[600px] md:bottom-0 lg:top-0 rotate-[12deg] md:rotate-0 ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-5 md:pt-[180px] mt-[103px] px-3 ",children:[(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-[75%] lg:w-[950px] mx-auto flex flex-col gap-[2.5px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:"py-4 md:py-[30px] px-8 md:pl-[50px] md:pr-[30px] ",children:(0,Vt.jsx)("h3",{className:"text-lg md:text-[30px] font-black md:leading-[39px] ",children:"Continue your signup process..."})}),(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row flex-wrap gap-8 md:gap-[50px] px-6 md:px-[50px] py-5 md:py-[47px] border-t-[3px] md:border-t-[6px] border-[#F9F9F9] md:items-center ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"first_name",className:"text-base md:text-xl font-bold ",children:"First name"}),(0,Vt.jsx)("input",{type:"text",name:"first_name",id:"first_name",placeholder:"Enter your first name",onChange:x,className:"w-full md:w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] border-black bg-[#F9F9F9] outline-none\n                                focus:border-[#37BCF7] focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg   "})]}),(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"last_name",className:"text-base md:text-xl font-bold ",children:"Last name"}),(0,Vt.jsx)("input",{type:"text",name:"last_name",id:"last_name",placeholder:"Enter your last name",onChange:x,className:"w-full md:w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] border-black bg-[#F9F9F9] outline-none\n                                focus:border-[#37BCF7] focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg   "})]}),(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"dateOfBirth",className:"text-base md:text-xl font-bold ",children:"What is your date of birth?"}),(0,Vt.jsx)("input",{type:"date",name:"dateOfBirth",id:"dateOfBirth",onChange:x,className:"w-full md:w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] border-black bg-[#F9F9F9] outline-none\n                                focus:border-[#37BCF7] focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg   ",max:v})]}),(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"userName",className:"text-base md:text-xl font-bold ",children:"What should we call you?"}),(0,Vt.jsxs)("div",{className:"w-full",children:[(0,Vt.jsxs)("div",{className:"relative mb-[10px]",children:[(0,Vt.jsx)("input",{type:"text",name:"username",id:"username",placeholder:"Enter a username",onChange:x,className:"w-full md:w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] bg-[#F9F9F9] outline-none focus:border-[1.5px] md:focus:border-[2px] text-sm md:text-lg\n                                        ".concat("Username already exists"==m.username?"border-[#FD6150] border-2 md:border-[3px] focus:border-[#FD6150] focus:caret-[#FD6150] ":"border-black focus:border-[#37BCF7]","\n                                     ")}),(0,Vt.jsx)("img",{src:"Username already exists"==m.username?sd:id,alt:"checker",className:"w-[9px] md:w-[13px] absolute top-[50%] right-3 md:right-4 transform -translate-y-1/2 cursor-pointer"})]}),"Username already exists"==m.username?(0,Vt.jsx)("p",{className:"text-[#FD6150] text-sm md:text-lg font-merriweather",children:m.username}):null]})]})]})]}),(0,Vt.jsxs)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[75px] mb-8 px-[50px] hover:px-[65px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:g,children:[(0,Vt.jsx)("div",{className:" ".concat(o?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(o?"hidden":"block"," "),children:"Finish signup"})]})]})]})},kd=function(){var t=lt((function(e){return e.authReducer.isAuthenticated}));return(0,e.useEffect)((function(){}),[]),t?(0,Vt.jsx)(Qe,{}):(0,Vt.jsx)(Ve,{to:"/signin"})},jd=function(){var e=l(i().mark((function e(t,n){var r,a,o;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(r=localStorage.getItem("refresh_token"))){e.next=27;break}return e.prev=2,e.next=5,fetch("".concat(Fr,"/auth/token/refresh/"),{method:"POST",body:JSON.stringify({refresh:r}),headers:{"Content-Type":"application/json"}});case 5:return a=e.sent,e.next=8,a.json();case 8:if(o=e.sent,console.log(o),!a.ok){e.next=17;break}return localStorage.setItem("access_token",o.access),console.log("Token updated successfully"),t(At(!0)),e.abrupt("return","success");case 17:console.log("Token refresh failed"),t(At(!1)),n("/signin");case 20:e.next=25;break;case 22:e.prev=22,e.t0=e.catch(2),console.error(e.t0);case 25:e.next=28;break;case 27:t(At(!1));case 28:case"end":return e.stop()}}),e,null,[[2,22]])})));return function(t,n){return e.apply(this,arguments)}}();var Nd=n.p+"static/media/Amex Canada.5f91ac9541ebed1dc2c4501d17cb1520.svg";var Ad=n.p+"static/media/Mastercard.74c4eed99c4e2792c206f0ab1bc34f75.svg";var Sd=n.p+"static/media/Visa Inc.0a14ff29b8c2bc42bdebbaf01edd20b0.svg";var Cd=n.p+"static/media/calendar.b89bd3a79fe8b61adc9b0a02e21cc579.svg";var Ed=n.p+"static/media/credit-card.c5d2bde9806b29a02690523e3877b16c.svg";var Pd=n.p+"static/media/lock.7e942a12cdf1e9a2c5a9c991ec9eef4b.svg";var Fd=n.p+"static/media/lock2.bdc5103b452c1cdc928e312500c46962.svg";var Td=n.p+"static/media/heart.07bcef81f80001d7f40bd68ce82489fc.svg",Od=n.p+"static/media/success2.7f043b14f9ee415b3725.png";var _d=n.p+"static/media/whatsapp.7673cddba20b54b4da555ed2b72a96b9.svg";var Dd=n.p+"static/media/twitter.3189c6fb03f98cd6a99eaa479d63ae1b.svg";var Id=n.p+"static/media/copy.b42f493496202ceb255533ccab9dc2b3.svg";var Rd=n.p+"static/media/mail.f989cba4c535e3ae8754b88dd6292850.svg";var Ld=n.p+"static/media/facebook.bb3915d8364d531df5edbd89df066007.svg";var Md=n.p+"static/media/usd.0b0cbf46361cb26000ad4247dbec737a.svg";var Bd=n.p+"static/media/naira.6fd18d3c7b8c0d4304462b25a7a34ff8.svg";var Ud=n.p+"static/media/downArrow.3c6f240bc608645c8f846bfec40d8ca9.svg";function zd(){var t=T((0,e.useState)({amount:"",donor:"",cardNumber:"",expirationDate:"",cvv:"",cardName:""}),2),n=t[0],r=t[1],a=_e().id,o=T(cl(),1)[0],s=(0,vt.useMediaQuery)({query:"(max-width: 768px)"});(0,e.useEffect)((function(){o.get("status");var e=o.get("reference"),t=o.get("transaction_id");console.log(e);var n=0;if(e){h("verifyingPayment");var r=localStorage.getItem("access_token"),s=function(){var o=l(i().mark((function o(){var l,c;return i().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,fetch("".concat(Fr,"/pay/api/").concat(a,"/donate/?txn_ref=").concat(e,"&transaction_id=").concat(t),{headers:{Authorization:"Bearer ".concat(r),"Content-Type":"application/json"}});case 2:return l=o.sent,o.next=5,l.json();case 5:if(c=o.sent,console.log(c),200!=l.status){o.next=25;break}if("completed"!=c.data.status){o.next=12;break}h("donationSuccessful"),o.next=23;break;case 12:if("pending"!=c.data.status){o.next=21;break}if(!(n>5)){o.next=17;break}return alert("An error occured we couldnt verify this payment,Please refresh the page or try again"),h("donationDetails"),o.abrupt("return");case 17:setTimeout((function(){s()}),5e3),n+=1,o.next=23;break;case 21:alert("An error occured we couldnt verify this payment,Please refresh the page or try again"),h("donationDetails");case 23:o.next=27;break;case 25:alert("An error occured we couldnt verify this payment,Please refresh the page or try again"),h("donationDetails");case 27:case"end":return o.stop()}}),o)})));return function(){return o.apply(this,arguments)}}();s()}else h("donationDetails")}),[o]);var c=T((0,e.useState)({cryptoDonationModal:!1,cryptoDonationData:{payment_id:"5428124683",payment_status:"waiting",pay_address:"0x4Ffc8580870272E52a8eB07cb2B89fC5fE4402bF",pay_amount:100,pay_currency:"usdtbsc",order_id:"73282b3d-2afc-4d5e-aba5-f6feced5fcf3",expiration_estimate_date:"2024-02-04T19:43:15.177Z"}}),2),u=c[0],d=c[1],p=Te(),f=T((0,e.useState)("donationSuccessful"),2),m=f[0],h=f[1];return(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full font-arial ",children:[(0,Vt.jsx)(ul,{sidebar:!1,onDonorPage:!0}),(0,Vt.jsxs)("div",{className:"mt-[90px] md:mt-[100px] py-[46px] fold:px-1 phones:px-4 md:px-10 lg:px-[94px]",children:[(0,Vt.jsxs)("div",{className:"mb-[30px] md:mb-[99px] flex gap-[10px] md:gap-6 cursor-pointer justify-center md:justify-start",onClick:function(){"donationDetails"==m||"donationSuccessful"==m?p("/detailed/".concat(a)):"cardDetails"==m&&h("donationDetails")},children:[(0,Vt.jsx)("img",{src:Rt,alt:"Go back",className:"w-[21px] md:w-[32px]"}),(0,Vt.jsx)("p",{className:"text-sm font-bold md:text-[23px] md:tracking-[0.062px] md:leading-9 ",children:"donationDetails"==m?"Go back to campaign page":"cardDetails"==m?"Go back to donation amount":"donationSuccessful"==m?"Go back to campaign page":null})]}),(0,Vt.jsxs)("div",{className:"mb-4 md:mb-[30px] mx-auto w-fit flex gap-[5px] items-center",children:[(0,Vt.jsx)("div",{className:"w-8 md:w-10 h-8 md:h-10 bg-[#35FAA0] rounded-full flex items-center justify-center text-base md:text-lg font-bold ",children:"1"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("donationDetails"!==m?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"2"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("donationSuccessful"==m?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"3"})]}),"donationDetails"==m?(0,Vt.jsx)(Hd,{id:a,setpageDisplay:h,donationDetails:n,setdonationDetails:r,isMobile:s,displayModals:u,setDisplayModals:d}):"cardDetails"==m?(0,Vt.jsx)(Wd,{setpageDisplay:h,donationDetails:n,setdonationDetails:r}):"donationSuccessful"==m?(0,Vt.jsx)(Vd,{}):"verifyingPayment"==m?(0,Vt.jsx)(Qd,{}):null]}),(0,Vt.jsx)(Il,{displayModals:u,setDisplayModals:d,eventid:a})]})}var Hd=function(t){var n=t.id,r=(t.setpageDisplay,t.donationDetails),a=t.setdonationDetails,o=t.isMobile,s=(t.displayModals,t.setDisplayModals),c=lt((function(e){return e.crowdfundEvents})).find((function(e){return e.id==n})),u=T((0,e.useState)(0),2),d=u[0],p=u[1],f=lt((function(e){return e.paymentMode})),m=T((0,e.useState)(!1),2),h=m[0],x=m[1],g=function(){var e=l(i().mark((function e(){var t,a,o,l,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("crypto"!=f){e.next=24;break}if(x(!0),0!=d){e.next=8;break}return alert("Please fill in the amount of usdt you wish to donate"),x(!1),e.abrupt("return");case 8:if(!(d<1)){e.next=12;break}return alert("Please enter a valid amount"),x(!1),e.abrupt("return");case 12:return e.next=14,fetch("".concat(Fr,"/pay/api/").concat(n,"/donate-crypto/"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({amount:d,currency:"usdtbsc"})});case 14:return t=e.sent,e.next=17,t.json();case 17:a=e.sent,console.log(a),console.log(t.status),200===t.status?s((function(e){return It(It({},e),{},{cryptoDonationModal:!0,cryptoDonationData:a})})):console.log("error"),x(!1),e.next=47;break;case 24:if("fiat"!=f){e.next=47;break}if(x(!0),""!=r.amount){e.next=32;break}return alert("Please fill in the amount you wish to donate"),x(!1),e.abrupt("return");case 32:if(!(r.amount<1)){e.next=36;break}return alert("Please enter a valid amount"),x(!1),e.abrupt("return");case 36:return console.log(r.amount,typeof y.value),o=localStorage.getItem("access_token"),e.next=40,fetch("".concat(Fr,"/pay/api/").concat(n,"/donate/"),{method:"POST",headers:{Authorization:"Bearer ".concat(o),"Content-Type":"application/json"},body:JSON.stringify({amount:r.amount,currency:y.value,channel:"squad"})});case 40:return l=e.sent,e.next=43,l.json();case 43:c=e.sent,console.log(c),200==l.status?window.open(c.data.url,"_self"):400==c.status&&"Minimum amount is 100 Naira"==c.message?alert("Minimum amount is 100 Naira"):alert("An error occured, please try again"),x(!1);case 47:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),b=[{value:"USD",label:"",image:Md},{value:"NGN",label:"",image:Bd}],v=T((0,e.useState)(b[0]),2),y=v[0],w=v[1],k={control:function(e,t){return It(It({},e),{},{position:"absolute",right:"20px",top:"50%",transform:"translateY(-50%)",width:o?"60px":"70px",height:o?"40px":"50px",border:"0",caretColor:"transparent",boxShadow:(t.isFocused,0),cursor:"pointer"})},menu:function(e){return It(It({},e),{},{cursor:"pointer",position:"absolute",top:"22px",right:"10px",width:"70px"})},option:function(e,t){t.data,t.isDisabled;var n=t.isFocused,r=t.isSelected;return It(It({},e),{},{backgroundColor:r?"#37BCF7":n?"#37BCF71A":null})}};return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"mb-[25px] md:mb-[68px] bg-white p-[13px] md:py-[37px] md:px-[59px] max-w-[670px] mx-auto rounded md:rounded-[10px] ",children:[(0,Vt.jsxs)("div",{className:"mb-[38px] md:mb-[58px] flex gap-4 md:gap-7 ",children:[(0,Vt.jsx)("img",{src:c.banner,alt:"crowdfund banner",className:"w-[77px] md:w-[153px] h-[68px] md:h-[100px] object-cover rounded "}),(0,Vt.jsxs)("p",{className:"text-sm md:text-xl tracking-[0.069px] ",children:["You are donating to the  ",(0,Vt.jsx)("span",{className:"font-black",children:c.title})," campaign"]})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"amount",className:"text-sm md:text-lg font-bold",children:"What amount do you wish to donate?"}),(0,Vt.jsxs)("div",{className:"relative h-12 md:h-[70px] flex items-center ",children:[(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",min:1,placeholder:"usd"==y.value?"Enter your donation (in USD)":"naira"==y.value?"Enter your donation (in Naira)":"Enter your donation",className:"w-full h-12 md:h-[70px] py-1 md:py-[10px] px-3 md:px-5 border-[1.5px] border-black rounded bg-white placeholder-[#888888] text-sm md:text-lg tracking-[0.8px] focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] ",onChange:function(e){"crypto"==f?p(e.target.value):"fiat"==f&&a(It(It({},r),{},_t({},e.target.name,e.target.value)))}}),(0,Vt.jsx)(Ds,{defaultValue:b[0],onChange:w,options:b,styles:k,components:{IndicatorSeparator:function(){return null},DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:Ud,alt:"down arrow",className:"w-5 md:w-7 h-5 md:h-7"})}},formatOptionLabel:function(e){return(0,Vt.jsx)("img",{src:e.image,alt:"option",className:"w-3 md:w-5 h-3 md:h-6"})}})]})]})]}),(0,Vt.jsxs)("button",{className:"mx-auto w-fit min-w-[200px] md:min-w-[280px] block py-[10px] md:py-5 px-[18px] md:px-9 rounded md:rounded-lg bg-[#000000]  text-white text-[15px] md:text-[28px] font-bold md:leading-[43px] md:-tracking-[0.188px] ",onClick:g,children:[(0,Vt.jsx)("div",{className:" ".concat(h?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(h?"hidden":"block"," "),children:"Make a donation"})]})]})},Wd=function(t){var n=t.setpageDisplay,r=t.donationDetails,a=t.setdonationDetails,o=T((0,e.useState)(!1),2),i=o[0],s=o[1],l=function(e){a(It(It({},r),{},_t({},e.target.name,e.target.value)))};return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"mb-[57px] bg-white max-w-[700px] mx-auto shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:" py-[31px] pl-[50px] pr-[30px] border-b-2 border-[#dfdbdb] ",children:(0,Vt.jsx)("h2",{className:"text-[28px] font-black tracking-[0.069px] leading-10 ",children:"Enter your card details"})}),(0,Vt.jsxs)("div",{className:"py-[37px] px-[59px] flex flex-col gap-[58px] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"cardNumber",className:"flex items-center justify-between ",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,Vt.jsx)("img",{src:Ed,alt:"credit card",className:"w-6 h-6"}),(0,Vt.jsx)("p",{className:"text-lg font-bold",children:"Card number (Credit or debit)"})]}),(0,Vt.jsxs)("div",{className:"flex gap-[15px] items-center justify-center ",children:[(0,Vt.jsx)("img",{src:Sd,alt:"visa inc",className:"w-[35px] h-3"}),(0,Vt.jsx)("img",{src:Ad,alt:"mastercard",className:" w-[35px] h-[21px] "}),(0,Vt.jsx)("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACMAAAANCAYAAAAjf9cfAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOKSURBVHgBvVV5SFRxEP7e23WPbLHWq2tN7bDCLs0uu0XLCrOkO1uyqLQDi6h/SqGDqCDIoBAsKg2NskO0y7KipCLtQDYrt6gMK0vLa4/n291+b9Y218j/bGCZ3xwM3858M49zMEGbOJqbIFYaID57SrZMp4NH+Dhwfn74HyL//RDulqBl9044mhrdEjiFEir9aqjXpqCrhZM6YzmfC9PBfZ0mqpPWQZ28CV0pvL2mBpYTmdCcPgdNVg6Dx7mD2LiFYq2GCgjXCtGVwpuzjsNe9x0wtUA+YiTk4RF/glotVMv1kAUPgM1YBcu5s+RvRzM3EW122Ox2ektaEEW3uGR39Nnb1eJtVa+ciXdukVYlLHYF5RMnMxbL0Fp8HY66bzhd9Rk+8SnwiF6FgSu24XHlW8q7WVaB8PXpUM1MgjImCbfKDdiXU4Bus9bgxNV7lPP1RwPZM7cfgijasCHjDLzmroOC1Zq+dT8+fP3OxtTQ4ARTeJmRtwnysRPAaTTkUy5aTtrKOFXFq7BFHYjE6EiUHt0FrcYTS/Yco/hDgxEvjB8wJiQIaSvjMaivP6JGD6PY7acvSZc8c+r5k8JxMK8ImQUlOJ6qx5W9qah4V03geU6hcLbeZIK14BIBUcYvBB8UDPmQobC9M9K6X/TwprzGFjNuPKmAztcb1bV1MLz/5OpkyrwoAtO/lw8ihw/GoH7+1LUmsxVFD59TTtzEMOTfL0NP9meMNbUof/Mefbx7EFjeY2qUq5jlZCYcFjMDkwBV4iqnL/uUszttxH7bVkBknJgzftRfhG8vS2dMwM9mEy4/KEPenceYFDoYgQyo5GuxWKmO9Avq7YfoMaGQKxMWwZqXDYcg0I0RSoqhnB0HpS4A0qYJRVeocIBdIB0WEojDycvoXV1bD52fFhf+AWbzghgcyC3ExiNnyE6KnUJ65AAdvtT/JHteZBgtRIPJDF7Wpy/UW3e4Cgi5OdK60NucdczlT5wzDSOCdcjIvwkFI6makXFKaue3qUf3bjQWqQuB/j5IjIkkf7p+ARtTdySkZ8Azdg3VSzuZ77zA0gbx3j4wHT4A8XUlXWKJO0JRAWnV6vVQsxUvszuQXVyKyo81kPE8hgT0puIRIcFIjovCQEbcjpKmj0cvrRdiIkLZRDlXZx5k7GTjK8enb/Xw8lTTmDi3bxO7AeKjUogvDdQ63tcXyuhY13Z1tfwCdY5yY6CPK/IAAAAASUVORK5CYII=",alt:"visa Inc",className:"w-[35px] h-3 "}),(0,Vt.jsx)("img",{src:Nd,alt:"amex canada",className:"w-[35px] h-[35px] "})]})]}),(0,Vt.jsxs)("div",{className:"relative h-fit flex items-center",children:[(0,Vt.jsx)("input",{type:"number",name:"cardNumber",id:"cardNumber",placeholder:"Enter your card number",className:"w-full h-[70px] py-[10px] px-5 border-[1.5px] border-black rounded bg-white text-[#888888] text-lg tracking-[0.8px] ",onChange:l}),(0,Vt.jsx)("img",{src:Fd,alt:"Lock",className:"absolute right-5 m-auto "})]})]}),(0,Vt.jsxs)("div",{className:"flex md:gap-[48px] items-center justify-between",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"expirationDate",className:"flex items-center gap-[10px] ",children:[(0,Vt.jsx)("img",{src:Cd,alt:"expiry date",className:"w-6 h-6"}),(0,Vt.jsx)("p",{className:"text-lg font-bold",children:"Expiration date"})]}),(0,Vt.jsx)("input",{type:"text",name:"expirationDate",id:"expirationDate",placeholder:"mm/yy",className:"w-full h-[70px] py-[10px] px-5 border-[1.5px] border-black rounded bg-white text-[#888888] text-lg tracking-[0.8px] ",onChange:l})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"cvv",className:"flex items-center md:gap-20 justify-between",children:[(0,Vt.jsxs)("div",{className:"flex items-center gap-[10px]",children:[(0,Vt.jsx)("img",{src:Pd,alt:"lock"}),(0,Vt.jsx)("p",{className:"text-lg font-bold",children:"CVV"})]}),(0,Vt.jsx)("p",{className:"text-[#2CA9F2] font-black ",children:"What is this?"})]}),(0,Vt.jsx)("input",{type:"number",name:"cvv",id:"cvv",placeholder:"123",className:"w-full h-[70px] py-[10px] px-5 border-[1.5px] border-black rounded bg-white text-[#888888] text-lg tracking-[0.8px] ",onChange:l})]})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,Vt.jsx)("label",{htmlFor:"cardName",className:"text-lg font-bold",children:"Name on card"}),(0,Vt.jsx)("input",{type:"text",name:"cardName",id:"cardName",placeholder:"Enter the name on your card ",className:"w-full h-[70px] py-[10px] px-5 border-[1.5px] border-black rounded bg-white text-[#888888] text-lg tracking-[0.8px] ",onChange:l})]})]})]}),(0,Vt.jsxs)("button",{className:"mx-auto w-fit min-w-[280px] md:min-w-[350px] block py-5 px-9 rounded-lg bg-[#000000]  text-white text-[28px] font-bold leading-[43px] -tracking-[0.188px] ",onClick:function(e){s(!0),e.preventDefault(),function(e){if(!e.cardNumber.match(/^(?:[0-9]{13,19})$/))return alert("Invalid card number"),!1;if(!e.expirationDate.match(/^(0[1-9]|1[0-2])\/([2-3][0-9])$/))return alert("Invalid expiration date (mm/yy)"),!1;var t=T(e.expirationDate.split("/"),2),n=t[0],r=t[1],a=(new Date).getFullYear()%100,o=(new Date).getMonth()+1;if(!(Number(r)<a||Number(r)===a&&Number(n)<o))return e.cvv.match(/^(?:[0-9]{3,4})$/)?""!==e.cardName.trim()||(alert("Please fill in your card name"),!1):(alert("Invalid CVV"),!1);alert("Card is expired")}(r)&&(n("donationSuccessful"),window.scrollTo(0,0)),s(!1)},children:[(0,Vt.jsx)("div",{className:" ".concat(i?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(i?"hidden":"block"," "),children:"Donate now"})]})]})},Vd=function(){return(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsxs)("div",{className:"mb-[57px] bg-white max-w-[788px] mx-auto shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded-[10px] ",children:[(0,Vt.jsxs)("div",{className:" py-[31px] px-[48px] border-b-2 border-[#dfdbdb] flex gap-[15px] items-center justify-center ",children:[(0,Vt.jsx)("img",{src:Td,alt:"heart icon",className:" w-[30px] h-[30px] "}),(0,Vt.jsx)("h2",{className:"text-xl font-black tracking-[0.069px] text-center ",children:"Thank you for your donation, you are simply a joy to the world."})]}),(0,Vt.jsxs)("div",{className:"pt-5 pb-[38px] px-[52px] ",children:[(0,Vt.jsx)("img",{src:Od,alt:"donation successful",className:"w-[114px] h-[120px] mx-auto rotate-[35.26deg] "}),(0,Vt.jsx)("h3",{className:"mb-4 text-[28px] font-black text-center ",children:"Help this campaign be a complete success"}),(0,Vt.jsx)("p",{className:"mb-[31px] text-xl text-center tracking-[0.069px]",children:"Use the social links below to share this campaign around the world. By doing so, this campaign will certainly be a success"}),(0,Vt.jsx)("hr",{className:"mb-[22px] w-[90%] h-[0.5px] bg-black mx-auto "}),(0,Vt.jsxs)("div",{className:"mb-[49px] flex justify-between gap-2 ",children:[(0,Vt.jsxs)("div",{className:"flex items-center justify-center gap-[17px] cursor-pointer bg-[#35FAA01A] py-[10px] px-[31px] rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Ld,alt:"facebook link",className:"w-[25px] h-[25px] "}),(0,Vt.jsx)("span",{className:"text-[22px] ",children:"Facebook"})]}),(0,Vt.jsxs)("div",{className:"flex items-center justify-center gap-[17px] cursor-pointer bg-[#35FAA01A] py-[10px] px-[31px] rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:_d,alt:"whatsapp link",className:"w-[25px] h-[25px] "}),(0,Vt.jsx)("span",{className:"text-[22px]",children:"Whatsapp"})]}),(0,Vt.jsxs)("div",{className:"flex items-center justify-center gap-[17px] cursor-pointer bg-[#35FAA01A] py-[10px] px-[31px] rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Dd,alt:"twitter link",className:"w-[25px] h-[25px] "}),(0,Vt.jsx)("span",{className:"text-[22px]",children:"Twitter"})]})]}),(0,Vt.jsxs)("div",{className:"flex justify-center gap-10 ",children:[(0,Vt.jsxs)("div",{className:"flex items-center justify-center gap-[17px] cursor-pointer border-[1px] border-black py-[10px] px-[31px] rounded-[10px] md:w-[250px] ",children:[(0,Vt.jsx)("img",{src:Rd,alt:"mail link",className:"w-[25px] h-[25px] "}),(0,Vt.jsx)("span",{className:"text-[22px]",children:"Send Email"})]}),(0,Vt.jsxs)("div",{className:"flex items-center justify-center gap-[17px] cursor-pointer border-[1px] border-black py-[10px] px-[31px] rounded-[10px] md:w-[250px] ",children:[(0,Vt.jsx)("img",{src:Id,alt:"copy link",className:"w-[25px] h-[25px] "}),(0,Vt.jsx)("span",{className:"text-[22px]",children:"Copy link"})]})]})]})]}),(0,Vt.jsx)("button",{className:"mx-auto w-fit min-w-[280px] md:min-w-[350px] block py-5 px-9 rounded-lg bg-[#000000]  text-white text-[28px] font-bold leading-[43px] -tracking-[0.188px] ",children:"View your receipt"})]})},Qd=function(){return(0,Vt.jsxs)("div",{className:"mb-[68px] bg-white py-[37px] px-[59px] max-w-[670px] mx-auto rounded-[10px] ",children:[(0,Vt.jsx)("h1",{className:"text-lg",children:"Payment Pending"}),(0,Vt.jsx)("p",{className:"text-lg",children:"Please wait while we verify your payment"})]})},Yd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDwAAADxCAYAAAAnU6eaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAbFSURBVHgB7dyxjRNBGEDhHUcXugSnzs4dHCVRAUcltEAJ7sBkG3J04NBOvOwKkGjBT98nzeifFp5mZkz/uVwu+5eXl/0EAAAA8ERut9v1dDpd/53Hts3z/DbG+LKObxMAAADAc/qxLMvn4/F4HmvsOKyx4+cEAAAAELBGj0+7NXZ8mwAAAAAitlcsW/B4nQAAAAA6XnfLsvikFAAAACjZ7yYAAACAGMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgBzBAwAAAMgRPAAAAIAcwQMAAADIETwAAACAHMEDAAAAyBE8AAAAgJzdsiy/JgAAAICO63bD4zwBAAAARIwxvm/B431dHxMAAADA8/t4PB5fxzbN83yY/oSPw98FAAAA8DTGGNc1dJzv9/v76XS6/gYgMjdEJ8xY/QAAAABJRU5ErkJggg==";var qd=n.p+"static/media/upload.72d874503b7bdbbbc627eca8c1bf70e6.svg";var Gd=function(){var t=bt(),n=lt((function(e){return e.sidebarslid})),r=lt((function(e){return e.sidebarstate})),a=(0,vt.useMediaQuery)({query:"(max-width: 940px)"}),o=T((0,e.useState)("displayProfile"),2),i=o[0],s=o[1],l=Te(),c=function(){l(-1),t({type:"set profilepage inactive"})};return(0,e.useEffect)((function(){return t({type:"set profilepage active"}),window.scrollTo(0,0),function(){t({type:"set profilepage inactive"})}}),[]),(0,Vt.jsxs)("div",{className:"bg-[#F9F9F9] min-h-full overflow-y-auto max-h-[100vh]",children:[(0,Vt.jsx)(Sl,{}),(0,Vt.jsxs)("div",{className:" ".concat(n?"ml-[100px]":" brkpoint:ml-[250px] lg:ml-[280px] xl:ml-[320px]"," ").concat(a&&r?"blur-sm":""," "),children:[(0,Vt.jsx)(ul,{}),"displayProfile"==i?(0,Vt.jsx)(Xd,{goback:c,setDisplay:s}):(0,Vt.jsx)(Jd,{goback:c})]})]})},Xd=function(e){var t=e.goback,n=e.setDisplay,r=JSON.parse(localStorage.getItem("userInfo"));return(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[19px] lg:pr-[27px] pt-5 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("img",{src:Rt,alt:"backarrow",className:"mb-6 md:mb-10 w-[22px] md:w-[32px] inline-block cursor-pointer ",onClick:t}),(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-xl phones:text-xl md:text-3xl leading-7 tracking-[0.5px] mb-2 md:mb-4",children:"Profile"}),(0,Vt.jsx)("p",{className:"text-sm md:text-[18px] mb-8 ",children:"Change your profile photo, cover photo, bio and more"}),(0,Vt.jsxs)("div",{className:"bg-white p-[10px] md:p-5 w-full xl:w-[80%] relative mb-10 md:mb-[70px] ",children:[(0,Vt.jsx)("img",{src:r.background_image?r.background_image:Yd,alt:"campaign",className:" rounded w-full max-h-[150px] md:max-h-[250px] 2xl:max-h-[300px] object-cover "}),(0,Vt.jsx)("img",{src:r.dp?r.dp:Ut,alt:"user avatar",className:"relative bottom-9 lg:bottom-12 left-2 max-w-full min-w-[55px] w-[9%] rounded-full inline-block z-10 "}),(0,Vt.jsx)("button",{className:"hidden md:block mb-4 text-[16px] font-black text-white bg-[#37BCF7] py-[5px] px-[15px] rounded-[10px]  float-right relative top-5",onClick:function(){return n("editProfile")},children:"Edit profile"}),(0,Vt.jsx)("h1",{className:" font-black text-base md:text-[24px] mb-1 md:mb-2 -mt-5 md:-mt-0 ",children:r.first_name?r.first_name+" "+r.last_name:"Daniel Alba"}),(0,Vt.jsxs)("p",{className:"text-[#8E8E93] mb-3 md:mb-5 text-sm md:text-[18px] flex items-center ",children:["@",r.username?r.username:"therealdanielalba",(0,Vt.jsx)("span",{className:"w-[2px] mx-[10px] h-4 bg-[#8E8E93] inline-block"}),(0,Vt.jsx)("img",{src:Cc,alt:"",className:"inline-block w-[15px] relative bottom-[2px] pt-1 "}),(0,Vt.jsx)("span",{children:r.location&&r.location})]}),(0,Vt.jsx)("p",{className:"mb-5 md:mb-0 text-sm leading-6 md:text-[18px] md:leading-[30px] ",children:r.bio?r.bio:"No bio yet!"}),(0,Vt.jsx)("button",{className:" md:hidden mb-1 text-sm md:text-[16px] font-black text-white bg-[#37BCF7] py-[4px] px-[11px] rounded-[5px] ",onClick:function(){return n("editProfile")},children:"Edit profile"})]}),(0,Vt.jsxs)("div",{className:"bg-white w-full xl:w-[80%] rounded ",children:[(0,Vt.jsx)("div",{className:"p-[15px] md:py-[25px] border-b-[2px] border-b-[#d1d1d5] ",children:(0,Vt.jsx)("h1",{className:"text-base md:text-[22px] text-center font-black ",children:"My Social Links"})}),(0,Vt.jsxs)("div",{className:"flex gap-2 justify-around p-3 md:py-[30px] md:px-14 2xl:px-20 ",children:[(0,Vt.jsxs)("div",{className:" ".concat(r.social_links.twitter?"flex":"hidden"," cursor-pointer  items-center justify-center gap-2 md:gap-4 bg-[#F9F9F9] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] "),onClick:function(){null!==r.social_links.twitter&&window.open(r.social_links.twitter)},children:[(0,Vt.jsx)("img",{src:Ec,alt:"twitter icon",className:"w-4 md:w-6 lg:w-8 "}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Twitter"})]}),(0,Vt.jsxs)("div",{className:" ".concat(r.social_links.facebook?"flex":"hidden"," cursor-pointer  items-center justify-center gap-2 md:gap-4 bg-[#F9F9F9] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] "),onClick:function(){null!==r.social_links.facebook&&window.open(r.social_links.facebook)},children:[(0,Vt.jsx)("img",{src:Pc,alt:"facebook icon",className:" w-4 md:w-6 lg:w-8"}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Facebook"})]}),(0,Vt.jsxs)("div",{className:" ".concat(r.social_links.instagram?"flex":"hidden"," cursor-pointer  items-center justify-center gap-2 md:gap-4 bg-[#F9F9F9] py-[5px] md:py-[15px] px-[14px] md:px-[31px] rounded md:rounded-[10px] "),onClick:function(){null!==r.social_links.instagram&&window.open(r.social_links.instagram)},children:[(0,Vt.jsx)("img",{src:Fc,alt:"Instagram icon",className:"w-4 md:w-6 lg:w-8"}),(0,Vt.jsx)("h4",{className:"text-xs md:text-[22px]",children:"Instagram"})]}),!r.social_links.twitter&&!r.social_links.facebook&&!r.social_links.instagram&&(0,Vt.jsx)("p",{className:"text-[#8E8E93] text-[14px]  md:text-[17px] ",children:"No link to show here"})]})]})]})},Jd=function(t){t.goback;var n,r,a,o=JSON.parse(localStorage.getItem("userInfo")),s=T((0,e.useState)({fullname:!0,bio:!0,location:!0,socialLinks:!0}),2),c=s[0],u=s[1],d=function(e){var t=e.target.id,n=c[t];u(It(It({},c),{},_t({},t,!n)))},p=T((0,e.useState)(!1),2),f=p[0],m=p[1],h=T((0,e.useState)({dp:o.dp?o.dp:Ut,background_image:o.background_image?o.background_image:Yd}),2),x=h[0],g=h[1],b=T((0,e.useState)({}),2),v=b[0],y=b[1],w=T((0,e.useState)(null),2),k=w[0],j=w[1],N=function(e){var t=e.target,n=t.name;t.value;g(It(It({},x),{},_t({},n,URL.createObjectURL(e.target.files[0])))),y(It(It({},v),{},_t({},n,e.target.files[0]))),"dp"==n&&j(e.target.files[0])},A=function(e){var t=e.target,n=t.name,r=t.value;if("fullName"!==n)y(It(It({},v),{},_t({},n,r)));else{var a=r.split(" "),o=a[0],i=a[1]?a[1]:"";y(It(It({},v),{},{first_name:o,last_name:i}))}},S=function(){var e=l(i().mark((function e(){var t,n,r,a,s,l,c,u,d;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(m(!0),console.log(v),t=localStorage.getItem("access_token"),console.log(t),n=new FormData,r=0,a=Object.entries(v);r<a.length;r++)s=T(a[r],2),l=s[0],c=s[1],n.append(l,c);return e.next=8,fetch("".concat(Fr,"/users/api/profile/"),{method:"PATCH",headers:{Authorization:"Bearer ".concat(t)},body:n});case 8:return u=e.sent,e.next=11,u.json();case 11:d=e.sent,console.log(d),200===u.status?(localStorage.setItem("userInfo",JSON.stringify(d)),o=JSON.parse(localStorage.getItem("userInfo")),m(!1),window.location.reload(!0)):(alert("An error occured while updating your profile"),m(!1)),m(!1);case 15:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,Vt.jsxs)("div",{className:"fold:px-2 phones:px-5 md:px-10 lg:pl-[19px] lg:pr-[27px] pt-8 md:pt-12 pb-5 mt-[90px] md:mt-[100px] font-arial w-full h-full ",children:[(0,Vt.jsx)("h1",{className:"font-black font-merriweather text-xl phones:text-xl md:text-3xl leading-7 tracking-[0.5px] mb-2 md:mb-4",children:"Edit your Profile"}),(0,Vt.jsx)("p",{className:"text-sm md:text-[18px] mb-8 ",children:"Change your profile photo, cover photo, bio and more"}),null!==k&&(0,Vt.jsx)(Kd,{image:k,profileData:v,setProfileData:y,userImages:x,setUserImages:g,setImageforCrop:j}),(0,Vt.jsxs)("div",{className:"w-full relative xl:w-[80%] mb-[70px]",children:[(0,Vt.jsxs)("div",{className:"relative",children:[(0,Vt.jsx)("label",{htmlFor:"background_image",children:(0,Vt.jsx)("div",{className:"w-fit",children:(0,Vt.jsx)("img",{src:x.background_image,alt:"campaign",className:"rounded w-full max-h-[150px] md:max-h-[250px] 2xl:max-h-[300px] object-cover"})})}),(0,Vt.jsx)("label",{htmlFor:"background_image",children:(0,Vt.jsx)("img",{src:qd,alt:"upload icon",className:"absolute inset-0 w-[27px] md:w-[35px] lg:w-[41px] m-auto cursor-pointer "})}),(0,Vt.jsx)("input",{type:"file",accept:"image/*",name:"background_image",id:"background_image",className:"hidden",onChange:N})]}),(0,Vt.jsx)("div",{className:"absolute bottom-0 left-4 md:left-7 lg:left-10 transform translate-x-[-10%] translate-y-[30%]",children:(0,Vt.jsx)("label",{htmlFor:"dp",children:(0,Vt.jsxs)("div",{className:"relative w-[60px] md:w-[80px] lg:w-[120px] h-[60px] md:h-[80px] lg:h-[120px] mx-auto cursor-pointer ",children:[(0,Vt.jsx)("img",{src:x.dp,alt:"user avatar",className:"w-full h-full rounded-full"}),(0,Vt.jsxs)("div",{className:"w-fit",children:[(0,Vt.jsx)("label",{htmlFor:"dp",className:"cursor-pointer",children:(0,Vt.jsx)("img",{src:qd,alt:"upload icon",className:"absolute inset-0 w-[18px] md:w-[24px] lg:w-[35px] m-auto"})}),(0,Vt.jsx)("input",{type:"file",name:"dp",id:"dp",className:"hidden",onChange:N})]})]})})})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] xl:w-[80%] ",children:[(0,Vt.jsxs)("div",{className:"bg-[#37BCF7] rounded-t md:rounded-t-none py-5 px-[15px] md:pl-[30px] md:pr-[10px] flex gap-2 md:gap-5 items-center text-white  ",children:[(0,Vt.jsx)("img",{src:Kt,alt:"info icon",className:"w-4 h-4 md:w-6 md:h-6"}),(0,Vt.jsx)("h3",{className:"text-sm md:text-[18px] leading-[20px] tracking-[0.5px] font-black",children:"To change your username go to settings"})]}),(0,Vt.jsxs)("div",{id:"fullname",className:" p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:d,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Full name"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(c.fullname?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsx)("div",{className:" ".concat(c.fullname?"block":"hidden"," py-3 px-4 md:p-[30px]"),children:(0,Vt.jsx)("input",{id:"fullName",name:"fullName",type:"text",defaultValue:o.first_name?o.first_name+" "+o.last_name:"Daniel Alba",onChange:A,className:"w-full md:w-[70%] max-w-[894px] md:h-[56px] rounded-[4px] border-[1px] border-[#D8D8D8] \n                        py-3 px-[10px] md:px-5 text-sm md:text-base outline-0\n                        focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2]\n                        "})})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] xl:w-[80%] ",children:[(0,Vt.jsxs)("div",{id:"bio",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:d,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Bio"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(c.bio?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsx)("div",{className:" ".concat(c.bio?"block":"hidden"," py-3 px-4 md:p-[30px]"),children:(0,Vt.jsx)("textarea",{type:"text",name:"bio",onChange:A,defaultValue:o.bio?o.bio:"Hi there! i am Daniel and i work with WHO to make the world a better place. I am here basically to raise more funds for the development of the next hybrid child. #HYBRIDCHILDREN",rows:"7",className:"w-full rounded border-[1px] border-[#D8D8D8] \n                        py-3 px-[10px] md:px-5 text-sm md:text-base outline-0 focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] "})})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-6 md:mb-[59px] xl:w-[80%] ",children:[(0,Vt.jsxs)("div",{id:"location",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:d,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Location"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(c.location?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsx)("div",{className:" ".concat(c.location?"block":"hidden"," py-3 px-4 md:p-[30px]"),children:(0,Vt.jsxs)("button",{className:"flex justify-between rounded-r-[14px] md:rounded-r-[24px] rounded-l-[5px] md:rounded-l-lg py-[2px] md:py-1 px-[10px] md:px-4 items-center h-[34px] md:h-14 min-w-[106px] md:min-w-[183px] border-[1px] border-[#8E8E93] bg-[#F9F9F9]   ",children:[(0,Vt.jsx)("span",{className:"text-xs md:text-base",children:o.location&&o.location}),(0,Vt.jsx)("img",{src:tn,alt:"remove icon",className:"w-[18px] md:w-6 "})]})})]}),(0,Vt.jsxs)("div",{className:"bg-white mb-[47px] md:mb-[59px] xl:w-[80%] ",children:[(0,Vt.jsxs)("div",{id:"socialLinks",className:"  p-[15px] md:py-[25px] md:px-[30px] flex justify-between border-b-2 border-[#c2bfbf] items-center cursor-pointer ",onClick:d,children:[(0,Vt.jsx)("h3",{className:"text-base md:text-[22px] leading-[22px] tracking-[0.5px] font-black pointer-events-none",children:"Social links"}),(0,Vt.jsx)("img",{src:Ht,alt:"down arrow",className:" ".concat(c.socialLinks?"":"rotate-180"," cursor-pointer w-[22px] md:w-[30px] md:h-[14px] pointer-events-none")})]}),(0,Vt.jsxs)("div",{className:" ".concat(c.socialLinks?"flex flex-col gap-5 md:gap-14":"hidden"," py-3 px-4 md:p-[30px]"),children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-[10px] md:gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"facebookLink",className:"flex items-start gap-[10px]",children:[(0,Vt.jsx)("img",{src:Pc,alt:"facebook icon",className:"w-4 md:w-6 inline-block"}),(0,Vt.jsx)("span",{className:"text-sm md:text-xl font-bold ",children:"Facebook Link"})]}),(0,Vt.jsx)("input",{type:"url",name:"facebook",defaultValue:null!==(n=o.social_links)&&void 0!==n&&n.facebook?o.social_links.facebook:"",onChange:A,placeholder:"Enter your facebook link here",className:"w-full md:w-[70%] max-w-[894px] md:h-14 rounded-[4px] border-[1px] border-[#D8D8D8]\n                            py-3 px-[10px] md:px-5 text-sm md:text-base outline-0 focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] "})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[10px] md:gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"twitterLink",className:"flex items-center gap-[10px]",children:[(0,Vt.jsx)("img",{src:Ec,alt:"twitter icon",className:"w-4 md:w-6"}),(0,Vt.jsx)("span",{className:"text-sm md:text-xl font-bold ",children:"Twitter Link"})]}),(0,Vt.jsx)("input",{type:"url",name:"twitter",defaultValue:null!==(r=o.social_links)&&void 0!==r&&r.twitter?o.social_links.twitter:"",onChange:A,placeholder:"Enter your twitter link here",className:" w-full md:w-[70%] max-w-[894px] h-14 rounded-[4px] border-[1px] border-[#D8D8D8]\n                            py-3 px-[10px] md:px-5 text-sm md:text-base outline-0 focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] "})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-[10px] md:gap-5",children:[(0,Vt.jsxs)("label",{htmlFor:"instagramLink",className:"flex items-center gap-[10px]",children:[(0,Vt.jsx)("img",{src:Fc,alt:"instagram icon",className:"w-4 md:w-6 inline-block"}),(0,Vt.jsx)("span",{className:"text-sm md:text-xl font-bold ",children:"Instagram Link"})]}),(0,Vt.jsx)("input",{type:"url",name:"instagram",onChange:A,defaultValue:null!==(a=o.social_links)&&void 0!==a&&a.instagram?o.social_links.instagram:"",placeholder:"Enter your instagram link here",className:"w-full md:w-[70%] max-w-[894px] h-14 rounded-[4px] border-[1px] border-[#D8D8D8]\n                            py-3 px-[10px] md:px-5 text-sm md:text-base outline-0 focus:border-2 focus:border-[#37BCF7] focus:caret-[#2CA9F2] "})]})]})]}),(0,Vt.jsxs)("div",{className:"w-full xl:w-[80%] ",children:[(0,Vt.jsxs)("button",{className:"bg-[#37BCF7] mb-3 md:mb-4 mx-auto py-[10px] px-5 w-fit min-w-full phones:min-w-[300px] md:w-1/2 max-w-[400px] md:max-w-[460px] md:h-[48px] rounded md:rounded-[10px] text-white font-bold text-base md:text-[18px] block ",onClick:S,children:[(0,Vt.jsx)("div",{className:" ".concat(f?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(f?"hidden":"block"," "),children:"Save profile changes"})]}),(0,Vt.jsx)("button",{className:"text-[#37BCF7] mb-3 md:mb-4 mx-auto py-[10px] px-5 min-w-full w-fit phones:min-w-[300px] md:w-1/2 max-w-[400px] md:max-w-[460px] md:h-[48px] rounded md:rounded-[10px] hover:bg-white font-bold text-base md:text-[18px] block ",children:"Cancel changes"})]})]})},Kd=function(t){var n=t.image,r=t.setImageforCrop,a=(t.userImages,t.setUserImages),o=(t.profileData,t.setProfileData),s=T((0,e.useState)(null),2),c=s[0],u=s[1],d=T((0,e.useState)(null),2),p=d[0],f=d[1],m=T((0,e.useState)({x:0,y:0}),2),h=m[0],x=m[1],g=T((0,e.useState)(null),2),b=g[0],v=g[1],y=(0,e.useCallback)((function(e,t){v(t)}),[]),w=(0,e.useCallback)(l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,yr(c,b);case 3:return t=e.sent,a((function(e){return It(It({},e),{},{dp:t})})),e.next=7,Ar(t,p);case 7:n=e.sent,o((function(e){return It(It({},e),{},{dp:n})})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))),[c,b]);return(0,e.useEffect)((function(){function e(){return(e=l(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return f(n.name),e.next=3,Sr(n);case 3:t=e.sent,u(t);case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,Vt.jsx)("div",{className:"fixed z-50 inset-0 overflow-y-auto",children:(0,Vt.jsxs)("div",{className:"flex flex-col gap-5 items-center justify-center min-h-screen pt-4 px-4 pb-20 text-center",children:[(0,Vt.jsx)("div",{className:"fixed inset-0 bg-gray-500 opacity-75"}),(0,Vt.jsxs)("div",{className:"w-full max-w-[550px] h-[280px] md:h-[400px] inline-block align-bottom bg-gray-900 rounded-lg overflow-hidden shadow-xl transform transition-all relative",children:[(0,Vt.jsx)(Fn,{image:c,crop:h,aspect:1,cropShape:"round",onCropChange:x,onCropComplete:y,zoom:1,restrictPosition:!1}),(0,Vt.jsx)("button",{className:"bg-[#37BCF7] px-5 md:px-8 py-2 text-white text-sm md:text-base font-semibold absolute bottom-4 left-4 shadow-md rounded hover:bg-[#0baef4]",onClick:function(){w(),r(null)},children:"Apply"})]})]})})},Zd=n(8281),$d=n.n(Zd);var ep=n.p+"static/media/arrowdown.335c4c94c1ac35e7dd2d655683a10076.svg";var tp=function(){var t=(0,vt.useMediaQuery)({query:"(max-width: 767px)"}),n=bt(),r=Te(),a=(lt((function(e){return e.anonymousCrowdfundData})),T((0,e.useState)({tags:"",title:"",location:""}),2)),o=a[0],s=a[1],c=T((0,e.useState)([]),2),u=c[0],d=c[1];(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://restcountries.com/v3.1/all?fields=name");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,d(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching data: ",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var p=u.map((function(e){return{value:e.name.common,label:e.name.common}})).sort((function(e,t){return e.label.localeCompare(t.label)})),f=function(){return(0,Vt.jsx)("img",{src:ep,alt:"down arrow",className:"w-[15px] h-[14px] "})};return(0,Vt.jsxs)("div",{className:"relative font-arial",children:[(0,Vt.jsx)(hd,{page:"anonymouscrowdfund"}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] top-[535px] md:-top-[100px] lg:-top-[280px] ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-5 md:pt-[150px] mt-[103px] px-3 ",children:[(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-[70%] lg:w-[950px] mx-auto flex flex-col gap-[2.5px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:"py-4 md:py-[30px] px-6 md:pl-[50px] md:pr-[30px] ",children:(0,Vt.jsx)("h3",{className:"text-lg md:text-[30px] font-black md:leading-[39px] ",children:"Let's begin your journey"})}),(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row flex-wrap gap-8 md:gap-[50px] px-6 md:px-[50px] py-5 md:py-[47px] border-t-[3px] md:border-t-[6px] border-[#F9F9F9] md:items-center ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5 w-full ",children:[(0,Vt.jsx)("label",{htmlFor:"title",className:"text-base md:text-xl font-bold ",children:"Give a title to your campaign"}),(0,Vt.jsx)("input",{type:"text",name:"title",id:"title",placeholder:"Enter your campaign title",value:o.title,onChange:function(e){s((function(t){return It(It({},t),{},{title:e.target.value})}))},className:"w-full md:min-w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] border-black bg-[#F9F9F9] outline-none\n                                    focus:border-[#37BCF7] focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg   "})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 w-full max-w-[390px] ",children:[(0,Vt.jsx)("label",{htmlFor:"category",className:"text-base md:text-xl font-bold ",children:"Select a category for your campaign"}),(0,Vt.jsx)(Ds,{options:Vs,placeholder:"Select category",onChange:function(e){s((function(t){return It(It({},t),{},{tags:e.value})}))},defaultValue:o.tags?o.tags:"",components:{DropdownIndicator:f,IndicatorSeparator:function(){return null}},styles:{control:function(e,n){return It(It({},e),{},{width:"100%",height:t?"38px":"60px",border:n.isFocused?"2px solid #37BCF7":"1.5px solid black",borderRadius:t?"2px":"5px",boxShadow:(n.isFocused,0),"&:hover":{border:(n.isFocused,"1px solid gray")},cursor:"pointer",caretColor:"transparent",paddingRight:"20px",paddingLeft:"-10px"})},menu:function(e){return It(It({},e),{},{zIndex:"30",color:"black"})},menuList:function(e){return It(It({},e),{},{padding:0})}},formatOptionLabel:function(e){return(0,Vt.jsxs)("div",{className:"flex items-center gap-2 ",children:[(0,Vt.jsx)("img",{src:e.icon,alt:"category icon",className:"w-4 h-4"}),(0,Vt.jsx)("span",{className:"text-sm font-black pt-1",children:e.label})]})}})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 w-full max-w-[390px]",children:[(0,Vt.jsx)("label",{htmlFor:"location",className:"text-base md:text-xl font-bold ",children:"Select your country"}),(0,Vt.jsx)(Ds,{options:p,placeholder:"Select country",onChange:function(e){s((function(t){return It(It({},t),{},{location:e.value})}))},components:{DropdownIndicator:f,IndicatorSeparator:function(){return null}},styles:{control:function(e,n){return It(It({},e),{},{width:"100%",height:t?"38px":"60px",border:n.isFocused?"2px solid #37BCF7":"1.5px solid black",borderRadius:t?"2px":"5px",boxShadow:(n.isFocused,0),"&:hover":{border:(n.isFocused,"1px solid gray")},cursor:"pointer",caretColor:"transparent",paddingRight:"20px",paddingLeft:"-10px"})},menu:function(e){return It(It({},e),{},{zIndex:"30",color:"black"})},menuList:function(e){return It(It({},e),{},{padding:0})}}})]})]})]}),(0,Vt.jsx)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[75px] mb-8 px-[50px] hover:px-[65px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:function(){""!==o.title&&""!==o.location&&""!==o.tags?(console.log(o),n(Ot({crowdfundData:o})),r("/anonymouscrowdfundformamount")):alert("Fill all inputs")},children:(0,Vt.jsx)("span",{className:" block",children:"Continue"})})]})]})},np=function(){(0,vt.useMediaQuery)({query:"(max-width: 767px)"});var t=bt(),n=Te(),r=(lt((function(e){return e.anonymousCrowdfundData.crowdfundData.target_price})),T((0,e.useState)(null),2)),a=r[0],o=r[1];return(0,Vt.jsxs)("div",{className:"relative font-arial",children:[(0,Vt.jsx)(hd,{page:"anonymouscrowdfund"}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] top-[535px] md:-top-[100px] lg:-top-[280px] ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-10 md:pt-[150px] mt-[103px] px-3 ",children:[(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-[70%] lg:w-[950px] mx-auto flex flex-col gap-[2.5px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:"py-4 md:py-[30px] px-6 md:pl-[50px] md:pr-[30px] ",children:(0,Vt.jsx)("h3",{className:"text-lg md:text-[30px] font-black md:leading-[39px] ",children:"What is your target amount?"})}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-5 px-6 md:px-[50px] py-5 md:py-[47px] border-t-[3px] md:border-t-[6px] border-[#F9F9F9]",children:[(0,Vt.jsxs)("div",{className:"relative h-12 md:h-[70px] flex items-center ",children:[(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",min:1,placeholder:"Enter your donation (in USD)",onChange:function(e){o(e.target.value)},className:"w-full md:min-w-[390px] h-[38px] md:h-[60px] px-3 md:px-[22px] rounded-sm md:rounded border-[1.5px] border-black bg-[#F9F9F9] outline-none\n                                    focus:border-[#37BCF7] focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg   "}),(0,Vt.jsx)("img",{src:Md,alt:"Usd Icon",className:"absolute right-5 top-1/2 -translate-y-1/2 w-3 md:w-5 h-3 md:h-6 "})]}),(0,Vt.jsx)("p",{className:" text-[#525252] text-sm  ",children:"At the end of your crowdfund, you will get 98% of total raised."})]})]}),(0,Vt.jsx)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[75px] mb-8 px-[50px] hover:px-[65px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:function(){null!==a&&0!==a?(t(Ot({crowdfundData:{target_price:a}})),n("/signup?from=anonymouscrowdfund")):alert("Fill all inputs")},children:(0,Vt.jsx)("span",{className:" block",children:"Continue"})})]})]})};var rp=function(){(0,vt.useMediaQuery)({query:"(max-width: 767px)"});var t=bt(),n=Te(),r=T((0,e.useState)(""),2),a=r[0],o=r[1];return(0,Vt.jsxs)("div",{className:"relative font-arial",children:[(0,Vt.jsx)(hd,{page:"anonymouscrowdfund"}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] top-[535px] md:-top-[100px] lg:-top-[200px] ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-5 md:pt-[150px] mt-[103px] px-3 ",children:[(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-[70%] lg:w-[950px] mx-auto flex flex-col gap-[2.5px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:"py-4 md:py-[30px] px-6 md:pl-[50px] md:pr-[30px] ",children:(0,Vt.jsx)("h3",{className:"text-lg md:text-[30px] font-black md:leading-[39px] ",children:"A good story attracts donors"})}),(0,Vt.jsx)("div",{className:"flex flex-col md:flex-row flex-wrap gap-8 md:gap-[50px] px-6 md:px-[50px] py-5 md:py-[47px] border-t-[3px] md:border-t-[6px] border-[#F9F9F9] md:items-center ",children:(0,Vt.jsxs)("div",{className:"flex flex-col items-start gap-3 md:gap-5 w-full ",children:[(0,Vt.jsx)("label",{htmlFor:"description",className:"text-base md:text-xl font-bold ",children:"Describe your campaign to your donors"}),(0,Vt.jsx)("textarea",{name:"description",id:"description",rows:"10",className:" mb-[10px] md:mb-5 w-full p-[10px] md:p-5 border-[1.5px] border-black bg-[#FFFFFF] outline-none focus:border-[#37BCF7] \n                                focus:border-[2px] md:focus:border-[2px] focus:caret-[#37BCF7] text-sm md:text-lg rounded-sm md:rounded ",placeholder:"Tell a bit about your campaign in other to make your donors understand your reason for your crowdfund.",onChange:function(e){o(e.target.value)},maxLength:"1500"})]})})]}),(0,Vt.jsx)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[75px] mb-8 px-[50px] hover:px-[65px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-lg md:text-[28px] mx-auto flex items-center justify-center  ",onClick:function(){""!==a?(console.log(a),t(Ot({crowdfundData:{description:a}})),n("/anonymouscrowdfundformbanner")):alert("Fill all inputs")},children:(0,Vt.jsx)("span",{className:" block",children:"Continue"})})]})]})};var ap=function(){(0,vt.useMediaQuery)({query:"(max-width: 767px)"});var t=bt(),n=Te(),r=T((0,e.useState)({banner:null}),2),a=r[0],o=r[1],s=T((0,e.useState)("banner"),2),c=s[0],u=s[1],d=T((0,e.useState)(!1),2),p=d[0],f=d[1],m=lt((function(e){return e.anonymousCrowdfundData.crowdfundData})),h=new Date,x=new Date;return x.setDate(h.getDate()+90),(0,Vt.jsxs)("div",{className:"relative font-arial",children:[(0,Vt.jsx)(hd,{page:"anonymouscrowdfund"}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[800px] absolute -z-10 -right-[0px] top-[100px] md:-top-[200px] ",children:(0,Vt.jsx)("img",{src:nd,alt:"",className:"w-full"})}),(0,Vt.jsx)("div",{className:"w-24 md:w-[400px] md:h-[200px] absolute -z-10 -left-[0px] top-[535px] md:-top-[100px] lg:-top-[200px] ",children:(0,Vt.jsx)("img",{src:rd,alt:"",className:"w-full"})}),(0,Vt.jsxs)("main",{className:"pt-5 md:pt-[150px] mt-[103px] px-3 ",children:["banner"==c?(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-[70%] lg:w-[950px] mx-auto flex flex-col gap-[2.5px] md:gap-[5px] shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("div",{className:"py-4 md:py-[30px] px-6 md:pl-[50px] md:pr-[30px] ",children:(0,Vt.jsx)("h3",{className:"text-lg md:text-[30px] font-black md:leading-[39px] ",children:"Add a captivating campaign cover image"})}),(0,Vt.jsx)("div",{className:"p-5 md:p-7 border-t-[3px] md:border-t-[6px] border-[#F9F9F9] md:items-center ",children:(0,Vt.jsxs)("div",{className:"flex flex-col items-center relative ",children:[(0,Vt.jsx)(Cr,{formdata:a,setformdata:o}),(0,Vt.jsxs)("div",{className:" ".concat(a.banner?"":"mt-4 md:mt-5"," flex gap-3 items-center py-1 "),children:[(0,Vt.jsx)("img",{src:a.banner?Zt:Jt,alt:"info icon"}),(0,Vt.jsx)("p",{className:" ".concat(a.banner?"text-[#37BCF7]":"text-[#8E8E93]"," text-sm md:text-base"),children:a.banner?"Image uploaded successfully":"Click icon to upload campaign image"})]})]})})]}):"successfulcrowdfundlaunch"==c?(0,Vt.jsxs)("div",{className:"bg-white w-full phones:w-[98%] md:w-fit mx-auto  flex flex-col items-center py-[40px] px-[106px]  shadow-[0px_0px_32px_0px_rgba(0,0,0,0.04)] rounded md:rounded-[10px] ",children:[(0,Vt.jsx)("img",{src:Is,alt:"Hearts Icon",className:"md:w-[28px] w-[61.5px] mb-[15px]"}),(0,Vt.jsx)("h5",{className:"mb-[25px] font-black text-[35px] ",children:"Congratulations!!"}),(0,Vt.jsxs)("p",{className:"text-center text-[26px] leading-[32px] ",children:["You have successfully launched your ",(0,Vt.jsx)("br",{})," campaign "]})]}):null,(0,Vt.jsxs)("button",{className:"min-w-[208px] md:min-w-[228px] mt-[35px] md:mt-[75px] mb-8 px-[50px] hover:px-[65px] py-[10px] md:py-[20.1px] transition-all duration-500  font-bold bg-black text-white rounded md:rounded-[8px] text-base md:text-[28px] mx-auto flex items-center justify-center  ",onClick:l(i().mark((function e(){var r,o,s,l,d,p,g,b,v,y;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("banner"!=c){e.next=24;break}if(null===a.banner){e.next=21;break}for(f(!0),t(Ot({crowdfundData:{banner:a.banner}})),r=It(It({},m),{},{banner:a.banner,end_date:x.toISOString(),date_posted:h.toISOString(),start_date:h.toISOString(),location:""}),console.log(r),o=new FormData,s=0,l=Object.entries(r);s<l.length;s++)d=T(l[s],2),p=d[0],g=d[1],o.append(p,g);return b=localStorage.getItem("access_token"),console.log(o),e.next=12,fetch("".concat(Fr,"/funding/api/"),{method:"POST",body:o,headers:{Authorization:"Bearer ".concat(b)}});case 12:return v=e.sent,e.next=15,v.json();case 15:y=e.sent,console.log(y),v.ok&&(console.log("success"),t(wt(y)),u("successfulcrowdfundLaunch")),f(!1),e.next=22;break;case 21:alert("Please select an image");case 22:e.next=25;break;case 24:"successfulcrowdfundlaunch"==c&&n("/completesignup");case 25:case"end":return e.stop()}}),e)}))),children:[(0,Vt.jsx)("div",{className:" ".concat(p?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(p?"hidden":"block"," "),children:"banner"==c?"Launch your campaign":"successfulcrowdfundlaunch"==c?"Finish your signup":null})]})]})]})};var op=function(){var t=Te(),n=T((0,e.useState)("close"),2),r=n[0],a=n[1],o=function(){a("open"==r?"close":"open")},s=T((0,e.useState)([]),2),c=s[0],u=s[1],d=T((0,e.useState)(""),2),p=d[0],f=d[1];(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(Fr,"/funding/api/"));case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,t.ok?(u(n),console.log(n)):console.error(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error(e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),(0,e.useEffect)((function(){console.log(c[0])}),[c]);var m=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),h=[{label:"All",value:"all"}].concat(b(Vs)),x=T((0,e.useState)("all"),2),g=x[0],v=x[1];return(0,Vt.jsxs)("div",{className:"font-merriweather",children:[(0,Vt.jsxs)("header",{className:"w-full z-50 py-4 md:py-6 lg:py-[30px] px-5 md:px-10 lg:px-[95px] flex justify-between shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] bg-white fixed top-0 ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center cursor-pointer ",onClick:function(){t("/")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-7 lg:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[108px] lg:w-[138px] h-[14px] md:h-5 lg:h-[24px] "})]}),(0,Vt.jsxs)("nav",{className:"hidden md:flex items-center xl:gap-[46px] font-arial ",children:[(0,Vt.jsx)(ol,{to:"/howitworks",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"How it works"})}),(0,Vt.jsx)(ol,{to:"/discover",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Discover"})}),(0,Vt.jsx)(ol,{to:"/signin",className:"text-[#525252] text-lg py-[5px] px-[10px] hover:p-[10px] hover:bg-[#D8D8D8] leading-[14px] flex items-center hover:rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign in"})}),(0,Vt.jsx)(ol,{to:"/signup",className:"text-[#000000] text-lg font-bold tracking-[0.069px] py-[8px] px-[16px] bg-[#35FAA0] hover:bg-[#35EB98] leading-[22px] flex items-center rounded-[5px] ",children:(0,Vt.jsx)("span",{children:"Sign up"})})]}),(0,Vt.jsx)("img",{src:qs,alt:"menu icon",className:"w-5 h-5 md:hidden",onClick:o})]}),(0,Vt.jsxs)("div",{className:" ".concat("open"==r?"":"hidden"," md:hidden font-arial h-full w-full z-50 bg-white fixed top-0 pt-4 px-5"),children:[(0,Vt.jsxs)("div",{className:"mb-6 flex justify-between items-center ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[10px] md:gap-4 items-center ",children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"w-5 md:w-7 lg:w-[33.4px]"}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:"w-[77px] md:w-[108px] lg:w-[138px] h-[14px] md:h-5 lg:h-[24px] "})]}),(0,Vt.jsx)("img",{src:fl,alt:"cancel menu icon",className:"w-6",onClick:o})]}),(0,Vt.jsxs)("nav",{className:"mb-8 flex flex-col gap-2",children:[(0,Vt.jsx)(ol,{to:"/howitworks",className:"py-3",children:(0,Vt.jsx)("span",{children:"How it works"})}),(0,Vt.jsx)(ol,{to:"/discover",className:"py-3",children:(0,Vt.jsx)("span",{children:"Discover campaigns"})}),(0,Vt.jsx)(ol,{to:"/helpcenter",className:"py-3",children:(0,Vt.jsx)("span",{children:"Help center"})}),(0,Vt.jsx)(ol,{to:"/communityguidelines",className:"py-3",children:(0,Vt.jsx)("span",{children:"Community guidelines"})})]}),(0,Vt.jsx)("button",{className:"mb-5 bg-[#000] rounded w-full py-[10px] px-5 font-bold text-[#FFF]",onClick:function(){t("/anonymouscrowdfundformtitle")},children:"Start a crowdfund"}),(0,Vt.jsx)("button",{className:"border-[1px] border-[#8E8E93] rounded w-full py-[10px] px-5 font-bold text-[#000]",onClick:function(){t("/signin")},children:"Sign in"})]}),(0,Vt.jsxs)("main",{className:"pt-3 md:pt-[70px] lg:pt-[125px] pb-10 mt-[103px] px-3  phones:px-5 md:px-8 lg:px-[94px] ",children:[(0,Vt.jsx)("h2",{className:"mx-auto mb-3 md:mb-6  font-black text-center text-xl md:text-[40px] ",children:"Discover campaigns on Palbucks"}),(0,Vt.jsx)("p",{className:"mb-5 md:mb-10 text-sm md:text-lg font-merriweather md:font-arial text-center",children:"Find and explore organized campaigns"}),(0,Vt.jsx)("input",{type:"search",className:" mb-[48px] w-[100%] xphones:w-[80%] md:w-[320px] brkpoint:w-[300px] lg:w-[480px]\n                    h-[30px] phones:h-[44px] lg:h-[60px] bg-[#EAEAEA] mx-auto block\n                    text-base pl-10 md:pl-12 lg:pl-14 placeholder-[#7A7575] bg-[length:20px] md:bg-[length:24px] bg-[image:url('./images/search.svg')] bg-[left_calc(5%)_top_calc(48%)]\n                    bg-no-repeat rounded-3xl lg:rounded-[30px] shadow-[0px_0px_16px_rgba(0,0,0,0.04)] md:shadow-none font-arial font-normal \n                    focus:caret-[#2CA9F2] \n                      ",placeholder:"Search",onChange:function(e){f(e.target.value)}}),(0,Vt.jsx)("div",{className:"mb-6 bg-[#F9F9F9] max-w-[90px] phones:max-w-[120px] md:max-w-[150px] h-[30px] md:h-[40px] rounded-r-[30px] rounded-l-[10px] shadow-[0px_0px_32px_rgba(0,0,0,0.04)] md:shadow-none",children:(0,Vt.jsx)(Ds,{options:h,placeholder:"All",onChange:function(e){v(e.value)},components:{DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})},IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:"100%",border:"0.5px solid #D9D9D9",boxShadow:(t.isFocused,0),"&:hover":{border:"0.5px solid #D9D9D9"},cursor:"pointer",caretColor:"transparent",paddingRight:m?"12px":"20px",paddingLeft:m?"4px":"8px",borderTopLeftRadius:"10px",borderBottomLeftRadius:"10px",borderTopRightRadius:"30px",borderBottomRightRadius:"30px",color:"black",z:"10",backgroundColor:"#F9F9F9"})},menu:function(e){return It(It({},e),{},{width:"200%",zIndex:"30",color:"black"})},menuList:function(e){return It(It({},e),{},{padding:0})},placeholder:function(e){return It(It({},e),{},{color:"black",fontSize:m?"13px":"16px"})}},formatOptionLabel:function(e,t){t.isSelected;return(0,Vt.jsxs)("div",{className:"flex items-center gap-2 pl-0 ",children:[g!==e.value&&e.icon&&(0,Vt.jsx)("img",{src:e.icon,alt:"category icon",className:"w-4 h-4"}),(0,Vt.jsx)("span",{className:"text-[13px] md:text-base pt-1 ",children:e.label})]})}})}),(0,Vt.jsxs)("div",{className:"flex flex-wrap justify-between w-full py-7 md:py-[35px] gap-8 md:gap-6 ",children:[p.length>0?c.filter((function(e){return e.title.toLowerCase().includes(p.toLowerCase())})).map((function(e,t){return(0,Vt.jsx)(ip,{banner:e.banner,title:e.title,organiser:e.organiser,value:e.amt_raised,target:e.target_price},t)})):"all"===g?c.map((function(e,t){return(0,Vt.jsx)(ip,{banner:e.banner,title:e.title,organiser:e.organiser,value:e.amt_raised,target:e.target_price},t)})):c.filter((function(e){return e.tags===g})).map((function(e,t){return(0,Vt.jsx)(ip,{banner:e.banner,title:e.title,organiser:e.organiser,value:e.amt_raised,target:e.target_price},t)})),Array(4-c.length%4).fill().map((function(e,t){return(0,Vt.jsx)("div",{className:"invisible w-[calc(25%-12px)] md:w-[calc(33.3333%-12px)] lg:w-[calc(25%-12px)]"},t)}))]})]})]})};function ip(e){var t;return console.log(e.organiser),(0,Vt.jsxs)("div",{className:" w-full sm:max-w-[380px] md:max-w-[360px] smlaptops:max-w-[280px] mdlaptops:max-w-[350px]\n            lglaptops:max-w-[350px]  min-w-[200px] cursor-pointer inline-block font-arial p-3 ",children:[(0,Vt.jsx)("img",{src:e.banner?e.banner:u,alt:"Campaign pic",className:"mb-4 rounded-[10px] object-cover w-full  h-[196px] phones:h-[196px] xphones:h-[196px]"}),(0,Vt.jsx)("h3",{className:"text-lg lg:text-xl font-bold mb-1 lg:mb-3 line-clamp-1 tracking-[-0.466px] ",children:e.title?e.title:"Help our Lucy survive cancer"}),(0,Vt.jsxs)("div",{className:"mb-1 lg:mb-4 flex gap-[6px] items-center ",children:[(0,Vt.jsx)("img",{src:null!==e.organiser.dp?e.organiser.dp:Ut,alt:"crowdfund organiser",className:"rounded-full w-6 h-6 lg:w-[30px] lg:h-[30px] "}),(0,Vt.jsxs)("p",{className:"lg:text-lg",children:["organized by ",(0,Vt.jsx)("span",{className:"font-black",children:null!==(t=e.organiser)&&void 0!==t&&t.first_name?e.organiser.first_name:"Lucy"})]})]}),(0,Vt.jsx)("progress",{value:e.value?e.value:"23543",max:e.target?e.target:"150000",className:"landingpageprogressbar w-full h-[5px] lg:h-[12px] appearance-none rounded-full mb-0"}),(0,Vt.jsxs)("p",{className:"text-xs lg:text-base font-bold ",children:["$",e.value?e.value:"23,543"," raised "]})]})}var sp=n.p+"static/media/Upload.509fee6a1cbdc888db8f82b4d14cf624.svg";var lp=n.p+"static/media/Group 841.69623d828f1f0bf3b902d5af5a1be7d3.svg";var cp=n.p+"static/media/uploadingImage.b60e053212f9eb1a68f157abb1c12dda.svg";var up=n.p+"static/media/uploadedImage.9f539554cbe1ecb56874dd39d1caa73d.svg";var dp=function(){var t=Te(),n=bt(),r=lt((function(e){return e.onprofilepage})),a=T((0,e.useState)("idProof"),2),o=a[0],s=a[1],c=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,u=T((0,e.useState)(""),2),d=u[0],p=(u[1],T((0,e.useState)([]),2)),f=p[0],m=p[1],h=function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})};(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t,n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://restcountries.com/v3.1/all?fields=name");case 3:return t=e.sent,e.next=6,t.json();case 6:n=e.sent,m(n),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.error("Error fetching data: ",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();e()}),[]);var x=f.map((function(e){return{value:e.name.common,label:e.name.common}})).sort((function(e,t){return e.label.localeCompare(t.label)}));n(Tt(x));var g=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),b=[{value:"bankStatement",label:"Bank Statement"},{value:"voidedCheck",label:"Voided Check"},{value:"directDepositForm",label:"Direct Deposit Form"},{value:"bankApplication",label:"Bank Application"},{value:"bankteller",label:"Bank Teller"}],v=T((0,e.useState)({country:"",id_type:"",front_image:null,rear_image:null,bankDocumentType:"bankStatement",bank_document:null}),2),y=v[0],w=v[1],k=T((0,e.useState)({front_image:{inactive:!0,uploading:!1,uploadSuccess:!1,uploadError:!1,filename:"",file:null},rear_image:{inactive:!0,uploading:!1,uploadSuccess:!1,uploadError:!1,filename:"",file:null},bank_document:{inactive:!0,uploading:!1,uploadSuccess:!1,uploadError:!1,filename:"",file:null}}),2),j=k[0],N=k[1],A=function(e){var t=e.target.files[0];N(It(It({},j),{},_t({},e.target.name,It(It({},j[e.target.name]),{},{inactive:!1,uploading:!0,uploadSuccess:!1,uploadError:!1,filename:t.name,file:t})))),setTimeout((function(){N(It(It({},j),{},_t({},e.target.name,It(It({},j[e.target.name]),{},{inactive:!1,uploading:!1,uploadSuccess:!0,uploadError:!1,filename:t.name,file:t})))),w(It(It({},y),{},_t({},e.target.name,t)))}),2e3)},S=function(e){var t=e.lastIndexOf(".");if(-1===t)return e;var n=e.substring(0,t),r=e.substring(t);return n.length>10?"".concat(n.substring(0,10),"...").concat(r):e},C=T((0,e.useState)(!1),2),E=C[0],P=C[1];return(0,Vt.jsxs)("div",{className:"font-arial",children:[(0,Vt.jsxs)("header",{className:"bg-[#FFFFFF] py-4 md:py-[25px] px-8 md:px-[48px] lg:px-[95px] flex justify-between items-center shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[18px] items-center ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" w-[100px] h-[18px] cursor-pointer "})]}),(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center",children:[(0,Vt.jsx)("img",{src:null!==c&&void 0!==c&&c.dp?c.dp:Ut,onClick:function(){t("/profilepage"),n({type:"set profilepage active"})},alt:"user avatar",className:" ".concat(r?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==c&&void 0!==c&&c.first_name?c.first_name:""," ",null!==c&&void 0!==c&&c.last_name?c.last_name:""]})]})]}),(0,Vt.jsxs)("main",{className:"py-[72px] md:py-[94px] px-[35px] md:px-[142px] lg:px-[180px] 2xl:px-[284px] ",children:[(0,Vt.jsxs)("div",{className:"mb-[63px] md:mb-[56px] mx-auto w-fit flex gap-[5px] items-center",children:[(0,Vt.jsx)("div",{className:"w-8 md:w-10 h-8 md:h-10 bg-[#35FAA0] rounded-full flex items-center justify-center text-base md:text-lg font-bold ",children:"1"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("idProof"!==o?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"2"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("successfulSubmission"==o?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"3"})]}),"idProof"===o?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Upload a proof of your identity"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[74px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Palbucks requires a valid government issued ID (drivers license, passport, national ID, voters card)"}),(0,Vt.jsxs)("div",{className:"mb-[64px] md:mb-[84px] flex flex-col lg:flex-row gap-8 lg:gap-[57px] mx-auto justify-center w-full max-w-[880px] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1 ",children:[(0,Vt.jsx)("label",{htmlFor:"location",className:"text-[14px] md:text-[20px] font-bold",children:"What is your country? "}),(0,Vt.jsx)(Ds,{options:x,placeholder:"Select your country",onChange:function(e){w(It(It({},y),{},{country:e.value}))},value:x.find((function(e){return e.value===d})),components:{DropdownIndicator:h,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:g?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:g?"12px":"22px",paddingLeft:g?"4px":"22px",paddingTop:g?"4px":"11px",paddingBottom:g?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"location",className:"text-[14px] md:text-[20px] font-bold",children:"Document type"}),(0,Vt.jsx)(Ds,{options:[{value:"intl_passport",label:"Passport"},{value:"nin",label:"National ID"},{value:"drivers_licence",label:"Drivers License"},{value:"votersCard",label:"Voters Card"}],placeholder:"Select an ID type",onChange:function(e){w(It(It({},y),{},{id_type:e.value}))},components:{DropdownIndicator:h,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:g?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:g?"12px":"22px",paddingLeft:g?"4px":"22px",paddingTop:g?"4px":"11px",paddingBottom:g?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]})]}),(0,Vt.jsxs)("div",{className:"mb-12 md:mb-[72px] flex flex-col lg:flex-row  gap-12 lg:gap-[57px] mx-auto justify-center w-full max-w-[880px] ",children:[(0,Vt.jsxs)("div",{className:"flex-1 border-dashed border-[1.5px] border-black bg-[#FFFFFF] rounded-[10px] pt-[11px] pb-[31px] px-[12px] xl:px-[104px] h-fit",children:[(0,Vt.jsx)("img",{src:sp,alt:"upload icon",className:" ".concat(j.front_image.inactive?"block":"hidden"," mx-auto mb-[18px] w-[48px] h-[48px]")}),(0,Vt.jsx)("img",{src:j.front_image.uploading?cp:up,alt:"uploading icon",className:" ".concat(j.front_image.inactive?"hidden":j.front_image.uploading?"w-[60px] md:w-[95px] ":"w-[40px] "," mt-8 mb-5 mx-auto")}),(0,Vt.jsx)("h4",{className:" ".concat(j.front_image.inactive?"":"hidden"," mb-3 text-[18px] font-bold text-center"),children:"Front side of your ID"}),(0,Vt.jsxs)("h4",{className:" ".concat(j.front_image.inactive?"hidden":""," mb-7 text-[15px] text-center"),children:[j.front_image.uploading&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:" Uploading "})," ",S(j.front_image.filename)]}),j.front_image.uploadSuccess&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:S(j.front_image.filename)})," uploaded successfully"]}),j.front_image.uploadError&&(0,Vt.jsx)("span",{className:"font-bold text-[#D52B1E]",children:" ".concat(S(j.front_image.filename)," upload failed")})]}),(0,Vt.jsxs)("p",{className:" ".concat(j.front_image.inactive?"":"hidden"," text-[10px] mb-[22px] text-center"),children:["Upload the front side of your ID ",(0,Vt.jsx)("br",{}),"Supports: JPG, PNG, PDF"]}),(0,Vt.jsx)("label",{htmlFor:"front_image",className:"mx-auto h-full block w-fit",children:(0,Vt.jsxs)("div",{className:"py-3 px-8 border-2 border-black rounded-md mx-auto block text-[14px] font-bold cursor-pointer ",children:["Choose a file",(0,Vt.jsx)("input",{type:"file",name:"front_image",id:"front_image",accept:"image/*, application/pdf",className:"hidden",onChange:A})]})})]}),(0,Vt.jsxs)("div",{className:"flex-1  border-dashed border-[1.5px] border-black bg-[#FFFFFF] rounded-[10px] pt-[11px] pb-[31px] px-5 xl:px-[104px] h-fit ",children:[(0,Vt.jsx)("img",{src:sp,alt:"upload icon",className:" ".concat(j.rear_image.inactive?"block":"hidden"," mx-auto mb-[18px] w-[48px] h-[48px]")}),(0,Vt.jsx)("img",{src:j.rear_image.uploading?cp:up,alt:"uploading icon",className:" ".concat(j.rear_image.inactive?"hidden":j.rear_image.uploading?"w-[60px] md:w-[95px] ":"w-[40px] "," mt-8 mb-5 mx-auto")}),(0,Vt.jsx)("h4",{className:" ".concat(j.rear_image.inactive?"":"hidden"," mb-3 text-[18px] font-bold text-center"),children:"Back side of your ID"}),(0,Vt.jsxs)("h4",{className:" ".concat(j.rear_image.inactive?"hidden":""," mb-7 text-[15px] text-center"),children:[j.rear_image.uploading&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:" Uploading "})," ",S(j.rear_image.filename)]}),j.rear_image.uploadSuccess&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:S(j.rear_image.filename)})," uploaded successfully"]}),j.rear_image.uploadError&&(0,Vt.jsx)("span",{className:"font-bold text-[#D52B1E]",children:" ".concat(j.front_image.filename," upload failed")})]}),(0,Vt.jsxs)("p",{className:" ".concat(j.rear_image.inactive?"":"hidden"," text-[10px] mb-[22px] text-center"),children:["Upload the front side of your ID ",(0,Vt.jsx)("br",{}),"Supports: JPG, PNG, PDF"]}),(0,Vt.jsx)("label",{htmlFor:"rear_image",className:"mx-auto h-full block w-fit",children:(0,Vt.jsxs)("div",{className:"py-3 px-8 border-2 border-black rounded-md mx-auto block text-[14px] font-bold cursor-pointer ",children:["Choose a file",(0,Vt.jsx)("input",{type:"file",name:"rear_image",id:"rear_image",accept:"image/*, application/pdf",className:"hidden",onChange:A})]})})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[880px] block mx-auto",children:[(0,Vt.jsx)("p",{className:"text-[15px] mb-2 md:mb-3",children:"By clicking on \u201cContinue\u201d you confirm that you uploaded valid government - issued photo ID. You also certify that your ID includes your picture, signature, name, date of birth, and address."}),(0,Vt.jsx)("p",{className:"text-[15px] mb-4 md:mb-6 ",children:"Note that your data is securely encrypted and protected as we prioritize your privacy."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 tect-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){""===y.country||""===y.id_type||null===y.front_image||null===y.rear_image?alert("Please fill all fields"):s("bank_document"),console.log(y)},children:"Continue"})]})]}):"bank_document"==o?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Upload a bank document"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[74px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Palbucks requires a valid bank document (bank statements, voided check, direct deposit form, bank application, bank letter)."}),(0,Vt.jsxs)("div",{className:"mb-[48px] md:mb-[84px] flex flex-col gap-[64px] lg:gap-[73px] mx-auto justify-center w-full max-w-[880px] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-[13px] md:gap-5 flex-1 ",children:[(0,Vt.jsx)("label",{htmlFor:"location",className:"text-[14px] md:text-[20px] font-bold",children:"Bank document type "}),(0,Vt.jsx)(Ds,{options:b,placeholder:"Select a document type",value:b.find((function(e){return e.value===y.bankDocumentType})),onChange:function(e){w(It(It({},y),{},{bankDocumentType:e.value}))},components:{DropdownIndicator:h,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:g?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"2px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:g?"12px":"22px",paddingLeft:g?"4px":"22px",paddingTop:g?"4px":"11px",paddingBottom:g?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]}),(0,Vt.jsxs)("div",{className:"border-dashed border-[1.5px] border-black bg-[#FFFFFF] rounded-[10px] pt-[11px] pb-[31px] px-[12px] xl:px-[104px] h-fit ",children:[(0,Vt.jsx)("img",{src:sp,alt:"upload icon",className:" ".concat(j.bank_document.inactive?"block":"hidden"," mx-auto mb-[18px] w-[48px] h-[48px]")}),(0,Vt.jsx)("img",{src:j.bank_document.uploading?cp:up,alt:"uploading icon",className:" ".concat(j.bank_document.inactive?"hidden":j.bank_document.uploading?"w-[60px] md:w-[95px] ":"w-[40px] "," mt-8 mb-5 mx-auto")}),(0,Vt.jsx)("h4",{className:" ".concat(j.bank_document.inactive?"":"hidden"," mb-3 text-[18px] font-bold text-center"),children:"Upload bank document"}),(0,Vt.jsxs)("h4",{className:" ".concat(j.bank_document.inactive?"hidden":""," mb-7 text-[15px] text-center"),children:[j.bank_document.uploading&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:" Uploading "})," ",j.bank_document.filename]}),j.bank_document.uploadSuccess&&(0,Vt.jsxs)("p",{children:[(0,Vt.jsx)("span",{className:"text-[#2CA9F2] font-bold",children:j.bank_document.filename})," uploaded successfully"]}),j.bank_document.uploadError&&(0,Vt.jsx)("span",{className:"font-bold text-[#D52B1E]",children:" ".concat(j.bank_document.filename," upload failed")})]}),(0,Vt.jsxs)("p",{className:" ".concat(j.bank_document.inactive?"":"hidden"," text-[10px] mb-[22px] text-center"),children:["Upload your bank document file ",(0,Vt.jsx)("br",{})," Supports: JPG, PNG, PDF"]}),(0,Vt.jsx)("label",{htmlFor:"bank_document",className:"mx-auto h-full block w-fit",children:(0,Vt.jsxs)("div",{className:"py-3 px-8 border-2 border-black rounded-md mx-auto block text-[14px] font-bold cursor-pointer",children:["Choose a file",(0,Vt.jsx)("input",{type:"file",name:"bank_document",id:"bank_document",accept:"image/*, application/pdf",className:"hidden",onChange:A})]})})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[880px] block mx-auto",children:[(0,Vt.jsx)("p",{className:"text-[15px] mb-2 md:mb-3",children:"By clicking on \u201cContinue\u201d you confirm that you uploaded valid government - issued photo ID. You also certify that your ID includes your picture, signature, name, date of birth, and address."}),(0,Vt.jsx)("p",{className:"text-[15px] mb-4 md:mb-6 ",children:"Note that your data is securely encrypted and protected as we prioritize your privacy."}),(0,Vt.jsxs)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 tect-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:l(i().mark((function e(){var n,r,a,o,l,c,u,d,p;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!==y.bank_document){e.next=3;break}return alert("Please fill all fields"),e.abrupt("return");case 3:for(P(!0),console.log(y),n=new FormData,r=0,a=Object.entries(y);r<a.length;r++)o=T(a[r],2),l=o[0],c=o[1],n.append(l,c);return u=localStorage.getItem("access_token"),e.next=10,fetch("".concat(Fr,"/users/api/kyc/"),{method:"POST",headers:{Authorization:"Bearer ".concat(u)},body:n});case 10:return d=e.sent,e.next=13,d.json();case 13:p=e.sent,console.log(p),p.message&&p.message.includes("KYC documents submitted successfully and pending verification")?s("successfulSubmission"):p.message&&p.message.includes("You have already submitted kyc documents")?(alert("Error: ".concat(p.message)),t("/home")):p.message&&p.message.includes("Cannot submit KYC. User Location not set")?(alert("Error: ".concat(p.message,", Navigate to settings page to set location")),t("/settings")):(alert("Error submitting kyc documents: please try again"),window.location.reload()),P(!1);case 17:case"end":return e.stop()}}),e)}))),children:[(0,Vt.jsx)("div",{className:" ".concat(E?"block":"hidden"," "),children:(0,Vt.jsx)(Dr,{width:"28px",height:"28px"})}),(0,Vt.jsx)("span",{className:" ".concat(E?"hidden":"block"," "),children:"Continue"})]})]})]}):"successfulSubmission"==o?(0,Vt.jsxs)("div",{className:"mt-[100px] md:mt-[120px] max-w-[820px] block mx-auto",children:[(0,Vt.jsx)("img",{src:lp,alt:"success",className:"mb-[34px] w-[49px] md:w-[71px] mx-auto "}),(0,Vt.jsx)("h3",{className:"text-[16px] md:text-[35px] font-black mb-4 md:mb-2 text-center ",children:"Documents submitted successfully"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[20px] mb-8 md:mb-10 text-center ",children:"Your documents have been successfully sent for verification. We'll notify you via email once they've been processed."}),(0,Vt.jsx)("button",{className:"py-[10px] md:py-5 px-6 md:px-10 bg-black text-[#FFFFFF] text-[16px] md:text-[28px] font-bold rounded-md md:rounded-lg mx-auto block  ",onClick:function(){return t("/home")},children:"Go back to homepage"})]}):null]})]})};var pp=function(){var t=Te(),n=T((0,e.useState)("connectAccount"),2),r=n[0],a=n[1],o=bt(),i=lt((function(e){return e.onprofilepage})),s=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),l=function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})},c=T((0,e.useState)({bank_name:"",account_type:"",account_number:"",amount:""}),2),u=c[0],d=c[1],p=(0,e.useRef)(null),f=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null;return(0,Vt.jsxs)("div",{children:[(0,Vt.jsxs)("header",{className:"bg-[#FFFFFF] py-4 md:py-[25px] px-8 md:px-12 lg:px-[95px] flex justify-between items-center shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[18px] items-center ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" w-[100px] h-[18px] "})]}),(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center",children:[(0,Vt.jsx)("img",{src:null!==f&&void 0!==f&&f.dp?f.dp:Ut,onClick:function(){t("/profilepage"),o({type:"set profilepage active"})},alt:"user avatar",className:" ".concat(i?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==f&&void 0!==f&&f.first_name?f.first_name:""," ",null!==f&&void 0!==f&&f.last_name?f.last_name:""]})]})]}),(0,Vt.jsxs)("main",{className:"py-[72px] md:py-[94px] px-[35px] md:px-[142px] lg:px-[180px] 2xl:px-[284px] ",children:[(0,Vt.jsxs)("div",{className:"mb-[63px] md:mb-[56px] mx-auto w-fit flex gap-[5px] items-center",children:[(0,Vt.jsx)("div",{className:"w-8 md:w-10 h-8 md:h-10 bg-[#35FAA0] rounded-full flex items-center justify-center text-base md:text-lg font-bold ",children:"1"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("connectAccount"!==r?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"2"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("successfulWithdrawal"==r?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"3"})]}),"connectAccount"==r?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Connect your  bank account"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[104px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Withdrawals to the bank account will start arriving in 1-3 business days after request"}),(0,Vt.jsxs)("div",{className:"mb-[72px] md:mb-[104px] flex flex-col gap-8 md:gap-12 mx-auto max-w-[800px] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"bank_name",className:"text-[14px] md:text-[20px] font-bold",children:"What is your bank name?"}),(0,Vt.jsx)(Ds,{options:[{value:"gtbank",label:"Guaranty Trust Bank (GTBank) "},{value:"accessbank",label:"Access Bank"},{value:"zenithbank",label:"Zenith Bank"},{value:"ubabank",label:"United Bank for Africa (UBA)"},{value:"firstbank",label:"First Bank"},{value:"sterlingbank",label:"Sterling Bank"},{value:"stanbicbank",label:"Stanbic IBTC Bank"},{value:"ecobank",label:"EcoBank Nigeria"},{value:"unionbank",label:"Union Bank of Nigeria"}],placeholder:"Select bank",onChange:function(e){d(It(It({},u),{},{bank_name:e.value}))},components:{DropdownIndicator:l,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:s?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:s?"12px":"22px",paddingLeft:s?"4px":"22px",paddingTop:s?"4px":"11px",paddingBottom:s?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"account_type",className:"text-[14px] md:text-[20px] font-bold",children:"What is your account type?"}),(0,Vt.jsx)(Ds,{options:[{value:"savings",label:"Savings account"},{value:"current",label:"Current account"}],placeholder:"Select account type",onChange:function(e){d(It(It({},u),{},{account_type:e.value}))},components:{DropdownIndicator:l,IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:s?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:s?"12px":"22px",paddingLeft:s?"4px":"22px",paddingTop:s?"4px":"11px",paddingBottom:s?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"account",className:"text-[14px] md:text-[20px] font-bold",children:"What is your account number?"}),(0,Vt.jsx)("input",{type:"number",name:"account",id:"account",placeholder:"Enter your account number",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px]  px-3 md:px-[22px] py-[11px] rounded-[5px] ",ref:p})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[800px] mx-auto",children:[(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] text-center ",children:"Your banking information will never be shared with any 3rd parties"}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return a("bankWithdrawal")},children:"Connect bank account"})]})]}):"bankWithdrawal"==r?(0,Vt.jsxs)("div",{children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Withdrawal into bank account"}),(0,Vt.jsx)("p",{className:"mb-[36px] md:mb-[64px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Withdrawals to the bank account will start arriving in 1-3 business days after request"}),(0,Vt.jsxs)("div",{className:"max-w-[880px] mx-auto ",children:[(0,Vt.jsxs)("div",{className:"mb-12 md:mb-[88px] border-dashed border-[1.5px] border-black bg-white flex flex-col gap-4 md:flex-row justify-between items-center px-4 md:px-8 py-6 md:py-[37px] rounded-[10px]",children:[(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-6",children:[(0,Vt.jsx)("img",{src:vc,alt:"bank Icon",className:"w-12"}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-2 items-center md:items-start",children:[(0,Vt.jsx)("h2",{className:"text-[14px] md:text-[18px] font-bold ",children:"ACHILONU JOSEPH IKENNA"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[15px] ",children:"0421958617"}),(0,Vt.jsx)("p",{className:"text-[13px] md:text-[14px] text-[#525252] ",children:"Guaranty Trust Bank (GTBank) "})]})]}),(0,Vt.jsx)("button",{className:" px-5 py-3 border-2 border-black rounded-[5px] text-[12px] md:text-[18px] font-bold ",children:"Disconnect account"})]}),(0,Vt.jsxs)("div",{className:"mb-[72px] flex flex-col gap-3 md:gap-5",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Vt.jsx)("label",{htmlFor:"amount",className:"text-[13px] md:text-[20px] font-bold ",children:"How much do you intend to withdraw?"}),(0,Vt.jsx)("p",{className:"hidden md:block md:text-[18px] text-[#525252] ",children:"Balance: $150,000"})]}),(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",placeholder:"Enter the amount",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px]  px-3 md:px-[22px] py-[11px] rounded-[5px] ",ref:p}),(0,Vt.jsx)("p",{className:"md:hidden text-[12px] text-[#525252] ",children:"Balance: $150,000"})]}),(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] ",children:"In upholding the integrity and safety of organized campaigns, Palbucks is determined to combating financial crime and ensuring adherence to anti-money laundering measures."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return a("successfulWithdrawal")},children:"Send withdrawal request"})]})]}):"successfulWithdrawal"==r?(0,Vt.jsxs)("div",{className:"mt-[73px] md:mt-[120px] max-w-[820px] block mx-auto  ",children:[(0,Vt.jsx)("img",{src:lp,alt:"success",className:"mb-[34px] w-[49px] md:w-[71px] mx-auto "}),(0,Vt.jsx)("h3",{className:"text-[16px] md:text-[35px] font-black mb-4 md:mb-2 text-center ",children:"Withdrawal request sent successfully"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[20px] mb-8 md:mb-10 text-center ",children:"Your funds are on their way and should be credited to your account within 1-3 business days."}),(0,Vt.jsx)("button",{className:"py-[10px] md:py-5 px-6 md:px-10 bg-black text-[#FFFFFF] text-[16px] md:text-[28px] font-bold rounded-md md:rounded-lg mx-auto block  ",onClick:function(){return t("/home")},children:"Go back to homepage"})]}):null]})]})};var fp=n.p+"static/media/paste.2b5345f7aa49f2b7683061c859080e13.svg";var mp=function(){var t=Te(),n=T((0,e.useState)("connectAddress"),2),r=n[0],a=n[1],o=bt(),i=lt((function(e){return e.onprofilepage})),s=(0,vt.useMediaQuery)({query:"(max-width:768px)"}),l=T((0,e.useState)({network:"",wallet_address:"",amount:""}),2),c=l[0],u=l[1],d=(0,e.useRef)(null),p=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null;return(0,Vt.jsxs)("div",{children:[(0,Vt.jsxs)("header",{className:"bg-[#FFFFFF] py-4 md:py-[25px] px-8 md:px-12 lg:px-[95px] flex justify-between items-center shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[18px] items-center ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" w-[100px] h-[18px] "})]}),(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center",children:[(0,Vt.jsx)("img",{src:null!==p&&void 0!==p&&p.dp?p.dp:Ut,onClick:function(){t("/profilepage"),o({type:"set profilepage active"})},alt:"user avatar",className:" ".concat(i?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==p&&void 0!==p&&p.first_name?p.first_name:""," ",null!==p&&void 0!==p&&p.last_name?p.last_name:""]})]})]}),(0,Vt.jsxs)("main",{className:"py-[72px] md:py-[94px] px-[35px] md:px-[142px] lg:px-[180px] 2xl:px-[284px] ",children:[(0,Vt.jsxs)("div",{className:"mb-[63px] md:mb-[56px] mx-auto w-fit flex gap-[5px] items-center",children:[(0,Vt.jsx)("div",{className:"w-8 md:w-10 h-8 md:h-10 bg-[#35FAA0] rounded-full flex items-center justify-center text-base md:text-lg font-bold ",children:"1"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("connectAddress"!==r?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"2"}),(0,Vt.jsx)("hr",{className:" w-[30px] md:w-[103px] bg-[#D2F9E7] h-[6px] "}),(0,Vt.jsx)("div",{className:" ".concat("successfulWithdrawal"==r?"bg-[#35FAA0]":"bg-[#35FAA033]","\n                        w-8 md:w-10 h-8 md:h-10 rounded-full flex items-center justify-center text-base md:text-lg font-bold\n                        "),children:"3"})]}),"connectAddress"==r?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Connect your USDT address"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[104px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Withdrawals to your USDT wallet will start arriving in 1-3 business days after request"}),(0,Vt.jsxs)("div",{className:"mb-[72px] md:mb-[104px] flex flex-col gap-8 md:gap-12 mx-auto max-w-[800px] ",children:[(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"network",className:"text-[14px] md:text-[20px] font-bold",children:"Network"}),(0,Vt.jsx)(Ds,{options:[{value:"gtbank",label:"Guaranty Trust Bank (GTBank) "},{value:"accessbank",label:"Access Bank"},{value:"zenithbank",label:"Zenith Bank"},{value:"ubabank",label:"United Bank for Africa (UBA)"},{value:"firstbank",label:"First Bank"},{value:"sterlingbank",label:"Sterling Bank"},{value:"stanbicbank",label:"Stanbic IBTC Bank"},{value:"ecobank",label:"EcoBank Nigeria"},{value:"unionbank",label:"Union Bank of Nigeria"}],placeholder:"Select a chain type",onChange:function(e){u(It(It({},c),{},{network:e.value}))},components:{DropdownIndicator:function(){return(0,Vt.jsx)("img",{src:zt,alt:"down arrow",className:"w-[15px] h-[14px] "})},IndicatorSeparator:function(){return null}},styles:{control:function(e,t){return It(It({},e),{},{width:"100%",height:s?"50px":"62px",border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000","&:hover":{border:t.isFocused?"1px solid #2CA9F2":"1.5px solid #000000"},boxShadow:(t.isFocused,0),cursor:"pointer",caretColor:"transparent",paddingRight:s?"12px":"22px",paddingLeft:s?"4px":"22px",paddingTop:s?"4px":"11px",paddingBottom:s?"4px":"11px",borderTopLeftRadius:"5px",borderBottomLeftRadius:"5px",borderTopRightRadius:"5px",borderBottomRightRadius:"5px",backgroundColor:"#F9F9F9",color:"black",z:"10"})},menu:function(e){return It(It({},e),{},{width:"100%",zIndex:"30",color:"black"})}}})]}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-3 md:gap-5 flex-1  ",children:[(0,Vt.jsx)("label",{htmlFor:"wallet_address",className:"text-[14px] md:text-[20px] font-bold",children:"What is your USDT wallet address?"}),(0,Vt.jsxs)("div",{className:"relative h-fit",children:[(0,Vt.jsx)("input",{type:"number",name:"wallet_address",id:"wallet_address",placeholder:"Enter your wallet address",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px] px-3 md:px-[22px] py-[11px] rounded-[5px] ",onChange:function(e){u(It(It({},c),{},{wallet_address:e.target.value}))},ref:d}),(0,Vt.jsx)("img",{src:fp,alt:"paste Icon",className:"w-6 md:w-8 absolute right-3 md:right-5 transform top-1/2 -translate-y-1/2 cursor-pointer",onClick:function(){navigator.clipboard.readText().then((function(e){d.current.value=e,u(It(It({},c),{},{wallet_address:e}))}))}})]})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[800px] mx-auto",children:[(0,Vt.jsx)("p",{className:"mb-4 text-[15px] text-[#525252] ",children:"Please make sure that your UDST wallet address is correct. As, funds transferred into the wrong address will be lost."}),(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] ",children:"In upholding the integrity and safety of organized campaigns, Palbucks is determined to combating financial crime and ensuring adherence to anti-money laundering measures."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return a("usdtWithdrawal")},children:"Connect USDT address"})]})]}):"usdtWithdrawal"==r?(0,Vt.jsxs)("div",{children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Connect your USDT address"}),(0,Vt.jsx)("p",{className:"mb-[36px] md:mb-[64px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Withdrawals to your USDT wallet will start arriving in 1-3 business days after request"}),(0,Vt.jsxs)("div",{className:"max-w-[880px] mx-auto ",children:[(0,Vt.jsxs)("div",{className:"mb-12 md:mb-[88px] border-dashed border-[1.5px] border-black bg-white flex flex-col gap-4 md:flex-row justify-between items-center px-4 md:px-8 py-6 md:py-[37px] rounded-[10px]",children:[(0,Vt.jsxs)("div",{className:"flex flex-col md:flex-row items-center gap-4 md:gap-6",children:[(0,Vt.jsx)("img",{src:yc,alt:"bank Icon",className:"w-12"}),(0,Vt.jsxs)("div",{className:"flex flex-col gap-2 items-center md:items-start",children:[(0,Vt.jsx)("h2",{className:"text-[14px] md:text-[18px] font-bold ",children:"BSC (BEP20)"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[15px] max-w-[200px] md:max-w-[221px] truncate ",children:"0x61B3E1868477aC2D1711a88Fd1aeb2E84FF4d593"}),(0,Vt.jsx)("p",{className:"text-[13px] md:text-[14px] text-[#525252] ",children:"USDT address"})]})]}),(0,Vt.jsx)("button",{className:" px-5 py-3 border-2 border-black rounded-[5px] text-[12px] md:text-[18px] font-bold ",children:"Disconnect account"})]}),(0,Vt.jsxs)("div",{className:"mb-[72px] flex flex-col gap-3 md:gap-5",children:[(0,Vt.jsxs)("div",{className:"flex justify-between items-center",children:[(0,Vt.jsx)("label",{htmlFor:"amount",className:"text-[13px] md:text-[20px] font-bold ",children:"How much do you intend to withdraw?"}),(0,Vt.jsx)("p",{className:"hidden md:block md:text-[18px] text-[#525252] ",children:"Balance: $150,000"})]}),(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",placeholder:"Enter the amount",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px]  px-3 md:px-[22px] py-[11px] rounded-[5px] ",ref:d}),(0,Vt.jsx)("p",{className:"md:hidden text-[12px] text-[#525252] ",children:"Balance: $150,000"})]}),(0,Vt.jsx)("p",{className:"mb-4 text-[15px] text-[#525252] ",children:"Please make sure that your UDST wallet address is correct. As, funds transferred into the wrong address will be lost."}),(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] ",children:"In upholding the integrity and safety of organized campaigns, Palbucks is determined to combating financial crime and ensuring adherence to anti-money laundering measures."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return a("successfulWithdrawal")},children:"Send withdrawal request"})]})]}):"successfulWithdrawal"==r?(0,Vt.jsxs)("div",{className:"mt-[73px] md:mt-[120px] max-w-[820px] block mx-auto  ",children:[(0,Vt.jsx)("img",{src:lp,alt:"success",className:"mb-[34px] w-[49px] md:w-[71px] mx-auto "}),(0,Vt.jsx)("h3",{className:"text-[16px] md:text-[35px] font-black mb-4 md:mb-2 text-center ",children:"Withdrawal request sent successfully"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[20px] mb-8 md:mb-10 text-center ",children:"Your funds are on their way and should be credited to your wallet within 1-3 business days."}),(0,Vt.jsx)("button",{className:"py-[10px] md:py-5 px-6 md:px-10 bg-black text-[#FFFFFF] text-[16px] md:text-[28px] font-bold rounded-md md:rounded-lg mx-auto block  ",onClick:function(){return t("/home")},children:"Go back to homepage"})]}):null]})]})};var hp=function(){var t=Te(),n=bt(),r=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,a=lt((function(e){return e.onprofilepage})),o=T((0,e.useState)("bankFunding"),2),i=o[0],s=o[1];return(0,Vt.jsxs)("div",{children:[(0,Vt.jsxs)("header",{className:"bg-[#FFFFFF] py-4 md:py-[25px] px-8 md:px-12 lg:px-[95px] flex justify-between items-center shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[18px] items-center ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" w-[100px] h-[18px] "})]}),(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center",children:[(0,Vt.jsx)("img",{src:null!==r&&void 0!==r&&r.dp?r.dp:Ut,onClick:function(){t("/profilepage"),n({type:"set profilepage active"})},alt:"user avatar",className:" ".concat(a?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==r&&void 0!==r&&r.first_name?r.first_name:""," ",null!==r&&void 0!==r&&r.last_name?r.last_name:""]})]})]}),(0,Vt.jsx)("main",{className:"py-[72px] md:py-[94px] px-[35px] md:px-[142px] lg:px-[180px] 2xl:px-[284px] ",children:"bankFunding"==i?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Fund wallet with debit/credit card"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[104px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Withdrawals to the bank account will start arriving in 1-3 business days after request"}),(0,Vt.jsxs)("div",{className:"mb-[72px] md:mb-[242px] flex flex-col gap-3 md:gap-5 mx-auto max-w-[800px] ",children:[(0,Vt.jsx)("label",{htmlFor:"amount",className:"text-[14px] md:text-[20px] font-bold",children:"How much do you intend to fund?"}),(0,Vt.jsxs)("div",{className:"relative h-fit",children:[(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",placeholder:"Enter the amount",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px] px-3 md:px-[22px] py-[11px] rounded-[5px] "}),(0,Vt.jsx)("img",{src:Md,alt:"",className:"absolute right-3 md:right-5 transform cursor-pointer top-1/2 -translate-y-1/2 w-3 md:w-4 "})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[800px] mx-auto",children:[(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] ",children:"In upholding the integrity and safety of organized campaigns, Palbucks is determined to combating financial crime and ensuring adherence to anti-money laundering measures."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return s("successfulFunding")},children:"Proceed to Payment"})]})]}):"successfulFunding"==i?(0,Vt.jsxs)("div",{className:"mt-[73px] md:mt-[120px] max-w-[820px] block mx-auto  ",children:[(0,Vt.jsx)("img",{src:lp,alt:"success",className:"mb-[34px] w-[49px] md:w-[71px] mx-auto "}),(0,Vt.jsx)("h3",{className:"text-[16px] md:text-[35px] font-black mb-4 md:mb-2 text-center ",children:"Wallet Funding in Progress"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[20px] mb-8 md:mb-10 text-center ",children:"Your transaction to fund your wallet is currently being processed. This may take a few minutes to complete."}),(0,Vt.jsx)("button",{className:"py-[10px] md:py-5 px-6 md:px-10 bg-black text-[#FFFFFF] text-[16px] md:text-[28px] font-bold rounded-md md:rounded-lg mx-auto block  ",onClick:function(){return t("/home")},children:"Go back to homepage"})]}):null})]})};var xp=n.p+"static/media/tether2.66cde21d531ae9cc5e0379717f019e2f.svg";var gp=function(){var t=Te(),n=bt(),r=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,a=lt((function(e){return e.onprofilepage})),o=T((0,e.useState)("bankFunding"),2),i=o[0],s=o[1];return(0,Vt.jsxs)("div",{children:[(0,Vt.jsxs)("header",{className:"bg-[#FFFFFF] py-4 md:py-[25px] px-8 md:px-12 lg:px-[95px] flex justify-between items-center shadow-[0px_0px_16px_0px_rgba(0,0,0,0.04)] ",children:[(0,Vt.jsxs)("div",{className:" flex gap-[18px] items-center ",onClick:function(){t("/home")},children:[(0,Vt.jsx)("img",{src:Ys,alt:"Palbucks logo",className:"cursor-pointer w-5 md:w-6 "}),(0,Vt.jsx)("img",{src:dl,alt:"palbucks",className:" w-[100px] h-[18px] "})]}),(0,Vt.jsxs)("div",{className:" flex gap-[10px] items-center",children:[(0,Vt.jsx)("img",{src:null!==r&&void 0!==r&&r.dp?r.dp:Ut,onClick:function(){t("/profilepage"),n({type:"set profilepage active"})},alt:"user avatar",className:" ".concat(a?"border-[3px] border-[#37BCF7]":""," w-[28px] phones:w-[35px] md:w-[40px] cursor-pointer rounded-[50%]")}),(0,Vt.jsxs)("h2",{className:"hidden md:block text-base font-black",children:[null!==r&&void 0!==r&&r.first_name?r.first_name:""," ",null!==r&&void 0!==r&&r.last_name?r.last_name:""]})]})]}),(0,Vt.jsx)("main",{className:"py-[72px] md:py-[94px] px-[35px] md:px-[142px] lg:px-[180px] 2xl:px-[284px] ",children:"bankFunding"==i?(0,Vt.jsxs)("div",{className:"",children:[(0,Vt.jsx)("h1",{className:"text-center text-[16px] md:text-[32px] font-black mb-4 text-[#000000] ",children:"Fund your wallet with USDT crypto"}),(0,Vt.jsx)("p",{className:"mb-[56px] md:mb-[104px] text-[14px] md:text-[20px] text-[#000000] text-center ",children:"Easily add funds to your wallet using USDT (Tether) cryptocurrency."}),(0,Vt.jsxs)("div",{className:"mb-[117px] md:mb-[242px] flex flex-col gap-3 md:gap-5 mx-auto max-w-[800px] ",children:[(0,Vt.jsx)("label",{htmlFor:"amount",className:"text-[14px] md:text-[20px] font-bold",children:"How much do you intend to fund?"}),(0,Vt.jsxs)("div",{className:"relative h-fit",children:[(0,Vt.jsx)("input",{type:"number",name:"amount",id:"amount",placeholder:"Enter the amount",className:"border-[1.5px] border-black bg-[#F9F9F9] w-full h-[50px] md:h-[62px] px-3 md:px-[22px] py-[11px] rounded-[5px] "}),(0,Vt.jsx)("img",{src:xp,alt:"",className:"absolute right-3 md:right-5 transform cursor-pointer top-1/2 -translate-y-1/2 w-8 "})]})]}),(0,Vt.jsxs)("div",{className:"max-w-[800px] mx-auto",children:[(0,Vt.jsx)("p",{className:"mb-6 text-[15px] text-[#525252] ",children:"In upholding the integrity and safety of organized campaigns, Palbucks is determined to combating financial crime and ensuring adherence to anti-money laundering measures."}),(0,Vt.jsx)("button",{className:"w-full bg-black rounded-lg py-[10px] md:py-5 px-5 md:px-8 text-[15px] md:text-[28px] text-[#FFFFFF] font-bold ",onClick:function(){return s("successfulFunding")},children:"Proceed to Payment"})]})]}):"successfulFunding"==i?(0,Vt.jsxs)("div",{className:"mt-[73px] md:mt-[120px] max-w-[820px] block mx-auto  ",children:[(0,Vt.jsx)("img",{src:lp,alt:"success",className:"mb-[34px] w-[49px] md:w-[71px] mx-auto "}),(0,Vt.jsx)("h3",{className:"text-[16px] md:text-[35px] font-black mb-4 md:mb-2 text-center ",children:"Wallet Funding in Progress"}),(0,Vt.jsx)("p",{className:"text-[14px] md:text-[20px] mb-8 md:mb-10 text-center ",children:"Your transaction to fund your wallet is currently being processed. This may take a few minutes to complete."}),(0,Vt.jsx)("button",{className:"py-[10px] md:py-5 px-6 md:px-10 bg-black text-[#FFFFFF] text-[16px] md:text-[28px] font-bold rounded-md md:rounded-lg mx-auto block  ",onClick:function(){return t("/home")},children:"Go back to homepage"})]}):null})]})};var bp=function(){var t=localStorage.getItem("userInfo")?JSON.parse(localStorage.getItem("userInfo")):null,n=bt(),r=lt((function(e){return e.authReducer.isAuthenticated})),a=lt((function(e){return e.authReducer.isLoading})),o=Te();return(0,e.useEffect)((function(){var e=function(){var e=l(i().mark((function e(){var t;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Tr(n);case 2:(t=e.sent)&&"token_not_valid"===t.code&&(jd(n,o),console.log("logging out"));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e();var t=setInterval((function(){jd(n,o)}),9e5);return function(){clearInterval(t)}}),[]),(0,e.useEffect)((function(){if(null!==t){var e=new($d())("a6fc775946470e47c0d0",{cluster:"eu"});if(null!==t)var r=e.subscribe(t.email);r.bind("like",(function(e){n(Pt(e)),console.log(e)})),r.bind("comment",(function(e){n(Pt(e)),console.log(e)})),r.bind("milestone",(function(e){n(Pt(e)),console.log(e)})),r.bind("co-organiser-request",(function(e){n(Pt(e)),console.log(e)})),r.bind("co_organiser_response",(function(e){n(Pt(e)),console.log(e)}))}return function(){null===r||void 0===r||r.unbind_all(),null===e||void 0===e||e.unsubscribe(t.email)}}),[r]),a?(0,Vt.jsx)("div",{className:"flex items-center justify-center h-screen",children:(0,Vt.jsx)(Dr,{})}):(0,Vt.jsx)("div",{className:"h-screen",children:(0,Vt.jsxs)(Ge,{children:[(0,Vt.jsx)(Ye,{path:"/",element:(0,Vt.jsx)($u,{})}),(0,Vt.jsx)(Ye,{path:"/signin",element:(0,Vt.jsx)(md,{})}),(0,Vt.jsx)(Ye,{path:"/signup",element:(0,Vt.jsx)(xd,{})}),(0,Vt.jsx)(Ye,{path:"/otppage",element:(0,Vt.jsx)(yd,{})}),(0,Vt.jsx)(Ye,{path:"/completesignup",element:(0,Vt.jsx)(wd,{})}),(0,Vt.jsx)(Ye,{exact:!0,path:"/home",element:(0,Vt.jsx)(kd,{element:(0,Vt.jsx)(Zl,{})}),children:(0,Vt.jsx)(Ye,{path:"/home",element:(0,Vt.jsx)(Zl,{})})}),(0,Vt.jsx)(Ye,{path:"/detailed/:id",element:(0,Vt.jsx)(Rl,{})}),(0,Vt.jsx)(Ye,{path:"/:id/donate",element:(0,Vt.jsx)(zd,{})}),(0,Vt.jsx)(Ye,{path:"/settings",element:(0,Vt.jsx)(xc,{})}),(0,Vt.jsx)(Ye,{path:"/organisecrowdfund",element:(0,Vt.jsx)(kd,{element:(0,Vt.jsx)(gc,{})}),children:(0,Vt.jsx)(Ye,{path:"/organisecrowdfund",element:(0,Vt.jsx)(gc,{})})}),(0,Vt.jsx)(Ye,{path:"/organisecrowdfund/:id",element:(0,Vt.jsx)(kd,{element:(0,Vt.jsx)(gc,{})}),children:(0,Vt.jsx)(Ye,{path:"/organisecrowdfund/:id",element:(0,Vt.jsx)(gc,{})})}),(0,Vt.jsx)(Ye,{path:"/profilepage",element:(0,Vt.jsx)(kd,{element:(0,Vt.jsx)(Gd,{})}),children:(0,Vt.jsx)(Ye,{path:"/profilepage",element:(0,Vt.jsx)(Gd,{})})}),(0,Vt.jsx)(Ye,{path:"/wallet",element:(0,Vt.jsx)(kd,{element:(0,Vt.jsx)(Sc,{})}),children:(0,Vt.jsx)(Ye,{path:"/wallet",element:(0,Vt.jsx)(Sc,{})})}),(0,Vt.jsx)(Ye,{path:"/notificationspage",element:(0,Vt.jsx)(Mc,{})}),(0,Vt.jsx)(Ye,{path:"/helpcenter",element:(0,Vt.jsx)(Zc,{})}),(0,Vt.jsx)(Ye,{path:"/howitworks",element:(0,Vt.jsx)(uu,{})}),(0,Vt.jsx)(Ye,{path:"/termsofuse",element:(0,Vt.jsx)(fu,{})}),(0,Vt.jsx)(Ye,{path:"/privacypolicy",element:(0,Vt.jsx)(vu,{})}),(0,Vt.jsx)(Ye,{path:"/communityguidelines",element:(0,Vt.jsx)(yu,{})}),(0,Vt.jsx)(Ye,{path:"/anonymouscrowdfundformtitle",element:(0,Vt.jsx)(tp,{})}),(0,Vt.jsx)(Ye,{path:"/anonymouscrowdfundformamount",element:(0,Vt.jsx)(np,{})}),(0,Vt.jsx)(Ye,{path:"/anonymouscrowdfundformdescription",element:(0,Vt.jsx)(rp,{})}),(0,Vt.jsx)(Ye,{path:"/anonymouscrowdfundformbanner",element:(0,Vt.jsx)(ap,{})}),(0,Vt.jsx)(Ye,{path:"/discover",element:(0,Vt.jsx)(op,{})}),(0,Vt.jsx)(Ye,{path:"/kyc",element:(0,Vt.jsx)(dp,{})}),(0,Vt.jsx)(Ye,{path:"/bankwithdrawal",element:(0,Vt.jsx)(pp,{})}),(0,Vt.jsx)(Ye,{path:"/usdtwithdrawal",element:(0,Vt.jsx)(mp,{})}),(0,Vt.jsx)(Ye,{path:"/bankfunding",element:(0,Vt.jsx)(hp,{})}),(0,Vt.jsx)(Ye,{path:"/cryptofunding",element:(0,Vt.jsx)(gp,{})})]})})},vp=function(e){e&&e instanceof Function&&n.e(787).then(n.bind(n,787)).then((function(t){var n=t.getCLS,r=t.getFID,a=t.getFCP,o=t.getLCP,i=t.getTTFB;n(e),r(e),a(e),o(e),i(e)}))};function yp(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var wp="function"===typeof Symbol&&Symbol.observable||"@@observable",kp=function(){return Math.random().toString(36).substring(7).split("").join(".")},jp={INIT:"@@redux/INIT"+kp(),REPLACE:"@@redux/REPLACE"+kp(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+kp()}};function Np(e){if("object"!==typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Ap(e,t,n){var r;if("function"===typeof t&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error(yp(0));if("function"===typeof t&&"undefined"===typeof n&&(n=t,t=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error(yp(1));return n(Ap)(e,t)}if("function"!==typeof e)throw new Error(yp(2));var a=e,o=t,i=[],s=i,l=!1;function c(){s===i&&(s=i.slice())}function u(){if(l)throw new Error(yp(3));return o}function d(e){if("function"!==typeof e)throw new Error(yp(4));if(l)throw new Error(yp(5));var t=!0;return c(),s.push(e),function(){if(t){if(l)throw new Error(yp(6));t=!1,c();var n=s.indexOf(e);s.splice(n,1),i=null}}}function p(e){if(!Np(e))throw new Error(yp(7));if("undefined"===typeof e.type)throw new Error(yp(8));if(l)throw new Error(yp(9));try{l=!0,o=a(o,e)}finally{l=!1}for(var t=i=s,n=0;n<t.length;n++){(0,t[n])()}return e}function f(e){if("function"!==typeof e)throw new Error(yp(10));a=e,p({type:jp.REPLACE})}function m(){var e,t=d;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(yp(11));function n(){e.next&&e.next(u())}return n(),{unsubscribe:t(n)}}})[wp]=function(){return this},e}return p({type:jp.INIT}),(r={dispatch:p,subscribe:d,getState:u,replaceReducer:f})[wp]=m,r}function Sp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Cp={crowdfundData:{title:"",date_posted:"",end_date:"",banner:null,description:"",start_date:"",target_price:0,amt_raised:0,tags:"",location:""},personalInfo:{first_name:"",last_name:"",dateOfBirth:"",username:"",gender:0,phone:"29334234",bio:"Humble man",email:"",password:"",otp:""}},Ep=function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var a=t[r];0,"function"===typeof e[a]&&(n[a]=e[a])}var o,i=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if("undefined"===typeof n(void 0,{type:jp.INIT}))throw new Error(yp(12));if("undefined"===typeof n(void 0,{type:jp.PROBE_UNKNOWN_ACTION()}))throw new Error(yp(13))}))}(n)}catch(s){o=s}return function(e,t){if(void 0===e&&(e={}),o)throw o;for(var r=!1,a={},s=0;s<i.length;s++){var l=i[s],c=n[l],u=e[l],d=c(u,t);if("undefined"===typeof d){t&&t.type;throw new Error(yp(14))}a[l]=d,r=r||d!==u}return(r=r||i.length!==Object.keys(e).length)?a:e}}({sidebarstate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"open sidebar":return!0;case"close sidebar":return!1;default:return e}},managelinkcolor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"home",t=arguments.length>1?arguments[1]:void 0;return"set link color"===t.type?t.payload:e},managehomeorevent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"home",t=arguments.length>1?arguments[1]:void 0;return"sethomeorevent"===t.type?t.payload:e},homepagedisplay:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"others",t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"setothers":return"others";case"setforyou":return"foryou";default:return e}},crowdfundEvents:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"sethomebodydata":case"loadCrowdfundEvents":return t.payload;case"addCrowdfundEvent":return[].concat(b(e),[t.payload]);case"editEventData":return e.map((function(e){return e.id==t.payload.id?It(It({},e),t.payload):e}));default:return e}},homescrollposition:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1?arguments[1]:void 0;return"SET_SCROLL_POSITION"===t.type?t.payload:e},sidebarslid:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"increase sidebar":return!0;case"reduce sidebar":return!1;default:return e}},onprofilepage:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"set profilepage active":return!0;case"set profilepage inactive":return!1;default:return e}},onnotificationspage:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"set notificationspage active":return!0;case"set notificationspage inactive":return!1;default:return e}},signupInfo:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{email:"",password:"",otp:""},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"updateSignupInfo":return t.payload;case"addOtp":return It(It({},e),{},{otp:t.payload});default:return e}},authReducer:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{isAuthenticated:!1,isLoading:!1},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"setisauthenticated":return It(It({},e),{},{isAuthenticated:t.payload});case"setlogoutloading":return It(It({},e),{},{isLoading:t.payload});default:return e}},otpVerified:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;return"setotpverified"===t.type?t.payload:e},notificationsData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"loadNotifications":return t.payload;case"addNotification":return[].concat(b(e),[t.payload]);default:return e}},newNotificationsAlert:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"addNotification":return!0;case"removeNotificationAlert":return!1;default:return e}},paymentMode:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fiat",t=arguments.length>1?arguments[1]:void 0;return"setPaymentMode"===t.type?t.payload:e},homePageSearchField:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;return"addSearchValue"===t.type?t.payload:e},countryOptions:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;return"addCountryOptions"===t.type?t.payload:e},anonymousCrowdfundData:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Cp,t=arguments.length>1?arguments[1]:void 0;return"updateAnonymousCrowdfundData"===t.type?It(It({},e),{},{crowdfundData:It(It({},e.crowdfundData),t.payload.crowdfundData),personalInfo:It(It({},e.personalInfo),t.payload.personalInfo)}):e}}),Pp=Ep,Fp="persist:",Tp="persist/FLUSH",Op="persist/REHYDRATE",_p="persist/PAUSE",Dp="persist/PERSIST",Ip="persist/PURGE",Rp="persist/REGISTER";function Lp(e){return Lp="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lp(e)}function Mp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Up(e,t,n,r){r.debug;var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mp(n,!0).forEach((function(t){Bp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n);return e&&"object"===Lp(e)&&Object.keys(e).forEach((function(r){"_persist"!==r&&t[r]===n[r]&&(a[r]=e[r])})),a}function zp(e){var t,n=e.blacklist||null,r=e.whitelist||null,a=e.transforms||[],o=e.throttle||0,i="".concat(void 0!==e.keyPrefix?e.keyPrefix:Fp).concat(e.key),s=e.storage;t=!1===e.serialize?function(e){return e}:"function"===typeof e.serialize?e.serialize:Hp;var l=e.writeFailHandler||null,c={},u={},d=[],p=null,f=null;function m(){if(0===d.length)return p&&clearInterval(p),void(p=null);var e=d.shift(),n=a.reduce((function(t,n){return n.in(t,e,c)}),c[e]);if(void 0!==n)try{u[e]=t(n)}catch(r){console.error("redux-persist/createPersistoid: error serializing state",r)}else delete u[e];0===d.length&&(Object.keys(u).forEach((function(e){void 0===c[e]&&delete u[e]})),f=s.setItem(i,t(u)).catch(x))}function h(e){return(!r||-1!==r.indexOf(e)||"_persist"===e)&&(!n||-1===n.indexOf(e))}function x(e){l&&l(e)}return{update:function(e){Object.keys(e).forEach((function(t){h(t)&&c[t]!==e[t]&&-1===d.indexOf(t)&&d.push(t)})),Object.keys(c).forEach((function(t){void 0===e[t]&&h(t)&&-1===d.indexOf(t)&&void 0!==c[t]&&d.push(t)})),null===p&&(p=setInterval(m,o)),c=e},flush:function(){for(;0!==d.length;)m();return f||Promise.resolve()}}}function Hp(e){return JSON.stringify(e)}function Wp(e){var t,n=e.transforms||[],r="".concat(void 0!==e.keyPrefix?e.keyPrefix:Fp).concat(e.key),a=e.storage;e.debug;return t=!1===e.deserialize?function(e){return e}:"function"===typeof e.deserialize?e.deserialize:Vp,a.getItem(r).then((function(e){if(e)try{var r={},a=t(e);return Object.keys(a).forEach((function(e){r[e]=n.reduceRight((function(t,n){return n.out(t,e,a)}),t(a[e]))})),r}catch(o){throw o}}))}function Vp(e){return JSON.parse(e)}function Qp(e){0}function Yp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yp(n,!0).forEach((function(t){Gp(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xp(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Jp(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zp(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kp(n,!0).forEach((function(t){$p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kp(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ef={registry:[],bootstrapped:!1},tf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ef,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Rp:return Zp({},e,{registry:[].concat(Jp(e.registry),[t.key])});case Op:var n=e.registry.indexOf(t.key),r=Jp(e.registry);return r.splice(n,1),Zp({},e,{registry:r,bootstrapped:0===r.length});default:return e}};var nf=n(5752);function rf(e){return rf="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rf(e)}function af(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function of(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sf(e,t){return!t||"object"!==rf(t)&&"function"!==typeof t?cf(e):t}function lf(e){return lf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lf(e)}function cf(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uf(e,t){return uf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},uf(e,t)}function df(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pf=function(e){function t(){var e,n;af(this,t);for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];return df(cf(n=sf(this,(e=lf(t)).call.apply(e,[this].concat(a)))),"state",{bootstrapped:!1}),df(cf(n),"_unsubscribe",void 0),df(cf(n),"handlePersistorState",(function(){n.props.persistor.getState().bootstrapped&&(n.props.onBeforeLift?Promise.resolve(n.props.onBeforeLift()).finally((function(){return n.setState({bootstrapped:!0})})):n.setState({bootstrapped:!0}),n._unsubscribe&&n._unsubscribe())})),n}var n,r,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&uf(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"===typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}])&&of(n.prototype,r),a&&of(n,a),t}(e.PureComponent);df(pf,"defaultProps",{children:null,loading:null});var ff=function(e,t){var n=void 0!==e.version?e.version:-1,r=(e.debug,void 0===e.stateReconciler?Up:e.stateReconciler),a=e.getStoredState||Wp,o=void 0!==e.timeout?e.timeout:5e3,i=null,s=!1,l=!0,c=function(e){return e._persist.rehydrated&&i&&!l&&i.update(e),e};return function(u,d){var p=u||{},f=p._persist,m=Xp(p,["_persist"]);if(d.type===Dp){var h=!1,x=function(t,n){h||(d.rehydrate(e.key,t,n),h=!0)};if(o&&setTimeout((function(){!h&&x(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))}),o),l=!1,i||(i=zp(e)),f)return qp({},t(m,d),{_persist:f});if("function"!==typeof d.rehydrate||"function"!==typeof d.register)throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return d.register(e.key),a(e).then((function(t){(e.migrate||function(e,t){return Promise.resolve(e)})(t,n).then((function(e){x(e)}),(function(e){x(void 0,e)}))}),(function(e){x(void 0,e)})),qp({},t(m,d),{_persist:{version:n,rehydrated:!1}})}if(d.type===Ip)return s=!0,d.result(function(e){var t=e.storage,n="".concat(void 0!==e.keyPrefix?e.keyPrefix:Fp).concat(e.key);return t.removeItem(n,Qp)}(e)),qp({},t(m,d),{_persist:f});if(d.type===Tp)return d.result(i&&i.flush()),qp({},t(m,d),{_persist:f});if(d.type===_p)l=!0;else if(d.type===Op){if(s)return qp({},m,{_persist:qp({},f,{rehydrated:!0})});if(d.key===e.key){var g=t(m,d),b=d.payload,v=qp({},!1!==r&&void 0!==b?r(b,u,g,e):g,{_persist:qp({},f,{rehydrated:!0})});return c(v)}}if(!f)return t(u,d);var y=t(m,d);return y===m?u:c(qp({},y,{_persist:f}))}}({key:"root",storage:nf.Z},Pp),mf=Ap(ff,(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Sp)()),hf=function(e,t,n){var r=n||!1,a=Ap(tf,ef,t&&t.enhancer?t.enhancer:void 0),o=function(e){a.dispatch({type:Rp,key:e})},i=function(t,n,o){var i={type:Op,payload:n,err:o,key:t};e.dispatch(i),a.dispatch(i),r&&s.getState().bootstrapped&&(r(),r=!1)},s=Zp({},a,{purge:function(){var t=[];return e.dispatch({type:Ip,result:function(e){t.push(e)}}),Promise.all(t)},flush:function(){var t=[];return e.dispatch({type:Tp,result:function(e){t.push(e)}}),Promise.all(t)},pause:function(){e.dispatch({type:_p})},persist:function(){e.dispatch({type:Dp,register:o,rehydrate:i})}});return t&&t.manualPersist||s.persist(),s}(mf);a.createRoot(document.getElementById("root")).render((0,Vt.jsx)(e.StrictMode,{children:(0,Vt.jsx)(pt,{store:mf,children:(0,Vt.jsx)(pf,{loading:null,persistor:hf,children:(0,Vt.jsx)(al,{children:(0,Vt.jsx)(bp,{})})})})})),vp()}()}();
//# sourceMappingURL=main.ad292e5f.js.map