@debales/ai 1.1.53 β 1.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/ai-browser.js +16 -16
- package/dist/module/ai.js +2 -2
- package/dist/module/ai.umd.js +2 -2
- package/package.json +1 -1
|
@@ -70,7 +70,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
70
70
|
*
|
|
71
71
|
* This source code is licensed under the MIT license found in the
|
|
72
72
|
* LICENSE file in the root directory of this source tree.
|
|
73
|
-
*/var ZI;function BV(){if(ZI)return s1;ZI=1;var e=qI(),t=Tg(),n=k3();function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var f=u,g=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(g=f.return),u=f.return;while(u)}return f.tag===3?g:null}function l(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function d(u){if(a(u)!==u)throw Error(r(188))}function h(u){var f=u.alternate;if(!f){if(f=a(u),f===null)throw Error(r(188));return f!==u?null:u}for(var g=u,b=f;;){var A=g.return;if(A===null)break;var D=A.alternate;if(D===null){if(b=A.return,b!==null){g=b;continue}break}if(A.child===D.child){for(D=A.child;D;){if(D===g)return d(A),u;if(D===b)return d(A),f;D=D.sibling}throw Error(r(188))}if(g.return!==b.return)g=A,b=D;else{for(var j=!1,K=A.child;K;){if(K===g){j=!0,g=A,b=D;break}if(K===b){j=!0,b=A,g=D;break}K=K.sibling}if(!j){for(K=D.child;K;){if(K===g){j=!0,g=D,b=A;break}if(K===b){j=!0,b=D,g=A;break}K=K.sibling}if(!j)throw Error(r(189))}}if(g.alternate!==b)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?u:f}function p(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=p(u),f!==null)return f;u=u.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function J(u){return u===null||typeof u!="object"?null:(u=Q&&u[Q]||u["@@iterator"],typeof u=="function"?u:null)}var oe=Symbol.for("react.client.reference");function re(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===oe?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case w:return"Fragment";case k:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case te:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case S:return"Portal";case R:return(u.displayName||"Context")+".Provider";case O:return(u._context.displayName||"Context")+".Consumer";case I:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case H:return f=u.displayName||null,f!==null?f:re(u.type)||"Memo";case V:f=u._payload,u=u._init;try{return re(u(f))}catch{}}return null}var pe=Array.isArray,ee=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Ee=[],N=-1;function Y(u){return{current:u}}function ae(u){0>N||(u.current=Ee[N],Ee[N]=null,N--)}function B(u,f){N++,Ee[N]=u.current,u.current=f}var de=Y(null),Ne=Y(null),ke=Y(null),Ie=Y(null);function We(u,f){switch(B(ke,f),B(Ne,u),B(de,null),f.nodeType){case 9:case 11:u=(u=f.documentElement)&&(u=u.namespaceURI)?Al(u):0;break;default:if(u=f.tagName,f=f.namespaceURI)f=Al(f),u=ku(f,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}ae(de),B(de,u)}function Et(){ae(de),ae(Ne),ae(ke)}function dt(u){u.memoizedState!==null&&B(Ie,u);var f=de.current,g=ku(f,u.type);f!==g&&(B(Ne,u),B(de,g))}function lt(u){Ne.current===u&&(ae(de),ae(Ne)),Ie.current===u&&(ae(Ie),bo._currentValue=he)}var rt=Object.prototype.hasOwnProperty,At=e.unstable_scheduleCallback,gt=e.unstable_cancelCallback,bt=e.unstable_shouldYield,zt=e.unstable_requestPaint,ne=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,be=e.unstable_NormalPriority,Be=e.unstable_LowPriority,at=e.unstable_IdlePriority,mt=e.log,wt=e.unstable_setDisableYieldValue,ye=null,He=null;function ut(u){if(typeof mt=="function"&&wt(u),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(ye,u)}catch{}}var yt=Math.clz32?Math.clz32:Wt,_t=Math.log,Gt=Math.LN2;function Wt(u){return u>>>=0,u===0?32:31-(_t(u)/Gt|0)|0}var ln=256,Zt=4194304;function It(u){var f=u&42;if(f!==0)return f;switch(u&-u){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:return 64;case 128:return 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 u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function jt(u,f,g){var b=u.pendingLanes;if(b===0)return 0;var A=0,D=u.suspendedLanes,j=u.pingedLanes;u=u.warmLanes;var K=b&134217727;return K!==0?(b=K&~D,b!==0?A=It(b):(j&=K,j!==0?A=It(j):g||(g=K&~u,g!==0&&(A=It(g))))):(K=b&~D,K!==0?A=It(K):j!==0?A=It(j):g||(g=b&~u,g!==0&&(A=It(g)))),A===0?0:f!==0&&f!==A&&(f&D)===0&&(D=A&-A,g=f&-f,D>=g||D===32&&(g&4194048)!==0)?f:A}function vt(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function G(u,f){switch(u){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32: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 f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function we(){var u=ln;return ln<<=1,(ln&4194048)===0&&(ln=256),u}function tt(){var u=Zt;return Zt<<=1,(Zt&62914560)===0&&(Zt=4194304),u}function st(u){for(var f=[],g=0;31>g;g++)f.push(u);return f}function xt(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Vt(u,f,g,b,A,D){var j=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var K=u.entanglements,ge=u.expirationTimes,Me=u.hiddenUpdates;for(g=j&~g;0<g;){var Xe=31-yt(g),nt=1<<Xe;K[Xe]=0,ge[Xe]=-1;var Le=Me[Xe];if(Le!==null)for(Me[Xe]=null,Xe=0;Xe<Le.length;Xe++){var Pe=Le[Xe];Pe!==null&&(Pe.lane&=-536870913)}g&=~nt}b!==0&&Lt(u,b,0),D!==0&&A===0&&u.tag!==0&&(u.suspendedLanes|=D&~(j&~f))}function Lt(u,f,g){u.pendingLanes|=f,u.suspendedLanes&=~f;var b=31-yt(f);u.entangledLanes|=f,u.entanglements[b]=u.entanglements[b]|1073741824|g&4194090}function Xt(u,f){var g=u.entangledLanes|=f;for(u=u.entanglements;g;){var b=31-yt(g),A=1<<b;A&f|u[b]&f&&(u[b]|=f),g&=~A}}function Dt(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function mn(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function Pn(){var u=se.p;return u!==0?u:(u=window.event,u===void 0?32:U4(u.type))}function Ui(u,f){var g=se.p;try{return se.p=u,f()}finally{se.p=g}}var zn=Math.random().toString(36).slice(2),vn="__reactFiber$"+zn,Qt="__reactProps$"+zn,Br="__reactContainer$"+zn,nr="__reactEvents$"+zn,la="__reactListeners$"+zn,Ro="__reactHandles$"+zn,Po="__reactResources$"+zn,pi="__reactMarker$"+zn;function $t(u){delete u[vn],delete u[Qt],delete u[nr],delete u[la],delete u[Ro]}function li(u){var f=u[vn];if(f)return f;for(var g=u.parentNode;g;){if(f=g[Br]||g[vn]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(u=Jf(u);u!==null;){if(g=u[vn])return g;u=Jf(u)}return f}u=g,g=u.parentNode}return null}function Mr(u){if(u=u[vn]||u[Br]){var f=u.tag;if(f===5||f===6||f===13||f===26||f===27||f===3)return u}return null}function fo(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function Ti(u){var f=u[Po];return f||(f=u[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function rr(u){u[pi]=!0}var Xi=new Set,ho={};function Bn(u,f){po(u,f),po(u+"Capture",f)}function po(u,f){for(ho[u]=f,u=0;u<f.length;u++)Xi.add(f[u])}var Qr=RegExp("^[: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]*$"),ot={},Kr={};function Oe(u){return rt.call(Kr,u)?!0:rt.call(ot,u)?!1:Qr.test(u)?Kr[u]=!0:(ot[u]=!0,!1)}function ce(u,f,g){if(Oe(f))if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+g)}}function Re(u,f,g){if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+g)}}function P(u,f,g,b){if(b===null)u.removeAttribute(g);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(f,g,""+b)}}var W,ue;function xe(u){if(W===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);W=f&&f[1]||"",ue=-1<g.stack.indexOf(`
|
|
73
|
+
*/var ZI;function BV(){if(ZI)return s1;ZI=1;var e=qI(),t=Tg(),n=k3();function r(u){var f="https://react.dev/errors/"+u;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)f+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+u+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function a(u){var f=u,g=u;if(u.alternate)for(;f.return;)f=f.return;else{u=f;do f=u,(f.flags&4098)!==0&&(g=f.return),u=f.return;while(u)}return f.tag===3?g:null}function l(u){if(u.tag===13){var f=u.memoizedState;if(f===null&&(u=u.alternate,u!==null&&(f=u.memoizedState)),f!==null)return f.dehydrated}return null}function d(u){if(a(u)!==u)throw Error(r(188))}function h(u){var f=u.alternate;if(!f){if(f=a(u),f===null)throw Error(r(188));return f!==u?null:u}for(var g=u,b=f;;){var A=g.return;if(A===null)break;var D=A.alternate;if(D===null){if(b=A.return,b!==null){g=b;continue}break}if(A.child===D.child){for(D=A.child;D;){if(D===g)return d(A),u;if(D===b)return d(A),f;D=D.sibling}throw Error(r(188))}if(g.return!==b.return)g=A,b=D;else{for(var j=!1,K=A.child;K;){if(K===g){j=!0,g=A,b=D;break}if(K===b){j=!0,b=A,g=D;break}K=K.sibling}if(!j){for(K=D.child;K;){if(K===g){j=!0,g=D,b=A;break}if(K===b){j=!0,b=D,g=A;break}K=K.sibling}if(!j)throw Error(r(189))}}if(g.alternate!==b)throw Error(r(190))}if(g.tag!==3)throw Error(r(188));return g.stateNode.current===g?u:f}function p(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u;for(u=u.child;u!==null;){if(f=p(u),f!==null)return f;u=u.sibling}return null}var m=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),O=Symbol.for("react.consumer"),R=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),H=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),Q=Symbol.iterator;function J(u){return u===null||typeof u!="object"?null:(u=Q&&u[Q]||u["@@iterator"],typeof u=="function"?u:null)}var oe=Symbol.for("react.client.reference");function re(u){if(u==null)return null;if(typeof u=="function")return u.$$typeof===oe?null:u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case w:return"Fragment";case k:return"Profiler";case E:return"StrictMode";case z:return"Suspense";case L:return"SuspenseList";case te:return"Activity"}if(typeof u=="object")switch(u.$$typeof){case S:return"Portal";case R:return(u.displayName||"Context")+".Provider";case O:return(u._context.displayName||"Context")+".Consumer";case I:var f=u.render;return u=u.displayName,u||(u=f.displayName||f.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case H:return f=u.displayName||null,f!==null?f:re(u.type)||"Memo";case V:f=u._payload,u=u._init;try{return re(u(f))}catch{}}return null}var pe=Array.isArray,ee=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,he={pending:!1,data:null,method:null,action:null},Ee=[],N=-1;function Y(u){return{current:u}}function ae(u){0>N||(u.current=Ee[N],Ee[N]=null,N--)}function B(u,f){N++,Ee[N]=u.current,u.current=f}var de=Y(null),Ne=Y(null),ke=Y(null),Ie=Y(null);function We(u,f){switch(B(ke,f),B(Ne,u),B(de,null),f.nodeType){case 9:case 11:u=(u=f.documentElement)&&(u=u.namespaceURI)?Al(u):0;break;default:if(u=f.tagName,f=f.namespaceURI)f=Al(f),u=ku(f,u);else switch(u){case"svg":u=1;break;case"math":u=2;break;default:u=0}}ae(de),B(de,u)}function Et(){ae(de),ae(Ne),ae(ke)}function dt(u){u.memoizedState!==null&&B(Ie,u);var f=de.current,g=ku(f,u.type);f!==g&&(B(Ne,u),B(de,g))}function lt(u){Ne.current===u&&(ae(de),ae(Ne)),Ie.current===u&&(ae(Ie),bo._currentValue=he)}var rt=Object.prototype.hasOwnProperty,At=e.unstable_scheduleCallback,gt=e.unstable_cancelCallback,bt=e.unstable_shouldYield,zt=e.unstable_requestPaint,ne=e.unstable_now,le=e.unstable_getCurrentPriorityLevel,_e=e.unstable_ImmediatePriority,Fe=e.unstable_UserBlockingPriority,be=e.unstable_NormalPriority,Be=e.unstable_LowPriority,at=e.unstable_IdlePriority,mt=e.log,wt=e.unstable_setDisableYieldValue,ye=null,He=null;function ut(u){if(typeof mt=="function"&&wt(u),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(ye,u)}catch{}}var yt=Math.clz32?Math.clz32:Wt,_t=Math.log,Gt=Math.LN2;function Wt(u){return u>>>=0,u===0?32:31-(_t(u)/Gt|0)|0}var ln=256,Zt=4194304;function It(u){var f=u&42;if(f!==0)return f;switch(u&-u){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:return 64;case 128:return 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 u&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return u&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return u}}function jt(u,f,g){var b=u.pendingLanes;if(b===0)return 0;var A=0,D=u.suspendedLanes,j=u.pingedLanes;u=u.warmLanes;var K=b&134217727;return K!==0?(b=K&~D,b!==0?A=It(b):(j&=K,j!==0?A=It(j):g||(g=K&~u,g!==0&&(A=It(g))))):(K=b&~D,K!==0?A=It(K):j!==0?A=It(j):g||(g=b&~u,g!==0&&(A=It(g)))),A===0?0:f!==0&&f!==A&&(f&D)===0&&(D=A&-A,g=f&-f,D>=g||D===32&&(g&4194048)!==0)?f:A}function vt(u,f){return(u.pendingLanes&~(u.suspendedLanes&~u.pingedLanes)&f)===0}function G(u,f){switch(u){case 1:case 2:case 4:case 8:case 64:return f+250;case 16:case 32: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 f+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function we(){var u=ln;return ln<<=1,(ln&4194048)===0&&(ln=256),u}function tt(){var u=Zt;return Zt<<=1,(Zt&62914560)===0&&(Zt=4194304),u}function st(u){for(var f=[],g=0;31>g;g++)f.push(u);return f}function xt(u,f){u.pendingLanes|=f,f!==268435456&&(u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0)}function Vt(u,f,g,b,A,D){var j=u.pendingLanes;u.pendingLanes=g,u.suspendedLanes=0,u.pingedLanes=0,u.warmLanes=0,u.expiredLanes&=g,u.entangledLanes&=g,u.errorRecoveryDisabledLanes&=g,u.shellSuspendCounter=0;var K=u.entanglements,ge=u.expirationTimes,Me=u.hiddenUpdates;for(g=j&~g;0<g;){var Xe=31-yt(g),nt=1<<Xe;K[Xe]=0,ge[Xe]=-1;var Le=Me[Xe];if(Le!==null)for(Me[Xe]=null,Xe=0;Xe<Le.length;Xe++){var Pe=Le[Xe];Pe!==null&&(Pe.lane&=-536870913)}g&=~nt}b!==0&&Lt(u,b,0),D!==0&&A===0&&u.tag!==0&&(u.suspendedLanes|=D&~(j&~f))}function Lt(u,f,g){u.pendingLanes|=f,u.suspendedLanes&=~f;var b=31-yt(f);u.entangledLanes|=f,u.entanglements[b]=u.entanglements[b]|1073741824|g&4194090}function Xt(u,f){var g=u.entangledLanes|=f;for(u=u.entanglements;g;){var b=31-yt(g),A=1<<b;A&f|u[b]&f&&(u[b]|=f),g&=~A}}function Dt(u){switch(u){case 2:u=1;break;case 8:u=4;break;case 32:u=16;break;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:u=128;break;case 268435456:u=134217728;break;default:u=0}return u}function mn(u){return u&=-u,2<u?8<u?(u&134217727)!==0?32:268435456:8:2}function Pn(){var u=se.p;return u!==0?u:(u=window.event,u===void 0?32:U4(u.type))}function Ui(u,f){var g=se.p;try{return se.p=u,f()}finally{se.p=g}}var zn=Math.random().toString(36).slice(2),vn="__reactFiber$"+zn,Qt="__reactProps$"+zn,Br="__reactContainer$"+zn,nr="__reactEvents$"+zn,la="__reactListeners$"+zn,Ro="__reactHandles$"+zn,Po="__reactResources$"+zn,pi="__reactMarker$"+zn;function $t(u){delete u[vn],delete u[Qt],delete u[nr],delete u[la],delete u[Ro]}function li(u){var f=u[vn];if(f)return f;for(var g=u.parentNode;g;){if(f=g[Br]||g[vn]){if(g=f.alternate,f.child!==null||g!==null&&g.child!==null)for(u=Jf(u);u!==null;){if(g=u[vn])return g;u=Jf(u)}return f}u=g,g=u.parentNode}return null}function Mr(u){if(u=u[vn]||u[Br]){var f=u.tag;if(f===5||f===6||f===13||f===26||f===27||f===3)return u}return null}function fo(u){var f=u.tag;if(f===5||f===26||f===27||f===6)return u.stateNode;throw Error(r(33))}function Ti(u){var f=u[Po];return f||(f=u[Po]={hoistableStyles:new Map,hoistableScripts:new Map}),f}function rr(u){u[pi]=!0}var Xi=new Set,ho={};function Bn(u,f){po(u,f),po(u+"Capture",f)}function po(u,f){for(ho[u]=f,u=0;u<f.length;u++)Xi.add(f[u])}var Qr=RegExp("^[: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]*$"),ot={},Kr={};function Re(u){return rt.call(Kr,u)?!0:rt.call(ot,u)?!1:Qr.test(u)?Kr[u]=!0:(ot[u]=!0,!1)}function ce(u,f,g){if(Re(f))if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":u.removeAttribute(f);return;case"boolean":var b=f.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){u.removeAttribute(f);return}}u.setAttribute(f,""+g)}}function Oe(u,f,g){if(g===null)u.removeAttribute(f);else{switch(typeof g){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(f);return}u.setAttribute(f,""+g)}}function P(u,f,g,b){if(b===null)u.removeAttribute(g);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":u.removeAttribute(g);return}u.setAttributeNS(f,g,""+b)}}var W,ue;function xe(u){if(W===void 0)try{throw Error()}catch(g){var f=g.stack.trim().match(/\n( *(at )?)/);W=f&&f[1]||"",ue=-1<g.stack.indexOf(`
|
|
74
74
|
at`)?" (<anonymous>)":-1<g.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
75
75
|
`+W+u+ue}var Ae=!1;function Ze(u,f){if(!u||Ae)return"";Ae=!0;var g=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(f){var nt=function(){throw Error()};if(Object.defineProperty(nt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(nt,[])}catch(Pe){var Le=Pe}Reflect.construct(u,[],nt)}else{try{nt.call()}catch(Pe){Le=Pe}u.call(nt.prototype)}}else{try{throw Error()}catch(Pe){Le=Pe}(nt=u())&&typeof nt.catch=="function"&&nt.catch(function(){})}}catch(Pe){if(Pe&&Le&&typeof Pe.stack=="string")return[Pe.stack,Le.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var D=b.DetermineComponentFrameRoot(),j=D[0],K=D[1];if(j&&K){var ge=j.split(`
|
|
76
76
|
`),Me=K.split(`
|
|
@@ -78,7 +78,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix
|
|
|
78
78
|
`+ge[b].replace(" at new "," at ");return u.displayName&&Xe.includes("<anonymous>")&&(Xe=Xe.replace("<anonymous>",u.displayName)),Xe}while(1<=b&&0<=A);break}}}finally{Ae=!1,Error.prepareStackTrace=g}return(g=u?u.displayName||u.name:"")?xe(g):""}function Tt(u){switch(u.tag){case 26:case 27:case 5:return xe(u.type);case 16:return xe("Lazy");case 13:return xe("Suspense");case 19:return xe("SuspenseList");case 0:case 15:return Ze(u.type,!1);case 11:return Ze(u.type.render,!1);case 1:return Ze(u.type,!0);case 31:return xe("Activity");default:return""}}function tn(u){try{var f="";do f+=Tt(u),u=u.return;while(u);return f}catch(g){return`
|
|
79
79
|
Error generating stack: `+g.message+`
|
|
80
80
|
`+g.stack}}function an(u){switch(typeof u){case"bigint":case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function Sn(u){var f=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function en(u){var f=Sn(u)?"checked":"value",g=Object.getOwnPropertyDescriptor(u.constructor.prototype,f),b=""+u[f];if(!u.hasOwnProperty(f)&&typeof g<"u"&&typeof g.get=="function"&&typeof g.set=="function"){var A=g.get,D=g.set;return Object.defineProperty(u,f,{configurable:!0,get:function(){return A.call(this)},set:function(j){b=""+j,D.call(this,j)}}),Object.defineProperty(u,f,{enumerable:g.enumerable}),{getValue:function(){return b},setValue:function(j){b=""+j},stopTracking:function(){u._valueTracker=null,delete u[f]}}}}function Wr(u){u._valueTracker||(u._valueTracker=en(u))}function cr(u){if(!u)return!1;var f=u._valueTracker;if(!f)return!0;var g=f.getValue(),b="";return u&&(b=Sn(u)?u.checked?"true":"false":u.value),u=b,u!==g?(f.setValue(u),!0):!1}function br(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}var ua=/[\n"\\]/g;function Lr(u){return u.replace(ua,function(f){return"\\"+f.charCodeAt(0).toString(16)+" "})}function Qp(u,f,g,b,A,D,j,K){u.name="",j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"?u.type=j:u.removeAttribute("type"),f!=null?j==="number"?(f===0&&u.value===""||u.value!=f)&&(u.value=""+an(f)):u.value!==""+an(f)&&(u.value=""+an(f)):j!=="submit"&&j!=="reset"||u.removeAttribute("value"),f!=null?Kp(u,j,an(f)):g!=null?Kp(u,j,an(g)):b!=null&&u.removeAttribute("value"),A==null&&D!=null&&(u.defaultChecked=!!D),A!=null&&(u.checked=A&&typeof A!="function"&&typeof A!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?u.name=""+an(K):u.removeAttribute("name")}function Kx(u,f,g,b,A,D,j,K){if(D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(u.type=D),f!=null||g!=null){if(!(D!=="submit"&&D!=="reset"||f!=null))return;g=g!=null?""+an(g):"",f=f!=null?""+an(f):g,K||f===u.value||(u.value=f),u.defaultValue=f}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,u.checked=K?u.checked:!!b,u.defaultChecked=!!b,j!=null&&typeof j!="function"&&typeof j!="symbol"&&typeof j!="boolean"&&(u.name=j)}function Kp(u,f,g){f==="number"&&br(u.ownerDocument)===u||u.defaultValue===""+g||(u.defaultValue=""+g)}function lc(u,f,g,b){if(u=u.options,f){f={};for(var A=0;A<g.length;A++)f["$"+g[A]]=!0;for(g=0;g<u.length;g++)A=f.hasOwnProperty("$"+u[g].value),u[g].selected!==A&&(u[g].selected=A),A&&b&&(u[g].defaultSelected=!0)}else{for(g=""+an(g),f=null,A=0;A<u.length;A++){if(u[A].value===g){u[A].selected=!0,b&&(u[A].defaultSelected=!0);return}f!==null||u[A].disabled||(f=u[A])}f!==null&&(f.selected=!0)}}function Wx(u,f,g){if(f!=null&&(f=""+an(f),f!==u.value&&(u.value=f),g==null)){u.defaultValue!==f&&(u.defaultValue=f);return}u.defaultValue=g!=null?""+an(g):""}function Xx(u,f,g,b){if(f==null){if(b!=null){if(g!=null)throw Error(r(92));if(pe(b)){if(1<b.length)throw Error(r(93));b=b[0]}g=b}g==null&&(g=""),f=g}g=an(f),u.defaultValue=g,b=u.textContent,b===g&&b!==""&&b!==null&&(u.value=b)}function xf(u,f){if(f){var g=u.firstChild;if(g&&g===u.lastChild&&g.nodeType===3){g.nodeValue=f;return}}u.textContent=f}var x8=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Jx(u,f,g){var b=f.indexOf("--")===0;g==null||typeof g=="boolean"||g===""?b?u.setProperty(f,""):f==="float"?u.cssFloat="":u[f]="":b?u.setProperty(f,g):typeof g!="number"||g===0||x8.has(f)?f==="float"?u.cssFloat=g:u[f]=(""+g).trim():u[f]=g+"px"}function Qm(u,f,g){if(f!=null&&typeof f!="object")throw Error(r(62));if(u=u.style,g!=null){for(var b in g)!g.hasOwnProperty(b)||f!=null&&f.hasOwnProperty(b)||(b.indexOf("--")===0?u.setProperty(b,""):b==="float"?u.cssFloat="":u[b]="");for(var A in f)b=f[A],f.hasOwnProperty(A)&&g[A]!==b&&Jx(u,A,b)}else for(var D in f)f.hasOwnProperty(D)&&Jx(u,D,f[D])}function Qd(u){if(u.indexOf("-")===-1)return!1;switch(u){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 Wp=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),b8=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xp(u){return b8.test(""+u)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":u}var Km=null;function bf(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var _f=null,Kd=null;function zT(u){var f=Mr(u);if(f&&(u=f.stateNode)){var g=u[Qt]||null;e:switch(u=f.stateNode,f.type){case"input":if(Qp(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name),f=g.name,g.type==="radio"&&f!=null){for(g=u;g.parentNode;)g=g.parentNode;for(g=g.querySelectorAll('input[name="'+Lr(""+f)+'"][type="radio"]'),f=0;f<g.length;f++){var b=g[f];if(b!==u&&b.form===u.form){var A=b[Qt]||null;if(!A)throw Error(r(90));Qp(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(f=0;f<g.length;f++)b=g[f],b.form===u.form&&cr(b)}break e;case"textarea":Wx(u,g.value,g.defaultValue);break e;case"select":f=g.value,f!=null&&lc(u,!!g.multiple,f,!1)}}}var eb=!1;function FT(u,f,g){if(eb)return u(f,g);eb=!0;try{var b=u(f);return b}finally{if(eb=!1,(_f!==null||Kd!==null)&&(P0(),_f&&(f=_f,u=Kd,Kd=_f=null,zT(f),u)))for(f=0;f<u.length;f++)zT(u[f])}}function ru(u,f){var g=u.stateNode;if(g===null)return null;var b=g[Qt]||null;if(b===null)return null;g=b[f];e:switch(f){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(u=u.type,b=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!b;break e;default:u=!1}if(u)return null;if(g&&typeof g!="function")throw Error(r(231,f,typeof g));return g}var Ms=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wm=!1;if(Ms)try{var Wd={};Object.defineProperty(Wd,"passive",{get:function(){Wm=!0}}),window.addEventListener("test",Wd,Wd),window.removeEventListener("test",Wd,Wd)}catch{Wm=!1}var cs=null,Xm=null,Sf=null;function Jp(){if(Sf)return Sf;var u,f=Xm,g=f.length,b,A="value"in cs?cs.value:cs.textContent,D=A.length;for(u=0;u<g&&f[u]===A[u];u++);var j=g-u;for(b=1;b<=j&&f[g-b]===A[D-b];b++);return Sf=A.slice(u,1<b?1-b:void 0)}function e0(u){var f=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&f===13&&(u=13)):u=f,u===10&&(u=13),32<=u||u===13?u:0}function go(){return!0}function UT(){return!1}function Oo(u){function f(g,b,A,D,j){this._reactName=g,this._targetInst=A,this.type=b,this.nativeEvent=D,this.target=j,this.currentTarget=null;for(var K in u)u.hasOwnProperty(K)&&(g=u[K],this[K]=g?g(D):D[K]);return this.isDefaultPrevented=(D.defaultPrevented!=null?D.defaultPrevented:D.returnValue===!1)?go:UT,this.isPropagationStopped=UT,this}return m(f.prototype,{preventDefault:function(){this.defaultPrevented=!0;var g=this.nativeEvent;g&&(g.preventDefault?g.preventDefault():typeof g.returnValue!="unknown"&&(g.returnValue=!1),this.isDefaultPrevented=go)},stopPropagation:function(){var g=this.nativeEvent;g&&(g.stopPropagation?g.stopPropagation():typeof g.cancelBubble!="unknown"&&(g.cancelBubble=!0),this.isPropagationStopped=go)},persist:function(){},isPersistent:go}),f}var uc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},t0=Oo(uc),n0=m({},uc,{view:0,detail:0}),_8=Oo(n0),Jm,tb,Xd,ev=m({},n0,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:tv,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Xd&&(Xd&&u.type==="mousemove"?(Jm=u.screenX-Xd.screenX,tb=u.screenY-Xd.screenY):tb=Jm=0,Xd=u),Jm)},movementY:function(u){return"movementY"in u?u.movementY:tb}}),r0=Oo(ev),jT=m({},ev,{dataTransfer:0}),HT=Oo(jT),PT=m({},n0,{relatedTarget:0}),nb=Oo(PT),S8=m({},uc,{animationName:0,elapsedTime:0,pseudoElement:0}),w8=Oo(S8),C8=m({},uc,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),E8=Oo(C8),i0=m({},uc,{data:0}),rb=Oo(i0),qT={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},GT={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"},VT={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ib(u){var f=this.nativeEvent;return f.getModifierState?f.getModifierState(u):(u=VT[u])?!!f[u]:!1}function tv(){return ib}var wf=m({},n0,{key:function(u){if(u.key){var f=qT[u.key]||u.key;if(f!=="Unidentified")return f}return u.type==="keypress"?(u=e0(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?GT[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:tv,charCode:function(u){return u.type==="keypress"?e0(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?e0(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),Cf=Oo(wf),Is=m({},ev,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ca=Oo(Is),nv=m({},n0,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:tv}),rv=Oo(nv),ob=m({},uc,{propertyName:0,elapsedTime:0,pseudoElement:0}),fa=Oo(ob),YT=m({},ev,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),iv=Oo(YT),Ef=m({},uc,{newState:0,oldState:0}),ab=Oo(Ef),ZT=[9,13,27,32],ov=Ms&&"CompositionEvent"in window,Af=null;Ms&&"documentMode"in document&&(Af=document.documentMode);var A8=Ms&&"TextEvent"in window&&!Af,av=Ms&&(!ov||Af&&8<Af&&11>=Af),xl=" ",sb=!1;function sv(u,f){switch(u){case"keyup":return ZT.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function o0(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var fs=!1;function lb(u,f){switch(u){case"compositionend":return o0(f);case"keypress":return f.which!==32?null:(sb=!0,xl);case"textInput":return u=f.data,u===xl&&sb?null:u;default:return null}}function ub(u,f){if(fs)return u==="compositionend"||!ov&&sv(u,f)?(u=Jp(),Sf=Xm=cs=null,fs=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1<f.char.length)return f.char;if(f.which)return String.fromCharCode(f.which)}return null;case"compositionend":return av&&f.locale!=="ko"?null:f.data;default:return null}}var kf={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 cb(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f==="input"?!!kf[u.type]:f==="textarea"}function lv(u,f,g,b){_f?Kd?Kd.push(b):Kd=[b]:_f=b,f=Nc(f,"onChange"),0<f.length&&(g=new t0("onChange","change",null,g,b),u.push({event:g,listeners:f}))}var Tf=null,$s=null;function Rf(u){Au(u,0)}function Jd(u){var f=fo(u);if(cr(f))return u}function cc(u,f){if(u==="change")return f}var fb=!1;if(Ms){var uv;if(Ms){var Of="oninput"in document;if(!Of){var eh=document.createElement("div");eh.setAttribute("oninput","return;"),Of=typeof eh.oninput=="function"}uv=Of}else uv=!1;fb=uv&&(!document.documentMode||9<document.documentMode)}function db(){Tf&&(Tf.detachEvent("onpropertychange",th),$s=Tf=null)}function th(u){if(u.propertyName==="value"&&Jd($s)){var f=[];lv(f,$s,u,bf(u)),FT(Rf,f)}}function QT(u,f,g){u==="focusin"?(db(),Tf=f,$s=g,Tf.attachEvent("onpropertychange",th)):u==="focusout"&&db()}function cv(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return Jd($s)}function fc(u,f){if(u==="click")return Jd(f)}function iu(u,f){if(u==="input"||u==="change")return Jd(f)}function hb(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var qo=typeof Object.is=="function"?Object.is:hb;function ou(u,f){if(qo(u,f))return!0;if(typeof u!="object"||u===null||typeof f!="object"||f===null)return!1;var g=Object.keys(u),b=Object.keys(f);if(g.length!==b.length)return!1;for(b=0;b<g.length;b++){var A=g[b];if(!rt.call(f,A)||!qo(u[A],f[A]))return!1}return!0}function a0(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function dc(u,f){var g=a0(u);u=0;for(var b;g;){if(g.nodeType===3){if(b=u+g.textContent.length,u<=f&&b>=f)return{node:g,offset:f-u};u=b}e:{for(;g;){if(g.nextSibling){g=g.nextSibling;break e}g=g.parentNode}g=void 0}g=a0(g)}}function jr(u,f){return u&&f?u===f?!0:u&&u.nodeType===3?!1:f&&f.nodeType===3?jr(u,f.parentNode):"contains"in u?u.contains(f):u.compareDocumentPosition?!!(u.compareDocumentPosition(f)&16):!1:!1}function s0(u){u=u!=null&&u.ownerDocument!=null&&u.ownerDocument.defaultView!=null?u.ownerDocument.defaultView:window;for(var f=br(u.document);f instanceof u.HTMLIFrameElement;){try{var g=typeof f.contentWindow.location.href=="string"}catch{g=!1}if(g)u=f.contentWindow;else break;f=br(u.document)}return f}function fv(u){var f=u&&u.nodeName&&u.nodeName.toLowerCase();return f&&(f==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||f==="textarea"||u.contentEditable==="true")}var pb=Ms&&"documentMode"in document&&11>=document.documentMode,ds=null,Df=null,La=null,nh=!1;function rh(u,f,g){var b=g.window===g?g.document:g.nodeType===9?g:g.ownerDocument;nh||ds==null||ds!==br(b)||(b=ds,"selectionStart"in b&&fv(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),La&&ou(La,b)||(La=b,b=Nc(Df,"onSelect"),0<b.length&&(f=new t0("onSelect","select",null,f,g),u.push({event:f,listeners:b}),f.target=ds)))}function au(u,f){var g={};return g[u.toLowerCase()]=f.toLowerCase(),g["Webkit"+u]="webkit"+f,g["Moz"+u]="moz"+f,g}var hc={animationend:au("Animation","AnimationEnd"),animationiteration:au("Animation","AnimationIteration"),animationstart:au("Animation","AnimationStart"),transitionrun:au("Transition","TransitionRun"),transitionstart:au("Transition","TransitionStart"),transitioncancel:au("Transition","TransitionCancel"),transitionend:au("Transition","TransitionEnd")},dv={},Bs={};Ms&&(Bs=document.createElement("div").style,"AnimationEvent"in window||(delete hc.animationend.animation,delete hc.animationiteration.animation,delete hc.animationstart.animation),"TransitionEvent"in window||delete hc.transitionend.transition);function Do(u){if(dv[u])return dv[u];if(!hc[u])return u;var f=hc[u],g;for(g in f)if(f.hasOwnProperty(g)&&g in Bs)return dv[u]=f[g];return u}var l0=Do("animationend"),KT=Do("animationiteration"),gb=Do("animationstart"),k8=Do("transitionrun"),mb=Do("transitionstart"),hv=Do("transitioncancel"),vb=Do("transitionend"),yb=new Map,pv="abort auxClick beforeToggle 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(" ");pv.push("scrollEnd");function da(u,f){yb.set(u,f),Bn(f,[u])}var xb=new WeakMap;function Na(u,f){if(typeof u=="object"&&u!==null){var g=xb.get(u);return g!==void 0?g:(f={value:u,source:f,stack:tn(f)},xb.set(u,f),f)}return{value:u,source:f,stack:tn(f)}}var za=[],pc=0,u0=0;function Ls(){for(var u=pc,f=u0=pc=0;f<u;){var g=za[f];za[f++]=null;var b=za[f];za[f++]=null;var A=za[f];za[f++]=null;var D=za[f];if(za[f++]=null,b!==null&&A!==null){var j=b.pending;j===null?A.next=A:(A.next=j.next,j.next=A),b.pending=A}D!==0&&ih(g,A,D)}}function Ns(u,f,g,b){za[pc++]=u,za[pc++]=f,za[pc++]=g,za[pc++]=b,u0|=b,u.lanes|=b,u=u.alternate,u!==null&&(u.lanes|=b)}function Mf(u,f,g,b){return Ns(u,f,g,b),gc(u)}function su(u,f){return Ns(u,null,null,f),gc(u)}function ih(u,f,g){u.lanes|=g;var b=u.alternate;b!==null&&(b.lanes|=g);for(var A=!1,D=u.return;D!==null;)D.childLanes|=g,b=D.alternate,b!==null&&(b.childLanes|=g),D.tag===22&&(u=D.stateNode,u===null||u._visibility&1||(A=!0)),u=D,D=D.return;return u.tag===3?(D=u.stateNode,A&&f!==null&&(A=31-yt(g),u=D.hiddenUpdates,b=u[A],b===null?u[A]=[f]:b.push(f),f.lane=g|536870912),D):null}function gc(u){if(50<Nh)throw Nh=0,ty=null,Error(r(185));for(var f=u.return;f!==null;)u=f,f=u.return;return u.tag===3?u.stateNode:null}var If={};function T8(u,f,g,b){this.tag=u,this.key=g,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ha(u,f,g,b){return new T8(u,f,g,b)}function gv(u){return u=u.prototype,!(!u||!u.isReactComponent)}function zs(u,f){var g=u.alternate;return g===null?(g=ha(u.tag,f,u.key,u.mode),g.elementType=u.elementType,g.type=u.type,g.stateNode=u.stateNode,g.alternate=u,u.alternate=g):(g.pendingProps=f,g.type=u.type,g.flags=0,g.subtreeFlags=0,g.deletions=null),g.flags=u.flags&65011712,g.childLanes=u.childLanes,g.lanes=u.lanes,g.child=u.child,g.memoizedProps=u.memoizedProps,g.memoizedState=u.memoizedState,g.updateQueue=u.updateQueue,f=u.dependencies,g.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},g.sibling=u.sibling,g.index=u.index,g.ref=u.ref,g.refCleanup=u.refCleanup,g}function mv(u,f){u.flags&=65011714;var g=u.alternate;return g===null?(u.childLanes=0,u.lanes=f,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=g.childLanes,u.lanes=g.lanes,u.child=g.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=g.memoizedProps,u.memoizedState=g.memoizedState,u.updateQueue=g.updateQueue,u.type=g.type,f=g.dependencies,u.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext}),u}function wn(u,f,g,b,A,D){var j=0;if(b=u,typeof u=="function")gv(u)&&(j=1);else if(typeof u=="string")j=I4(u,g,de.current)?26:u==="html"||u==="head"||u==="body"?27:5;else e:switch(u){case te:return u=ha(31,g,f,A),u.elementType=te,u.lanes=D,u;case w:return ht(g.children,A,D,f);case E:j=8,A|=24;break;case k:return u=ha(12,g,f,A|2),u.elementType=k,u.lanes=D,u;case z:return u=ha(13,g,f,A),u.elementType=z,u.lanes=D,u;case L:return u=ha(19,g,f,A),u.elementType=L,u.lanes=D,u;default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case T:case R:j=10;break e;case O:j=9;break e;case I:j=11;break e;case H:j=14;break e;case V:j=16,b=null;break e}j=29,g=Error(r(130,u===null?"null":typeof u,"")),b=null}return f=ha(j,g,f,A),f.elementType=u,f.type=b,f.lanes=D,f}function ht(u,f,g,b){return u=ha(7,u,b,f),u.lanes=g,u}function mc(u,f,g){return u=ha(6,u,null,f),u.lanes=g,u}function oh(u,f,g){return f=ha(4,u.children!==null?u.children:[],u.key,f),f.lanes=g,f.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},f}var Nr=[],vc=0,ah=null,c0=0,pa=[],hs=0,lu=null,Fs=1,Us="";function Ri(u,f){Nr[vc++]=c0,Nr[vc++]=ah,ah=u,c0=f}function mr(u,f,g){pa[hs++]=Fs,pa[hs++]=Us,pa[hs++]=lu,lu=u;var b=Fs;u=Us;var A=32-yt(b)-1;b&=~(1<<A),g+=1;var D=32-yt(f)+A;if(30<D){var j=A-A%5;D=(b&(1<<j)-1).toString(32),b>>=j,A-=j,Fs=1<<32-yt(f)+A|g<<A|b,Us=D+u}else Fs=1<<D|g<<A|b,Us=u}function f0(u){u.return!==null&&(Ri(u,1),mr(u,1,0))}function $f(u){for(;u===ah;)ah=Nr[--vc],Nr[vc]=null,c0=Nr[--vc],Nr[vc]=null;for(;u===lu;)lu=pa[--hs],pa[hs]=null,Us=pa[--hs],pa[hs]=null,Fs=pa[--hs],pa[hs]=null}var gi=null,Cr=null,Cn=!1,uu=null,Go=!1,d0=Error(r(519));function js(u){var f=Error(r(418,""));throw uh(Na(f,u)),d0}function vv(u){var f=u.stateNode,g=u.type,b=u.memoizedProps;switch(f[vn]=u,f[Qt]=b,g){case"dialog":yn("cancel",f),yn("close",f);break;case"iframe":case"object":case"embed":yn("load",f);break;case"video":case"audio":for(g=0;g<fn.length;g++)yn(fn[g],f);break;case"source":yn("error",f);break;case"img":case"image":case"link":yn("error",f),yn("load",f);break;case"details":yn("toggle",f);break;case"input":yn("invalid",f),Kx(f,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),Wr(f);break;case"select":yn("invalid",f);break;case"textarea":yn("invalid",f),Xx(f,b.value,b.defaultValue,b.children),Wr(f)}g=b.children,typeof g!="string"&&typeof g!="number"&&typeof g!="bigint"||f.textContent===""+g||b.suppressHydrationWarning===!0||O4(f.textContent,g)?(b.popover!=null&&(yn("beforetoggle",f),yn("toggle",f)),b.onScroll!=null&&yn("scroll",f),b.onScrollEnd!=null&&yn("scrollend",f),b.onClick!=null&&(f.onclick=W0),f=!0):f=!1,f||js(u)}function h0(u){for(gi=u.return;gi;)switch(gi.tag){case 5:case 13:Go=!1;return;case 27:case 3:Go=!0;return;default:gi=gi.return}}function sh(u){if(u!==gi)return!1;if(!Cn)return h0(u),Cn=!0,!1;var f=u.tag,g;if((g=f!==3&&f!==27)&&((g=f===5)&&(g=u.type,g=!(g!=="form"&&g!=="button")||Xf(u.type,u.memoizedProps)),g=!g),g&&Cr&&js(u),h0(u),f===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,f=0;u;){if(u.nodeType===8)if(g=u.data,g==="/$"){if(f===0){Cr=el(u.nextSibling);break e}f--}else g!=="$"&&g!=="$!"&&g!=="$?"||f++;u=u.nextSibling}Cr=null}}else f===27?(f=Cr,yo(u.type)?(u=F_,F_=null,Cr=u):Cr=f):Cr=gi?el(u.stateNode.nextSibling):null;return!0}function lh(){Cr=gi=null,Cn=!1}function bb(){var u=uu;return u!==null&&(Yo===null?Yo=u:Yo.push.apply(Yo,u),uu=null),u}function uh(u){uu===null?uu=[u]:uu.push(u)}var yv=Y(null),cu=null,Hs=null;function bl(u,f,g){B(yv,f._currentValue),f._currentValue=g}function _l(u){u._currentValue=yv.current,ae(yv)}function xv(u,f,g){for(;u!==null;){var b=u.alternate;if((u.childLanes&f)!==f?(u.childLanes|=f,b!==null&&(b.childLanes|=f)):b!==null&&(b.childLanes&f)!==f&&(b.childLanes|=f),u===g)break;u=u.return}}function bv(u,f,g,b){var A=u.child;for(A!==null&&(A.return=u);A!==null;){var D=A.dependencies;if(D!==null){var j=A.child;D=D.firstContext;e:for(;D!==null;){var K=D;D=A;for(var ge=0;ge<f.length;ge++)if(K.context===f[ge]){D.lanes|=g,K=D.alternate,K!==null&&(K.lanes|=g),xv(D.return,g,u),b||(j=null);break e}D=K.next}}else if(A.tag===18){if(j=A.return,j===null)throw Error(r(341));j.lanes|=g,D=j.alternate,D!==null&&(D.lanes|=g),xv(j,g,u),j=null}else j=A.child;if(j!==null)j.return=A;else for(j=A;j!==null;){if(j===u){j=null;break}if(A=j.sibling,A!==null){A.return=j.return,j=A;break}j=j.return}A=j}}function p0(u,f,g,b){u=null;for(var A=f,D=!1;A!==null;){if(!D){if((A.flags&524288)!==0)D=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var j=A.alternate;if(j===null)throw Error(r(387));if(j=j.memoizedProps,j!==null){var K=A.type;qo(A.pendingProps.value,j.value)||(u!==null?u.push(K):u=[K])}}else if(A===Ie.current){if(j=A.alternate,j===null)throw Error(r(387));j.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(u!==null?u.push(bo):u=[bo])}A=A.return}u!==null&&bv(f,u,g,b),f.flags|=262144}function g0(u){for(u=u.firstContext;u!==null;){if(!qo(u.context._currentValue,u.memoizedValue))return!0;u=u.next}return!1}function yc(u){cu=u,Hs=null,u=u.dependencies,u!==null&&(u.firstContext=null)}function mo(u){return _b(cu,u)}function ch(u,f){return cu===null&&yc(u),_b(u,f)}function _b(u,f){var g=f._currentValue;if(f={context:f,memoizedValue:g,next:null},Hs===null){if(u===null)throw Error(r(308));Hs=f,u.dependencies={lanes:0,firstContext:f},u.flags|=524288}else Hs=Hs.next=f;return g}var WT=typeof AbortController<"u"?AbortController:function(){var u=[],f=this.signal={aborted:!1,addEventListener:function(g,b){u.push(b)}};this.abort=function(){f.aborted=!0,u.forEach(function(g){return g()})}},fh=e.unstable_scheduleCallback,_v=e.unstable_NormalPriority,Oi={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Sb(){return{controller:new WT,data:new Map,refCount:0}}function xc(u){u.refCount--,u.refCount===0&&fh(_v,function(){u.controller.abort()})}var Sl=null,dh=0,bc=0,ps=null;function ga(u,f){if(Sl===null){var g=Sl=[];dh=0,bc=fy(),ps={status:"pending",value:void 0,then:function(b){g.push(b)}}}return dh++,f.then(m0,m0),f}function m0(){if(--dh===0&&Sl!==null){ps!==null&&(ps.status="fulfilled");var u=Sl;Sl=null,bc=0,ps=null;for(var f=0;f<u.length;f++)(0,u[f])()}}function wb(u,f){var g=[],b={status:"pending",value:null,reason:null,then:function(A){g.push(A)}};return u.then(function(){b.status="fulfilled",b.value=f;for(var A=0;A<g.length;A++)(0,g[A])(f)},function(A){for(b.status="rejected",b.reason=A,A=0;A<g.length;A++)(0,g[A])(void 0)}),b}var Cb=ee.S;ee.S=function(u,f){typeof f=="object"&&f!==null&&typeof f.then=="function"&&ga(u,f),Cb!==null&&Cb(u,f)};var fu=Y(null);function hh(){var u=fu.current;return u!==null?u:Ar.pooledCache}function ph(u,f){f===null?B(fu,fu.current):B(fu,f.pool)}function v0(){var u=hh();return u===null?null:{parent:Oi._currentValue,pool:u}}var Bf=Error(r(460)),y0=Error(r(474)),gh=Error(r(542)),Sv={then:function(){}};function Eb(u){return u=u.status,u==="fulfilled"||u==="rejected"}function mh(){}function Ab(u,f,g){switch(g=u[g],g===void 0?u.push(f):g!==f&&(f.then(mh,mh),f=g),f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,kb(u),u;default:if(typeof f.status=="string")f.then(mh,mh);else{if(u=Ar,u!==null&&100<u.shellSuspendCounter)throw Error(r(482));u=f,u.status="pending",u.then(function(b){if(f.status==="pending"){var A=f;A.status="fulfilled",A.value=b}},function(b){if(f.status==="pending"){var A=f;A.status="rejected",A.reason=b}})}switch(f.status){case"fulfilled":return f.value;case"rejected":throw u=f.reason,kb(u),u}throw vh=f,Bf}}var vh=null;function wv(){if(vh===null)throw Error(r(459));var u=vh;return vh=null,u}function kb(u){if(u===Bf||u===gh)throw Error(r(483))}var du=!1;function x0(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Cv(u,f){u=u.updateQueue,f.updateQueue===u&&(f.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,callbacks:null})}function hu(u){return{lane:u,tag:0,payload:null,callback:null,next:null}}function ma(u,f,g){var b=u.updateQueue;if(b===null)return null;if(b=b.shared,(vr&2)!==0){var A=b.pending;return A===null?f.next=f:(f.next=A.next,A.next=f),b.pending=f,f=gc(u),ih(u,null,g),f}return Ns(u,b,f,g),gc(u)}function Lf(u,f,g){if(f=f.updateQueue,f!==null&&(f=f.shared,(g&4194048)!==0)){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Xt(u,g)}}function b0(u,f){var g=u.updateQueue,b=u.alternate;if(b!==null&&(b=b.updateQueue,g===b)){var A=null,D=null;if(g=g.firstBaseUpdate,g!==null){do{var j={lane:g.lane,tag:g.tag,payload:g.payload,callback:null,next:null};D===null?A=D=j:D=D.next=j,g=g.next}while(g!==null);D===null?A=D=f:D=D.next=f}else A=D=f;g={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:D,shared:b.shared,callbacks:b.callbacks},u.updateQueue=g;return}u=g.lastBaseUpdate,u===null?g.firstBaseUpdate=f:u.next=f,g.lastBaseUpdate=f}var Tb=!1;function _0(){if(Tb){var u=ps;if(u!==null)throw u}}function yh(u,f,g,b){Tb=!1;var A=u.updateQueue;du=!1;var D=A.firstBaseUpdate,j=A.lastBaseUpdate,K=A.shared.pending;if(K!==null){A.shared.pending=null;var ge=K,Me=ge.next;ge.next=null,j===null?D=Me:j.next=Me,j=ge;var Xe=u.alternate;Xe!==null&&(Xe=Xe.updateQueue,K=Xe.lastBaseUpdate,K!==j&&(K===null?Xe.firstBaseUpdate=Me:K.next=Me,Xe.lastBaseUpdate=ge))}if(D!==null){var nt=A.baseState;j=0,Xe=Me=ge=null,K=D;do{var Le=K.lane&-536870913,Pe=Le!==K.lane;if(Pe?(Qn&Le)===Le:(b&Le)===Le){Le!==0&&Le===bc&&(Tb=!0),Xe!==null&&(Xe=Xe.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var rn=u,Jt=K;Le=f;var hr=g;switch(Jt.tag){case 1:if(rn=Jt.payload,typeof rn=="function"){nt=rn.call(hr,nt,Le);break e}nt=rn;break e;case 3:rn.flags=rn.flags&-65537|128;case 0:if(rn=Jt.payload,Le=typeof rn=="function"?rn.call(hr,nt,Le):rn,Le==null)break e;nt=m({},nt,Le);break e;case 2:du=!0}}Le=K.callback,Le!==null&&(u.flags|=64,Pe&&(u.flags|=8192),Pe=A.callbacks,Pe===null?A.callbacks=[Le]:Pe.push(Le))}else Pe={lane:Le,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Xe===null?(Me=Xe=Pe,ge=nt):Xe=Xe.next=Pe,j|=Le;if(K=K.next,K===null){if(K=A.shared.pending,K===null)break;Pe=K,K=Pe.next,Pe.next=null,A.lastBaseUpdate=Pe,A.shared.pending=null}}while(!0);Xe===null&&(ge=nt),A.baseState=ge,A.firstBaseUpdate=Me,A.lastBaseUpdate=Xe,D===null&&(A.shared.lanes=0),Oc|=j,u.lanes=j,u.memoizedState=nt}}function xh(u,f){if(typeof u!="function")throw Error(r(191,u));u.call(f)}function Ev(u,f){var g=u.callbacks;if(g!==null)for(u.callbacks=null,u=0;u<g.length;u++)xh(g[u],f)}var pu=Y(null),S0=Y(0);function Rb(u,f){u=wu,B(S0,u),B(pu,f),wu=u|f.baseLanes}function ji(){B(S0,wu),B(pu,pu.current)}function bh(){wu=S0.current,ae(pu),ae(S0)}var Ps=0,hn=null,fr=null,ui=null,Nf=!1,zf=!1,va=!1,w0=0,gs=0,ya=null,Av=0;function ci(){throw Error(r(321))}function C0(u,f){if(f===null)return!1;for(var g=0;g<f.length&&g<u.length;g++)if(!qo(u[g],f[g]))return!1;return!0}function kv(u,f,g,b,A,D){return Ps=D,hn=f,f.memoizedState=null,f.updateQueue=null,f.lanes=0,ee.H=u===null||u.memoizedState===null?o4:Zb,va=!1,D=g(b,A),va=!1,zf&&(D=_c(f,g,b,A)),Ob(u),D}function Ob(u){ee.H=$0;var f=fr!==null&&fr.next!==null;if(Ps=0,ui=fr=hn=null,Nf=!1,gs=0,ya=null,f)throw Error(r(300));u===null||Mn||(u=u.dependencies,u!==null&&g0(u)&&(Mn=!0))}function _c(u,f,g,b){hn=u;var A=0;do{if(zf&&(ya=null),gs=0,zf=!1,25<=A)throw Error(r(301));if(A+=1,ui=fr=null,u.updateQueue!=null){var D=u.updateQueue;D.lastEffect=null,D.events=null,D.stores=null,D.memoCache!=null&&(D.memoCache.index=0)}ee.H=a4,D=f(g,b)}while(zf);return D}function XT(){var u=ee.H,f=u.useState()[0];return f=typeof f.then=="function"?Ff(f):f,u=u.useState()[0],(fr!==null?fr.memoizedState:null)!==u&&(hn.flags|=1024),f}function Tv(){var u=w0!==0;return w0=0,u}function Rv(u,f,g){f.updateQueue=u.updateQueue,f.flags&=-2053,u.lanes&=~g}function _h(u){if(Nf){for(u=u.memoizedState;u!==null;){var f=u.queue;f!==null&&(f.pending=null),u=u.next}Nf=!1}Ps=0,ui=fr=hn=null,zf=!1,gs=w0=0,ya=null}function Vo(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ui===null?hn.memoizedState=ui=u:ui=ui.next=u,ui}function mi(){if(fr===null){var u=hn.alternate;u=u!==null?u.memoizedState:null}else u=fr.next;var f=ui===null?hn.memoizedState:ui.next;if(f!==null)ui=f,fr=u;else{if(u===null)throw hn.alternate===null?Error(r(467)):Error(r(310));fr=u,u={memoizedState:fr.memoizedState,baseState:fr.baseState,baseQueue:fr.baseQueue,queue:fr.queue,next:null},ui===null?hn.memoizedState=ui=u:ui=ui.next=u}return ui}function E0(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ff(u){var f=gs;return gs+=1,ya===null&&(ya=[]),u=Ab(ya,u,f),f=hn,(ui===null?f.memoizedState:ui.next)===null&&(f=f.alternate,ee.H=f===null||f.memoizedState===null?o4:Zb),u}function Ov(u){if(u!==null&&typeof u=="object"){if(typeof u.then=="function")return Ff(u);if(u.$$typeof===R)return mo(u)}throw Error(r(438,String(u)))}function Hi(u){var f=null,g=hn.updateQueue;if(g!==null&&(f=g.memoCache),f==null){var b=hn.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(f={data:b.data.map(function(A){return A.slice()}),index:0})))}if(f==null&&(f={data:[],index:0}),g===null&&(g=E0(),hn.updateQueue=g),g.memoCache=f,g=f.data[f.index],g===void 0)for(g=f.data[f.index]=Array(u),b=0;b<u;b++)g[b]=F;return f.index++,g}function wl(u,f){return typeof f=="function"?f(u):f}function A0(u){var f=mi();return Dv(f,fr,u)}function Dv(u,f,g){var b=u.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=g;var A=u.baseQueue,D=b.pending;if(D!==null){if(A!==null){var j=A.next;A.next=D.next,D.next=j}f.baseQueue=A=D,b.pending=null}if(D=u.baseState,A===null)u.memoizedState=D;else{f=A.next;var K=j=null,ge=null,Me=f,Xe=!1;do{var nt=Me.lane&-536870913;if(nt!==Me.lane?(Qn&nt)===nt:(Ps&nt)===nt){var Le=Me.revertLane;if(Le===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null}),nt===bc&&(Xe=!0);else if((Ps&Le)===Le){Me=Me.next,Le===bc&&(Xe=!0);continue}else nt={lane:0,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ge===null?(K=ge=nt,j=D):ge=ge.next=nt,hn.lanes|=Le,Oc|=Le;nt=Me.action,va&&g(D,nt),D=Me.hasEagerState?Me.eagerState:g(D,nt)}else Le={lane:nt,revertLane:Me.revertLane,action:Me.action,hasEagerState:Me.hasEagerState,eagerState:Me.eagerState,next:null},ge===null?(K=ge=Le,j=D):ge=ge.next=Le,hn.lanes|=nt,Oc|=nt;Me=Me.next}while(Me!==null&&Me!==f);if(ge===null?j=D:ge.next=K,!qo(D,u.memoizedState)&&(Mn=!0,Xe&&(g=ps,g!==null)))throw g;u.memoizedState=D,u.baseState=j,u.baseQueue=ge,b.lastRenderedState=D}return A===null&&(b.lanes=0),[u.memoizedState,b.dispatch]}function Mv(u){var f=mi(),g=f.queue;if(g===null)throw Error(r(311));g.lastRenderedReducer=u;var b=g.dispatch,A=g.pending,D=f.memoizedState;if(A!==null){g.pending=null;var j=A=A.next;do D=u(D,j.action),j=j.next;while(j!==A);qo(D,f.memoizedState)||(Mn=!0),f.memoizedState=D,f.baseQueue===null&&(f.baseState=D),g.lastRenderedState=D}return[D,b]}function Db(u,f,g){var b=hn,A=mi(),D=Cn;if(D){if(g===void 0)throw Error(r(407));g=g()}else g=f();var j=!qo((fr||A).memoizedState,g);j&&(A.memoizedState=g,Mn=!0),A=A.queue;var K=Mb.bind(null,b,A,u);if(gu(2048,8,K,[u]),A.getSnapshot!==f||j||ui!==null&&ui.memoizedState.tag&1){if(b.flags|=2048,Sc(9,ms(),Iv.bind(null,b,A,g,f),null),Ar===null)throw Error(r(349));D||(Ps&124)!==0||k0(b,f,g)}return g}function k0(u,f,g){u.flags|=16384,u={getSnapshot:f,value:g},f=hn.updateQueue,f===null?(f=E0(),hn.updateQueue=f,f.stores=[u]):(g=f.stores,g===null?f.stores=[u]:g.push(u))}function Iv(u,f,g,b){f.value=g,f.getSnapshot=b,Ib(f)&&$b(u)}function Mb(u,f,g){return g(function(){Ib(f)&&$b(u)})}function Ib(u){var f=u.getSnapshot;u=u.value;try{var g=f();return!qo(u,g)}catch{return!0}}function $b(u){var f=su(u,2);f!==null&&Aa(f,u,2)}function T0(u){var f=Vo();if(typeof u=="function"){var g=u;if(u=g(),va){ut(!0);try{g()}finally{ut(!1)}}}return f.memoizedState=f.baseState=u,f.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:u},f}function $v(u,f,g,b){return u.baseState=g,Dv(u,fr,typeof b=="function"?b:wl)}function Bb(u,f,g,b,A){if(Ch(u))throw Error(r(485));if(u=f.action,u!==null){var D={payload:A,action:u,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(j){D.listeners.push(j)}};ee.T!==null?g(!0):D.isTransition=!1,b(D),g=f.pending,g===null?(D.next=f.pending=D,Lb(f,D)):(D.next=g.next,f.pending=g.next=D)}}function Lb(u,f){var g=f.action,b=f.payload,A=u.state;if(f.isTransition){var D=ee.T,j={};ee.T=j;try{var K=g(A,b),ge=ee.S;ge!==null&&ge(j,K),Bv(u,f,K)}catch(Me){O0(u,f,Me)}finally{ee.T=D}}else try{D=g(A,b),Bv(u,f,D)}catch(Me){O0(u,f,Me)}}function Bv(u,f,g){g!==null&&typeof g=="object"&&typeof g.then=="function"?g.then(function(b){R0(u,f,b)},function(b){return O0(u,f,b)}):R0(u,f,g)}function R0(u,f,g){f.status="fulfilled",f.value=g,Nb(f),u.state=g,f=u.pending,f!==null&&(g=f.next,g===f?u.pending=null:(g=g.next,f.next=g,Lb(u,g)))}function O0(u,f,g){var b=u.pending;if(u.pending=null,b!==null){b=b.next;do f.status="rejected",f.reason=g,Nb(f),f=f.next;while(f!==b)}u.action=null}function Nb(u){u=u.listeners;for(var f=0;f<u.length;f++)(0,u[f])()}function zb(u,f){return f}function Lv(u,f){if(Cn){var g=Ar.formState;if(g!==null){e:{var b=hn;if(Cn){if(Cr){t:{for(var A=Cr,D=Go;A.nodeType!==8;){if(!D){A=null;break t}if(A=el(A.nextSibling),A===null){A=null;break t}}D=A.data,A=D==="F!"||D==="F"?A:null}if(A){Cr=el(A.nextSibling),b=A.data==="F!";break e}}js(b)}b=!1}b&&(f=g[0])}}return g=Vo(),g.memoizedState=g.baseState=f,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:zb,lastRenderedState:f},g.queue=b,g=Fv.bind(null,hn,b),b.dispatch=g,b=T0(!1),D=M0.bind(null,hn,!1,b.queue),b=Vo(),A={state:f,dispatch:null,action:u,pending:null},b.queue=A,g=Bb.bind(null,hn,A,D,g),A.dispatch=g,b.memoizedState=u,[f,g,!1]}function Fb(u){var f=mi();return Cl(f,fr,u)}function Cl(u,f,g){if(f=Dv(u,f,zb)[0],u=A0(wl)[0],typeof f=="object"&&f!==null&&typeof f.then=="function")try{var b=Ff(f)}catch(j){throw j===Bf?gh:j}else b=f;f=mi();var A=f.queue,D=A.dispatch;return g!==f.memoizedState&&(hn.flags|=2048,Sc(9,ms(),Ub.bind(null,A,g),null)),[b,D,u]}function Ub(u,f){u.action=f}function JT(u){var f=mi(),g=fr;if(g!==null)return Cl(f,g,u);mi(),f=f.memoizedState,g=mi();var b=g.queue.dispatch;return g.memoizedState=u,[f,b,!1]}function Sc(u,f,g,b){return u={tag:u,create:g,deps:b,inst:f,next:null},f=hn.updateQueue,f===null&&(f=E0(),hn.updateQueue=f),g=f.lastEffect,g===null?f.lastEffect=u.next=u:(b=g.next,g.next=u,u.next=b,f.lastEffect=u),u}function ms(){return{destroy:void 0,resource:void 0}}function jb(){return mi().memoizedState}function Uf(u,f,g,b){var A=Vo();b=b===void 0?null:b,hn.flags|=u,A.memoizedState=Sc(1|f,ms(),g,b)}function gu(u,f,g,b){var A=mi();b=b===void 0?null:b;var D=A.memoizedState.inst;fr!==null&&b!==null&&C0(b,fr.memoizedState.deps)?A.memoizedState=Sc(f,D,g,b):(hn.flags|=u,A.memoizedState=Sc(1|f,D,g,b))}function Hr(u,f){Uf(8390656,8,u,f)}function e4(u,f){gu(2048,8,u,f)}function t4(u,f){return gu(4,2,u,f)}function Hb(u,f){return gu(4,4,u,f)}function qs(u,f){if(typeof f=="function"){u=u();var g=f(u);return function(){typeof g=="function"?g():f(null)}}if(f!=null)return u=u(),f.current=u,function(){f.current=null}}function Pb(u,f,g){g=g!=null?g.concat([u]):null,gu(4,4,qs.bind(null,f,u),g)}function D0(){}function Sh(u,f){var g=mi();f=f===void 0?null:f;var b=g.memoizedState;return f!==null&&C0(f,b[1])?b[0]:(g.memoizedState=[u,f],u)}function jf(u,f){var g=mi();f=f===void 0?null:f;var b=g.memoizedState;if(f!==null&&C0(f,b[1]))return b[0];if(b=u(),va){ut(!0);try{u()}finally{ut(!1)}}return g.memoizedState=[b,f],b}function Nv(u,f,g){return g===void 0||(Ps&1073741824)!==0?u.memoizedState=f:(u.memoizedState=g,u=y4(),hn.lanes|=u,Oc|=u,g)}function zv(u,f,g,b){return qo(g,f)?g:pu.current!==null?(u=Nv(u,g,b),qo(u,f)||(Mn=!0),u):(Ps&42)===0?(Mn=!0,u.memoizedState=g):(u=y4(),hn.lanes|=u,Oc|=u,f)}function qb(u,f,g,b,A){var D=se.p;se.p=D!==0&&8>D?D:8;var j=ee.T,K={};ee.T=K,M0(u,!1,f,g);try{var ge=A(),Me=ee.S;if(Me!==null&&Me(K,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var Xe=wb(ge,b);wh(u,f,Xe,Pa(u))}else wh(u,f,b,Pa(u))}catch(nt){wh(u,f,{then:function(){},status:"rejected",reason:nt},Pa())}finally{se.p=D,ee.T=j}}function R8(){}function Gb(u,f,g,b){if(u.tag!==5)throw Error(r(476));var A=Vb(u).queue;qb(u,A,f,he,g===null?R8:function(){return n4(u),g(b)})}function Vb(u){var f=u.memoizedState;if(f!==null)return f;f={memoizedState:he,baseState:he,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:he},next:null};var g={};return f.next={memoizedState:g,baseState:g,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:wl,lastRenderedState:g},next:null},u.memoizedState=f,u=u.alternate,u!==null&&(u.memoizedState=f),f}function n4(u){var f=Vb(u).next.queue;wh(u,f,{},Pa())}function Hf(){return mo(bo)}function Gs(){return mi().memoizedState}function Yb(){return mi().memoizedState}function O8(u){for(var f=u.return;f!==null;){switch(f.tag){case 24:case 3:var g=Pa();u=hu(g);var b=ma(f,u,g);b!==null&&(Aa(b,f,g),Lf(b,f,g)),f={cache:Sb()},u.payload=f;return}f=f.return}}function r4(u,f,g){var b=Pa();g={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null},Ch(u)?I0(f,g):(g=Mf(u,f,g,b),g!==null&&(Aa(g,u,b),i4(g,f,b)))}function Fv(u,f,g){var b=Pa();wh(u,f,g,b)}function wh(u,f,g,b){var A={lane:b,revertLane:0,action:g,hasEagerState:!1,eagerState:null,next:null};if(Ch(u))I0(f,A);else{var D=u.alternate;if(u.lanes===0&&(D===null||D.lanes===0)&&(D=f.lastRenderedReducer,D!==null))try{var j=f.lastRenderedState,K=D(j,g);if(A.hasEagerState=!0,A.eagerState=K,qo(K,j))return Ns(u,f,A,0),Ar===null&&Ls(),!1}catch{}finally{}if(g=Mf(u,f,A,b),g!==null)return Aa(g,u,b),i4(g,f,b),!0}return!1}function M0(u,f,g,b){if(b={lane:2,revertLane:fy(),action:b,hasEagerState:!1,eagerState:null,next:null},Ch(u)){if(f)throw Error(r(479))}else f=Mf(u,g,b,2),f!==null&&Aa(f,u,2)}function Ch(u){var f=u.alternate;return u===hn||f!==null&&f===hn}function I0(u,f){zf=Nf=!0;var g=u.pending;g===null?f.next=f:(f.next=g.next,g.next=f),u.pending=f}function i4(u,f,g){if((g&4194048)!==0){var b=f.lanes;b&=u.pendingLanes,g|=b,f.lanes=g,Xt(u,g)}}var $0={readContext:mo,use:Ov,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useLayoutEffect:ci,useInsertionEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useSyncExternalStore:ci,useId:ci,useHostTransitionStatus:ci,useFormState:ci,useActionState:ci,useOptimistic:ci,useMemoCache:ci,useCacheRefresh:ci},o4={readContext:mo,use:Ov,useCallback:function(u,f){return Vo().memoizedState=[u,f===void 0?null:f],u},useContext:mo,useEffect:Hr,useImperativeHandle:function(u,f,g){g=g!=null?g.concat([u]):null,Uf(4194308,4,qs.bind(null,f,u),g)},useLayoutEffect:function(u,f){return Uf(4194308,4,u,f)},useInsertionEffect:function(u,f){Uf(4,2,u,f)},useMemo:function(u,f){var g=Vo();f=f===void 0?null:f;var b=u();if(va){ut(!0);try{u()}finally{ut(!1)}}return g.memoizedState=[b,f],b},useReducer:function(u,f,g){var b=Vo();if(g!==void 0){var A=g(f);if(va){ut(!0);try{g(f)}finally{ut(!1)}}}else A=f;return b.memoizedState=b.baseState=A,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:A},b.queue=u,u=u.dispatch=r4.bind(null,hn,u),[b.memoizedState,u]},useRef:function(u){var f=Vo();return u={current:u},f.memoizedState=u},useState:function(u){u=T0(u);var f=u.queue,g=Fv.bind(null,hn,f);return f.dispatch=g,[u.memoizedState,g]},useDebugValue:D0,useDeferredValue:function(u,f){var g=Vo();return Nv(g,u,f)},useTransition:function(){var u=T0(!1);return u=qb.bind(null,hn,u.queue,!0,!1),Vo().memoizedState=u,[!1,u]},useSyncExternalStore:function(u,f,g){var b=hn,A=Vo();if(Cn){if(g===void 0)throw Error(r(407));g=g()}else{if(g=f(),Ar===null)throw Error(r(349));(Qn&124)!==0||k0(b,f,g)}A.memoizedState=g;var D={value:g,getSnapshot:f};return A.queue=D,Hr(Mb.bind(null,b,D,u),[u]),b.flags|=2048,Sc(9,ms(),Iv.bind(null,b,D,g,f),null),g},useId:function(){var u=Vo(),f=Ar.identifierPrefix;if(Cn){var g=Us,b=Fs;g=(b&~(1<<32-yt(b)-1)).toString(32)+g,f="Β«"+f+"R"+g,g=w0++,0<g&&(f+="H"+g.toString(32)),f+="Β»"}else g=Av++,f="Β«"+f+"r"+g.toString(32)+"Β»";return u.memoizedState=f},useHostTransitionStatus:Hf,useFormState:Lv,useActionState:Lv,useOptimistic:function(u){var f=Vo();f.memoizedState=f.baseState=u;var g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return f.queue=g,f=M0.bind(null,hn,!0,g),g.dispatch=f,[u,f]},useMemoCache:Hi,useCacheRefresh:function(){return Vo().memoizedState=O8.bind(null,hn)}},Zb={readContext:mo,use:Ov,useCallback:Sh,useContext:mo,useEffect:e4,useImperativeHandle:Pb,useInsertionEffect:t4,useLayoutEffect:Hb,useMemo:jf,useReducer:A0,useRef:jb,useState:function(){return A0(wl)},useDebugValue:D0,useDeferredValue:function(u,f){var g=mi();return zv(g,fr.memoizedState,u,f)},useTransition:function(){var u=A0(wl)[0],f=mi().memoizedState;return[typeof u=="boolean"?u:Ff(u),f]},useSyncExternalStore:Db,useId:Gs,useHostTransitionStatus:Hf,useFormState:Fb,useActionState:Fb,useOptimistic:function(u,f){var g=mi();return $v(g,fr,u,f)},useMemoCache:Hi,useCacheRefresh:Yb},a4={readContext:mo,use:Ov,useCallback:Sh,useContext:mo,useEffect:e4,useImperativeHandle:Pb,useInsertionEffect:t4,useLayoutEffect:Hb,useMemo:jf,useReducer:Mv,useRef:jb,useState:function(){return Mv(wl)},useDebugValue:D0,useDeferredValue:function(u,f){var g=mi();return fr===null?Nv(g,u,f):zv(g,fr.memoizedState,u,f)},useTransition:function(){var u=Mv(wl)[0],f=mi().memoizedState;return[typeof u=="boolean"?u:Ff(u),f]},useSyncExternalStore:Db,useId:Gs,useHostTransitionStatus:Hf,useFormState:JT,useActionState:JT,useOptimistic:function(u,f){var g=mi();return fr!==null?$v(g,fr,u,f):(g.baseState=u,[u,g.queue.dispatch])},useMemoCache:Hi,useCacheRefresh:Yb},xa=null,Eh=0;function B0(u){var f=Eh;return Eh+=1,xa===null&&(xa=[]),Ab(xa,u,f)}function L0(u,f){f=f.props.ref,u.ref=f!==void 0?f:null}function Ah(u,f){throw f.$$typeof===y?Error(r(525)):(u=Object.prototype.toString.call(f),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(f).join(", ")+"}":u)))}function ba(u){var f=u._init;return f(u._payload)}function Qb(u){function f(De,Ce){if(u){var $e=De.deletions;$e===null?(De.deletions=[Ce],De.flags|=16):$e.push(Ce)}}function g(De,Ce){if(!u)return null;for(;Ce!==null;)f(De,Ce),Ce=Ce.sibling;return null}function b(De){for(var Ce=new Map;De!==null;)De.key!==null?Ce.set(De.key,De):Ce.set(De.index,De),De=De.sibling;return Ce}function A(De,Ce){return De=zs(De,Ce),De.index=0,De.sibling=null,De}function D(De,Ce,$e){return De.index=$e,u?($e=De.alternate,$e!==null?($e=$e.index,$e<Ce?(De.flags|=67108866,Ce):$e):(De.flags|=67108866,Ce)):(De.flags|=1048576,Ce)}function j(De){return u&&De.alternate===null&&(De.flags|=67108866),De}function K(De,Ce,$e,Je){return Ce===null||Ce.tag!==6?(Ce=mc($e,De.mode,Je),Ce.return=De,Ce):(Ce=A(Ce,$e),Ce.return=De,Ce)}function ge(De,Ce,$e,Je){var Ft=$e.type;return Ft===w?Xe(De,Ce,$e.props.children,Je,$e.key):Ce!==null&&(Ce.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===V&&ba(Ft)===Ce.type)?(Ce=A(Ce,$e.props),L0(Ce,$e),Ce.return=De,Ce):(Ce=wn($e.type,$e.key,$e.props,null,De.mode,Je),L0(Ce,$e),Ce.return=De,Ce)}function Me(De,Ce,$e,Je){return Ce===null||Ce.tag!==4||Ce.stateNode.containerInfo!==$e.containerInfo||Ce.stateNode.implementation!==$e.implementation?(Ce=oh($e,De.mode,Je),Ce.return=De,Ce):(Ce=A(Ce,$e.children||[]),Ce.return=De,Ce)}function Xe(De,Ce,$e,Je,Ft){return Ce===null||Ce.tag!==7?(Ce=ht($e,De.mode,Je,Ft),Ce.return=De,Ce):(Ce=A(Ce,$e),Ce.return=De,Ce)}function nt(De,Ce,$e){if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return Ce=mc(""+Ce,De.mode,$e),Ce.return=De,Ce;if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case x:return $e=wn(Ce.type,Ce.key,Ce.props,null,De.mode,$e),L0($e,Ce),$e.return=De,$e;case S:return Ce=oh(Ce,De.mode,$e),Ce.return=De,Ce;case V:var Je=Ce._init;return Ce=Je(Ce._payload),nt(De,Ce,$e)}if(pe(Ce)||J(Ce))return Ce=ht(Ce,De.mode,$e,null),Ce.return=De,Ce;if(typeof Ce.then=="function")return nt(De,B0(Ce),$e);if(Ce.$$typeof===R)return nt(De,ch(De,Ce),$e);Ah(De,Ce)}return null}function Le(De,Ce,$e,Je){var Ft=Ce!==null?Ce.key:null;if(typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint")return Ft!==null?null:K(De,Ce,""+$e,Je);if(typeof $e=="object"&&$e!==null){switch($e.$$typeof){case x:return $e.key===Ft?ge(De,Ce,$e,Je):null;case S:return $e.key===Ft?Me(De,Ce,$e,Je):null;case V:return Ft=$e._init,$e=Ft($e._payload),Le(De,Ce,$e,Je)}if(pe($e)||J($e))return Ft!==null?null:Xe(De,Ce,$e,Je,null);if(typeof $e.then=="function")return Le(De,Ce,B0($e),Je);if($e.$$typeof===R)return Le(De,Ce,ch(De,$e),Je);Ah(De,$e)}return null}function Pe(De,Ce,$e,Je,Ft){if(typeof Je=="string"&&Je!==""||typeof Je=="number"||typeof Je=="bigint")return De=De.get($e)||null,K(Ce,De,""+Je,Ft);if(typeof Je=="object"&&Je!==null){switch(Je.$$typeof){case x:return De=De.get(Je.key===null?$e:Je.key)||null,ge(Ce,De,Je,Ft);case S:return De=De.get(Je.key===null?$e:Je.key)||null,Me(Ce,De,Je,Ft);case V:var En=Je._init;return Je=En(Je._payload),Pe(De,Ce,$e,Je,Ft)}if(pe(Je)||J(Je))return De=De.get($e)||null,Xe(Ce,De,Je,Ft,null);if(typeof Je.then=="function")return Pe(De,Ce,$e,B0(Je),Ft);if(Je.$$typeof===R)return Pe(De,Ce,$e,ch(Ce,Je),Ft);Ah(Ce,Je)}return null}function rn(De,Ce,$e,Je){for(var Ft=null,En=null,Kt=Ce,sn=Ce=0,io=null;Kt!==null&&sn<$e.length;sn++){Kt.index>sn?(io=Kt,Kt=null):io=Kt.sibling;var ar=Le(De,Kt,$e[sn],Je);if(ar===null){Kt===null&&(Kt=io);break}u&&Kt&&ar.alternate===null&&f(De,Kt),Ce=D(ar,Ce,sn),En===null?Ft=ar:En.sibling=ar,En=ar,Kt=io}if(sn===$e.length)return g(De,Kt),Cn&&Ri(De,sn),Ft;if(Kt===null){for(;sn<$e.length;sn++)Kt=nt(De,$e[sn],Je),Kt!==null&&(Ce=D(Kt,Ce,sn),En===null?Ft=Kt:En.sibling=Kt,En=Kt);return Cn&&Ri(De,sn),Ft}for(Kt=b(Kt);sn<$e.length;sn++)io=Pe(Kt,De,sn,$e[sn],Je),io!==null&&(u&&io.alternate!==null&&Kt.delete(io.key===null?sn:io.key),Ce=D(io,Ce,sn),En===null?Ft=io:En.sibling=io,En=io);return u&&Kt.forEach(function(Il){return f(De,Il)}),Cn&&Ri(De,sn),Ft}function Jt(De,Ce,$e,Je){if($e==null)throw Error(r(151));for(var Ft=null,En=null,Kt=Ce,sn=Ce=0,io=null,ar=$e.next();Kt!==null&&!ar.done;sn++,ar=$e.next()){Kt.index>sn?(io=Kt,Kt=null):io=Kt.sibling;var Il=Le(De,Kt,ar.value,Je);if(Il===null){Kt===null&&(Kt=io);break}u&&Kt&&Il.alternate===null&&f(De,Kt),Ce=D(Il,Ce,sn),En===null?Ft=Il:En.sibling=Il,En=Il,Kt=io}if(ar.done)return g(De,Kt),Cn&&Ri(De,sn),Ft;if(Kt===null){for(;!ar.done;sn++,ar=$e.next())ar=nt(De,ar.value,Je),ar!==null&&(Ce=D(ar,Ce,sn),En===null?Ft=ar:En.sibling=ar,En=ar);return Cn&&Ri(De,sn),Ft}for(Kt=b(Kt);!ar.done;sn++,ar=$e.next())ar=Pe(Kt,De,sn,ar.value,Je),ar!==null&&(u&&ar.alternate!==null&&Kt.delete(ar.key===null?sn:ar.key),Ce=D(ar,Ce,sn),En===null?Ft=ar:En.sibling=ar,En=ar);return u&&Kt.forEach(function(U8){return f(De,U8)}),Cn&&Ri(De,sn),Ft}function hr(De,Ce,$e,Je){if(typeof $e=="object"&&$e!==null&&$e.type===w&&$e.key===null&&($e=$e.props.children),typeof $e=="object"&&$e!==null){switch($e.$$typeof){case x:e:{for(var Ft=$e.key;Ce!==null;){if(Ce.key===Ft){if(Ft=$e.type,Ft===w){if(Ce.tag===7){g(De,Ce.sibling),Je=A(Ce,$e.props.children),Je.return=De,De=Je;break e}}else if(Ce.elementType===Ft||typeof Ft=="object"&&Ft!==null&&Ft.$$typeof===V&&ba(Ft)===Ce.type){g(De,Ce.sibling),Je=A(Ce,$e.props),L0(Je,$e),Je.return=De,De=Je;break e}g(De,Ce);break}else f(De,Ce);Ce=Ce.sibling}$e.type===w?(Je=ht($e.props.children,De.mode,Je,$e.key),Je.return=De,De=Je):(Je=wn($e.type,$e.key,$e.props,null,De.mode,Je),L0(Je,$e),Je.return=De,De=Je)}return j(De);case S:e:{for(Ft=$e.key;Ce!==null;){if(Ce.key===Ft)if(Ce.tag===4&&Ce.stateNode.containerInfo===$e.containerInfo&&Ce.stateNode.implementation===$e.implementation){g(De,Ce.sibling),Je=A(Ce,$e.children||[]),Je.return=De,De=Je;break e}else{g(De,Ce);break}else f(De,Ce);Ce=Ce.sibling}Je=oh($e,De.mode,Je),Je.return=De,De=Je}return j(De);case V:return Ft=$e._init,$e=Ft($e._payload),hr(De,Ce,$e,Je)}if(pe($e))return rn(De,Ce,$e,Je);if(J($e)){if(Ft=J($e),typeof Ft!="function")throw Error(r(150));return $e=Ft.call($e),Jt(De,Ce,$e,Je)}if(typeof $e.then=="function")return hr(De,Ce,B0($e),Je);if($e.$$typeof===R)return hr(De,Ce,ch(De,$e),Je);Ah(De,$e)}return typeof $e=="string"&&$e!==""||typeof $e=="number"||typeof $e=="bigint"?($e=""+$e,Ce!==null&&Ce.tag===6?(g(De,Ce.sibling),Je=A(Ce,$e),Je.return=De,De=Je):(g(De,Ce),Je=mc($e,De.mode,Je),Je.return=De,De=Je),j(De)):g(De,Ce)}return function(De,Ce,$e,Je){try{Eh=0;var Ft=hr(De,Ce,$e,Je);return xa=null,Ft}catch(Kt){if(Kt===Bf||Kt===gh)throw Kt;var En=ha(29,Kt,null,De.mode);return En.lanes=Je,En.return=De,En}finally{}}}var Ji=Qb(!0),Kb=Qb(!1),Di=Y(null),Vs=null;function _a(u){var f=u.alternate;B(Si,Si.current&1),B(Di,u),Vs===null&&(f===null||pu.current!==null||f.memoizedState!==null)&&(Vs=u)}function Wb(u){if(u.tag===22){if(B(Si,Si.current),B(Di,u),Vs===null){var f=u.alternate;f!==null&&f.memoizedState!==null&&(Vs=u)}}else Mo()}function Mo(){B(Si,Si.current),B(Di,Di.current)}function Ys(u){ae(Di),Vs===u&&(Vs=null),ae(Si)}var Si=Y(0);function Fa(u){for(var f=u;f!==null;){if(f.tag===13){var g=f.memoizedState;if(g!==null&&(g=g.dehydrated,g===null||g.data==="$?"||N_(g)))return f}else if(f.tag===19&&f.memoizedProps.revealOrder!==void 0){if((f.flags&128)!==0)return f}else if(f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return null;f=f.return}f.sibling.return=f.return,f=f.sibling}return null}function Uv(u,f,g,b){f=u.memoizedState,g=g(b,f),g=g==null?f:m({},f,g),u.memoizedState=g,u.lanes===0&&(u.updateQueue.baseState=g)}var wc={enqueueSetState:function(u,f,g){u=u._reactInternals;var b=Pa(),A=hu(b);A.payload=f,g!=null&&(A.callback=g),f=ma(u,A,b),f!==null&&(Aa(f,u,b),Lf(f,u,b))},enqueueReplaceState:function(u,f,g){u=u._reactInternals;var b=Pa(),A=hu(b);A.tag=1,A.payload=f,g!=null&&(A.callback=g),f=ma(u,A,b),f!==null&&(Aa(f,u,b),Lf(f,u,b))},enqueueForceUpdate:function(u,f){u=u._reactInternals;var g=Pa(),b=hu(g);b.tag=2,f!=null&&(b.callback=f),f=ma(u,b,g),f!==null&&(Aa(f,u,g),Lf(f,u,g))}};function Xb(u,f,g,b,A,D,j){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(b,D,j):f.prototype&&f.prototype.isPureReactComponent?!ou(g,b)||!ou(A,D):!0}function kh(u,f,g,b){u=f.state,typeof f.componentWillReceiveProps=="function"&&f.componentWillReceiveProps(g,b),typeof f.UNSAFE_componentWillReceiveProps=="function"&&f.UNSAFE_componentWillReceiveProps(g,b),f.state!==u&&wc.enqueueReplaceState(f,f.state,null)}function vs(u,f){var g=f;if("ref"in f){g={};for(var b in f)b!=="ref"&&(g[b]=f[b])}if(u=u.defaultProps){g===f&&(g=m({},g));for(var A in u)g[A]===void 0&&(g[A]=u[A])}return g}var N0=typeof reportError=="function"?reportError:function(u){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var f=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof u=="object"&&u!==null&&typeof u.message=="string"?String(u.message):String(u),error:u});if(!window.dispatchEvent(f))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",u);return}console.error(u)};function Jb(u){N0(u)}function Th(u){console.error(u)}function e_(u){N0(u)}function Pf(u,f){try{var g=u.onUncaughtError;g(f.value,{componentStack:f.stack})}catch(b){setTimeout(function(){throw b})}}function t_(u,f,g){try{var b=u.onCaughtError;b(g.value,{componentStack:g.stack,errorBoundary:f.tag===1?f.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function jv(u,f,g){return g=hu(g),g.tag=3,g.payload={element:null},g.callback=function(){Pf(u,f)},g}function s4(u){return u=hu(u),u.tag=3,u}function n_(u,f,g,b){var A=g.type.getDerivedStateFromError;if(typeof A=="function"){var D=b.value;u.payload=function(){return A(D)},u.callback=function(){t_(f,g,b)}}var j=g.stateNode;j!==null&&typeof j.componentDidCatch=="function"&&(u.callback=function(){t_(f,g,b),typeof A!="function"&&(El===null?El=new Set([this]):El.add(this));var K=b.stack;this.componentDidCatch(b.value,{componentStack:K!==null?K:""})})}function Ua(u,f,g,b,A){if(g.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(f=g.alternate,f!==null&&p0(f,g,A,!0),g=Di.current,g!==null){switch(g.tag){case 13:return Vs===null?$c():g.alternate===null&&yi===0&&(yi=3),g.flags&=-257,g.flags|=65536,g.lanes=A,b===Sv?g.flags|=16384:(f=g.updateQueue,f===null?g.updateQueue=new Set([b]):f.add(b),G0(u,b,A)),!1;case 22:return g.flags|=65536,b===Sv?g.flags|=16384:(f=g.updateQueue,f===null?(f={transitions:null,markerInstances:null,retryQueue:new Set([b])},g.updateQueue=f):(g=f.retryQueue,g===null?f.retryQueue=new Set([b]):g.add(b)),G0(u,b,A)),!1}throw Error(r(435,g.tag))}return G0(u,b,A),$c(),!1}if(Cn)return f=Di.current,f!==null?((f.flags&65536)===0&&(f.flags|=256),f.flags|=65536,f.lanes=A,b!==d0&&(u=Error(r(422),{cause:b}),uh(Na(u,g)))):(b!==d0&&(f=Error(r(423),{cause:b}),uh(Na(f,g))),u=u.current.alternate,u.flags|=65536,A&=-A,u.lanes|=A,b=Na(b,g),A=jv(u.stateNode,b,A),b0(u,A),yi!==4&&(yi=2)),!1;var D=Error(r(520),{cause:b});if(D=Na(D,g),H0===null?H0=[D]:H0.push(D),yi!==4&&(yi=2),f===null)return!0;b=Na(b,g),g=f;do{switch(g.tag){case 3:return g.flags|=65536,u=A&-A,g.lanes|=u,u=jv(g.stateNode,b,u),b0(g,u),!1;case 1:if(f=g.type,D=g.stateNode,(g.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(El===null||!El.has(D))))return g.flags|=65536,A&=-A,g.lanes|=A,A=s4(A),n_(A,u,g,b),b0(g,A),!1}g=g.return}while(g!==null);return!1}var r_=Error(r(461)),Mn=!1;function eo(u,f,g,b){f.child=u===null?Kb(f,null,g,b):Ji(f,u.child,g,b)}function i_(u,f,g,b,A){g=g.render;var D=f.ref;if("ref"in b){var j={};for(var K in b)K!=="ref"&&(j[K]=b[K])}else j=b;return yc(f),b=kv(u,f,g,j,D,A),K=Tv(),u!==null&&!Mn?(Rv(u,f,A),Zs(u,f,A)):(Cn&&K&&f0(f),f.flags|=1,eo(u,f,b,A),f.child)}function l4(u,f,g,b,A){if(u===null){var D=g.type;return typeof D=="function"&&!gv(D)&&D.defaultProps===void 0&&g.compare===null?(f.tag=15,f.type=D,mu(u,f,D,b,A)):(u=wn(g.type,null,b,f,f.mode,A),u.ref=f.ref,u.return=f,f.child=u)}if(D=u.child,!Yv(u,A)){var j=D.memoizedProps;if(g=g.compare,g=g!==null?g:ou,g(j,b)&&u.ref===f.ref)return Zs(u,f,A)}return f.flags|=1,u=zs(D,b),u.ref=f.ref,u.return=f,f.child=u}function mu(u,f,g,b,A){if(u!==null){var D=u.memoizedProps;if(ou(D,b)&&u.ref===f.ref)if(Mn=!1,f.pendingProps=b=D,Yv(u,A))(u.flags&131072)!==0&&(Mn=!0);else return f.lanes=u.lanes,Zs(u,f,A)}return Pv(u,f,g,b,A)}function qf(u,f,g){var b=f.pendingProps,A=b.children,D=u!==null?u.memoizedState:null;if(b.mode==="hidden"){if((f.flags&128)!==0){if(b=D!==null?D.baseLanes|g:g,u!==null){for(A=f.child=u.child,D=0;A!==null;)D=D|A.lanes|A.childLanes,A=A.sibling;f.childLanes=D&~b}else f.childLanes=0,f.child=null;return Hv(u,f,b,g)}if((g&536870912)!==0)f.memoizedState={baseLanes:0,cachePool:null},u!==null&&ph(f,D!==null?D.cachePool:null),D!==null?Rb(f,D):ji(),Wb(f);else return f.lanes=f.childLanes=536870912,Hv(u,f,D!==null?D.baseLanes|g:g,g)}else D!==null?(ph(f,D.cachePool),Rb(f,D),Mo(),f.memoizedState=null):(u!==null&&ph(f,null),ji(),Mo());return eo(u,f,A,g),f.child}function Hv(u,f,g,b){var A=hh();return A=A===null?null:{parent:Oi._currentValue,pool:A},f.memoizedState={baseLanes:g,cachePool:A},u!==null&&ph(f,null),ji(),Wb(f),u!==null&&p0(u,f,b,!0),null}function vu(u,f){var g=f.ref;if(g===null)u!==null&&u.ref!==null&&(f.flags|=4194816);else{if(typeof g!="function"&&typeof g!="object")throw Error(r(284));(u===null||u.ref!==g)&&(f.flags|=4194816)}}function Pv(u,f,g,b,A){return yc(f),g=kv(u,f,g,b,void 0,A),b=Tv(),u!==null&&!Mn?(Rv(u,f,A),Zs(u,f,A)):(Cn&&b&&f0(f),f.flags|=1,eo(u,f,g,A),f.child)}function o_(u,f,g,b,A,D){return yc(f),f.updateQueue=null,g=_c(f,b,g,A),Ob(u),b=Tv(),u!==null&&!Mn?(Rv(u,f,D),Zs(u,f,D)):(Cn&&b&&f0(f),f.flags|=1,eo(u,f,g,D),f.child)}function a_(u,f,g,b,A){if(yc(f),f.stateNode===null){var D=If,j=g.contextType;typeof j=="object"&&j!==null&&(D=mo(j)),D=new g(b,D),f.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,D.updater=wc,f.stateNode=D,D._reactInternals=f,D=f.stateNode,D.props=b,D.state=f.memoizedState,D.refs={},x0(f),j=g.contextType,D.context=typeof j=="object"&&j!==null?mo(j):If,D.state=f.memoizedState,j=g.getDerivedStateFromProps,typeof j=="function"&&(Uv(f,g,j,b),D.state=f.memoizedState),typeof g.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(j=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),j!==D.state&&wc.enqueueReplaceState(D,D.state,null),yh(f,b,D,A),_0(),D.state=f.memoizedState),typeof D.componentDidMount=="function"&&(f.flags|=4194308),b=!0}else if(u===null){D=f.stateNode;var K=f.memoizedProps,ge=vs(g,K);D.props=ge;var Me=D.context,Xe=g.contextType;j=If,typeof Xe=="object"&&Xe!==null&&(j=mo(Xe));var nt=g.getDerivedStateFromProps;Xe=typeof nt=="function"||typeof D.getSnapshotBeforeUpdate=="function",K=f.pendingProps!==K,Xe||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(K||Me!==j)&&kh(f,D,b,j),du=!1;var Le=f.memoizedState;D.state=Le,yh(f,b,D,A),_0(),Me=f.memoizedState,K||Le!==Me||du?(typeof nt=="function"&&(Uv(f,g,nt,b),Me=f.memoizedState),(ge=du||Xb(f,g,ge,b,Le,Me,j))?(Xe||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount()),typeof D.componentDidMount=="function"&&(f.flags|=4194308)):(typeof D.componentDidMount=="function"&&(f.flags|=4194308),f.memoizedProps=b,f.memoizedState=Me),D.props=b,D.state=Me,D.context=j,b=ge):(typeof D.componentDidMount=="function"&&(f.flags|=4194308),b=!1)}else{D=f.stateNode,Cv(u,f),j=f.memoizedProps,Xe=vs(g,j),D.props=Xe,nt=f.pendingProps,Le=D.context,Me=g.contextType,ge=If,typeof Me=="object"&&Me!==null&&(ge=mo(Me)),K=g.getDerivedStateFromProps,(Me=typeof K=="function"||typeof D.getSnapshotBeforeUpdate=="function")||typeof D.UNSAFE_componentWillReceiveProps!="function"&&typeof D.componentWillReceiveProps!="function"||(j!==nt||Le!==ge)&&kh(f,D,b,ge),du=!1,Le=f.memoizedState,D.state=Le,yh(f,b,D,A),_0();var Pe=f.memoizedState;j!==nt||Le!==Pe||du||u!==null&&u.dependencies!==null&&g0(u.dependencies)?(typeof K=="function"&&(Uv(f,g,K,b),Pe=f.memoizedState),(Xe=du||Xb(f,g,Xe,b,Le,Pe,ge)||u!==null&&u.dependencies!==null&&g0(u.dependencies))?(Me||typeof D.UNSAFE_componentWillUpdate!="function"&&typeof D.componentWillUpdate!="function"||(typeof D.componentWillUpdate=="function"&&D.componentWillUpdate(b,Pe,ge),typeof D.UNSAFE_componentWillUpdate=="function"&&D.UNSAFE_componentWillUpdate(b,Pe,ge)),typeof D.componentDidUpdate=="function"&&(f.flags|=4),typeof D.getSnapshotBeforeUpdate=="function"&&(f.flags|=1024)):(typeof D.componentDidUpdate!="function"||j===u.memoizedProps&&Le===u.memoizedState||(f.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||j===u.memoizedProps&&Le===u.memoizedState||(f.flags|=1024),f.memoizedProps=b,f.memoizedState=Pe),D.props=b,D.state=Pe,D.context=ge,b=Xe):(typeof D.componentDidUpdate!="function"||j===u.memoizedProps&&Le===u.memoizedState||(f.flags|=4),typeof D.getSnapshotBeforeUpdate!="function"||j===u.memoizedProps&&Le===u.memoizedState||(f.flags|=1024),b=!1)}return D=b,vu(u,f),b=(f.flags&128)!==0,D||b?(D=f.stateNode,g=b&&typeof g.getDerivedStateFromError!="function"?null:D.render(),f.flags|=1,u!==null&&b?(f.child=Ji(f,u.child,null,A),f.child=Ji(f,null,g,A)):eo(u,f,g,A),f.memoizedState=D.state,u=f.child):u=Zs(u,f,A),u}function qv(u,f,g,b){return lh(),f.flags|=256,eo(u,f,g,b),f.child}var z0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gv(u){return{baseLanes:u,cachePool:v0()}}function s_(u,f,g){return u=u!==null?u.childLanes&~g:0,f&&(u|=Pi),u}function u4(u,f,g){var b=f.pendingProps,A=!1,D=(f.flags&128)!==0,j;if((j=D)||(j=u!==null&&u.memoizedState===null?!1:(Si.current&2)!==0),j&&(A=!0,f.flags&=-129),j=(f.flags&32)!==0,f.flags&=-33,u===null){if(Cn){if(A?_a(f):Mo(),Cn){var K=Cr,ge;if(ge=K){e:{for(ge=K,K=Go;ge.nodeType!==8;){if(!K){K=null;break e}if(ge=el(ge.nextSibling),ge===null){K=null;break e}}K=ge}K!==null?(f.memoizedState={dehydrated:K,treeContext:lu!==null?{id:Fs,overflow:Us}:null,retryLane:536870912,hydrationErrors:null},ge=ha(18,null,null,0),ge.stateNode=K,ge.return=f,f.child=ge,gi=f,Cr=null,ge=!0):ge=!1}ge||js(f)}if(K=f.memoizedState,K!==null&&(K=K.dehydrated,K!==null))return N_(K)?f.lanes=32:f.lanes=536870912,null;Ys(f)}return K=b.children,b=b.fallback,A?(Mo(),A=f.mode,K=F0({mode:"hidden",children:K},A),b=ht(b,A,g,null),K.return=f,b.return=f,K.sibling=b,f.child=K,A=f.child,A.memoizedState=Gv(g),A.childLanes=s_(u,j,g),f.memoizedState=z0,b):(_a(f),Vv(f,K))}if(ge=u.memoizedState,ge!==null&&(K=ge.dehydrated,K!==null)){if(D)f.flags&256?(_a(f),f.flags&=-257,f=l_(u,f,g)):f.memoizedState!==null?(Mo(),f.child=u.child,f.flags|=128,f=null):(Mo(),A=b.fallback,K=f.mode,b=F0({mode:"visible",children:b.children},K),A=ht(A,K,g,null),A.flags|=2,b.return=f,A.return=f,b.sibling=A,f.child=b,Ji(f,u.child,null,g),b=f.child,b.memoizedState=Gv(g),b.childLanes=s_(u,j,g),f.memoizedState=z0,f=A);else if(_a(f),N_(K)){if(j=K.nextSibling&&K.nextSibling.dataset,j)var Me=j.dgst;j=Me,b=Error(r(419)),b.stack="",b.digest=j,uh({value:b,source:null,stack:null}),f=l_(u,f,g)}else if(Mn||p0(u,f,g,!1),j=(g&u.childLanes)!==0,Mn||j){if(j=Ar,j!==null&&(b=g&-g,b=(b&42)!==0?1:Dt(b),b=(b&(j.suspendedLanes|g))!==0?0:b,b!==0&&b!==ge.retryLane))throw ge.retryLane=b,su(u,b),Aa(j,u,b),r_;K.data==="$?"||$c(),f=l_(u,f,g)}else K.data==="$?"?(f.flags|=192,f.child=u.child,f=null):(u=ge.treeContext,Cr=el(K.nextSibling),gi=f,Cn=!0,uu=null,Go=!1,u!==null&&(pa[hs++]=Fs,pa[hs++]=Us,pa[hs++]=lu,Fs=u.id,Us=u.overflow,lu=f),f=Vv(f,b.children),f.flags|=4096);return f}return A?(Mo(),A=b.fallback,K=f.mode,ge=u.child,Me=ge.sibling,b=zs(ge,{mode:"hidden",children:b.children}),b.subtreeFlags=ge.subtreeFlags&65011712,Me!==null?A=zs(Me,A):(A=ht(A,K,g,null),A.flags|=2),A.return=f,b.return=f,b.sibling=A,f.child=b,b=A,A=f.child,K=u.child.memoizedState,K===null?K=Gv(g):(ge=K.cachePool,ge!==null?(Me=Oi._currentValue,ge=ge.parent!==Me?{parent:Me,pool:Me}:ge):ge=v0(),K={baseLanes:K.baseLanes|g,cachePool:ge}),A.memoizedState=K,A.childLanes=s_(u,j,g),f.memoizedState=z0,b):(_a(f),g=u.child,u=g.sibling,g=zs(g,{mode:"visible",children:b.children}),g.return=f,g.sibling=null,u!==null&&(j=f.deletions,j===null?(f.deletions=[u],f.flags|=16):j.push(u)),f.child=g,f.memoizedState=null,g)}function Vv(u,f){return f=F0({mode:"visible",children:f},u.mode),f.return=u,u.child=f}function F0(u,f){return u=ha(22,u,null,f),u.lanes=0,u.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},u}function l_(u,f,g){return Ji(f,u.child,null,g),u=Vv(f,f.pendingProps.children),u.flags|=2,f.memoizedState=null,u}function Gf(u,f,g){u.lanes|=f;var b=u.alternate;b!==null&&(b.lanes|=f),xv(u.return,f,g)}function Rh(u,f,g,b,A){var D=u.memoizedState;D===null?u.memoizedState={isBackwards:f,rendering:null,renderingStartTime:0,last:b,tail:g,tailMode:A}:(D.isBackwards=f,D.rendering=null,D.renderingStartTime=0,D.last=b,D.tail=g,D.tailMode=A)}function u_(u,f,g){var b=f.pendingProps,A=b.revealOrder,D=b.tail;if(eo(u,f,b.children,g),b=Si.current,(b&2)!==0)b=b&1|2,f.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=f.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&Gf(u,g,f);else if(u.tag===19)Gf(u,g,f);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===f)break e;for(;u.sibling===null;){if(u.return===null||u.return===f)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}b&=1}switch(B(Si,b),A){case"forwards":for(g=f.child,A=null;g!==null;)u=g.alternate,u!==null&&Fa(u)===null&&(A=g),g=g.sibling;g=A,g===null?(A=f.child,f.child=null):(A=g.sibling,g.sibling=null),Rh(f,!1,A,g,D);break;case"backwards":for(g=null,A=f.child,f.child=null;A!==null;){if(u=A.alternate,u!==null&&Fa(u)===null){f.child=A;break}u=A.sibling,A.sibling=g,g=A,A=u}Rh(f,!0,g,null,D);break;case"together":Rh(f,!1,null,null,void 0);break;default:f.memoizedState=null}return f.child}function Zs(u,f,g){if(u!==null&&(f.dependencies=u.dependencies),Oc|=f.lanes,(g&f.childLanes)===0)if(u!==null){if(p0(u,f,g,!1),(g&f.childLanes)===0)return null}else return null;if(u!==null&&f.child!==u.child)throw Error(r(153));if(f.child!==null){for(u=f.child,g=zs(u,u.pendingProps),f.child=g,g.return=f;u.sibling!==null;)u=u.sibling,g=g.sibling=zs(u,u.pendingProps),g.return=f;g.sibling=null}return f.child}function Yv(u,f){return(u.lanes&f)!==0?!0:(u=u.dependencies,!!(u!==null&&g0(u)))}function c4(u,f,g){switch(f.tag){case 3:We(f,f.stateNode.containerInfo),bl(f,Oi,u.memoizedState.cache),lh();break;case 27:case 5:dt(f);break;case 4:We(f,f.stateNode.containerInfo);break;case 10:bl(f,f.type,f.memoizedProps.value);break;case 13:var b=f.memoizedState;if(b!==null)return b.dehydrated!==null?(_a(f),f.flags|=128,null):(g&f.child.childLanes)!==0?u4(u,f,g):(_a(f),u=Zs(u,f,g),u!==null?u.sibling:null);_a(f);break;case 19:var A=(u.flags&128)!==0;if(b=(g&f.childLanes)!==0,b||(p0(u,f,g,!1),b=(g&f.childLanes)!==0),A){if(b)return u_(u,f,g);f.flags|=128}if(A=f.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),B(Si,Si.current),b)break;return null;case 22:case 23:return f.lanes=0,qf(u,f,g);case 24:bl(f,Oi,u.memoizedState.cache)}return Zs(u,f,g)}function c_(u,f,g){if(u!==null)if(u.memoizedProps!==f.pendingProps)Mn=!0;else{if(!Yv(u,g)&&(f.flags&128)===0)return Mn=!1,c4(u,f,g);Mn=(u.flags&131072)!==0}else Mn=!1,Cn&&(f.flags&1048576)!==0&&mr(f,c0,f.index);switch(f.lanes=0,f.tag){case 16:e:{u=f.pendingProps;var b=f.elementType,A=b._init;if(b=A(b._payload),f.type=b,typeof b=="function")gv(b)?(u=vs(b,u),f.tag=1,f=a_(null,f,b,u,g)):(f.tag=0,f=Pv(null,f,b,u,g));else{if(b!=null){if(A=b.$$typeof,A===I){f.tag=11,f=i_(null,f,b,u,g);break e}else if(A===H){f.tag=14,f=l4(null,f,b,u,g);break e}}throw f=re(b)||b,Error(r(306,f,""))}}return f;case 0:return Pv(u,f,f.type,f.pendingProps,g);case 1:return b=f.type,A=vs(b,f.pendingProps),a_(u,f,b,A,g);case 3:e:{if(We(f,f.stateNode.containerInfo),u===null)throw Error(r(387));b=f.pendingProps;var D=f.memoizedState;A=D.element,Cv(u,f),yh(f,b,null,g);var j=f.memoizedState;if(b=j.cache,bl(f,Oi,b),b!==D.cache&&bv(f,[Oi],g,!0),_0(),b=j.element,D.isDehydrated)if(D={element:b,isDehydrated:!1,cache:j.cache},f.updateQueue.baseState=D,f.memoizedState=D,f.flags&256){f=qv(u,f,b,g);break e}else if(b!==A){A=Na(Error(r(424)),f),uh(A),f=qv(u,f,b,g);break e}else{switch(u=f.stateNode.containerInfo,u.nodeType){case 9:u=u.body;break;default:u=u.nodeName==="HTML"?u.ownerDocument.body:u}for(Cr=el(u.firstChild),gi=f,Cn=!0,uu=null,Go=!0,g=Kb(f,null,b,g),f.child=g;g;)g.flags=g.flags&-3|4096,g=g.sibling}else{if(lh(),b===A){f=Zs(u,f,g);break e}eo(u,f,b,g)}f=f.child}return f;case 26:return vu(u,f),u===null?(g=_y(f.type,null,f.pendingProps,null))?f.memoizedState=g:Cn||(g=f.type,u=f.pendingProps,b=qh(ke.current).createElement(g),b[vn]=f,b[Qt]=u,Ue(b,g,u),rr(b),f.stateNode=b):f.memoizedState=_y(f.type,u.memoizedProps,f.pendingProps,u.memoizedState),null;case 27:return dt(f),u===null&&Cn&&(b=f.stateNode=xo(f.type,f.pendingProps,ke.current),gi=f,Go=!0,A=Cr,yo(f.type)?(F_=A,Cr=el(b.firstChild)):Cr=A),eo(u,f,f.pendingProps.children,g),vu(u,f),u===null&&(f.flags|=4194304),f.child;case 5:return u===null&&Cn&&((A=b=Cr)&&(b=L_(b,f.type,f.pendingProps,Go),b!==null?(f.stateNode=b,gi=f,Cr=el(b.firstChild),Go=!1,A=!0):A=!1),A||js(f)),dt(f),A=f.type,D=f.pendingProps,j=u!==null?u.memoizedProps:null,b=D.children,Xf(A,D)?b=null:j!==null&&Xf(A,j)&&(f.flags|=32),f.memoizedState!==null&&(A=kv(u,f,XT,null,null,g),bo._currentValue=A),vu(u,f),eo(u,f,b,g),f.child;case 6:return u===null&&Cn&&((u=g=Cr)&&(g=Gh(g,f.pendingProps,Go),g!==null?(f.stateNode=g,gi=f,Cr=null,u=!0):u=!1),u||js(f)),null;case 13:return u4(u,f,g);case 4:return We(f,f.stateNode.containerInfo),b=f.pendingProps,u===null?f.child=Ji(f,null,b,g):eo(u,f,b,g),f.child;case 11:return i_(u,f,f.type,f.pendingProps,g);case 7:return eo(u,f,f.pendingProps,g),f.child;case 8:return eo(u,f,f.pendingProps.children,g),f.child;case 12:return eo(u,f,f.pendingProps.children,g),f.child;case 10:return b=f.pendingProps,bl(f,f.type,b.value),eo(u,f,b.children,g),f.child;case 9:return A=f.type._context,b=f.pendingProps.children,yc(f),A=mo(A),b=b(A),f.flags|=1,eo(u,f,b,g),f.child;case 14:return l4(u,f,f.type,f.pendingProps,g);case 15:return mu(u,f,f.type,f.pendingProps,g);case 19:return u_(u,f,g);case 31:return b=f.pendingProps,g=f.mode,b={mode:b.mode,children:b.children},u===null?(g=F0(b,g),g.ref=f.ref,f.child=g,g.return=f,f=g):(g=zs(u.child,b),g.ref=f.ref,f.child=g,g.return=f,f=g),f;case 22:return qf(u,f,g);case 24:return yc(f),b=mo(Oi),u===null?(A=hh(),A===null&&(A=Ar,D=Sb(),A.pooledCache=D,D.refCount++,D!==null&&(A.pooledCacheLanes|=g),A=D),f.memoizedState={parent:b,cache:A},x0(f),bl(f,Oi,A)):((u.lanes&g)!==0&&(Cv(u,f),yh(f,null,null,g),_0()),A=u.memoizedState,D=f.memoizedState,A.parent!==b?(A={parent:b,cache:b},f.memoizedState=A,f.lanes===0&&(f.memoizedState=f.updateQueue.baseState=A),bl(f,Oi,b)):(b=D.cache,bl(f,Oi,b),b!==A.cache&&bv(f,[Oi],g,!0))),eo(u,f,f.pendingProps.children,g),f.child;case 29:throw f.pendingProps}throw Error(r(156,f.tag))}function yu(u){u.flags|=4}function f_(u,f){if(f.type!=="stylesheet"||(f.state.loading&4)!==0)u.flags&=-16777217;else if(u.flags|=16777216,!P_(f)){if(f=Di.current,f!==null&&((Qn&4194048)===Qn?Vs!==null:(Qn&62914560)!==Qn&&(Qn&536870912)===0||f!==Vs))throw vh=Sv,y0;u.flags|=8192}}function Cc(u,f){f!==null&&(u.flags|=4),u.flags&16384&&(f=u.tag!==22?tt():536870912,u.lanes|=f,Bh|=f)}function Oh(u,f){if(!Cn)switch(u.tailMode){case"hidden":f=u.tail;for(var g=null;f!==null;)f.alternate!==null&&(g=f),f=f.sibling;g===null?u.tail=null:g.sibling=null;break;case"collapsed":g=u.tail;for(var b=null;g!==null;)g.alternate!==null&&(b=g),g=g.sibling;b===null?f||u.tail===null?u.tail=null:u.tail.sibling=null:b.sibling=null}}function Xr(u){var f=u.alternate!==null&&u.alternate.child===u.child,g=0,b=0;if(f)for(var A=u.child;A!==null;)g|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=u,A=A.sibling;else for(A=u.child;A!==null;)g|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=u,A=A.sibling;return u.subtreeFlags|=b,u.childLanes=g,f}function Er(u,f,g){var b=f.pendingProps;switch($f(f),f.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xr(f),null;case 1:return Xr(f),null;case 3:return g=f.stateNode,b=null,u!==null&&(b=u.memoizedState.cache),f.memoizedState.cache!==b&&(f.flags|=2048),_l(Oi),Et(),g.pendingContext&&(g.context=g.pendingContext,g.pendingContext=null),(u===null||u.child===null)&&(sh(f)?yu(f):u===null||u.memoizedState.isDehydrated&&(f.flags&256)===0||(f.flags|=1024,bb())),Xr(f),null;case 26:return g=f.memoizedState,u===null?(yu(f),g!==null?(Xr(f),f_(f,g)):(Xr(f),f.flags&=-16777217)):g?g!==u.memoizedState?(yu(f),Xr(f),f_(f,g)):(Xr(f),f.flags&=-16777217):(u.memoizedProps!==b&&yu(f),Xr(f),f.flags&=-16777217),null;case 27:lt(f),g=ke.current;var A=f.type;if(u!==null&&f.stateNode!=null)u.memoizedProps!==b&&yu(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xr(f),null}u=de.current,sh(f)?vv(f):(u=xo(A,b,g),f.stateNode=u,yu(f))}return Xr(f),null;case 5:if(lt(f),g=f.type,u!==null&&f.stateNode!=null)u.memoizedProps!==b&&yu(f);else{if(!b){if(f.stateNode===null)throw Error(r(166));return Xr(f),null}if(u=de.current,sh(f))vv(f);else{switch(A=qh(ke.current),u){case 1:u=A.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:u=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":u=A.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":u=A.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":u=A.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof b.is=="string"?A.createElement("select",{is:b.is}):A.createElement("select"),b.multiple?u.multiple=!0:b.size&&(u.size=b.size);break;default:u=typeof b.is=="string"?A.createElement(g,{is:b.is}):A.createElement(g)}}u[vn]=f,u[Qt]=b;e:for(A=f.child;A!==null;){if(A.tag===5||A.tag===6)u.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===f)break e;for(;A.sibling===null;){if(A.return===null||A.return===f)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}f.stateNode=u;e:switch(Ue(u,g,b),g){case"button":case"input":case"select":case"textarea":u=!!b.autoFocus;break e;case"img":u=!0;break e;default:u=!1}u&&yu(f)}}return Xr(f),f.flags&=-16777217,null;case 6:if(u&&f.stateNode!=null)u.memoizedProps!==b&&yu(f);else{if(typeof b!="string"&&f.stateNode===null)throw Error(r(166));if(u=ke.current,sh(f)){if(u=f.stateNode,g=f.memoizedProps,b=null,A=gi,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}u[vn]=f,u=!!(u.nodeValue===g||b!==null&&b.suppressHydrationWarning===!0||O4(u.nodeValue,g)),u||js(f)}else u=qh(u).createTextNode(b),u[vn]=f,f.stateNode=u}return Xr(f),null;case 13:if(b=f.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(A=sh(f),b!==null&&b.dehydrated!==null){if(u===null){if(!A)throw Error(r(318));if(A=f.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[vn]=f}else lh(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Xr(f),A=!1}else A=bb(),u!==null&&u.memoizedState!==null&&(u.memoizedState.hydrationErrors=A),A=!0;if(!A)return f.flags&256?(Ys(f),f):(Ys(f),null)}if(Ys(f),(f.flags&128)!==0)return f.lanes=g,f;if(g=b!==null,u=u!==null&&u.memoizedState!==null,g){b=f.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool);var D=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(D=b.memoizedState.cachePool.pool),D!==A&&(b.flags|=2048)}return g!==u&&g&&(f.child.flags|=8192),Cc(f,f.updateQueue),Xr(f),null;case 4:return Et(),u===null&&Q0(f.stateNode.containerInfo),Xr(f),null;case 10:return _l(f.type),Xr(f),null;case 19:if(ae(Si),A=f.memoizedState,A===null)return Xr(f),null;if(b=(f.flags&128)!==0,D=A.rendering,D===null)if(b)Oh(A,!1);else{if(yi!==0||u!==null&&(u.flags&128)!==0)for(u=f.child;u!==null;){if(D=Fa(u),D!==null){for(f.flags|=128,Oh(A,!1),u=D.updateQueue,f.updateQueue=u,Cc(f,u),f.subtreeFlags=0,u=g,g=f.child;g!==null;)mv(g,u),g=g.sibling;return B(Si,Si.current&1|2),f.child}u=u.sibling}A.tail!==null&&ne()>Xv&&(f.flags|=128,b=!0,Oh(A,!1),f.lanes=4194304)}else{if(!b)if(u=Fa(D),u!==null){if(f.flags|=128,b=!0,u=u.updateQueue,f.updateQueue=u,Cc(f,u),Oh(A,!0),A.tail===null&&A.tailMode==="hidden"&&!D.alternate&&!Cn)return Xr(f),null}else 2*ne()-A.renderingStartTime>Xv&&g!==536870912&&(f.flags|=128,b=!0,Oh(A,!1),f.lanes=4194304);A.isBackwards?(D.sibling=f.child,f.child=D):(u=A.last,u!==null?u.sibling=D:f.child=D,A.last=D)}return A.tail!==null?(f=A.tail,A.rendering=f,A.tail=f.sibling,A.renderingStartTime=ne(),f.sibling=null,u=Si.current,B(Si,b?u&1|2:u&1),f):(Xr(f),null);case 22:case 23:return Ys(f),bh(),b=f.memoizedState!==null,u!==null?u.memoizedState!==null!==b&&(f.flags|=8192):b&&(f.flags|=8192),b?(g&536870912)!==0&&(f.flags&128)===0&&(Xr(f),f.subtreeFlags&6&&(f.flags|=8192)):Xr(f),g=f.updateQueue,g!==null&&Cc(f,g.retryQueue),g=null,u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),b=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(b=f.memoizedState.cachePool.pool),b!==g&&(f.flags|=2048),u!==null&&ae(fu),null;case 24:return g=null,u!==null&&(g=u.memoizedState.cache),f.memoizedState.cache!==g&&(f.flags|=2048),_l(Oi),Xr(f),null;case 25:return null;case 30:return null}throw Error(r(156,f.tag))}function d_(u,f){switch($f(f),f.tag){case 1:return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 3:return _l(Oi),Et(),u=f.flags,(u&65536)!==0&&(u&128)===0?(f.flags=u&-65537|128,f):null;case 26:case 27:case 5:return lt(f),null;case 13:if(Ys(f),u=f.memoizedState,u!==null&&u.dehydrated!==null){if(f.alternate===null)throw Error(r(340));lh()}return u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 19:return ae(Si),null;case 4:return Et(),null;case 10:return _l(f.type),null;case 22:case 23:return Ys(f),bh(),u!==null&&ae(fu),u=f.flags,u&65536?(f.flags=u&-65537|128,f):null;case 24:return _l(Oi),null;case 25:return null;default:return null}}function f4(u,f){switch($f(f),f.tag){case 3:_l(Oi),Et();break;case 26:case 27:case 5:lt(f);break;case 4:Et();break;case 13:Ys(f);break;case 19:ae(Si);break;case 10:_l(f.type);break;case 22:case 23:Ys(f),bh(),u!==null&&ae(fu);break;case 24:_l(Oi)}}function Dh(u,f){try{var g=f.updateQueue,b=g!==null?g.lastEffect:null;if(b!==null){var A=b.next;g=A;do{if((g.tag&u)===u){b=void 0;var D=g.create,j=g.inst;b=D(),j.destroy=b}g=g.next}while(g!==A)}}catch(K){kr(f,f.return,K)}}function Ec(u,f,g){try{var b=f.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var D=A.next;b=D;do{if((b.tag&u)===u){var j=b.inst,K=j.destroy;if(K!==void 0){j.destroy=void 0,A=f;var ge=g,Me=K;try{Me()}catch(Xe){kr(A,ge,Xe)}}}b=b.next}while(b!==D)}}catch(Xe){kr(f,f.return,Xe)}}function d4(u){var f=u.updateQueue;if(f!==null){var g=u.stateNode;try{Ev(f,g)}catch(b){kr(u,u.return,b)}}}function Zv(u,f,g){g.props=vs(u.type,u.memoizedProps),g.state=u.memoizedState;try{g.componentWillUnmount()}catch(b){kr(u,f,b)}}function Mh(u,f){try{var g=u.ref;if(g!==null){switch(u.tag){case 26:case 27:case 5:var b=u.stateNode;break;case 30:b=u.stateNode;break;default:b=u.stateNode}typeof g=="function"?u.refCleanup=g(b):g.current=b}}catch(A){kr(u,f,A)}}function Qs(u,f){var g=u.ref,b=u.refCleanup;if(g!==null)if(typeof b=="function")try{b()}catch(A){kr(u,f,A)}finally{u.refCleanup=null,u=u.alternate,u!=null&&(u.refCleanup=null)}else if(typeof g=="function")try{g(null)}catch(A){kr(u,f,A)}else g.current=null}function h_(u){var f=u.type,g=u.memoizedProps,b=u.stateNode;try{e:switch(f){case"button":case"input":case"select":case"textarea":g.autoFocus&&b.focus();break e;case"img":g.src?b.src=g.src:g.srcSet&&(b.srcset=g.srcSet)}}catch(A){kr(u,u.return,A)}}function Vf(u,f,g){try{var b=u.stateNode;dr(b,u.type,g,f),b[Qt]=f}catch(A){kr(u,u.return,A)}}function h4(u){return u.tag===5||u.tag===3||u.tag===26||u.tag===27&&yo(u.type)||u.tag===4}function p_(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||h4(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.tag===27&&yo(u.type)||u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function ys(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?(g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g).insertBefore(u,f):(f=g.nodeType===9?g.body:g.nodeName==="HTML"?g.ownerDocument.body:g,f.appendChild(u),g=g._reactRootContainer,g!=null||f.onclick!==null||(f.onclick=W0));else if(b!==4&&(b===27&&yo(u.type)&&(g=u.stateNode,f=null),u=u.child,u!==null))for(ys(u,f,g),u=u.sibling;u!==null;)ys(u,f,g),u=u.sibling}function Ac(u,f,g){var b=u.tag;if(b===5||b===6)u=u.stateNode,f?g.insertBefore(u,f):g.appendChild(u);else if(b!==4&&(b===27&&yo(u.type)&&(g=u.stateNode),u=u.child,u!==null))for(Ac(u,f,g),u=u.sibling;u!==null;)Ac(u,f,g),u=u.sibling}function p4(u){var f=u.stateNode,g=u.memoizedProps;try{for(var b=u.type,A=f.attributes;A.length;)f.removeAttributeNode(A[0]);Ue(f,b,g),f[vn]=u,f[Qt]=g}catch(D){kr(u,u.return,D)}}var Ks=!1,vi=!1,Qv=!1,g_=typeof WeakSet=="function"?WeakSet:Set,Mi=null;function g4(u,f){if(u=u.containerInfo,$_=og,u=s0(u),fv(u)){if("selectionStart"in u)var g={start:u.selectionStart,end:u.selectionEnd};else e:{g=(g=u.ownerDocument)&&g.defaultView||window;var b=g.getSelection&&g.getSelection();if(b&&b.rangeCount!==0){g=b.anchorNode;var A=b.anchorOffset,D=b.focusNode;b=b.focusOffset;try{g.nodeType,D.nodeType}catch{g=null;break e}var j=0,K=-1,ge=-1,Me=0,Xe=0,nt=u,Le=null;t:for(;;){for(var Pe;nt!==g||A!==0&&nt.nodeType!==3||(K=j+A),nt!==D||b!==0&&nt.nodeType!==3||(ge=j+b),nt.nodeType===3&&(j+=nt.nodeValue.length),(Pe=nt.firstChild)!==null;)Le=nt,nt=Pe;for(;;){if(nt===u)break t;if(Le===g&&++Me===A&&(K=j),Le===D&&++Xe===b&&(ge=j),(Pe=nt.nextSibling)!==null)break;nt=Le,Le=nt.parentNode}nt=Pe}g=K===-1||ge===-1?null:{start:K,end:ge}}else g=null}g=g||{start:0,end:0}}else g=null;for(X0={focusedElem:u,selectionRange:g},og=!1,Mi=f;Mi!==null;)if(f=Mi,u=f.child,(f.subtreeFlags&1024)!==0&&u!==null)u.return=f,Mi=u;else for(;Mi!==null;){switch(f=Mi,D=f.alternate,u=f.flags,f.tag){case 0:break;case 11:case 15:break;case 1:if((u&1024)!==0&&D!==null){u=void 0,g=f,A=D.memoizedProps,D=D.memoizedState,b=g.stateNode;try{var rn=vs(g.type,A,g.elementType===g.type);u=b.getSnapshotBeforeUpdate(rn,D),b.__reactInternalSnapshotBeforeUpdate=u}catch(Jt){kr(g,g.return,Jt)}}break;case 3:if((u&1024)!==0){if(u=f.stateNode.containerInfo,g=u.nodeType,g===9)J0(u);else if(g===1)switch(u.nodeName){case"HEAD":case"HTML":case"BODY":J0(u);break;default:u.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((u&1024)!==0)throw Error(r(163))}if(u=f.sibling,u!==null){u.return=f.return,Mi=u;break}Mi=f.return}}function Kv(u,f,g){var b=g.flags;switch(g.tag){case 0:case 11:case 15:xu(u,g),b&4&&Dh(5,g);break;case 1:if(xu(u,g),b&4)if(u=g.stateNode,f===null)try{u.componentDidMount()}catch(j){kr(g,g.return,j)}else{var A=vs(g.type,f.memoizedProps);f=f.memoizedState;try{u.componentDidUpdate(A,f,u.__reactInternalSnapshotBeforeUpdate)}catch(j){kr(g,g.return,j)}}b&64&&d4(g),b&512&&Mh(g,g.return);break;case 3:if(xu(u,g),b&64&&(u=g.updateQueue,u!==null)){if(f=null,g.child!==null)switch(g.child.tag){case 27:case 5:f=g.child.stateNode;break;case 1:f=g.child.stateNode}try{Ev(u,f)}catch(j){kr(g,g.return,j)}}break;case 27:f===null&&b&4&&p4(g);case 26:case 5:xu(u,g),f===null&&b&4&&h_(g),b&512&&Mh(g,g.return);break;case 12:xu(u,g);break;case 13:xu(u,g),b&4&&In(u,g),b&64&&(u=g.memoizedState,u!==null&&(u=u.dehydrated,u!==null&&(g=k4.bind(null,g),z_(u,g))));break;case 22:if(b=g.memoizedState!==null||Ks,!b){f=f!==null&&f.memoizedState!==null||vi,A=Ks;var D=vi;Ks=b,(vi=f)&&!D?qr(u,g,(g.subtreeFlags&8772)!==0):xu(u,g),Ks=A,vi=D}break;case 30:break;default:xu(u,g)}}function m_(u){var f=u.alternate;f!==null&&(u.alternate=null,m_(f)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(f=u.stateNode,f!==null&&$t(f)),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}var Pr=null,Sa=!1;function xs(u,f,g){for(g=g.child;g!==null;)v_(u,f,g),g=g.sibling}function v_(u,f,g){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(ye,g)}catch{}switch(g.tag){case 26:vi||Qs(g,f),xs(u,f,g),g.memoizedState?g.memoizedState.count--:g.stateNode&&(g=g.stateNode,g.parentNode.removeChild(g));break;case 27:vi||Qs(g,f);var b=Pr,A=Sa;yo(g.type)&&(Pr=g.stateNode,Sa=!1),xs(u,f,g),Rt(g.stateNode),Pr=b,Sa=A;break;case 5:vi||Qs(g,f);case 6:if(b=Pr,A=Sa,Pr=null,xs(u,f,g),Pr=b,Sa=A,Pr!==null)if(Sa)try{(Pr.nodeType===9?Pr.body:Pr.nodeName==="HTML"?Pr.ownerDocument.body:Pr).removeChild(g.stateNode)}catch(D){kr(g,f,D)}else try{Pr.removeChild(g.stateNode)}catch(D){kr(g,f,D)}break;case 18:Pr!==null&&(Sa?(u=Pr,M4(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,g.stateNode),Wh(u)):M4(Pr,g.stateNode));break;case 4:b=Pr,A=Sa,Pr=g.stateNode.containerInfo,Sa=!0,xs(u,f,g),Pr=b,Sa=A;break;case 0:case 11:case 14:case 15:vi||Ec(2,g,f),vi||Ec(4,g,f),xs(u,f,g);break;case 1:vi||(Qs(g,f),b=g.stateNode,typeof b.componentWillUnmount=="function"&&Zv(g,f,b)),xs(u,f,g);break;case 21:xs(u,f,g);break;case 22:vi=(b=vi)||g.memoizedState!==null,xs(u,f,g),vi=b;break;default:xs(u,f,g)}}function In(u,f){if(f.memoizedState===null&&(u=f.alternate,u!==null&&(u=u.memoizedState,u!==null&&(u=u.dehydrated,u!==null))))try{Wh(u)}catch(g){kr(f,f.return,g)}}function y_(u){switch(u.tag){case 13:case 19:var f=u.stateNode;return f===null&&(f=u.stateNode=new g_),f;case 22:return u=u.stateNode,f=u._retryCache,f===null&&(f=u._retryCache=new g_),f;default:throw Error(r(435,u.tag))}}function U0(u,f){var g=y_(u);f.forEach(function(b){var A=D8.bind(null,u,b);g.has(b)||(g.add(b),b.then(A,A))})}function wa(u,f){var g=f.deletions;if(g!==null)for(var b=0;b<g.length;b++){var A=g[b],D=u,j=f,K=j;e:for(;K!==null;){switch(K.tag){case 27:if(yo(K.type)){Pr=K.stateNode,Sa=!1;break e}break;case 5:Pr=K.stateNode,Sa=!1;break e;case 3:case 4:Pr=K.stateNode.containerInfo,Sa=!0;break e}K=K.return}if(Pr===null)throw Error(r(160));v_(D,j,A),Pr=null,Sa=!1,D=A.alternate,D!==null&&(D.return=null),A.return=null}if(f.subtreeFlags&13878)for(f=f.child;f!==null;)Ih(f,u),f=f.sibling}var ja=null;function Ih(u,f){var g=u.alternate,b=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:wa(f,u),Io(u),b&4&&(Ec(3,u,u.return),Dh(3,u),Ec(5,u,u.return));break;case 1:wa(f,u),Io(u),b&512&&(vi||g===null||Qs(g,g.return)),b&64&&Ks&&(u=u.updateQueue,u!==null&&(b=u.callbacks,b!==null&&(g=u.shared.hiddenCallbacks,u.shared.hiddenCallbacks=g===null?b:g.concat(b))));break;case 26:var A=ja;if(wa(f,u),Io(u),b&512&&(vi||g===null||Qs(g,g.return)),b&4){var D=g!==null?g.memoizedState:null;if(b=u.memoizedState,g===null)if(b===null)if(u.stateNode===null){e:{b=u.type,g=u.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":D=A.getElementsByTagName("title")[0],(!D||D[pi]||D[vn]||D.namespaceURI==="http://www.w3.org/2000/svg"||D.hasAttribute("itemprop"))&&(D=A.createElement(b),A.head.insertBefore(D,A.querySelector("head > title"))),Ue(D,b,g),D[vn]=u,rr(D),b=D;break e;case"link":var j=Yh("link","href",A).get(b+(g.href||""));if(j){for(var K=0;K<j.length;K++)if(D=j[K],D.getAttribute("href")===(g.href==null||g.href===""?null:g.href)&&D.getAttribute("rel")===(g.rel==null?null:g.rel)&&D.getAttribute("title")===(g.title==null?null:g.title)&&D.getAttribute("crossorigin")===(g.crossOrigin==null?null:g.crossOrigin)){j.splice(K,1);break t}}D=A.createElement(b),Ue(D,b,g),A.head.appendChild(D);break;case"meta":if(j=Yh("meta","content",A).get(b+(g.content||""))){for(K=0;K<j.length;K++)if(D=j[K],D.getAttribute("content")===(g.content==null?null:""+g.content)&&D.getAttribute("name")===(g.name==null?null:g.name)&&D.getAttribute("property")===(g.property==null?null:g.property)&&D.getAttribute("http-equiv")===(g.httpEquiv==null?null:g.httpEquiv)&&D.getAttribute("charset")===(g.charSet==null?null:g.charSet)){j.splice(K,1);break t}}D=A.createElement(b),Ue(D,b,g),A.head.appendChild(D);break;default:throw Error(r(468,b))}D[vn]=u,rr(D),b=D}u.stateNode=b}else H_(A,u.type,u.stateNode);else u.stateNode=Sy(A,b,u.memoizedProps);else D!==b?(D===null?g.stateNode!==null&&(g=g.stateNode,g.parentNode.removeChild(g)):D.count--,b===null?H_(A,u.type,u.stateNode):Sy(A,b,u.memoizedProps)):b===null&&u.stateNode!==null&&Vf(u,u.memoizedProps,g.memoizedProps)}break;case 27:wa(f,u),Io(u),b&512&&(vi||g===null||Qs(g,g.return)),g!==null&&b&4&&Vf(u,u.memoizedProps,g.memoizedProps);break;case 5:if(wa(f,u),Io(u),b&512&&(vi||g===null||Qs(g,g.return)),u.flags&32){A=u.stateNode;try{xf(A,"")}catch(Pe){kr(u,u.return,Pe)}}b&4&&u.stateNode!=null&&(A=u.memoizedProps,Vf(u,A,g!==null?g.memoizedProps:A)),b&1024&&(Qv=!0);break;case 6:if(wa(f,u),Io(u),b&4){if(u.stateNode===null)throw Error(r(162));b=u.memoizedProps,g=u.stateNode;try{g.nodeValue=b}catch(Pe){kr(u,u.return,Pe)}}break;case 3:if(ng=null,A=ja,ja=no(f.containerInfo),wa(f,u),ja=A,Io(u),b&4&&g!==null&&g.memoizedState.isDehydrated)try{Wh(f.containerInfo)}catch(Pe){kr(u,u.return,Pe)}Qv&&(Qv=!1,Yf(u));break;case 4:b=ja,ja=no(u.stateNode.containerInfo),wa(f,u),Io(u),ja=b;break;case 12:wa(f,u),Io(u);break;case 13:wa(f,u),Io(u),u.child.flags&8192&&u.memoizedState!==null!=(g!==null&&g.memoizedState!==null)&&(C_=ne()),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,U0(u,b)));break;case 22:A=u.memoizedState!==null;var ge=g!==null&&g.memoizedState!==null,Me=Ks,Xe=vi;if(Ks=Me||A,vi=Xe||ge,wa(f,u),vi=Xe,Ks=Me,Io(u),b&8192)e:for(f=u.stateNode,f._visibility=A?f._visibility&-2:f._visibility|1,A&&(g===null||ge||Ks||vi||bu(u)),g=null,f=u;;){if(f.tag===5||f.tag===26){if(g===null){ge=g=f;try{if(D=ge.stateNode,A)j=D.style,typeof j.setProperty=="function"?j.setProperty("display","none","important"):j.display="none";else{K=ge.stateNode;var nt=ge.memoizedProps.style,Le=nt!=null&&nt.hasOwnProperty("display")?nt.display:null;K.style.display=Le==null||typeof Le=="boolean"?"":(""+Le).trim()}}catch(Pe){kr(ge,ge.return,Pe)}}}else if(f.tag===6){if(g===null){ge=f;try{ge.stateNode.nodeValue=A?"":ge.memoizedProps}catch(Pe){kr(ge,ge.return,Pe)}}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===u)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===u)break e;for(;f.sibling===null;){if(f.return===null||f.return===u)break e;g===f&&(g=null),f=f.return}g===f&&(g=null),f.sibling.return=f.return,f=f.sibling}b&4&&(b=u.updateQueue,b!==null&&(g=b.retryQueue,g!==null&&(b.retryQueue=null,U0(u,g))));break;case 19:wa(f,u),Io(u),b&4&&(b=u.updateQueue,b!==null&&(u.updateQueue=null,U0(u,b)));break;case 30:break;case 21:break;default:wa(f,u),Io(u)}}function Io(u){var f=u.flags;if(f&2){try{for(var g,b=u.return;b!==null;){if(h4(b)){g=b;break}b=b.return}if(g==null)throw Error(r(160));switch(g.tag){case 27:var A=g.stateNode,D=p_(u);Ac(u,D,A);break;case 5:var j=g.stateNode;g.flags&32&&(xf(j,""),g.flags&=-33);var K=p_(u);Ac(u,K,j);break;case 3:case 4:var ge=g.stateNode.containerInfo,Me=p_(u);ys(u,Me,ge);break;default:throw Error(r(161))}}catch(Xe){kr(u,u.return,Xe)}u.flags&=-3}f&4096&&(u.flags&=-4097)}function Yf(u){if(u.subtreeFlags&1024)for(u=u.child;u!==null;){var f=u;Yf(f),f.tag===5&&f.flags&1024&&f.stateNode.reset(),u=u.sibling}}function xu(u,f){if(f.subtreeFlags&8772)for(f=f.child;f!==null;)Kv(u,f.alternate,f),f=f.sibling}function bu(u){for(u=u.child;u!==null;){var f=u;switch(f.tag){case 0:case 11:case 14:case 15:Ec(4,f,f.return),bu(f);break;case 1:Qs(f,f.return);var g=f.stateNode;typeof g.componentWillUnmount=="function"&&Zv(f,f.return,g),bu(f);break;case 27:Rt(f.stateNode);case 26:case 5:Qs(f,f.return),bu(f);break;case 22:f.memoizedState===null&&bu(f);break;case 30:bu(f);break;default:bu(f)}u=u.sibling}}function qr(u,f,g){for(g=g&&(f.subtreeFlags&8772)!==0,f=f.child;f!==null;){var b=f.alternate,A=u,D=f,j=D.flags;switch(D.tag){case 0:case 11:case 15:qr(A,D,g),Dh(4,D);break;case 1:if(qr(A,D,g),b=D,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(Me){kr(b,b.return,Me)}if(b=D,A=b.updateQueue,A!==null){var K=b.stateNode;try{var ge=A.shared.hiddenCallbacks;if(ge!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ge.length;A++)xh(ge[A],K)}catch(Me){kr(b,b.return,Me)}}g&&j&64&&d4(D),Mh(D,D.return);break;case 27:p4(D);case 26:case 5:qr(A,D,g),g&&b===null&&j&4&&h_(D),Mh(D,D.return);break;case 12:qr(A,D,g);break;case 13:qr(A,D,g),g&&j&4&&In(A,D);break;case 22:D.memoizedState===null&&qr(A,D,g),Mh(D,D.return);break;case 30:break;default:qr(A,D,g)}f=f.sibling}}function x_(u,f){var g=null;u!==null&&u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),u=null,f.memoizedState!==null&&f.memoizedState.cachePool!==null&&(u=f.memoizedState.cachePool.pool),u!==g&&(u!=null&&u.refCount++,g!=null&&xc(g))}function bs(u,f){u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&xc(u))}function Ws(u,f,g,b){if(f.subtreeFlags&10256)for(f=f.child;f!==null;)_u(u,f,g,b),f=f.sibling}function _u(u,f,g,b){var A=f.flags;switch(f.tag){case 0:case 11:case 15:Ws(u,f,g,b),A&2048&&Dh(9,f);break;case 1:Ws(u,f,g,b);break;case 3:Ws(u,f,g,b),A&2048&&(u=null,f.alternate!==null&&(u=f.alternate.memoizedState.cache),f=f.memoizedState.cache,f!==u&&(f.refCount++,u!=null&&xc(u)));break;case 12:if(A&2048){Ws(u,f,g,b),u=f.stateNode;try{var D=f.memoizedProps,j=D.id,K=D.onPostCommit;typeof K=="function"&&K(j,f.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(ge){kr(f,f.return,ge)}}else Ws(u,f,g,b);break;case 13:Ws(u,f,g,b);break;case 23:break;case 22:D=f.stateNode,j=f.alternate,f.memoizedState!==null?D._visibility&2?Ws(u,f,g,b):kc(u,f):D._visibility&2?Ws(u,f,g,b):(D._visibility|=2,Zf(u,f,g,b,(f.subtreeFlags&10256)!==0)),A&2048&&x_(j,f);break;case 24:Ws(u,f,g,b),A&2048&&bs(f.alternate,f);break;default:Ws(u,f,g,b)}}function Zf(u,f,g,b,A){for(A=A&&(f.subtreeFlags&10256)!==0,f=f.child;f!==null;){var D=u,j=f,K=g,ge=b,Me=j.flags;switch(j.tag){case 0:case 11:case 15:Zf(D,j,K,ge,A),Dh(8,j);break;case 23:break;case 22:var Xe=j.stateNode;j.memoizedState!==null?Xe._visibility&2?Zf(D,j,K,ge,A):kc(D,j):(Xe._visibility|=2,Zf(D,j,K,ge,A)),A&&Me&2048&&x_(j.alternate,j);break;case 24:Zf(D,j,K,ge,A),A&&Me&2048&&bs(j.alternate,j);break;default:Zf(D,j,K,ge,A)}f=f.sibling}}function kc(u,f){if(f.subtreeFlags&10256)for(f=f.child;f!==null;){var g=u,b=f,A=b.flags;switch(b.tag){case 22:kc(g,b),A&2048&&x_(b.alternate,b);break;case 24:kc(g,b),A&2048&&bs(b.alternate,b);break;default:kc(g,b)}f=f.sibling}}var ir=8192;function Tc(u){if(u.subtreeFlags&ir)for(u=u.child;u!==null;)to(u),u=u.sibling}function to(u){switch(u.tag){case 26:Tc(u),u.flags&ir&&u.memoizedState!==null&&B4(ja,u.memoizedState,u.memoizedProps);break;case 5:Tc(u);break;case 3:case 4:var f=ja;ja=no(u.stateNode.containerInfo),Tc(u),ja=f;break;case 22:u.memoizedState===null&&(f=u.alternate,f!==null&&f.memoizedState!==null?(f=ir,ir=16777216,Tc(u),ir=f):Tc(u));break;default:Tc(u)}}function m4(u){var f=u.alternate;if(f!==null&&(u=f.child,u!==null)){f.child=null;do f=u.sibling,u.sibling=null,u=f;while(u!==null)}}function $h(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Mi=b,Ha(b,u)}m4(u)}if(u.subtreeFlags&10256)for(u=u.child;u!==null;)Wv(u),u=u.sibling}function Wv(u){switch(u.tag){case 0:case 11:case 15:$h(u),u.flags&2048&&Ec(9,u,u.return);break;case 3:$h(u);break;case 12:$h(u);break;case 22:var f=u.stateNode;u.memoizedState!==null&&f._visibility&2&&(u.return===null||u.return.tag!==13)?(f._visibility&=-3,j0(u)):$h(u);break;default:$h(u)}}function j0(u){var f=u.deletions;if((u.flags&16)!==0){if(f!==null)for(var g=0;g<f.length;g++){var b=f[g];Mi=b,Ha(b,u)}m4(u)}for(u=u.child;u!==null;){switch(f=u,f.tag){case 0:case 11:case 15:Ec(8,f,f.return),j0(f);break;case 22:g=f.stateNode,g._visibility&2&&(g._visibility&=-3,j0(f));break;default:j0(f)}u=u.sibling}}function Ha(u,f){for(;Mi!==null;){var g=Mi;switch(g.tag){case 0:case 11:case 15:Ec(8,g,f);break;case 23:case 22:if(g.memoizedState!==null&&g.memoizedState.cachePool!==null){var b=g.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:xc(g.memoizedState.cache)}if(b=g.child,b!==null)b.return=g,Mi=b;else e:for(g=u;Mi!==null;){b=Mi;var A=b.sibling,D=b.return;if(m_(b),b===g){Mi=null;break e}if(A!==null){A.return=D,Mi=A;break e}Mi=D}}}var v4={getCacheForType:function(u){var f=mo(Oi),g=f.data.get(u);return g===void 0&&(g=u(),f.data.set(u,g)),g}},b_=typeof WeakMap=="function"?WeakMap:Map,vr=0,Ar=null,$n=null,Qn=0,or=0,Ca=null,Su=!1,Rc=!1,__=!1,wu=0,yi=0,Oc=0,Dc=0,S_=0,Pi=0,Bh=0,H0=null,Yo=null,w_=!1,C_=0,Xv=1/0,Jv=null,El=null,vo=0,Mc=null,Ic=null,Lh=0,Ea=0,ey=null,E_=null,Nh=0,ty=null;function Pa(){if((vr&2)!==0&&Qn!==0)return Qn&-Qn;if(ee.T!==null){var u=bc;return u!==0?u:fy()}return Pn()}function y4(){Pi===0&&(Pi=(Qn&536870912)===0||Cn?we():536870912);var u=Di.current;return u!==null&&(u.flags|=32),Pi}function Aa(u,f,g){(u===Ar&&(or===2||or===9)||u.cancelPendingCommit!==null)&&(Xs(u,0),Cu(u,Qn,Pi,!1)),xt(u,g),((vr&2)===0||u!==Ar)&&(u===Ar&&((vr&2)===0&&(Dc|=g),yi===4&&Cu(u,Qn,Pi,!1)),Js(u))}function x4(u,f,g){if((vr&6)!==0)throw Error(r(327));var b=!g&&(f&124)===0&&(f&u.expiredLanes)===0||vt(u,f),A=b?ry(u,f):Qf(u,f,!0),D=b;do{if(A===0){Rc&&!b&&Cu(u,f,0,!1);break}else{if(g=u.current.alternate,D&&!ny(g)){A=Qf(u,f,!1),D=!1;continue}if(A===2){if(D=f,u.errorRecoveryDisabledLanes&D)var j=0;else j=u.pendingLanes&-536870913,j=j!==0?j:j&536870912?536870912:0;if(j!==0){f=j;e:{var K=u;A=H0;var ge=K.current.memoizedState.isDehydrated;if(ge&&(Xs(K,j).flags|=256),j=Qf(K,j,!1),j!==2){if(__&&!ge){K.errorRecoveryDisabledLanes|=D,Dc|=D,A=4;break e}D=Yo,Yo=A,D!==null&&(Yo===null?Yo=D:Yo.push.apply(Yo,D))}A=j}if(D=!1,A!==2)continue}}if(A===1){Xs(u,0),Cu(u,f,0,!0);break}e:{switch(b=u,D=A,D){case 0:case 1:throw Error(r(345));case 4:if((f&4194048)!==f)break;case 6:Cu(b,f,Pi,!Su);break e;case 2:Yo=null;break;case 3:case 5:break;default:throw Error(r(329))}if((f&62914560)===f&&(A=C_+300-ne(),10<A)){if(Cu(b,f,Pi,!Su),jt(b,0,!0)!==0)break e;b.timeoutHandle=Tl(zh.bind(null,b,g,Yo,Jv,w_,f,Pi,Dc,Bh,Su,D,2,-0,0),A);break e}zh(b,g,Yo,Jv,w_,f,Pi,Dc,Bh,Su,D,0,-0,0)}}break}while(!0);Js(u)}function zh(u,f,g,b,A,D,j,K,ge,Me,Xe,nt,Le,Pe){if(u.timeoutHandle=-1,nt=f.subtreeFlags,(nt&8192||(nt&16785408)===16785408)&&(Zh={stylesheets:null,count:0,unsuspend:$4},to(f),nt=L4(),nt!==null)){u.cancelPendingCommit=nt(S4.bind(null,u,f,D,g,b,A,j,K,ge,Xe,1,Le,Pe)),Cu(u,D,j,!Me);return}S4(u,f,D,g,b,A,j,K,ge)}function ny(u){for(var f=u;;){var g=f.tag;if((g===0||g===11||g===15)&&f.flags&16384&&(g=f.updateQueue,g!==null&&(g=g.stores,g!==null)))for(var b=0;b<g.length;b++){var A=g[b],D=A.getSnapshot;A=A.value;try{if(!qo(D(),A))return!1}catch{return!1}}if(g=f.child,f.subtreeFlags&16384&&g!==null)g.return=f,f=g;else{if(f===u)break;for(;f.sibling===null;){if(f.return===null||f.return===u)return!0;f=f.return}f.sibling.return=f.return,f=f.sibling}}return!0}function Cu(u,f,g,b){f&=~S_,f&=~Dc,u.suspendedLanes|=f,u.pingedLanes&=~f,b&&(u.warmLanes|=f),b=u.expirationTimes;for(var A=f;0<A;){var D=31-yt(A),j=1<<D;b[D]=-1,A&=~j}g!==0&&Lt(u,g,f)}function P0(){return(vr&6)===0?(Eu(0),!1):!0}function Fh(){if($n!==null){if(or===0)var u=$n.return;else u=$n,Hs=cu=null,_h(u),xa=null,Eh=0,u=$n;for(;u!==null;)f4(u.alternate,u),u=u.return;$n=null}}function Xs(u,f){var g=u.timeoutHandle;g!==-1&&(u.timeoutHandle=-1,B_(g)),g=u.cancelPendingCommit,g!==null&&(u.cancelPendingCommit=null,g()),Fh(),Ar=u,$n=g=zs(u.current,null),Qn=f,or=0,Ca=null,Su=!1,Rc=vt(u,f),__=!1,Bh=Pi=S_=Dc=Oc=yi=0,Yo=H0=null,w_=!1,(f&8)!==0&&(f|=f&32);var b=u.entangledLanes;if(b!==0)for(u=u.entanglements,b&=f;0<b;){var A=31-yt(b),D=1<<A;f|=u[A],b&=~D}return wu=f,Ls(),g}function Uh(u,f){hn=null,ee.H=$0,f===Bf||f===gh?(f=wv(),or=3):f===y0?(f=wv(),or=4):or=f===r_?8:f!==null&&typeof f=="object"&&typeof f.then=="function"?6:1,Ca=f,$n===null&&(yi=1,Pf(u,Na(f,u.current)))}function A_(){var u=ee.H;return ee.H=$0,u===null?$0:u}function b4(){var u=ee.A;return ee.A=v4,u}function $c(){yi=4,Su||(Qn&4194048)!==Qn&&Di.current!==null||(Rc=!0),(Oc&134217727)===0&&(Dc&134217727)===0||Ar===null||Cu(Ar,Qn,Pi,!1)}function Qf(u,f,g){var b=vr;vr|=2;var A=A_(),D=b4();(Ar!==u||Qn!==f)&&(Jv=null,Xs(u,f)),f=!1;var j=yi;e:do try{if(or!==0&&$n!==null){var K=$n,ge=Ca;switch(or){case 8:Fh(),j=6;break e;case 3:case 2:case 9:case 6:Di.current===null&&(f=!0);var Me=or;if(or=0,Ca=null,Kf(u,K,ge,Me),g&&Rc){j=0;break e}break;default:Me=or,or=0,Ca=null,Kf(u,K,ge,Me)}}_4(),j=yi;break}catch(Xe){Uh(u,Xe)}while(!0);return f&&u.shellSuspendCounter++,Hs=cu=null,vr=b,ee.H=A,ee.A=D,$n===null&&(Ar=null,Qn=0,Ls()),j}function _4(){for(;$n!==null;)iy($n)}function ry(u,f){var g=vr;vr|=2;var b=A_(),A=b4();Ar!==u||Qn!==f?(Jv=null,Xv=ne()+500,Xs(u,f)):Rc=vt(u,f);e:do try{if(or!==0&&$n!==null){f=$n;var D=Ca;t:switch(or){case 1:or=0,Ca=null,Kf(u,f,D,1);break;case 2:case 9:if(Eb(D)){or=0,Ca=null,T_(f);break}f=function(){or!==2&&or!==9||Ar!==u||(or=7),Js(u)},D.then(f,f);break e;case 3:or=7;break e;case 4:or=5;break e;case 7:Eb(D)?(or=0,Ca=null,T_(f)):(or=0,Ca=null,Kf(u,f,D,7));break;case 5:var j=null;switch($n.tag){case 26:j=$n.memoizedState;case 5:case 27:var K=$n;if(!j||P_(j)){or=0,Ca=null;var ge=K.sibling;if(ge!==null)$n=ge;else{var Me=K.return;Me!==null?($n=Me,oy(Me)):$n=null}break t}}or=0,Ca=null,Kf(u,f,D,5);break;case 6:or=0,Ca=null,Kf(u,f,D,6);break;case 8:Fh(),yi=6;break e;default:throw Error(r(462))}}k_();break}catch(Xe){Uh(u,Xe)}while(!0);return Hs=cu=null,ee.H=b,ee.A=A,vr=g,$n!==null?0:(Ar=null,Qn=0,Ls(),yi)}function k_(){for(;$n!==null&&!bt();)iy($n)}function iy(u){var f=c_(u.alternate,u,wu);u.memoizedProps=u.pendingProps,f===null?oy(u):$n=f}function T_(u){var f=u,g=f.alternate;switch(f.tag){case 15:case 0:f=o_(g,f,f.pendingProps,f.type,void 0,Qn);break;case 11:f=o_(g,f,f.pendingProps,f.type.render,f.ref,Qn);break;case 5:_h(f);default:f4(g,f),f=$n=mv(f,wu),f=c_(g,f,wu)}u.memoizedProps=u.pendingProps,f===null?oy(u):$n=f}function Kf(u,f,g,b){Hs=cu=null,_h(f),xa=null,Eh=0;var A=f.return;try{if(Ua(u,A,f,g,Qn)){yi=1,Pf(u,Na(g,u.current)),$n=null;return}}catch(D){if(A!==null)throw $n=A,D;yi=1,Pf(u,Na(g,u.current)),$n=null;return}f.flags&32768?(Cn||b===1?u=!0:Rc||(Qn&536870912)!==0?u=!1:(Su=u=!0,(b===2||b===9||b===3||b===6)&&(b=Di.current,b!==null&&b.tag===13&&(b.flags|=16384))),R_(f,u)):oy(f)}function oy(u){var f=u;do{if((f.flags&32768)!==0){R_(f,Su);return}u=f.return;var g=Er(f.alternate,f,wu);if(g!==null){$n=g;return}if(f=f.sibling,f!==null){$n=f;return}$n=f=u}while(f!==null);yi===0&&(yi=5)}function R_(u,f){do{var g=d_(u.alternate,u);if(g!==null){g.flags&=32767,$n=g;return}if(g=u.return,g!==null&&(g.flags|=32768,g.subtreeFlags=0,g.deletions=null),!f&&(u=u.sibling,u!==null)){$n=u;return}$n=u=g}while(u!==null);yi=6,$n=null}function S4(u,f,g,b,A,D,j,K,ge){u.cancelPendingCommit=null;do sy();while(vo!==0);if((vr&6)!==0)throw Error(r(327));if(f!==null){if(f===u.current)throw Error(r(177));if(D=f.lanes|f.childLanes,D|=u0,Vt(u,g,D,j,K,ge),u===Ar&&($n=Ar=null,Qn=0),Ic=f,Mc=u,Lh=g,Ea=D,ey=A,E_=b,(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?(u.callbackNode=null,u.callbackPriority=0,M8(be,function(){return E4(),null})):(u.callbackNode=null,u.callbackPriority=0),b=(f.flags&13878)!==0,(f.subtreeFlags&13878)!==0||b){b=ee.T,ee.T=null,A=se.p,se.p=2,j=vr,vr|=4;try{g4(u,f,g)}finally{vr=j,se.p=A,ee.T=b}}vo=1,w4(),C4(),q0()}}function w4(){if(vo===1){vo=0;var u=Mc,f=Ic,g=(f.flags&13878)!==0;if((f.subtreeFlags&13878)!==0||g){g=ee.T,ee.T=null;var b=se.p;se.p=2;var A=vr;vr|=4;try{Ih(f,u);var D=X0,j=s0(u.containerInfo),K=D.focusedElem,ge=D.selectionRange;if(j!==K&&K&&K.ownerDocument&&jr(K.ownerDocument.documentElement,K)){if(ge!==null&&fv(K)){var Me=ge.start,Xe=ge.end;if(Xe===void 0&&(Xe=Me),"selectionStart"in K)K.selectionStart=Me,K.selectionEnd=Math.min(Xe,K.value.length);else{var nt=K.ownerDocument||document,Le=nt&&nt.defaultView||window;if(Le.getSelection){var Pe=Le.getSelection(),rn=K.textContent.length,Jt=Math.min(ge.start,rn),hr=ge.end===void 0?Jt:Math.min(ge.end,rn);!Pe.extend&&Jt>hr&&(j=hr,hr=Jt,Jt=j);var De=dc(K,Jt),Ce=dc(K,hr);if(De&&Ce&&(Pe.rangeCount!==1||Pe.anchorNode!==De.node||Pe.anchorOffset!==De.offset||Pe.focusNode!==Ce.node||Pe.focusOffset!==Ce.offset)){var $e=nt.createRange();$e.setStart(De.node,De.offset),Pe.removeAllRanges(),Jt>hr?(Pe.addRange($e),Pe.extend(Ce.node,Ce.offset)):($e.setEnd(Ce.node,Ce.offset),Pe.addRange($e))}}}}for(nt=[],Pe=K;Pe=Pe.parentNode;)Pe.nodeType===1&&nt.push({element:Pe,left:Pe.scrollLeft,top:Pe.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K<nt.length;K++){var Je=nt[K];Je.element.scrollLeft=Je.left,Je.element.scrollTop=Je.top}}og=!!$_,X0=$_=null}finally{vr=A,se.p=b,ee.T=g}}u.current=f,vo=2}}function C4(){if(vo===2){vo=0;var u=Mc,f=Ic,g=(f.flags&8772)!==0;if((f.subtreeFlags&8772)!==0||g){g=ee.T,ee.T=null;var b=se.p;se.p=2;var A=vr;vr|=4;try{Kv(u,f.alternate,f)}finally{vr=A,se.p=b,ee.T=g}}vo=3}}function q0(){if(vo===4||vo===3){vo=0,zt();var u=Mc,f=Ic,g=Lh,b=E_;(f.subtreeFlags&10256)!==0||(f.flags&10256)!==0?vo=5:(vo=0,Ic=Mc=null,ay(u,u.pendingLanes));var A=u.pendingLanes;if(A===0&&(El=null),mn(g),f=f.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(ye,f,void 0,(f.current.flags&128)===128)}catch{}if(b!==null){f=ee.T,A=se.p,se.p=2,ee.T=null;try{for(var D=u.onRecoverableError,j=0;j<b.length;j++){var K=b[j];D(K.value,{componentStack:K.stack})}}finally{ee.T=f,se.p=A}}(Lh&3)!==0&&sy(),Js(u),A=u.pendingLanes,(g&4194090)!==0&&(A&42)!==0?u===ty?Nh++:(Nh=0,ty=u):Nh=0,Eu(0)}}function ay(u,f){(u.pooledCacheLanes&=f)===0&&(f=u.pooledCache,f!=null&&(u.pooledCache=null,xc(f)))}function sy(u){return w4(),C4(),q0(),E4()}function E4(){if(vo!==5)return!1;var u=Mc,f=Ea;Ea=0;var g=mn(Lh),b=ee.T,A=se.p;try{se.p=32>g?32:g,ee.T=null,g=ey,ey=null;var D=Mc,j=Lh;if(vo=0,Ic=Mc=null,Lh=0,(vr&6)!==0)throw Error(r(331));var K=vr;if(vr|=4,Wv(D.current),_u(D,D.current,j,g),vr=K,Eu(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(ye,D)}catch{}return!0}finally{se.p=A,ee.T=b,ay(u,f)}}function O_(u,f,g){f=Na(g,f),f=jv(u.stateNode,f,2),u=ma(u,f,2),u!==null&&(xt(u,2),Js(u))}function kr(u,f,g){if(u.tag===3)O_(u,u,g);else for(;f!==null;){if(f.tag===3){O_(f,u,g);break}else if(f.tag===1){var b=f.stateNode;if(typeof f.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(El===null||!El.has(b))){u=Na(g,u),g=s4(2),b=ma(f,g,2),b!==null&&(n_(g,b,f,u),xt(b,2),Js(b));break}}f=f.return}}function G0(u,f,g){var b=u.pingCache;if(b===null){b=u.pingCache=new b_;var A=new Set;b.set(f,A)}else A=b.get(f),A===void 0&&(A=new Set,b.set(f,A));A.has(g)||(__=!0,A.add(g),u=A4.bind(null,u,f,g),f.then(u,u))}function A4(u,f,g){var b=u.pingCache;b!==null&&b.delete(f),u.pingedLanes|=u.suspendedLanes&g,u.warmLanes&=~g,Ar===u&&(Qn&g)===g&&(yi===4||yi===3&&(Qn&62914560)===Qn&&300>ne()-C_?(vr&2)===0&&Xs(u,0):S_|=g,Bh===Qn&&(Bh=0)),Js(u)}function ly(u,f){f===0&&(f=tt()),u=su(u,f),u!==null&&(xt(u,f),Js(u))}function k4(u){var f=u.memoizedState,g=0;f!==null&&(g=f.retryLane),ly(u,g)}function D8(u,f){var g=0;switch(u.tag){case 13:var b=u.stateNode,A=u.memoizedState;A!==null&&(g=A.retryLane);break;case 19:b=u.stateNode;break;case 22:b=u.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(f),ly(u,g)}function M8(u,f){return At(u,f)}var uy=null,jh=null,V0=!1,Hh=!1,Y0=!1,Bc=0;function Js(u){u!==jh&&u.next===null&&(jh===null?uy=jh=u:jh=jh.next=u),Hh=!0,V0||(V0=!0,cy())}function Eu(u,f){if(!Y0&&Hh){Y0=!0;do for(var g=!1,b=uy;b!==null;){if(u!==0){var A=b.pendingLanes;if(A===0)var D=0;else{var j=b.suspendedLanes,K=b.pingedLanes;D=(1<<31-yt(42|u)+1)-1,D&=A&~(j&~K),D=D&201326741?D&201326741|1:D?D|2:0}D!==0&&(g=!0,T4(b,D))}else D=Qn,D=jt(b,b===Ar?D:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(D&3)===0||vt(b,D)||(g=!0,T4(b,D));b=b.next}while(g);Y0=!1}}function I8(){D_()}function D_(){Hh=V0=!1;var u=0;Bc!==0&&(yy()&&(u=Bc),Bc=0);for(var f=ne(),g=null,b=uy;b!==null;){var A=b.next,D=Z0(b,f);D===0?(b.next=null,g===null?uy=A:g.next=A,A===null&&(jh=g)):(g=b,(u!==0||(D&3)!==0)&&(Hh=!0)),b=A}Eu(u)}function Z0(u,f){for(var g=u.suspendedLanes,b=u.pingedLanes,A=u.expirationTimes,D=u.pendingLanes&-62914561;0<D;){var j=31-yt(D),K=1<<j,ge=A[j];ge===-1?((K&g)===0||(K&b)!==0)&&(A[j]=G(K,f)):ge<=f&&(u.expiredLanes|=K),D&=~K}if(f=Ar,g=Qn,g=jt(u,u===f?g:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b=u.callbackNode,g===0||u===f&&(or===2||or===9)||u.cancelPendingCommit!==null)return b!==null&&b!==null&>(b),u.callbackNode=null,u.callbackPriority=0;if((g&3)===0||vt(u,g)){if(f=g&-g,f===u.callbackPriority)return f;switch(b!==null&>(b),mn(g)){case 2:case 8:g=Fe;break;case 32:g=be;break;case 268435456:g=at;break;default:g=be}return b=M_.bind(null,u),g=At(g,b),u.callbackPriority=f,u.callbackNode=g,f}return b!==null&&b!==null&>(b),u.callbackPriority=2,u.callbackNode=null,2}function M_(u,f){if(vo!==0&&vo!==5)return u.callbackNode=null,u.callbackPriority=0,null;var g=u.callbackNode;if(sy()&&u.callbackNode!==g)return null;var b=Qn;return b=jt(u,u===Ar?b:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),b===0?null:(x4(u,b,f),Z0(u,ne()),u.callbackNode!=null&&u.callbackNode===g?M_.bind(null,u):null)}function T4(u,f){if(sy())return null;x4(u,f,!0)}function cy(){L8(function(){(vr&6)!==0?At(_e,I8):D_()})}function fy(){return Bc===0&&(Bc=we()),Bc}function Ph(u){return u==null||typeof u=="symbol"||typeof u=="boolean"?null:typeof u=="function"?u:Xp(""+u)}function dy(u,f){var g=f.ownerDocument.createElement("input");return g.name=f.name,g.value=f.value,u.id&&g.setAttribute("form",u.id),f.parentNode.insertBefore(g,f),u=new FormData(u),g.parentNode.removeChild(g),u}function hy(u,f,g,b,A){if(f==="submit"&&g&&g.stateNode===A){var D=Ph((A[Qt]||null).action),j=b.submitter;j&&(f=(f=j[Qt]||null)?Ph(f.formAction):j.getAttribute("formAction"),f!==null&&(D=f,j=null));var K=new t0("action","action",null,b,A);u.push({event:K,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Bc!==0){var ge=j?dy(A,j):new FormData(A);Gb(g,{pending:!0,data:ge,method:A.method,action:D},null,ge)}}else typeof D=="function"&&(K.preventDefault(),ge=j?dy(A,j):new FormData(A),Gb(g,{pending:!0,data:ge,method:A.method,action:D},D,ge))},currentTarget:A}]})}}for(var py=0;py<pv.length;py++){var xi=pv[py],I_=xi.toLowerCase(),$8=xi[0].toUpperCase()+xi.slice(1);da(I_,"on"+$8)}da(l0,"onAnimationEnd"),da(KT,"onAnimationIteration"),da(gb,"onAnimationStart"),da("dblclick","onDoubleClick"),da("focusin","onFocus"),da("focusout","onBlur"),da(k8,"onTransitionRun"),da(mb,"onTransitionStart"),da(hv,"onTransitionCancel"),da(vb,"onTransitionEnd"),po("onMouseEnter",["mouseout","mouseover"]),po("onMouseLeave",["mouseout","mouseover"]),po("onPointerEnter",["pointerout","pointerover"]),po("onPointerLeave",["pointerout","pointerover"]),Bn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Bn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Bn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Bn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Bn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fn="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(" "),B8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fn));function Au(u,f){f=(f&4)!==0;for(var g=0;g<u.length;g++){var b=u[g],A=b.event;b=b.listeners;e:{var D=void 0;if(f)for(var j=b.length-1;0<=j;j--){var K=b[j],ge=K.instance,Me=K.currentTarget;if(K=K.listener,ge!==D&&A.isPropagationStopped())break e;D=K,A.currentTarget=Me;try{D(A)}catch(Xe){N0(Xe)}A.currentTarget=null,D=ge}else for(j=0;j<b.length;j++){if(K=b[j],ge=K.instance,Me=K.currentTarget,K=K.listener,ge!==D&&A.isPropagationStopped())break e;D=K,A.currentTarget=Me;try{D(A)}catch(Xe){N0(Xe)}A.currentTarget=null,D=ge}}}}function yn(u,f){var g=f[nr];g===void 0&&(g=f[nr]=new Set);var b=u+"__bubble";g.has(b)||(R4(f,u,2,!1),g.add(b))}function Lc(u,f,g){var b=0;f&&(b|=4),R4(g,u,b,f)}var Wf="_reactListening"+Math.random().toString(36).slice(2);function Q0(u){if(!u[Wf]){u[Wf]=!0,Xi.forEach(function(g){g!=="selectionchange"&&(B8.has(g)||Lc(g,!1,u),Lc(g,!0,u))});var f=u.nodeType===9?u:u.ownerDocument;f===null||f[Wf]||(f[Wf]=!0,Lc("selectionchange",!1,f))}}function R4(u,f,g,b){switch(U4(f)){case 2:var A=z4;break;case 8:A=F4;break;default:A=Ay}g=A.bind(null,f,g,u),A=void 0,!Wm||f!=="touchstart"&&f!=="touchmove"&&f!=="wheel"||(A=!0),b?A!==void 0?u.addEventListener(f,g,{capture:!0,passive:A}):u.addEventListener(f,g,!0):A!==void 0?u.addEventListener(f,g,{passive:A}):u.addEventListener(f,g,!1)}function K0(u,f,g,b,A){var D=b;if((f&1)===0&&(f&2)===0&&b!==null)e:for(;;){if(b===null)return;var j=b.tag;if(j===3||j===4){var K=b.stateNode.containerInfo;if(K===A)break;if(j===4)for(j=b.return;j!==null;){var ge=j.tag;if((ge===3||ge===4)&&j.stateNode.containerInfo===A)return;j=j.return}for(;K!==null;){if(j=li(K),j===null)return;if(ge=j.tag,ge===5||ge===6||ge===26||ge===27){b=D=j;continue e}K=K.parentNode}}b=b.return}FT(function(){var Me=D,Xe=bf(g),nt=[];e:{var Le=yb.get(u);if(Le!==void 0){var Pe=t0,rn=u;switch(u){case"keypress":if(e0(g)===0)break e;case"keydown":case"keyup":Pe=Cf;break;case"focusin":rn="focus",Pe=nb;break;case"focusout":rn="blur",Pe=nb;break;case"beforeblur":case"afterblur":Pe=nb;break;case"click":if(g.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Pe=r0;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Pe=HT;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Pe=rv;break;case l0:case KT:case gb:Pe=w8;break;case vb:Pe=fa;break;case"scroll":case"scrollend":Pe=_8;break;case"wheel":Pe=iv;break;case"copy":case"cut":case"paste":Pe=E8;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Pe=ca;break;case"toggle":case"beforetoggle":Pe=ab}var Jt=(f&4)!==0,hr=!Jt&&(u==="scroll"||u==="scrollend"),De=Jt?Le!==null?Le+"Capture":null:Le;Jt=[];for(var Ce=Me,$e;Ce!==null;){var Je=Ce;if($e=Je.stateNode,Je=Je.tag,Je!==5&&Je!==26&&Je!==27||$e===null||De===null||(Je=ru(Ce,De),Je!=null&&Jt.push(ka(Ce,Je,$e))),hr)break;Ce=Ce.return}0<Jt.length&&(Le=new Pe(Le,rn,null,g,Xe),nt.push({event:Le,listeners:Jt}))}}if((f&7)===0){e:{if(Le=u==="mouseover"||u==="pointerover",Pe=u==="mouseout"||u==="pointerout",Le&&g!==Km&&(rn=g.relatedTarget||g.fromElement)&&(li(rn)||rn[Br]))break e;if((Pe||Le)&&(Le=Xe.window===Xe?Xe:(Le=Xe.ownerDocument)?Le.defaultView||Le.parentWindow:window,Pe?(rn=g.relatedTarget||g.toElement,Pe=Me,rn=rn?li(rn):null,rn!==null&&(hr=a(rn),Jt=rn.tag,rn!==hr||Jt!==5&&Jt!==27&&Jt!==6)&&(rn=null)):(Pe=null,rn=Me),Pe!==rn)){if(Jt=r0,Je="onMouseLeave",De="onMouseEnter",Ce="mouse",(u==="pointerout"||u==="pointerover")&&(Jt=ca,Je="onPointerLeave",De="onPointerEnter",Ce="pointer"),hr=Pe==null?Le:fo(Pe),$e=rn==null?Le:fo(rn),Le=new Jt(Je,Ce+"leave",Pe,g,Xe),Le.target=hr,Le.relatedTarget=$e,Je=null,li(Xe)===Me&&(Jt=new Jt(De,Ce+"enter",rn,g,Xe),Jt.target=$e,Jt.relatedTarget=hr,Je=Jt),hr=Je,Pe&&rn)t:{for(Jt=Pe,De=rn,Ce=0,$e=Jt;$e;$e=zc($e))Ce++;for($e=0,Je=De;Je;Je=zc(Je))$e++;for(;0<Ce-$e;)Jt=zc(Jt),Ce--;for(;0<$e-Ce;)De=zc(De),$e--;for(;Ce--;){if(Jt===De||De!==null&&Jt===De.alternate)break t;Jt=zc(Jt),De=zc(De)}Jt=null}else Jt=null;Pe!==null&&gy(nt,Le,Pe,Jt,!1),rn!==null&&hr!==null&&gy(nt,hr,rn,Jt,!0)}}e:{if(Le=Me?fo(Me):window,Pe=Le.nodeName&&Le.nodeName.toLowerCase(),Pe==="select"||Pe==="input"&&Le.type==="file")var Ft=cc;else if(cb(Le))if(fb)Ft=iu;else{Ft=cv;var En=QT}else Pe=Le.nodeName,!Pe||Pe.toLowerCase()!=="input"||Le.type!=="checkbox"&&Le.type!=="radio"?Me&&Qd(Me.elementType)&&(Ft=cc):Ft=fc;if(Ft&&(Ft=Ft(u,Me))){lv(nt,Ft,g,Xe);break e}En&&En(u,Le,Me),u==="focusout"&&Me&&Le.type==="number"&&Me.memoizedProps.value!=null&&Kp(Le,"number",Le.value)}switch(En=Me?fo(Me):window,u){case"focusin":(cb(En)||En.contentEditable==="true")&&(ds=En,Df=Me,La=null);break;case"focusout":La=Df=ds=null;break;case"mousedown":nh=!0;break;case"contextmenu":case"mouseup":case"dragend":nh=!1,rh(nt,g,Xe);break;case"selectionchange":if(pb)break;case"keydown":case"keyup":rh(nt,g,Xe)}var Kt;if(ov)e:{switch(u){case"compositionstart":var sn="onCompositionStart";break e;case"compositionend":sn="onCompositionEnd";break e;case"compositionupdate":sn="onCompositionUpdate";break e}sn=void 0}else fs?sv(u,g)&&(sn="onCompositionEnd"):u==="keydown"&&g.keyCode===229&&(sn="onCompositionStart");sn&&(av&&g.locale!=="ko"&&(fs||sn!=="onCompositionStart"?sn==="onCompositionEnd"&&fs&&(Kt=Jp()):(cs=Xe,Xm="value"in cs?cs.value:cs.textContent,fs=!0)),En=Nc(Me,sn),0<En.length&&(sn=new rb(sn,u,null,g,Xe),nt.push({event:sn,listeners:En}),Kt?sn.data=Kt:(Kt=o0(g),Kt!==null&&(sn.data=Kt)))),(Kt=A8?lb(u,g):ub(u,g))&&(sn=Nc(Me,"onBeforeInput"),0<sn.length&&(En=new rb("onBeforeInput","beforeinput",null,g,Xe),nt.push({event:En,listeners:sn}),En.data=Kt)),hy(nt,u,Me,g,Xe)}Au(nt,f)})}function ka(u,f,g){return{instance:u,listener:f,currentTarget:g}}function Nc(u,f){for(var g=f+"Capture",b=[];u!==null;){var A=u,D=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||D===null||(A=ru(u,g),A!=null&&b.unshift(ka(u,A,D)),A=ru(u,f),A!=null&&b.push(ka(u,A,D))),u.tag===3)return b;u=u.return}return[]}function zc(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5&&u.tag!==27);return u||null}function gy(u,f,g,b,A){for(var D=f._reactName,j=[];g!==null&&g!==b;){var K=g,ge=K.alternate,Me=K.stateNode;if(K=K.tag,ge!==null&&ge===b)break;K!==5&&K!==26&&K!==27||Me===null||(ge=Me,A?(Me=ru(g,D),Me!=null&&j.unshift(ka(g,Me,ge))):A||(Me=ru(g,D),Me!=null&&j.push(ka(g,Me,ge)))),g=g.return}j.length!==0&&u.push({event:f,listeners:j})}var my=/\r\n?/g,qa=/\u0000|\uFFFD/g;function vy(u){return(typeof u=="string"?u:""+u).replace(my,`
|
|
81
|
-
`).replace(qa,"")}function O4(u,f){return f=vy(f),vy(u)===f}function W0(){}function Tr(u,f,g,b,A,D){switch(g){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||xf(u,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&xf(u,""+b);break;case"className":Re(u,"class",b);break;case"tabIndex":Re(u,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Re(u,g,b);break;case"style":Qm(u,b,D);break;case"data":if(f!=="object"){Re(u,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||g!=="href")){u.removeAttribute(g);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Xp(""+b),u.setAttribute(g,b);break;case"action":case"formAction":if(typeof b=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(g==="formAction"?(f!=="input"&&Tr(u,f,"name",A.name,A,null),Tr(u,f,"formEncType",A.formEncType,A,null),Tr(u,f,"formMethod",A.formMethod,A,null),Tr(u,f,"formTarget",A.formTarget,A,null)):(Tr(u,f,"encType",A.encType,A,null),Tr(u,f,"method",A.method,A,null),Tr(u,f,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Xp(""+b),u.setAttribute(g,b);break;case"onClick":b!=null&&(u.onclick=W0);break;case"onScroll":b!=null&&yn("scroll",u);break;case"onScrollEnd":b!=null&&yn("scrollend",u);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(A.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"multiple":u.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":u.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){u.removeAttribute("xlink:href");break}g=Xp(""+b),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""+b):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":b===!0?u.setAttribute(g,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,b):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?u.setAttribute(g,b):u.removeAttribute(g);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?u.removeAttribute(g):u.setAttribute(g,b);break;case"popover":yn("beforetoggle",u),yn("toggle",u),ce(u,"popover",b);break;case"xlinkActuate":P(u,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":P(u,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":P(u,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":P(u,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":P(u,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":P(u,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":P(u,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":P(u,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":P(u,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":ce(u,"is",b);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=Wp.get(g)||g,ce(u,g,b))}}function qi(u,f,g,b,A,D){switch(g){case"style":Qm(u,b,D);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(A.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"children":typeof b=="string"?xf(u,b):(typeof b=="number"||typeof b=="bigint")&&xf(u,""+b);break;case"onScroll":b!=null&&yn("scroll",u);break;case"onScrollEnd":b!=null&&yn("scrollend",u);break;case"onClick":b!=null&&(u.onclick=W0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ho.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(A=g.endsWith("Capture"),f=g.slice(2,A?g.length-7:void 0),D=u[Qt]||null,D=D!=null?D[g]:null,typeof D=="function"&&u.removeEventListener(f,D,A),typeof b=="function")){typeof D!="function"&&D!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(f,b,A);break e}g in u?u[g]=b:b===!0?u.setAttribute(g,""):ce(u,g,b)}}}function Ue(u,f,g){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yn("error",u),yn("load",u);var b=!1,A=!1,D;for(D in g)if(g.hasOwnProperty(D)){var j=g[D];if(j!=null)switch(D){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Tr(u,f,D,j,g,null)}}A&&Tr(u,f,"srcSet",g.srcSet,g,null),b&&Tr(u,f,"src",g.src,g,null);return;case"input":yn("invalid",u);var K=D=j=A=null,ge=null,Me=null;for(b in g)if(g.hasOwnProperty(b)){var Xe=g[b];if(Xe!=null)switch(b){case"name":A=Xe;break;case"type":j=Xe;break;case"checked":ge=Xe;break;case"defaultChecked":Me=Xe;break;case"value":D=Xe;break;case"defaultValue":K=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(r(137,f));break;default:Tr(u,f,b,Xe,g,null)}}Kx(u,D,K,ge,Me,j,A,!1),Wr(u);return;case"select":yn("invalid",u),b=j=D=null;for(A in g)if(g.hasOwnProperty(A)&&(K=g[A],K!=null))switch(A){case"value":D=K;break;case"defaultValue":j=K;break;case"multiple":b=K;default:Tr(u,f,A,K,g,null)}f=D,g=j,u.multiple=!!b,f!=null?lc(u,!!b,f,!1):g!=null&&lc(u,!!b,g,!0);return;case"textarea":yn("invalid",u),D=A=b=null;for(j in g)if(g.hasOwnProperty(j)&&(K=g[j],K!=null))switch(j){case"value":b=K;break;case"defaultValue":A=K;break;case"children":D=K;break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(91));break;default:Tr(u,f,j,K,g,null)}Xx(u,b,A,D),Wr(u);return;case"option":for(ge in g)if(g.hasOwnProperty(ge)&&(b=g[ge],b!=null))switch(ge){case"selected":u.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Tr(u,f,ge,b,g,null)}return;case"dialog":yn("beforetoggle",u),yn("toggle",u),yn("cancel",u),yn("close",u);break;case"iframe":case"object":yn("load",u);break;case"video":case"audio":for(b=0;b<fn.length;b++)yn(fn[b],u);break;case"image":yn("error",u),yn("load",u);break;case"details":yn("toggle",u);break;case"embed":case"source":case"link":yn("error",u),yn("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in g)if(g.hasOwnProperty(Me)&&(b=g[Me],b!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Tr(u,f,Me,b,g,null)}return;default:if(Qd(f)){for(Xe in g)g.hasOwnProperty(Xe)&&(b=g[Xe],b!==void 0&&qi(u,f,Xe,b,g,void 0));return}}for(K in g)g.hasOwnProperty(K)&&(b=g[K],b!=null&&Tr(u,f,K,b,g,null))}function dr(u,f,g,b){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,D=null,j=null,K=null,ge=null,Me=null,Xe=null;for(Pe in g){var nt=g[Pe];if(g.hasOwnProperty(Pe)&&nt!=null)switch(Pe){case"checked":break;case"value":break;case"defaultValue":ge=nt;default:b.hasOwnProperty(Pe)||Tr(u,f,Pe,null,b,nt)}}for(var Le in b){var Pe=b[Le];if(nt=g[Le],b.hasOwnProperty(Le)&&(Pe!=null||nt!=null))switch(Le){case"type":D=Pe;break;case"name":A=Pe;break;case"checked":Me=Pe;break;case"defaultChecked":Xe=Pe;break;case"value":j=Pe;break;case"defaultValue":K=Pe;break;case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,f));break;default:Pe!==nt&&Tr(u,f,Le,Pe,b,nt)}}Qp(u,j,K,ge,Me,Xe,D,A);return;case"select":Pe=j=K=Le=null;for(D in g)if(ge=g[D],g.hasOwnProperty(D)&&ge!=null)switch(D){case"value":break;case"multiple":Pe=ge;default:b.hasOwnProperty(D)||Tr(u,f,D,null,b,ge)}for(A in b)if(D=b[A],ge=g[A],b.hasOwnProperty(A)&&(D!=null||ge!=null))switch(A){case"value":Le=D;break;case"defaultValue":K=D;break;case"multiple":j=D;default:D!==ge&&Tr(u,f,A,D,b,ge)}f=K,g=j,b=Pe,Le!=null?lc(u,!!g,Le,!1):!!b!=!!g&&(f!=null?lc(u,!!g,f,!0):lc(u,!!g,g?[]:"",!1));return;case"textarea":Pe=Le=null;for(K in g)if(A=g[K],g.hasOwnProperty(K)&&A!=null&&!b.hasOwnProperty(K))switch(K){case"value":break;case"children":break;default:Tr(u,f,K,null,b,A)}for(j in b)if(A=b[j],D=g[j],b.hasOwnProperty(j)&&(A!=null||D!=null))switch(j){case"value":Le=A;break;case"defaultValue":Pe=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:A!==D&&Tr(u,f,j,A,b,D)}Wx(u,Le,Pe);return;case"option":for(var rn in g)if(Le=g[rn],g.hasOwnProperty(rn)&&Le!=null&&!b.hasOwnProperty(rn))switch(rn){case"selected":u.selected=!1;break;default:Tr(u,f,rn,null,b,Le)}for(ge in b)if(Le=b[ge],Pe=g[ge],b.hasOwnProperty(ge)&&Le!==Pe&&(Le!=null||Pe!=null))switch(ge){case"selected":u.selected=Le&&typeof Le!="function"&&typeof Le!="symbol";break;default:Tr(u,f,ge,Le,b,Pe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Jt in g)Le=g[Jt],g.hasOwnProperty(Jt)&&Le!=null&&!b.hasOwnProperty(Jt)&&Tr(u,f,Jt,null,b,Le);for(Me in b)if(Le=b[Me],Pe=g[Me],b.hasOwnProperty(Me)&&Le!==Pe&&(Le!=null||Pe!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,f));break;default:Tr(u,f,Me,Le,b,Pe)}return;default:if(Qd(f)){for(var hr in g)Le=g[hr],g.hasOwnProperty(hr)&&Le!==void 0&&!b.hasOwnProperty(hr)&&qi(u,f,hr,void 0,b,Le);for(Xe in b)Le=b[Xe],Pe=g[Xe],!b.hasOwnProperty(Xe)||Le===Pe||Le===void 0&&Pe===void 0||qi(u,f,Xe,Le,b,Pe);return}}for(var De in g)Le=g[De],g.hasOwnProperty(De)&&Le!=null&&!b.hasOwnProperty(De)&&Tr(u,f,De,null,b,Le);for(nt in b)Le=b[nt],Pe=g[nt],!b.hasOwnProperty(nt)||Le===Pe||Le==null&&Pe==null||Tr(u,f,nt,Le,b,Pe)}var $_=null,X0=null;function qh(u){return u.nodeType===9?u:u.ownerDocument}function Al(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ku(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function Xf(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var kl=null;function yy(){var u=window.event;return u&&u.type==="popstate"?u===kl?!1:(kl=u,!0):(kl=null,!1)}var Tl=typeof setTimeout=="function"?setTimeout:void 0,B_=typeof clearTimeout=="function"?clearTimeout:void 0,D4=typeof Promise=="function"?Promise:void 0,L8=typeof queueMicrotask=="function"?queueMicrotask:typeof D4<"u"?function(u){return D4.resolve(null).then(u).catch(N8)}:Tl;function N8(u){setTimeout(function(){throw u})}function yo(u){return u==="head"}function M4(u,f){var g=f,b=0,A=0;do{var D=g.nextSibling;if(u.removeChild(g),D&&D.nodeType===8)if(g=D.data,g==="/$"){if(0<b&&8>b){g=b;var j=u.ownerDocument;if(g&1&&Rt(j.documentElement),g&2&&Rt(j.body),g&4)for(g=j.head,Rt(g),j=g.firstChild;j;){var K=j.nextSibling,ge=j.nodeName;j[pi]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&j.rel.toLowerCase()==="stylesheet"||g.removeChild(j),j=K}}if(A===0){u.removeChild(D),Wh(f);return}A--}else g==="$"||g==="$?"||g==="$!"?A++:b=g.charCodeAt(0)-48;else b=0;g=D}while(g);Wh(f)}function J0(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var g=f;switch(f=f.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":J0(g),$t(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function L_(u,f,g,b){for(;u.nodeType===1;){var A=g;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(b){if(!u[pi])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(D=u.getAttribute("rel"),D==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(D!==A.rel||u.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||u.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||u.getAttribute("title")!==(A.title==null?null:A.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(D=u.getAttribute("src"),(D!==(A.src==null?null:A.src)||u.getAttribute("type")!==(A.type==null?null:A.type)||u.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&D&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var D=A.name==null?null:""+A.name;if(A.type==="hidden"&&u.getAttribute("name")===D)return u}else return u;if(u=el(u.nextSibling),u===null)break}return null}function Gh(u,f,g){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=el(u.nextSibling),u===null))return null;return u}function N_(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function z_(u,f){var g=u.ownerDocument;if(u.data!=="$?"||g.readyState==="complete")f();else{var b=function(){f(),g.removeEventListener("DOMContentLoaded",b)};g.addEventListener("DOMContentLoaded",b),u._reactRetry=b}}function el(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="F!"||f==="F")break;if(f==="/$")return null}}return u}var F_=null;function Jf(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return u;f--}else g==="/$"&&f++}u=u.previousSibling}return null}function xo(u,f,g){switch(f=qh(g),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function Rt(u){for(var f=u.attributes;f.length;)u.removeAttributeNode(f[0]);$t(u)}var wi=new Map,_s=new Set;function no(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var Tu=se.d;se.d={f:z8,r:xy,D:Rl,C:Ou,L:by,m:Fc,X:Ta,S:$o,M:Uc};function z8(){var u=Tu.f(),f=P0();return u||f}function xy(u){var f=Mr(u);f!==null&&f.tag===5&&f.type==="form"?n4(f):Tu.r(u)}var Ru=typeof document>"u"?null:document;function Ga(u,f,g){var b=Ru;if(b&&typeof f=="string"&&f){var A=Lr(f);A='link[rel="'+u+'"][href="'+A+'"]',typeof g=="string"&&(A+='[crossorigin="'+g+'"]'),_s.has(A)||(_s.add(A),u={rel:u,crossOrigin:g,href:f},b.querySelector(A)===null&&(f=b.createElement("link"),Ue(f,"link",u),rr(f),b.head.appendChild(f)))}}function Rl(u){Tu.D(u),Ga("dns-prefetch",u,null)}function Ou(u,f){Tu.C(u,f),Ga("preconnect",u,f)}function by(u,f,g){Tu.L(u,f,g);var b=Ru;if(b&&u&&f){var A='link[rel="preload"][as="'+Lr(f)+'"]';f==="image"&&g&&g.imageSrcSet?(A+='[imagesrcset="'+Lr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(A+='[imagesizes="'+Lr(g.imageSizes)+'"]')):A+='[href="'+Lr(u)+'"]';var D=A;switch(f){case"style":D=Vh(u);break;case"script":D=ed(u)}wi.has(D)||(u=m({rel:"preload",href:f==="image"&&g&&g.imageSrcSet?void 0:u,as:f},g),wi.set(D,u),b.querySelector(A)!==null||f==="style"&&b.querySelector(eg(D))||f==="script"&&b.querySelector(tl(D))||(f=b.createElement("link"),Ue(f,"link",u),rr(f),b.head.appendChild(f)))}}function Fc(u,f){Tu.m(u,f);var g=Ru;if(g&&u){var b=f&&typeof f.as=="string"?f.as:"script",A='link[rel="modulepreload"][as="'+Lr(b)+'"][href="'+Lr(u)+'"]',D=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=ed(u)}if(!wi.has(D)&&(u=m({rel:"modulepreload",href:u},f),wi.set(D,u),g.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(tl(D)))return}b=g.createElement("link"),Ue(b,"link",u),rr(b),g.head.appendChild(b)}}}function $o(u,f,g){Tu.S(u,f,g);var b=Ru;if(b&&u){var A=Ti(b).hoistableStyles,D=Vh(u);f=f||"default";var j=A.get(D);if(!j){var K={loading:0,preload:null};if(j=b.querySelector(eg(D)))K.loading=5;else{u=m({rel:"stylesheet",href:u,"data-precedence":f},g),(g=wi.get(D))&&j_(u,g);var ge=j=b.createElement("link");rr(ge),Ue(ge,"link",u),ge._p=new Promise(function(Me,Xe){ge.onload=Me,ge.onerror=Xe}),ge.addEventListener("load",function(){K.loading|=1}),ge.addEventListener("error",function(){K.loading|=2}),K.loading|=4,wy(j,f,b)}j={type:"stylesheet",instance:j,count:1,state:K},A.set(D,j)}}}function Ta(u,f){Tu.X(u,f);var g=Ru;if(g&&u){var b=Ti(g).hoistableScripts,A=ed(u),D=b.get(A);D||(D=g.querySelector(tl(A)),D||(u=m({src:u,async:!0},f),(f=wi.get(A))&&Cy(u,f),D=g.createElement("script"),rr(D),Ue(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(A,D))}}function Uc(u,f){Tu.M(u,f);var g=Ru;if(g&&u){var b=Ti(g).hoistableScripts,A=ed(u),D=b.get(A);D||(D=g.querySelector(tl(A)),D||(u=m({src:u,async:!0,type:"module"},f),(f=wi.get(A))&&Cy(u,f),D=g.createElement("script"),rr(D),Ue(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(A,D))}}function _y(u,f,g,b){var A=(A=ke.current)?no(A):null;if(!A)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(f=Vh(g.href),g=Ti(A).hoistableStyles,b=g.get(f),b||(b={type:"style",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=Vh(g.href);var D=Ti(A).hoistableStyles,j=D.get(u);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(u,j),(D=A.querySelector(eg(u)))&&!D._p&&(j.instance=D,j.state.loading=5),wi.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},wi.set(u,g),D||tg(A,u,g,j.state))),f&&b===null)throw Error(r(528,""));return j}if(f&&b!==null)throw Error(r(529,""));return null;case"script":return f=g.async,g=g.src,typeof g=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ed(g),g=Ti(A).hoistableScripts,b=g.get(f),b||(b={type:"script",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Vh(u){return'href="'+Lr(u)+'"'}function eg(u){return'link[rel="stylesheet"]['+u+"]"}function U_(u){return m({},u,{"data-precedence":u.precedence,precedence:null})}function tg(u,f,g,b){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=u.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),Ue(f,"link",g),rr(f),u.head.appendChild(f))}function ed(u){return'[src="'+Lr(u)+'"]'}function tl(u){return"script[async]"+u}function Sy(u,f,g){if(f.count++,f.instance===null)switch(f.type){case"style":var b=u.querySelector('style[data-href~="'+Lr(g.href)+'"]');if(b)return f.instance=b,rr(b),b;var A=m({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return b=(u.ownerDocument||u).createElement("style"),rr(b),Ue(b,"style",A),wy(b,g.precedence,u),f.instance=b;case"stylesheet":A=Vh(g.href);var D=u.querySelector(eg(A));if(D)return f.state.loading|=4,f.instance=D,rr(D),D;b=U_(g),(A=wi.get(A))&&j_(b,A),D=(u.ownerDocument||u).createElement("link"),rr(D);var j=D;return j._p=new Promise(function(K,ge){j.onload=K,j.onerror=ge}),Ue(D,"link",b),f.state.loading|=4,wy(D,g.precedence,u),f.instance=D;case"script":return D=ed(g.src),(A=u.querySelector(tl(D)))?(f.instance=A,rr(A),A):(b=g,(A=wi.get(D))&&(b=m({},g),Cy(b,A)),u=u.ownerDocument||u,A=u.createElement("script"),rr(A),Ue(A,"link",b),u.head.appendChild(A),f.instance=A);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,wy(b,g.precedence,u));return f.instance}function wy(u,f,g){for(var b=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,D=A,j=0;j<b.length;j++){var K=b[j];if(K.dataset.precedence===f)D=K;else if(D!==A)break}D?D.parentNode.insertBefore(u,D.nextSibling):(f=g.nodeType===9?g.head:g,f.insertBefore(u,f.firstChild))}function j_(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function Cy(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var ng=null;function Yh(u,f,g){if(ng===null){var b=new Map,A=ng=new Map;A.set(g,b)}else A=ng,b=A.get(g),b||(b=new Map,A.set(g,b));if(b.has(u))return b;for(b.set(u,null),g=g.getElementsByTagName(u),A=0;A<g.length;A++){var D=g[A];if(!(D[pi]||D[vn]||u==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!=="http://www.w3.org/2000/svg"){var j=D.getAttribute(f)||"";j=u+j;var K=b.get(j);K?K.push(D):b.set(j,[D])}}return b}function H_(u,f,g){u=u.ownerDocument||u,u.head.insertBefore(g,f==="title"?u.querySelector("head > title"):null)}function I4(u,f,g){if(g===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function P_(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Zh=null;function $4(){}function B4(u,f,g){if(Zh===null)throw Error(r(475));var b=Zh;if(f.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var A=Vh(g.href),D=u.querySelector(eg(A));if(D){u=D._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(b.count++,b=Qh.bind(b),u.then(b,b)),f.state.loading|=4,f.instance=D,rr(D);return}D=u.ownerDocument||u,g=U_(g),(A=wi.get(A))&&j_(g,A),D=D.createElement("link"),rr(D);var j=D;j._p=new Promise(function(K,ge){j.onload=K,j.onerror=ge}),Ue(D,"link",g),f.instance=D}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(b.count++,f=Qh.bind(b),u.addEventListener("load",f),u.addEventListener("error",f))}}function L4(){if(Zh===null)throw Error(r(475));var u=Zh;return u.stylesheets&&u.count===0&&ig(u,u.stylesheets),0<u.count?function(f){var g=setTimeout(function(){if(u.stylesheets&&ig(u,u.stylesheets),u.unsuspend){var b=u.unsuspend;u.unsuspend=null,b()}},6e4);return u.unsuspend=f,function(){u.unsuspend=null,clearTimeout(g)}}:null}function Qh(){if(this.count--,this.count===0){if(this.stylesheets)ig(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var rg=null;function ig(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,rg=new Map,f.forEach(q_,u),rg=null,Qh.call(u))}function q_(u,f){if(!(f.state.loading&4)){var g=rg.get(u);if(g)var b=g.get(null);else{g=new Map,rg.set(u,g);for(var A=u.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<A.length;D++){var j=A[D];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(g.set(j.dataset.precedence,j),b=j)}b&&g.set(null,b)}A=f.instance,j=A.getAttribute("data-precedence"),D=g.get(j)||b,D===b&&g.set(null,A),g.set(j,A),this.count++,b=Qh.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),D?D.parentNode.insertBefore(A,D.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(A,u.firstChild)),f.state.loading|=4}}var bo={$$typeof:R,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Ol(u,f,g,b,A,D,j,K){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=D,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function N4(u,f,g,b,A,D,j,K,ge,Me,Xe,nt){return u=new Ol(u,f,g,j,K,ge,Me,nt),f=1,D===!0&&(f|=24),D=ha(3,null,null,f),u.current=D,D.stateNode=u,f=Sb(),f.refCount++,u.pooledCache=f,f.refCount++,D.memoizedState={element:b,isDehydrated:g,cache:f},x0(D),u}function G_(u){return u?(u=If,u):If}function V_(u,f,g,b,A,D){A=G_(A),b.context===null?b.context=A:b.pendingContext=A,b=hu(f),b.payload={element:g},D=D===void 0?null:D,D!==null&&(b.callback=D),g=ma(u,b,f),g!==null&&(Aa(g,u,f),Lf(g,u,f))}function Y_(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<f?g:f}}function Ey(u,f){Y_(u,f),(u=u.alternate)&&Y_(u,f)}function Z_(u){if(u.tag===13){var f=su(u,67108864);f!==null&&Aa(f,u,67108864),Ey(u,67108864)}}var og=!0;function z4(u,f,g,b){var A=ee.T;ee.T=null;var D=se.p;try{se.p=2,Ay(u,f,g,b)}finally{se.p=D,ee.T=A}}function F4(u,f,g,b){var A=ee.T;ee.T=null;var D=se.p;try{se.p=8,Ay(u,f,g,b)}finally{se.p=D,ee.T=A}}function Ay(u,f,g,b){if(og){var A=Q_(b);if(A===null)K0(u,f,b,ag,g),W_(u,b);else if(X_(A,u,f,g,b))b.stopPropagation();else if(W_(u,b),f&4&&-1<F8.indexOf(u)){for(;A!==null;){var D=Mr(A);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var j=It(D.pendingLanes);if(j!==0){var K=D;for(K.pendingLanes|=2,K.entangledLanes|=2;j;){var ge=1<<31-yt(j);K.entanglements[1]|=ge,j&=~ge}Js(D),(vr&6)===0&&(Xv=ne()+500,Eu(0))}}break;case 13:K=su(D,2),K!==null&&Aa(K,D,2),P0(),Ey(D,2)}if(D=Q_(b),D===null&&K0(u,f,b,ag,g),D===A)break;A=D}A!==null&&b.stopPropagation()}else K0(u,f,b,null,g)}}function Q_(u){return u=bf(u),K_(u)}var ag=null;function K_(u){if(ag=null,u=li(u),u!==null){var f=a(u);if(f===null)u=null;else{var g=f.tag;if(g===13){if(u=l(f),u!==null)return u;u=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return ag=u,null}function U4(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case _e:return 2;case Fe:return 8;case be:case Be:return 32;case at:return 268435456;default:return 32}default:return 32}}var ky=!1,nl=null,Dl=null,Du=null,Kh=new Map,sg=new Map,jc=[],F8="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".split(" ");function W_(u,f){switch(u){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Du=null;break;case"pointerover":case"pointerout":Kh.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":sg.delete(f.pointerId)}}function Ml(u,f,g,b,A,D){return u===null||u.nativeEvent!==D?(u={blockedOn:f,domEventName:g,eventSystemFlags:b,nativeEvent:D,targetContainers:[A]},f!==null&&(f=Mr(f),f!==null&&Z_(f)),u):(u.eventSystemFlags|=b,f=u.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),u)}function X_(u,f,g,b,A){switch(f){case"focusin":return nl=Ml(nl,u,f,g,b,A),!0;case"dragenter":return Dl=Ml(Dl,u,f,g,b,A),!0;case"mouseover":return Du=Ml(Du,u,f,g,b,A),!0;case"pointerover":var D=A.pointerId;return Kh.set(D,Ml(Kh.get(D)||null,u,f,g,b,A)),!0;case"gotpointercapture":return D=A.pointerId,sg.set(D,Ml(sg.get(D)||null,u,f,g,b,A)),!0}return!1}function J_(u){var f=li(u.target);if(f!==null){var g=a(f);if(g!==null){if(f=g.tag,f===13){if(f=l(g),f!==null){u.blockedOn=f,Ui(u.priority,function(){if(g.tag===13){var b=Pa();b=Dt(b);var A=su(g,b);A!==null&&Aa(A,g,b),Ey(g,b)}});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function lg(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var g=Q_(u.nativeEvent);if(g===null){g=u.nativeEvent;var b=new g.constructor(g.type,g);Km=b,g.target.dispatchEvent(b),Km=null}else return f=Mr(g),f!==null&&Z_(f),u.blockedOn=g,!1;f.shift()}return!0}function eS(u,f,g){lg(u)&&g.delete(f)}function Ty(){ky=!1,nl!==null&&lg(nl)&&(nl=null),Dl!==null&&lg(Dl)&&(Dl=null),Du!==null&&lg(Du)&&(Du=null),Kh.forEach(eS),sg.forEach(eS)}function Mu(u,f){u.blockedOn===f&&(u.blockedOn=null,ky||(ky=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ty)))}var Ry=null;function ug(u){Ry!==u&&(Ry=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ry===u&&(Ry=null);for(var f=0;f<u.length;f+=3){var g=u[f],b=u[f+1],A=u[f+2];if(typeof b!="function"){if(K_(b||g)===null)continue;break}var D=Mr(g);D!==null&&(u.splice(f,3),f-=3,Gb(D,{pending:!0,data:A,method:g.method,action:b},b,A))}}))}function Wh(u){function f(ge){return Mu(ge,u)}nl!==null&&Mu(nl,u),Dl!==null&&Mu(Dl,u),Du!==null&&Mu(Du,u),Kh.forEach(f),sg.forEach(f);for(var g=0;g<jc.length;g++){var b=jc[g];b.blockedOn===u&&(b.blockedOn=null)}for(;0<jc.length&&(g=jc[0],g.blockedOn===null);)J_(g),g.blockedOn===null&&jc.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(b=0;b<g.length;b+=3){var A=g[b],D=g[b+1],j=A[Qt]||null;if(typeof D=="function")j||ug(g);else if(j){var K=null;if(D&&D.hasAttribute("formAction")){if(A=D,j=D[Qt]||null)K=j.formAction;else if(K_(A)!==null)continue}else K=j.action;typeof K=="function"?g[b+1]=K:(g.splice(b,3),b-=3),ug(g)}}}function Hc(u){this._internalRoot=u}Oy.prototype.render=Hc.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var g=f.current,b=Pa();V_(g,b,u,f,null,null)},Oy.prototype.unmount=Hc.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;V_(u.current,2,null,u,null,null),P0(),f[Br]=null}};function Oy(u){this._internalRoot=u}Oy.prototype.unstable_scheduleHydration=function(u){if(u){var f=Pn();u={blockedOn:null,target:u,priority:f};for(var g=0;g<jc.length&&f!==0&&f<jc[g].priority;g++);jc.splice(g,0,u),g===0&&J_(u)}};var j4=t.version;if(j4!=="19.1.0")throw Error(r(527,j4,"19.1.0"));se.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=h(f),u=u!==null?p(u):null,u=u===null?null:u.stateNode,u};var H4={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{ye=ro.inject(H4),He=ro}catch{}}return s1.createRoot=function(u,f){if(!o(u))throw Error(r(299));var g=!1,b="",A=Jb,D=Th,j=e_,K=null;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(D=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(K=f.unstable_transitionCallbacks)),f=N4(u,1,!1,null,null,g,b,A,D,j,K,null),u[Br]=f.current,Q0(u),new Hc(f)},s1.hydrateRoot=function(u,f,g){if(!o(u))throw Error(r(299));var b=!1,A="",D=Jb,j=Th,K=e_,ge=null,Me=null;return g!=null&&(g.unstable_strictMode===!0&&(b=!0),g.identifierPrefix!==void 0&&(A=g.identifierPrefix),g.onUncaughtError!==void 0&&(D=g.onUncaughtError),g.onCaughtError!==void 0&&(j=g.onCaughtError),g.onRecoverableError!==void 0&&(K=g.onRecoverableError),g.unstable_transitionCallbacks!==void 0&&(ge=g.unstable_transitionCallbacks),g.formState!==void 0&&(Me=g.formState)),f=N4(u,1,!0,f,g??null,b,A,D,j,K,ge,Me),f.context=G_(null),g=f.current,b=Pa(),b=Dt(b),A=hu(b),A.callback=null,ma(g,A,b),g=b,f.current.lanes=g,xt(f,g),Js(f),u[Br]=f.current,Q0(u),new Oy(f)},s1.version="19.1.0",s1}var l1={},QI;function LV(){if(QI)return l1;QI=1;var e={};/**
|
|
81
|
+
`).replace(qa,"")}function O4(u,f){return f=vy(f),vy(u)===f}function W0(){}function Tr(u,f,g,b,A,D){switch(g){case"children":typeof b=="string"?f==="body"||f==="textarea"&&b===""||xf(u,b):(typeof b=="number"||typeof b=="bigint")&&f!=="body"&&xf(u,""+b);break;case"className":Oe(u,"class",b);break;case"tabIndex":Oe(u,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Oe(u,g,b);break;case"style":Qm(u,b,D);break;case"data":if(f!=="object"){Oe(u,"data",b);break}case"src":case"href":if(b===""&&(f!=="a"||g!=="href")){u.removeAttribute(g);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Xp(""+b),u.setAttribute(g,b);break;case"action":case"formAction":if(typeof b=="function"){u.setAttribute(g,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof D=="function"&&(g==="formAction"?(f!=="input"&&Tr(u,f,"name",A.name,A,null),Tr(u,f,"formEncType",A.formEncType,A,null),Tr(u,f,"formMethod",A.formMethod,A,null),Tr(u,f,"formTarget",A.formTarget,A,null)):(Tr(u,f,"encType",A.encType,A,null),Tr(u,f,"method",A.method,A,null),Tr(u,f,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){u.removeAttribute(g);break}b=Xp(""+b),u.setAttribute(g,b);break;case"onClick":b!=null&&(u.onclick=W0);break;case"onScroll":b!=null&&yn("scroll",u);break;case"onScrollEnd":b!=null&&yn("scrollend",u);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(A.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"multiple":u.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":u.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){u.removeAttribute("xlink:href");break}g=Xp(""+b),u.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",g);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""+b):u.removeAttribute(g);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":b&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,""):u.removeAttribute(g);break;case"capture":case"download":b===!0?u.setAttribute(g,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?u.setAttribute(g,b):u.removeAttribute(g);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?u.setAttribute(g,b):u.removeAttribute(g);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?u.removeAttribute(g):u.setAttribute(g,b);break;case"popover":yn("beforetoggle",u),yn("toggle",u),ce(u,"popover",b);break;case"xlinkActuate":P(u,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":P(u,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":P(u,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":P(u,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":P(u,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":P(u,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":P(u,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":P(u,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":P(u,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":ce(u,"is",b);break;case"innerText":case"textContent":break;default:(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N")&&(g=Wp.get(g)||g,ce(u,g,b))}}function qi(u,f,g,b,A,D){switch(g){case"style":Qm(u,b,D);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(g=b.__html,g!=null){if(A.children!=null)throw Error(r(60));u.innerHTML=g}}break;case"children":typeof b=="string"?xf(u,b):(typeof b=="number"||typeof b=="bigint")&&xf(u,""+b);break;case"onScroll":b!=null&&yn("scroll",u);break;case"onScrollEnd":b!=null&&yn("scrollend",u);break;case"onClick":b!=null&&(u.onclick=W0);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ho.hasOwnProperty(g))e:{if(g[0]==="o"&&g[1]==="n"&&(A=g.endsWith("Capture"),f=g.slice(2,A?g.length-7:void 0),D=u[Qt]||null,D=D!=null?D[g]:null,typeof D=="function"&&u.removeEventListener(f,D,A),typeof b=="function")){typeof D!="function"&&D!==null&&(g in u?u[g]=null:u.hasAttribute(g)&&u.removeAttribute(g)),u.addEventListener(f,b,A);break e}g in u?u[g]=b:b===!0?u.setAttribute(g,""):ce(u,g,b)}}}function Ue(u,f,g){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":yn("error",u),yn("load",u);var b=!1,A=!1,D;for(D in g)if(g.hasOwnProperty(D)){var j=g[D];if(j!=null)switch(D){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Tr(u,f,D,j,g,null)}}A&&Tr(u,f,"srcSet",g.srcSet,g,null),b&&Tr(u,f,"src",g.src,g,null);return;case"input":yn("invalid",u);var K=D=j=A=null,ge=null,Me=null;for(b in g)if(g.hasOwnProperty(b)){var Xe=g[b];if(Xe!=null)switch(b){case"name":A=Xe;break;case"type":j=Xe;break;case"checked":ge=Xe;break;case"defaultChecked":Me=Xe;break;case"value":D=Xe;break;case"defaultValue":K=Xe;break;case"children":case"dangerouslySetInnerHTML":if(Xe!=null)throw Error(r(137,f));break;default:Tr(u,f,b,Xe,g,null)}}Kx(u,D,K,ge,Me,j,A,!1),Wr(u);return;case"select":yn("invalid",u),b=j=D=null;for(A in g)if(g.hasOwnProperty(A)&&(K=g[A],K!=null))switch(A){case"value":D=K;break;case"defaultValue":j=K;break;case"multiple":b=K;default:Tr(u,f,A,K,g,null)}f=D,g=j,u.multiple=!!b,f!=null?lc(u,!!b,f,!1):g!=null&&lc(u,!!b,g,!0);return;case"textarea":yn("invalid",u),D=A=b=null;for(j in g)if(g.hasOwnProperty(j)&&(K=g[j],K!=null))switch(j){case"value":b=K;break;case"defaultValue":A=K;break;case"children":D=K;break;case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(91));break;default:Tr(u,f,j,K,g,null)}Xx(u,b,A,D),Wr(u);return;case"option":for(ge in g)if(g.hasOwnProperty(ge)&&(b=g[ge],b!=null))switch(ge){case"selected":u.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Tr(u,f,ge,b,g,null)}return;case"dialog":yn("beforetoggle",u),yn("toggle",u),yn("cancel",u),yn("close",u);break;case"iframe":case"object":yn("load",u);break;case"video":case"audio":for(b=0;b<fn.length;b++)yn(fn[b],u);break;case"image":yn("error",u),yn("load",u);break;case"details":yn("toggle",u);break;case"embed":case"source":case"link":yn("error",u),yn("load",u);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Me in g)if(g.hasOwnProperty(Me)&&(b=g[Me],b!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,f));default:Tr(u,f,Me,b,g,null)}return;default:if(Qd(f)){for(Xe in g)g.hasOwnProperty(Xe)&&(b=g[Xe],b!==void 0&&qi(u,f,Xe,b,g,void 0));return}}for(K in g)g.hasOwnProperty(K)&&(b=g[K],b!=null&&Tr(u,f,K,b,g,null))}function dr(u,f,g,b){switch(f){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,D=null,j=null,K=null,ge=null,Me=null,Xe=null;for(Pe in g){var nt=g[Pe];if(g.hasOwnProperty(Pe)&&nt!=null)switch(Pe){case"checked":break;case"value":break;case"defaultValue":ge=nt;default:b.hasOwnProperty(Pe)||Tr(u,f,Pe,null,b,nt)}}for(var Le in b){var Pe=b[Le];if(nt=g[Le],b.hasOwnProperty(Le)&&(Pe!=null||nt!=null))switch(Le){case"type":D=Pe;break;case"name":A=Pe;break;case"checked":Me=Pe;break;case"defaultChecked":Xe=Pe;break;case"value":j=Pe;break;case"defaultValue":K=Pe;break;case"children":case"dangerouslySetInnerHTML":if(Pe!=null)throw Error(r(137,f));break;default:Pe!==nt&&Tr(u,f,Le,Pe,b,nt)}}Qp(u,j,K,ge,Me,Xe,D,A);return;case"select":Pe=j=K=Le=null;for(D in g)if(ge=g[D],g.hasOwnProperty(D)&&ge!=null)switch(D){case"value":break;case"multiple":Pe=ge;default:b.hasOwnProperty(D)||Tr(u,f,D,null,b,ge)}for(A in b)if(D=b[A],ge=g[A],b.hasOwnProperty(A)&&(D!=null||ge!=null))switch(A){case"value":Le=D;break;case"defaultValue":K=D;break;case"multiple":j=D;default:D!==ge&&Tr(u,f,A,D,b,ge)}f=K,g=j,b=Pe,Le!=null?lc(u,!!g,Le,!1):!!b!=!!g&&(f!=null?lc(u,!!g,f,!0):lc(u,!!g,g?[]:"",!1));return;case"textarea":Pe=Le=null;for(K in g)if(A=g[K],g.hasOwnProperty(K)&&A!=null&&!b.hasOwnProperty(K))switch(K){case"value":break;case"children":break;default:Tr(u,f,K,null,b,A)}for(j in b)if(A=b[j],D=g[j],b.hasOwnProperty(j)&&(A!=null||D!=null))switch(j){case"value":Le=A;break;case"defaultValue":Pe=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:A!==D&&Tr(u,f,j,A,b,D)}Wx(u,Le,Pe);return;case"option":for(var rn in g)if(Le=g[rn],g.hasOwnProperty(rn)&&Le!=null&&!b.hasOwnProperty(rn))switch(rn){case"selected":u.selected=!1;break;default:Tr(u,f,rn,null,b,Le)}for(ge in b)if(Le=b[ge],Pe=g[ge],b.hasOwnProperty(ge)&&Le!==Pe&&(Le!=null||Pe!=null))switch(ge){case"selected":u.selected=Le&&typeof Le!="function"&&typeof Le!="symbol";break;default:Tr(u,f,ge,Le,b,Pe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var Jt in g)Le=g[Jt],g.hasOwnProperty(Jt)&&Le!=null&&!b.hasOwnProperty(Jt)&&Tr(u,f,Jt,null,b,Le);for(Me in b)if(Le=b[Me],Pe=g[Me],b.hasOwnProperty(Me)&&Le!==Pe&&(Le!=null||Pe!=null))switch(Me){case"children":case"dangerouslySetInnerHTML":if(Le!=null)throw Error(r(137,f));break;default:Tr(u,f,Me,Le,b,Pe)}return;default:if(Qd(f)){for(var hr in g)Le=g[hr],g.hasOwnProperty(hr)&&Le!==void 0&&!b.hasOwnProperty(hr)&&qi(u,f,hr,void 0,b,Le);for(Xe in b)Le=b[Xe],Pe=g[Xe],!b.hasOwnProperty(Xe)||Le===Pe||Le===void 0&&Pe===void 0||qi(u,f,Xe,Le,b,Pe);return}}for(var De in g)Le=g[De],g.hasOwnProperty(De)&&Le!=null&&!b.hasOwnProperty(De)&&Tr(u,f,De,null,b,Le);for(nt in b)Le=b[nt],Pe=g[nt],!b.hasOwnProperty(nt)||Le===Pe||Le==null&&Pe==null||Tr(u,f,nt,Le,b,Pe)}var $_=null,X0=null;function qh(u){return u.nodeType===9?u:u.ownerDocument}function Al(u){switch(u){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ku(u,f){if(u===0)switch(f){case"svg":return 1;case"math":return 2;default:return 0}return u===1&&f==="foreignObject"?0:u}function Xf(u,f){return u==="textarea"||u==="noscript"||typeof f.children=="string"||typeof f.children=="number"||typeof f.children=="bigint"||typeof f.dangerouslySetInnerHTML=="object"&&f.dangerouslySetInnerHTML!==null&&f.dangerouslySetInnerHTML.__html!=null}var kl=null;function yy(){var u=window.event;return u&&u.type==="popstate"?u===kl?!1:(kl=u,!0):(kl=null,!1)}var Tl=typeof setTimeout=="function"?setTimeout:void 0,B_=typeof clearTimeout=="function"?clearTimeout:void 0,D4=typeof Promise=="function"?Promise:void 0,L8=typeof queueMicrotask=="function"?queueMicrotask:typeof D4<"u"?function(u){return D4.resolve(null).then(u).catch(N8)}:Tl;function N8(u){setTimeout(function(){throw u})}function yo(u){return u==="head"}function M4(u,f){var g=f,b=0,A=0;do{var D=g.nextSibling;if(u.removeChild(g),D&&D.nodeType===8)if(g=D.data,g==="/$"){if(0<b&&8>b){g=b;var j=u.ownerDocument;if(g&1&&Rt(j.documentElement),g&2&&Rt(j.body),g&4)for(g=j.head,Rt(g),j=g.firstChild;j;){var K=j.nextSibling,ge=j.nodeName;j[pi]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&j.rel.toLowerCase()==="stylesheet"||g.removeChild(j),j=K}}if(A===0){u.removeChild(D),Wh(f);return}A--}else g==="$"||g==="$?"||g==="$!"?A++:b=g.charCodeAt(0)-48;else b=0;g=D}while(g);Wh(f)}function J0(u){var f=u.firstChild;for(f&&f.nodeType===10&&(f=f.nextSibling);f;){var g=f;switch(f=f.nextSibling,g.nodeName){case"HTML":case"HEAD":case"BODY":J0(g),$t(g);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(g.rel.toLowerCase()==="stylesheet")continue}u.removeChild(g)}}function L_(u,f,g,b){for(;u.nodeType===1;){var A=g;if(u.nodeName.toLowerCase()!==f.toLowerCase()){if(!b&&(u.nodeName!=="INPUT"||u.type!=="hidden"))break}else if(b){if(!u[pi])switch(f){case"meta":if(!u.hasAttribute("itemprop"))break;return u;case"link":if(D=u.getAttribute("rel"),D==="stylesheet"&&u.hasAttribute("data-precedence"))break;if(D!==A.rel||u.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||u.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||u.getAttribute("title")!==(A.title==null?null:A.title))break;return u;case"style":if(u.hasAttribute("data-precedence"))break;return u;case"script":if(D=u.getAttribute("src"),(D!==(A.src==null?null:A.src)||u.getAttribute("type")!==(A.type==null?null:A.type)||u.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&D&&u.hasAttribute("async")&&!u.hasAttribute("itemprop"))break;return u;default:return u}}else if(f==="input"&&u.type==="hidden"){var D=A.name==null?null:""+A.name;if(A.type==="hidden"&&u.getAttribute("name")===D)return u}else return u;if(u=el(u.nextSibling),u===null)break}return null}function Gh(u,f,g){if(f==="")return null;for(;u.nodeType!==3;)if((u.nodeType!==1||u.nodeName!=="INPUT"||u.type!=="hidden")&&!g||(u=el(u.nextSibling),u===null))return null;return u}function N_(u){return u.data==="$!"||u.data==="$?"&&u.ownerDocument.readyState==="complete"}function z_(u,f){var g=u.ownerDocument;if(u.data!=="$?"||g.readyState==="complete")f();else{var b=function(){f(),g.removeEventListener("DOMContentLoaded",b)};g.addEventListener("DOMContentLoaded",b),u._reactRetry=b}}function el(u){for(;u!=null;u=u.nextSibling){var f=u.nodeType;if(f===1||f===3)break;if(f===8){if(f=u.data,f==="$"||f==="$!"||f==="$?"||f==="F!"||f==="F")break;if(f==="/$")return null}}return u}var F_=null;function Jf(u){u=u.previousSibling;for(var f=0;u;){if(u.nodeType===8){var g=u.data;if(g==="$"||g==="$!"||g==="$?"){if(f===0)return u;f--}else g==="/$"&&f++}u=u.previousSibling}return null}function xo(u,f,g){switch(f=qh(g),u){case"html":if(u=f.documentElement,!u)throw Error(r(452));return u;case"head":if(u=f.head,!u)throw Error(r(453));return u;case"body":if(u=f.body,!u)throw Error(r(454));return u;default:throw Error(r(451))}}function Rt(u){for(var f=u.attributes;f.length;)u.removeAttributeNode(f[0]);$t(u)}var wi=new Map,_s=new Set;function no(u){return typeof u.getRootNode=="function"?u.getRootNode():u.nodeType===9?u:u.ownerDocument}var Tu=se.d;se.d={f:z8,r:xy,D:Rl,C:Ou,L:by,m:Fc,X:Ta,S:$o,M:Uc};function z8(){var u=Tu.f(),f=P0();return u||f}function xy(u){var f=Mr(u);f!==null&&f.tag===5&&f.type==="form"?n4(f):Tu.r(u)}var Ru=typeof document>"u"?null:document;function Ga(u,f,g){var b=Ru;if(b&&typeof f=="string"&&f){var A=Lr(f);A='link[rel="'+u+'"][href="'+A+'"]',typeof g=="string"&&(A+='[crossorigin="'+g+'"]'),_s.has(A)||(_s.add(A),u={rel:u,crossOrigin:g,href:f},b.querySelector(A)===null&&(f=b.createElement("link"),Ue(f,"link",u),rr(f),b.head.appendChild(f)))}}function Rl(u){Tu.D(u),Ga("dns-prefetch",u,null)}function Ou(u,f){Tu.C(u,f),Ga("preconnect",u,f)}function by(u,f,g){Tu.L(u,f,g);var b=Ru;if(b&&u&&f){var A='link[rel="preload"][as="'+Lr(f)+'"]';f==="image"&&g&&g.imageSrcSet?(A+='[imagesrcset="'+Lr(g.imageSrcSet)+'"]',typeof g.imageSizes=="string"&&(A+='[imagesizes="'+Lr(g.imageSizes)+'"]')):A+='[href="'+Lr(u)+'"]';var D=A;switch(f){case"style":D=Vh(u);break;case"script":D=ed(u)}wi.has(D)||(u=m({rel:"preload",href:f==="image"&&g&&g.imageSrcSet?void 0:u,as:f},g),wi.set(D,u),b.querySelector(A)!==null||f==="style"&&b.querySelector(eg(D))||f==="script"&&b.querySelector(tl(D))||(f=b.createElement("link"),Ue(f,"link",u),rr(f),b.head.appendChild(f)))}}function Fc(u,f){Tu.m(u,f);var g=Ru;if(g&&u){var b=f&&typeof f.as=="string"?f.as:"script",A='link[rel="modulepreload"][as="'+Lr(b)+'"][href="'+Lr(u)+'"]',D=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":D=ed(u)}if(!wi.has(D)&&(u=m({rel:"modulepreload",href:u},f),wi.set(D,u),g.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(g.querySelector(tl(D)))return}b=g.createElement("link"),Ue(b,"link",u),rr(b),g.head.appendChild(b)}}}function $o(u,f,g){Tu.S(u,f,g);var b=Ru;if(b&&u){var A=Ti(b).hoistableStyles,D=Vh(u);f=f||"default";var j=A.get(D);if(!j){var K={loading:0,preload:null};if(j=b.querySelector(eg(D)))K.loading=5;else{u=m({rel:"stylesheet",href:u,"data-precedence":f},g),(g=wi.get(D))&&j_(u,g);var ge=j=b.createElement("link");rr(ge),Ue(ge,"link",u),ge._p=new Promise(function(Me,Xe){ge.onload=Me,ge.onerror=Xe}),ge.addEventListener("load",function(){K.loading|=1}),ge.addEventListener("error",function(){K.loading|=2}),K.loading|=4,wy(j,f,b)}j={type:"stylesheet",instance:j,count:1,state:K},A.set(D,j)}}}function Ta(u,f){Tu.X(u,f);var g=Ru;if(g&&u){var b=Ti(g).hoistableScripts,A=ed(u),D=b.get(A);D||(D=g.querySelector(tl(A)),D||(u=m({src:u,async:!0},f),(f=wi.get(A))&&Cy(u,f),D=g.createElement("script"),rr(D),Ue(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(A,D))}}function Uc(u,f){Tu.M(u,f);var g=Ru;if(g&&u){var b=Ti(g).hoistableScripts,A=ed(u),D=b.get(A);D||(D=g.querySelector(tl(A)),D||(u=m({src:u,async:!0,type:"module"},f),(f=wi.get(A))&&Cy(u,f),D=g.createElement("script"),rr(D),Ue(D,"link",u),g.head.appendChild(D)),D={type:"script",instance:D,count:1,state:null},b.set(A,D))}}function _y(u,f,g,b){var A=(A=ke.current)?no(A):null;if(!A)throw Error(r(446));switch(u){case"meta":case"title":return null;case"style":return typeof g.precedence=="string"&&typeof g.href=="string"?(f=Vh(g.href),g=Ti(A).hoistableStyles,b=g.get(f),b||(b={type:"style",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(g.rel==="stylesheet"&&typeof g.href=="string"&&typeof g.precedence=="string"){u=Vh(g.href);var D=Ti(A).hoistableStyles,j=D.get(u);if(j||(A=A.ownerDocument||A,j={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},D.set(u,j),(D=A.querySelector(eg(u)))&&!D._p&&(j.instance=D,j.state.loading=5),wi.has(u)||(g={rel:"preload",as:"style",href:g.href,crossOrigin:g.crossOrigin,integrity:g.integrity,media:g.media,hrefLang:g.hrefLang,referrerPolicy:g.referrerPolicy},wi.set(u,g),D||tg(A,u,g,j.state))),f&&b===null)throw Error(r(528,""));return j}if(f&&b!==null)throw Error(r(529,""));return null;case"script":return f=g.async,g=g.src,typeof g=="string"&&f&&typeof f!="function"&&typeof f!="symbol"?(f=ed(g),g=Ti(A).hoistableScripts,b=g.get(f),b||(b={type:"script",instance:null,count:0,state:null},g.set(f,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,u))}}function Vh(u){return'href="'+Lr(u)+'"'}function eg(u){return'link[rel="stylesheet"]['+u+"]"}function U_(u){return m({},u,{"data-precedence":u.precedence,precedence:null})}function tg(u,f,g,b){u.querySelector('link[rel="preload"][as="style"]['+f+"]")?b.loading=1:(f=u.createElement("link"),b.preload=f,f.addEventListener("load",function(){return b.loading|=1}),f.addEventListener("error",function(){return b.loading|=2}),Ue(f,"link",g),rr(f),u.head.appendChild(f))}function ed(u){return'[src="'+Lr(u)+'"]'}function tl(u){return"script[async]"+u}function Sy(u,f,g){if(f.count++,f.instance===null)switch(f.type){case"style":var b=u.querySelector('style[data-href~="'+Lr(g.href)+'"]');if(b)return f.instance=b,rr(b),b;var A=m({},g,{"data-href":g.href,"data-precedence":g.precedence,href:null,precedence:null});return b=(u.ownerDocument||u).createElement("style"),rr(b),Ue(b,"style",A),wy(b,g.precedence,u),f.instance=b;case"stylesheet":A=Vh(g.href);var D=u.querySelector(eg(A));if(D)return f.state.loading|=4,f.instance=D,rr(D),D;b=U_(g),(A=wi.get(A))&&j_(b,A),D=(u.ownerDocument||u).createElement("link"),rr(D);var j=D;return j._p=new Promise(function(K,ge){j.onload=K,j.onerror=ge}),Ue(D,"link",b),f.state.loading|=4,wy(D,g.precedence,u),f.instance=D;case"script":return D=ed(g.src),(A=u.querySelector(tl(D)))?(f.instance=A,rr(A),A):(b=g,(A=wi.get(D))&&(b=m({},g),Cy(b,A)),u=u.ownerDocument||u,A=u.createElement("script"),rr(A),Ue(A,"link",b),u.head.appendChild(A),f.instance=A);case"void":return null;default:throw Error(r(443,f.type))}else f.type==="stylesheet"&&(f.state.loading&4)===0&&(b=f.instance,f.state.loading|=4,wy(b,g.precedence,u));return f.instance}function wy(u,f,g){for(var b=g.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,D=A,j=0;j<b.length;j++){var K=b[j];if(K.dataset.precedence===f)D=K;else if(D!==A)break}D?D.parentNode.insertBefore(u,D.nextSibling):(f=g.nodeType===9?g.head:g,f.insertBefore(u,f.firstChild))}function j_(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.title==null&&(u.title=f.title)}function Cy(u,f){u.crossOrigin==null&&(u.crossOrigin=f.crossOrigin),u.referrerPolicy==null&&(u.referrerPolicy=f.referrerPolicy),u.integrity==null&&(u.integrity=f.integrity)}var ng=null;function Yh(u,f,g){if(ng===null){var b=new Map,A=ng=new Map;A.set(g,b)}else A=ng,b=A.get(g),b||(b=new Map,A.set(g,b));if(b.has(u))return b;for(b.set(u,null),g=g.getElementsByTagName(u),A=0;A<g.length;A++){var D=g[A];if(!(D[pi]||D[vn]||u==="link"&&D.getAttribute("rel")==="stylesheet")&&D.namespaceURI!=="http://www.w3.org/2000/svg"){var j=D.getAttribute(f)||"";j=u+j;var K=b.get(j);K?K.push(D):b.set(j,[D])}}return b}function H_(u,f,g){u=u.ownerDocument||u,u.head.insertBefore(g,f==="title"?u.querySelector("head > title"):null)}function I4(u,f,g){if(g===1||f.itemProp!=null)return!1;switch(u){case"meta":case"title":return!0;case"style":if(typeof f.precedence!="string"||typeof f.href!="string"||f.href==="")break;return!0;case"link":if(typeof f.rel!="string"||typeof f.href!="string"||f.href===""||f.onLoad||f.onError)break;switch(f.rel){case"stylesheet":return u=f.disabled,typeof f.precedence=="string"&&u==null;default:return!0}case"script":if(f.async&&typeof f.async!="function"&&typeof f.async!="symbol"&&!f.onLoad&&!f.onError&&f.src&&typeof f.src=="string")return!0}return!1}function P_(u){return!(u.type==="stylesheet"&&(u.state.loading&3)===0)}var Zh=null;function $4(){}function B4(u,f,g){if(Zh===null)throw Error(r(475));var b=Zh;if(f.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(f.state.loading&4)===0){if(f.instance===null){var A=Vh(g.href),D=u.querySelector(eg(A));if(D){u=D._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(b.count++,b=Qh.bind(b),u.then(b,b)),f.state.loading|=4,f.instance=D,rr(D);return}D=u.ownerDocument||u,g=U_(g),(A=wi.get(A))&&j_(g,A),D=D.createElement("link"),rr(D);var j=D;j._p=new Promise(function(K,ge){j.onload=K,j.onerror=ge}),Ue(D,"link",g),f.instance=D}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(f,u),(u=f.state.preload)&&(f.state.loading&3)===0&&(b.count++,f=Qh.bind(b),u.addEventListener("load",f),u.addEventListener("error",f))}}function L4(){if(Zh===null)throw Error(r(475));var u=Zh;return u.stylesheets&&u.count===0&&ig(u,u.stylesheets),0<u.count?function(f){var g=setTimeout(function(){if(u.stylesheets&&ig(u,u.stylesheets),u.unsuspend){var b=u.unsuspend;u.unsuspend=null,b()}},6e4);return u.unsuspend=f,function(){u.unsuspend=null,clearTimeout(g)}}:null}function Qh(){if(this.count--,this.count===0){if(this.stylesheets)ig(this,this.stylesheets);else if(this.unsuspend){var u=this.unsuspend;this.unsuspend=null,u()}}}var rg=null;function ig(u,f){u.stylesheets=null,u.unsuspend!==null&&(u.count++,rg=new Map,f.forEach(q_,u),rg=null,Qh.call(u))}function q_(u,f){if(!(f.state.loading&4)){var g=rg.get(u);if(g)var b=g.get(null);else{g=new Map,rg.set(u,g);for(var A=u.querySelectorAll("link[data-precedence],style[data-precedence]"),D=0;D<A.length;D++){var j=A[D];(j.nodeName==="LINK"||j.getAttribute("media")!=="not all")&&(g.set(j.dataset.precedence,j),b=j)}b&&g.set(null,b)}A=f.instance,j=A.getAttribute("data-precedence"),D=g.get(j)||b,D===b&&g.set(null,A),g.set(j,A),this.count++,b=Qh.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),D?D.parentNode.insertBefore(A,D.nextSibling):(u=u.nodeType===9?u.head:u,u.insertBefore(A,u.firstChild)),f.state.loading|=4}}var bo={$$typeof:R,Provider:null,Consumer:null,_currentValue:he,_currentValue2:he,_threadCount:0};function Ol(u,f,g,b,A,D,j,K){this.tag=1,this.containerInfo=u,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=D,this.onRecoverableError=j,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=K,this.incompleteTransitions=new Map}function N4(u,f,g,b,A,D,j,K,ge,Me,Xe,nt){return u=new Ol(u,f,g,j,K,ge,Me,nt),f=1,D===!0&&(f|=24),D=ha(3,null,null,f),u.current=D,D.stateNode=u,f=Sb(),f.refCount++,u.pooledCache=f,f.refCount++,D.memoizedState={element:b,isDehydrated:g,cache:f},x0(D),u}function G_(u){return u?(u=If,u):If}function V_(u,f,g,b,A,D){A=G_(A),b.context===null?b.context=A:b.pendingContext=A,b=hu(f),b.payload={element:g},D=D===void 0?null:D,D!==null&&(b.callback=D),g=ma(u,b,f),g!==null&&(Aa(g,u,f),Lf(g,u,f))}function Y_(u,f){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var g=u.retryLane;u.retryLane=g!==0&&g<f?g:f}}function Ey(u,f){Y_(u,f),(u=u.alternate)&&Y_(u,f)}function Z_(u){if(u.tag===13){var f=su(u,67108864);f!==null&&Aa(f,u,67108864),Ey(u,67108864)}}var og=!0;function z4(u,f,g,b){var A=ee.T;ee.T=null;var D=se.p;try{se.p=2,Ay(u,f,g,b)}finally{se.p=D,ee.T=A}}function F4(u,f,g,b){var A=ee.T;ee.T=null;var D=se.p;try{se.p=8,Ay(u,f,g,b)}finally{se.p=D,ee.T=A}}function Ay(u,f,g,b){if(og){var A=Q_(b);if(A===null)K0(u,f,b,ag,g),W_(u,b);else if(X_(A,u,f,g,b))b.stopPropagation();else if(W_(u,b),f&4&&-1<F8.indexOf(u)){for(;A!==null;){var D=Mr(A);if(D!==null)switch(D.tag){case 3:if(D=D.stateNode,D.current.memoizedState.isDehydrated){var j=It(D.pendingLanes);if(j!==0){var K=D;for(K.pendingLanes|=2,K.entangledLanes|=2;j;){var ge=1<<31-yt(j);K.entanglements[1]|=ge,j&=~ge}Js(D),(vr&6)===0&&(Xv=ne()+500,Eu(0))}}break;case 13:K=su(D,2),K!==null&&Aa(K,D,2),P0(),Ey(D,2)}if(D=Q_(b),D===null&&K0(u,f,b,ag,g),D===A)break;A=D}A!==null&&b.stopPropagation()}else K0(u,f,b,null,g)}}function Q_(u){return u=bf(u),K_(u)}var ag=null;function K_(u){if(ag=null,u=li(u),u!==null){var f=a(u);if(f===null)u=null;else{var g=f.tag;if(g===13){if(u=l(f),u!==null)return u;u=null}else if(g===3){if(f.stateNode.current.memoizedState.isDehydrated)return f.tag===3?f.stateNode.containerInfo:null;u=null}else f!==u&&(u=null)}}return ag=u,null}function U4(u){switch(u){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(le()){case _e:return 2;case Fe:return 8;case be:case Be:return 32;case at:return 268435456;default:return 32}default:return 32}}var ky=!1,nl=null,Dl=null,Du=null,Kh=new Map,sg=new Map,jc=[],F8="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".split(" ");function W_(u,f){switch(u){case"focusin":case"focusout":nl=null;break;case"dragenter":case"dragleave":Dl=null;break;case"mouseover":case"mouseout":Du=null;break;case"pointerover":case"pointerout":Kh.delete(f.pointerId);break;case"gotpointercapture":case"lostpointercapture":sg.delete(f.pointerId)}}function Ml(u,f,g,b,A,D){return u===null||u.nativeEvent!==D?(u={blockedOn:f,domEventName:g,eventSystemFlags:b,nativeEvent:D,targetContainers:[A]},f!==null&&(f=Mr(f),f!==null&&Z_(f)),u):(u.eventSystemFlags|=b,f=u.targetContainers,A!==null&&f.indexOf(A)===-1&&f.push(A),u)}function X_(u,f,g,b,A){switch(f){case"focusin":return nl=Ml(nl,u,f,g,b,A),!0;case"dragenter":return Dl=Ml(Dl,u,f,g,b,A),!0;case"mouseover":return Du=Ml(Du,u,f,g,b,A),!0;case"pointerover":var D=A.pointerId;return Kh.set(D,Ml(Kh.get(D)||null,u,f,g,b,A)),!0;case"gotpointercapture":return D=A.pointerId,sg.set(D,Ml(sg.get(D)||null,u,f,g,b,A)),!0}return!1}function J_(u){var f=li(u.target);if(f!==null){var g=a(f);if(g!==null){if(f=g.tag,f===13){if(f=l(g),f!==null){u.blockedOn=f,Ui(u.priority,function(){if(g.tag===13){var b=Pa();b=Dt(b);var A=su(g,b);A!==null&&Aa(A,g,b),Ey(g,b)}});return}}else if(f===3&&g.stateNode.current.memoizedState.isDehydrated){u.blockedOn=g.tag===3?g.stateNode.containerInfo:null;return}}}u.blockedOn=null}function lg(u){if(u.blockedOn!==null)return!1;for(var f=u.targetContainers;0<f.length;){var g=Q_(u.nativeEvent);if(g===null){g=u.nativeEvent;var b=new g.constructor(g.type,g);Km=b,g.target.dispatchEvent(b),Km=null}else return f=Mr(g),f!==null&&Z_(f),u.blockedOn=g,!1;f.shift()}return!0}function eS(u,f,g){lg(u)&&g.delete(f)}function Ty(){ky=!1,nl!==null&&lg(nl)&&(nl=null),Dl!==null&&lg(Dl)&&(Dl=null),Du!==null&&lg(Du)&&(Du=null),Kh.forEach(eS),sg.forEach(eS)}function Mu(u,f){u.blockedOn===f&&(u.blockedOn=null,ky||(ky=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Ty)))}var Ry=null;function ug(u){Ry!==u&&(Ry=u,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ry===u&&(Ry=null);for(var f=0;f<u.length;f+=3){var g=u[f],b=u[f+1],A=u[f+2];if(typeof b!="function"){if(K_(b||g)===null)continue;break}var D=Mr(g);D!==null&&(u.splice(f,3),f-=3,Gb(D,{pending:!0,data:A,method:g.method,action:b},b,A))}}))}function Wh(u){function f(ge){return Mu(ge,u)}nl!==null&&Mu(nl,u),Dl!==null&&Mu(Dl,u),Du!==null&&Mu(Du,u),Kh.forEach(f),sg.forEach(f);for(var g=0;g<jc.length;g++){var b=jc[g];b.blockedOn===u&&(b.blockedOn=null)}for(;0<jc.length&&(g=jc[0],g.blockedOn===null);)J_(g),g.blockedOn===null&&jc.shift();if(g=(u.ownerDocument||u).$$reactFormReplay,g!=null)for(b=0;b<g.length;b+=3){var A=g[b],D=g[b+1],j=A[Qt]||null;if(typeof D=="function")j||ug(g);else if(j){var K=null;if(D&&D.hasAttribute("formAction")){if(A=D,j=D[Qt]||null)K=j.formAction;else if(K_(A)!==null)continue}else K=j.action;typeof K=="function"?g[b+1]=K:(g.splice(b,3),b-=3),ug(g)}}}function Hc(u){this._internalRoot=u}Oy.prototype.render=Hc.prototype.render=function(u){var f=this._internalRoot;if(f===null)throw Error(r(409));var g=f.current,b=Pa();V_(g,b,u,f,null,null)},Oy.prototype.unmount=Hc.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var f=u.containerInfo;V_(u.current,2,null,u,null,null),P0(),f[Br]=null}};function Oy(u){this._internalRoot=u}Oy.prototype.unstable_scheduleHydration=function(u){if(u){var f=Pn();u={blockedOn:null,target:u,priority:f};for(var g=0;g<jc.length&&f!==0&&f<jc[g].priority;g++);jc.splice(g,0,u),g===0&&J_(u)}};var j4=t.version;if(j4!=="19.1.0")throw Error(r(527,j4,"19.1.0"));se.findDOMNode=function(u){var f=u._reactInternals;if(f===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=h(f),u=u!==null?p(u):null,u=u===null?null:u.stateNode,u};var H4={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:ee,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ro=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ro.isDisabled&&ro.supportsFiber)try{ye=ro.inject(H4),He=ro}catch{}}return s1.createRoot=function(u,f){if(!o(u))throw Error(r(299));var g=!1,b="",A=Jb,D=Th,j=e_,K=null;return f!=null&&(f.unstable_strictMode===!0&&(g=!0),f.identifierPrefix!==void 0&&(b=f.identifierPrefix),f.onUncaughtError!==void 0&&(A=f.onUncaughtError),f.onCaughtError!==void 0&&(D=f.onCaughtError),f.onRecoverableError!==void 0&&(j=f.onRecoverableError),f.unstable_transitionCallbacks!==void 0&&(K=f.unstable_transitionCallbacks)),f=N4(u,1,!1,null,null,g,b,A,D,j,K,null),u[Br]=f.current,Q0(u),new Hc(f)},s1.hydrateRoot=function(u,f,g){if(!o(u))throw Error(r(299));var b=!1,A="",D=Jb,j=Th,K=e_,ge=null,Me=null;return g!=null&&(g.unstable_strictMode===!0&&(b=!0),g.identifierPrefix!==void 0&&(A=g.identifierPrefix),g.onUncaughtError!==void 0&&(D=g.onUncaughtError),g.onCaughtError!==void 0&&(j=g.onCaughtError),g.onRecoverableError!==void 0&&(K=g.onRecoverableError),g.unstable_transitionCallbacks!==void 0&&(ge=g.unstable_transitionCallbacks),g.formState!==void 0&&(Me=g.formState)),f=N4(u,1,!0,f,g??null,b,A,D,j,K,ge,Me),f.context=G_(null),g=f.current,b=Pa(),b=Dt(b),A=hu(b),A.callback=null,ma(g,A,b),g=b,f.current.lanes=g,xt(f,g),Js(f),u[Br]=f.current,Q0(u),new Oy(f)},s1.version="19.1.0",s1}var l1={},QI;function LV(){if(QI)return l1;QI=1;var e={};/**
|
|
82
82
|
* @license React
|
|
83
83
|
* react-dom-client.development.js
|
|
84
84
|
*
|
|
@@ -100,9 +100,9 @@ Error generating stack: `+X.message+`
|
|
|
100
100
|
`+v))}else if(i.debugStack!=null){var _=i.debugStack;(i=i.owner)&&_&&(s+=`
|
|
101
101
|
`+Br(_))}else break;var C=s}catch($){C=`
|
|
102
102
|
Error generating stack: `+$.message+`
|
|
103
|
-
`+$.stack}return C}function $t(i,s,c,v,_,C,$){var U=bo;li(i);try{return i!==null&&i._debugTask?i._debugTask.run(s.bind(null,c,v,_,C,$)):s(c,v,_,C,$)}finally{li(U)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function li(i){Ue.getCurrentStack=i===null?null:pi,Ol=!1,bo=i}function Mr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return Ne(i),i;default:return""}}function fo(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ti(i){var s=fo(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);Ne(i[s]);var v=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var _=c.get,C=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return _.call(this)},set:function($){Ne($),v=""+$,C.call(this,$)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return v},setValue:function($){Ne($),v=""+$},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function rr(i){i._valueTracker||(i._valueTracker=Ti(i))}function Xi(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),v="";return i&&(v=fo(i)?i.checked?"true":"false":i.value),i=v,i!==c?(s.setValue(i),!0):!1}function ho(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Bn(i){return i.replace(N4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function po(i,s){s.checked===void 0||s.defaultChecked===void 0||V_||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Po()||"A component",s.type),V_=!0),s.value===void 0||s.defaultValue===void 0||G_||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Po()||"A component",s.type),G_=!0)}function Qr(i,s,c,v,_,C,$,U){i.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?(B($,"type"),i.type=$):i.removeAttribute("type"),s!=null?$==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Mr(s)):i.value!==""+Mr(s)&&(i.value=""+Mr(s)):$!=="submit"&&$!=="reset"||i.removeAttribute("value"),s!=null?Kr(i,$,Mr(s)):c!=null?Kr(i,$,Mr(c)):v!=null&&i.removeAttribute("value"),_==null&&C!=null&&(i.defaultChecked=!!C),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?(B(U,"name"),i.name=""+Mr(U)):i.removeAttribute("name")}function ot(i,s,c,v,_,C,$,U){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(B(C,"type"),i.type=C),s!=null||c!=null){if(!(C!=="submit"&&C!=="reset"||s!=null))return;c=c!=null?""+Mr(c):"",s=s!=null?""+Mr(s):c,U||s===i.value||(i.value=s),i.defaultValue=s}v=v??_,v=typeof v!="function"&&typeof v!="symbol"&&!!v,i.checked=U?i.checked:!!v,i.defaultChecked=!!v,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(B($,"name"),i.name=$)}function Kr(i,s,c){s==="number"&&ho(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function
|
|
103
|
+
`+$.stack}return C}function $t(i,s,c,v,_,C,$){var U=bo;li(i);try{return i!==null&&i._debugTask?i._debugTask.run(s.bind(null,c,v,_,C,$)):s(c,v,_,C,$)}finally{li(U)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function li(i){Ue.getCurrentStack=i===null?null:pi,Ol=!1,bo=i}function Mr(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return Ne(i),i;default:return""}}function fo(i){var s=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function Ti(i){var s=fo(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,s);Ne(i[s]);var v=""+i[s];if(!i.hasOwnProperty(s)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var _=c.get,C=c.set;return Object.defineProperty(i,s,{configurable:!0,get:function(){return _.call(this)},set:function($){Ne($),v=""+$,C.call(this,$)}}),Object.defineProperty(i,s,{enumerable:c.enumerable}),{getValue:function(){return v},setValue:function($){Ne($),v=""+$},stopTracking:function(){i._valueTracker=null,delete i[s]}}}}function rr(i){i._valueTracker||(i._valueTracker=Ti(i))}function Xi(i){if(!i)return!1;var s=i._valueTracker;if(!s)return!0;var c=s.getValue(),v="";return i&&(v=fo(i)?i.checked?"true":"false":i.value),i=v,i!==c?(s.setValue(i),!0):!1}function ho(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}function Bn(i){return i.replace(N4,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function po(i,s){s.checked===void 0||s.defaultChecked===void 0||V_||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Po()||"A component",s.type),V_=!0),s.value===void 0||s.defaultValue===void 0||G_||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Po()||"A component",s.type),G_=!0)}function Qr(i,s,c,v,_,C,$,U){i.name="",$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"?(B($,"type"),i.type=$):i.removeAttribute("type"),s!=null?$==="number"?(s===0&&i.value===""||i.value!=s)&&(i.value=""+Mr(s)):i.value!==""+Mr(s)&&(i.value=""+Mr(s)):$!=="submit"&&$!=="reset"||i.removeAttribute("value"),s!=null?Kr(i,$,Mr(s)):c!=null?Kr(i,$,Mr(c)):v!=null&&i.removeAttribute("value"),_==null&&C!=null&&(i.defaultChecked=!!C),_!=null&&(i.checked=_&&typeof _!="function"&&typeof _!="symbol"),U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?(B(U,"name"),i.name=""+Mr(U)):i.removeAttribute("name")}function ot(i,s,c,v,_,C,$,U){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(B(C,"type"),i.type=C),s!=null||c!=null){if(!(C!=="submit"&&C!=="reset"||s!=null))return;c=c!=null?""+Mr(c):"",s=s!=null?""+Mr(s):c,U||s===i.value||(i.value=s),i.defaultValue=s}v=v??_,v=typeof v!="function"&&typeof v!="symbol"&&!!v,i.checked=U?i.checked:!!v,i.defaultChecked=!!v,$!=null&&typeof $!="function"&&typeof $!="symbol"&&typeof $!="boolean"&&(B($,"name"),i.name=$)}function Kr(i,s,c){s==="number"&&ho(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Re(i,s){s.value==null&&(typeof s.children=="object"&&s.children!==null?I_.Children.forEach(s.children,function(c){c==null||typeof c=="string"||typeof c=="number"||typeof c=="bigint"||Ey||(Ey=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):s.dangerouslySetInnerHTML==null||Z_||(Z_=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),s.selected==null||Y_||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Y_=!0)}function ce(){var i=Po();return i?`
|
|
104
104
|
|
|
105
|
-
Check the render method of \``+i+"`.":""}function
|
|
105
|
+
Check the render method of \``+i+"`.":""}function Oe(i,s,c,v){if(i=i.options,s){s={};for(var _=0;_<c.length;_++)s["$"+c[_]]=!0;for(c=0;c<i.length;c++)_=s.hasOwnProperty("$"+i[c].value),i[c].selected!==_&&(i[c].selected=_),_&&v&&(i[c].defaultSelected=!0)}else{for(c=""+Mr(c),s=null,_=0;_<i.length;_++){if(i[_].value===c){i[_].selected=!0,v&&(i[_].defaultSelected=!0);return}s!==null||i[_].disabled||(s=i[_])}s!==null&&(s.selected=!0)}}function P(i,s){for(i=0;i<z4.length;i++){var c=z4[i];if(s[c]!=null){var v=qi(s[c]);s.multiple&&!v?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",c,ce()):!s.multiple&&v&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",c,ce())}}s.value===void 0||s.defaultValue===void 0||og||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),og=!0)}function W(i,s){s.value===void 0||s.defaultValue===void 0||F4||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Po()||"A component"),F4=!0),s.children!=null&&s.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function ue(i,s,c){if(s!=null&&(s=""+Mr(s),s!==i.value&&(i.value=s),c==null)){i.defaultValue!==s&&(i.defaultValue=s);return}i.defaultValue=c!=null?""+Mr(c):""}function xe(i,s,c,v){if(s==null){if(v!=null){if(c!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(qi(v)){if(1<v.length)throw Error("<textarea> can only have at most one child.");v=v[0]}c=v}c==null&&(c=""),s=c}c=Mr(s),i.defaultValue=c,v=i.textContent,v===c&&v!==""&&v!==null&&(i.value=v)}function Ae(i,s){return i.serverProps===void 0&&i.serverTail.length===0&&i.children.length===1&&3<i.distanceFromLeaf&&i.distanceFromLeaf>15-s?Ae(i.children[0],s):i}function Ze(i){return" "+" ".repeat(i)}function Tt(i){return"+ "+" ".repeat(i)}function tn(i){return"- "+" ".repeat(i)}function an(i){switch(i.tag){case 26:case 27:case 5:return i.type;case 16:return"Lazy";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return i=i.type,i.displayName||i.name||null;case 11:return i=i.type.render,i.displayName||i.name||null;case 1:return i=i.type,i.displayName||i.name||null;default:return null}}function Sn(i,s){return Ay.test(i)?(i=JSON.stringify(i),i.length>s-2?8>s?'{"..."}':"{"+i.slice(0,s-7)+'..."}':"{"+i+"}"):i.length>s?5>s?'{"..."}':i.slice(0,s-3)+"...":i}function en(i,s,c){var v=120-2*c;if(s===null)return Tt(c)+Sn(i,v)+`
|
|
106
106
|
`;if(typeof s=="string"){for(var _=0;_<s.length&&_<i.length&&s.charCodeAt(_)===i.charCodeAt(_);_++);return _>v-8&&10<_&&(i="..."+i.slice(_-8),s="..."+s.slice(_-8)),Tt(c)+Sn(i,v)+`
|
|
107
107
|
`+tn(c)+Sn(s,v)+`
|
|
108
108
|
`}return Ze(c)+Sn(i,v)+`
|
|
@@ -138,7 +138,7 @@ This will cause a hydration error.%s`,$,v,c,C)):console.error(`In HTML, %s canno
|
|
|
138
138
|
This will cause a hydration error.%s`,$,v,C),s&&(i=s.return,_===null||i===null||_===i&&i._debugOwner===s._debugOwner||$t(_,function(){console.error(`<%s> cannot contain a nested %s.
|
|
139
139
|
See this log for the ancestor stack trace.`,v,$)})),!1}function Qd(i,s,c){if(c||xf("#text",s,!1))return!0;if(c="#text|"+s,nl[c])return!1;nl[c]=!0;var v=(c=bo)?Jx(c,s):null;return c=c!==null&&v!==null?Wx(v,c,c.tag!==6?{children:null}:null):"",/\S/.test(i)?console.error(`In HTML, text nodes cannot be a child of <%s>.
|
|
140
140
|
This will cause a hydration error.%s`,s,c):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
|
|
141
|
-
This will cause a hydration error.%s`,s,c),!1}function Wp(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}function b8(i){return i.replace(F8,function(s,c){return c.toUpperCase()})}function Xp(i,s,c){var v=s.indexOf("--")===0;v||(-1<s.indexOf("-")?Ml.hasOwnProperty(s)&&Ml[s]||(Ml[s]=!0,console.error("Unsupported style property %s. Did you mean %s?",s,b8(s.replace(jc,"ms-")))):sg.test(s)?Ml.hasOwnProperty(s)&&Ml[s]||(Ml[s]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1))):!W_.test(c)||X_.hasOwnProperty(c)&&X_[c]||(X_[c]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(W_,""))),typeof c=="number"&&(isNaN(c)?J_||(J_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",s)):isFinite(c)||lg||(lg=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",s)))),c==null||typeof c=="boolean"||c===""?v?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":v?i.setProperty(s,c):typeof c!="number"||c===0||eS.has(s)?s==="float"?i.cssFloat=c:(de(c,s),i[s]=(""+c).trim()):i[s]=c+"px"}function Km(i,s,c){if(s!=null&&typeof s!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(s&&Object.freeze(s),i=i.style,c!=null){if(s){var v={};if(c){for(var _ in c)if(c.hasOwnProperty(_)&&!s.hasOwnProperty(_))for(var C=Dl[_]||[_],$=0;$<C.length;$++)v[C[$]]=_}for(var U in s)if(s.hasOwnProperty(U)&&(!c||c[U]!==s[U]))for(_=Dl[U]||[U],C=0;C<_.length;C++)v[_[C]]=U;U={};for(var X in s)for(_=Dl[X]||[X],C=0;C<_.length;C++)U[_[C]]=X;X={};for(var ie in v)if(_=v[ie],(C=U[ie])&&_!==C&&($=_+","+C,!X[$])){X[$]=!0,$=console;var je=s[_];$.error.call($,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",je==null||typeof je=="boolean"||je===""?"Removing":"Updating",_,C)}}for(var Ye in c)!c.hasOwnProperty(Ye)||s!=null&&s.hasOwnProperty(Ye)||(Ye.indexOf("--")===0?i.setProperty(Ye,""):Ye==="float"?i.cssFloat="":i[Ye]="");for(var ze in s)ie=s[ze],s.hasOwnProperty(ze)&&c[ze]!==ie&&Xp(i,ze,ie)}else for(v in s)s.hasOwnProperty(v)&&Xp(i,v,s[v])}function bf(i){if(i.indexOf("-")===-1)return!1;switch(i){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}}function _f(i){return Ry.get(i)||i}function Kd(i,s){if(Tl.call(Hc,s)&&Hc[s])return!0;if(j4.test(s)){if(i="aria-"+s.slice(4).toLowerCase(),i=Wh.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Hc[s]=!0;if(s!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,i),Hc[s]=!0}if(Oy.test(s)){if(i=s.toLowerCase(),i=Wh.hasOwnProperty(i)?i:null,i==null)return Hc[s]=!0,!1;s!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,i),Hc[s]=!0)}return!0}function zT(i,s){var c=[],v;for(v in s)Kd(i,v)||c.push(v);s=c.map(function(_){return"`"+_+"`"}).join(", "),c.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,i):1<c.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,i)}function eb(i,s,c,v){if(Tl.call(ro,s)&&ro[s])return!0;var _=s.toLowerCase();if(_==="onfocusin"||_==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ro[s]=!0;if(typeof c=="function"&&(i==="form"&&s==="action"||i==="input"&&s==="formAction"||i==="button"&&s==="formAction"))return!0;if(v!=null){if(i=v.possibleRegistrationNames,v.registrationNameDependencies.hasOwnProperty(s))return!0;if(v=i.hasOwnProperty(_)?i[_]:null,v!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",s,v),ro[s]=!0;if(u.test(s))return console.error("Unknown event handler property `%s`. It will be ignored.",s),ro[s]=!0}else if(u.test(s))return f.test(s)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),ro[s]=!0;if(g.test(s)||b.test(s))return!0;if(_==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ro[s]=!0;if(_==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ro[s]=!0;if(_==="is"&&c!==null&&c!==void 0&&typeof c!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),ro[s]=!0;if(typeof c=="number"&&isNaN(c))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),ro[s]=!0;if(ug.hasOwnProperty(_)){if(_=ug[_],_!==s)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",s,_),ro[s]=!0}else if(s!==_)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,_),ro[s]=!0;switch(s){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof c){case"boolean":switch(s){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return _=s.toLowerCase().slice(0,5),_==="data-"||_==="aria-"?!0:(c?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),ro[s]=!0)}case"function":case"symbol":return ro[s]=!0,!1;case"string":if(c==="false"||c==="true"){switch(s){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),ro[s]=!0}}return!0}function FT(i,s,c){var v=[],_;for(_ in s)eb(i,_,s[_],c)||v.push(_);s=v.map(function(C){return"`"+C+"`"}).join(", "),v.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,i):1<v.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,i)}function ru(i){return A.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ms(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function Wm(i){var s=jt(i);if(s&&(i=s.stateNode)){var c=i[Ta]||null;e:switch(i=s.stateNode,s.type){case"input":if(Qr(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(B(s,"name"),c=c.querySelectorAll('input[name="'+Bn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var v=c[s];if(v!==i&&v.form===i.form){var _=v[Ta]||null;if(!_)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Qr(v,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(s=0;s<c.length;s++)v=c[s],v.form===i.form&&Xi(v)}break e;case"textarea":ue(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Re(i,!!c.multiple,s,!1)}}}function Wd(i,s,c){if(ge)return i(s,c);ge=!0;try{var v=i(s);return v}finally{if(ge=!1,(j!==null||K!==null)&&(qf(),j&&(s=j,i=K,K=j=null,Wm(s),i)))for(s=0;s<i.length;s++)Wm(i[s])}}function cs(i,s){var c=i.stateNode;if(c===null)return null;var v=c[Ta]||null;if(v===null)return null;c=v[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(i=i.type,v=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!v;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error("Expected `"+s+"` listener to be a function, instead got a value of `"+typeof c+"` type.");return c}function Xm(){if(rn)return rn;var i,s=Pe,c=s.length,v,_="value"in Le?Le.value:Le.textContent,C=_.length;for(i=0;i<c&&s[i]===_[i];i++);var $=c-i;for(v=1;v<=$&&s[c-v]===_[C-v];v++);return rn=_.slice(i,1<v?1-v:void 0)}function Sf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Jp(){return!0}function e0(){return!1}function go(i){function s(c,v,_,C,$){this._reactName=c,this._targetInst=_,this.type=v,this.nativeEvent=C,this.target=$,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(c=i[U],this[U]=c?c(C):C[U]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Jp:e0,this.isPropagationStopped=e0,this}return fn(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Jp)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Jp)},persist:function(){},isPersistent:Jp}),s}function UT(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Rve[i])?!!s[i]:!1}function Oo(){return UT}function uc(i,s){switch(i){case"keyup":return jve.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==Mq;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}function n0(i,s){switch(i){case"compositionend":return t0(s);case"keypress":return s.which!==$q?null:(Lq=!0,Bq);case"textInput":return i=s.data,i===Bq&&Lq?null:i;default:return null}}function _8(i,s){if(Dy)return i==="compositionend"||!j8&&uc(i,s)?(i=Xm(),rn=Pe=Le=null,Dy=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Iq&&s.locale!=="ko"?null:s.data;default:return null}}function Jm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!Pve[i.type]:s==="textarea"}function tb(i){if(!Me)return!1;i="on"+i;var s=i in document;return s||(s=document.createElement("div"),s.setAttribute(i,"return;"),s=typeof s[i]=="function"),s}function Xd(i,s,c,v){j?K?K.push(v):K=[v]:j=v,s=Io(s,"onChange"),0<s.length&&(c=new hr("onChange","change",null,c,v),i.push({event:c,listeners:s}))}function ev(i){v_(i,0)}function r0(i){var s=vt(i);if(Xi(s))return i}function jT(i,s){if(i==="change")return s}function HT(){nS&&(nS.detachEvent("onpropertychange",PT),rS=nS=null)}function PT(i){if(i.propertyName==="value"&&r0(rS)){var s=[];Xd(s,rS,i,Ms(i)),Wd(ev,s)}}function nb(i,s,c){i==="focusin"?(HT(),nS=s,rS=c,nS.attachEvent("onpropertychange",PT)):i==="focusout"&&HT()}function S8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return r0(rS)}function w8(i,s){if(i==="click")return r0(s)}function C8(i,s){if(i==="input"||i==="change")return r0(s)}function E8(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}function i0(i,s){if(Va(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),v=Object.keys(s);if(c.length!==v.length)return!1;for(v=0;v<c.length;v++){var _=c[v];if(!Tl.call(s,_)||!Va(i[_],s[_]))return!1}return!0}function rb(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qT(i,s){var c=rb(i);i=0;for(var v;c;){if(c.nodeType===3){if(v=i+c.textContent.length,i<=s&&v>=s)return{node:c,offset:s-i};i=v}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=rb(c)}}function GT(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?GT(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function VT(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=ho(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=ho(i.document)}return s}function ib(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function tv(i,s,c){var v=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;P8||My==null||My!==ho(v)||(v=My,"selectionStart"in v&&ib(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),iS&&i0(iS,v)||(iS=v,v=Io(H8,"onSelect"),0<v.length&&(s=new hr("onSelect","select",null,s,c),i.push({event:s,listeners:v}),s.target=My)))}function wf(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}function Cf(i){if(q8[i])return q8[i];if(!Iy[i])return i;var s=Iy[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in zq)return q8[i]=s[c];return i}function Is(i,s){Pq.set(i,s),tt(s,[i])}function ca(i,s){if(typeof i=="object"&&i!==null){var c=V8.get(i);return c!==void 0?c:(s={value:i,source:s,stack:la(s)},V8.set(i,s),s)}return{value:i,source:s,stack:la(s)}}function nv(){for(var i=$y,s=Y8=$y=0;s<i;){var c=$l[s];$l[s++]=null;var v=$l[s];$l[s++]=null;var _=$l[s];$l[s++]=null;var C=$l[s];if($l[s++]=null,v!==null&&_!==null){var $=v.pending;$===null?_.next=_:(_.next=$.next,$.next=_),v.pending=_}C!==0&&YT(c,_,C)}}function rv(i,s,c,v){$l[$y++]=i,$l[$y++]=s,$l[$y++]=c,$l[$y++]=v,Y8|=v,i.lanes|=v,i=i.alternate,i!==null&&(i.lanes|=v)}function ob(i,s,c,v){return rv(i,s,c,v),iv(i)}function fa(i,s){return rv(i,null,null,s),iv(i)}function YT(i,s,c){i.lanes|=c;var v=i.alternate;v!==null&&(v.lanes|=c);for(var _=!1,C=i.return;C!==null;)C.childLanes|=c,v=C.alternate,v!==null&&(v.childLanes|=c),C.tag===22&&(i=C.stateNode,i===null||i._visibility&P4||(_=!0)),i=C,C=C.return;return i.tag===3?(C=i.stateNode,_&&s!==null&&(_=31-no(c),i=C.hiddenUpdates,v=i[_],v===null?i[_]=[s]:v.push(s),s.lane=c|536870912),C):null}function iv(i){if(AS>dye)throw Sg=AS=0,kS=wI=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Sg>hye&&(Sg=0,kS=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&h_(i);for(var s=i,c=s.return;c!==null;)s.alternate===null&&(s.flags&4098)!==0&&h_(i),s=c,c=s.return;return s.tag===3?s.stateNode:null}function Ef(i){if(Bl===null)return i;var s=Bl(i);return s===void 0?i:s.current}function ab(i){if(Bl===null)return i;var s=Bl(i);return s===void 0?i!=null&&typeof i.render=="function"&&(s=Ef(i.render),i.render!==s)?(s={$$typeof:Nc,render:s},i.displayName!==void 0&&(s.displayName=i.displayName),s):i:s.current}function ZT(i,s){if(Bl===null)return!1;var c=i.elementType;s=s.type;var v=!1,_=typeof s=="object"&&s!==null?s.$$typeof:null;switch(i.tag){case 1:typeof s=="function"&&(v=!0);break;case 0:(typeof s=="function"||_===qa)&&(v=!0);break;case 11:(_===Nc||_===qa)&&(v=!0);break;case 14:case 15:(_===my||_===qa)&&(v=!0);break;default:return!1}return!!(v&&(i=Bl(c),i!==void 0&&i===Bl(s)))}function ov(i){Bl!==null&&typeof WeakSet=="function"&&(By===null&&(By=new WeakSet),By.add(i))}function Af(i,s,c){var v=i.alternate,_=i.child,C=i.sibling,$=i.tag,U=i.type,X=null;switch($){case 0:case 15:case 1:X=U;break;case 11:X=U.render}if(Bl===null)throw Error("Expected resolveFamily to be set during hot reload.");var ie=!1;U=!1,X!==null&&(X=Bl(X),X!==void 0&&(c.has(X)?U=!0:s.has(X)&&($===1?U=!0:ie=!0))),By!==null&&(By.has(i)||v!==null&&By.has(v))&&(U=!0),U&&(i._debugNeedsRemount=!0),(U||ie)&&(v=fa(i,2),v!==null&&Mn(v,i,2)),_===null||U||Af(_,s,c),C!==null&&Af(C,s,c)}function A8(i,s,c,v){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Gq||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function av(i){return i=i.prototype,!(!i||!i.isReactComponent)}function xl(i,s){var c=i.alternate;switch(c===null?(c=S(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c._debugOwner=i._debugOwner,c._debugStack=i._debugStack,c._debugTask=i._debugTask,c._debugHookTypes=i._debugHookTypes,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null,c.actualDuration=-0,c.actualStartTime=-1.1),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c.selfBaseDuration=i.selfBaseDuration,c.treeBaseDuration=i.treeBaseDuration,c._debugInfo=i._debugInfo,c._debugNeedsRemount=i._debugNeedsRemount,c.tag){case 0:case 15:c.type=Ef(i.type);break;case 1:c.type=Ef(i.type);break;case 11:c.type=ab(i.type)}return c}function sb(i,s){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},i.selfBaseDuration=c.selfBaseDuration,i.treeBaseDuration=c.treeBaseDuration),i}function sv(i,s,c,v,_,C){var $=0,U=i;if(typeof i=="function")av(i)&&($=1),U=Ef(U);else if(typeof i=="string")$=se(),$=oy(i,c,$)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case vy:return s=S(31,c,s,_),s.elementType=vy,s.lanes=C,s;case Lc:return fs(c.children,_,C,s);case Wf:$=8,_|=Ra,_|=Iu;break;case Q0:return i=c,v=_,typeof i.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),s=S(12,i,s,v|Zo),s.elementType=Q0,s.lanes=C,s.stateNode={effectDuration:0,passiveEffectDuration:0},s;case zc:return s=S(13,c,s,_),s.elementType=zc,s.lanes=C,s;case gy:return s=S(19,c,s,_),s.elementType=gy,s.lanes=C,s;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case R4:case ka:$=10;break e;case K0:$=9;break e;case Nc:$=11,U=ab(U);break e;case my:$=14;break e;case qa:$=16,U=null;break e}U="",(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),i===null?c="null":qi(i)?c="array":i!==void 0&&i.$$typeof===Au?(c="<"+(V(i.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):c=typeof i,($=v?te(v):null)&&(U+=`
|
|
141
|
+
This will cause a hydration error.%s`,s,c),!1}function Wp(i,s){if(s){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=s;return}}i.textContent=s}function b8(i){return i.replace(F8,function(s,c){return c.toUpperCase()})}function Xp(i,s,c){var v=s.indexOf("--")===0;v||(-1<s.indexOf("-")?Ml.hasOwnProperty(s)&&Ml[s]||(Ml[s]=!0,console.error("Unsupported style property %s. Did you mean %s?",s,b8(s.replace(jc,"ms-")))):sg.test(s)?Ml.hasOwnProperty(s)&&Ml[s]||(Ml[s]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",s,s.charAt(0).toUpperCase()+s.slice(1))):!W_.test(c)||X_.hasOwnProperty(c)&&X_[c]||(X_[c]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,s,c.replace(W_,""))),typeof c=="number"&&(isNaN(c)?J_||(J_=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",s)):isFinite(c)||lg||(lg=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",s)))),c==null||typeof c=="boolean"||c===""?v?i.setProperty(s,""):s==="float"?i.cssFloat="":i[s]="":v?i.setProperty(s,c):typeof c!="number"||c===0||eS.has(s)?s==="float"?i.cssFloat=c:(de(c,s),i[s]=(""+c).trim()):i[s]=c+"px"}function Km(i,s,c){if(s!=null&&typeof s!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(s&&Object.freeze(s),i=i.style,c!=null){if(s){var v={};if(c){for(var _ in c)if(c.hasOwnProperty(_)&&!s.hasOwnProperty(_))for(var C=Dl[_]||[_],$=0;$<C.length;$++)v[C[$]]=_}for(var U in s)if(s.hasOwnProperty(U)&&(!c||c[U]!==s[U]))for(_=Dl[U]||[U],C=0;C<_.length;C++)v[_[C]]=U;U={};for(var X in s)for(_=Dl[X]||[X],C=0;C<_.length;C++)U[_[C]]=X;X={};for(var ie in v)if(_=v[ie],(C=U[ie])&&_!==C&&($=_+","+C,!X[$])){X[$]=!0,$=console;var je=s[_];$.error.call($,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",je==null||typeof je=="boolean"||je===""?"Removing":"Updating",_,C)}}for(var Ye in c)!c.hasOwnProperty(Ye)||s!=null&&s.hasOwnProperty(Ye)||(Ye.indexOf("--")===0?i.setProperty(Ye,""):Ye==="float"?i.cssFloat="":i[Ye]="");for(var ze in s)ie=s[ze],s.hasOwnProperty(ze)&&c[ze]!==ie&&Xp(i,ze,ie)}else for(v in s)s.hasOwnProperty(v)&&Xp(i,v,s[v])}function bf(i){if(i.indexOf("-")===-1)return!1;switch(i){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}}function _f(i){return Ry.get(i)||i}function Kd(i,s){if(Tl.call(Hc,s)&&Hc[s])return!0;if(j4.test(s)){if(i="aria-"+s.slice(4).toLowerCase(),i=Wh.hasOwnProperty(i)?i:null,i==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",s),Hc[s]=!0;if(s!==i)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",s,i),Hc[s]=!0}if(Oy.test(s)){if(i=s.toLowerCase(),i=Wh.hasOwnProperty(i)?i:null,i==null)return Hc[s]=!0,!1;s!==i&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",s,i),Hc[s]=!0)}return!0}function zT(i,s){var c=[],v;for(v in s)Kd(i,v)||c.push(v);s=c.map(function(_){return"`"+_+"`"}).join(", "),c.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,i):1<c.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",s,i)}function eb(i,s,c,v){if(Tl.call(ro,s)&&ro[s])return!0;var _=s.toLowerCase();if(_==="onfocusin"||_==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ro[s]=!0;if(typeof c=="function"&&(i==="form"&&s==="action"||i==="input"&&s==="formAction"||i==="button"&&s==="formAction"))return!0;if(v!=null){if(i=v.possibleRegistrationNames,v.registrationNameDependencies.hasOwnProperty(s))return!0;if(v=i.hasOwnProperty(_)?i[_]:null,v!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",s,v),ro[s]=!0;if(u.test(s))return console.error("Unknown event handler property `%s`. It will be ignored.",s),ro[s]=!0}else if(u.test(s))return f.test(s)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",s),ro[s]=!0;if(g.test(s)||b.test(s))return!0;if(_==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ro[s]=!0;if(_==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ro[s]=!0;if(_==="is"&&c!==null&&c!==void 0&&typeof c!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof c),ro[s]=!0;if(typeof c=="number"&&isNaN(c))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",s),ro[s]=!0;if(ug.hasOwnProperty(_)){if(_=ug[_],_!==s)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",s,_),ro[s]=!0}else if(s!==_)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",s,_),ro[s]=!0;switch(s){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof c){case"boolean":switch(s){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:return _=s.toLowerCase().slice(0,5),_==="data-"||_==="aria-"?!0:(c?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',c,s,s,c,s):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',c,s,s,c,s,s,s),ro[s]=!0)}case"function":case"symbol":return ro[s]=!0,!1;case"string":if(c==="false"||c==="true"){switch(s){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",c,s,c==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',s,c),ro[s]=!0}}return!0}function FT(i,s,c){var v=[],_;for(_ in s)eb(i,_,s[_],c)||v.push(_);s=v.map(function(C){return"`"+C+"`"}).join(", "),v.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,i):1<v.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",s,i)}function ru(i){return A.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Ms(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}function Wm(i){var s=jt(i);if(s&&(i=s.stateNode)){var c=i[Ta]||null;e:switch(i=s.stateNode,s.type){case"input":if(Qr(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=i;c.parentNode;)c=c.parentNode;for(B(s,"name"),c=c.querySelectorAll('input[name="'+Bn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var v=c[s];if(v!==i&&v.form===i.form){var _=v[Ta]||null;if(!_)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Qr(v,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(s=0;s<c.length;s++)v=c[s],v.form===i.form&&Xi(v)}break e;case"textarea":ue(i,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Oe(i,!!c.multiple,s,!1)}}}function Wd(i,s,c){if(ge)return i(s,c);ge=!0;try{var v=i(s);return v}finally{if(ge=!1,(j!==null||K!==null)&&(qf(),j&&(s=j,i=K,K=j=null,Wm(s),i)))for(s=0;s<i.length;s++)Wm(i[s])}}function cs(i,s){var c=i.stateNode;if(c===null)return null;var v=c[Ta]||null;if(v===null)return null;c=v[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(i=i.type,v=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!v;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error("Expected `"+s+"` listener to be a function, instead got a value of `"+typeof c+"` type.");return c}function Xm(){if(rn)return rn;var i,s=Pe,c=s.length,v,_="value"in Le?Le.value:Le.textContent,C=_.length;for(i=0;i<c&&s[i]===_[i];i++);var $=c-i;for(v=1;v<=$&&s[c-v]===_[C-v];v++);return rn=_.slice(i,1<v?1-v:void 0)}function Sf(i){var s=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&s===13&&(i=13)):i=s,i===10&&(i=13),32<=i||i===13?i:0}function Jp(){return!0}function e0(){return!1}function go(i){function s(c,v,_,C,$){this._reactName=c,this._targetInst=_,this.type=v,this.nativeEvent=C,this.target=$,this.currentTarget=null;for(var U in i)i.hasOwnProperty(U)&&(c=i[U],this[U]=c?c(C):C[U]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Jp:e0,this.isPropagationStopped=e0,this}return fn(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Jp)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Jp)},persist:function(){},isPersistent:Jp}),s}function UT(i){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(i):(i=Rve[i])?!!s[i]:!1}function Oo(){return UT}function uc(i,s){switch(i){case"keyup":return jve.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==Mq;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function t0(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}function n0(i,s){switch(i){case"compositionend":return t0(s);case"keypress":return s.which!==$q?null:(Lq=!0,Bq);case"textInput":return i=s.data,i===Bq&&Lq?null:i;default:return null}}function _8(i,s){if(Dy)return i==="compositionend"||!j8&&uc(i,s)?(i=Xm(),rn=Pe=Le=null,Dy=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return Iq&&s.locale!=="ko"?null:s.data;default:return null}}function Jm(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s==="input"?!!Pve[i.type]:s==="textarea"}function tb(i){if(!Me)return!1;i="on"+i;var s=i in document;return s||(s=document.createElement("div"),s.setAttribute(i,"return;"),s=typeof s[i]=="function"),s}function Xd(i,s,c,v){j?K?K.push(v):K=[v]:j=v,s=Io(s,"onChange"),0<s.length&&(c=new hr("onChange","change",null,c,v),i.push({event:c,listeners:s}))}function ev(i){v_(i,0)}function r0(i){var s=vt(i);if(Xi(s))return i}function jT(i,s){if(i==="change")return s}function HT(){nS&&(nS.detachEvent("onpropertychange",PT),rS=nS=null)}function PT(i){if(i.propertyName==="value"&&r0(rS)){var s=[];Xd(s,rS,i,Ms(i)),Wd(ev,s)}}function nb(i,s,c){i==="focusin"?(HT(),nS=s,rS=c,nS.attachEvent("onpropertychange",PT)):i==="focusout"&&HT()}function S8(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return r0(rS)}function w8(i,s){if(i==="click")return r0(s)}function C8(i,s){if(i==="input"||i==="change")return r0(s)}function E8(i,s){return i===s&&(i!==0||1/i===1/s)||i!==i&&s!==s}function i0(i,s){if(Va(i,s))return!0;if(typeof i!="object"||i===null||typeof s!="object"||s===null)return!1;var c=Object.keys(i),v=Object.keys(s);if(c.length!==v.length)return!1;for(v=0;v<c.length;v++){var _=c[v];if(!Tl.call(s,_)||!Va(i[_],s[_]))return!1}return!0}function rb(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function qT(i,s){var c=rb(i);i=0;for(var v;c;){if(c.nodeType===3){if(v=i+c.textContent.length,i<=s&&v>=s)return{node:c,offset:s-i};i=v}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=rb(c)}}function GT(i,s){return i&&s?i===s?!0:i&&i.nodeType===3?!1:s&&s.nodeType===3?GT(i,s.parentNode):"contains"in i?i.contains(s):i.compareDocumentPosition?!!(i.compareDocumentPosition(s)&16):!1:!1}function VT(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var s=ho(i.document);s instanceof i.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)i=s.contentWindow;else break;s=ho(i.document)}return s}function ib(i){var s=i&&i.nodeName&&i.nodeName.toLowerCase();return s&&(s==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||s==="textarea"||i.contentEditable==="true")}function tv(i,s,c){var v=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;P8||My==null||My!==ho(v)||(v=My,"selectionStart"in v&&ib(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),iS&&i0(iS,v)||(iS=v,v=Io(H8,"onSelect"),0<v.length&&(s=new hr("onSelect","select",null,s,c),i.push({event:s,listeners:v}),s.target=My)))}function wf(i,s){var c={};return c[i.toLowerCase()]=s.toLowerCase(),c["Webkit"+i]="webkit"+s,c["Moz"+i]="moz"+s,c}function Cf(i){if(q8[i])return q8[i];if(!Iy[i])return i;var s=Iy[i],c;for(c in s)if(s.hasOwnProperty(c)&&c in zq)return q8[i]=s[c];return i}function Is(i,s){Pq.set(i,s),tt(s,[i])}function ca(i,s){if(typeof i=="object"&&i!==null){var c=V8.get(i);return c!==void 0?c:(s={value:i,source:s,stack:la(s)},V8.set(i,s),s)}return{value:i,source:s,stack:la(s)}}function nv(){for(var i=$y,s=Y8=$y=0;s<i;){var c=$l[s];$l[s++]=null;var v=$l[s];$l[s++]=null;var _=$l[s];$l[s++]=null;var C=$l[s];if($l[s++]=null,v!==null&&_!==null){var $=v.pending;$===null?_.next=_:(_.next=$.next,$.next=_),v.pending=_}C!==0&&YT(c,_,C)}}function rv(i,s,c,v){$l[$y++]=i,$l[$y++]=s,$l[$y++]=c,$l[$y++]=v,Y8|=v,i.lanes|=v,i=i.alternate,i!==null&&(i.lanes|=v)}function ob(i,s,c,v){return rv(i,s,c,v),iv(i)}function fa(i,s){return rv(i,null,null,s),iv(i)}function YT(i,s,c){i.lanes|=c;var v=i.alternate;v!==null&&(v.lanes|=c);for(var _=!1,C=i.return;C!==null;)C.childLanes|=c,v=C.alternate,v!==null&&(v.childLanes|=c),C.tag===22&&(i=C.stateNode,i===null||i._visibility&P4||(_=!0)),i=C,C=C.return;return i.tag===3?(C=i.stateNode,_&&s!==null&&(_=31-no(c),i=C.hiddenUpdates,v=i[_],v===null?i[_]=[s]:v.push(s),s.lane=c|536870912),C):null}function iv(i){if(AS>dye)throw Sg=AS=0,kS=wI=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Sg>hye&&(Sg=0,kS=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),i.alternate===null&&(i.flags&4098)!==0&&h_(i);for(var s=i,c=s.return;c!==null;)s.alternate===null&&(s.flags&4098)!==0&&h_(i),s=c,c=s.return;return s.tag===3?s.stateNode:null}function Ef(i){if(Bl===null)return i;var s=Bl(i);return s===void 0?i:s.current}function ab(i){if(Bl===null)return i;var s=Bl(i);return s===void 0?i!=null&&typeof i.render=="function"&&(s=Ef(i.render),i.render!==s)?(s={$$typeof:Nc,render:s},i.displayName!==void 0&&(s.displayName=i.displayName),s):i:s.current}function ZT(i,s){if(Bl===null)return!1;var c=i.elementType;s=s.type;var v=!1,_=typeof s=="object"&&s!==null?s.$$typeof:null;switch(i.tag){case 1:typeof s=="function"&&(v=!0);break;case 0:(typeof s=="function"||_===qa)&&(v=!0);break;case 11:(_===Nc||_===qa)&&(v=!0);break;case 14:case 15:(_===my||_===qa)&&(v=!0);break;default:return!1}return!!(v&&(i=Bl(c),i!==void 0&&i===Bl(s)))}function ov(i){Bl!==null&&typeof WeakSet=="function"&&(By===null&&(By=new WeakSet),By.add(i))}function Af(i,s,c){var v=i.alternate,_=i.child,C=i.sibling,$=i.tag,U=i.type,X=null;switch($){case 0:case 15:case 1:X=U;break;case 11:X=U.render}if(Bl===null)throw Error("Expected resolveFamily to be set during hot reload.");var ie=!1;U=!1,X!==null&&(X=Bl(X),X!==void 0&&(c.has(X)?U=!0:s.has(X)&&($===1?U=!0:ie=!0))),By!==null&&(By.has(i)||v!==null&&By.has(v))&&(U=!0),U&&(i._debugNeedsRemount=!0),(U||ie)&&(v=fa(i,2),v!==null&&Mn(v,i,2)),_===null||U||Af(_,s,c),C!==null&&Af(C,s,c)}function A8(i,s,c,v){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Gq||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function av(i){return i=i.prototype,!(!i||!i.isReactComponent)}function xl(i,s){var c=i.alternate;switch(c===null?(c=S(i.tag,s,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c._debugOwner=i._debugOwner,c._debugStack=i._debugStack,c._debugTask=i._debugTask,c._debugHookTypes=i._debugHookTypes,c.alternate=i,i.alternate=c):(c.pendingProps=s,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null,c.actualDuration=-0,c.actualStartTime=-1.1),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,s=i.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c.selfBaseDuration=i.selfBaseDuration,c.treeBaseDuration=i.treeBaseDuration,c._debugInfo=i._debugInfo,c._debugNeedsRemount=i._debugNeedsRemount,c.tag){case 0:case 15:c.type=Ef(i.type);break;case 1:c.type=Ef(i.type);break;case 11:c.type=ab(i.type)}return c}function sb(i,s){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=s,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,s=c.dependencies,i.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext,_debugThenableState:s._debugThenableState},i.selfBaseDuration=c.selfBaseDuration,i.treeBaseDuration=c.treeBaseDuration),i}function sv(i,s,c,v,_,C){var $=0,U=i;if(typeof i=="function")av(i)&&($=1),U=Ef(U);else if(typeof i=="string")$=se(),$=oy(i,c,$)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case vy:return s=S(31,c,s,_),s.elementType=vy,s.lanes=C,s;case Lc:return fs(c.children,_,C,s);case Wf:$=8,_|=Ra,_|=Iu;break;case Q0:return i=c,v=_,typeof i.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id),s=S(12,i,s,v|Zo),s.elementType=Q0,s.lanes=C,s.stateNode={effectDuration:0,passiveEffectDuration:0},s;case zc:return s=S(13,c,s,_),s.elementType=zc,s.lanes=C,s;case gy:return s=S(19,c,s,_),s.elementType=gy,s.lanes=C,s;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case R4:case ka:$=10;break e;case K0:$=9;break e;case Nc:$=11,U=ab(U);break e;case my:$=14;break e;case qa:$=16,U=null;break e}U="",(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(U+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),i===null?c="null":qi(i)?c="array":i!==void 0&&i.$$typeof===Au?(c="<"+(V(i.type)||"Unknown")+" />",U=" Did you accidentally export a JSX literal instead of a component?"):c=typeof i,($=v?te(v):null)&&(U+=`
|
|
142
142
|
|
|
143
143
|
Check the render method of \``+$+"`."),$=29,c=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(c+"."+U)),U=null}return s=S($,c,s,_),s.elementType=i,s.type=U,s.lanes=C,s._debugOwner=v,s}function o0(i,s,c){return s=sv(i.type,i.key,i.props,i._owner,s,c),s._debugOwner=i._owner,s._debugStack=i._debugStack,s._debugTask=i._debugTask,s}function fs(i,s,c,v){return i=S(7,i,v,s),i.lanes=c,i}function lb(i,s,c){return i=S(6,i,null,s),i.lanes=c,i}function ub(i,s,c){return s=S(4,i.children!==null?i.children:[],i.key,s),s.lanes=c,s.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},s}function kf(i,s){$s(),Ly[Ny++]=G4,Ly[Ny++]=q4,q4=i,G4=s}function cb(i,s,c){$s(),Ll[Nl++]=nd,Ll[Nl++]=rd,Ll[Nl++]=cg,cg=i;var v=nd;i=rd;var _=32-no(v)-1;v&=~(1<<_),c+=1;var C=32-no(s)+_;if(30<C){var $=_-_%5;C=(v&(1<<$)-1).toString(32),v>>=$,_-=$,nd=1<<32-no(s)+_|c<<_|v,rd=C+i}else nd=1<<C|c<<_|v,rd=i}function lv(i){$s(),i.return!==null&&(kf(i,1),cb(i,1,0))}function Tf(i){for(;i===q4;)q4=Ly[--Ny],Ly[Ny]=null,G4=Ly[--Ny],Ly[Ny]=null;for(;i===cg;)cg=Ll[--Nl],Ll[Nl]=null,rd=Ll[--Nl],Ll[Nl]=null,nd=Ll[--Nl],Ll[Nl]=null}function $s(){sr||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Rf(i,s){if(i.return===null){if(zl===null)zl={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:s};else{if(zl.fiber!==i)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");zl.distanceFromLeaf>s&&(zl.distanceFromLeaf=s)}return zl}var c=Rf(i.return,s+1).children;return 0<c.length&&c[c.length-1].fiber===i?(c=c[c.length-1],c.distanceFromLeaf>s&&(c.distanceFromLeaf=s),c):(s={fiber:i,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:s},c.push(s),s)}function Jd(i,s){id||(i=Rf(i,0),i.serverProps=null,s!==null&&(s=ey(s),i.serverTail.push(s)))}function cc(i){var s="",c=zl;throw c!==null&&(zl=null,s=lc(c)),th(ca(Error(`Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
|
|
144
144
|
|
|
@@ -150,7 +150,7 @@ Check the render method of \``+$+"`."),$=29,c=Error("Element type is invalid: ex
|
|
|
150
150
|
|
|
151
151
|
It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
|
|
152
152
|
|
|
153
|
-
https://react.dev/link/hydration-mismatch`+s),i)),Z8}function fb(i){var s=i.stateNode,c=i.type,v=i.memoizedProps;switch(s[$o]=i,s[Ta]=v,bu(c,v),c){case"dialog":In("cancel",s),In("close",s);break;case"iframe":case"object":case"embed":In("load",s);break;case"video":case"audio":for(c=0;c<TS.length;c++)In(TS[c],s);break;case"source":In("error",s);break;case"img":case"image":case"link":In("error",s),In("load",s);break;case"details":In("toggle",s);break;case"input":xt("input",v),In("invalid",s),po(s,v),ot(s,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),rr(s);break;case"option":
|
|
153
|
+
https://react.dev/link/hydration-mismatch`+s),i)),Z8}function fb(i){var s=i.stateNode,c=i.type,v=i.memoizedProps;switch(s[$o]=i,s[Ta]=v,bu(c,v),c){case"dialog":In("cancel",s),In("close",s);break;case"iframe":case"object":case"embed":In("load",s);break;case"video":case"audio":for(c=0;c<TS.length;c++)In(TS[c],s);break;case"source":In("error",s);break;case"img":case"image":case"link":In("error",s),In("load",s);break;case"details":In("toggle",s);break;case"input":xt("input",v),In("invalid",s),po(s,v),ot(s,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0),rr(s);break;case"option":Re(s,v);break;case"select":xt("select",v),In("invalid",s),P(s,v);break;case"textarea":xt("textarea",v),In("invalid",s),W(s,v),xe(s,v.value,v.defaultValue,v.children),rr(s)}c=v.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||v.suppressHydrationWarning===!0||Zf(s.textContent,c)?(v.popover!=null&&(In("beforetoggle",s),In("toggle",s)),v.onScroll!=null&&In("scroll",s),v.onScrollEnd!=null&&In("scrollend",s),v.onClick!=null&&(s.onclick=kc),s=!0):s=!1,s||cc(i)}function uv(i){for(Ya=i.return;Ya;)switch(Ya.tag){case 5:case 13:Pc=!1;return;case 27:case 3:Pc=!0;return;default:Ya=Ya.return}}function Of(i){if(i!==Ya)return!1;if(!sr)return uv(i),sr=!0,!1;var s=i.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||Rc(i.type,i.memoizedProps)),c=!c),c&&Ii){for(c=Ii;c;){var v=Rf(i,0),_=ey(c);v.serverTail.push(_),c=_.type==="Suspense"?Nh(c):Ea(c.nextSibling)}cc(i)}if(uv(i),s===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Ii=Nh(i)}else s===27?(s=Ii,Pi(i.type)?(i=BI,BI=null,Ii=i):Ii=s):Ii=Ya?Ea(i.stateNode.nextSibling):null;return!0}function eh(){Ii=Ya=null,id=sr=!1}function db(){var i=fg;return i!==null&&(Ka===null?Ka=i:Ka.push.apply(Ka,i),fg=null),i}function th(i){fg===null?fg=[i]:fg.push(i)}function QT(){var i=zl;if(i!==null){zl=null;for(var s=lc(i);0<i.children.length;)i=i.children[0];$t(i.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
|
|
154
154
|
|
|
155
155
|
- A server/client branch \`if (typeof window !== 'undefined')\`.
|
|
156
156
|
- Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
|
|
@@ -241,7 +241,7 @@ act(() => {
|
|
|
241
241
|
/* assert on the output */
|
|
242
242
|
|
|
243
243
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,F(i))})}function ys(i){i!==r1&&i.next===null&&(r1===null?u3=r1=i:r1=r1.next=i),c3=!0,Ue.actQueue!==null?AI||(AI=!0,g4()):EI||(EI=!0,g4())}function Ac(i,s){if(!kI&&c3){kI=!0;do for(var c=!1,v=u3;v!==null;){if(i!==0){var _=v.pendingLanes;if(_===0)var C=0;else{var $=v.suspendedLanes,U=v.pingedLanes;C=(1<<31-no(42|i)+1)-1,C&=_&~($&~U),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(c=!0,g_(v,C))}else C=Fn,C=le(v,v===Gr?C:0,v.cancelPendingCommit!==null||v.timeoutHandle!==Eg),(C&3)===0||_e(v,C)||(c=!0,g_(v,C));v=v.next}while(c);kI=!1}}function p4(){Ks()}function Ks(){c3=AI=EI=!1;var i=0;wg!==0&&(__()&&(i=wg),wg=0);for(var s=yo(),c=null,v=u3;v!==null;){var _=v.next,C=vi(v,s);C===0?(v.next=null,c===null?u3=_:c.next=_,_===null&&(r1=c)):(c=v,(i!==0||(C&3)!==0)&&(c3=!0)),v=_}Ac(i)}function vi(i,s){for(var c=i.suspendedLanes,v=i.pingedLanes,_=i.expirationTimes,C=i.pendingLanes&-62914561;0<C;){var $=31-no(C),U=1<<$,X=_[$];X===-1?((U&c)===0||(U&v)!==0)&&(_[$]=Fe(U,s)):X<=s&&(i.expiredLanes|=U),C&=~U}if(s=Gr,c=Fn,c=le(i,i===s?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Eg),v=i.callbackNode,c===0||i===s&&(Rr===yg||Rr===xg)||i.cancelPendingCommit!==null)return v!==null&&Mi(v),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||_e(i,c)){if(s=c&-c,s!==i.callbackPriority||Ue.actQueue!==null&&v!==TI)Mi(v);else return s;switch(Gt(c)){case Ga:case Rl:c=L_;break;case Ou:c=Gh;break;case by:c=z_;break;default:c=Gh}return v=Qv.bind(null,i),Ue.actQueue!==null?(Ue.actQueue.push(v),c=TI):c=B_(c,v),i.callbackPriority=s,i.callbackNode=c,s}return v!==null&&Mi(v),i.callbackPriority=2,i.callbackNode=null,2}function Qv(i,s){if(Q4=Z4=!1,Ko!==_g&&Ko!==bI)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(Cc()&&i.callbackNode!==c)return null;var v=Fn;return v=le(i,i===Gr?v:0,i.cancelPendingCommit!==null||i.timeoutHandle!==Eg),v===0?null:(eo(i,v,s),vi(i,yo()),i.callbackNode!=null&&i.callbackNode===c?Qv.bind(null,i):null)}function g_(i,s){if(Cc())return null;Z4=Q4,Q4=!1,eo(i,s,!0)}function Mi(i){i!==TI&&i!==null&&D4(i)}function g4(){Ue.actQueue!==null&&Ue.actQueue.push(function(){return Ks(),null}),Cye(function(){(_r&(Qa|Nu))!==rl?B_(J0,p4):Ks()})}function Kv(){return wg===0&&(wg=be()),wg}function m_(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:(B(i,"action"),ru(""+i))}function Pr(i,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,i.id&&c.setAttribute("form",i.id),s.parentNode.insertBefore(c,s),i=new FormData(i),c.parentNode.removeChild(c),i}function Sa(i,s,c,v,_){if(s==="submit"&&c&&c.stateNode===_){var C=m_((_[Ta]||null).action),$=v.submitter;$&&(s=(s=$[Ta]||null)?m_(s.formAction):$.getAttribute("formAction"),s!==null&&(C=s,$=null));var U=new hr("action","action",null,v,_);i.push({event:U,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(wg!==0){var X=$?Pr(_,$):new FormData(_),ie={pending:!0,data:X,method:_.method,action:C};Object.freeze(ie),wv(c,ie,null,X)}}else typeof C=="function"&&(U.preventDefault(),X=$?Pr(_,$):new FormData(_),ie={pending:!0,data:X,method:_.method,action:C},Object.freeze(ie),wv(c,ie,C,X))},currentTarget:_}]})}}function xs(i,s,c){i.currentTarget=c;try{s(i)}catch(v){uI(v)}i.currentTarget=null}function v_(i,s){s=(s&4)!==0;for(var c=0;c<i.length;c++){var v=i[c];e:{var _=void 0,C=v.event;if(v=v.listeners,s)for(var $=v.length-1;0<=$;$--){var U=v[$],X=U.instance,ie=U.currentTarget;if(U=U.listener,X!==_&&C.isPropagationStopped())break e;X!==null?$t(X,xs,C,U,ie):xs(C,U,ie),_=X}else for($=0;$<v.length;$++){if(U=v[$],X=U.instance,ie=U.currentTarget,U=U.listener,X!==_&&C.isPropagationStopped())break e;X!==null?$t(X,xs,C,U,ie):xs(C,U,ie),_=X}}}}function In(i,s){RI.has(i)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var c=s[_y];c===void 0&&(c=s[_y]=new Set);var v=i+"__bubble";c.has(v)||(wa(s,i,2,!1),c.add(v))}function y_(i,s,c){RI.has(i)&&!s&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var v=0;s&&(v|=4),wa(c,i,v,s)}function U0(i){if(!i[f3]){i[f3]=!0,ed.forEach(function(c){c!=="selectionchange"&&(RI.has(c)||y_(c,!1,i),y_(c,!0,i))});var s=i.nodeType===9?i:i.ownerDocument;s===null||s[f3]||(s[f3]=!0,y_("selectionchange",!1,s))}}function wa(i,s,c,v){switch(Bc(s)){case Ga:var _=uy;break;case Rl:_=jh;break;default:_=V0}c=_.bind(null,s,c,i),_=void 0,!Xe||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(_=!0),v?_!==void 0?i.addEventListener(s,c,{capture:!0,passive:_}):i.addEventListener(s,c,!0):_!==void 0?i.addEventListener(s,c,{passive:_}):i.addEventListener(s,c,!1)}function ja(i,s,c,v,_){var C=v;if((s&1)===0&&(s&2)===0&&v!==null)e:for(;;){if(v===null)return;var $=v.tag;if($===3||$===4){var U=v.stateNode.containerInfo;if(U===_)break;if($===4)for($=v.return;$!==null;){var X=$.tag;if((X===3||X===4)&&$.stateNode.containerInfo===_)return;$=$.return}for(;U!==null;){if($=It(U),$===null)return;if(X=$.tag,X===5||X===6||X===26||X===27){v=C=$;continue e}U=U.parentNode}}v=v.return}Wd(function(){var ie=C,je=Ms(c),Ye=[];e:{var ze=Pq.get(i);if(ze!==void 0){var Qe=hr,Pt=i;switch(i){case"keypress":if(Sf(c)===0)break e;case"keydown":case"keyup":Qe=Dve;break;case"focusin":Pt="focus",Qe=Il;break;case"focusout":Pt="blur",Qe=Il;break;case"beforeblur":case"afterblur":Qe=Il;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Qe=Kt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Qe=io;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Qe=$ve;break;case Fq:case Uq:case jq:Qe=Sve;break;case Hq:Qe=Lve;break;case"scroll":case"scrollend":Qe=Ce;break;case"wheel":Qe=zve;break;case"copy":case"cut":case"paste":Qe=Cve;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Qe=Dq;break;case"toggle":case"beforetoggle":Qe=Uve}var un=(s&4)!==0,Vr=!un&&(i==="scroll"||i==="scrollend"),qn=un?ze!==null?ze+"Capture":null:ze;un=[];for(var me=ie,ve;me!==null;){var Se=me;if(ve=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||ve===null||qn===null||(Se=cs(me,qn),Se!=null&&un.push(Ih(me,Se,ve))),Vr)break;me=me.return}0<un.length&&(ze=new Qe(ze,Pt,null,c,je),Ye.push({event:ze,listeners:un}))}}if((s&7)===0){e:{if(ze=i==="mouseover"||i==="pointerover",Qe=i==="mouseout"||i==="pointerout",ze&&c!==D&&(Pt=c.relatedTarget||c.fromElement)&&(It(Pt)||Pt[Uc]))break e;if((Qe||ze)&&(ze=je.window===je?je:(ze=je.ownerDocument)?ze.defaultView||ze.parentWindow:window,Qe?(Pt=c.relatedTarget||c.toElement,Qe=ie,Pt=Pt?It(Pt):null,Pt!==null&&(Vr=O(Pt),un=Pt.tag,Pt!==Vr||un!==5&&un!==27&&un!==6)&&(Pt=null)):(Qe=null,Pt=ie),Qe!==Pt)){if(un=Kt,Se="onMouseLeave",qn="onMouseEnter",me="mouse",(i==="pointerout"||i==="pointerover")&&(un=Dq,Se="onPointerLeave",qn="onPointerEnter",me="pointer"),Vr=Qe==null?ze:vt(Qe),ve=Pt==null?ze:vt(Pt),ze=new un(Se,me+"leave",Qe,c,je),ze.target=Vr,ze.relatedTarget=ve,Se=null,It(je)===ie&&(un=new un(qn,me+"enter",Pt,c,je),un.target=ve,un.relatedTarget=Vr,Se=un),Vr=Se,Qe&&Pt)t:{for(un=Qe,qn=Pt,me=0,ve=un;ve;ve=Yf(ve))me++;for(ve=0,Se=qn;Se;Se=Yf(Se))ve++;for(;0<me-ve;)un=Yf(un),me--;for(;0<ve-me;)qn=Yf(qn),ve--;for(;me--;){if(un===qn||qn!==null&&un===qn.alternate)break t;un=Yf(un),qn=Yf(qn)}un=null}else un=null;Qe!==null&&xu(Ye,ze,Qe,un,!1),Pt!==null&&Vr!==null&&xu(Ye,Vr,Pt,un,!0)}}e:{if(ze=ie?vt(ie):window,Qe=ze.nodeName&&ze.nodeName.toLowerCase(),Qe==="select"||Qe==="input"&&ze.type==="file")var Ke=jT;else if(Jm(ze))if(Nq)Ke=C8;else{Ke=S8;var kt=nb}else Qe=ze.nodeName,!Qe||Qe.toLowerCase()!=="input"||ze.type!=="checkbox"&&ze.type!=="radio"?ie&&bf(ie.elementType)&&(Ke=jT):Ke=w8;if(Ke&&(Ke=Ke(i,ie))){Xd(Ye,Ke,c,je);break e}kt&&kt(i,ze,ie),i==="focusout"&&ie&&ze.type==="number"&&ie.memoizedProps.value!=null&&Kr(ze,"number",ze.value)}switch(kt=ie?vt(ie):window,i){case"focusin":(Jm(kt)||kt.contentEditable==="true")&&(My=kt,H8=ie,iS=null);break;case"focusout":iS=H8=My=null;break;case"mousedown":P8=!0;break;case"contextmenu":case"mouseup":case"dragend":P8=!1,tv(Ye,c,je);break;case"selectionchange":if(qve)break;case"keydown":case"keyup":tv(Ye,c,je)}var xn;if(j8)e:{switch(i){case"compositionstart":var qt="onCompositionStart";break e;case"compositionend":qt="onCompositionEnd";break e;case"compositionupdate":qt="onCompositionUpdate";break e}qt=void 0}else Dy?uc(i,c)&&(qt="onCompositionEnd"):i==="keydown"&&c.keyCode===Mq&&(qt="onCompositionStart");qt&&(Iq&&c.locale!=="ko"&&(Dy||qt!=="onCompositionStart"?qt==="onCompositionEnd"&&Dy&&(xn=Xm()):(Le=je,Pe="value"in Le?Le.value:Le.textContent,Dy=!0)),kt=Io(ie,qt),0<kt.length&&(qt=new Oq(qt,i,null,c,je),Ye.push({event:qt,listeners:kt}),xn?qt.data=xn:(xn=t0(c),xn!==null&&(qt.data=xn)))),(xn=Hve?n0(i,c):_8(i,c))&&(qt=Io(ie,"onBeforeInput"),0<qt.length&&(kt=new Ave("onBeforeInput","beforeinput",null,c,je),Ye.push({event:kt,listeners:qt}),kt.data=xn)),Sa(Ye,i,ie,c,je)}v_(Ye,s)})}function Ih(i,s,c){return{instance:i,listener:s,currentTarget:c}}function Io(i,s){for(var c=s+"Capture",v=[];i!==null;){var _=i,C=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||C===null||(_=cs(i,c),_!=null&&v.unshift(Ih(i,_,C)),_=cs(i,s),_!=null&&v.push(Ih(i,_,C))),i.tag===3)return v;i=i.return}return[]}function Yf(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function xu(i,s,c,v,_){for(var C=s._reactName,$=[];c!==null&&c!==v;){var U=c,X=U.alternate,ie=U.stateNode;if(U=U.tag,X!==null&&X===v)break;U!==5&&U!==26&&U!==27||ie===null||(X=ie,_?(ie=cs(c,C),ie!=null&&$.unshift(Ih(c,ie,X))):_||(ie=cs(c,C),ie!=null&&$.push(Ih(c,ie,X)))),c=c.return}$.length!==0&&i.push({event:s,listeners:$})}function bu(i,s){zT(i,s),i!=="input"&&i!=="textarea"&&i!=="select"||s==null||s.value!==null||H4||(H4=!0,i==="select"&&s.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i));var c={registrationNameDependencies:tl,possibleRegistrationNames:Sy};bf(i)||typeof s.is=="string"||FT(i,s,c),s.contentEditable&&!s.suppressContentEditableWarning&&s.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qr(i,s,c,v){s!==c&&(c=_u(c),_u(s)!==c&&(v[i]=s))}function x_(i,s,c){s.forEach(function(v){c[$h(v)]=v==="style"?Wv(i):i.getAttribute(v)})}function bs(i,s){s===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof s)}function Ws(i,s){return i=i.namespaceURI===Ty||i.namespaceURI===Mu?i.ownerDocument.createElementNS(i.namespaceURI,i.tagName):i.ownerDocument.createElement(i.tagName),i.innerHTML=s,i.innerHTML}function _u(i){return Y(i)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",N(i)),ae(i)),(typeof i=="string"?i:""+i).replace(gye,`
|
|
244
|
-
`).replace(mye,"")}function Zf(i,s){return s=_u(s),_u(i)===s}function kc(){}function ir(i,s,c,v,_,C){switch(c){case"children":typeof v=="string"?(Qd(v,s,!1),s==="body"||s==="textarea"&&v===""||Wp(i,v)):(typeof v=="number"||typeof v=="bigint")&&(Qd(""+v,s,!1),s!=="body"&&Wp(i,""+v));break;case"className":Dt(i,"class",v);break;case"tabIndex":Dt(i,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Dt(i,c,v);break;case"style":Km(i,v,C);break;case"data":if(s!=="object"){Dt(i,"data",v);break}case"src":case"href":if(v===""&&(s!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}B(v,c),v=ru(""+v),i.setAttribute(c,v);break;case"action":case"formAction":if(v!=null&&(s==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof v=="function"&&(_.encType==null&&_.method==null||p3||(p3=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),_.target==null||h3||(h3=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):s==="input"||s==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):s!=="input"||_.type==="submit"||_.type==="image"||d3?s!=="button"||_.type==null||_.type==="submit"||d3?typeof v=="function"&&(_.name==null||iV||(iV=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),_.formEncType==null&&_.formMethod==null||p3||(p3=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),_.formTarget==null||h3||(h3=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(d3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(d3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof v=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(s!=="input"&&ir(i,s,"name",_.name,_,null),ir(i,s,"formEncType",_.formEncType,_,null),ir(i,s,"formMethod",_.formMethod,_,null),ir(i,s,"formTarget",_.formTarget,_,null)):(ir(i,s,"encType",_.encType,_,null),ir(i,s,"method",_.method,_,null),ir(i,s,"target",_.target,_,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}B(v,c),v=ru(""+v),i.setAttribute(c,v);break;case"onClick":v!=null&&(typeof v!="function"&&bs(c,v),i.onclick=kc);break;case"onScroll":v!=null&&(typeof v!="function"&&bs(c,v),In("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&bs(c,v),In("scrollend",i));break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":i.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){i.removeAttribute("xlink:href");break}B(v,c),c=ru(""+v),i.setAttributeNS(Cg,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?(B(v,c),i.setAttribute(c,""+v)):i.removeAttribute(c);break;case"inert":v!==""||g3[c]||(g3[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":v===!0?i.setAttribute(c,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?(B(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?(B(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?i.removeAttribute(c):(B(v,c),i.setAttribute(c,v));break;case"popover":In("beforetoggle",i),In("toggle",i),Xt(i,"popover",v);break;case"xlinkActuate":mn(i,Cg,"xlink:actuate",v);break;case"xlinkArcrole":mn(i,Cg,"xlink:arcrole",v);break;case"xlinkRole":mn(i,Cg,"xlink:role",v);break;case"xlinkShow":mn(i,Cg,"xlink:show",v);break;case"xlinkTitle":mn(i,Cg,"xlink:title",v);break;case"xlinkType":mn(i,Cg,"xlink:type",v);break;case"xmlBase":mn(i,OI,"xml:base",v);break;case"xmlLang":mn(i,OI,"xml:lang",v);break;case"xmlSpace":mn(i,OI,"xml:space",v);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xt(i,"is",v);break;case"innerText":case"textContent":break;case"popoverTarget":oV||v==null||typeof v!="object"||(oV=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",v));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=_f(c),Xt(i,c,v)):tl.hasOwnProperty(c)&&v!=null&&typeof v!="function"&&bs(c,v)}}function Tc(i,s,c,v,_,C){switch(c){case"style":Km(i,v,C);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof v=="string"?Wp(i,v):(typeof v=="number"||typeof v=="bigint")&&Wp(i,""+v);break;case"onScroll":v!=null&&(typeof v!="function"&&bs(c,v),In("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&bs(c,v),In("scrollend",i));break;case"onClick":v!=null&&(typeof v!="function"&&bs(c,v),i.onclick=kc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(tl.hasOwnProperty(c))v!=null&&typeof v!="function"&&bs(c,v);else e:{if(c[0]==="o"&&c[1]==="n"&&(_=c.endsWith("Capture"),s=c.slice(2,_?c.length-7:void 0),C=i[Ta]||null,C=C!=null?C[c]:null,typeof C=="function"&&i.removeEventListener(s,C,_),typeof v=="function")){typeof C!="function"&&C!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,v,_);break e}c in i?i[c]=v:v===!0?i.setAttribute(c,""):Xt(i,c,v)}}}function to(i,s,c){switch(bu(s,c),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":In("error",i),In("load",i);var v=!1,_=!1,C;for(C in c)if(c.hasOwnProperty(C)){var $=c[C];if($!=null)switch(C){case"src":v=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,C,$,c,null)}}_&&ir(i,s,"srcSet",c.srcSet,c,null),v&&ir(i,s,"src",c.src,c,null);return;case"input":xt("input",c),In("invalid",i);var U=C=$=_=null,X=null,ie=null;for(v in c)if(c.hasOwnProperty(v)){var je=c[v];if(je!=null)switch(v){case"name":_=je;break;case"type":$=je;break;case"checked":X=je;break;case"defaultChecked":ie=je;break;case"value":C=je;break;case"defaultValue":U=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,v,je,c,null)}}po(i,c),ot(i,C,U,X,ie,$,_,!1),rr(i);return;case"select":xt("select",c),In("invalid",i),v=$=C=null;for(_ in c)if(c.hasOwnProperty(_)&&(U=c[_],U!=null))switch(_){case"value":C=U;break;case"defaultValue":$=U;break;case"multiple":v=U;default:ir(i,s,_,U,c,null)}P(i,c),s=C,c=$,i.multiple=!!v,s!=null?Re(i,!!v,s,!1):c!=null&&Re(i,!!v,c,!0);return;case"textarea":xt("textarea",c),In("invalid",i),C=_=v=null;for($ in c)if(c.hasOwnProperty($)&&(U=c[$],U!=null))switch($){case"value":v=U;break;case"defaultValue":_=U;break;case"children":C=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ir(i,s,$,U,c,null)}W(i,c),xe(i,v,_,C),rr(i);return;case"option":Oe(i,c);for(X in c)if(c.hasOwnProperty(X)&&(v=c[X],v!=null))switch(X){case"selected":i.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ir(i,s,X,v,c,null)}return;case"dialog":In("beforetoggle",i),In("toggle",i),In("cancel",i),In("close",i);break;case"iframe":case"object":In("load",i);break;case"video":case"audio":for(v=0;v<TS.length;v++)In(TS[v],i);break;case"image":In("error",i),In("load",i);break;case"details":In("toggle",i);break;case"embed":case"source":case"link":In("error",i),In("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ie in c)if(c.hasOwnProperty(ie)&&(v=c[ie],v!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,ie,v,c,null)}return;default:if(bf(s)){for(je in c)c.hasOwnProperty(je)&&(v=c[je],v!==void 0&&Tc(i,s,je,v,c,void 0));return}}for(U in c)c.hasOwnProperty(U)&&(v=c[U],v!=null&&ir(i,s,U,v,c,null))}function m4(i,s,c,v){switch(bu(s,v),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,C=null,$=null,U=null,X=null,ie=null,je=null;for(Qe in c){var Ye=c[Qe];if(c.hasOwnProperty(Qe)&&Ye!=null)switch(Qe){case"checked":break;case"value":break;case"defaultValue":X=Ye;default:v.hasOwnProperty(Qe)||ir(i,s,Qe,null,v,Ye)}}for(var ze in v){var Qe=v[ze];if(Ye=c[ze],v.hasOwnProperty(ze)&&(Qe!=null||Ye!=null))switch(ze){case"type":C=Qe;break;case"name":_=Qe;break;case"checked":ie=Qe;break;case"defaultChecked":je=Qe;break;case"value":$=Qe;break;case"defaultValue":U=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qe!==Ye&&ir(i,s,ze,Qe,v,Ye)}}s=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,v=v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null,s||!v||rV||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),rV=!0),!s||v||nV||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),nV=!0),Qr(i,$,U,X,ie,je,C,_);return;case"select":Qe=$=U=ze=null;for(C in c)if(X=c[C],c.hasOwnProperty(C)&&X!=null)switch(C){case"value":break;case"multiple":Qe=X;default:v.hasOwnProperty(C)||ir(i,s,C,null,v,X)}for(_ in v)if(C=v[_],X=c[_],v.hasOwnProperty(_)&&(C!=null||X!=null))switch(_){case"value":ze=C;break;case"defaultValue":U=C;break;case"multiple":$=C;default:C!==X&&ir(i,s,_,C,v,X)}v=U,s=$,c=Qe,ze!=null?Re(i,!!s,ze,!1):!!c!=!!s&&(v!=null?Re(i,!!s,v,!0):Re(i,!!s,s?[]:"",!1));return;case"textarea":Qe=ze=null;for(U in c)if(_=c[U],c.hasOwnProperty(U)&&_!=null&&!v.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:ir(i,s,U,null,v,_)}for($ in v)if(_=v[$],C=c[$],v.hasOwnProperty($)&&(_!=null||C!=null))switch($){case"value":ze=_;break;case"defaultValue":Qe=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_!==C&&ir(i,s,$,_,v,C)}ue(i,ze,Qe);return;case"option":for(var Pt in c)if(ze=c[Pt],c.hasOwnProperty(Pt)&&ze!=null&&!v.hasOwnProperty(Pt))switch(Pt){case"selected":i.selected=!1;break;default:ir(i,s,Pt,null,v,ze)}for(X in v)if(ze=v[X],Qe=c[X],v.hasOwnProperty(X)&&ze!==Qe&&(ze!=null||Qe!=null))switch(X){case"selected":i.selected=ze&&typeof ze!="function"&&typeof ze!="symbol";break;default:ir(i,s,X,ze,v,Qe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var un in c)ze=c[un],c.hasOwnProperty(un)&&ze!=null&&!v.hasOwnProperty(un)&&ir(i,s,un,null,v,ze);for(ie in v)if(ze=v[ie],Qe=c[ie],v.hasOwnProperty(ie)&&ze!==Qe&&(ze!=null||Qe!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,ie,ze,v,Qe)}return;default:if(bf(s)){for(var Vr in c)ze=c[Vr],c.hasOwnProperty(Vr)&&ze!==void 0&&!v.hasOwnProperty(Vr)&&Tc(i,s,Vr,void 0,v,ze);for(je in v)ze=v[je],Qe=c[je],!v.hasOwnProperty(je)||ze===Qe||ze===void 0&&Qe===void 0||Tc(i,s,je,ze,v,Qe);return}}for(var qn in c)ze=c[qn],c.hasOwnProperty(qn)&&ze!=null&&!v.hasOwnProperty(qn)&&ir(i,s,qn,null,v,ze);for(Ye in v)ze=v[Ye],Qe=c[Ye],!v.hasOwnProperty(Ye)||ze===Qe||ze==null&&Qe==null||ir(i,s,Ye,ze,v,Qe)}function $h(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function Wv(i){var s={};i=i.style;for(var c=0;c<i.length;c++){var v=i[c];s[v]=i.getPropertyValue(v)}return s}function j0(i,s,c){if(s!=null&&typeof s!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var v,_=v="",C;for(C in s)if(s.hasOwnProperty(C)){var $=s[C];$!=null&&typeof $!="boolean"&&$!==""&&(C.indexOf("--")===0?(de($,C),v+=_+C+":"+(""+$).trim()):typeof $!="number"||$===0||eS.has(C)?(de($,C),v+=_+C.replace(Du,"-$1").toLowerCase().replace(Kh,"-ms-")+":"+(""+$).trim()):v+=_+C.replace(Du,"-$1").toLowerCase().replace(Kh,"-ms-")+":"+$+"px",_=";")}v=v||null,s=i.getAttribute("style"),s!==v&&(v=_u(v),_u(s)!==v&&(c.style=Wv(i)))}}function Ha(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(B(v,s),i===""+v)return}qr(s,i,v,C)}function v4(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null){switch(typeof v){case"function":case"symbol":return}if(!v)return}else switch(typeof v){case"function":case"symbol":break;default:if(v)return}qr(s,i,v,C)}function b_(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":return}else if(v!=null)switch(typeof v){case"function":case"symbol":break;default:if(B(v,c),i===""+v)return}qr(s,i,v,C)}function vr(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(v))return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!isNaN(v)&&(B(v,s),i===""+v))return}qr(s,i,v,C)}function Ar(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(B(v,s),c=ru(""+v),i===c)return}qr(s,i,v,C)}function $n(i,s,c,v){for(var _={},C=new Set,$=i.attributes,U=0;U<$.length;U++)switch($[U].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add($[U].name)}if(bf(s)){for(var X in c)if(c.hasOwnProperty(X)){var ie=c[X];if(ie!=null){if(tl.hasOwnProperty(X))typeof ie!="function"&&bs(X,ie);else if(c.suppressHydrationWarning!==!0)switch(X){case"children":typeof ie!="string"&&typeof ie!="number"||qr("children",i.textContent,ie,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":$=i.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=Ws(i,ie),qr(X,$,ie,_));continue;case"style":C.delete(X),j0(i,ie,_);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(X.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",X);continue;case"className":C.delete("class"),$=Lt(i,"class",ie),qr("className",$,ie,_);continue;default:v.context===cd&&s!=="svg"&&s!=="math"?C.delete(X.toLowerCase()):C.delete(X),$=Lt(i,X,ie),qr(X,$,ie,_)}}}}else for(ie in c)if(c.hasOwnProperty(ie)&&(X=c[ie],X!=null)){if(tl.hasOwnProperty(ie))typeof X!="function"&&bs(ie,X);else if(c.suppressHydrationWarning!==!0)switch(ie){case"children":typeof X!="string"&&typeof X!="number"||qr("children",i.textContent,X,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":$=i.innerHTML,X=X?X.__html:void 0,X!=null&&(X=Ws(i,X),$!==X&&(_[ie]={__html:$}));continue;case"className":Ha(i,ie,"class",X,C,_);continue;case"tabIndex":Ha(i,ie,"tabindex",X,C,_);continue;case"style":C.delete(ie),j0(i,X,_);continue;case"multiple":C.delete(ie),qr(ie,i.multiple,X,_);continue;case"muted":C.delete(ie),qr(ie,i.muted,X,_);continue;case"autoFocus":C.delete("autofocus"),qr(ie,i.autofocus,X,_);continue;case"data":if(s!=="object"){C.delete(ie),$=i.getAttribute("data"),qr(ie,$,X,_);continue}case"src":case"href":if(!(X!==""||s==="a"&&ie==="href"||s==="object"&&ie==="data")){console.error(ie==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',ie,ie);continue}Ar(i,ie,ie,X,C,_);continue;case"action":case"formAction":if($=i.getAttribute(ie),typeof X=="function"){C.delete(ie.toLowerCase()),ie==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if($===vye){C.delete(ie.toLowerCase()),qr(ie,"function",X,_);continue}Ar(i,ie,ie.toLowerCase(),X,C,_);continue;case"xlinkHref":Ar(i,ie,"xlink:href",X,C,_);continue;case"contentEditable":b_(i,ie,"contenteditable",X,C,_);continue;case"spellCheck":b_(i,ie,"spellcheck",X,C,_);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b_(i,ie,ie,X,C,_);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v4(i,ie,ie.toLowerCase(),X,C,_);continue;case"capture":case"download":e:{U=i;var je=$=ie,Ye=_;if(C.delete(je),U=U.getAttribute(je),U===null)switch(typeof X){case"undefined":case"function":case"symbol":break e;default:if(X===!1)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":break;case"boolean":if(X===!0&&U==="")break e;break;default:if(B(X,$),U===""+X)break e}qr($,U,X,Ye)}continue;case"cols":case"rows":case"size":case"span":e:{if(U=i,je=$=ie,Ye=_,C.delete(je),U=U.getAttribute(je),U===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(X)||1>X)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(X)||1>X)&&(B(X,$),U===""+X))break e}qr($,U,X,Ye)}continue;case"rowSpan":vr(i,ie,"rowspan",X,C,_);continue;case"start":vr(i,ie,ie,X,C,_);continue;case"xHeight":Ha(i,ie,"x-height",X,C,_);continue;case"xlinkActuate":Ha(i,ie,"xlink:actuate",X,C,_);continue;case"xlinkArcrole":Ha(i,ie,"xlink:arcrole",X,C,_);continue;case"xlinkRole":Ha(i,ie,"xlink:role",X,C,_);continue;case"xlinkShow":Ha(i,ie,"xlink:show",X,C,_);continue;case"xlinkTitle":Ha(i,ie,"xlink:title",X,C,_);continue;case"xlinkType":Ha(i,ie,"xlink:type",X,C,_);continue;case"xmlBase":Ha(i,ie,"xml:base",X,C,_);continue;case"xmlLang":Ha(i,ie,"xml:lang",X,C,_);continue;case"xmlSpace":Ha(i,ie,"xml:space",X,C,_);continue;case"inert":X!==""||g3[ie]||(g3[ie]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",ie)),v4(i,ie,ie,X,C,_);continue;default:if(!(2<ie.length)||ie[0]!=="o"&&ie[0]!=="O"||ie[1]!=="n"&&ie[1]!=="N"){U=_f(ie),$=!1,v.context===cd&&s!=="svg"&&s!=="math"?C.delete(U.toLowerCase()):(je=ie.toLowerCase(),je=ug.hasOwnProperty(je)&&ug[je]||null,je!==null&&je!==ie&&($=!0,C.delete(je)),C.delete(U));e:if(je=i,Ye=U,U=X,Vt(Ye))if(je.hasAttribute(Ye))je=je.getAttribute(Ye),B(U,Ye),U=je===""+U?U:je;else{switch(typeof U){case"function":case"symbol":break e;case"boolean":if(je=Ye.toLowerCase().slice(0,5),je!=="data-"&&je!=="aria-")break e}U=U===void 0?void 0:null}else U=void 0;$||qr(ie,U,X,_)}}}return 0<C.size&&c.suppressHydrationWarning!==!0&&x_(i,C,_),Object.keys(_).length===0?null:_}function Qn(i,s){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+s+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+s+" "+i[i.length-1]}}function or(i){return i.nodeType===9?i:i.ownerDocument}function Ca(i){switch(i){case Mu:return i1;case Ty:return y3;default:return cd}}function Su(i,s){if(i===cd)switch(s){case"svg":return i1;case"math":return y3;default:return cd}return i===i1&&s==="foreignObject"?cd:i}function Rc(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function __(){var i=window.event;return i&&i.type==="popstate"?i===$I?!1:($I=i,!0):($I=null,!1)}function wu(i){setTimeout(function(){throw i})}function yi(i,s,c){switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function Oc(i,s,c,v){m4(i,s,c,v),i[Ta]=v}function Dc(i){Wp(i,"")}function S_(i,s,c){i.nodeValue=c}function Pi(i){return i==="head"}function Bh(i,s){i.removeChild(s)}function H0(i,s){(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).removeChild(s)}function Yo(i,s){var c=s,v=0,_=0;do{var C=c.nextSibling;if(i.removeChild(c),C&&C.nodeType===8)if(c=C.data,c===v3){if(0<v&&8>v){c=v;var $=i.ownerDocument;if(c&xye&&zh($.documentElement),c&bye&&zh($.body),c&_ye)for(c=$.head,zh(c),$=c.firstChild;$;){var U=$.nextSibling,X=$.nodeName;$[tg]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&$.rel.toLowerCase()==="stylesheet"||c.removeChild($),$=U}}if(_===0){i.removeChild(C),Ph(s);return}_--}else c===m3||c===ud||c===RS?_++:v=c.charCodeAt(0)-48;else v=0;c=C}while(c);Ph(s)}function w_(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function C_(i){i.nodeValue=""}function Xv(i,s){s=s[Sye],s=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}function Jv(i,s){i.nodeValue=s}function El(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":El(c),Zt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function vo(i,s,c,v){for(;i.nodeType===1;){var _=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!v&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(v){if(!i[tg])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(C=i.getAttribute("rel"),C==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(C!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(C=i.getAttribute("src"),(C!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&C&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){B(_.name,"name");var C=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===C)return i}else return i;if(i=Ea(i.nextSibling),i===null)break}return null}function Mc(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Ea(i.nextSibling),i===null))return null;return i}function Ic(i){return i.data===RS||i.data===ud&&i.ownerDocument.readyState===sV}function Lh(i,s){var c=i.ownerDocument;if(i.data!==ud||c.readyState===sV)s();else{var v=function(){s(),c.removeEventListener("DOMContentLoaded",v)};c.addEventListener("DOMContentLoaded",v),i._reactRetry=v}}function Ea(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s===m3||s===RS||s===ud||s===DI||s===aV)break;if(s===v3)return null}}return i}function ey(i){if(i.nodeType===1){for(var s=i.nodeName.toLowerCase(),c={},v=i.attributes,_=0;_<v.length;_++){var C=v[_];c[$h(C.name)]=C.name.toLowerCase()==="style"?Wv(i):C.value}return{type:s,props:c}}return i.nodeType===8?{type:"Suspense",props:{}}:i.nodeValue}function E_(i,s,c){return c===null||c[yye]!==!0?(i.nodeValue===s?i=null:(s=_u(s),i=_u(i.nodeValue)===s?null:i.nodeValue),i):null}function Nh(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===v3){if(s===0)return Ea(i.nextSibling);s--}else c!==m3&&c!==RS&&c!==ud||s++}i=i.nextSibling}return null}function ty(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===m3||c===RS||c===ud){if(s===0)return i;s--}else c===v3&&s++}i=i.previousSibling}return null}function Pa(i){Ph(i)}function y4(i){Ph(i)}function Aa(i,s,c,v,_){switch(_&&Qm(i,v.ancestorInfo),s=or(c),i){case"html":if(i=s.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=s.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=s.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function x4(i,s,c,v){if(!c[Uc]&&jt(c)){var _=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",_,_,_)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(_=c.attributes;_.length;)c.removeAttributeNode(_[0]);to(c,i,s),c[$o]=v,c[Ta]=s}function zh(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Zt(i)}function ny(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function Cu(i,s,c){var v=o1;if(v&&typeof s=="string"&&s){var _=Bn(s);_='link[rel="'+i+'"][href="'+_+'"]',typeof c=="string"&&(_+='[crossorigin="'+c+'"]'),hV.has(_)||(hV.add(_),i={rel:i,crossOrigin:c,href:s},v.querySelector(_)===null&&(s=v.createElement("link"),to(s,"link",i),we(s),v.head.appendChild(s)))}}function P0(i,s,c,v){var _=(_=kl.current)?ny(_):null;if(!_)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=Xs(c.href),s=G(_).hoistableStyles,v=s.get(c),v||(v={type:"style",instance:null,count:0,state:null},s.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Xs(c.href);var C=G(_).hoistableStyles,$=C.get(i);if(!$&&(_=_.ownerDocument||_,$={type:"stylesheet",instance:null,count:0,state:{loading:Ag,preload:null}},C.set(i,$),(C=_.querySelector(Uh(i)))&&!C._p&&($.instance=C,$.state.loading=OS|Pl),!ql.has(i))){var U={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};ql.set(i,U),C||b4(_,i,U,$.state)}if(s&&v===null)throw c=`
|
|
244
|
+
`).replace(mye,"")}function Zf(i,s){return s=_u(s),_u(i)===s}function kc(){}function ir(i,s,c,v,_,C){switch(c){case"children":typeof v=="string"?(Qd(v,s,!1),s==="body"||s==="textarea"&&v===""||Wp(i,v)):(typeof v=="number"||typeof v=="bigint")&&(Qd(""+v,s,!1),s!=="body"&&Wp(i,""+v));break;case"className":Dt(i,"class",v);break;case"tabIndex":Dt(i,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Dt(i,c,v);break;case"style":Km(i,v,C);break;case"data":if(s!=="object"){Dt(i,"data",v);break}case"src":case"href":if(v===""&&(s!=="a"||c!=="href")){console.error(c==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',c,c),i.removeAttribute(c);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}B(v,c),v=ru(""+v),i.setAttribute(c,v);break;case"action":case"formAction":if(v!=null&&(s==="form"?c==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof v=="function"&&(_.encType==null&&_.method==null||p3||(p3=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),_.target==null||h3||(h3=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):s==="input"||s==="button"?c==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):s!=="input"||_.type==="submit"||_.type==="image"||d3?s!=="button"||_.type==null||_.type==="submit"||d3?typeof v=="function"&&(_.name==null||iV||(iV=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),_.formEncType==null&&_.formMethod==null||p3||(p3=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),_.formTarget==null||h3||(h3=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(d3=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(d3=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(c==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof v=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(s!=="input"&&ir(i,s,"name",_.name,_,null),ir(i,s,"formEncType",_.formEncType,_,null),ir(i,s,"formMethod",_.formMethod,_,null),ir(i,s,"formTarget",_.formTarget,_,null)):(ir(i,s,"encType",_.encType,_,null),ir(i,s,"method",_.method,_,null),ir(i,s,"target",_.target,_,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){i.removeAttribute(c);break}B(v,c),v=ru(""+v),i.setAttribute(c,v);break;case"onClick":v!=null&&(typeof v!="function"&&bs(c,v),i.onclick=kc);break;case"onScroll":v!=null&&(typeof v!="function"&&bs(c,v),In("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&bs(c,v),In("scrollend",i));break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"multiple":i.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":i.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){i.removeAttribute("xlink:href");break}B(v,c),c=ru(""+v),i.setAttributeNS(Cg,"xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?(B(v,c),i.setAttribute(c,""+v)):i.removeAttribute(c);break;case"inert":v!==""||g3[c]||(g3[c]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",c));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v&&typeof v!="function"&&typeof v!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":v===!0?i.setAttribute(c,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?(B(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?(B(v,c),i.setAttribute(c,v)):i.removeAttribute(c);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?i.removeAttribute(c):(B(v,c),i.setAttribute(c,v));break;case"popover":In("beforetoggle",i),In("toggle",i),Xt(i,"popover",v);break;case"xlinkActuate":mn(i,Cg,"xlink:actuate",v);break;case"xlinkArcrole":mn(i,Cg,"xlink:arcrole",v);break;case"xlinkRole":mn(i,Cg,"xlink:role",v);break;case"xlinkShow":mn(i,Cg,"xlink:show",v);break;case"xlinkTitle":mn(i,Cg,"xlink:title",v);break;case"xlinkType":mn(i,Cg,"xlink:type",v);break;case"xmlBase":mn(i,OI,"xml:base",v);break;case"xmlLang":mn(i,OI,"xml:lang",v);break;case"xmlSpace":mn(i,OI,"xml:space",v);break;case"is":C!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xt(i,"is",v);break;case"innerText":case"textContent":break;case"popoverTarget":oV||v==null||typeof v!="object"||(oV=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",v));default:!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N"?(c=_f(c),Xt(i,c,v)):tl.hasOwnProperty(c)&&v!=null&&typeof v!="function"&&bs(c,v)}}function Tc(i,s,c,v,_,C){switch(c){case"style":Km(i,v,C);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(c=v.__html,c!=null){if(_.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");i.innerHTML=c}}break;case"children":typeof v=="string"?Wp(i,v):(typeof v=="number"||typeof v=="bigint")&&Wp(i,""+v);break;case"onScroll":v!=null&&(typeof v!="function"&&bs(c,v),In("scroll",i));break;case"onScrollEnd":v!=null&&(typeof v!="function"&&bs(c,v),In("scrollend",i));break;case"onClick":v!=null&&(typeof v!="function"&&bs(c,v),i.onclick=kc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(tl.hasOwnProperty(c))v!=null&&typeof v!="function"&&bs(c,v);else e:{if(c[0]==="o"&&c[1]==="n"&&(_=c.endsWith("Capture"),s=c.slice(2,_?c.length-7:void 0),C=i[Ta]||null,C=C!=null?C[c]:null,typeof C=="function"&&i.removeEventListener(s,C,_),typeof v=="function")){typeof C!="function"&&C!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(s,v,_);break e}c in i?i[c]=v:v===!0?i.setAttribute(c,""):Xt(i,c,v)}}}function to(i,s,c){switch(bu(s,c),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":In("error",i),In("load",i);var v=!1,_=!1,C;for(C in c)if(c.hasOwnProperty(C)){var $=c[C];if($!=null)switch(C){case"src":v=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,C,$,c,null)}}_&&ir(i,s,"srcSet",c.srcSet,c,null),v&&ir(i,s,"src",c.src,c,null);return;case"input":xt("input",c),In("invalid",i);var U=C=$=_=null,X=null,ie=null;for(v in c)if(c.hasOwnProperty(v)){var je=c[v];if(je!=null)switch(v){case"name":_=je;break;case"type":$=je;break;case"checked":X=je;break;case"defaultChecked":ie=je;break;case"value":C=je;break;case"defaultValue":U=je;break;case"children":case"dangerouslySetInnerHTML":if(je!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,v,je,c,null)}}po(i,c),ot(i,C,U,X,ie,$,_,!1),rr(i);return;case"select":xt("select",c),In("invalid",i),v=$=C=null;for(_ in c)if(c.hasOwnProperty(_)&&(U=c[_],U!=null))switch(_){case"value":C=U;break;case"defaultValue":$=U;break;case"multiple":v=U;default:ir(i,s,_,U,c,null)}P(i,c),s=C,c=$,i.multiple=!!v,s!=null?Oe(i,!!v,s,!1):c!=null&&Oe(i,!!v,c,!0);return;case"textarea":xt("textarea",c),In("invalid",i),C=_=v=null;for($ in c)if(c.hasOwnProperty($)&&(U=c[$],U!=null))switch($){case"value":v=U;break;case"defaultValue":_=U;break;case"children":C=U;break;case"dangerouslySetInnerHTML":if(U!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:ir(i,s,$,U,c,null)}W(i,c),xe(i,v,_,C),rr(i);return;case"option":Re(i,c);for(X in c)if(c.hasOwnProperty(X)&&(v=c[X],v!=null))switch(X){case"selected":i.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:ir(i,s,X,v,c,null)}return;case"dialog":In("beforetoggle",i),In("toggle",i),In("cancel",i),In("close",i);break;case"iframe":case"object":In("load",i);break;case"video":case"audio":for(v=0;v<TS.length;v++)In(TS[v],i);break;case"image":In("error",i),In("load",i);break;case"details":In("toggle",i);break;case"embed":case"source":case"link":In("error",i),In("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ie in c)if(c.hasOwnProperty(ie)&&(v=c[ie],v!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:ir(i,s,ie,v,c,null)}return;default:if(bf(s)){for(je in c)c.hasOwnProperty(je)&&(v=c[je],v!==void 0&&Tc(i,s,je,v,c,void 0));return}}for(U in c)c.hasOwnProperty(U)&&(v=c[U],v!=null&&ir(i,s,U,v,c,null))}function m4(i,s,c,v){switch(bu(s,v),s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,C=null,$=null,U=null,X=null,ie=null,je=null;for(Qe in c){var Ye=c[Qe];if(c.hasOwnProperty(Qe)&&Ye!=null)switch(Qe){case"checked":break;case"value":break;case"defaultValue":X=Ye;default:v.hasOwnProperty(Qe)||ir(i,s,Qe,null,v,Ye)}}for(var ze in v){var Qe=v[ze];if(Ye=c[ze],v.hasOwnProperty(ze)&&(Qe!=null||Ye!=null))switch(ze){case"type":C=Qe;break;case"name":_=Qe;break;case"checked":ie=Qe;break;case"defaultChecked":je=Qe;break;case"value":$=Qe;break;case"defaultValue":U=Qe;break;case"children":case"dangerouslySetInnerHTML":if(Qe!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qe!==Ye&&ir(i,s,ze,Qe,v,Ye)}}s=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,v=v.type==="checkbox"||v.type==="radio"?v.checked!=null:v.value!=null,s||!v||rV||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),rV=!0),!s||v||nV||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),nV=!0),Qr(i,$,U,X,ie,je,C,_);return;case"select":Qe=$=U=ze=null;for(C in c)if(X=c[C],c.hasOwnProperty(C)&&X!=null)switch(C){case"value":break;case"multiple":Qe=X;default:v.hasOwnProperty(C)||ir(i,s,C,null,v,X)}for(_ in v)if(C=v[_],X=c[_],v.hasOwnProperty(_)&&(C!=null||X!=null))switch(_){case"value":ze=C;break;case"defaultValue":U=C;break;case"multiple":$=C;default:C!==X&&ir(i,s,_,C,v,X)}v=U,s=$,c=Qe,ze!=null?Oe(i,!!s,ze,!1):!!c!=!!s&&(v!=null?Oe(i,!!s,v,!0):Oe(i,!!s,s?[]:"",!1));return;case"textarea":Qe=ze=null;for(U in c)if(_=c[U],c.hasOwnProperty(U)&&_!=null&&!v.hasOwnProperty(U))switch(U){case"value":break;case"children":break;default:ir(i,s,U,null,v,_)}for($ in v)if(_=v[$],C=c[$],v.hasOwnProperty($)&&(_!=null||C!=null))switch($){case"value":ze=_;break;case"defaultValue":Qe=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:_!==C&&ir(i,s,$,_,v,C)}ue(i,ze,Qe);return;case"option":for(var Pt in c)if(ze=c[Pt],c.hasOwnProperty(Pt)&&ze!=null&&!v.hasOwnProperty(Pt))switch(Pt){case"selected":i.selected=!1;break;default:ir(i,s,Pt,null,v,ze)}for(X in v)if(ze=v[X],Qe=c[X],v.hasOwnProperty(X)&&ze!==Qe&&(ze!=null||Qe!=null))switch(X){case"selected":i.selected=ze&&typeof ze!="function"&&typeof ze!="symbol";break;default:ir(i,s,X,ze,v,Qe)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var un in c)ze=c[un],c.hasOwnProperty(un)&&ze!=null&&!v.hasOwnProperty(un)&&ir(i,s,un,null,v,ze);for(ie in v)if(ze=v[ie],Qe=c[ie],v.hasOwnProperty(ie)&&ze!==Qe&&(ze!=null||Qe!=null))switch(ie){case"children":case"dangerouslySetInnerHTML":if(ze!=null)throw Error(s+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:ir(i,s,ie,ze,v,Qe)}return;default:if(bf(s)){for(var Vr in c)ze=c[Vr],c.hasOwnProperty(Vr)&&ze!==void 0&&!v.hasOwnProperty(Vr)&&Tc(i,s,Vr,void 0,v,ze);for(je in v)ze=v[je],Qe=c[je],!v.hasOwnProperty(je)||ze===Qe||ze===void 0&&Qe===void 0||Tc(i,s,je,ze,v,Qe);return}}for(var qn in c)ze=c[qn],c.hasOwnProperty(qn)&&ze!=null&&!v.hasOwnProperty(qn)&&ir(i,s,qn,null,v,ze);for(Ye in v)ze=v[Ye],Qe=c[Ye],!v.hasOwnProperty(Ye)||ze===Qe||ze==null&&Qe==null||ir(i,s,Ye,ze,v,Qe)}function $h(i){switch(i){case"class":return"className";case"for":return"htmlFor";default:return i}}function Wv(i){var s={};i=i.style;for(var c=0;c<i.length;c++){var v=i[c];s[v]=i.getPropertyValue(v)}return s}function j0(i,s,c){if(s!=null&&typeof s!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var v,_=v="",C;for(C in s)if(s.hasOwnProperty(C)){var $=s[C];$!=null&&typeof $!="boolean"&&$!==""&&(C.indexOf("--")===0?(de($,C),v+=_+C+":"+(""+$).trim()):typeof $!="number"||$===0||eS.has(C)?(de($,C),v+=_+C.replace(Du,"-$1").toLowerCase().replace(Kh,"-ms-")+":"+(""+$).trim()):v+=_+C.replace(Du,"-$1").toLowerCase().replace(Kh,"-ms-")+":"+$+"px",_=";")}v=v||null,s=i.getAttribute("style"),s!==v&&(v=_u(v),_u(s)!==v&&(c.style=Wv(i)))}}function Ha(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(B(v,s),i===""+v)return}qr(s,i,v,C)}function v4(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null){switch(typeof v){case"function":case"symbol":return}if(!v)return}else switch(typeof v){case"function":case"symbol":break;default:if(v)return}qr(s,i,v,C)}function b_(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":return}else if(v!=null)switch(typeof v){case"function":case"symbol":break;default:if(B(v,c),i===""+v)return}qr(s,i,v,C)}function vr(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(v))return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(!isNaN(v)&&(B(v,s),i===""+v))return}qr(s,i,v,C)}function Ar(i,s,c,v,_,C){if(_.delete(c),i=i.getAttribute(c),i===null)switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":return}else if(v!=null)switch(typeof v){case"function":case"symbol":case"boolean":break;default:if(B(v,s),c=ru(""+v),i===c)return}qr(s,i,v,C)}function $n(i,s,c,v){for(var _={},C=new Set,$=i.attributes,U=0;U<$.length;U++)switch($[U].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:C.add($[U].name)}if(bf(s)){for(var X in c)if(c.hasOwnProperty(X)){var ie=c[X];if(ie!=null){if(tl.hasOwnProperty(X))typeof ie!="function"&&bs(X,ie);else if(c.suppressHydrationWarning!==!0)switch(X){case"children":typeof ie!="string"&&typeof ie!="number"||qr("children",i.textContent,ie,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":$=i.innerHTML,ie=ie?ie.__html:void 0,ie!=null&&(ie=Ws(i,ie),qr(X,$,ie,_));continue;case"style":C.delete(X),j0(i,ie,_);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":C.delete(X.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",X);continue;case"className":C.delete("class"),$=Lt(i,"class",ie),qr("className",$,ie,_);continue;default:v.context===cd&&s!=="svg"&&s!=="math"?C.delete(X.toLowerCase()):C.delete(X),$=Lt(i,X,ie),qr(X,$,ie,_)}}}}else for(ie in c)if(c.hasOwnProperty(ie)&&(X=c[ie],X!=null)){if(tl.hasOwnProperty(ie))typeof X!="function"&&bs(ie,X);else if(c.suppressHydrationWarning!==!0)switch(ie){case"children":typeof X!="string"&&typeof X!="number"||qr("children",i.textContent,X,_);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":$=i.innerHTML,X=X?X.__html:void 0,X!=null&&(X=Ws(i,X),$!==X&&(_[ie]={__html:$}));continue;case"className":Ha(i,ie,"class",X,C,_);continue;case"tabIndex":Ha(i,ie,"tabindex",X,C,_);continue;case"style":C.delete(ie),j0(i,X,_);continue;case"multiple":C.delete(ie),qr(ie,i.multiple,X,_);continue;case"muted":C.delete(ie),qr(ie,i.muted,X,_);continue;case"autoFocus":C.delete("autofocus"),qr(ie,i.autofocus,X,_);continue;case"data":if(s!=="object"){C.delete(ie),$=i.getAttribute("data"),qr(ie,$,X,_);continue}case"src":case"href":if(!(X!==""||s==="a"&&ie==="href"||s==="object"&&ie==="data")){console.error(ie==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',ie,ie);continue}Ar(i,ie,ie,X,C,_);continue;case"action":case"formAction":if($=i.getAttribute(ie),typeof X=="function"){C.delete(ie.toLowerCase()),ie==="formAction"?(C.delete("name"),C.delete("formenctype"),C.delete("formmethod"),C.delete("formtarget")):(C.delete("enctype"),C.delete("method"),C.delete("target"));continue}else if($===vye){C.delete(ie.toLowerCase()),qr(ie,"function",X,_);continue}Ar(i,ie,ie.toLowerCase(),X,C,_);continue;case"xlinkHref":Ar(i,ie,"xlink:href",X,C,_);continue;case"contentEditable":b_(i,ie,"contenteditable",X,C,_);continue;case"spellCheck":b_(i,ie,"spellcheck",X,C,_);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b_(i,ie,ie,X,C,_);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":v4(i,ie,ie.toLowerCase(),X,C,_);continue;case"capture":case"download":e:{U=i;var je=$=ie,Ye=_;if(C.delete(je),U=U.getAttribute(je),U===null)switch(typeof X){case"undefined":case"function":case"symbol":break e;default:if(X===!1)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":break;case"boolean":if(X===!0&&U==="")break e;break;default:if(B(X,$),U===""+X)break e}qr($,U,X,Ye)}continue;case"cols":case"rows":case"size":case"span":e:{if(U=i,je=$=ie,Ye=_,C.delete(je),U=U.getAttribute(je),U===null)switch(typeof X){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(X)||1>X)break e}else if(X!=null)switch(typeof X){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(X)||1>X)&&(B(X,$),U===""+X))break e}qr($,U,X,Ye)}continue;case"rowSpan":vr(i,ie,"rowspan",X,C,_);continue;case"start":vr(i,ie,ie,X,C,_);continue;case"xHeight":Ha(i,ie,"x-height",X,C,_);continue;case"xlinkActuate":Ha(i,ie,"xlink:actuate",X,C,_);continue;case"xlinkArcrole":Ha(i,ie,"xlink:arcrole",X,C,_);continue;case"xlinkRole":Ha(i,ie,"xlink:role",X,C,_);continue;case"xlinkShow":Ha(i,ie,"xlink:show",X,C,_);continue;case"xlinkTitle":Ha(i,ie,"xlink:title",X,C,_);continue;case"xlinkType":Ha(i,ie,"xlink:type",X,C,_);continue;case"xmlBase":Ha(i,ie,"xml:base",X,C,_);continue;case"xmlLang":Ha(i,ie,"xml:lang",X,C,_);continue;case"xmlSpace":Ha(i,ie,"xml:space",X,C,_);continue;case"inert":X!==""||g3[ie]||(g3[ie]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",ie)),v4(i,ie,ie,X,C,_);continue;default:if(!(2<ie.length)||ie[0]!=="o"&&ie[0]!=="O"||ie[1]!=="n"&&ie[1]!=="N"){U=_f(ie),$=!1,v.context===cd&&s!=="svg"&&s!=="math"?C.delete(U.toLowerCase()):(je=ie.toLowerCase(),je=ug.hasOwnProperty(je)&&ug[je]||null,je!==null&&je!==ie&&($=!0,C.delete(je)),C.delete(U));e:if(je=i,Ye=U,U=X,Vt(Ye))if(je.hasAttribute(Ye))je=je.getAttribute(Ye),B(U,Ye),U=je===""+U?U:je;else{switch(typeof U){case"function":case"symbol":break e;case"boolean":if(je=Ye.toLowerCase().slice(0,5),je!=="data-"&&je!=="aria-")break e}U=U===void 0?void 0:null}else U=void 0;$||qr(ie,U,X,_)}}}return 0<C.size&&c.suppressHydrationWarning!==!0&&x_(i,C,_),Object.keys(_).length===0?null:_}function Qn(i,s){switch(i.length){case 0:return"";case 1:return i[0];case 2:return i[0]+" "+s+" "+i[1];default:return i.slice(0,-1).join(", ")+", "+s+" "+i[i.length-1]}}function or(i){return i.nodeType===9?i:i.ownerDocument}function Ca(i){switch(i){case Mu:return i1;case Ty:return y3;default:return cd}}function Su(i,s){if(i===cd)switch(s){case"svg":return i1;case"math":return y3;default:return cd}return i===i1&&s==="foreignObject"?cd:i}function Rc(i,s){return i==="textarea"||i==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}function __(){var i=window.event;return i&&i.type==="popstate"?i===$I?!1:($I=i,!0):($I=null,!1)}function wu(i){setTimeout(function(){throw i})}function yi(i,s,c){switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&i.focus();break;case"img":c.src?i.src=c.src:c.srcSet&&(i.srcset=c.srcSet)}}function Oc(i,s,c,v){m4(i,s,c,v),i[Ta]=v}function Dc(i){Wp(i,"")}function S_(i,s,c){i.nodeValue=c}function Pi(i){return i==="head"}function Bh(i,s){i.removeChild(s)}function H0(i,s){(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).removeChild(s)}function Yo(i,s){var c=s,v=0,_=0;do{var C=c.nextSibling;if(i.removeChild(c),C&&C.nodeType===8)if(c=C.data,c===v3){if(0<v&&8>v){c=v;var $=i.ownerDocument;if(c&xye&&zh($.documentElement),c&bye&&zh($.body),c&_ye)for(c=$.head,zh(c),$=c.firstChild;$;){var U=$.nextSibling,X=$.nodeName;$[tg]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&$.rel.toLowerCase()==="stylesheet"||c.removeChild($),$=U}}if(_===0){i.removeChild(C),Ph(s);return}_--}else c===m3||c===ud||c===RS?_++:v=c.charCodeAt(0)-48;else v=0;c=C}while(c);Ph(s)}function w_(i){i=i.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"}function C_(i){i.nodeValue=""}function Xv(i,s){s=s[Sye],s=s!=null&&s.hasOwnProperty("display")?s.display:null,i.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}function Jv(i,s){i.nodeValue=s}function El(i){var s=i.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":El(c),Zt(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function vo(i,s,c,v){for(;i.nodeType===1;){var _=c;if(i.nodeName.toLowerCase()!==s.toLowerCase()){if(!v&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(v){if(!i[tg])switch(s){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(C=i.getAttribute("rel"),C==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(C!==_.rel||i.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||i.getAttribute("title")!==(_.title==null?null:_.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(C=i.getAttribute("src"),(C!==(_.src==null?null:_.src)||i.getAttribute("type")!==(_.type==null?null:_.type)||i.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&C&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(s==="input"&&i.type==="hidden"){B(_.name,"name");var C=_.name==null?null:""+_.name;if(_.type==="hidden"&&i.getAttribute("name")===C)return i}else return i;if(i=Ea(i.nextSibling),i===null)break}return null}function Mc(i,s,c){if(s==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=Ea(i.nextSibling),i===null))return null;return i}function Ic(i){return i.data===RS||i.data===ud&&i.ownerDocument.readyState===sV}function Lh(i,s){var c=i.ownerDocument;if(i.data!==ud||c.readyState===sV)s();else{var v=function(){s(),c.removeEventListener("DOMContentLoaded",v)};c.addEventListener("DOMContentLoaded",v),i._reactRetry=v}}function Ea(i){for(;i!=null;i=i.nextSibling){var s=i.nodeType;if(s===1||s===3)break;if(s===8){if(s=i.data,s===m3||s===RS||s===ud||s===DI||s===aV)break;if(s===v3)return null}}return i}function ey(i){if(i.nodeType===1){for(var s=i.nodeName.toLowerCase(),c={},v=i.attributes,_=0;_<v.length;_++){var C=v[_];c[$h(C.name)]=C.name.toLowerCase()==="style"?Wv(i):C.value}return{type:s,props:c}}return i.nodeType===8?{type:"Suspense",props:{}}:i.nodeValue}function E_(i,s,c){return c===null||c[yye]!==!0?(i.nodeValue===s?i=null:(s=_u(s),i=_u(i.nodeValue)===s?null:i.nodeValue),i):null}function Nh(i){i=i.nextSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===v3){if(s===0)return Ea(i.nextSibling);s--}else c!==m3&&c!==RS&&c!==ud||s++}i=i.nextSibling}return null}function ty(i){i=i.previousSibling;for(var s=0;i;){if(i.nodeType===8){var c=i.data;if(c===m3||c===RS||c===ud){if(s===0)return i;s--}else c===v3&&s++}i=i.previousSibling}return null}function Pa(i){Ph(i)}function y4(i){Ph(i)}function Aa(i,s,c,v,_){switch(_&&Qm(i,v.ancestorInfo),s=or(c),i){case"html":if(i=s.documentElement,!i)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"head":if(i=s.head,!i)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return i;case"body":if(i=s.body,!i)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return i;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function x4(i,s,c,v){if(!c[Uc]&&jt(c)){var _=c.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",_,_,_)}switch(i){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(_=c.attributes;_.length;)c.removeAttributeNode(_[0]);to(c,i,s),c[$o]=v,c[Ta]=s}function zh(i){for(var s=i.attributes;s.length;)i.removeAttributeNode(s[0]);Zt(i)}function ny(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}function Cu(i,s,c){var v=o1;if(v&&typeof s=="string"&&s){var _=Bn(s);_='link[rel="'+i+'"][href="'+_+'"]',typeof c=="string"&&(_+='[crossorigin="'+c+'"]'),hV.has(_)||(hV.add(_),i={rel:i,crossOrigin:c,href:s},v.querySelector(_)===null&&(s=v.createElement("link"),to(s,"link",i),we(s),v.head.appendChild(s)))}}function P0(i,s,c,v){var _=(_=kl.current)?ny(_):null;if(!_)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(c=Xs(c.href),s=G(_).hoistableStyles,v=s.get(c),v||(v={type:"style",instance:null,count:0,state:null},s.set(c,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=Xs(c.href);var C=G(_).hoistableStyles,$=C.get(i);if(!$&&(_=_.ownerDocument||_,$={type:"stylesheet",instance:null,count:0,state:{loading:Ag,preload:null}},C.set(i,$),(C=_.querySelector(Uh(i)))&&!C._p&&($.instance=C,$.state.loading=OS|Pl),!ql.has(i))){var U={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy};ql.set(i,U),C||b4(_,i,U,$.state)}if(s&&v===null)throw c=`
|
|
245
245
|
|
|
246
246
|
- `+Fh(s)+`
|
|
247
247
|
+ `+Fh(c),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+c);return $}if(s&&v!==null)throw c=`
|
|
@@ -476,7 +476,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
476
476
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,z=!0,L=!1;return{s:function(){T=T.call(E)},n:function(){var V=T.next();return z=V.done,V},e:function(V){L=!0,I=V},f:function(){try{z||T.return==null||T.return()}finally{if(L)throw I}}}}function p(E,k){if(E){if(typeof E=="string")return m(E,k);var T={}.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?m(E,k):void 0}}function m(E,k){(k==null||k>E.length)&&(k=E.length);for(var T=0,O=Array(k);T<k;T++)O[T]=E[T];return O}var y={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};function x(E){return/(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(E)}function S(E,k){for(var T=[],O=Math.max(E.length,k.length),R=0;R<O;R++)T.push([E[R],k[R]]);return T}function w(E,k){if(typeof k=="string"?k=(0,n.default)({format:k},y):k=(0,n.default)(k,y),typeof E=="string"&&x(k.format)){if(k.strictMode&&E.length!==k.format.length)return!1;var T=k.delimiters.find(function(pe){return k.format.indexOf(pe)!==-1}),O=k.strictMode?T:k.delimiters.find(function(pe){return E.indexOf(pe)!==-1}),R=S(E.split(O),k.format.toLowerCase().split(T)),I={},z=h(R),L;try{for(z.s();!(L=z.n()).done;){var H=o(L.value,2),V=H[0],te=H[1];if(!V||!te||V.length!==te.length)return!1;I[te.charAt(0)]=V}}catch(pe){z.e(pe)}finally{z.f()}var F=I.y;if(F.startsWith("-"))return!1;if(I.y.length===2){var Q=parseInt(I.y,10);if(isNaN(Q))return!1;var J=new Date().getFullYear()%100;Q<J?F="20".concat(I.y):F="19".concat(I.y)}var oe=I.m;I.m.length===1&&(oe="0".concat(I.m));var re=I.d;return I.d.length===1&&(re="0".concat(I.d)),new Date("".concat(F,"-").concat(oe,"-").concat(re,"T00:00:00.000Z")).getUTCDate()===+I.d}return k.strictMode?!1:Object.prototype.toString.call(E)==="[object Date]"&&isFinite(E)}e.exports=t.default,e.exports.default=t.default}(qE,qE.exports)),qE.exports}var GE={exports:{}},BF;function Cue(){return BF||(BF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Ba());function r(d){return d&&d.__esModule?d:{default:d}}var o={hourFormat:"hour24",mode:"default"},a={hour24:{default:/^([01]?[0-9]|2[0-3]):([0-5][0-9])$/,withSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/,withOptionalSeconds:/^([01]?[0-9]|2[0-3]):([0-5][0-9])(?::([0-5][0-9]))?$/},hour12:{default:/^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/,withSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/,withOptionalSeconds:/^(0?[1-9]|1[0-2]):([0-5][0-9])(?::([0-5][0-9]))? (A|P)M$/}};function l(d,h){return h=(0,n.default)(h,o),typeof d!="string"?!1:a[h.hourFormat][h.mode].test(d)}e.exports=t.default,e.exports.default=t.default}(GE,GE.exports)),GE.exports}var VE={exports:{}},YE={exports:{}},LF;function Ax(){return LF||(LF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(o,a){return o.some(function(l){return a===l})};t.default=n,e.exports=t.default,e.exports.default=t.default}(YE,YE.exports)),YE.exports}var NF;function Eue(){return NF||(NF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=o(St()),r=o(Ax());function o(p){return p&&p.__esModule?p:{default:p}}var a={loose:!1},l=["true","false","1","0"],d=[].concat(l,["yes","no"]);function h(p){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:a;return(0,n.default)(p),m.loose?(0,r.default)(d,p.toLowerCase()):(0,r.default)(l,p)}e.exports=t.default,e.exports.default=t.default}(VE,VE.exports)),VE.exports}var ZE={exports:{}},zF;function Aue(){return zF||(zF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=O;var n=r(St());function r(R){return R&&R.__esModule?R:{default:R}}var o="([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",a="(([a-zA-Z]{2,3}(-".concat(o,")?)|([a-zA-Z]{5,8}))"),l="([A-Za-z]{4})",d="([A-Za-z]{2}|\\d{3})",h="([A-Za-z0-9]{5,8}|(\\d[A-Z-a-z0-9]{3}))",p="(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])",m="(".concat(p,"(-[A-Za-z0-9]{2,8})+)"),y="(x(-[A-Za-z0-9]{1,8})+)",x="((en-GB-oed)|(i-ami)|(i-bnn)|(i-default)|(i-enochian)|(i-hak)|(i-klingon)|(i-lux)|(i-mingo)|(i-navajo)|(i-pwn)|(i-tao)|(i-tay)|(i-tsu)|(sgn-BE-FR)|(sgn-BE-NL)|(sgn-CH-DE))",S="((art-lojban)|(cel-gaulish)|(no-bok)|(no-nyn)|(zh-guoyu)|(zh-hakka)|(zh-min)|(zh-min-nan)|(zh-xiang))",w="(".concat(x,"|").concat(S,")"),E="(-|_)",k="".concat(a,"(").concat(E).concat(l,")?(").concat(E).concat(d,")?(").concat(E).concat(h,")*(").concat(E).concat(m,")*(").concat(E).concat(y,")?"),T=new RegExp("(^".concat(y,"$)|(^").concat(w,"$)|(^").concat(k,"$)"));function O(R){return(0,n.default)(R),T.test(R)}e.exports=t.default,e.exports.default=t.default}(ZE,ZE.exports)),ZE.exports}var QE={exports:{}},FF;function kue(){return FF||(FF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(?!(1[3-9])|(20)|(3[3-9])|(4[0-9])|(5[0-9])|(60)|(7[3-9])|(8[1-9])|(9[0-2])|(9[3-9]))[0-9]{9}$/;function a(l){if((0,n.default)(l),!o.test(l))return!1;for(var d=0,h=0;h<l.length;h++)h%3===0?d+=l[h]*3:h%3===1?d+=l[h]*7:d+=l[h]*1;return d%10===0}e.exports=t.default,e.exports.default=t.default}(QE,QE.exports)),QE.exports}var Em={},UF;function Tue(){if(UF)return Em;UF=1,Object.defineProperty(Em,"__esModule",{value:!0}),Em.default=r,Em.locales=void 0;var e=n(St()),t=Ex();function n(o){return o&&o.__esModule?o:{default:o}}function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(o);var d=o,h=l.ignore;if(h)if(h instanceof RegExp)d=d.replace(h,"");else if(typeof h=="string")d=d.replace(new RegExp("[".concat(h.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(a in t.alpha)return t.alpha[a].test(d);throw new Error("Invalid locale '".concat(a,"'"))}return Em.locales=Object.keys(t.alpha),Em}var Am={},jF;function Rue(){if(jF)return Am;jF=1,Object.defineProperty(Am,"__esModule",{value:!0}),Am.default=r,Am.locales=void 0;var e=n(St()),t=Ex();function n(o){return o&&o.__esModule?o:{default:o}}function r(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US",l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};(0,e.default)(o);var d=o,h=l.ignore;if(h)if(h instanceof RegExp)d=d.replace(h,"");else if(typeof h=="string")d=d.replace(new RegExp("[".concat(h.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"");else throw new Error("ignore should be instance of a String or RegExp");if(a in t.alphanumeric)return t.alphanumeric[a].test(d);throw new Error("Invalid locale '".concat(a,"'"))}return Am.locales=Object.keys(t.alphanumeric),Am}var KE={exports:{}},HF;function Oue(){return HF||(HF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(St()),r=Ex();function o(d){return d&&d.__esModule?d:{default:d}}var a=/^[0-9]+$/;function l(d,h){return(0,n.default)(d),h&&h.no_symbols?a.test(d):new RegExp("^[+-]?([0-9]*[".concat((h||{}).locale?r.decimal[h.locale]:".","])?[0-9]+$")).test(d)}e.exports=t.default,e.exports.default=t.default}(KE,KE.exports)),KE.exports}var km={},PF;function Due(){if(PF)return km;PF=1,Object.defineProperty(km,"__esModule",{value:!0}),km.default=r,km.locales=void 0;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n={AM:/^[A-Z]{2}\d{7}$/,AR:/^[A-Z]{3}\d{6}$/,AT:/^[A-Z]\d{7}$/,AU:/^[A-Z]\d{7}$/,AZ:/^[A-Z]{1}\d{8}$/,BE:/^[A-Z]{2}\d{6}$/,BG:/^\d{9}$/,BR:/^[A-Z]{2}\d{6}$/,BY:/^[A-Z]{2}\d{7}$/,CA:/^[A-Z]{2}\d{6}$|^[A-Z]\d{6}[A-Z]{2}$/,CH:/^[A-Z]\d{7}$/,CN:/^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/,CY:/^[A-Z](\d{6}|\d{8})$/,CZ:/^\d{8}$/,DE:/^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,DK:/^\d{9}$/,DZ:/^\d{9}$/,EE:/^([A-Z]\d{7}|[A-Z]{2}\d{7})$/,ES:/^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/,FI:/^[A-Z]{2}\d{7}$/,FR:/^\d{2}[A-Z]{2}\d{5}$/,GB:/^\d{9}$/,GR:/^[A-Z]{2}\d{7}$/,HR:/^\d{9}$/,HU:/^[A-Z]{2}(\d{6}|\d{7})$/,IE:/^[A-Z0-9]{2}\d{7}$/,IN:/^[A-Z]{1}-?\d{7}$/,ID:/^[A-C]\d{7}$/,IR:/^[A-Z]\d{8}$/,IS:/^(A)\d{7}$/,IT:/^[A-Z0-9]{2}\d{7}$/,JM:/^[Aa]\d{7}$/,JP:/^[A-Z]{2}\d{7}$/,KR:/^[MS]\d{8}$/,KZ:/^[a-zA-Z]\d{7}$/,LI:/^[a-zA-Z]\d{5}$/,LT:/^[A-Z0-9]{8}$/,LU:/^[A-Z0-9]{8}$/,LV:/^[A-Z0-9]{2}\d{7}$/,LY:/^[A-Z0-9]{8}$/,MT:/^\d{7}$/,MZ:/^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/,MY:/^[AHK]\d{8}$/,MX:/^\d{10,11}$/,NL:/^[A-Z]{2}[A-Z0-9]{6}\d$/,NZ:/^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/,PH:/^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/,PK:/^[A-Z]{2}\d{7}$/,PL:/^[A-Z]{2}\d{7}$/,PT:/^[A-Z]\d{6}$/,RO:/^\d{8,9}$/,RU:/^\d{9}$/,SE:/^\d{8}$/,SL:/^(P)[A-Z]\d{7}$/,SK:/^[0-9A-Z]\d{7}$/,TH:/^[A-Z]{1,2}\d{6,7}$/,TR:/^[A-Z]\d{8}$/,UA:/^[A-Z]{2}\d{6}$/,US:/^\d{9}$|^[A-Z]\d{8}$/,ZA:/^[TAMD]\d{8}$/};km.locales=Object.keys(n);function r(o,a){(0,e.default)(o);var l=o.replace(/\s/g,"").toUpperCase();return a.toUpperCase()in n&&n[a].test(l)}return km}var WE={exports:{}},XE={exports:{}},qF;function o6(){return qF||(qF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(St()),r=o(aF());function o(h){return h&&h.__esModule?h:{default:h}}var a=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,l=/^[-+]?[0-9]+$/;function d(h,p){(0,n.default)(h),p=p||{};var m=p.allow_leading_zeroes===!1?a:l,y=!p.hasOwnProperty("min")||(0,r.default)(p.min)||h>=p.min,x=!p.hasOwnProperty("max")||(0,r.default)(p.max)||h<=p.max,S=!p.hasOwnProperty("lt")||(0,r.default)(p.lt)||h<p.lt,w=!p.hasOwnProperty("gt")||(0,r.default)(p.gt)||h>p.gt;return m.test(h)&&y&&x&&S&&w}e.exports=t.default,e.exports.default=t.default}(XE,XE.exports)),XE.exports}var GF;function Mue(){return GF||(GF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(o6());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a,{allow_leading_zeroes:!1,min:0,max:65535})}e.exports=t.default,e.exports.default=t.default}(WE,WE.exports)),WE.exports}var JE={exports:{}},VF;function Iue(){return VF||(VF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a===a.toLowerCase()}e.exports=t.default,e.exports.default=t.default}(JE,JE.exports)),JE.exports}var eA={exports:{}},YF;function $ue(){return YF||(YF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a===a.toUpperCase()}e.exports=t.default,e.exports.default=t.default}(eA,eA.exports)),eA.exports}var tA={exports:{}},ZF;function Bue(){return ZF||(ZF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(St());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^[0-9]{15}$/,a=/^\d{2}-\d{6}-\d{6}-\d{1}$/;function l(d,h){(0,n.default)(d),h=h||{};var p=o;if(h.allow_hyphens&&(p=a),!p.test(d))return!1;d=d.replace(/-/g,"");for(var m=0,y=2,x=14,S=0;S<x;S++){var w=d.substring(x-S-1,x-S),E=parseInt(w,10)*y;E>=10?m+=E%10+1:m+=E,y===1?y+=1:y-=1}var k=(10-m%10)%10;return k===parseInt(d.substring(14,15),10)}e.exports=t.default,e.exports.default=t.default}(tA,tA.exports)),tA.exports}var nA={exports:{}},QF;function Lue(){return QF||(QF=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[\x00-\x7F]+$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(nA,nA.exports)),nA.exports}var Tm={},KF;function WF(){if(KF)return Tm;KF=1,Object.defineProperty(Tm,"__esModule",{value:!0}),Tm.default=r,Tm.fullWidth=void 0;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n=Tm.fullWidth=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function r(o){return(0,e.default)(o),n.test(o)}return Tm}var Rm={},XF;function JF(){if(XF)return Rm;XF=1,Object.defineProperty(Rm,"__esModule",{value:!0}),Rm.default=r,Rm.halfWidth=void 0;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n=Rm.halfWidth=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;function r(o){return(0,e.default)(o),n.test(o)}return Rm}var rA={exports:{}},eU;function Nue(){return eU||(eU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=a(St()),r=WF(),o=JF();function a(d){return d&&d.__esModule?d:{default:d}}function l(d){return(0,n.default)(d),r.fullWidth.test(d)&&o.halfWidth.test(d)}e.exports=t.default,e.exports.default=t.default}(rA,rA.exports)),rA.exports}var iA={exports:{}},tU;function zue(){return tU||(tU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/[^\x00-\x7F]/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(iA,iA.exports)),iA.exports}var oA={exports:{}},aA={exports:{}},nU;function Fue(){return nU||(nU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;function n(r,o){var a=r.join("");return new RegExp(a,o)}e.exports=t.default,e.exports.default=t.default}(aA,aA.exports)),aA.exports}var rU;function Uue(){return rU||(rU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(St()),r=o(Fue());function o(d){return d&&d.__esModule?d:{default:d}}var a=(0,r.default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)","(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))","?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"],"i");function l(d){return(0,n.default)(d),a.test(d)}e.exports=t.default,e.exports.default=t.default}(oA,oA.exports)),oA.exports}var sA={exports:{}},iU;function jue(){return iU||(iU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(sA,sA.exports)),sA.exports}var lA={exports:{}},oU;function Hue(){return oU||(oU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=l(Ba()),r=l(St()),o=l(Ax()),a=Ex();function l(y){return y&&y.__esModule?y:{default:y}}function d(y){var x=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.decimal[y.locale],"[0-9]{").concat(y.decimal_digits,"})").concat(y.force_decimal?"":"?","$"));return x}var h={force_decimal:!1,decimal_digits:"1,",locale:"en-US"},p=["","-","+"];function m(y,x){if((0,r.default)(y),x=(0,n.default)(x,h),x.locale in a.decimal)return!(0,o.default)(p,y.replace(/ /g,""))&&d(x).test(y);throw new Error("Invalid locale '".concat(x.locale,"'"))}e.exports=t.default,e.exports.default=t.default}(lA,lA.exports)),lA.exports}var uA={exports:{}},aU;function sU(){return aU||(aU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0x|0h)?[0-9A-F]+$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(uA,uA.exports)),uA.exports}var cA={exports:{}},lU;function Pue(){return lU||(lU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0o)?[0-7]+$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(cA,cA.exports)),cA.exports}var fA={exports:{}},uU;function que(){return uU||(uU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(St()),r=o(fF());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){return(0,n.default)(l),(0,r.default)(l)%parseInt(d,10)===0}e.exports=t.default,e.exports.default=t.default}(fA,fA.exports)),fA.exports}var dA={exports:{}},cU;function Gue(){return cU||(cU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(dA,dA.exports)),dA.exports}var hA={exports:{}},fU;function Vue(){return fU||(fU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=r(St());function r(y){return y&&y.__esModule?y:{default:y}}function o(y){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},o(y)}var a=/^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/,l=/^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,d=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,h=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d\d?|1(\.0)?|0(\.0)?)\)$/,p=/^rgba?/;function m(y,x){(0,n.default)(y);var S=!1,w=!0;if(o(x)!=="object"?arguments.length>=2&&(w=arguments[1]):(S=x.allowSpaces!==void 0?x.allowSpaces:S,w=x.includePercentValues!==void 0?x.includePercentValues:w),S){if(!p.test(y))return!1;y=y.replace(/\s/g,"")}return w?a.test(y)||l.test(y)||d.test(y)||h.test(y):a.test(y)||l.test(y)}e.exports=t.default,e.exports.default=t.default}(hA,hA.exports)),hA.exports}var pA={exports:{}},dU;function Yue(){return dU||(dU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(St());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i,a=/^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i;function l(d){(0,n.default)(d);var h=d.replace(/\s+/g," ").replace(/\s?(hsla?\(|\)|,)\s?/ig,"$1");return h.indexOf(",")!==-1?o.test(h):a.test(h)}e.exports=t.default,e.exports.default=t.default}(pA,pA.exports)),pA.exports}var gA={exports:{}},hU;function Zue(){return hU||(hU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(gA,gA.exports)),gA.exports}var Om={},pU;function Que(){if(pU)return Om;pU=1,Object.defineProperty(Om,"__esModule",{value:!0}),Om.default=d,Om.locales=void 0;var e=n(St()),t=n(Ax());function n(h){return h&&h.__esModule?h:{default:h}}var r={AD:/^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/,AE:/^(AE[0-9]{2})\d{3}\d{16}$/,AL:/^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/,AT:/^(AT[0-9]{2})\d{16}$/,AZ:/^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/,BA:/^(BA[0-9]{2})\d{16}$/,BE:/^(BE[0-9]{2})\d{12}$/,BG:/^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/,BH:/^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,BR:/^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/,BY:/^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/,CH:/^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/,CR:/^(CR[0-9]{2})\d{18}$/,CY:/^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/,CZ:/^(CZ[0-9]{2})\d{20}$/,DE:/^(DE[0-9]{2})\d{18}$/,DK:/^(DK[0-9]{2})\d{14}$/,DO:/^(DO[0-9]{2})[A-Z]{4}\d{20}$/,DZ:/^(DZ\d{24})$/,EE:/^(EE[0-9]{2})\d{16}$/,EG:/^(EG[0-9]{2})\d{25}$/,ES:/^(ES[0-9]{2})\d{20}$/,FI:/^(FI[0-9]{2})\d{14}$/,FO:/^(FO[0-9]{2})\d{14}$/,FR:/^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,GB:/^(GB[0-9]{2})[A-Z]{4}\d{14}$/,GE:/^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/,GI:/^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/,GL:/^(GL[0-9]{2})\d{14}$/,GR:/^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/,GT:/^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/,HR:/^(HR[0-9]{2})\d{17}$/,HU:/^(HU[0-9]{2})\d{24}$/,IE:/^(IE[0-9]{2})[A-Z]{4}\d{14}$/,IL:/^(IL[0-9]{2})\d{19}$/,IQ:/^(IQ[0-9]{2})[A-Z]{4}\d{15}$/,IR:/^(IR[0-9]{2})0\d{2}0\d{18}$/,IS:/^(IS[0-9]{2})\d{22}$/,IT:/^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,JO:/^(JO[0-9]{2})[A-Z]{4}\d{22}$/,KW:/^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/,KZ:/^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/,LB:/^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/,LC:/^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/,LI:/^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/,LT:/^(LT[0-9]{2})\d{16}$/,LU:/^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/,LV:/^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/,MA:/^(MA[0-9]{26})$/,MC:/^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/,MD:/^(MD[0-9]{2})[A-Z0-9]{20}$/,ME:/^(ME[0-9]{2})\d{18}$/,MK:/^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/,MR:/^(MR[0-9]{2})\d{23}$/,MT:/^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/,MU:/^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/,MZ:/^(MZ[0-9]{2})\d{21}$/,NL:/^(NL[0-9]{2})[A-Z]{4}\d{10}$/,NO:/^(NO[0-9]{2})\d{11}$/,PK:/^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/,PL:/^(PL[0-9]{2})\d{24}$/,PS:/^(PS[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,PT:/^(PT[0-9]{2})\d{21}$/,QA:/^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,RO:/^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,RS:/^(RS[0-9]{2})\d{18}$/,SA:/^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/,SC:/^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/,SE:/^(SE[0-9]{2})\d{20}$/,SI:/^(SI[0-9]{2})\d{15}$/,SK:/^(SK[0-9]{2})\d{20}$/,SM:/^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/,SV:/^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/,TL:/^(TL[0-9]{2})\d{19}$/,TN:/^(TN[0-9]{2})\d{20}$/,TR:/^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/,UA:/^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/,VA:/^(VA[0-9]{2})\d{18}$/,VG:/^(VG[0-9]{2})[A-Z]{4}\d{16}$/,XK:/^(XK[0-9]{2})\d{16}$/};function o(h){var p=h.filter(function(m){return!(m in r)});return!(p.length>0)}function a(h,p){var m=h.replace(/[\s\-]+/gi,"").toUpperCase(),y=m.slice(0,2).toUpperCase(),x=y in r;if(p.whitelist){if(!o(p.whitelist))return!1;var S=(0,t.default)(p.whitelist,y);if(!S)return!1}if(p.blacklist){var w=(0,t.default)(p.blacklist,y);if(w)return!1}return x&&r[y].test(m)}function l(h){var p=h.replace(/[^A-Z0-9]+/gi,"").toUpperCase(),m=p.slice(4)+p.slice(0,4),y=m.replace(/[A-Z]/g,function(S){return S.charCodeAt(0)-55}),x=y.match(/\d{1,7}/g).reduce(function(S,w){return Number(S+w)%97},"");return x===1}function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return(0,e.default)(h),a(h,p)&&l(h)}return Om.locales=Object.keys(r),Om}var mA={exports:{}},Dm={},gU;function mU(){if(gU)return Dm;gU=1,Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.CountryCodes=void 0,Dm.default=r;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["AD","AE","AF","AG","AI","AL","AM","AO","AQ","AR","AS","AT","AU","AW","AX","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BQ","BR","BS","BT","BV","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CW","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","EH","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GF","GG","GH","GI","GL","GM","GN","GP","GQ","GR","GS","GT","GU","GW","GY","HK","HM","HN","HR","HT","HU","ID","IE","IL","IM","IN","IO","IQ","IR","IS","IT","JE","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MQ","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NF","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PS","PT","PW","PY","QA","RE","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SJ","SK","SL","SM","SN","SO","SR","SS","ST","SV","SX","SY","SZ","TC","TD","TF","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","UM","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","YE","YT","ZA","ZM","ZW"]);function r(o){return(0,e.default)(o),n.has(o.toUpperCase())}return Dm.CountryCodes=n,Dm}var vU;function Kue(){return vU||(vU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(St()),r=mU();function o(d){return d&&d.__esModule?d:{default:d}}var a=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;function l(d){(0,n.default)(d);var h=d.slice(4,6).toUpperCase();return!r.CountryCodes.has(h)&&h!=="XK"?!1:a.test(d)}e.exports=t.default,e.exports.default=t.default}(mA,mA.exports)),mA.exports}var vA={exports:{}},yU;function Wue(){return yU||(yU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[a-f0-9]{32}$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(vA,vA.exports)),vA.exports}var yA={exports:{}},xU;function Xue(){return xU||(xU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o={md5:32,md4:32,sha1:40,sha256:64,sha384:96,sha512:128,ripemd128:32,ripemd160:40,tiger128:32,tiger160:40,tiger192:48,crc32:8,crc32b:8};function a(l,d){(0,n.default)(l);var h=new RegExp("^[a-fA-F0-9]{".concat(o[d],"}$"));return h.test(l)}e.exports=t.default,e.exports.default=t.default}(yA,yA.exports)),yA.exports}var xA={exports:{}},bA={exports:{}},bU;function _U(){return bU||(bU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var n=o(St()),r=o(Ba());function o(m){return m&&m.__esModule?m:{default:m}}var a=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$/,l=/^[A-Za-z0-9+/]+$/,d=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}==|[A-Za-z0-9_-]{3}=|[A-Za-z0-9_-]{4})$/,h=/^[A-Za-z0-9_-]+$/;function p(m,y){var x;if((0,n.default)(m),y=(0,r.default)(y,{urlSafe:!1,padding:!((x=y)!==null&&x!==void 0&&x.urlSafe)}),m==="")return!0;var S;return y.urlSafe?S=y.padding?d:h:S=y.padding?a:l,(!y.padding||m.length%4===0)&&S.test(m)}e.exports=t.default,e.exports.default=t.default}(bA,bA.exports)),bA.exports}var SU;function Jue(){return SU||(SU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(St()),r=o(_U());function o(l){return l&&l.__esModule?l:{default:l}}function a(l){(0,n.default)(l);var d=l.split("."),h=d.length;return h!==3?!1:d.reduce(function(p,m){return p&&(0,r.default)(m,{urlSafe:!0})},!0)}e.exports=t.default,e.exports.default=t.default}(xA,xA.exports)),xA.exports}var _A={exports:{}},wU;function ece(){return wU||(wU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=a(St()),r=a(Ax()),o=a(Ba());function a(p){return p&&p.__esModule?p:{default:p}}function l(p){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},l(p)}var d={allow_primitives:!1};function h(p,m){(0,n.default)(p);try{m=(0,o.default)(m,d);var y=[];m.allow_primitives&&(y=[null,!1,!0]);var x=JSON.parse(p);return(0,r.default)(y,x)||!!x&&l(x)==="object"}catch{}return!1}e.exports=t.default,e.exports.default=t.default}(_A,_A.exports)),_A.exports}var SA={exports:{}},CU;function tce(){return CU||(CU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(St()),r=o(Ba());function o(d){return d&&d.__esModule?d:{default:d}}var a={ignore_whitespace:!1};function l(d,h){return(0,n.default)(d),h=(0,r.default)(h,a),(h.ignore_whitespace?d.trim().length:d.length)===0}e.exports=t.default,e.exports.default=t.default}(SA,SA.exports)),SA.exports}var wA={exports:{}},EU;function nce(){return EU||(EU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}function o(l){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o(l)}function a(l,d){(0,n.default)(l);var h,p;o(d)==="object"?(h=d.min||0,p=d.max):(h=arguments[1]||0,p=arguments[2]);var m=l.match(/(\uFE0F|\uFE0E)/g)||[],y=l.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],x=l.length-m.length-y.length,S=x>=h&&(typeof p>"u"||x<=p);return S&&Array.isArray(d==null?void 0:d.discreteLengths)?d.discreteLengths.some(function(w){return w===x}):S}e.exports=t.default,e.exports.default=t.default}(wA,wA.exports)),wA.exports}var CA={exports:{}},AU;function rce(){return AU||(AU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),/^[0-7][0-9A-HJKMNP-TV-Z]{25}$/i.test(a)}e.exports=t.default,e.exports.default=t.default}(CA,CA.exports)),CA.exports}var EA={exports:{}},kU;function ice(){return kU||(kU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o={1:/^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,2:/^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,3:/^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,4:/^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,5:/^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,6:/^[0-9A-F]{8}-[0-9A-F]{4}-6[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,7:/^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,8:/^[0-9A-F]{8}-[0-9A-F]{4}-8[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,nil:/^00000000-0000-0000-0000-000000000000$/i,max:/^ffffffff-ffff-ffff-ffff-ffffffffffff$/i,loose:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,all:/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i};function a(l,d){return(0,n.default)(l),d==null&&(d="all"),d in o?o[d].test(l):!1}e.exports=t.default,e.exports.default=t.default}(EA,EA.exports)),EA.exports}var AA={exports:{}},TU;function oce(){return TU||(TU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(St()),r=o(sU());function o(l){return l&&l.__esModule?l:{default:l}}function a(l){return(0,n.default)(l),(0,r.default)(l)&&l.length===24}e.exports=t.default,e.exports.default=t.default}(AA,AA.exports)),AA.exports}var kA={exports:{}},RU;function ace(){return RU||(RU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(r6());function r(l){return l&&l.__esModule?l:{default:l}}function o(l){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o(l)}function a(l,d){var h=(o(d)==="object"?d.comparisonDate:d)||Date().toString(),p=(0,n.default)(h),m=(0,n.default)(l);return!!(m&&p&&m>p)}e.exports=t.default,e.exports.default=t.default}(kA,kA.exports)),kA.exports}var TA={exports:{}},OU;function sce(){return OU||(OU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(r6());function r(l){return l&&l.__esModule?l:{default:l}}function o(l){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},o(l)}function a(l,d){var h=(o(d)==="object"?d.comparisonDate:d)||Date().toString(),p=(0,n.default)(h),m=(0,n.default)(l);return!!(m&&p&&m<p)}e.exports=t.default,e.exports.default=t.default}(TA,TA.exports)),TA.exports}var RA={exports:{}},DU;function lce(){return DU||(DU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=o(St()),r=o(mF());function o(d){return d&&d.__esModule?d:{default:d}}function a(d){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(h){return typeof h}:function(h){return h&&typeof Symbol=="function"&&h.constructor===Symbol&&h!==Symbol.prototype?"symbol":typeof h},a(d)}function l(d,h){(0,n.default)(d);var p;if(Object.prototype.toString.call(h)==="[object Array]"){var m=[];for(p in h)({}).hasOwnProperty.call(h,p)&&(m[p]=(0,r.default)(h[p]));return m.indexOf(d)>=0}else{if(a(h)==="object")return h.hasOwnProperty(d);if(h&&typeof h.indexOf=="function")return h.indexOf(d)>=0}return!1}e.exports=t.default,e.exports.default=t.default}(RA,RA.exports)),RA.exports}var OA={exports:{}},MU;function IU(){return MU||(MU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){(0,n.default)(a);for(var l=a.replace(/[- ]+/g,""),d=0,h,p,m,y=l.length-1;y>=0;y--)h=l.substring(y,y+1),p=parseInt(h,10),m?(p*=2,p>=10?d+=p%10+1:d+=p):d+=p,m=!m;return!!(d%10===0&&l)}e.exports=t.default,e.exports.default=t.default}(OA,OA.exports)),OA.exports}var DA={exports:{}},$U;function uce(){return $U||($U=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(St()),r=o(IU());function o(h){return h&&h.__esModule?h:{default:h}}var a={amex:/^3[47][0-9]{13}$/,dinersclub:/^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,discover:/^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,jcb:/^(?:2131|1800|35\d{3})\d{11}$/,mastercard:/^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,unionpay:/^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,visa:/^(?:4[0-9]{12})(?:[0-9]{3,6})?$/},l=function(){var h=[];for(var p in a)a.hasOwnProperty(p)&&h.push(a[p]);return h}();function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(h);var m=p.provider,y=h.replace(/[- ]+/g,"");if(m&&m.toLowerCase()in a){if(!a[m.toLowerCase()].test(y))return!1}else{if(m&&!(m.toLowerCase()in a))throw new Error("".concat(m," is not a valid credit card provider."));if(!l.some(function(x){return x.test(y)}))return!1}return(0,r.default)(h)}e.exports=t.default,e.exports.default=t.default}(DA,DA.exports)),DA.exports}var MA={exports:{}},BU;function cce(){return BU||(BU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=a(St()),r=a(Ax()),o=a(o6());function a(h){return h&&h.__esModule?h:{default:h}}var l={PL:function(p){(0,n.default)(p);var m={1:1,2:3,3:7,4:9,5:1,6:3,7:7,8:9,9:1,10:3,11:0};if(p!=null&&p.length===11&&(0,o.default)(p,{allow_leading_zeroes:!0})){var y=p.split("").slice(0,-1),x=y.reduce(function(E,k,T){return E+Number(k)*m[T+1]},0),S=x%10,w=Number(p.charAt(p.length-1));if(S===0&&w===0||w===10-S)return!0}return!1},ES:function(p){(0,n.default)(p);var m=/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/,y={X:0,Y:1,Z:2},x=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"],S=p.trim().toUpperCase();if(!m.test(S))return!1;var w=S.slice(0,-1).replace(/[X,Y,Z]/g,function(E){return y[E]});return S.endsWith(x[w%23])},FI:function(p){if((0,n.default)(p),p.length!==11||!p.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/))return!1;var m="0123456789ABCDEFHJKLMNPRSTUVWXY",y=parseInt(p.slice(0,6),10)*1e3+parseInt(p.slice(7,10),10),x=y%31,S=m[x];return S===p.slice(10,11)},IN:function(p){var m=/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/,y=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],x=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],S=p.trim();if(!m.test(S))return!1;var w=0,E=S.replace(/\s/g,"").split("").map(Number).reverse();return E.forEach(function(k,T){w=y[w][x[T%8][k]]}),w===0},IR:function(p){if(!p.match(/^\d{10}$/)||(p="0000".concat(p).slice(p.length-6),parseInt(p.slice(3,9),10)===0))return!1;for(var m=parseInt(p.slice(9,10),10),y=0,x=0;x<9;x++)y+=parseInt(p.slice(x,x+1),10)*(10-x);return y%=11,y<2&&m===y||y>=2&&m===11-y},IT:function(p){return p.length!==9||p==="CA00000AA"?!1:p.search(/C[A-Z]\d{5}[A-Z]{2}/i)>-1},NO:function(p){var m=p.trim();if(isNaN(Number(m))||m.length!==11||m==="00000000000")return!1;var y=m.split("").map(Number),x=(11-(3*y[0]+7*y[1]+6*y[2]+1*y[3]+8*y[4]+9*y[5]+4*y[6]+5*y[7]+2*y[8])%11)%11,S=(11-(5*y[0]+4*y[1]+3*y[2]+2*y[3]+7*y[4]+6*y[5]+5*y[6]+4*y[7]+3*y[8]+2*x)%11)%11;return!(x!==y[9]||S!==y[10])},TH:function(p){if(!p.match(/^[1-8]\d{12}$/))return!1;for(var m=0,y=0;y<12;y++)m+=parseInt(p[y],10)*(13-y);return p[12]===((11-m%11)%10).toString()},LK:function(p){var m=/^[1-9]\d{8}[vx]$/i,y=/^[1-9]\d{11}$/i;return p.length===10&&m.test(p)?!0:!!(p.length===12&&y.test(p))},"he-IL":function(p){var m=/^\d{9}$/,y=p.trim();if(!m.test(y))return!1;for(var x=y,S=0,w,E=0;E<x.length;E++)w=Number(x[E])*(E%2+1),S+=w>9?w-9:w;return S%10===0},"ar-LY":function(p){var m=/^(1|2)\d{11}$/,y=p.trim();return!!m.test(y)},"ar-TN":function(p){var m=/^\d{8}$/,y=p.trim();return!!m.test(y)},"zh-CN":function(p){var m=["11","12","13","14","15","21","22","23","31","32","33","34","35","36","37","41","42","43","44","45","46","50","51","52","53","54","61","62","63","64","65","71","81","82","91"],y=["7","9","10","5","8","4","2","1","6","3","7","9","10","5","8","4","2"],x=["1","0","X","9","8","7","6","5","4","3","2"],S=function(z){return(0,r.default)(m,z)},w=function(z){var L=parseInt(z.substring(0,4),10),H=parseInt(z.substring(4,6),10),V=parseInt(z.substring(6),10),te=new Date(L,H-1,V);return te>new Date?!1:te.getFullYear()===L&&te.getMonth()===H-1&&te.getDate()===V},E=function(z){for(var L=z.substring(0,17),H=0,V=0;V<17;V++)H+=parseInt(L.charAt(V),10)*parseInt(y[V],10);var te=H%11;return x[te]},k=function(z){return E(z)===z.charAt(17).toUpperCase()},T=function(z){var L=/^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(z);if(!L)return!1;var H=z.substring(0,2);if(L=S(H),!L)return!1;var V="19".concat(z.substring(6,12));return L=w(V),!!L},O=function(z){var L=/^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(z);if(!L)return!1;var H=z.substring(0,2);if(L=S(H),!L)return!1;var V=z.substring(6,14);return L=w(V),L?k(z):!1},R=function(z){var L=/^\d{15}|(\d{17}(\d|x|X))$/.test(z);return L?z.length===15?T(z):O(z):!1};return R(p)},"zh-HK":function(p){p=p.trim();var m=/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/,y=/^[0-9]$/;if(p=p.toUpperCase(),!m.test(p))return!1;p=p.replace(/\[|\]|\(|\)/g,""),p.length===8&&(p="3".concat(p));for(var x=0,S=0;S<=7;S++){var w=void 0;y.test(p[S])?w=p[S]:w=(p[S].charCodeAt(0)-55)%11,x+=w*(9-S)}x%=11;var E;return x===0?E="0":x===1?E="A":E=String(11-x),E===p[p.length-1]},"zh-TW":function(p){var m={A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:34,J:18,K:19,L:20,M:21,N:22,O:35,P:23,Q:24,R:25,S:26,T:27,U:28,V:29,W:32,X:30,Y:31,Z:33},y=p.trim().toUpperCase();return/^[A-Z][0-9]{9}$/.test(y)?Array.from(y).reduce(function(x,S,w){if(w===0){var E=m[S];return E%10*9+Math.floor(E/10)}return w===9?(10-x%10-Number(S))%10===0:x+Number(S)*(9-w)},0):!1},PK:function(p){var m=/^[1-7][0-9]{4}-[0-9]{7}-[1-9]$/,y=p.trim();return m.test(y)}};function d(h,p){if((0,n.default)(h),p in l)return l[p](h);if(p==="any"){for(var m in l)if(l.hasOwnProperty(m)){var y=l[m];if(y(h))return!0}return!1}throw new Error("Invalid locale '".concat(p,"'"))}e.exports=t.default,e.exports.default=t.default}(MA,MA.exports)),MA.exports}var IA={exports:{}},LU;function fce(){return LU||(LU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var n=r(St());function r(m){return m&&m.__esModule?m:{default:m}}var o=8,a=14,l=/^(\d{8}|\d{13}|\d{14})$/;function d(m,y){return m===o||m===a?y%2===0?3:1:y%2===0?1:3}function h(m){var y=m.slice(0,-1).split("").map(function(S,w){return Number(S)*d(m.length,w)}).reduce(function(S,w){return S+w},0),x=10-y%10;return x<10?x:0}function p(m){(0,n.default)(m);var y=Number(m.slice(-1));return l.test(m)&&y===h(m)}e.exports=t.default,e.exports.default=t.default}(IA,IA.exports)),IA.exports}var $A={exports:{}},NU;function dce(){return NU||(NU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;function a(l){if((0,n.default)(l),!o.test(l))return!1;for(var d=!0,h=0,p=l.length-2;p>=0;p--)if(l[p]>="A"&&l[p]<="Z")for(var m=l[p].charCodeAt(0)-55,y=m%10,x=Math.trunc(m/10),S=0,w=[y,x];S<w.length;S++){var E=w[S];d?E>=5?h+=1+(E-5)*2:h+=E*2:h+=E,d=!d}else{var k=l[p].charCodeAt(0)-48;d?k>=5?h+=1+(k-5)*2:h+=k*2:h+=k,d=!d}var T=Math.trunc((h+9)/10)*10-h;return+l[l.length-1]===T}e.exports=t.default,e.exports.default=t.default}($A,$A.exports)),$A.exports}var BA={exports:{}},zU;function hce(){return zU||(zU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(St());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(?:[0-9]{9}X|[0-9]{10})$/,a=/^(?:[0-9]{13})$/,l=[1,3];function d(h,p){(0,n.default)(h);var m=String((p==null?void 0:p.version)||p);if(!(p!=null&&p.version||p))return d(h,{version:10})||d(h,{version:13});var y=h.replace(/[\s-]+/g,""),x=0;if(m==="10"){if(!o.test(y))return!1;for(var S=0;S<m-1;S++)x+=(S+1)*y.charAt(S);if(y.charAt(9)==="X"?x+=100:x+=10*y.charAt(9),x%11===0)return!0}else if(m==="13"){if(!a.test(y))return!1;for(var w=0;w<12;w++)x+=l[w%2]*y.charAt(w);if(y.charAt(12)-(10-x%10)%10===0)return!0}return!1}e.exports=t.default,e.exports.default=t.default}(BA,BA.exports)),BA.exports}var LA={exports:{}},FU;function pce(){return FU||(FU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o="^\\d{4}-?\\d{3}[\\dX]$";function a(l){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(l);var h=o;if(h=d.require_hyphen?h.replace("?",""):h,h=d.case_sensitive?new RegExp(h):new RegExp(h,"i"),!h.test(l))return!1;for(var p=l.replace("-","").toUpperCase(),m=0,y=0;y<p.length;y++){var x=p[y];m+=(x==="X"?10:+x)*(8-y)}return m%11===0}e.exports=t.default,e.exports.default=t.default}(LA,LA.exports)),LA.exports}var NA={exports:{}},Np={},UU;function jU(){if(UU)return Np;UU=1,Object.defineProperty(Np,"__esModule",{value:!0}),Np.iso7064Check=e,Np.luhnCheck=t,Np.reverseMultiplyAndSum=n,Np.verhoeffCheck=r;function e(o){for(var a=10,l=0;l<o.length-1;l++)a=(parseInt(o[l],10)+a)%10===0?9:(parseInt(o[l],10)+a)%10*2%11;return a=a===1?0:11-a,a===parseInt(o[10],10)}function t(o){for(var a=0,l=!1,d=o.length-1;d>=0;d--){if(l){var h=parseInt(o[d],10)*2;h>9?a+=h.toString().split("").map(function(p){return parseInt(p,10)}).reduce(function(p,m){return p+m},0):a+=h}else a+=parseInt(o[d],10);l=!l}return a%10===0}function n(o,a){for(var l=0,d=0;d<o.length;d++)l+=o[d]*(a-d);return l}function r(o){for(var a=[[0,1,2,3,4,5,6,7,8,9],[1,2,3,4,0,6,7,8,9,5],[2,3,4,0,1,7,8,9,5,6],[3,4,0,1,2,8,9,5,6,7],[4,0,1,2,3,9,5,6,7,8],[5,9,8,7,6,0,4,3,2,1],[6,5,9,8,7,1,0,4,3,2],[7,6,5,9,8,2,1,0,4,3],[8,7,6,5,9,3,2,1,0,4],[9,8,7,6,5,4,3,2,1,0]],l=[[0,1,2,3,4,5,6,7,8,9],[1,5,7,6,2,8,3,0,9,4],[5,8,0,3,7,9,6,1,4,2],[8,9,1,6,0,4,3,5,2,7],[9,4,5,3,1,2,6,8,7,0],[4,2,8,6,5,7,3,9,0,1],[2,7,9,3,8,0,6,4,1,5],[7,0,4,6,9,1,3,2,5,8]],d=o.split("").reverse().join(""),h=0,p=0;p<d.length;p++)h=a[h][l[p%8][parseInt(d[p],10)]];return h===0}return Np}var HU;function gce(){return HU||(HU=1,function(e,t){function n(ne){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},n(ne)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=zt;var r=d(St()),o=l(jU()),a=d($F());function l(ne,le){if(typeof WeakMap=="function")var _e=new WeakMap,Fe=new WeakMap;return(l=function(Be,at){if(!at&&Be&&Be.__esModule)return Be;var mt,wt,ye={__proto__:null,default:Be};if(Be===null||n(Be)!="object"&&typeof Be!="function")return ye;if(mt=at?Fe:_e){if(mt.has(Be))return mt.get(Be);mt.set(Be,ye)}for(var He in Be)He!=="default"&&{}.hasOwnProperty.call(Be,He)&&((wt=(mt=Object.defineProperty)&&Object.getOwnPropertyDescriptor(Be,He))&&(wt.get||wt.set)?mt(ye,He,wt):ye[He]=Be[He]);return ye})(ne,le)}function d(ne){return ne&&ne.__esModule?ne:{default:ne}}function h(ne){return x(ne)||y(ne)||m(ne)||p()}function p(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
477
477
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(ne,le){if(ne){if(typeof ne=="string")return S(ne,le);var _e={}.toString.call(ne).slice(8,-1);return _e==="Object"&&ne.constructor&&(_e=ne.constructor.name),_e==="Map"||_e==="Set"?Array.from(ne):_e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(_e)?S(ne,le):void 0}}function y(ne){if(typeof Symbol<"u"&&ne[Symbol.iterator]!=null||ne["@@iterator"]!=null)return Array.from(ne)}function x(ne){if(Array.isArray(ne))return S(ne)}function S(ne,le){(le==null||le>ne.length)&&(le=ne.length);for(var _e=0,Fe=Array(le);_e<le;_e++)Fe[_e]=ne[_e];return Fe}function w(ne){var le=ne.slice(0,2),_e=parseInt(ne.slice(2,4),10);_e>40?(_e-=40,le="20".concat(le)):_e>20?(_e-=20,le="18".concat(le)):le="19".concat(le),_e<10&&(_e="0".concat(_e));var Fe="".concat(le,"/").concat(_e,"/").concat(ne.slice(4,6));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1;for(var be=ne.split("").map(function(wt){return parseInt(wt,10)}),Be=[2,4,8,5,10,9,7,3,6],at=0,mt=0;mt<Be.length;mt++)at+=be[mt]*Be[mt];return at=at%11===10?0:at%11,at===be[9]}function E(ne){var le=ne.split(""),_e=le.filter(function(be,Be){return Be%2}).map(function(be){return Number(be)*2}).join("").split(""),Fe=le.filter(function(be,Be){return!(Be%2)}).concat(_e).map(function(be){return Number(be)}).reduce(function(be,Be){return be+Be});return Fe%10===0}function k(ne){ne=ne.replace(/\W/,"");var le=parseInt(ne.slice(0,2),10);if(ne.length===10)le<54?le="20".concat(le):le="19".concat(le);else{if(ne.slice(6)==="000")return!1;if(le<54)le="19".concat(le);else return!1}le.length===3&&(le=[le.slice(0,2),"0",le.slice(2)].join(""));var _e=parseInt(ne.slice(2,4),10);if(_e>50&&(_e-=50),_e>20){if(parseInt(le,10)<2004)return!1;_e-=20}_e<10&&(_e="0".concat(_e));var Fe="".concat(le,"/").concat(_e,"/").concat(ne.slice(4,6));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1;if(ne.length===10&&parseInt(ne,10)%11!==0){var be=parseInt(ne.slice(0,9),10)%11;if(parseInt(le,10)<1986&&be===10){if(parseInt(ne.slice(9),10)!==0)return!1}else return!1}return!0}function T(ne){return o.luhnCheck(ne)}function O(ne){for(var le=ne.split("").map(function(wt){return parseInt(wt,10)}),_e=[],Fe=0;Fe<le.length-1;Fe++){_e.push("");for(var be=0;be<le.length-1;be++)le[Fe]===le[be]&&(_e[Fe]+=be)}if(_e=_e.filter(function(wt){return wt.length>1}),_e.length!==2&&_e.length!==3)return!1;if(_e[0].length===3){for(var Be=_e[0].split("").map(function(wt){return parseInt(wt,10)}),at=0,mt=0;mt<Be.length-1;mt++)Be[mt]+1===Be[mt+1]&&(at+=1);if(at===2)return!1}return o.iso7064Check(ne)}function R(ne){ne=ne.replace(/\W/,"");var le=parseInt(ne.slice(4,6),10),_e=ne.slice(6,7);switch(_e){case"0":case"1":case"2":case"3":le="19".concat(le);break;case"4":case"9":le<37?le="20".concat(le):le="19".concat(le);break;default:if(le<37)le="20".concat(le);else if(le>58)le="18".concat(le);else return!1;break}le.length===3&&(le=[le.slice(0,2),"0",le.slice(2)].join(""));var Fe="".concat(le,"/").concat(ne.slice(2,4),"/").concat(ne.slice(0,2));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1;for(var be=ne.split("").map(function(wt){return parseInt(wt,10)}),Be=0,at=4,mt=0;mt<9;mt++)Be+=be[mt]*at,at-=1,at===1&&(at=7);return Be%=11,Be===1?!1:Be===0?be[9]===0:be[9]===11-Be}function I(ne){for(var le=ne.slice(0,8).split("").map(function(Be){return parseInt(Be,10)}),_e=0,Fe=1;Fe<le.length;Fe+=2)_e+=le[Fe];for(var be=0;be<le.length;be+=2)le[be]<2?_e+=1-le[be]:(_e+=2*(le[be]-2)+5,le[be]>4&&(_e+=2));return String.fromCharCode(_e%26+65)===ne.charAt(8)}function z(ne){for(var le=ne.split("").map(function(be){return parseInt(be,10)}),_e=0,Fe=0;Fe<8;Fe++)_e+=le[Fe]*Math.pow(2,8-Fe);return _e%11%10===le[8]}function L(ne){var le=o.reverseMultiplyAndSum(ne.split("").slice(0,7).map(function(_e){return parseInt(_e,10)}),8);return ne.length===9&&ne[8]!=="W"&&(le+=(ne[8].charCodeAt(0)-64)*9),le%=23,le===0?ne[7].toUpperCase()==="W":ne[7].toUpperCase()===String.fromCharCode(64+le)}var H={andover:["10","12"],atlanta:["60","67"],austin:["50","53"],brookhaven:["01","02","03","04","05","06","11","13","14","16","21","22","23","25","34","51","52","54","55","56","57","58","59","65"],cincinnati:["30","32","35","36","37","38","61"],fresno:["15","24"],internet:["20","26","27","45","46","47"],kansas:["40","44"],memphis:["94","95"],ogden:["80","90"],philadelphia:["33","39","41","42","43","46","48","62","63","64","66","68","71","72","73","74","75","76","77","81","82","83","84","85","86","87","88","91","92","93","98","99"],sba:["31"]};function V(){var ne=[];for(var le in H)H.hasOwnProperty(le)&&ne.push.apply(ne,h(H[le]));return ne}function te(ne){return V().indexOf(ne.slice(0,2))!==-1}function F(ne){for(var le=0,_e=ne.split(""),Fe=parseInt(_e.pop(),10),be=0;be<_e.length;be++)le+=_e[9-be]*(2+be%6);var Be=11-le%11;return Be===11?Be=0:Be===10&&(Be=9),Fe===Be}function Q(ne){var le=ne.toUpperCase().split("");if(isNaN(parseInt(le[0],10))&&le.length>1){var _e=0;switch(le[0]){case"Y":_e=1;break;case"Z":_e=2;break}le.splice(0,1,_e)}else for(;le.length<9;)le.unshift(0);var Fe=["T","R","W","A","G","M","Y","F","P","D","X","B","N","J","Z","S","Q","V","H","L","C","K","E"];le=le.join("");var be=parseInt(le.slice(0,8),10)%23;return le[8]===Fe[be]}function J(ne){var le=ne.slice(1,3),_e=ne.slice(0,1);switch(_e){case"1":case"2":le="18".concat(le);break;case"3":case"4":le="19".concat(le);break;default:le="20".concat(le);break}var Fe="".concat(le,"/").concat(ne.slice(3,5),"/").concat(ne.slice(5,7));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1;for(var be=ne.split("").map(function(ye){return parseInt(ye,10)}),Be=0,at=1,mt=0;mt<10;mt++)Be+=be[mt]*at,at+=1,at===10&&(at=1);if(Be%11===10){Be=0,at=3;for(var wt=0;wt<10;wt++)Be+=be[wt]*at,at+=1,at===10&&(at=1);if(Be%11===10)return be[10]===0}return Be%11===be[10]}function oe(ne){var le=ne.slice(4,6),_e=ne.slice(6,7);switch(_e){case"+":le="18".concat(le);break;case"-":le="19".concat(le);break;default:le="20".concat(le);break}var Fe="".concat(le,"/").concat(ne.slice(2,4),"/").concat(ne.slice(0,2));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1;var be=parseInt(ne.slice(0,6)+ne.slice(7,10),10)%31;if(be<10)return be===parseInt(ne.slice(10),10);be-=10;var Be=["A","B","C","D","E","F","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y"];return Be[be]===ne.slice(10)}function re(ne){if(ne.slice(2,4)!=="00"||ne.slice(4,6)!=="00"){var le="".concat(ne.slice(0,2),"/").concat(ne.slice(2,4),"/").concat(ne.slice(4,6));if(!(0,a.default)(le,"YY/MM/DD"))return!1}var _e=97-parseInt(ne.slice(0,9),10)%97,Fe=parseInt(ne.slice(9,11),10);return!(_e!==Fe&&(_e=97-parseInt("2".concat(ne.slice(0,9)),10)%97,_e!==Fe))}function pe(ne){ne=ne.replace(/\s/g,"");var le=parseInt(ne.slice(0,10),10)%511,_e=parseInt(ne.slice(10,13),10);return le===_e}function ee(ne){var le="".concat(ne.slice(0,4),"/").concat(ne.slice(4,6),"/").concat(ne.slice(6,8));return!(0,a.default)(le,"YYYY/MM/DD")||!o.luhnCheck(ne.slice(0,12))?!1:o.verhoeffCheck("".concat(ne.slice(0,11)).concat(ne[12]))}function se(ne){return o.iso7064Check(ne)}function he(ne){for(var le=ne.split("").map(function(be){return parseInt(be,10)}),_e=8,Fe=1;Fe<9;Fe++)_e+=le[Fe]*(Fe+1);return _e%11===le[9]}function Ee(ne){for(var le=!1,_e=!1,Fe=0;Fe<3;Fe++)if(!le&&/[AEIOU]/.test(ne[Fe]))le=!0;else if(!_e&&le&&ne[Fe]==="X")_e=!0;else if(Fe>0&&(le&&!_e&&!/[AEIOU]/.test(ne[Fe])||_e&&!/X/.test(ne[Fe])))return!1;return!0}function N(ne){var le=ne.toUpperCase().split("");if(!Ee(le.slice(0,3))||!Ee(le.slice(3,6)))return!1;for(var _e=[6,7,9,10,12,13,14],Fe={L:"0",M:"1",N:"2",P:"3",Q:"4",R:"5",S:"6",T:"7",U:"8",V:"9"},be=0,Be=_e;be<Be.length;be++){var at=Be[be];le[at]in Fe&&le.splice(at,1,Fe[le[at]])}var mt={A:"01",B:"02",C:"03",D:"04",E:"05",H:"06",L:"07",M:"08",P:"09",R:"10",S:"11",T:"12"},wt=mt[le[8]],ye=parseInt(le[9]+le[10],10);ye>40&&(ye-=40),ye<10&&(ye="0".concat(ye));var He="".concat(le[6]).concat(le[7],"/").concat(wt,"/").concat(ye);if(!(0,a.default)(He,"YY/MM/DD"))return!1;for(var ut=0,yt=1;yt<le.length-1;yt+=2){var _t=parseInt(le[yt],10);isNaN(_t)&&(_t=le[yt].charCodeAt(0)-65),ut+=_t}for(var Gt={A:1,B:0,C:5,D:7,E:9,F:13,G:15,H:17,I:19,J:21,K:2,L:4,M:18,N:20,O:11,P:3,Q:6,R:8,S:12,T:14,U:16,V:10,W:22,X:25,Y:24,Z:23,0:1,1:0},Wt=0;Wt<le.length-1;Wt+=2){var ln=0;if(le[Wt]in Gt)ln=Gt[le[Wt]];else{var Zt=parseInt(le[Wt],10);ln=2*Zt+1,Zt>4&&(ln+=2)}ut+=ln}return String.fromCharCode(65+ut%26)===le[15]}function Y(ne){ne=ne.replace(/\W/,"");var le=ne.slice(0,2);if(le!=="32"){var _e=ne.slice(2,4);if(_e!=="00"){var Fe=ne.slice(4,6);switch(ne[6]){case"0":Fe="18".concat(Fe);break;case"1":Fe="19".concat(Fe);break;default:Fe="20".concat(Fe);break}var be="".concat(Fe,"/").concat(ne.slice(2,4),"/").concat(le);if(!(0,a.default)(be,"YYYY/MM/DD"))return!1}for(var Be=1101,at=[1,6,3,7,9,10,5,8,4,2],mt=0;mt<ne.length-1;mt++)Be-=parseInt(ne[mt],10)*at[mt];return parseInt(ne[10],10)===Be%11}return!0}function ae(ne){if(ne.length!==9){for(var le=ne.toUpperCase().split("");le.length<8;)le.unshift(0);switch(ne[7]){case"A":case"P":if(parseInt(le[6],10)===0)return!1;break;default:{var _e=parseInt(le.join("").slice(0,5),10);if(_e>32e3)return!1;var Fe=parseInt(le.join("").slice(5,7),10);if(_e===Fe)return!1}}}return!0}function B(ne){return o.reverseMultiplyAndSum(ne.split("").slice(0,8).map(function(le){return parseInt(le,10)}),9)%11===parseInt(ne[8],10)}function de(ne){if(ne.length===10){for(var le=[6,5,7,2,3,4,5,6,7],_e=0,Fe=0;Fe<le.length;Fe++)_e+=parseInt(ne[Fe],10)*le[Fe];return _e%=11,_e===10?!1:_e===parseInt(ne[9],10)}var be=ne.slice(0,2),Be=parseInt(ne.slice(2,4),10);Be>80?(be="18".concat(be),Be-=80):Be>60?(be="22".concat(be),Be-=60):Be>40?(be="21".concat(be),Be-=40):Be>20?(be="20".concat(be),Be-=20):be="19".concat(be),Be<10&&(Be="0".concat(Be));var at="".concat(be,"/").concat(Be,"/").concat(ne.slice(4,6));if(!(0,a.default)(at,"YYYY/MM/DD"))return!1;for(var mt=0,wt=1,ye=0;ye<ne.length-1;ye++)mt+=parseInt(ne[ye],10)*wt%10,wt+=2,wt>10?wt=1:wt===5&&(wt+=2);return mt=10-mt%10,mt===parseInt(ne[10],10)}function Ne(ne){if(ne.length===11){var le,_e;if(le=0,ne==="11111111111"||ne==="22222222222"||ne==="33333333333"||ne==="44444444444"||ne==="55555555555"||ne==="66666666666"||ne==="77777777777"||ne==="88888888888"||ne==="99999999999"||ne==="00000000000")return!1;for(var Fe=1;Fe<=9;Fe++)le+=parseInt(ne.substring(Fe-1,Fe),10)*(11-Fe);if(_e=le*10%11,_e===10&&(_e=0),_e!==parseInt(ne.substring(9,10),10))return!1;le=0;for(var be=1;be<=10;be++)le+=parseInt(ne.substring(be-1,be),10)*(12-be);return _e=le*10%11,_e===10&&(_e=0),_e===parseInt(ne.substring(10,11),10)}if(ne==="00000000000000"||ne==="11111111111111"||ne==="22222222222222"||ne==="33333333333333"||ne==="44444444444444"||ne==="55555555555555"||ne==="66666666666666"||ne==="77777777777777"||ne==="88888888888888"||ne==="99999999999999")return!1;for(var Be=ne.length-2,at=ne.substring(0,Be),mt=ne.substring(Be),wt=0,ye=Be-7,He=Be;He>=1;He--)wt+=at.charAt(Be-He)*ye,ye-=1,ye<2&&(ye=9);var ut=wt%11<2?0:11-wt%11;if(ut!==parseInt(mt.charAt(0),10))return!1;Be+=1,at=ne.substring(0,Be),wt=0,ye=Be-7;for(var yt=Be;yt>=1;yt--)wt+=at.charAt(Be-yt)*ye,ye-=1,ye<2&&(ye=9);return ut=wt%11<2?0:11-wt%11,ut===parseInt(mt.charAt(1),10)}function ke(ne){var le=11-o.reverseMultiplyAndSum(ne.split("").slice(0,8).map(function(_e){return parseInt(_e,10)}),9)%11;return le>9?parseInt(ne[8],10)===0:le===parseInt(ne[8],10)}function Ie(ne){if(ne.slice(0,4)!=="9000"){var le=ne.slice(1,3);switch(ne[0]){case"1":case"2":le="19".concat(le);break;case"3":case"4":le="18".concat(le);break;case"5":case"6":le="20".concat(le);break}var _e="".concat(le,"/").concat(ne.slice(3,5),"/").concat(ne.slice(5,7));if(_e.length===8){if(!(0,a.default)(_e,"YY/MM/DD"))return!1}else if(!(0,a.default)(_e,"YYYY/MM/DD"))return!1;for(var Fe=ne.split("").map(function(mt){return parseInt(mt,10)}),be=[2,7,9,1,4,6,3,5,8,2,7,9],Be=0,at=0;at<be.length;at++)Be+=Fe[at]*be[at];return Be%11===10?Fe[12]===1:Fe[12]===Be%11}return!0}function We(ne){if(ne.length===9){if(ne=ne.replace(/\W/,""),ne.slice(6)==="000")return!1;var le=parseInt(ne.slice(0,2),10);if(le>53)return!1;le<10?le="190".concat(le):le="19".concat(le);var _e=parseInt(ne.slice(2,4),10);_e>50&&(_e-=50),_e<10&&(_e="0".concat(_e));var Fe="".concat(le,"/").concat(_e,"/").concat(ne.slice(4,6));if(!(0,a.default)(Fe,"YYYY/MM/DD"))return!1}return!0}function Et(ne){var le=11-o.reverseMultiplyAndSum(ne.split("").slice(0,7).map(function(_e){return parseInt(_e,10)}),8)%11;return le===10?parseInt(ne[7],10)===0:le===parseInt(ne[7],10)}function dt(ne){var le=ne.slice(0);ne.length>11&&(le=le.slice(2));var _e="",Fe=le.slice(2,4),be=parseInt(le.slice(4,6),10);if(ne.length>11)_e=ne.slice(0,4);else if(_e=ne.slice(0,2),ne.length===11&&be<60){var Be=new Date().getFullYear().toString(),at=parseInt(Be.slice(0,2),10);if(Be=parseInt(Be,10),ne[6]==="-")parseInt("".concat(at).concat(_e),10)>Be?_e="".concat(at-1).concat(_e):_e="".concat(at).concat(_e);else if(_e="".concat(at-1).concat(_e),Be-parseInt(_e,10)<100)return!1}be>60&&(be-=60),be<10&&(be="0".concat(be));var mt="".concat(_e,"/").concat(Fe,"/").concat(be);if(mt.length===8){if(!(0,a.default)(mt,"YY/MM/DD"))return!1}else if(!(0,a.default)(mt,"YYYY/MM/DD"))return!1;return o.luhnCheck(ne.replace(/\W/,""))}function lt(ne){for(var le=ne.split("").map(function(Be){return parseInt(Be,10)}),_e=[-1,5,7,9,4,6,10,5,7],Fe=0,be=0;be<_e.length;be++)Fe+=le[be]*_e[be];return Fe%11===10?le[9]===0:le[9]===Fe%11}var rt={"bg-BG":/^\d{10}$/,"cs-CZ":/^\d{6}\/{0,1}\d{3,4}$/,"de-AT":/^\d{9}$/,"de-DE":/^[1-9]\d{10}$/,"dk-DK":/^\d{6}-{0,1}\d{4}$/,"el-CY":/^[09]\d{7}[A-Z]$/,"el-GR":/^([0-4]|[7-9])\d{8}$/,"en-CA":/^\d{9}$/,"en-GB":/^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i,"en-IE":/^\d{7}[A-W][A-IW]{0,1}$/i,"en-US":/^\d{2}[- ]{0,1}\d{7}$/,"es-AR":/(20|23|24|27|30|33|34)[0-9]{8}[0-9]/,"es-ES":/^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i,"et-EE":/^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/,"fi-FI":/^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i,"fr-BE":/^\d{11}$/,"fr-FR":/^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/,"fr-LU":/^\d{13}$/,"hr-HR":/^\d{11}$/,"hu-HU":/^8\d{9}$/,"it-IT":/^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i,"lv-LV":/^\d{6}-{0,1}\d{5}$/,"mt-MT":/^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i,"nl-NL":/^\d{9}$/,"pl-PL":/^\d{10,11}$/,"pt-BR":/(?:^\d{11}$)|(?:^\d{14}$)/,"pt-PT":/^\d{9}$/,"ro-RO":/^\d{13}$/,"sk-SK":/^\d{6}\/{0,1}\d{3,4}$/,"sl-SI":/^[1-9]\d{7}$/,"sv-SE":/^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/,"uk-UA":/^\d{10}$/};rt["lb-LU"]=rt["fr-LU"],rt["lt-LT"]=rt["et-EE"],rt["nl-BE"]=rt["fr-BE"],rt["fr-CA"]=rt["en-CA"];var At={"bg-BG":w,"cs-CZ":k,"de-AT":T,"de-DE":O,"dk-DK":R,"el-CY":I,"el-GR":z,"en-CA":E,"en-IE":L,"en-US":te,"es-AR":F,"es-ES":Q,"et-EE":J,"fi-FI":oe,"fr-BE":re,"fr-FR":pe,"fr-LU":ee,"hr-HR":se,"hu-HU":he,"it-IT":N,"lv-LV":Y,"mt-MT":ae,"nl-NL":B,"pl-PL":de,"pt-BR":Ne,"pt-PT":ke,"ro-RO":Ie,"sk-SK":We,"sl-SI":Et,"sv-SE":dt,"uk-UA":lt};At["lb-LU"]=At["fr-LU"],At["lt-LT"]=At["et-EE"],At["nl-BE"]=At["fr-BE"],At["fr-CA"]=At["en-CA"];var gt=/[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g,bt={"de-AT":gt,"de-DE":/[\/\\]/g,"fr-BE":gt};bt["nl-BE"]=bt["fr-BE"];function zt(ne){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"en-US";(0,r.default)(ne);var _e=ne.slice(0);if(le in rt)return le in bt&&(_e=_e.replace(bt[le],"")),rt[le].test(_e)?le in At?At[le](_e):!0:!1;throw new Error("Invalid locale '".concat(le,"'"))}e.exports=t.default,e.exports.default=t.default}(NA,NA.exports)),NA.exports}var Mm={},PU;function mce(){if(PU)return Mm;PU=1,Object.defineProperty(Mm,"__esModule",{value:!0}),Mm.default=r,Mm.locales=void 0;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n={"am-AM":/^(\+?374|0)(33|4[134]|55|77|88|9[13-689])\d{6}$/,"ar-AE":/^((\+?971)|0)?5[024568]\d{7}$/,"ar-BH":/^(\+?973)?(3|6)\d{7}$/,"ar-DZ":/^(\+?213|0)(5|6|7)\d{8}$/,"ar-LB":/^(\+?961)?((3|81)\d{6}|7\d{7})$/,"ar-EG":/^((\+?20)|0)?1[0125]\d{8}$/,"ar-IQ":/^(\+?964|0)?7[0-9]\d{8}$/,"ar-JO":/^(\+?962|0)?7[789]\d{7}$/,"ar-KW":/^(\+?965)([569]\d{7}|41\d{6})$/,"ar-LY":/^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/,"ar-MA":/^(?:(?:\+|00)212|0)[5-7]\d{8}$/,"ar-OM":/^((\+|00)968)?([79][1-9])\d{6}$/,"ar-PS":/^(\+?970|0)5[6|9](\d{7})$/,"ar-SA":/^(!?(\+?966)|0)?5\d{8}$/,"ar-SD":/^((\+?249)|0)?(9[012369]|1[012])\d{7}$/,"ar-SY":/^(!?(\+?963)|0)?9\d{8}$/,"ar-TN":/^(\+?216)?[2459]\d{7}$/,"az-AZ":/^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/,"bs-BA":/^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/,"be-BY":/^(\+?375)?(24|25|29|33|44)\d{7}$/,"bg-BG":/^(\+?359|0)?8[789]\d{7}$/,"bn-BD":/^(\+?880|0)1[13456789][0-9]{8}$/,"ca-AD":/^(\+376)?[346]\d{5}$/,"cs-CZ":/^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"da-DK":/^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/,"de-DE":/^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/,"de-AT":/^(\+43|0)\d{1,4}\d{3,12}$/,"de-CH":/^(\+41|0)([1-9])\d{1,9}$/,"de-LU":/^(\+352)?((6\d1)\d{6})$/,"dv-MV":/^(\+?960)?(7[2-9]|9[1-9])\d{5}$/,"el-GR":/^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/,"el-CY":/^(\+?357?)?(9(9|7|6|5|4)\d{6})$/,"en-AI":/^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/,"en-AU":/^(\+?61|0)4\d{8}$/,"en-AG":/^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/,"en-BM":/^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/,"en-BS":/^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/,"en-GB":/^(\+?44|0)7[1-9]\d{8}$/,"en-GG":/^(\+?44|0)1481\d{6}$/,"en-GH":/^(\+233|0)(20|50|24|54|27|57|26|56|23|53|28|55|59)\d{7}$/,"en-GY":/^(\+592|0)6\d{6}$/,"en-HK":/^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/,"en-MO":/^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/,"en-IE":/^(\+?353|0)8[356789]\d{7}$/,"en-IN":/^(\+?91|0)?[6789]\d{9}$/,"en-JM":/^(\+?876)?\d{7}$/,"en-KE":/^(\+?254|0)(7|1)\d{8}$/,"fr-CF":/^(\+?236| ?)(70|75|77|72|21|22)\d{6}$/,"en-SS":/^(\+?211|0)(9[1257])\d{7}$/,"en-KI":/^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,"en-KN":/^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/,"en-LS":/^(\+?266)(22|28|57|58|59|27|52)\d{6}$/,"en-MT":/^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,"en-MU":/^(\+?230|0)?\d{8}$/,"en-MW":/^(\+?265|0)(((77|88|31|99|98|21)\d{7})|(((111)|1)\d{6})|(32000\d{4}))$/,"en-NA":/^(\+?264|0)(6|8)\d{7}$/,"en-NG":/^(\+?234|0)?[789]\d{9}$/,"en-NZ":/^(\+?64|0)[28]\d{7,9}$/,"en-PG":/^(\+?675|0)?(7\d|8[18])\d{6}$/,"en-PK":/^((00|\+)?92|0)3[0-6]\d{8}$/,"en-PH":/^(09|\+639)\d{9}$/,"en-RW":/^(\+?250|0)?[7]\d{8}$/,"en-SG":/^(\+65)?[3689]\d{7}$/,"en-SL":/^(\+?232|0)\d{8}$/,"en-TZ":/^(\+?255|0)?[67]\d{8}$/,"en-UG":/^(\+?256|0)?[7]\d{8}$/,"en-US":/^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,"en-ZA":/^(\+?27|0)\d{9}$/,"en-ZM":/^(\+?26)?0[79][567]\d{7}$/,"en-ZW":/^(\+263)[0-9]{9}$/,"en-BW":/^(\+?267)?(7[1-8]{1})\d{6}$/,"es-AR":/^\+?549(11|[2368]\d)\d{8}$/,"es-BO":/^(\+?591)?(6|7)\d{7}$/,"es-CO":/^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/,"es-CL":/^(\+?56|0)[2-9]\d{1}\d{7}$/,"es-CR":/^(\+506)?[2-8]\d{7}$/,"es-CU":/^(\+53|0053)?5\d{7}$/,"es-DO":/^(\+?1)?8[024]9\d{7}$/,"es-HN":/^(\+?504)?[9|8|3|2]\d{7}$/,"es-EC":/^(\+?593|0)([2-7]|9[2-9])\d{7}$/,"es-ES":/^(\+?34)?[6|7]\d{8}$/,"es-GT":/^(\+?502)?[2|6|7]\d{7}$/,"es-PE":/^(\+?51)?9\d{8}$/,"es-MX":/^(\+?52)?(1|01)?\d{10,11}$/,"es-NI":/^(\+?505)\d{7,8}$/,"es-PA":/^(\+?507)\d{7,8}$/,"es-PY":/^(\+?595|0)9[9876]\d{7}$/,"es-SV":/^(\+?503)?[67]\d{7}$/,"es-UY":/^(\+598|0)9[1-9][\d]{6}$/,"es-VE":/^(\+?58)?(2|4)\d{9}$/,"et-EE":/^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/,"fa-IR":/^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/,"fi-FI":/^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/,"fj-FJ":/^(\+?679)?\s?\d{3}\s?\d{4}$/,"fo-FO":/^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"fr-BF":/^(\+226|0)[67]\d{7}$/,"fr-BJ":/^(\+229)\d{8}$/,"fr-CD":/^(\+?243|0)?(8|9)\d{8}$/,"fr-CM":/^(\+?237)6[0-9]{8}$/,"fr-FR":/^(\+?33|0)[67]\d{8}$/,"fr-GF":/^(\+?594|0|00594)[67]\d{8}$/,"fr-GP":/^(\+?590|0|00590)[67]\d{8}$/,"fr-MQ":/^(\+?596|0|00596)[67]\d{8}$/,"fr-PF":/^(\+?689)?8[789]\d{6}$/,"fr-RE":/^(\+?262|0|00262)[67]\d{8}$/,"fr-WF":/^(\+681)?\d{6}$/,"he-IL":/^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/,"hu-HU":/^(\+?36|06)(20|30|31|50|70)\d{7}$/,"id-ID":/^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/,"ir-IR":/^(\+98|0)?9\d{9}$/,"it-IT":/^(\+?39)?\s?3\d{2} ?\d{6,7}$/,"it-SM":/^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/,"ja-JP":/^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/,"ka-GE":/^(\+?995)?(79\d{7}|5\d{8})$/,"kk-KZ":/^(\+?7|8)?7\d{9}$/,"kl-GL":/^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/,"ko-KR":/^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/,"ky-KG":/^(\+996\s?)?(22[0-9]|50[0-9]|55[0-9]|70[0-9]|75[0-9]|77[0-9]|880|990|995|996|997|998)\s?\d{3}\s?\d{3}$/,"lt-LT":/^(\+370|8)\d{8}$/,"lv-LV":/^(\+?371)2\d{7}$/,"mg-MG":/^((\+?261|0)(2|3)\d)?\d{7}$/,"mn-MN":/^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/,"my-MM":/^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,"ms-MY":/^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/,"mz-MZ":/^(\+?258)?8[234567]\d{7}$/,"nb-NO":/^(\+?47)?[49]\d{7}$/,"ne-NP":/^(\+?977)?9[78]\d{8}$/,"nl-BE":/^(\+?32|0)4\d{8}$/,"nl-NL":/^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/,"nl-AW":/^(\+)?297(56|59|64|73|74|99)\d{5}$/,"nn-NO":/^(\+?47)?[49]\d{7}$/,"pl-PL":/^(\+?48)? ?([5-8]\d|45) ?\d{3} ?\d{2} ?\d{2}$/,"pt-BR":/^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/,"pt-PT":/^(\+?351)?9[1236]\d{7}$/,"pt-AO":/^(\+?244)?9\d{8}$/,"ro-MD":/^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/,"ro-RO":/^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/,"ru-RU":/^(\+?7|8)?9\d{9}$/,"si-LK":/^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/,"sl-SI":/^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/,"sk-SK":/^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,"so-SO":/^(\+?252|0)((6[0-9])\d{7}|(7[1-9])\d{7})$/,"sq-AL":/^(\+355|0)6[2-9]\d{7}$/,"sr-RS":/^(\+3816|06)[- \d]{5,9}$/,"sv-SE":/^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/,"tg-TJ":/^(\+?992)?[5][5]\d{7}$/,"th-TH":/^(\+66|66|0)\d{9}$/,"tr-TR":/^(\+?90|0)?5\d{9}$/,"tk-TM":/^(\+993|993|8)\d{8}$/,"uk-UA":/^(\+?38)?0(50|6[36-8]|7[357]|9[1-9])\d{7}$/,"uz-UZ":/^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/,"vi-VN":/^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,"zh-CN":/^((\+|00)86)?(1[3-9]|9[28])\d{9}$/,"zh-TW":/^(\+?886\-?|0)?9\d{8}$/,"dz-BT":/^(\+?975|0)?(17|16|77|02)\d{6}$/,"ar-YE":/^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/,"ar-EH":/^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/,"fa-AF":/^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/,"mk-MK":/^(\+?389|0)?((?:2[2-9]\d{6}|(?:3[1-4]|4[2-8])\d{6}|500\d{5}|5[2-9]\d{6}|7[0-9][2-9]\d{5}|8[1-9]\d{6}|800\d{5}|8009\d{4}))$/};n["en-CA"]=n["en-US"],n["fr-CA"]=n["en-CA"],n["fr-BE"]=n["nl-BE"],n["zh-HK"]=n["en-HK"],n["zh-MO"]=n["en-MO"],n["ga-IE"]=n["en-IE"],n["fr-CH"]=n["de-CH"],n["it-CH"]=n["fr-CH"];function r(o,a,l){if((0,e.default)(o),l&&l.strictMode&&!o.startsWith("+"))return!1;if(Array.isArray(a))return a.some(function(p){if(n.hasOwnProperty(p)){var m=n[p];if(m.test(o))return!0}return!1});if(a in n)return n[a].test(o);if(!a||a==="any"){for(var d in n)if(n.hasOwnProperty(d)){var h=n[d];if(h.test(o))return!0}return!1}throw new Error("Invalid locale '".concat(a,"'"))}return Mm.locales=Object.keys(n),Mm}var zA={exports:{}},qU;function vce(){return qU||(qU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^(0x)[0-9a-f]{40}$/i;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(zA,zA.exports)),zA.exports}var FA={exports:{}},GU;function yce(){return GU||(GU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=o(Ba()),r=o(St());function o(h){return h&&h.__esModule?h:{default:h}}function a(h){var p="\\d{".concat(h.digits_after_decimal[0],"}");h.digits_after_decimal.forEach(function(O,R){R!==0&&(p="".concat(p,"|\\d{").concat(O,"}"))});var m="(".concat(h.symbol.replace(/\W/,function(O){return"\\".concat(O)}),")").concat(h.require_symbol?"":"?"),y="-?",x="[1-9]\\d*",S="[1-9]\\d{0,2}(\\".concat(h.thousands_separator,"\\d{3})*"),w=["0",x,S],E="(".concat(w.join("|"),")?"),k="(\\".concat(h.decimal_separator,"(").concat(p,"))").concat(h.require_decimal?"":"?"),T=E+(h.allow_decimal||h.require_decimal?k:"");return h.allow_negatives&&!h.parens_for_negatives&&(h.negative_sign_after_digits?T+=y:h.negative_sign_before_digits&&(T=y+T)),h.allow_negative_sign_placeholder?T="( (?!\\-))?".concat(T):h.allow_space_after_symbol?T=" ?".concat(T):h.allow_space_after_digits&&(T+="( (?!$))?"),h.symbol_after_digits?T+=m:T=m+T,h.allow_negatives&&(h.parens_for_negatives?T="(\\(".concat(T,"\\)|").concat(T,")"):h.negative_sign_before_digits||h.negative_sign_after_digits||(T=y+T)),new RegExp("^(?!-? )(?=.*\\d)".concat(T,"$"))}var l={symbol:"$",require_symbol:!1,allow_space_after_symbol:!1,symbol_after_digits:!1,allow_negatives:!0,parens_for_negatives:!1,negative_sign_before_digits:!1,negative_sign_after_digits:!1,allow_negative_sign_placeholder:!1,thousands_separator:",",decimal_separator:".",allow_decimal:!0,require_decimal:!1,digits_after_decimal:[2],allow_space_after_digits:!1};function d(h,p){return(0,r.default)(h),p=(0,n.default)(p,l),a(p).test(h)}e.exports=t.default,e.exports.default=t.default}(FA,FA.exports)),FA.exports}var UA={exports:{}},VU;function xce(){return VU||(VU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(St());function r(d){return d&&d.__esModule?d:{default:d}}var o=/^(bc1|tb1|bc1p|tb1p)[ac-hj-np-z02-9]{39,58}$/,a=/^(1|2|3|m)[A-HJ-NP-Za-km-z1-9]{25,39}$/;function l(d){return(0,n.default)(d),o.test(d)||a.test(d)}e.exports=t.default,e.exports.default=t.default}(UA,UA.exports)),UA.exports}var Im={},YU;function bce(){if(YU)return Im;YU=1,Object.defineProperty(Im,"__esModule",{value:!0}),Im.isFreightContainerID=void 0,Im.isISO6346=o;var e=t(St());function t(a){return a&&a.__esModule?a:{default:a}}var n=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,r=/^[0-9]$/;function o(a){if((0,e.default)(a),a=a.toUpperCase(),!n.test(a))return!1;if(a.length===11){for(var l=0,d=0;d<a.length-1;d++)if(r.test(a[d]))l+=a[d]*Math.pow(2,d);else{var h=void 0,p=a.charCodeAt(d)-55;p<11?h=p:p>=11&&p<=20?h=12+p%11:p>=21&&p<=30?h=23+p%21:h=34+p%31,l+=h*Math.pow(2,d)}var m=l%11;return m===10&&(m=0),Number(a[a.length-1])===m}return!0}return Im.isFreightContainerID=o,Im}var jA={exports:{}},ZU;function _ce(){return ZU||(ZU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["aa","ab","ae","af","ak","am","an","ar","as","av","ay","az","az","ba","be","bg","bh","bi","bm","bn","bo","br","bs","ca","ce","ch","co","cr","cs","cu","cv","cy","da","de","dv","dz","ee","el","en","eo","es","et","eu","fa","ff","fi","fj","fo","fr","fy","ga","gd","gl","gn","gu","gv","ha","he","hi","ho","hr","ht","hu","hy","hz","ia","id","ie","ig","ii","ik","io","is","it","iu","ja","jv","ka","kg","ki","kj","kk","kl","km","kn","ko","kr","ks","ku","kv","kw","ky","la","lb","lg","li","ln","lo","lt","lu","lv","mg","mh","mi","mk","ml","mn","mr","ms","mt","my","na","nb","nd","ne","ng","nl","nn","no","nr","nv","ny","oc","oj","om","or","os","pa","pi","pl","ps","pt","qu","rm","rn","ro","ru","rw","sa","sc","sd","se","sg","si","sk","sl","sm","sn","so","sq","sr","ss","st","su","sv","sw","ta","te","tg","th","ti","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","wo","xh","yi","yo","za","zh","zu"]);function a(l){return(0,n.default)(l),o.has(l)}e.exports=t.default,e.exports.default=t.default}(jA,jA.exports)),jA.exports}var HA={exports:{}},QU;function Sce(){return QU||(QU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(St());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,a=/^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/,l=function(p){var m=p.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/);if(m){var y=Number(m[1]),x=Number(m[2]);return y%4===0&&y%100!==0||y%400===0?x<=366:x<=365}var S=p.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),w=S[1],E=S[2],k=S[3],T=E&&"0".concat(E).slice(-2),O=k&&"0".concat(k).slice(-2),R=new Date("".concat(w,"-").concat(T||"01","-").concat(O||"01"));return E&&k?R.getUTCFullYear()===w&&R.getUTCMonth()+1===E&&R.getUTCDate()===k:!0};function d(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(0,n.default)(h);var m=p.strictSeparator?a.test(h):o.test(h);return m&&p.strict?l(h):m}e.exports=t.default,e.exports.default=t.default}(HA,HA.exports)),HA.exports}var PA={exports:{}},KU;function wce(){return KU||(KU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var n=r(St());function r(O){return O&&O.__esModule?O:{default:O}}var o=/[0-9]{4}/,a=/(0[1-9]|1[0-2])/,l=/([12]\d|0[1-9]|3[01])/,d=/([01][0-9]|2[0-3])/,h=/[0-5][0-9]/,p=/([0-5][0-9]|60)/,m=/(\.[0-9]+)?/,y=new RegExp("[-+]".concat(d.source,":").concat(h.source)),x=new RegExp("([zZ]|".concat(y.source,")")),S=new RegExp("".concat(d.source,":").concat(h.source,":").concat(p.source).concat(m.source)),w=new RegExp("".concat(o.source,"-").concat(a.source,"-").concat(l.source)),E=new RegExp("".concat(S.source).concat(x.source)),k=new RegExp("^".concat(w.source,"[ tT]").concat(E.source,"$"));function T(O){return(0,n.default)(O),k.test(O)}e.exports=t.default,e.exports.default=t.default}(PA,PA.exports)),PA.exports}var $m={},WU;function Cce(){if(WU)return $m;WU=1,Object.defineProperty($m,"__esModule",{value:!0}),$m.ScriptCodes=void 0,$m.default=r;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["Adlm","Afak","Aghb","Ahom","Arab","Aran","Armi","Armn","Avst","Bali","Bamu","Bass","Batk","Beng","Bhks","Blis","Bopo","Brah","Brai","Bugi","Buhd","Cakm","Cans","Cari","Cham","Cher","Chis","Chrs","Cirt","Copt","Cpmn","Cprt","Cyrl","Cyrs","Deva","Diak","Dogr","Dsrt","Dupl","Egyd","Egyh","Egyp","Elba","Elym","Ethi","Gara","Geok","Geor","Glag","Gong","Gonm","Goth","Gran","Grek","Gujr","Gukh","Guru","Hanb","Hang","Hani","Hano","Hans","Hant","Hatr","Hebr","Hira","Hluw","Hmng","Hmnp","Hrkt","Hung","Inds","Ital","Jamo","Java","Jpan","Jurc","Kali","Kana","Kawi","Khar","Khmr","Khoj","Kitl","Kits","Knda","Kore","Kpel","Krai","Kthi","Lana","Laoo","Latf","Latg","Latn","Leke","Lepc","Limb","Lina","Linb","Lisu","Loma","Lyci","Lydi","Mahj","Maka","Mand","Mani","Marc","Maya","Medf","Mend","Merc","Mero","Mlym","Modi","Mong","Moon","Mroo","Mtei","Mult","Mymr","Nagm","Nand","Narb","Nbat","Newa","Nkdb","Nkgb","Nkoo","Nshu","Ogam","Olck","Onao","Orkh","Orya","Osge","Osma","Ougr","Palm","Pauc","Pcun","Pelm","Perm","Phag","Phli","Phlp","Phlv","Phnx","Plrd","Piqd","Prti","Psin","Qaaa","Qaab","Qaac","Qaad","Qaae","Qaaf","Qaag","Qaah","Qaai","Qaaj","Qaak","Qaal","Qaam","Qaan","Qaao","Qaap","Qaaq","Qaar","Qaas","Qaat","Qaau","Qaav","Qaaw","Qaax","Qaay","Qaaz","Qaba","Qabb","Qabc","Qabd","Qabe","Qabf","Qabg","Qabh","Qabi","Qabj","Qabk","Qabl","Qabm","Qabn","Qabo","Qabp","Qabq","Qabr","Qabs","Qabt","Qabu","Qabv","Qabw","Qabx","Ranj","Rjng","Rohg","Roro","Runr","Samr","Sara","Sarb","Saur","Sgnw","Shaw","Shrd","Shui","Sidd","Sidt","Sind","Sinh","Sogd","Sogo","Sora","Soyo","Sund","Sunu","Sylo","Syrc","Syre","Syrj","Syrn","Tagb","Takr","Tale","Talu","Taml","Tang","Tavt","Tayo","Telu","Teng","Tfng","Tglg","Thaa","Thai","Tibt","Tirh","Tnsa","Todr","Tols","Toto","Tutg","Ugar","Vaii","Visp","Vith","Wara","Wcho","Wole","Xpeo","Xsux","Yezi","Yiii","Zanb","Zinh","Zmth","Zsye","Zsym","Zxxx","Zyyy","Zzzz"]);function r(o){return(0,e.default)(o),n.has(o)}return $m.ScriptCodes=n,$m}var qA={exports:{}},XU;function Ece(){return XU||(XU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","VAT","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWZ","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","URY","UZB","VUT","VEN","VNM","VGB","VIR","WLF","ESH","YEM","ZMB","ZWE"]);function a(l){return(0,n.default)(l),o.has(l.toUpperCase())}e.exports=t.default,e.exports.default=t.default}(qA,qA.exports)),qA.exports}var GA={exports:{}},JU;function Ace(){return JU||(JU=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=new Set(["004","008","010","012","016","020","024","028","031","032","036","040","044","048","050","051","052","056","060","064","068","070","072","074","076","084","086","090","092","096","100","104","108","112","116","120","124","132","136","140","144","148","152","156","158","162","166","170","174","175","178","180","184","188","191","192","196","203","204","208","212","214","218","222","226","231","232","233","234","238","239","242","246","248","250","254","258","260","262","266","268","270","275","276","288","292","296","300","304","308","312","316","320","324","328","332","334","336","340","344","348","352","356","360","364","368","372","376","380","384","388","392","398","400","404","408","410","414","417","418","422","426","428","430","434","438","440","442","446","450","454","458","462","466","470","474","478","480","484","492","496","498","499","500","504","508","512","516","520","524","528","531","533","534","535","540","548","554","558","562","566","570","574","578","580","581","583","584","585","586","591","598","600","604","608","612","616","620","624","626","630","634","638","642","643","646","652","654","659","660","662","663","666","670","674","678","682","686","688","690","694","702","703","704","705","706","710","716","724","728","729","732","740","744","748","752","756","760","762","764","768","772","776","780","784","788","792","795","796","798","800","804","807","818","826","831","832","833","834","840","850","854","858","860","862","876","882","887","894"]);function a(l){return(0,n.default)(l),o.has(l)}e.exports=t.default,e.exports.default=t.default}(GA,GA.exports)),GA.exports}var Bm={},ej;function kce(){if(ej)return Bm;ej=1,Object.defineProperty(Bm,"__esModule",{value:!0}),Bm.CurrencyCodes=void 0,Bm.default=r;var e=t(St());function t(o){return o&&o.__esModule?o:{default:o}}var n=new Set(["AED","AFN","ALL","AMD","ANG","AOA","ARS","AUD","AWG","AZN","BAM","BBD","BDT","BGN","BHD","BIF","BMD","BND","BOB","BOV","BRL","BSD","BTN","BWP","BYN","BZD","CAD","CDF","CHE","CHF","CHW","CLF","CLP","CNY","COP","COU","CRC","CUP","CVE","CZK","DJF","DKK","DOP","DZD","EGP","ERN","ETB","EUR","FJD","FKP","GBP","GEL","GHS","GIP","GMD","GNF","GTQ","GYD","HKD","HNL","HTG","HUF","IDR","ILS","INR","IQD","IRR","ISK","JMD","JOD","JPY","KES","KGS","KHR","KMF","KPW","KRW","KWD","KYD","KZT","LAK","LBP","LKR","LRD","LSL","LYD","MAD","MDL","MGA","MKD","MMK","MNT","MOP","MRU","MUR","MVR","MWK","MXN","MXV","MYR","MZN","NAD","NGN","NIO","NOK","NPR","NZD","OMR","PAB","PEN","PGK","PHP","PKR","PLN","PYG","QAR","RON","RSD","RUB","RWF","SAR","SBD","SCR","SDG","SEK","SGD","SHP","SLE","SLL","SOS","SRD","SSP","STN","SVC","SYP","SZL","THB","TJS","TMT","TND","TOP","TRY","TTD","TWD","TZS","UAH","UGX","USD","USN","UYI","UYU","UYW","UZS","VED","VES","VND","VUV","WST","XAF","XAG","XAU","XBA","XBB","XBC","XBD","XCD","XDR","XOF","XPD","XPF","XPT","XSU","XTS","XUA","XXX","YER","ZAR","ZMW","ZWL"]);function r(o){return(0,e.default)(o),n.has(o.toUpperCase())}return Bm.CurrencyCodes=n,Bm}var VA={exports:{}},tj;function Tce(){return tj||(tj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var n=o(St()),r=o(Ba());function o(p){return p&&p.__esModule?p:{default:p}}var a=/^[A-Z2-7]+=*$/,l=/^[A-HJKMNP-TV-Z0-9]+$/,d={crockford:!1};function h(p,m){if((0,n.default)(p),m=(0,r.default)(m,d),m.crockford)return l.test(p);var y=p.length;return!!(y%8===0&&a.test(p))}e.exports=t.default,e.exports.default=t.default}(VA,VA.exports)),VA.exports}var YA={exports:{}},nj;function Rce(){return nj||(nj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[A-HJ-NP-Za-km-z1-9]*$/;function a(l){return(0,n.default)(l),!!o.test(l)}e.exports=t.default,e.exports.default=t.default}(YA,YA.exports)),YA.exports}var ZA={exports:{}},rj;function Oce(){return rj||(rj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(St());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,a=/^[a-z\-]+=[a-z0-9\-]+$/i,l=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;function d(h){(0,n.default)(h);var p=h.split(",");if(p.length<2)return!1;var m=p.shift().trim().split(";"),y=m.shift();if(y.slice(0,5)!=="data:")return!1;var x=y.slice(5);if(x!==""&&!o.test(x))return!1;for(var S=0;S<m.length;S++)if(!(S===m.length-1&&m[S].toLowerCase()==="base64")&&!a.test(m[S]))return!1;for(var w=0;w<p.length;w++)if(!l.test(p[w]))return!1;return!0}e.exports=t.default,e.exports.default=t.default}(ZA,ZA.exports)),ZA.exports}var QA={exports:{}},ij;function Dce(){return ij||(ij=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i;function a(l){return(0,n.default)(l),l.indexOf("magnet:?")!==0?!1:o.test(l)}e.exports=t.default,e.exports.default=t.default}(QA,QA.exports)),QA.exports}var KA={exports:{}},WA={exports:{}},XA={exports:{}},oj;function aj(){return oj||(oj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){if((0,n.default)(a),l){var d=new RegExp("[".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+$"),"g");return a.replace(d,"")}for(var h=a.length-1;/\s/.test(a.charAt(h));)h-=1;return a.slice(0,h+1)}e.exports=t.default,e.exports.default=t.default}(XA,XA.exports)),XA.exports}var JA={exports:{}},sj;function lj(){return sj||(sj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);var d=l?new RegExp("^[".concat(l.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"]+"),"g"):/^\s+/g;return a.replace(d,"")}e.exports=t.default,e.exports.default=t.default}(JA,JA.exports)),JA.exports}var uj;function cj(){return uj||(uj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(aj()),r=o(lj());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){return(0,n.default)((0,r.default)(l,d),d)}e.exports=t.default,e.exports.default=t.default}(WA,WA.exports)),WA.exports}var fj;function Mce(){return fj||(fj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=w;var n=a(cj()),r=a(kF()),o=a(St());function a(E){return E&&E.__esModule?E:{default:E}}function l(E,k){return p(E)||h(E,k)||y(E,k)||d()}function d(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
478
478
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(E,k){var T=E==null?null:typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(T!=null){var O,R,I,z,L=[],H=!0,V=!1;try{if(I=(T=T.call(E)).next,k!==0)for(;!(H=(O=I.call(T)).done)&&(L.push(O.value),L.length!==k);H=!0);}catch(te){V=!0,R=te}finally{try{if(!H&&T.return!=null&&(z=T.return(),Object(z)!==z))return}finally{if(V)throw R}}return L}}function p(E){if(Array.isArray(E))return E}function m(E,k){var T=typeof Symbol<"u"&&E[Symbol.iterator]||E["@@iterator"];if(!T){if(Array.isArray(E)||(T=y(E))||k){T&&(E=T);var O=0,R=function(){};return{s:R,n:function(){return O>=E.length?{done:!0}:{done:!1,value:E[O++]}},e:function(V){throw V},f:R}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
479
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,z=!0,L=!1;return{s:function(){T=T.call(E)},n:function(){var V=T.next();return z=V.done,V},e:function(V){L=!0,I=V},f:function(){try{z||T.return==null||T.return()}finally{if(L)throw I}}}}function y(E,k){if(E){if(typeof E=="string")return x(E,k);var T={}.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?x(E,k):void 0}}function x(E,k){(k==null||k>E.length)&&(k=E.length);for(var T=0,O=Array(k);T<k;T++)O[T]=E[T];return O}function S(E){var k=new Set(["subject","body","cc","bcc"]),T={cc:"",bcc:""},O=!1,R=E.split("&");if(R.length>4)return!1;var I=m(R),z;try{for(I.s();!(z=I.n()).done;){var L=z.value,H=L.split("="),V=l(H,2),te=V[0],F=V[1];if(te&&!k.has(te)){O=!0;break}F&&(te==="cc"||te==="bcc")&&(T[te]=F),te&&k.delete(te)}}catch(Q){I.e(Q)}finally{I.f()}return O?!1:T}function w(E,k){if((0,o.default)(E),E.indexOf("mailto:")!==0)return!1;var T=E.replace("mailto:","").split("?"),O=l(T,2),R=O[0],I=O[1],z=I===void 0?"":I;if(!R&&!z)return!0;var L=S(z);return L?"".concat(R,",").concat(L.cc,",").concat(L.bcc).split(",").every(function(H){return H=(0,n.default)(H," "),H?(0,r.default)(H,k):!0}):!1}e.exports=t.default,e.exports.default=t.default}(KA,KA.exports)),KA.exports}var ek={exports:{}},dj;function Ice(){return dj||(dj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(St());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,l=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function d(h){return(0,n.default)(h),o.test(h)||a.test(h)||l.test(h)}e.exports=t.default,e.exports.default=t.default}(ek,ek.exports)),ek.exports}var tk={exports:{}},hj;function $ce(){return hj||(hj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=a(St()),r=a(Ba()),o=a(RF());function a(x){return x&&x.__esModule?x:{default:x}}var l=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,d=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,h=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,p=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,m={checkDMS:!1};function y(x,S){if((0,n.default)(x),S=(0,r.default)(S,m),!(0,o.default)(x,","))return!1;var w=x.split(",");return w[0].startsWith("(")&&!w[1].endsWith(")")||w[1].endsWith(")")&&!w[0].startsWith("(")?!1:S.checkDMS?h.test(w[0])&&p.test(w[1]):l.test(w[0])&&d.test(w[1])}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports)),tk.exports}var Lm={},pj;function Bce(){if(pj)return Lm;pj=1,Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.default=d,Lm.locales=void 0;var e=t(St());function t(h){return h&&h.__esModule?h:{default:h}}var n=/^\d{3}$/,r=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,l={AD:/^AD\d{3}$/,AT:r,AU:r,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BD:/^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,BE:r,BG:r,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:r,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:r,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^(?:(?:0[1-9]|[1-8]\d|9[0-5])\d{3}|97[1-46]\d{2})$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:r,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:n,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:r,LV:/^LV\-\d{4}$/,LK:o,MG:n,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:r,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:r,PK:o,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:r,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:r,TW:/^\d{3}(\d{2,3})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:r,ZM:o};Lm.locales=Object.keys(l);function d(h,p){if((0,e.default)(h),p in l)return l[p].test(h);if(p==="any"){for(var m in l)if(l.hasOwnProperty(m)){var y=l[m];if(y.test(h))return!0}return!1}throw new Error("Invalid locale '".concat(p,"'"))}return Lm}var nk={exports:{}},gj;function Lce(){return gj||(gj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default}(nk,nk.exports)),nk.exports}var rk={exports:{}},mj;function Nce(){return mj||(mj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default}(rk,rk.exports)),rk.exports}var ik={exports:{}},ok={exports:{}},vj;function yj(){return vj||(vj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(ok,ok.exports)),ok.exports}var xj;function zce(){return xj||(xj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(St()),r=o(yj());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){(0,n.default)(l);var h=d?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(l,h)}e.exports=t.default,e.exports.default=t.default}(ik,ik.exports)),ik.exports}var ak={exports:{}},bj;function Fce(){return bj||(bj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[^".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(ak,ak.exports)),ak.exports}var sk={exports:{}},_j;function Uce(){return _j||(_j=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);for(var d=a.length-1;d>=0;d--)if(l.indexOf(a[d])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default}(sk,sk.exports)),sk.exports}var lk={exports:{}},Sj;function jce(){return Sj||(Sj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=r(Ba());function r(y){return y&&y.__esModule?y:{default:y}}var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,yandex_convert_yandexru:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],d=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],h=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(y){return y.length>1?y:""}function m(y,x){x=(0,n.default)(x,o);var S=y.split("@"),w=S.pop(),E=S.join("@"),k=[E,w];if(k[1]=k[1].toLowerCase(),k[1]==="gmail.com"||k[1]==="googlemail.com"){if(x.gmail_remove_subaddress&&(k[0]=k[0].split("+")[0]),x.gmail_remove_dots&&(k[0]=k[0].replace(/\.+/g,p)),!k[0].length)return!1;(x.all_lowercase||x.gmail_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.gmail_convert_googlemaildotcom?"gmail.com":k[1]}else if(a.indexOf(k[1])>=0){if(x.icloud_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.icloud_lowercase)&&(k[0]=k[0].toLowerCase())}else if(l.indexOf(k[1])>=0){if(x.outlookdotcom_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.outlookdotcom_lowercase)&&(k[0]=k[0].toLowerCase())}else if(d.indexOf(k[1])>=0){if(x.yahoo_remove_subaddress){var T=k[0].split("-");k[0]=T.length>1?T.slice(0,-1).join("-"):T[0]}if(!k[0].length)return!1;(x.all_lowercase||x.yahoo_lowercase)&&(k[0]=k[0].toLowerCase())}else h.indexOf(k[1])>=0?((x.all_lowercase||x.yandex_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.yandex_convert_yandexru?"yandex.ru":k[1]):x.all_lowercase&&(k[0]=k[0].toLowerCase());return k.join("@")}e.exports=t.default,e.exports.default=t.default}(lk,lk.exports)),lk.exports}var uk={exports:{}},wj;function Hce(){return wj||(wj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(uk,uk.exports)),uk.exports}var ck={exports:{}},Cj;function Pce(){return Cj||(Cj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o={"cs-CZ":function(d){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(d)},"de-DE":function(d){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AΓ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BΓ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FΓ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GΓ|GP|GR|GS|GT|GΓ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LΓ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MΓ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NΓ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TΓ|ΓB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WΓ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BΓD|BUL|BΓR|BΓS|BΓZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DΓW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLΓ|FOR|FRG|FRI|FRW|FTL|FΓS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMΓ|HOG|HOH|HOL|HOM|HOR|HΓS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JΓL|KEH|KEL|KEM|KIB|KLE|KLZ|KΓN|KΓT|KΓZ|KRU|KΓN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LΓB|LOS|LRO|LSZ|LΓN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MΓB|MΓR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ΓHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLΓ|PRΓ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RΓD|RΓG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLΓ|SLZ|SMΓ|SOB|SOG|SOK|SΓM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SΓW|SWA|SZB|TBB|TDO|TET|TIR|TΓL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WΓM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(d)},"de-LI":function(d){return/^FL[- ]?\d{1,5}[UZ]?$/.test(d)},"en-IN":function(d){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(d)},"en-SG":function(d){return/^[A-Z]{3}[ -]?[\d]{4}[ -]?[A-Z]{1}$/.test(d)},"es-AR":function(d){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(d)},"fi-FI":function(d){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(d)},"hu-HU":function(d){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(d)},"pt-BR":function(d){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(d)},"pt-PT":function(d){return/^(([A-Z]{2}[ -Β·]?[0-9]{2}[ -Β·]?[0-9]{2})|([0-9]{2}[ -Β·]?[A-Z]{2}[ -Β·]?[0-9]{2})|([0-9]{2}[ -Β·]?[0-9]{2}[ -Β·]?[A-Z]{2})|([A-Z]{2}[ -Β·]?[0-9]{2}[ -Β·]?[A-Z]{2}))$/.test(d)},"sq-AL":function(d){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(d)},"sv-SE":function(d){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZΓ
ΓΓ ]{2,7}$)/.test(d.trim())},"en-PK":function(d){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(d.trim())}};function a(l,d){if((0,n.default)(l),d in o)return o[d](l);if(d==="any"){for(var h in o){var p=o[h];if(p(l))return!0}return!1}throw new Error("Invalid locale '".concat(d,"'"))}e.exports=t.default,e.exports.default=t.default}(ck,ck.exports)),ck.exports}var fk={exports:{}},Ej;function qce(){return Ej||(Ej=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n=o(Ba()),r=o(St());function o(w){return w&&w.__esModule?w:{default:w}}var a=/^[A-Z]$/,l=/^[a-z]$/,d=/^[0-9]$/,h=/^[-#!$@Β£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function m(w){var E={};return Array.from(w).forEach(function(k){var T=E[k];T?E[k]+=1:E[k]=1}),E}function y(w){var E=m(w),k={length:w.length,uniqueChars:Object.keys(E).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(E).forEach(function(T){a.test(T)?k.uppercaseCount+=E[T]:l.test(T)?k.lowercaseCount+=E[T]:d.test(T)?k.numberCount+=E[T]:h.test(T)&&(k.symbolCount+=E[T])}),k}function x(w,E){var k=0;return k+=w.uniqueChars*E.pointsPerUnique,k+=(w.length-w.uniqueChars)*E.pointsPerRepeat,w.lowercaseCount>0&&(k+=E.pointsForContainingLower),w.uppercaseCount>0&&(k+=E.pointsForContainingUpper),w.numberCount>0&&(k+=E.pointsForContainingNumber),w.symbolCount>0&&(k+=E.pointsForContainingSymbol),k}function S(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(w);var k=y(w);return E=(0,n.default)(E||{},p),E.returnScore?x(k,E):k.length>=E.minLength&&k.lowercaseCount>=E.minLowercase&&k.uppercaseCount>=E.minUppercase&&k.numberCount>=E.minNumbers&&k.symbolCount>=E.minSymbols}e.exports=t.default,e.exports.default=t.default}(fk,fk.exports)),fk.exports}var Nm={},Aj;function Gce(){if(Aj)return Nm;Aj=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(m)}Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.default=p,Nm.vatMatchers=void 0;var t=o(St()),n=r(jU());function r(m,y){if(typeof WeakMap=="function")var x=new WeakMap,S=new WeakMap;return(r=function(E,k){if(!k&&E&&E.__esModule)return E;var T,O,R={__proto__:null,default:E};if(E===null||e(E)!="object"&&typeof E!="function")return R;if(T=k?S:x){if(T.has(E))return T.get(E);T.set(E,R)}for(var I in E)I!=="default"&&{}.hasOwnProperty.call(E,I)&&((O=(T=Object.defineProperty)&&Object.getOwnPropertyDescriptor(E,I))&&(O.get||O.set)?T(R,I,O):R[I]=E[I]);return R})(m,y)}function o(m){return m&&m.__esModule?m:{default:m}}var a=function(y){var x=y.match(/^(AU)?(\d{11})$/);if(!x)return!1;var S=[10,1,3,5,7,9,11,13,15,17,19];y=y.replace(/^AU/,"");for(var w=(parseInt(y.slice(0,1),10)-1).toString()+y.slice(1),E=0,k=0;k<11;k++)E+=S[k]*w.charAt(k);return E!==0&&E%89===0},l=function(y){var x=function(w){var E=w.pop(),k=[5,4,3,2,7,6,5,4],T=(11-w.reduce(function(O,R,I){return O+R*k[I]},0)%11)%11;return E===T};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(y)&&x(y.match(/\d/g).map(function(S){return+S}))},d=function(y){var x=y.match(/^(PT)?(\d{9})$/);if(!x)return!1;var S=x[2],w=11-n.reverseMultiplyAndSum(S.split("").slice(0,8).map(function(E){return parseInt(E,10)}),9)%11;return w>9?parseInt(S[8],10)===0:w===parseInt(S[8],10)},h=Nm.vatMatchers={AT:function(y){return/^(AT)?U\d{8}$/.test(y)},BE:function(y){return/^(BE)?\d{10}$/.test(y)},BG:function(y){return/^(BG)?\d{9,10}$/.test(y)},HR:function(y){return/^(HR)?\d{11}$/.test(y)},CY:function(y){return/^(CY)?\w{9}$/.test(y)},CZ:function(y){return/^(CZ)?\d{8,10}$/.test(y)},DK:function(y){return/^(DK)?\d{8}$/.test(y)},EE:function(y){return/^(EE)?\d{9}$/.test(y)},FI:function(y){return/^(FI)?\d{8}$/.test(y)},FR:function(y){return/^(FR)?\w{2}\d{9}$/.test(y)},DE:function(y){return/^(DE)?\d{9}$/.test(y)},EL:function(y){return/^(EL)?\d{9}$/.test(y)},HU:function(y){return/^(HU)?\d{8}$/.test(y)},IE:function(y){return/^(IE)?\d{7}\w{1}(W)?$/.test(y)},IT:function(y){return/^(IT)?\d{11}$/.test(y)},LV:function(y){return/^(LV)?\d{11}$/.test(y)},LT:function(y){return/^(LT)?\d{9,12}$/.test(y)},LU:function(y){return/^(LU)?\d{8}$/.test(y)},MT:function(y){return/^(MT)?\d{8}$/.test(y)},NL:function(y){return/^(NL)?\d{9}B\d{2}$/.test(y)},PL:function(y){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(y)},PT:d,RO:function(y){return/^(RO)?\d{2,10}$/.test(y)},SK:function(y){return/^(SK)?\d{10}$/.test(y)},SI:function(y){return/^(SI)?\d{8}$/.test(y)},ES:function(y){return/^(ES)?\w\d{7}[A-Z]$/.test(y)},SE:function(y){return/^(SE)?\d{12}$/.test(y)},AL:function(y){return/^(AL)?\w{9}[A-Z]$/.test(y)},MK:function(y){return/^(MK)?\d{13}$/.test(y)},AU:a,BY:function(y){return/^(Π£ΠΠ )?\d{9}$/.test(y)},CA:function(y){return/^(CA)?\d{9}$/.test(y)},IS:function(y){return/^(IS)?\d{5,6}$/.test(y)},IN:function(y){return/^(IN)?\d{15}$/.test(y)},ID:function(y){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(y)},IL:function(y){return/^(IL)?\d{9}$/.test(y)},KZ:function(y){return/^(KZ)?\d{12}$/.test(y)},NZ:function(y){return/^(NZ)?\d{9}$/.test(y)},NG:function(y){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(y)},NO:function(y){return/^(NO)?\d{9}MVA$/.test(y)},PH:function(y){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(y)},RU:function(y){return/^(RU)?(\d{10}|\d{12})$/.test(y)},SM:function(y){return/^(SM)?\d{5}$/.test(y)},SA:function(y){return/^(SA)?\d{15}$/.test(y)},RS:function(y){return/^(RS)?\d{9}$/.test(y)},CH:l,TR:function(y){return/^(TR)?\d{10}$/.test(y)},UA:function(y){return/^(UA)?\d{12}$/.test(y)},GB:function(y){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(y)},UZ:function(y){return/^(UZ)?\d{9}$/.test(y)},AR:function(y){return/^(AR)?\d{11}$/.test(y)},BO:function(y){return/^(BO)?\d{7}$/.test(y)},BR:function(y){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(y)},CL:function(y){return/^(CL)?\d{8}-\d{1}$/.test(y)},CO:function(y){return/^(CO)?\d{10}$/.test(y)},CR:function(y){return/^(CR)?\d{9,12}$/.test(y)},EC:function(y){return/^(EC)?\d{13}$/.test(y)},SV:function(y){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(y)},GT:function(y){return/^(GT)?\d{7}-\d{1}$/.test(y)},HN:function(y){return/^(HN)?$/.test(y)},MX:function(y){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(y)},NI:function(y){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(y)},PA:function(y){return/^(PA)?$/.test(y)},PY:function(y){return/^(PY)?\d{6,8}-\d{1}$/.test(y)},PE:function(y){return/^(PE)?\d{11}$/.test(y)},DO:function(y){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(y)},UY:function(y){return/^(UY)?\d{12}$/.test(y)},VE:function(y){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(y)}};function p(m,y){if((0,t.default)(m),(0,t.default)(y),y in h)return h[y](m);throw new Error("Invalid country code: '".concat(y,"'"))}return Nm}var kj;function Vce(){return kj||(kj=1,function(e,t){function n(ce){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Re){return typeof Re}:function(Re){return Re&&typeof Symbol=="function"&&Re.constructor===Symbol&&Re!==Symbol.prototype?"symbol":typeof Re},n(ce)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=ot(r6()),o=ot(fF()),a=ot(mue()),l=ot(vue()),d=ot(yue()),h=ot(xue()),p=ot(bue()),m=ot(kF()),y=ot(_ue()),x=ot(Sue()),S=ot(FE()),w=ot(wue()),E=ot(i6()),k=ot($F()),T=ot(Cue()),O=ot(Eue()),R=ot(Aue()),I=ot(kue()),z=Qr(Tue()),L=Qr(Rue()),H=ot(Oue()),V=Qr(Due()),te=ot(Mue()),F=ot(Iue()),Q=ot($ue()),J=ot(Bue()),oe=ot(Lue()),re=ot(WF()),pe=ot(JF()),ee=ot(Nue()),se=ot(zue()),he=ot(Uue()),Ee=ot(jue()),N=ot(o6()),Y=Qr(uF()),ae=ot(Hue()),B=ot(sU()),de=ot(Pue()),Ne=ot(que()),ke=ot(Gue()),Ie=ot(Vue()),We=ot(Yue()),Et=ot(Zue()),dt=Qr(Que()),lt=ot(Kue()),rt=ot(Wue()),At=ot(Xue()),gt=ot(Jue()),bt=ot(ece()),zt=ot(tce()),ne=ot(nce()),le=ot(wF()),_e=ot(rce()),Fe=ot(ice()),be=ot(oce()),Be=ot(ace()),at=ot(sce()),mt=ot(lce()),wt=ot(IU()),ye=ot(uce()),He=ot(cce()),ut=ot(fce()),yt=ot(dce()),_t=ot(hce()),Gt=ot(pce()),Wt=ot(gce()),ln=Qr(mce()),Zt=ot(vce()),It=ot(yce()),jt=ot(xce()),vt=bce(),G=ot(_ce()),we=ot(Sce()),tt=ot(wce()),st=ot(Cce()),xt=ot(mU()),Vt=ot(Ece()),Lt=ot(Ace()),Xt=ot(kce()),Dt=ot(Tce()),mn=ot(Rce()),Pn=ot(_U()),Ui=ot(Oce()),zn=ot(Dce()),vn=ot(Mce()),Qt=ot(Ice()),Br=ot($ce()),nr=Qr(Bce()),la=ot(lj()),Ro=ot(aj()),Po=ot(cj()),pi=ot(Lce()),$t=ot(Nce()),li=ot(zce()),Mr=ot(Fce()),fo=ot(yj()),Ti=ot(Uce()),rr=ot(jce()),Xi=ot(Hce()),ho=ot(Pce()),Bn=ot(qce()),po=ot(Gce());function Qr(ce,Re){if(typeof WeakMap=="function")var P=new WeakMap,W=new WeakMap;return(Qr=function(xe,Ae){if(!Ae&&xe&&xe.__esModule)return xe;var Ze,Tt,tn={__proto__:null,default:xe};if(xe===null||n(xe)!="object"&&typeof xe!="function")return tn;if(Ze=Ae?W:P){if(Ze.has(xe))return Ze.get(xe);Ze.set(xe,tn)}for(var an in xe)an!=="default"&&{}.hasOwnProperty.call(xe,an)&&((Tt=(Ze=Object.defineProperty)&&Object.getOwnPropertyDescriptor(xe,an))&&(Tt.get||Tt.set)?Ze(tn,an,Tt):tn[an]=xe[an]);return tn})(ce,Re)}function ot(ce){return ce&&ce.__esModule?ce:{default:ce}}var Kr="13.15.15",Oe={version:Kr,toDate:r.default,toFloat:o.default,toInt:a.default,toBoolean:l.default,equals:d.default,contains:h.default,matches:p.default,isEmail:m.default,isURL:y.default,isMACAddress:x.default,isIP:S.default,isIPRange:w.default,isFQDN:E.default,isBoolean:O.default,isIBAN:dt.default,isBIC:lt.default,isAbaRouting:I.default,isAlpha:z.default,isAlphaLocales:z.locales,isAlphanumeric:L.default,isAlphanumericLocales:L.locales,isNumeric:H.default,isPassportNumber:V.default,passportNumberLocales:V.locales,isPort:te.default,isLowercase:F.default,isUppercase:Q.default,isAscii:oe.default,isFullWidth:re.default,isHalfWidth:pe.default,isVariableWidth:ee.default,isMultibyte:se.default,isSemVer:he.default,isSurrogatePair:Ee.default,isInt:N.default,isIMEI:J.default,isFloat:Y.default,isFloatLocales:Y.locales,isDecimal:ae.default,isHexadecimal:B.default,isOctal:de.default,isDivisibleBy:Ne.default,isHexColor:ke.default,isRgbColor:Ie.default,isHSL:We.default,isISRC:Et.default,isMD5:rt.default,isHash:At.default,isJWT:gt.default,isJSON:bt.default,isEmpty:zt.default,isLength:ne.default,isLocale:R.default,isByteLength:le.default,isULID:_e.default,isUUID:Fe.default,isMongoId:be.default,isAfter:Be.default,isBefore:at.default,isIn:mt.default,isLuhnNumber:wt.default,isCreditCard:ye.default,isIdentityCard:He.default,isEAN:ut.default,isISIN:yt.default,isISBN:_t.default,isISSN:Gt.default,isMobilePhone:ln.default,isMobilePhoneLocales:ln.locales,isPostalCode:nr.default,isPostalCodeLocales:nr.locales,isEthereumAddress:Zt.default,isCurrency:It.default,isBtcAddress:jt.default,isISO6346:vt.isISO6346,isFreightContainerID:vt.isFreightContainerID,isISO6391:G.default,isISO8601:we.default,isISO15924:st.default,isRFC3339:tt.default,isISO31661Alpha2:xt.default,isISO31661Alpha3:Vt.default,isISO31661Numeric:Lt.default,isISO4217:Xt.default,isBase32:Dt.default,isBase58:mn.default,isBase64:Pn.default,isDataURI:Ui.default,isMagnetURI:zn.default,isMailtoURI:vn.default,isMimeType:Qt.default,isLatLong:Br.default,ltrim:la.default,rtrim:Ro.default,trim:Po.default,escape:pi.default,unescape:$t.default,stripLow:li.default,whitelist:Mr.default,blacklist:fo.default,isWhitelisted:Ti.default,normalizeEmail:rr.default,toString,isSlug:Xi.default,isStrongPassword:Bn.default,isTaxID:Wt.default,isDate:k.default,isTime:T.default,isLicensePlate:ho.default,isVAT:po.default,ibanLocales:dt.locales};t.default=Oe,e.exports=t.default,e.exports.default=t.default}(SE,SE.exports)),SE.exports}var zm=Vce();const nn={OPEN_STATE_CHANGE:"open_state_change",CHAT_BUTTON_CLICKED:"Chat button clicked",USER_FORM_FILLED:"User form filled",ADD_BULK_ITEM:"Add bulk item",USER_FORM_CLOSE:"user_form_close",CHECKOUT_CLICKED:"Checkout Clicked",ADD_TO_CART_CLICKED:"add to cart clicked",SUGGESTED_QUESTION_CLICKED:"Suggested Question Clicked",INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED:"Initial Leading Query Suggested Question Clicked",LEADING_QUERY_CLICKED:"Leading Query Clicked",COLLECTION_VIDEO_CLICKED:"Collection Video Clicked",COLLECTION_IMAGE_CLICKED:"Collection Image Clicked",VIEW_PRODUCT_CLICKED:"view product clicked",PRODUCT_VIDEO_CLICKED:"Product Video Clicked",PRODUCT_IMAGE_CLICKED:"Product Image Clicked",SHOW_SIMILAR_CLICKED:"show similar clicked",CHAT_MESSAGE_SENT:"chat_message_sent",CHAT_MESSAGE_TYPING_STARTED:"chat_message_typing_started",CHAT_MESSAGE_TYPING_ENDED:"chat_message_typing_ended",DISCOUNT_VIEWED:"discount_viewed",SHOPIFY_LINK_CLICKED:"shopify_link_clicked"},hi={OPEN_STATE_CHANGE:"open_state_change"},Tj=Z.createContext(null),zp=()=>{const e=Z.useContext(Tj);if(!e)throw new Error("useCart must be used within a CartProvider");return e};var Yce="2.0.4",a6=500,Rj="user-agent",Fm="",Oj="?",dk="function",Pd="undefined",Um="object",s6="string",ss="browser",df="cpu",ec="device",Jl="engine",pl="os",jm="result",ft="name",et="type",ct="vendor",pt="version",ls="architecture",kx="major",it="model",Tx="console",gn="mobile",$r="tablet",Ki="smarttv",tc="wearable",hk="xr",Rx="embedded",Ox="inapp",l6="brands",Fp="formFactors",u6="fullVersionList",Hm="platform",c6="platformVersion",pk="bitness",qd="sec-ch-ua",Zce=qd+"-full-version-list",Qce=qd+"-arch",Kce=qd+"-"+pk,Wce=qd+"-form-factors",Xce=qd+"-"+gn,Jce=qd+"-"+it,Dj=qd+"-"+Hm,efe=Dj+"-version",Mj=[l6,u6,gn,it,Hm,c6,ls,Fp,pk],gk="Amazon",Pm="Apple",Ij="ASUS",$j="BlackBerry",Up="Google",Bj="Huawei",f6="Lenovo",Lj="Honor",mk="LG",d6="Microsoft",h6="Motorola",p6="Nvidia",Nj="OnePlus",g6="OPPO",Dx="Samsung",zj="Sharp",Mx="Sony",m6="Xiaomi",v6="Zebra",Fj="Chrome",Uj="Chromium",Gd="Chromecast",vk="Edge",Ix="Firefox",$x="Opera",y6="Facebook",jj="Sogou",qm="Mobile ",Bx=" Browser",x6="Windows",tfe=typeof window!==Pd,us=tfe&&window.navigator?window.navigator:void 0,Vd=us&&us.userAgentData?us.userAgentData:void 0,nfe=function(e,t){var n={},r=t;if(!xk(t)){r={};for(var o in t)for(var a in t[o])r[a]=t[o][a].concat(r[a]?r[a]:[])}for(var l in e)n[l]=r[l]&&r[l].length%2===0?r[l].concat(e[l]):e[l];return n},yk=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},b6=function(e,t){if(typeof e===Um&&e.length>0){for(var n in e)if(hf(t)==hf(e[n]))return!0;return!1}return Gm(e)?hf(t)==hf(e):!1},xk=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?xk(e[n]):!1)},Gm=function(e){return typeof e===s6},_6=function(e){if(e){for(var t=[],n=Vm(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var o=bk(n[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=bk(n[r]);return t}},hf=function(e){return Gm(e)?e.toLowerCase():e},S6=function(e){return Gm(e)?Vm(/[^\d\.]/g,e).split(".")[0]:void 0},pf=function(e){for(var t in e){var n=e[t];typeof n==Um&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},Vm=function(e,t){return Gm(t)?t.replace(e,Fm):t},Lx=function(e){return Vm(/\\?\"/g,e)},bk=function(e,t){if(Gm(e))return e=Vm(/^\s\s*/,e),typeof t===Pd?e:e.substring(0,a6)},w6=function(e,t){if(!(!e||!t))for(var n=0,r,o,a,l,d,h;n<t.length&&!d;){var p=t[n],m=t[n+1];for(r=o=0;r<p.length&&!d&&p[r];)if(d=p[r++].exec(e),d)for(a=0;a<m.length;a++)h=d[++o],l=m[a],typeof l===Um&&l.length>0?l.length===2?typeof l[1]==dk?this[l[0]]=l[1].call(this,h):this[l[0]]=l[1]:l.length>=3&&(typeof l[1]===dk&&!(l[1].exec&&l[1].test)?l.length>3?this[l[0]]=h?l[1].apply(this,l.slice(2)):void 0:this[l[0]]=h?l[1].call(this,h,l[2]):void 0:l.length==3?this[l[0]]=h?h.replace(l[1],l[2]):void 0:l.length==4?this[l[0]]=h?l[3].call(this,h.replace(l[1],l[2])):void 0:l.length>4&&(this[l[0]]=h?l[3].apply(this,[h.replace(l[1],l[2])].concat(l.slice(4))):void 0)):this[l]=h||void 0;n+=2}},nc=function(e,t){for(var n in t)if(typeof t[n]===Um&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(b6(t[n][r],e))return n===Oj?void 0:n}else if(b6(t[n],e))return n===Oj?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},Hj={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Pj={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},rfe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},qj={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[pt,[ft,qm+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[pt,[ft,vk+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[pt,[ft,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ft,pt],[/opios[\/ ]+([\w\.]+)/i],[pt,[ft,$x+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[pt,[ft,$x+" GX"]],[/\bopr\/([\w\.]+)/i],[pt,[ft,$x]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[pt,[ft,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[pt,[ft,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ft,pt],[/quark(?:pc)?\/([-\w\.]+)/i],[pt,[ft,"Quark"]],[/\bddg\/([\w\.]+)/i],[pt,[ft,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[pt,[ft,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[pt,[ft,"WeChat"]],[/konqueror\/([\w\.]+)/i],[pt,[ft,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[pt,[ft,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[pt,[ft,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[pt,[ft,"Smart "+f6+Bx]],[/(avast|avg)\/([\w\.]+)/i],[[ft,/(.+)/,"$1 Secure"+Bx],pt],[/\bfocus\/([\w\.]+)/i],[pt,[ft,Ix+" Focus"]],[/\bopt\/([\w\.]+)/i],[pt,[ft,$x+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[pt,[ft,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[pt,[ft,"Dolphin"]],[/coast\/([\w\.]+)/i],[pt,[ft,$x+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[pt,[ft,"MIUI"+Bx]],[/fxios\/([\w\.-]+)/i],[pt,[ft,qm+Ix]],[/\bqihoobrowser\/?([\w\.]*)/i],[pt,[ft,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ft,/(.+)/,"$1Browser"],pt],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ft,/(.+)/,"$1"+Bx],pt],[/samsungbrowser\/([\w\.]+)/i],[pt,[ft,Dx+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[pt,[ft,jj+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ft,jj+" Mobile"],pt],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ft,pt],[/(lbbrowser|rekonq)/i],[ft],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[pt,ft],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ft,y6],pt,[et,Ox]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[ft,pt,[et,Ox]],[/\bgsa\/([\w\.]+) .*safari\//i],[pt,[ft,"GSA"],[et,Ox]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[pt,[ft,"TikTok"],[et,Ox]],[/\[(linkedin)app\]/i],[ft,[et,Ox]],[/(chromium)[\/ ]([-\w\.]+)/i],[ft,pt],[/headlesschrome(?:\/([\w\.]+)| )/i],[pt,[ft,Fj+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[pt,[ft,vk+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ft,Fj+" WebView"],pt],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[pt,[ft,"Android"+Bx]],[/chrome\/([\w\.]+) mobile/i],[pt,[ft,qm+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ft,pt],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[pt,[ft,qm+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ft,qm+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[pt,ft],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ft,[pt,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ft,pt],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ft,qm+Ix],pt],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ft,"Netscape"],pt],[/(wolvic|librewolf)\/([\w\.]+)/i],[ft,pt],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[pt,[ft,Ix+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ft,[pt,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ft,[pt,/[^\d\.]+./,Fm]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ls,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ls,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ls,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ls,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ls,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[ls,/ower/,Fm,hf]],[/ sun4\w[;\)]/i],[[ls,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[ls,hf]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[it,[ct,Dx],[et,$r]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[it,[ct,Dx],[et,gn]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[it,[ct,Pm],[et,gn]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[it,[ct,Pm],[et,$r]],[/(macintosh);/i],[it,[ct,Pm]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[it,[ct,zj],[et,gn]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[it,[ct,Lj],[et,$r]],[/honor([-\w ]+)[;\)]/i],[it,[ct,Lj],[et,gn]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[it,[ct,Bj],[et,$r]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[it,[ct,Bj],[et,gn]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[it,/_/g," "],[ct,m6],[et,$r]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[it,/_/g," "],[ct,m6],[et,gn]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[it,[ct,Nj],[et,gn]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[it,[ct,g6],[et,gn]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[it,[ct,nc,{OnePlus:["203","304","403","404","413","415"],"*":g6}],[et,$r]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[it,[ct,"BLU"],[et,gn]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[it,[ct,"Vivo"],[et,gn]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[it,[ct,"Realme"],[et,gn]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[it,[ct,f6],[et,$r]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[it,[ct,f6],[et,gn]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[it,[ct,h6],[et,gn]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[it,[ct,h6],[et,$r]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[it,[ct,mk],[et,$r]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[it,[ct,mk],[et,gn]],[/(nokia) (t[12][01])/i],[ct,it,[et,$r]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[it,/_/g," "],[et,gn],[ct,"Nokia"]],[/(pixel (c|tablet))\b/i],[it,[ct,Up],[et,$r]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[it,[ct,Up],[et,gn]],[/(google) (pixelbook( go)?)/i],[ct,it],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[it,[ct,Mx],[et,gn]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[it,"Xperia Tablet"],[ct,Mx],[et,$r]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[it,[ct,gk],[et,$r]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[it,/(.+)/g,"Fire Phone $1"],[ct,gk],[et,gn]],[/(playbook);[-\w\),; ]+(rim)/i],[it,ct,[et,$r]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[it,[ct,$j],[et,gn]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[it,[ct,Ij],[et,$r]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[it,[ct,Ij],[et,gn]],[/(nexus 9)/i],[it,[ct,"HTC"],[et,$r]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ct,[it,/_/g," "],[et,gn]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[it,[ct,"TCL"],[et,$r]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[it,[ct,"TCL"],[et,gn]],[/(itel) ((\w+))/i],[[ct,hf],it,[et,nc,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[it,[ct,"Acer"],[et,$r]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[it,[ct,"Meizu"],[et,gn]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[it,[ct,"Ulefone"],[et,gn]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[it,[ct,"Energizer"],[et,gn]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[it,[ct,"Cat"],[et,gn]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[it,[ct,"Smartfren"],[et,gn]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[it,[ct,"Nothing"],[et,gn]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[it,[ct,"Archos"],[et,$r]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[it,[ct,"Archos"],[et,gn]],[/; (n159v)/i],[it,[ct,"HMD"],[et,gn]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[ct,it,[et,$r]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[ct,it,[et,gn]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ct,it,[et,$r]],[/(surface duo)/i],[it,[ct,d6],[et,$r]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[it,[ct,"Fairphone"],[et,gn]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[it,[ct,p6],[et,$r]],[/(sprint) (\w+)/i],[ct,it,[et,gn]],[/(kin\.[onetw]{3})/i],[[it,/\./g," "],[ct,d6],[et,gn]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[it,[ct,v6],[et,$r]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[it,[ct,v6],[et,gn]],[/smart-tv.+(samsung)/i],[ct,[et,Ki]],[/hbbtv.+maple;(\d+)/i],[[it,/^/,"SmartTV"],[ct,Dx],[et,Ki]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[ct,it,[et,Ki]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ct,mk],[et,Ki]],[/(apple) ?tv/i],[ct,[it,Pm+" TV"],[et,Ki]],[/crkey.*devicetype\/chromecast/i],[[it,Gd+" Third Generation"],[ct,Up],[et,Ki]],[/crkey.*devicetype\/([^/]*)/i],[[it,/^/,"Chromecast "],[ct,Up],[et,Ki]],[/fuchsia.*crkey/i],[[it,Gd+" Nest Hub"],[ct,Up],[et,Ki]],[/crkey/i],[[it,Gd],[ct,Up],[et,Ki]],[/(portaltv)/i],[it,[ct,y6],[et,Ki]],[/droid.+aft(\w+)( bui|\))/i],[it,[ct,gk],[et,Ki]],[/(shield \w+ tv)/i],[it,[ct,p6],[et,Ki]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[it,[ct,zj],[et,Ki]],[/(bravia[\w ]+)( bui|\))/i],[it,[ct,Mx],[et,Ki]],[/(mi(tv|box)-?\w+) bui/i],[it,[ct,m6],[et,Ki]],[/Hbbtv.*(technisat) (.*);/i],[ct,it,[et,Ki]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ct,/.+\/(\w+)/,"$1",nc,{LG:"lge"}],[it,bk],[et,Ki]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[it,[et,Ki]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[et,Ki]],[/(playstation \w+)/i],[it,[ct,Mx],[et,Tx]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[it,[ct,d6],[et,Tx]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[ct,it,[et,Tx]],[/droid.+; (shield)( bui|\))/i],[it,[ct,p6],[et,Tx]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[it,[ct,Dx],[et,tc]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ct,it,[et,tc]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[it,[ct,g6],[et,tc]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[it,[ct,Pm],[et,tc]],[/(opwwe\d{3})/i],[it,[ct,Nj],[et,tc]],[/(moto 360)/i],[it,[ct,h6],[et,tc]],[/(smartwatch 3)/i],[it,[ct,Mx],[et,tc]],[/(g watch r)/i],[it,[ct,mk],[et,tc]],[/droid.+; (wt63?0{2,3})\)/i],[it,[ct,v6],[et,tc]],[/droid.+; (glass) \d/i],[it,[ct,Up],[et,hk]],[/(pico) (4|neo3(?: link|pro)?)/i],[ct,it,[et,hk]],[/(quest( \d| pro)?s?).+vr/i],[it,[ct,y6],[et,hk]],[/mobile vr; rv.+firefox/i],[[et,hk]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ct,[et,Rx]],[/(aeobc)\b/i],[it,[ct,gk],[et,Rx]],[/(homepod).+mac os/i],[it,[ct,Pm],[et,Rx]],[/windows iot/i],[[et,Rx]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[it,[et,nc,{mobile:"Mobile",xr:"VR","*":$r}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[et,$r]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[et,gn]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[it,[ct,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[pt,[ft,vk+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ft,pt],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[pt,[ft,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ft,pt],[/ladybird\//i],[[ft,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[pt,ft]],os:[[/(windows nt) (6\.[23]); arm/i],[[ft,/N/,"R"],[pt,nc,Hj]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[ft,pt],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[pt,/(;|\))/g,"",nc,Hj],[ft,x6]],[/(windows ce)\/?([\d\.]*)/i],[ft,pt],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[pt,/_/g,"."],[ft,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[ft,"macOS"],[pt,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[pt,[ft,Gd+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[pt,[ft,Gd+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[pt,[ft,Gd+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[pt,[ft,Gd+" Linux"]],[/crkey\/([\d\.]+)/i],[pt,[ft,Gd]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[pt,ft],[/(ubuntu) ([\w\.]+) like android/i],[[ft,/(.+)/,"$1 Touch"],pt],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[ft,pt],[/\(bb(10);/i],[pt,[ft,$j]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[pt,[ft,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[pt,[ft,Ix+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[pt,[ft,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[pt,nc,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[ft,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[pt,[ft,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ft,"Chrome OS"],pt],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[ft,pt],[/(sunos) ?([\d\.]*)/i],[[ft,"Solaris"],pt],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ft,pt]]},_k=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return pf.call(e.init,[[ss,[ft,pt,kx,et]],[df,[ls]],[ec,[et,it,ct]],[Jl,[ft,pt]],[pl,[ft,pt]]]),pf.call(e.isIgnore,[[ss,[pt,kx]],[Jl,[pt]],[pl,[pt]]]),pf.call(e.isIgnoreRgx,[[ss,/ ?browser$/i],[pl,/ ?os$/i]]),pf.call(e.toString,[[ss,[ft,pt]],[df,[ls]],[ec,[ct,it]],[Jl,[ft,pt]],[pl,[ft,pt]]]),e}(),ife=function(e,t){var n=_k.init[t],r=_k.isIgnore[t]||0,o=_k.isIgnoreRgx[t]||0,a=_k.toString[t]||0;function l(){pf.call(this,n)}return l.prototype.getItem=function(){return e},l.prototype.withClientHints=function(){return Vd?Vd.getHighEntropyValues(Mj).then(function(d){return e.setCH(new Gj(d,!1)).parseCH().get()}):e.parseCH().get()},l.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=jm&&(l.prototype.is=function(d){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!b6(r,p)&&hf(o?Vm(o,this[p]):this[p])==hf(o?Vm(o,d):d)){if(h=!0,d!=Pd)break}else if(d==Pd&&h){h=!h;break}return h},l.prototype.toString=function(){var d=Fm;for(var h in a)typeof this[a[h]]!==Pd&&(d+=(d?" ":Fm)+this[a[h]]);return d||Pd}),Vd||(l.prototype.then=function(d){var h=this,p=function(){for(var y in h)h.hasOwnProperty(y)&&(this[y]=h[y])};p.prototype={is:l.prototype.is,toString:l.prototype.toString};var m=new p;return d(m),m}),new l};function Gj(e,t){if(e=e||{},pf.call(this,Mj),t)pf.call(this,[[l6,_6(e[qd])],[u6,_6(e[Zce])],[gn,/\?1/.test(e[Xce])],[it,Lx(e[Jce])],[Hm,Lx(e[Dj])],[c6,Lx(e[efe])],[ls,Lx(e[Qce])],[Fp,_6(e[Wce])],[pk,Lx(e[Kce])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Pd&&(this[n]=e[n])}function Vj(e,t,n,r){return this.get=function(o){return o?this.data.hasOwnProperty(o)?this.data[o]:void 0:this.data},this.set=function(o,a){return this.data[o]=a,this},this.setCH=function(o){return this.uaCH=o,this},this.detectFeature=function(){if(us&&us.userAgent==this.ua)switch(this.itemType){case ss:us.brave&&typeof us.brave.isBrave==dk&&this.set(ft,"Brave");break;case ec:!this.get(et)&&Vd&&Vd[gn]&&this.set(et,gn),this.get(it)=="Macintosh"&&us&&typeof us.standalone!==Pd&&us.maxTouchPoints&&us.maxTouchPoints>2&&this.set(it,"iPad").set(et,$r);break;case pl:!this.get(ft)&&Vd&&Vd[Hm]&&this.set(ft,Vd[Hm]);break;case jm:var o=this.data,a=function(l){return o[l].getItem().detectFeature().get()};this.set(ss,a(ss)).set(df,a(df)).set(ec,a(ec)).set(Jl,a(Jl)).set(pl,a(pl))}return this},this.parseUA=function(){return this.itemType!=jm&&w6.call(this.data,this.ua,this.rgxMap),this.itemType==ss&&this.set(kx,S6(this.get(pt))),this},this.parseCH=function(){var o=this.uaCH,a=this.rgxMap;switch(this.itemType){case ss:case Jl:var l=o[u6]||o[l6],d;if(l)for(var h in l){var p=l[h].brand||l[h],m=l[h].version;this.itemType==ss&&!/not.a.brand/i.test(p)&&(!d||/Chrom/.test(d)&&p!=Uj||d==vk&&/WebView2/.test(p))&&(p=nc(p,rfe),d=this.get(ft),d&&!/Chrom/.test(d)&&/Chrom/.test(p)||this.set(ft,p).set(pt,m).set(kx,S6(m)),d=p),this.itemType==Jl&&p==Uj&&this.set(pt,m)}break;case df:var y=o[ls];y&&(y&&o[pk]=="64"&&(y+="64"),w6.call(this.data,y+";",a));break;case ec:if(o[gn]&&this.set(et,gn),o[it]&&(this.set(it,o[it]),!this.get(et)||!this.get(ct))){var x={};w6.call(x,"droid 9; "+o[it]+")",a),!this.get(et)&&x.type&&this.set(et,x.type),!this.get(ct)&&x.vendor&&this.set(ct,x.vendor)}if(o[Fp]){var S;if(typeof o[Fp]!="string")for(var w=0;!S&&w<o[Fp].length;)S=nc(o[Fp][w++],Pj);else S=nc(o[Fp],Pj);this.set(et,S)}break;case pl:var E=o[Hm];if(E){var k=o[c6];E==x6&&(k=parseInt(S6(k),10)>=13?"11":"10"),this.set(ft,E).set(pt,k)}this.get(ft)==x6&&o[it]=="Xbox"&&this.set(ft,"Xbox").set(pt,void 0);break;case jm:var T=this.data,O=function(R){return T[R].getItem().setCH(o).parseCH().get()};this.set(ss,O(ss)).set(df,O(df)).set(ec,O(ec)).set(Jl,O(Jl)).set(pl,O(pl))}return this},pf.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",ife(this,e)]]),this}function gf(e,t,n){if(typeof e===Um?(xk(e,!0)?(typeof t===Um&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===s6&&!xk(t,!0)&&(n=t,t=void 0),n&&typeof n.append===dk){var r={};n.forEach(function(h,p){r[p]=h}),n=r}if(!(this instanceof gf))return new gf(e,t,n).getResult();var o=typeof e===s6?e:n&&n[Rj]?n[Rj]:us&&us.userAgent?us.userAgent:Fm,a=new Gj(n,!0),l=t?nfe(qj,t):qj,d=function(h){return h==jm?function(){return new Vj(h,o,l,a).set("ua",o).set(ss,this.getBrowser()).set(df,this.getCPU()).set(ec,this.getDevice()).set(Jl,this.getEngine()).set(pl,this.getOS()).get()}:function(){return new Vj(h,o,l[h],a).parseUA().get()}};return pf.call(this,[["getBrowser",d(ss)],["getCPU",d(df)],["getDevice",d(ec)],["getEngine",d(Jl)],["getOS",d(pl)],["getResult",d(jm)],["getUA",function(){return o}],["setUA",function(h){return Gm(h)&&(o=h.length>a6?bk(h,a6):h),this}]]).setUA(o),this}gf.VERSION=Yce,gf.BROWSER=yk([ft,pt,kx,et]),gf.CPU=yk([ls]),gf.DEVICE=yk([it,ct,et,Tx,gn,Ki,$r,tc,Rx]),gf.ENGINE=gf.OS=yk([ft,pt]);const yl=class yl{constructor(t){ti(this,"config");ti(this,"storedData");ti(this,"deviceInfo");ti(this,"localStorageKey","_dsjfs312313kj3debales_analytics_");this.config=t,this.deviceInfo=this.getDeviceInfo(),this.localStorageKey=t.localStorageKey||this.localStorageKey+this.config.projectName,this.config.testing=t.testing||(()=>!1);const n=localStorage.getItem(this.localStorageKey);if(n)this.storedData=JSON.parse(n),this.config.debug&&console.log("Using Existing Stored data:",this.storedData);else{const r=crypto.randomUUID();this.storedData={projectName:this.config.projectName,anonId:r,distinctId:r},this.config.debug&&console.log("Using New Stored data:",this.storedData),this.updateStorage()}this.config.debug&&console.log("Analytics initialized:",this.storedData)}static init(t){yl.instance||(yl.instance=new yl(t))}static getInstance(){if(!yl.instance)throw new Error("DebalesAnalytics is not initialized. Call init() first.");return yl.instance}static async identify(t,n){return yl.getInstance().identifyInternal(t,n)}static track(t,n){yl.getInstance().trackInternal(t,n)}static getDistinctId(){return yl.getInstance().storedData.distinctId}static getAnonId(){return yl.getInstance().storedData.anonId}async identifyInternal(t,n){try{if(this.config.testing&&this.config.testing())return;let r,o,a;if(n){const{name:h,phone:p,...m}=n;r=h,o=p,a=m}const l={distinctId:this.storedData.distinctId,anonId:[this.storedData.anonId],projectName:this.config.projectName,email:t,name:r,phone:o,properties:a},d=await this.sendRequest("/api/analytic/identify",l);d&&d.success&&d.distinctId&&(this.config.debug&&console.log("identify success new distint id"),this.storedData.distinctId=d.distinctId,this.storedData.email=t,this.updateStorage(),d.isIdentified&&this.trackInternal("identify")),this.config.debug&&console.log("Identify event sent:",l)}catch(r){console.error("Failed to identify user:",r)}}trackInternal(t,n){if(this.config.testing&&this.config.testing())return;const r={projectName:this.config.projectName,distinctId:this.storedData.distinctId,anonId:this.storedData.anonId,eventName:t,osVersion:this.deviceInfo.osVersion,browserVersion:this.deviceInfo.browserVersion,operatingSystem:this.deviceInfo.os,browser:this.deviceInfo.browser,referrer:document.referrer,currentUrl:window.location.href,chatId:tr()+this.config.projectName,properties:n};this.sendRequest("/api/analytic/track",r),this.config.debug&&console.log("Track event sent:",r)}updateStorage(){localStorage.setItem(this.localStorageKey,JSON.stringify(this.storedData))}async sendRequest(t,n){try{const r=await fetch(`${co}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){console.error("Failed to send analytics data:",r)}}getDeviceInfo(){const n=new gf().getResult();return{browser:n.browser.name,os:n.os.name,browserVersion:n.browser.version,osVersion:n.os.version}}};ti(yl,"instance",null);let C6=yl;const rc=C6,ki={DEFAULT:"DEFAULT",SHOPIFY:"SHOPIFY",WOOCOMMERCE:"WOOCOMMERCE",MAGENTO:"MAGENTO",UNKNOWN:"UNKNOWN",THE_COLLECTIVE:"THE_COLLECTIVE"};class mf{static detect(){var t,n,r,o,a,l;if(typeof window<"u"&&window.Shopify!==void 0&&window.Shopify.routes!==void 0)return ki.SHOPIFY;if(typeof window<"u"&&window.location.hostname.endsWith(".thecollective.in"))return ki.THE_COLLECTIVE;if(typeof window<"u"&&document.body.classList.contains("woocommerce"))return ki.WOOCOMMERCE;if(typeof window<"u"){if(window.MAGENTO_VERSION!==void 0||window.MAGE!==void 0||window.Mage!==void 0||["page-wrapper","magento-theme","catalog-product-view","catalog-category-view"].some(y=>document.body.classList.contains(y)))return ki.MAGENTO;const h=document.getElementsByTagName("script");for(const y of Array.from(h))if(y.src.includes("mage/")||y.src.includes("magento")||(t=y.textContent)!=null&&t.includes("Mage.")||(n=y.textContent)!=null&&n.includes("require(")||(r=y.getAttribute("data-requiremodule"))!=null&&r.startsWith("mage")||(o=y.getAttribute("data-requiremodule"))!=null&&o.startsWith("Magento"))return ki.MAGENTO;if(document.cookie.split(";").some(y=>y.trim().startsWith("mage-")||y.trim().startsWith("form_key")))return ki.MAGENTO;const m=document.getElementsByTagName("meta");for(const y of Array.from(m))if((a=y.getAttribute("content"))!=null&&a.includes("Magento")||(l=y.getAttribute("name"))!=null&&l.includes("magento"))return ki.MAGENTO}return ki.UNKNOWN}}var ofe={MESSAGE:"MESSAGE"},afe={USER:"USER"};function jp(e){try{let t=e.trim();/^[a-zA-Z]+:\/\//.test(t)||(t="https://"+t);const r={protocols:["http","https"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,validate_length:!0,allow_underscores:!0,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};if(!zm.isURL(t,r))throw new Error("Invalid URL format");return{isValid:!0,url:new URL(t)}}catch(t){return{isValid:!1,error:t instanceof Error?t.message:"Unknown error"}}}const Te=e=>e==="the-collective"||e==="the-collective-prod"||e==="the-collective-test",Yj=e=>{if(!e||typeof e!="string")return!1;const t=jp(e);if(!t.isValid)return!1;const n=t.url.pathname.toLowerCase();return[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp"].some(o=>n.endsWith(o))},Sk=fe.button`
|
|
479
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var I,z=!0,L=!1;return{s:function(){T=T.call(E)},n:function(){var V=T.next();return z=V.done,V},e:function(V){L=!0,I=V},f:function(){try{z||T.return==null||T.return()}finally{if(L)throw I}}}}function y(E,k){if(E){if(typeof E=="string")return x(E,k);var T={}.toString.call(E).slice(8,-1);return T==="Object"&&E.constructor&&(T=E.constructor.name),T==="Map"||T==="Set"?Array.from(E):T==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(T)?x(E,k):void 0}}function x(E,k){(k==null||k>E.length)&&(k=E.length);for(var T=0,O=Array(k);T<k;T++)O[T]=E[T];return O}function S(E){var k=new Set(["subject","body","cc","bcc"]),T={cc:"",bcc:""},O=!1,R=E.split("&");if(R.length>4)return!1;var I=m(R),z;try{for(I.s();!(z=I.n()).done;){var L=z.value,H=L.split("="),V=l(H,2),te=V[0],F=V[1];if(te&&!k.has(te)){O=!0;break}F&&(te==="cc"||te==="bcc")&&(T[te]=F),te&&k.delete(te)}}catch(Q){I.e(Q)}finally{I.f()}return O?!1:T}function w(E,k){if((0,o.default)(E),E.indexOf("mailto:")!==0)return!1;var T=E.replace("mailto:","").split("?"),O=l(T,2),R=O[0],I=O[1],z=I===void 0?"":I;if(!R&&!z)return!0;var L=S(z);return L?"".concat(R,",").concat(L.cc,",").concat(L.bcc).split(",").every(function(H){return H=(0,n.default)(H," "),H?(0,r.default)(H,k):!0}):!1}e.exports=t.default,e.exports.default=t.default}(KA,KA.exports)),KA.exports}var ek={exports:{}},dj;function Ice(){return dj||(dj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var n=r(St());function r(h){return h&&h.__esModule?h:{default:h}}var o=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,a=/^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i,l=/^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i;function d(h){return(0,n.default)(h),o.test(h)||a.test(h)||l.test(h)}e.exports=t.default,e.exports.default=t.default}(ek,ek.exports)),ek.exports}var tk={exports:{}},hj;function $ce(){return hj||(hj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=y;var n=a(St()),r=a(Ba()),o=a(RF());function a(x){return x&&x.__esModule?x:{default:x}}var l=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,d=/^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/,h=/^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i,p=/^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i,m={checkDMS:!1};function y(x,S){if((0,n.default)(x),S=(0,r.default)(S,m),!(0,o.default)(x,","))return!1;var w=x.split(",");return w[0].startsWith("(")&&!w[1].endsWith(")")||w[1].endsWith(")")&&!w[0].startsWith("(")?!1:S.checkDMS?h.test(w[0])&&p.test(w[1]):l.test(w[0])&&d.test(w[1])}e.exports=t.default,e.exports.default=t.default}(tk,tk.exports)),tk.exports}var Lm={},pj;function Bce(){if(pj)return Lm;pj=1,Object.defineProperty(Lm,"__esModule",{value:!0}),Lm.default=d,Lm.locales=void 0;var e=t(St());function t(h){return h&&h.__esModule?h:{default:h}}var n=/^\d{3}$/,r=/^\d{4}$/,o=/^\d{5}$/,a=/^\d{6}$/,l={AD:/^AD\d{3}$/,AT:r,AU:r,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BD:/^([1-8][0-9]{3}|9[0-4][0-9]{2})$/,BE:r,BG:r,BR:/^\d{5}-?\d{3}$/,BY:/^2[1-4]\d{4}$/,CA:/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i,CH:r,CN:/^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/,CO:/^(05|08|11|13|15|17|18|19|20|23|25|27|41|44|47|50|52|54|63|66|68|70|73|76|81|85|86|88|91|94|95|97|99)(\d{4})$/,CZ:/^\d{3}\s?\d{2}$/,DE:o,DK:r,DO:o,DZ:o,EE:o,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:o,FR:/^(?:(?:0[1-9]|[1-8]\d|9[0-5])\d{3}|97[1-46]\d{2})$/,GB:/^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i,GR:/^\d{3}\s?\d{2}$/,HR:/^([1-5]\d{4}$)/,HT:/^HT\d{4}$/,HU:r,ID:o,IE:/^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i,IL:/^(\d{5}|\d{7})$/,IN:/^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,IR:/^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/,IS:n,IT:o,JP:/^\d{3}\-\d{4}$/,KE:o,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:r,LV:/^LV\-\d{4}$/,LK:o,MG:n,MX:o,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:o,NL:/^[1-9]\d{3}\s?(?!sa|sd|ss)[a-z]{2}$/i,NO:r,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:r,PK:o,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:a,RU:a,SA:o,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:a,SI:r,SK:/^\d{3}\s?\d{2}$/,TH:o,TN:r,TW:/^\d{3}(\d{2,3})?$/,UA:o,US:/^\d{5}(-\d{4})?$/,ZA:r,ZM:o};Lm.locales=Object.keys(l);function d(h,p){if((0,e.default)(h),p in l)return l[p].test(h);if(p==="any"){for(var m in l)if(l.hasOwnProperty(m)){var y=l[m];if(y.test(h))return!0}return!1}throw new Error("Invalid locale '".concat(p,"'"))}return Lm}var nk={exports:{}},gj;function Lce(){return gj||(gj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")}e.exports=t.default,e.exports.default=t.default}(nk,nk.exports)),nk.exports}var rk={exports:{}},mj;function Nce(){return mj||(mj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a){return(0,n.default)(a),a.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")}e.exports=t.default,e.exports.default=t.default}(rk,rk.exports)),rk.exports}var ik={exports:{}},ok={exports:{}},vj;function yj(){return vj||(vj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(ok,ok.exports)),ok.exports}var xj;function zce(){return xj||(xj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=o(St()),r=o(yj());function o(l){return l&&l.__esModule?l:{default:l}}function a(l,d){(0,n.default)(l);var h=d?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,r.default)(l,h)}e.exports=t.default,e.exports.default=t.default}(ik,ik.exports)),ik.exports}var ak={exports:{}},bj;function Fce(){return bj||(bj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){return(0,n.default)(a),a.replace(new RegExp("[^".concat(l,"]+"),"g"),"")}e.exports=t.default,e.exports.default=t.default}(ak,ak.exports)),ak.exports}var sk={exports:{}},_j;function Uce(){return _j||(_j=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(St());function r(a){return a&&a.__esModule?a:{default:a}}function o(a,l){(0,n.default)(a);for(var d=a.length-1;d>=0;d--)if(l.indexOf(a[d])===-1)return!1;return!0}e.exports=t.default,e.exports.default=t.default}(sk,sk.exports)),sk.exports}var lk={exports:{}},Sj;function jce(){return Sj||(Sj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=m;var n=r(Ba());function r(y){return y&&y.__esModule?y:{default:y}}var o={all_lowercase:!0,gmail_lowercase:!0,gmail_remove_dots:!0,gmail_remove_subaddress:!0,gmail_convert_googlemaildotcom:!0,outlookdotcom_lowercase:!0,outlookdotcom_remove_subaddress:!0,yahoo_lowercase:!0,yahoo_remove_subaddress:!0,yandex_lowercase:!0,yandex_convert_yandexru:!0,icloud_lowercase:!0,icloud_remove_subaddress:!0},a=["icloud.com","me.com"],l=["hotmail.at","hotmail.be","hotmail.ca","hotmail.cl","hotmail.co.il","hotmail.co.nz","hotmail.co.th","hotmail.co.uk","hotmail.com","hotmail.com.ar","hotmail.com.au","hotmail.com.br","hotmail.com.gr","hotmail.com.mx","hotmail.com.pe","hotmail.com.tr","hotmail.com.vn","hotmail.cz","hotmail.de","hotmail.dk","hotmail.es","hotmail.fr","hotmail.hu","hotmail.id","hotmail.ie","hotmail.in","hotmail.it","hotmail.jp","hotmail.kr","hotmail.lv","hotmail.my","hotmail.ph","hotmail.pt","hotmail.sa","hotmail.sg","hotmail.sk","live.be","live.co.uk","live.com","live.com.ar","live.com.mx","live.de","live.es","live.eu","live.fr","live.it","live.nl","msn.com","outlook.at","outlook.be","outlook.cl","outlook.co.il","outlook.co.nz","outlook.co.th","outlook.com","outlook.com.ar","outlook.com.au","outlook.com.br","outlook.com.gr","outlook.com.pe","outlook.com.tr","outlook.com.vn","outlook.cz","outlook.de","outlook.dk","outlook.es","outlook.fr","outlook.hu","outlook.id","outlook.ie","outlook.in","outlook.it","outlook.jp","outlook.kr","outlook.lv","outlook.my","outlook.ph","outlook.pt","outlook.sa","outlook.sg","outlook.sk","passport.com"],d=["rocketmail.com","yahoo.ca","yahoo.co.uk","yahoo.com","yahoo.de","yahoo.fr","yahoo.in","yahoo.it","ymail.com"],h=["yandex.ru","yandex.ua","yandex.kz","yandex.com","yandex.by","ya.ru"];function p(y){return y.length>1?y:""}function m(y,x){x=(0,n.default)(x,o);var S=y.split("@"),w=S.pop(),E=S.join("@"),k=[E,w];if(k[1]=k[1].toLowerCase(),k[1]==="gmail.com"||k[1]==="googlemail.com"){if(x.gmail_remove_subaddress&&(k[0]=k[0].split("+")[0]),x.gmail_remove_dots&&(k[0]=k[0].replace(/\.+/g,p)),!k[0].length)return!1;(x.all_lowercase||x.gmail_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.gmail_convert_googlemaildotcom?"gmail.com":k[1]}else if(a.indexOf(k[1])>=0){if(x.icloud_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.icloud_lowercase)&&(k[0]=k[0].toLowerCase())}else if(l.indexOf(k[1])>=0){if(x.outlookdotcom_remove_subaddress&&(k[0]=k[0].split("+")[0]),!k[0].length)return!1;(x.all_lowercase||x.outlookdotcom_lowercase)&&(k[0]=k[0].toLowerCase())}else if(d.indexOf(k[1])>=0){if(x.yahoo_remove_subaddress){var T=k[0].split("-");k[0]=T.length>1?T.slice(0,-1).join("-"):T[0]}if(!k[0].length)return!1;(x.all_lowercase||x.yahoo_lowercase)&&(k[0]=k[0].toLowerCase())}else h.indexOf(k[1])>=0?((x.all_lowercase||x.yandex_lowercase)&&(k[0]=k[0].toLowerCase()),k[1]=x.yandex_convert_yandexru?"yandex.ru":k[1]):x.all_lowercase&&(k[0]=k[0].toLowerCase());return k.join("@")}e.exports=t.default,e.exports.default=t.default}(lk,lk.exports)),lk.exports}var uk={exports:{}},wj;function Hce(){return wj||(wj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;function a(l){return(0,n.default)(l),o.test(l)}e.exports=t.default,e.exports.default=t.default}(uk,uk.exports)),uk.exports}var ck={exports:{}},Cj;function Pce(){return Cj||(Cj=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(St());function r(l){return l&&l.__esModule?l:{default:l}}var o={"cs-CZ":function(d){return/^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(d)},"de-DE":function(d){return/^((A|AA|AB|AC|AE|AH|AK|AM|AN|AΓ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BΓ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FΓ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GΓ|GP|GR|GS|GT|GΓ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LΓ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MΓ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NΓ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TΓ|ΓB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WΓ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BΓD|BUL|BΓR|BΓS|BΓZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DΓW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLΓ|FOR|FRG|FRI|FRW|FTL|FΓS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMΓ|HOG|HOH|HOL|HOM|HOR|HΓS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JΓL|KEH|KEL|KEM|KIB|KLE|KLZ|KΓN|KΓT|KΓZ|KRU|KΓN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LΓB|LOS|LRO|LSZ|LΓN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MΓB|MΓR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ΓHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLΓ|PRΓ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RΓD|RΓG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLΓ|SLZ|SMΓ|SOB|SOG|SOK|SΓM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SΓW|SWA|SZB|TBB|TDO|TET|TIR|TΓL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WΓM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(d)},"de-LI":function(d){return/^FL[- ]?\d{1,5}[UZ]?$/.test(d)},"en-IN":function(d){return/^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(d)},"en-SG":function(d){return/^[A-Z]{3}[ -]?[\d]{4}[ -]?[A-Z]{1}$/.test(d)},"es-AR":function(d){return/^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(d)},"fi-FI":function(d){return/^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(d)},"hu-HU":function(d){return/^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(d)},"pt-BR":function(d){return/^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(d)},"pt-PT":function(d){return/^(([A-Z]{2}[ -Β·]?[0-9]{2}[ -Β·]?[0-9]{2})|([0-9]{2}[ -Β·]?[A-Z]{2}[ -Β·]?[0-9]{2})|([0-9]{2}[ -Β·]?[0-9]{2}[ -Β·]?[A-Z]{2})|([A-Z]{2}[ -Β·]?[0-9]{2}[ -Β·]?[A-Z]{2}))$/.test(d)},"sq-AL":function(d){return/^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(d)},"sv-SE":function(d){return/^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZΓ
ΓΓ ]{2,7}$)/.test(d.trim())},"en-PK":function(d){return/(^[A-Z]{2}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{3}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]{4}((\s|-){0,1})[0-9]{3,4}((\s|-)[0-9]{2}){0,1}$)|(^[A-Z]((\s|-){0,1})[0-9]{4}((\s|-)[0-9]{2}){0,1}$)/.test(d.trim())}};function a(l,d){if((0,n.default)(l),d in o)return o[d](l);if(d==="any"){for(var h in o){var p=o[h];if(p(l))return!0}return!1}throw new Error("Invalid locale '".concat(d,"'"))}e.exports=t.default,e.exports.default=t.default}(ck,ck.exports)),ck.exports}var fk={exports:{}},Ej;function qce(){return Ej||(Ej=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=S;var n=o(Ba()),r=o(St());function o(w){return w&&w.__esModule?w:{default:w}}var a=/^[A-Z]$/,l=/^[a-z]$/,d=/^[0-9]$/,h=/^[-#!$@Β£%^&*()_+|~=`{}\[\]:";'<>?,.\/\\ ]$/,p={minLength:8,minLowercase:1,minUppercase:1,minNumbers:1,minSymbols:1,returnScore:!1,pointsPerUnique:1,pointsPerRepeat:.5,pointsForContainingLower:10,pointsForContainingUpper:10,pointsForContainingNumber:10,pointsForContainingSymbol:10};function m(w){var E={};return Array.from(w).forEach(function(k){var T=E[k];T?E[k]+=1:E[k]=1}),E}function y(w){var E=m(w),k={length:w.length,uniqueChars:Object.keys(E).length,uppercaseCount:0,lowercaseCount:0,numberCount:0,symbolCount:0};return Object.keys(E).forEach(function(T){a.test(T)?k.uppercaseCount+=E[T]:l.test(T)?k.lowercaseCount+=E[T]:d.test(T)?k.numberCount+=E[T]:h.test(T)&&(k.symbolCount+=E[T])}),k}function x(w,E){var k=0;return k+=w.uniqueChars*E.pointsPerUnique,k+=(w.length-w.uniqueChars)*E.pointsPerRepeat,w.lowercaseCount>0&&(k+=E.pointsForContainingLower),w.uppercaseCount>0&&(k+=E.pointsForContainingUpper),w.numberCount>0&&(k+=E.pointsForContainingNumber),w.symbolCount>0&&(k+=E.pointsForContainingSymbol),k}function S(w){var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;(0,r.default)(w);var k=y(w);return E=(0,n.default)(E||{},p),E.returnScore?x(k,E):k.length>=E.minLength&&k.lowercaseCount>=E.minLowercase&&k.uppercaseCount>=E.minUppercase&&k.numberCount>=E.minNumbers&&k.symbolCount>=E.minSymbols}e.exports=t.default,e.exports.default=t.default}(fk,fk.exports)),fk.exports}var Nm={},Aj;function Gce(){if(Aj)return Nm;Aj=1;function e(m){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(y){return typeof y}:function(y){return y&&typeof Symbol=="function"&&y.constructor===Symbol&&y!==Symbol.prototype?"symbol":typeof y},e(m)}Object.defineProperty(Nm,"__esModule",{value:!0}),Nm.default=p,Nm.vatMatchers=void 0;var t=o(St()),n=r(jU());function r(m,y){if(typeof WeakMap=="function")var x=new WeakMap,S=new WeakMap;return(r=function(E,k){if(!k&&E&&E.__esModule)return E;var T,O,R={__proto__:null,default:E};if(E===null||e(E)!="object"&&typeof E!="function")return R;if(T=k?S:x){if(T.has(E))return T.get(E);T.set(E,R)}for(var I in E)I!=="default"&&{}.hasOwnProperty.call(E,I)&&((O=(T=Object.defineProperty)&&Object.getOwnPropertyDescriptor(E,I))&&(O.get||O.set)?T(R,I,O):R[I]=E[I]);return R})(m,y)}function o(m){return m&&m.__esModule?m:{default:m}}var a=function(y){var x=y.match(/^(AU)?(\d{11})$/);if(!x)return!1;var S=[10,1,3,5,7,9,11,13,15,17,19];y=y.replace(/^AU/,"");for(var w=(parseInt(y.slice(0,1),10)-1).toString()+y.slice(1),E=0,k=0;k<11;k++)E+=S[k]*w.charAt(k);return E!==0&&E%89===0},l=function(y){var x=function(w){var E=w.pop(),k=[5,4,3,2,7,6,5,4],T=(11-w.reduce(function(O,R,I){return O+R*k[I]},0)%11)%11;return E===T};return/^(CHE[- ]?)?(\d{9}|(\d{3}\.\d{3}\.\d{3})|(\d{3} \d{3} \d{3})) ?(TVA|MWST|IVA)?$/.test(y)&&x(y.match(/\d/g).map(function(S){return+S}))},d=function(y){var x=y.match(/^(PT)?(\d{9})$/);if(!x)return!1;var S=x[2],w=11-n.reverseMultiplyAndSum(S.split("").slice(0,8).map(function(E){return parseInt(E,10)}),9)%11;return w>9?parseInt(S[8],10)===0:w===parseInt(S[8],10)},h=Nm.vatMatchers={AT:function(y){return/^(AT)?U\d{8}$/.test(y)},BE:function(y){return/^(BE)?\d{10}$/.test(y)},BG:function(y){return/^(BG)?\d{9,10}$/.test(y)},HR:function(y){return/^(HR)?\d{11}$/.test(y)},CY:function(y){return/^(CY)?\w{9}$/.test(y)},CZ:function(y){return/^(CZ)?\d{8,10}$/.test(y)},DK:function(y){return/^(DK)?\d{8}$/.test(y)},EE:function(y){return/^(EE)?\d{9}$/.test(y)},FI:function(y){return/^(FI)?\d{8}$/.test(y)},FR:function(y){return/^(FR)?\w{2}\d{9}$/.test(y)},DE:function(y){return/^(DE)?\d{9}$/.test(y)},EL:function(y){return/^(EL)?\d{9}$/.test(y)},HU:function(y){return/^(HU)?\d{8}$/.test(y)},IE:function(y){return/^(IE)?\d{7}\w{1}(W)?$/.test(y)},IT:function(y){return/^(IT)?\d{11}$/.test(y)},LV:function(y){return/^(LV)?\d{11}$/.test(y)},LT:function(y){return/^(LT)?\d{9,12}$/.test(y)},LU:function(y){return/^(LU)?\d{8}$/.test(y)},MT:function(y){return/^(MT)?\d{8}$/.test(y)},NL:function(y){return/^(NL)?\d{9}B\d{2}$/.test(y)},PL:function(y){return/^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(y)},PT:d,RO:function(y){return/^(RO)?\d{2,10}$/.test(y)},SK:function(y){return/^(SK)?\d{10}$/.test(y)},SI:function(y){return/^(SI)?\d{8}$/.test(y)},ES:function(y){return/^(ES)?\w\d{7}[A-Z]$/.test(y)},SE:function(y){return/^(SE)?\d{12}$/.test(y)},AL:function(y){return/^(AL)?\w{9}[A-Z]$/.test(y)},MK:function(y){return/^(MK)?\d{13}$/.test(y)},AU:a,BY:function(y){return/^(Π£ΠΠ )?\d{9}$/.test(y)},CA:function(y){return/^(CA)?\d{9}$/.test(y)},IS:function(y){return/^(IS)?\d{5,6}$/.test(y)},IN:function(y){return/^(IN)?\d{15}$/.test(y)},ID:function(y){return/^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(y)},IL:function(y){return/^(IL)?\d{9}$/.test(y)},KZ:function(y){return/^(KZ)?\d{12}$/.test(y)},NZ:function(y){return/^(NZ)?\d{9}$/.test(y)},NG:function(y){return/^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(y)},NO:function(y){return/^(NO)?\d{9}MVA$/.test(y)},PH:function(y){return/^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(y)},RU:function(y){return/^(RU)?(\d{10}|\d{12})$/.test(y)},SM:function(y){return/^(SM)?\d{5}$/.test(y)},SA:function(y){return/^(SA)?\d{15}$/.test(y)},RS:function(y){return/^(RS)?\d{9}$/.test(y)},CH:l,TR:function(y){return/^(TR)?\d{10}$/.test(y)},UA:function(y){return/^(UA)?\d{12}$/.test(y)},GB:function(y){return/^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(y)},UZ:function(y){return/^(UZ)?\d{9}$/.test(y)},AR:function(y){return/^(AR)?\d{11}$/.test(y)},BO:function(y){return/^(BO)?\d{7}$/.test(y)},BR:function(y){return/^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(y)},CL:function(y){return/^(CL)?\d{8}-\d{1}$/.test(y)},CO:function(y){return/^(CO)?\d{10}$/.test(y)},CR:function(y){return/^(CR)?\d{9,12}$/.test(y)},EC:function(y){return/^(EC)?\d{13}$/.test(y)},SV:function(y){return/^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(y)},GT:function(y){return/^(GT)?\d{7}-\d{1}$/.test(y)},HN:function(y){return/^(HN)?$/.test(y)},MX:function(y){return/^(MX)?\w{3,4}\d{6}\w{3}$/.test(y)},NI:function(y){return/^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(y)},PA:function(y){return/^(PA)?$/.test(y)},PY:function(y){return/^(PY)?\d{6,8}-\d{1}$/.test(y)},PE:function(y){return/^(PE)?\d{11}$/.test(y)},DO:function(y){return/^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(y)},UY:function(y){return/^(UY)?\d{12}$/.test(y)},VE:function(y){return/^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(y)}};function p(m,y){if((0,t.default)(m),(0,t.default)(y),y in h)return h[y](m);throw new Error("Invalid country code: '".concat(y,"'"))}return Nm}var kj;function Vce(){return kj||(kj=1,function(e,t){function n(ce){"@babel/helpers - typeof";return n=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Oe){return typeof Oe}:function(Oe){return Oe&&typeof Symbol=="function"&&Oe.constructor===Symbol&&Oe!==Symbol.prototype?"symbol":typeof Oe},n(ce)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=ot(r6()),o=ot(fF()),a=ot(mue()),l=ot(vue()),d=ot(yue()),h=ot(xue()),p=ot(bue()),m=ot(kF()),y=ot(_ue()),x=ot(Sue()),S=ot(FE()),w=ot(wue()),E=ot(i6()),k=ot($F()),T=ot(Cue()),O=ot(Eue()),R=ot(Aue()),I=ot(kue()),z=Qr(Tue()),L=Qr(Rue()),H=ot(Oue()),V=Qr(Due()),te=ot(Mue()),F=ot(Iue()),Q=ot($ue()),J=ot(Bue()),oe=ot(Lue()),re=ot(WF()),pe=ot(JF()),ee=ot(Nue()),se=ot(zue()),he=ot(Uue()),Ee=ot(jue()),N=ot(o6()),Y=Qr(uF()),ae=ot(Hue()),B=ot(sU()),de=ot(Pue()),Ne=ot(que()),ke=ot(Gue()),Ie=ot(Vue()),We=ot(Yue()),Et=ot(Zue()),dt=Qr(Que()),lt=ot(Kue()),rt=ot(Wue()),At=ot(Xue()),gt=ot(Jue()),bt=ot(ece()),zt=ot(tce()),ne=ot(nce()),le=ot(wF()),_e=ot(rce()),Fe=ot(ice()),be=ot(oce()),Be=ot(ace()),at=ot(sce()),mt=ot(lce()),wt=ot(IU()),ye=ot(uce()),He=ot(cce()),ut=ot(fce()),yt=ot(dce()),_t=ot(hce()),Gt=ot(pce()),Wt=ot(gce()),ln=Qr(mce()),Zt=ot(vce()),It=ot(yce()),jt=ot(xce()),vt=bce(),G=ot(_ce()),we=ot(Sce()),tt=ot(wce()),st=ot(Cce()),xt=ot(mU()),Vt=ot(Ece()),Lt=ot(Ace()),Xt=ot(kce()),Dt=ot(Tce()),mn=ot(Rce()),Pn=ot(_U()),Ui=ot(Oce()),zn=ot(Dce()),vn=ot(Mce()),Qt=ot(Ice()),Br=ot($ce()),nr=Qr(Bce()),la=ot(lj()),Ro=ot(aj()),Po=ot(cj()),pi=ot(Lce()),$t=ot(Nce()),li=ot(zce()),Mr=ot(Fce()),fo=ot(yj()),Ti=ot(Uce()),rr=ot(jce()),Xi=ot(Hce()),ho=ot(Pce()),Bn=ot(qce()),po=ot(Gce());function Qr(ce,Oe){if(typeof WeakMap=="function")var P=new WeakMap,W=new WeakMap;return(Qr=function(xe,Ae){if(!Ae&&xe&&xe.__esModule)return xe;var Ze,Tt,tn={__proto__:null,default:xe};if(xe===null||n(xe)!="object"&&typeof xe!="function")return tn;if(Ze=Ae?W:P){if(Ze.has(xe))return Ze.get(xe);Ze.set(xe,tn)}for(var an in xe)an!=="default"&&{}.hasOwnProperty.call(xe,an)&&((Tt=(Ze=Object.defineProperty)&&Object.getOwnPropertyDescriptor(xe,an))&&(Tt.get||Tt.set)?Ze(tn,an,Tt):tn[an]=xe[an]);return tn})(ce,Oe)}function ot(ce){return ce&&ce.__esModule?ce:{default:ce}}var Kr="13.15.15",Re={version:Kr,toDate:r.default,toFloat:o.default,toInt:a.default,toBoolean:l.default,equals:d.default,contains:h.default,matches:p.default,isEmail:m.default,isURL:y.default,isMACAddress:x.default,isIP:S.default,isIPRange:w.default,isFQDN:E.default,isBoolean:O.default,isIBAN:dt.default,isBIC:lt.default,isAbaRouting:I.default,isAlpha:z.default,isAlphaLocales:z.locales,isAlphanumeric:L.default,isAlphanumericLocales:L.locales,isNumeric:H.default,isPassportNumber:V.default,passportNumberLocales:V.locales,isPort:te.default,isLowercase:F.default,isUppercase:Q.default,isAscii:oe.default,isFullWidth:re.default,isHalfWidth:pe.default,isVariableWidth:ee.default,isMultibyte:se.default,isSemVer:he.default,isSurrogatePair:Ee.default,isInt:N.default,isIMEI:J.default,isFloat:Y.default,isFloatLocales:Y.locales,isDecimal:ae.default,isHexadecimal:B.default,isOctal:de.default,isDivisibleBy:Ne.default,isHexColor:ke.default,isRgbColor:Ie.default,isHSL:We.default,isISRC:Et.default,isMD5:rt.default,isHash:At.default,isJWT:gt.default,isJSON:bt.default,isEmpty:zt.default,isLength:ne.default,isLocale:R.default,isByteLength:le.default,isULID:_e.default,isUUID:Fe.default,isMongoId:be.default,isAfter:Be.default,isBefore:at.default,isIn:mt.default,isLuhnNumber:wt.default,isCreditCard:ye.default,isIdentityCard:He.default,isEAN:ut.default,isISIN:yt.default,isISBN:_t.default,isISSN:Gt.default,isMobilePhone:ln.default,isMobilePhoneLocales:ln.locales,isPostalCode:nr.default,isPostalCodeLocales:nr.locales,isEthereumAddress:Zt.default,isCurrency:It.default,isBtcAddress:jt.default,isISO6346:vt.isISO6346,isFreightContainerID:vt.isFreightContainerID,isISO6391:G.default,isISO8601:we.default,isISO15924:st.default,isRFC3339:tt.default,isISO31661Alpha2:xt.default,isISO31661Alpha3:Vt.default,isISO31661Numeric:Lt.default,isISO4217:Xt.default,isBase32:Dt.default,isBase58:mn.default,isBase64:Pn.default,isDataURI:Ui.default,isMagnetURI:zn.default,isMailtoURI:vn.default,isMimeType:Qt.default,isLatLong:Br.default,ltrim:la.default,rtrim:Ro.default,trim:Po.default,escape:pi.default,unescape:$t.default,stripLow:li.default,whitelist:Mr.default,blacklist:fo.default,isWhitelisted:Ti.default,normalizeEmail:rr.default,toString,isSlug:Xi.default,isStrongPassword:Bn.default,isTaxID:Wt.default,isDate:k.default,isTime:T.default,isLicensePlate:ho.default,isVAT:po.default,ibanLocales:dt.locales};t.default=Re,e.exports=t.default,e.exports.default=t.default}(SE,SE.exports)),SE.exports}var zm=Vce();const nn={OPEN_STATE_CHANGE:"open_state_change",CHAT_BUTTON_CLICKED:"Chat button clicked",USER_FORM_FILLED:"User form filled",ADD_BULK_ITEM:"Add bulk item",USER_FORM_CLOSE:"user_form_close",CHECKOUT_CLICKED:"Checkout Clicked",ADD_TO_CART_CLICKED:"add to cart clicked",SUGGESTED_QUESTION_CLICKED:"Suggested Question Clicked",INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED:"Initial Leading Query Suggested Question Clicked",LEADING_QUERY_CLICKED:"Leading Query Clicked",COLLECTION_VIDEO_CLICKED:"Collection Video Clicked",COLLECTION_IMAGE_CLICKED:"Collection Image Clicked",VIEW_PRODUCT_CLICKED:"view product clicked",PRODUCT_VIDEO_CLICKED:"Product Video Clicked",PRODUCT_IMAGE_CLICKED:"Product Image Clicked",SHOW_SIMILAR_CLICKED:"show similar clicked",CHAT_MESSAGE_SENT:"chat_message_sent",CHAT_MESSAGE_TYPING_STARTED:"chat_message_typing_started",CHAT_MESSAGE_TYPING_ENDED:"chat_message_typing_ended",DISCOUNT_VIEWED:"discount_viewed",SHOPIFY_LINK_CLICKED:"shopify_link_clicked"},hi={OPEN_STATE_CHANGE:"open_state_change"},Tj=Z.createContext(null),zp=()=>{const e=Z.useContext(Tj);if(!e)throw new Error("useCart must be used within a CartProvider");return e};var Yce="2.0.4",a6=500,Rj="user-agent",Fm="",Oj="?",dk="function",Pd="undefined",Um="object",s6="string",ss="browser",df="cpu",ec="device",Jl="engine",pl="os",jm="result",ft="name",et="type",ct="vendor",pt="version",ls="architecture",kx="major",it="model",Tx="console",gn="mobile",$r="tablet",Ki="smarttv",tc="wearable",hk="xr",Rx="embedded",Ox="inapp",l6="brands",Fp="formFactors",u6="fullVersionList",Hm="platform",c6="platformVersion",pk="bitness",qd="sec-ch-ua",Zce=qd+"-full-version-list",Qce=qd+"-arch",Kce=qd+"-"+pk,Wce=qd+"-form-factors",Xce=qd+"-"+gn,Jce=qd+"-"+it,Dj=qd+"-"+Hm,efe=Dj+"-version",Mj=[l6,u6,gn,it,Hm,c6,ls,Fp,pk],gk="Amazon",Pm="Apple",Ij="ASUS",$j="BlackBerry",Up="Google",Bj="Huawei",f6="Lenovo",Lj="Honor",mk="LG",d6="Microsoft",h6="Motorola",p6="Nvidia",Nj="OnePlus",g6="OPPO",Dx="Samsung",zj="Sharp",Mx="Sony",m6="Xiaomi",v6="Zebra",Fj="Chrome",Uj="Chromium",Gd="Chromecast",vk="Edge",Ix="Firefox",$x="Opera",y6="Facebook",jj="Sogou",qm="Mobile ",Bx=" Browser",x6="Windows",tfe=typeof window!==Pd,us=tfe&&window.navigator?window.navigator:void 0,Vd=us&&us.userAgentData?us.userAgentData:void 0,nfe=function(e,t){var n={},r=t;if(!xk(t)){r={};for(var o in t)for(var a in t[o])r[a]=t[o][a].concat(r[a]?r[a]:[])}for(var l in e)n[l]=r[l]&&r[l].length%2===0?r[l].concat(e[l]):e[l];return n},yk=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},b6=function(e,t){if(typeof e===Um&&e.length>0){for(var n in e)if(hf(t)==hf(e[n]))return!0;return!1}return Gm(e)?hf(t)==hf(e):!1},xk=function(e,t){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(t?xk(e[n]):!1)},Gm=function(e){return typeof e===s6},_6=function(e){if(e){for(var t=[],n=Vm(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var o=bk(n[r]).split(";v=");t[r]={brand:o[0],version:o[1]}}else t[r]=bk(n[r]);return t}},hf=function(e){return Gm(e)?e.toLowerCase():e},S6=function(e){return Gm(e)?Vm(/[^\d\.]/g,e).split(".")[0]:void 0},pf=function(e){for(var t in e){var n=e[t];typeof n==Um&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},Vm=function(e,t){return Gm(t)?t.replace(e,Fm):t},Lx=function(e){return Vm(/\\?\"/g,e)},bk=function(e,t){if(Gm(e))return e=Vm(/^\s\s*/,e),typeof t===Pd?e:e.substring(0,a6)},w6=function(e,t){if(!(!e||!t))for(var n=0,r,o,a,l,d,h;n<t.length&&!d;){var p=t[n],m=t[n+1];for(r=o=0;r<p.length&&!d&&p[r];)if(d=p[r++].exec(e),d)for(a=0;a<m.length;a++)h=d[++o],l=m[a],typeof l===Um&&l.length>0?l.length===2?typeof l[1]==dk?this[l[0]]=l[1].call(this,h):this[l[0]]=l[1]:l.length>=3&&(typeof l[1]===dk&&!(l[1].exec&&l[1].test)?l.length>3?this[l[0]]=h?l[1].apply(this,l.slice(2)):void 0:this[l[0]]=h?l[1].call(this,h,l[2]):void 0:l.length==3?this[l[0]]=h?h.replace(l[1],l[2]):void 0:l.length==4?this[l[0]]=h?l[3].call(this,h.replace(l[1],l[2])):void 0:l.length>4&&(this[l[0]]=h?l[3].apply(this,[h.replace(l[1],l[2])].concat(l.slice(4))):void 0)):this[l]=h||void 0;n+=2}},nc=function(e,t){for(var n in t)if(typeof t[n]===Um&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(b6(t[n][r],e))return n===Oj?void 0:n}else if(b6(t[n],e))return n===Oj?void 0:n;return t.hasOwnProperty("*")?t["*"]:e},Hj={ME:"4.90","NT 3.51":"3.51","NT 4.0":"4.0",2e3:["5.0","5.01"],XP:["5.1","5.2"],Vista:"6.0",7:"6.1",8:"6.2","8.1":"6.3",10:["6.4","10.0"],NT:""},Pj={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},rfe={Chrome:"Google Chrome",Edge:"Microsoft Edge","Edge WebView2":"Microsoft Edge WebView2","Chrome WebView":"Android WebView","Chrome Headless":"HeadlessChrome","Huawei Browser":"HuaweiBrowser","MIUI Browser":"Miui Browser","Opera Mobi":"OperaMobile",Yandex:"YaBrowser"},qj={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[pt,[ft,qm+"Chrome"]],[/webview.+edge\/([\w\.]+)/i],[pt,[ft,vk+" WebView"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[pt,[ft,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[ft,pt],[/opios[\/ ]+([\w\.]+)/i],[pt,[ft,$x+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[pt,[ft,$x+" GX"]],[/\bopr\/([\w\.]+)/i],[pt,[ft,$x]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[pt,[ft,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[pt,[ft,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon|otter|dooble|(?:lg |qute)browser)\/([-\w\.]+)/i,/(heytap|ovi|115|surf)browser\/([\d\.]+)/i,/(ecosia|weibo)(?:__| \w+@)([\d\.]+)/i],[ft,pt],[/quark(?:pc)?\/([-\w\.]+)/i],[pt,[ft,"Quark"]],[/\bddg\/([\w\.]+)/i],[pt,[ft,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[pt,[ft,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[pt,[ft,"WeChat"]],[/konqueror\/([\w\.]+)/i],[pt,[ft,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[pt,[ft,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[pt,[ft,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[pt,[ft,"Smart "+f6+Bx]],[/(avast|avg)\/([\w\.]+)/i],[[ft,/(.+)/,"$1 Secure"+Bx],pt],[/\bfocus\/([\w\.]+)/i],[pt,[ft,Ix+" Focus"]],[/\bopt\/([\w\.]+)/i],[pt,[ft,$x+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[pt,[ft,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[pt,[ft,"Dolphin"]],[/coast\/([\w\.]+)/i],[pt,[ft,$x+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[pt,[ft,"MIUI"+Bx]],[/fxios\/([\w\.-]+)/i],[pt,[ft,qm+Ix]],[/\bqihoobrowser\/?([\w\.]*)/i],[pt,[ft,"360"]],[/\b(qq)\/([\w\.]+)/i],[[ft,/(.+)/,"$1Browser"],pt],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[ft,/(.+)/,"$1"+Bx],pt],[/samsungbrowser\/([\w\.]+)/i],[pt,[ft,Dx+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[pt,[ft,jj+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[ft,jj+" Mobile"],pt],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[ft,pt],[/(lbbrowser|rekonq)/i],[ft],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[pt,ft],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[ft,y6],pt,[et,Ox]],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/(daum)apps[\/ ]([\w\.]+)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat|klarna)[\/ ]([-\w\.]+)/i],[ft,pt,[et,Ox]],[/\bgsa\/([\w\.]+) .*safari\//i],[pt,[ft,"GSA"],[et,Ox]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[pt,[ft,"TikTok"],[et,Ox]],[/\[(linkedin)app\]/i],[ft,[et,Ox]],[/(chromium)[\/ ]([-\w\.]+)/i],[ft,pt],[/headlesschrome(?:\/([\w\.]+)| )/i],[pt,[ft,Fj+" Headless"]],[/wv\).+chrome\/([\w\.]+).+edgw\//i],[pt,[ft,vk+" WebView2"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[ft,Fj+" WebView"],pt],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[pt,[ft,"Android"+Bx]],[/chrome\/([\w\.]+) mobile/i],[pt,[ft,qm+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[ft,pt],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[pt,[ft,qm+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[ft,qm+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[pt,ft],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[ft,[pt,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[ft,pt],[/(?:mobile|tablet);.*(firefox)\/([\w\.-]+)/i],[[ft,qm+Ix],pt],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[ft,"Netscape"],pt],[/(wolvic|librewolf)\/([\w\.]+)/i],[ft,pt],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[pt,[ft,Ix+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(amaya|dillo|doris|icab|ladybird|lynx|mosaic|netsurf|obigo|polaris|w3m|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[ft,[pt,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[ft,[pt,/[^\d\.]+./,Fm]]],cpu:[[/\b((amd|x|x86[-_]?|wow|win)64)\b/i],[[ls,"amd64"]],[/(ia32(?=;))/i,/\b((i[346]|x)86)(pc)?\b/i],[[ls,"ia32"]],[/\b(aarch64|arm(v?[89]e?l?|_?64))\b/i],[[ls,"arm64"]],[/\b(arm(v[67])?ht?n?[fl]p?)\b/i],[[ls,"armhf"]],[/( (ce|mobile); ppc;|\/[\w\.]+arm\b)/i],[[ls,"arm"]],[/((ppc|powerpc)(64)?)( mac|;|\))/i],[[ls,/ower/,Fm,hf]],[/ sun4\w[;\)]/i],[[ls,"sparc"]],[/\b(avr32|ia64(?=;)|68k(?=\))|\barm(?=v([1-7]|[5-7]1)l?|;|eabi)|(irix|mips|sparc)(64)?\b|pa-risc)/i],[[ls,hf]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[it,[ct,Dx],[et,$r]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr]|browser)[-\w]+)/i,/sec-(sgh\w+)/i],[it,[ct,Dx],[et,gn]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[it,[ct,Pm],[et,gn]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[it,[ct,Pm],[et,$r]],[/(macintosh);/i],[it,[ct,Pm]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[it,[ct,zj],[et,gn]],[/\b((?:brt|eln|hey2?|gdi|jdn)-a?[lnw]09|(?:ag[rm]3?|jdn2|kob2)-a?[lw]0[09]hn)(?: bui|\)|;)/i],[it,[ct,Lj],[et,$r]],[/honor([-\w ]+)[;\)]/i],[it,[ct,Lj],[et,gn]],[/\b((?:ag[rs][2356]?k?|bah[234]?|bg[2o]|bt[kv]|cmr|cpn|db[ry]2?|jdn2|got|kob2?k?|mon|pce|scm|sht?|[tw]gr|vrd)-[ad]?[lw][0125][09]b?|605hw|bg2-u03|(?:gem|fdr|m2|ple|t1)-[7a]0[1-4][lu]|t1-a2[13][lw]|mediapad[\w\. ]*(?= bui|\)))\b(?!.+d\/s)/i],[it,[ct,Bj],[et,$r]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[it,[ct,Bj],[et,gn]],[/oid[^\)]+; (2[\dbc]{4}(182|283|rp\w{2})[cgl]|m2105k81a?c)(?: bui|\))/i,/\b((?:red)?mi[-_ ]?pad[\w- ]*)(?: bui|\))/i],[[it,/_/g," "],[ct,m6],[et,$r]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i,/ ([\w ]+) miui\/v?\d/i],[[it,/_/g," "],[ct,m6],[et,gn]],[/droid.+; (cph2[3-6]\d[13579]|((gm|hd)19|(ac|be|in|kb)20|(d[en]|eb|le|mt)21|ne22)[0-2]\d|p[g-k]\w[1m]10)\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[it,[ct,Nj],[et,gn]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[it,[ct,g6],[et,gn]],[/\b(opd2(\d{3}a?))(?: bui|\))/i],[it,[ct,nc,{OnePlus:["203","304","403","404","413","415"],"*":g6}],[et,$r]],[/(vivo (5r?|6|8l?|go|one|s|x[il]?[2-4]?)[\w\+ ]*)(?: bui|\))/i],[it,[ct,"BLU"],[et,gn]],[/; vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[it,[ct,"Vivo"],[et,gn]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[it,[ct,"Realme"],[et,gn]],[/(ideatab[-\w ]+|602lv|d-42a|a101lv|a2109a|a3500-hv|s[56]000|pb-6505[my]|tb-?x?\d{3,4}(?:f[cu]|xu|[av])|yt\d?-[jx]?\d+[lfmx])( bui|;|\)|\/)/i,/lenovo ?(b[68]0[08]0-?[hf]?|tab(?:[\w- ]+?)|tb[\w-]{6,7})( bui|;|\)|\/)/i],[it,[ct,f6],[et,$r]],[/lenovo[-_ ]?([-\w ]+?)(?: bui|\)|\/)/i],[it,[ct,f6],[et,gn]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ]([\w\s]+)(\)| bui)/i,/((?:moto(?! 360)[-\w\(\) ]+|xt\d{3,4}[cgkosw\+]?[-\d]*|nexus 6)(?= bui|\)))/i],[it,[ct,h6],[et,gn]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[it,[ct,h6],[et,$r]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[it,[ct,mk],[et,$r]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+(?!.*(?:browser|netcast|android tv|watch|webos))(\w+)/i,/\blg-?([\d\w]+) bui/i],[it,[ct,mk],[et,gn]],[/(nokia) (t[12][01])/i],[ct,it,[et,$r]],[/(?:maemo|nokia).*(n900|lumia \d+|rm-\d+)/i,/nokia[-_ ]?(([-\w\. ]*))/i],[[it,/_/g," "],[et,gn],[ct,"Nokia"]],[/(pixel (c|tablet))\b/i],[it,[ct,Up],[et,$r]],[/droid.+;(?: google)? (g(01[13]a|020[aem]|025[jn]|1b60|1f8f|2ybb|4s1m|576d|5nz6|8hhn|8vou|a02099|c15s|d1yq|e2ae|ec77|gh2x|kv4x|p4bc|pj41|r83y|tt9q|ur25|wvk6)|pixel[\d ]*a?( pro)?( xl)?( fold)?( \(5g\))?)( bui|\))/i],[it,[ct,Up],[et,gn]],[/(google) (pixelbook( go)?)/i],[ct,it],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-\w\w\d\d)(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[it,[ct,Mx],[et,gn]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[it,"Xperia Tablet"],[ct,Mx],[et,$r]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[it,[ct,gk],[et,$r]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[it,/(.+)/g,"Fire Phone $1"],[ct,gk],[et,gn]],[/(playbook);[-\w\),; ]+(rim)/i],[it,ct,[et,$r]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[it,[ct,$j],[et,gn]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[it,[ct,Ij],[et,$r]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[it,[ct,Ij],[et,gn]],[/(nexus 9)/i],[it,[ct,"HTC"],[et,$r]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[ct,[it,/_/g," "],[et,gn]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w))?(\)| bui)/i],[it,[ct,"TCL"],[et,$r]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[it,[ct,"TCL"],[et,gn]],[/(itel) ((\w+))/i],[[ct,hf],it,[et,nc,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[it,[ct,"Acer"],[et,$r]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[it,[ct,"Meizu"],[et,gn]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[it,[ct,"Ulefone"],[et,gn]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[it,[ct,"Energizer"],[et,gn]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[it,[ct,"Cat"],[et,gn]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[it,[ct,"Smartfren"],[et,gn]],[/droid.+; (a(in)?(0(15|59|6[35])|142)p?)/i],[it,[ct,"Nothing"],[et,gn]],[/; (x67 5g|tikeasy \w+|ac[1789]\d\w+)( b|\))/i,/archos ?(5|gamepad2?|([\w ]*[t1789]|hello) ?\d+[\w ]*)( b|\))/i],[it,[ct,"Archos"],[et,$r]],[/archos ([\w ]+)( b|\))/i,/; (ac[3-6]\d\w{2,8})( b|\))/i],[it,[ct,"Archos"],[et,gn]],[/; (n159v)/i],[it,[ct,"HMD"],[et,gn]],[/(imo) (tab \w+)/i,/(infinix|tecno) (x1101b?|p904|dp(7c|8d|10a)( pro)?|p70[1-3]a?|p904|t1101)/i],[ct,it,[et,$r]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus(?! zenw)|dell|jolla|meizu|motorola|polytron|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (blu|hmd|imo|infinix|lava|oneplus|tcl)[_ ]([\w\+ ]+?)(?: bui|\)|; r)/i,/(hp) ([\w ]+\w)/i,/(microsoft); (lumia[\w ]+)/i,/(oppo) ?([\w ]+) bui/i],[ct,it,[et,gn]],[/(kobo)\s(ereader|touch)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[ct,it,[et,$r]],[/(surface duo)/i],[it,[ct,d6],[et,$r]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[it,[ct,"Fairphone"],[et,gn]],[/((?:tegranote|shield t(?!.+d tv))[\w- ]*?)(?: b|\))/i],[it,[ct,p6],[et,$r]],[/(sprint) (\w+)/i],[ct,it,[et,gn]],[/(kin\.[onetw]{3})/i],[[it,/\./g," "],[ct,d6],[et,gn]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[it,[ct,v6],[et,$r]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[it,[ct,v6],[et,gn]],[/smart-tv.+(samsung)/i],[ct,[et,Ki]],[/hbbtv.+maple;(\d+)/i],[[it,/^/,"SmartTV"],[ct,Dx],[et,Ki]],[/(vizio)(?: |.+model\/)(\w+-\w+)/i,/tcast.+(lg)e?. ([-\w]+)/i],[ct,it,[et,Ki]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[ct,mk],[et,Ki]],[/(apple) ?tv/i],[ct,[it,Pm+" TV"],[et,Ki]],[/crkey.*devicetype\/chromecast/i],[[it,Gd+" Third Generation"],[ct,Up],[et,Ki]],[/crkey.*devicetype\/([^/]*)/i],[[it,/^/,"Chromecast "],[ct,Up],[et,Ki]],[/fuchsia.*crkey/i],[[it,Gd+" Nest Hub"],[ct,Up],[et,Ki]],[/crkey/i],[[it,Gd],[ct,Up],[et,Ki]],[/(portaltv)/i],[it,[ct,y6],[et,Ki]],[/droid.+aft(\w+)( bui|\))/i],[it,[ct,gk],[et,Ki]],[/(shield \w+ tv)/i],[it,[ct,p6],[et,Ki]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[it,[ct,zj],[et,Ki]],[/(bravia[\w ]+)( bui|\))/i],[it,[ct,Mx],[et,Ki]],[/(mi(tv|box)-?\w+) bui/i],[it,[ct,m6],[et,Ki]],[/Hbbtv.*(technisat) (.*);/i],[ct,it,[et,Ki]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[ct,/.+\/(\w+)/,"$1",nc,{LG:"lge"}],[it,bk],[et,Ki]],[/droid.+; ([\w- ]+) (?:android tv|smart[- ]?tv)/i],[it,[et,Ki]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:|large screen[\w ]+safari)\b/i],[[et,Ki]],[/(playstation \w+)/i],[it,[ct,Mx],[et,Tx]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[it,[ct,d6],[et,Tx]],[/(ouya)/i,/(nintendo) (\w+)/i,/(retroid) (pocket ([^\)]+))/i],[ct,it,[et,Tx]],[/droid.+; (shield)( bui|\))/i],[it,[ct,p6],[et,Tx]],[/\b(sm-[lr]\d\d[0156][fnuw]?s?|gear live)\b/i],[it,[ct,Dx],[et,tc]],[/((pebble))app/i,/(asus|google|lg|oppo) ((pixel |zen)?watch[\w ]*)( bui|\))/i],[ct,it,[et,tc]],[/(ow(?:19|20)?we?[1-3]{1,3})/i],[it,[ct,g6],[et,tc]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[it,[ct,Pm],[et,tc]],[/(opwwe\d{3})/i],[it,[ct,Nj],[et,tc]],[/(moto 360)/i],[it,[ct,h6],[et,tc]],[/(smartwatch 3)/i],[it,[ct,Mx],[et,tc]],[/(g watch r)/i],[it,[ct,mk],[et,tc]],[/droid.+; (wt63?0{2,3})\)/i],[it,[ct,v6],[et,tc]],[/droid.+; (glass) \d/i],[it,[ct,Up],[et,hk]],[/(pico) (4|neo3(?: link|pro)?)/i],[ct,it,[et,hk]],[/(quest( \d| pro)?s?).+vr/i],[it,[ct,y6],[et,hk]],[/mobile vr; rv.+firefox/i],[[et,hk]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[ct,[et,Rx]],[/(aeobc)\b/i],[it,[ct,gk],[et,Rx]],[/(homepod).+mac os/i],[it,[ct,Pm],[et,Rx]],[/windows iot/i],[[et,Rx]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+?(mobile|vr|\d) safari/i],[it,[et,nc,{mobile:"Mobile",xr:"VR","*":$r}]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[et,$r]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[et,gn]],[/droid .+?; ([\w\. -]+)( bui|\))/i],[it,[ct,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[pt,[ft,vk+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[ft,pt],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[pt,[ft,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[ft,pt],[/ladybird\//i],[[ft,"LibWeb"]],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[pt,ft]],os:[[/(windows nt) (6\.[23]); arm/i],[[ft,/N/,"R"],[pt,nc,Hj]],[/(windows (?:phone|mobile|iot))(?: os)?[\/ ]?([\d\.]*( se)?)/i,/(windows)[\/ ](1[01]|2000|3\.1|7|8(\.1)?|9[58]|me|server 20\d\d( r2)?|vista|xp)/i],[ft,pt],[/windows nt ?([\d\.\)]*)(?!.+xbox)/i,/\bwin(?=3| ?9|n)(?:nt| 9x )?([\d\.;]*)/i],[[pt,/(;|\))/g,"",nc,Hj],[ft,x6]],[/(windows ce)\/?([\d\.]*)/i],[ft,pt],[/[adehimnop]{4,7}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[pt,/_/g,"."],[ft,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+(haiku|morphos))/i],[[ft,"macOS"],[pt,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[pt,[ft,Gd+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[pt,[ft,Gd+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[pt,[ft,Gd+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[pt,[ft,Gd+" Linux"]],[/crkey\/([\d\.]+)/i],[pt,[ft,Gd]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[pt,ft],[/(ubuntu) ([\w\.]+) like android/i],[[ft,/(.+)/,"$1 Touch"],pt],[/(harmonyos)[\/ ]?([\d\.]*)/i,/(android|bada|blackberry|kaios|maemo|meego|openharmony|qnx|rim tablet os|sailfish|series40|symbian|tizen)\w*[-\/\.; ]?([\d\.]*)/i],[ft,pt],[/\(bb(10);/i],[pt,[ft,$j]],[/(?:symbian ?os|symbos|s60(?=;)|series ?60)[-\/ ]?([\w\.]*)/i],[pt,[ft,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[pt,[ft,Ix+" OS"]],[/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i,/webos(?:[ \/]?|\.tv-20(?=2[2-9]))(\d[\d\.]*)/i],[pt,[ft,"webOS"]],[/web0s;.+?(?:chr[o0]me|safari)\/(\d+)/i],[[pt,nc,{25:"120",24:"108",23:"94",22:"87",6:"79",5:"68",4:"53",3:"38",2:"538",1:"537","*":"TV"}],[ft,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[pt,[ft,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[ft,"Chrome OS"],pt],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/linux.+(mint)[\/\(\) ]?([\w\.]*)/i,/(mageia|vectorlinux|fuchsia|arcaos|arch(?= ?linux))[;l ]([\d\.]*)/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire|knoppix)(?: gnu[\/ ]linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/\b(aix)[; ]([1-9\.]{0,4})/i,/(hurd|linux|morphos)(?: (?:arm|x86|ppc)\w*| ?)([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) ?(r\d)?/i],[ft,pt],[/(sunos) ?([\d\.]*)/i],[[ft,"Solaris"],pt],[/\b(beos|os\/2|amigaos|openvms|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[ft,pt]]},_k=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return pf.call(e.init,[[ss,[ft,pt,kx,et]],[df,[ls]],[ec,[et,it,ct]],[Jl,[ft,pt]],[pl,[ft,pt]]]),pf.call(e.isIgnore,[[ss,[pt,kx]],[Jl,[pt]],[pl,[pt]]]),pf.call(e.isIgnoreRgx,[[ss,/ ?browser$/i],[pl,/ ?os$/i]]),pf.call(e.toString,[[ss,[ft,pt]],[df,[ls]],[ec,[ct,it]],[Jl,[ft,pt]],[pl,[ft,pt]]]),e}(),ife=function(e,t){var n=_k.init[t],r=_k.isIgnore[t]||0,o=_k.isIgnoreRgx[t]||0,a=_k.toString[t]||0;function l(){pf.call(this,n)}return l.prototype.getItem=function(){return e},l.prototype.withClientHints=function(){return Vd?Vd.getHighEntropyValues(Mj).then(function(d){return e.setCH(new Gj(d,!1)).parseCH().get()}):e.parseCH().get()},l.prototype.withFeatureCheck=function(){return e.detectFeature().get()},t!=jm&&(l.prototype.is=function(d){var h=!1;for(var p in this)if(this.hasOwnProperty(p)&&!b6(r,p)&&hf(o?Vm(o,this[p]):this[p])==hf(o?Vm(o,d):d)){if(h=!0,d!=Pd)break}else if(d==Pd&&h){h=!h;break}return h},l.prototype.toString=function(){var d=Fm;for(var h in a)typeof this[a[h]]!==Pd&&(d+=(d?" ":Fm)+this[a[h]]);return d||Pd}),Vd||(l.prototype.then=function(d){var h=this,p=function(){for(var y in h)h.hasOwnProperty(y)&&(this[y]=h[y])};p.prototype={is:l.prototype.is,toString:l.prototype.toString};var m=new p;return d(m),m}),new l};function Gj(e,t){if(e=e||{},pf.call(this,Mj),t)pf.call(this,[[l6,_6(e[qd])],[u6,_6(e[Zce])],[gn,/\?1/.test(e[Xce])],[it,Lx(e[Jce])],[Hm,Lx(e[Dj])],[c6,Lx(e[efe])],[ls,Lx(e[Qce])],[Fp,_6(e[Wce])],[pk,Lx(e[Kce])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==Pd&&(this[n]=e[n])}function Vj(e,t,n,r){return this.get=function(o){return o?this.data.hasOwnProperty(o)?this.data[o]:void 0:this.data},this.set=function(o,a){return this.data[o]=a,this},this.setCH=function(o){return this.uaCH=o,this},this.detectFeature=function(){if(us&&us.userAgent==this.ua)switch(this.itemType){case ss:us.brave&&typeof us.brave.isBrave==dk&&this.set(ft,"Brave");break;case ec:!this.get(et)&&Vd&&Vd[gn]&&this.set(et,gn),this.get(it)=="Macintosh"&&us&&typeof us.standalone!==Pd&&us.maxTouchPoints&&us.maxTouchPoints>2&&this.set(it,"iPad").set(et,$r);break;case pl:!this.get(ft)&&Vd&&Vd[Hm]&&this.set(ft,Vd[Hm]);break;case jm:var o=this.data,a=function(l){return o[l].getItem().detectFeature().get()};this.set(ss,a(ss)).set(df,a(df)).set(ec,a(ec)).set(Jl,a(Jl)).set(pl,a(pl))}return this},this.parseUA=function(){return this.itemType!=jm&&w6.call(this.data,this.ua,this.rgxMap),this.itemType==ss&&this.set(kx,S6(this.get(pt))),this},this.parseCH=function(){var o=this.uaCH,a=this.rgxMap;switch(this.itemType){case ss:case Jl:var l=o[u6]||o[l6],d;if(l)for(var h in l){var p=l[h].brand||l[h],m=l[h].version;this.itemType==ss&&!/not.a.brand/i.test(p)&&(!d||/Chrom/.test(d)&&p!=Uj||d==vk&&/WebView2/.test(p))&&(p=nc(p,rfe),d=this.get(ft),d&&!/Chrom/.test(d)&&/Chrom/.test(p)||this.set(ft,p).set(pt,m).set(kx,S6(m)),d=p),this.itemType==Jl&&p==Uj&&this.set(pt,m)}break;case df:var y=o[ls];y&&(y&&o[pk]=="64"&&(y+="64"),w6.call(this.data,y+";",a));break;case ec:if(o[gn]&&this.set(et,gn),o[it]&&(this.set(it,o[it]),!this.get(et)||!this.get(ct))){var x={};w6.call(x,"droid 9; "+o[it]+")",a),!this.get(et)&&x.type&&this.set(et,x.type),!this.get(ct)&&x.vendor&&this.set(ct,x.vendor)}if(o[Fp]){var S;if(typeof o[Fp]!="string")for(var w=0;!S&&w<o[Fp].length;)S=nc(o[Fp][w++],Pj);else S=nc(o[Fp],Pj);this.set(et,S)}break;case pl:var E=o[Hm];if(E){var k=o[c6];E==x6&&(k=parseInt(S6(k),10)>=13?"11":"10"),this.set(ft,E).set(pt,k)}this.get(ft)==x6&&o[it]=="Xbox"&&this.set(ft,"Xbox").set(pt,void 0);break;case jm:var T=this.data,O=function(R){return T[R].getItem().setCH(o).parseCH().get()};this.set(ss,O(ss)).set(df,O(df)).set(ec,O(ec)).set(Jl,O(Jl)).set(pl,O(pl))}return this},pf.call(this,[["itemType",e],["ua",t],["uaCH",r],["rgxMap",n],["data",ife(this,e)]]),this}function gf(e,t,n){if(typeof e===Um?(xk(e,!0)?(typeof t===Um&&(n=t),t=e):(n=e,t=void 0),e=void 0):typeof e===s6&&!xk(t,!0)&&(n=t,t=void 0),n&&typeof n.append===dk){var r={};n.forEach(function(h,p){r[p]=h}),n=r}if(!(this instanceof gf))return new gf(e,t,n).getResult();var o=typeof e===s6?e:n&&n[Rj]?n[Rj]:us&&us.userAgent?us.userAgent:Fm,a=new Gj(n,!0),l=t?nfe(qj,t):qj,d=function(h){return h==jm?function(){return new Vj(h,o,l,a).set("ua",o).set(ss,this.getBrowser()).set(df,this.getCPU()).set(ec,this.getDevice()).set(Jl,this.getEngine()).set(pl,this.getOS()).get()}:function(){return new Vj(h,o,l[h],a).parseUA().get()}};return pf.call(this,[["getBrowser",d(ss)],["getCPU",d(df)],["getDevice",d(ec)],["getEngine",d(Jl)],["getOS",d(pl)],["getResult",d(jm)],["getUA",function(){return o}],["setUA",function(h){return Gm(h)&&(o=h.length>a6?bk(h,a6):h),this}]]).setUA(o),this}gf.VERSION=Yce,gf.BROWSER=yk([ft,pt,kx,et]),gf.CPU=yk([ls]),gf.DEVICE=yk([it,ct,et,Tx,gn,Ki,$r,tc,Rx]),gf.ENGINE=gf.OS=yk([ft,pt]);const yl=class yl{constructor(t){ti(this,"config");ti(this,"storedData");ti(this,"deviceInfo");ti(this,"localStorageKey","_dsjfs312313kj3debales_analytics_");this.config=t,this.deviceInfo=this.getDeviceInfo(),this.localStorageKey=t.localStorageKey||this.localStorageKey+this.config.projectName,this.config.testing=t.testing||(()=>!1);const n=localStorage.getItem(this.localStorageKey);if(n)this.storedData=JSON.parse(n),this.config.debug&&console.log("Using Existing Stored data:",this.storedData);else{const r=crypto.randomUUID();this.storedData={projectName:this.config.projectName,anonId:r,distinctId:r},this.config.debug&&console.log("Using New Stored data:",this.storedData),this.updateStorage()}this.config.debug&&console.log("Analytics initialized:",this.storedData)}static init(t){yl.instance||(yl.instance=new yl(t))}static getInstance(){if(!yl.instance)throw new Error("DebalesAnalytics is not initialized. Call init() first.");return yl.instance}static async identify(t,n){return yl.getInstance().identifyInternal(t,n)}static track(t,n){yl.getInstance().trackInternal(t,n)}static getDistinctId(){return yl.getInstance().storedData.distinctId}static getAnonId(){return yl.getInstance().storedData.anonId}async identifyInternal(t,n){try{if(this.config.testing&&this.config.testing())return;let r,o,a;if(n){const{name:h,phone:p,...m}=n;r=h,o=p,a=m}const l={distinctId:this.storedData.distinctId,anonId:[this.storedData.anonId],projectName:this.config.projectName,email:t,name:r,phone:o,properties:a},d=await this.sendRequest("/api/analytic/identify",l);d&&d.success&&d.distinctId&&(this.config.debug&&console.log("identify success new distint id"),this.storedData.distinctId=d.distinctId,this.storedData.email=t,this.updateStorage(),d.isIdentified&&this.trackInternal("identify")),this.config.debug&&console.log("Identify event sent:",l)}catch(r){console.error("Failed to identify user:",r)}}trackInternal(t,n){if(this.config.testing&&this.config.testing())return;const r={projectName:this.config.projectName,distinctId:this.storedData.distinctId,anonId:this.storedData.anonId,eventName:t,osVersion:this.deviceInfo.osVersion,browserVersion:this.deviceInfo.browserVersion,operatingSystem:this.deviceInfo.os,browser:this.deviceInfo.browser,referrer:document.referrer,currentUrl:window.location.href,chatId:tr()+this.config.projectName,properties:n};this.sendRequest("/api/analytic/track",r),this.config.debug&&console.log("Track event sent:",r)}updateStorage(){localStorage.setItem(this.localStorageKey,JSON.stringify(this.storedData))}async sendRequest(t,n){try{const r=await fetch(`${co}${t}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);return await r.json()}catch(r){console.error("Failed to send analytics data:",r)}}getDeviceInfo(){const n=new gf().getResult();return{browser:n.browser.name,os:n.os.name,browserVersion:n.browser.version,osVersion:n.os.version}}};ti(yl,"instance",null);let C6=yl;const rc=C6,ki={DEFAULT:"DEFAULT",SHOPIFY:"SHOPIFY",WOOCOMMERCE:"WOOCOMMERCE",MAGENTO:"MAGENTO",UNKNOWN:"UNKNOWN",THE_COLLECTIVE:"THE_COLLECTIVE"};class mf{static detect(){var t,n,r,o,a,l;if(typeof window<"u"&&window.Shopify!==void 0&&window.Shopify.routes!==void 0)return ki.SHOPIFY;if(typeof window<"u"&&window.location.hostname.endsWith(".thecollective.in"))return ki.THE_COLLECTIVE;if(typeof window<"u"&&document.body.classList.contains("woocommerce"))return ki.WOOCOMMERCE;if(typeof window<"u"){if(window.MAGENTO_VERSION!==void 0||window.MAGE!==void 0||window.Mage!==void 0||["page-wrapper","magento-theme","catalog-product-view","catalog-category-view"].some(y=>document.body.classList.contains(y)))return ki.MAGENTO;const h=document.getElementsByTagName("script");for(const y of Array.from(h))if(y.src.includes("mage/")||y.src.includes("magento")||(t=y.textContent)!=null&&t.includes("Mage.")||(n=y.textContent)!=null&&n.includes("require(")||(r=y.getAttribute("data-requiremodule"))!=null&&r.startsWith("mage")||(o=y.getAttribute("data-requiremodule"))!=null&&o.startsWith("Magento"))return ki.MAGENTO;if(document.cookie.split(";").some(y=>y.trim().startsWith("mage-")||y.trim().startsWith("form_key")))return ki.MAGENTO;const m=document.getElementsByTagName("meta");for(const y of Array.from(m))if((a=y.getAttribute("content"))!=null&&a.includes("Magento")||(l=y.getAttribute("name"))!=null&&l.includes("magento"))return ki.MAGENTO}return ki.UNKNOWN}}var ofe={MESSAGE:"MESSAGE"},afe={USER:"USER"};function jp(e){try{let t=e.trim();/^[a-zA-Z]+:\/\//.test(t)||(t="https://"+t);const r={protocols:["http","https"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,validate_length:!0,allow_underscores:!0,allow_trailing_dot:!1,allow_protocol_relative_urls:!1};if(!zm.isURL(t,r))throw new Error("Invalid URL format");return{isValid:!0,url:new URL(t)}}catch(t){return{isValid:!1,error:t instanceof Error?t.message:"Unknown error"}}}const Te=e=>e==="the-collective"||e==="the-collective-prod"||e==="the-collective-test",Yj=e=>{if(!e||typeof e!="string")return!1;const t=jp(e);if(!t.isValid)return!1;const n=t.url.pathname.toLowerCase();return[".mp4",".webm",".ogg",".avi",".mov",".wmv",".flv",".mkv",".m4v",".3gp"].some(o=>n.endsWith(o))},Sk=fe.button`
|
|
480
480
|
width: max-content;
|
|
481
481
|
cursor: pointer;
|
|
482
482
|
border-radius: 50px !important;
|
|
@@ -2861,11 +2861,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2861
2861
|
opacity: 0;
|
|
2862
2862
|
z-index: 1;
|
|
2863
2863
|
bottom: 0;
|
|
2864
|
-
`,vP=({botId:e})=>{var ot,Kr;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,setSuggestedQuestions:E,showUserInfoModel:k,setShowUserInfoModel:T,isUserInfoNeeded:O,setPendingQuestion:R}=gl(),{cart:I,addToCart:z,generateCartUrl:L,addCartAttributes:H,setShowCartSummery:V,showCartSummery:te}=zp(),F=_d("use-chatbot-icon-size"),Q=mf.detect(),J=t==null?void 0:t.isLeft,oe=Ek(),re=t==null?void 0:t.heightOption,[pe,ee]=Z.useState(!1),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(""),[Y,ae]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let Oe=jo();if(!Oe&&window.Thinkific){const ce=window.Thinkific.current_user;ce&&(Oe={name:ce.full_name,email:ce.email},ff(Oe))}rc.init({projectName:e,debug:!1,testing:Cx}),Oe&&Oe.email&&(window.DebalesChat.identify(Oe.email,{name:Oe.name,phone:Oe.phone,email:Oe.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:Oe.email,first_name:Oe.name,phone:Oe.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const B=Z.useRef(null),de=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[Ne,ke]=Z.useState(()=>{try{const Oe=sessionStorage.getItem(de);return Oe?new Set(JSON.parse(Oe)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(de,JSON.stringify(Array.from(Ne)))}catch(Oe){console.error("Failed to save to sessionStorage:",Oe)}},[Ne]);const Ie=Z.useCallback((Oe,ce)=>{Oe?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:Oe,source:ce,projectId:e}})),setTimeout(()=>{he(!0)},50)):(he(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:Oe,source:ce,projectId:e}})))},[]);Z.useEffect(()=>{const Oe=ce=>{ee(ce.detail.isOpen),ce.detail.isOpen&&setTimeout(()=>he(!0),50),window.DebalesChat.isOpen=ce.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:ce.detail.isOpen,source:ce.detail.source})};return window.addEventListener(hi.OPEN_STATE_CHANGE,Oe),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,Oe)}},[]);const[We,Et]=Z.useState(!1),[dt,lt]=Z.useState(()=>{const Oe=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),ce=sessionStorage.getItem(Oe);return ce?JSON.parse(ce):[]});Z.useEffect(()=>{const Oe=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(Oe,JSON.stringify(dt))},[dt,e]);const[rt,At]=Z.useState(!1),[gt,bt]=Z.useState({name:"",email:"",message:""}),[zt,ne]=Z.useState([]),[le,_e]=Z.useState({name:"",email:"",message:""}),[Fe,be]=Z.useState(null),[Be,at]=Z.useState(!1),mt=Jc("exit_model"),[wt,ye]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[He,ut]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1}),[yt,_t]=Z.useState(!1),[Gt,Wt]=Z.useState(!0),[ln,Zt]=Z.useState(!1),[It,jt]=Z.useState(!1),[vt,G]=Z.useState(!1),[we,tt]=Z.useState(!1),st=2e3,xt=Z.useCallback(()=>{const Oe=B.current;if(!Oe){G(!1),tt(!1),Wt(!0);return}if(Te(e)){G(!1);return}const ce=Oe.scrollTop,Re=Oe.scrollHeight,P=Oe.clientHeight,W=Re>P,ue=1,xe=ce<=ue,Ae=ce+P>=Re-ue;W?(G(!xe),tt(!Ae),Wt(Ae)):(G(!1),tt(!1),Wt(!0))},[B,G,tt,Wt]);Z.useEffect(()=>{const Oe=B.current;if(pe&&Oe){xt(),Oe.addEventListener("scroll",xt);const ce=new ResizeObserver(xt);return ce.observe(Oe),()=>{Oe.removeEventListener("scroll",xt),ce.unobserve(Oe)}}else pe||(G(!1),tt(!1),Wt(!0))},[pe,h,yt,xt]),Z.useEffect(()=>{var Oe,ce,Re,P,W,ue;if(h.length>0&&!p){const xe=h[h.length-1],Ae=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),Ze=xe.isBot&&xe.conversationId===l&&xe.conversationId!==Ae,Tt=(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0&&xe.conversationId===l;if(Ze){_t(!0),ut(en=>({...en,initialMessage:!0})),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),xe.conversationId||""),ye({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const tn=2e3;let an=tn;const Sn=[{type:"collections",condition:((Oe=xe.collections)==null?void 0:Oe.length)&&((ce=xe.collections)==null?void 0:ce.length)>0},{type:"products",condition:((Re=xe.products)==null?void 0:Re.length)&&((P=xe.products)==null?void 0:P.length)>0},{type:"leadingQueries",condition:h.length>=1&&((W=xe.leading_queries)==null?void 0:W.length)&&((ue=xe.leading_queries)==null?void 0:ue.length)>0},{type:"cartSummary",condition:(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0},{type:"bulkItems",condition:(dt==null?void 0:dt.length)>0}].filter(en=>en.condition);if(Sn.length===0){_t(!1),ut(en=>({...en,initialMessage:!1,leadingQueries:!1}));return}Sn.forEach(({type:en},Wr)=>{setTimeout(()=>{if(ut(cr=>({...cr,[en]:!0})),ye(cr=>({...cr,[en]:!0})),Gt&&B.current){const cr=B.current;cr.scrollHeight-cr.scrollTop<=cr.clientHeight&&$a(B)}Wr===Sn.length-1&&(console.log("setting isLoadingComponents to false"),_t(!1))},an),an+=tn})}else Tt&&ye(tn=>({...tn,cartSummary:!0}))}},[h,p,l,I==null?void 0:I.itemCount,dt==null?void 0:dt.length,Gt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const Oe=B.current;Oe&&Gt&&Oe.scrollHeight-Oe.scrollTop<=Oe.clientHeight+100&&setTimeout(()=>$a(B),100)}},[h.length,o,Gt]),Z.useEffect(()=>{const Oe=document.querySelector('meta[name="viewport"]'),ce=Oe==null?void 0:Oe.content;if(pe){let Re=Oe;const P=window.matchMedia("(max-width: 768px)").matches;Re?Re.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(Re=document.createElement("meta"),Re.name="viewport",Re.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(Re)),P&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const W=Re;return()=>{ce&&W&&(W.content=ce),P&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[pe,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{const Oe=setTimeout(()=>{Et(!0)},1e3);return()=>clearTimeout(Oe)},[]),Z.useEffect(()=>{if(pe&&h.length>0&&!o){const Oe=B.current;Oe&&setTimeout(()=>{Oe.scrollTop=Oe.scrollHeight},100)}},[pe,h.length,o]),Z.useEffect(()=>{I!=null&&I.total&&!o&&setTimeout(()=>$a(B),100)},[I==null?void 0:I.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const Vt=Z.useRef(window.location.pathname.split("?")[0]),Lt=Z.useRef(w),Xt=Jc("acquisition_agent");Z.useEffect(()=>{Lt.current=w},[w]);const Dt=Z.useCallback(async Oe=>{if(!Xt||(t==null?void 0:t.show_bot)===!1){console.warn("Acquisition agent is disabled");return}console.log("Calling acquisition API for path:",Oe);try{const ce=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(ce.ok){const Re=await ce.json();if(Re.Popup_Message){const P=[...Lt.current];P.push({question:Re.Popup_Message,answer:"",path:Oe,nameSpace:e,type:"dynamic",Follow_up_Question:Re.Follow_up_Question}),E(P)}}}catch(ce){console.error("Error fetching acquisition data:",ce)}},[e,E,Xt,t==null?void 0:t.show_bot]),mn=Z.useCallback(()=>{const Oe=window.location.pathname.split("?")[0],ce=Vt.current;console.log("URL change detected:",{currentPath:ce,newPath:Oe}),Oe!==ce&&(console.log("Path changed, calling acquisition API"),Vt.current=Oe,Dt(Oe))},[Dt]);Z.useEffect(()=>{if(!Xt||(t==null?void 0:t.show_bot)===!1){console.warn("Acquisition agent is disabled");return}console.log("Setting up acquisition agent");const Oe=window.location.pathname.split("?")[0];Dt(Oe);const ce=()=>{mn()},Re=history.pushState,P=history.replaceState;return history.pushState=function(...W){Re.apply(this,W),setTimeout(mn,0)},history.replaceState=function(...W){P.apply(this,W),setTimeout(mn,0)},window.addEventListener("popstate",ce),()=>{window.removeEventListener("popstate",ce),history.pushState=Re,history.replaceState=P}},[Xt,t==null?void 0:t.show_bot,Dt,mn]);const[Pn,Ui]=Z.useState(!1),[zn,vn]=Z.useState(!1),[Qt,Br]=Z.useState(null),nr=async Oe=>{const ce=tr();if(he(!1),Oe&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:ce,userRating:Oe,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(Re){console.error("Error submitting rating:",Re)}setTimeout(()=>{vn(!1),Ie(!1,"close_button_clicked")},1e3)},la=Oe=>{m(!0),dt.forEach(Re=>{console.debug("handleBulkItemsAddition : Adding item to cart:",Re),z(Re.id,Re.quantity)}),V(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:dt,message:Oe});const ce=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:Oe,isBot:!0}];y(ce),x(ce),d(Oe),lt([]),m(!1)},Ro=()=>{var Oe;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((Oe=window.shiprocketCheckoutEvents)!=null&&Oe.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1},Po=async Oe=>{Oe.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(I==null?void 0:I.total),cart:I}),H({dbls_method:"checkout_clicked"}),Ro()&&Ie(!1,"checkout_clicked")},[pi,$t]=Z.useState([]);Z.useEffect(()=>{const Oe=hue(xE(w));$t(Oe)},[w]);const li=Z.useMemo(()=>pi.map(Oe=>{if(Array.isArray(Oe)){const ce=Oe.filter(P=>!Ne.has(P.question));if(ce.length===0)return null;const Re={isHighlighted:Oe[0].isHighlighted,enable:Oe[0].enable,type:Oe[0].type};return ce.map(P=>({...P,...Re}))}else return Ne.has(Oe.question)?null:Oe}).filter(Boolean),[pi,Ne]);Z.useEffect(()=>{const Oe=P=>{const W=P.detail.formId;switch(P.detail.type){case"open":case"embedOpen":setTimeout(()=>{const xe=ce(W);xe&&N(xe)},800);break;case"close":Ee&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{Ie(!0,"klaviyo_form_closed"),ae(W),r({message:Ee,fromKlaviyo:!0})},1e4);break}},ce=P=>{const W=document.querySelector(`[data-testid="klaviyo-form-${P}"]`);if(console.log(`formElement text ${P} =>`,W==null?void 0:W.innerText,W==null?void 0:W.textContent),W instanceof HTMLElement){const ue=W.innerText||W.textContent;if(ue)return console.log("Found form text:",ue),`=> Klaviyo form content:
|
|
2864
|
+
`,vP=({botId:e})=>{var ot,Kr;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,setSuggestedQuestions:E,showUserInfoModel:k,setShowUserInfoModel:T,isUserInfoNeeded:O,setPendingQuestion:R}=gl(),{cart:I,addToCart:z,generateCartUrl:L,addCartAttributes:H,setShowCartSummery:V,showCartSummery:te}=zp(),F=_d("use-chatbot-icon-size"),Q=mf.detect(),J=t==null?void 0:t.isLeft,oe=Ek(),re=t==null?void 0:t.heightOption,[pe,ee]=Z.useState(!1),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(""),[Y,ae]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let Re=jo();if(!Re&&window.Thinkific){const ce=window.Thinkific.current_user;ce&&(Re={name:ce.full_name,email:ce.email},ff(Re))}rc.init({projectName:e,debug:!1,testing:Cx}),Re&&Re.email&&(window.DebalesChat.identify(Re.email,{name:Re.name,phone:Re.phone,email:Re.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:Re.email,first_name:Re.name,phone:Re.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const B=Z.useRef(null),de=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[Ne,ke]=Z.useState(()=>{try{const Re=sessionStorage.getItem(de);return Re?new Set(JSON.parse(Re)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(de,JSON.stringify(Array.from(Ne)))}catch(Re){console.error("Failed to save to sessionStorage:",Re)}},[Ne]);const Ie=Z.useCallback((Re,ce)=>{Re?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:Re,source:ce,projectId:e}})),setTimeout(()=>{he(!0)},50)):(he(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:Re,source:ce,projectId:e}})))},[]);Z.useEffect(()=>{const Re=ce=>{ee(ce.detail.isOpen),ce.detail.isOpen&&setTimeout(()=>he(!0),50),window.DebalesChat.isOpen=ce.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:ce.detail.isOpen,source:ce.detail.source})};return window.addEventListener(hi.OPEN_STATE_CHANGE,Re),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,Re)}},[]);const[We,Et]=Z.useState(!1),[dt,lt]=Z.useState(()=>{const Re=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),ce=sessionStorage.getItem(Re);return ce?JSON.parse(ce):[]});Z.useEffect(()=>{const Re=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(Re,JSON.stringify(dt))},[dt,e]);const[rt,At]=Z.useState(!1),[gt,bt]=Z.useState({name:"",email:"",message:""}),[zt,ne]=Z.useState([]),[le,_e]=Z.useState({name:"",email:"",message:""}),[Fe,be]=Z.useState(null),[Be,at]=Z.useState(!1),mt=Jc("exit_model"),[wt,ye]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[He,ut]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1}),[yt,_t]=Z.useState(!1),[Gt,Wt]=Z.useState(!0),[ln,Zt]=Z.useState(!1),[It,jt]=Z.useState(!1),[vt,G]=Z.useState(!1),[we,tt]=Z.useState(!1),st=2e3,xt=Z.useCallback(()=>{const Re=B.current;if(!Re){G(!1),tt(!1),Wt(!0);return}if(Te(e)){G(!1);return}const ce=Re.scrollTop,Oe=Re.scrollHeight,P=Re.clientHeight,W=Oe>P,ue=1,xe=ce<=ue,Ae=ce+P>=Oe-ue;W?(G(!xe),tt(!Ae),Wt(Ae)):(G(!1),tt(!1),Wt(!0))},[B,G,tt,Wt]);Z.useEffect(()=>{const Re=B.current;if(pe&&Re){xt(),Re.addEventListener("scroll",xt);const ce=new ResizeObserver(xt);return ce.observe(Re),()=>{Re.removeEventListener("scroll",xt),ce.unobserve(Re)}}else pe||(G(!1),tt(!1),Wt(!0))},[pe,h,yt,xt]),Z.useEffect(()=>{var Re,ce,Oe,P,W,ue;if(h.length>0&&!p){const xe=h[h.length-1],Ae=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),Ze=xe.isBot&&xe.conversationId===l&&xe.conversationId!==Ae,Tt=(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0&&xe.conversationId===l;if(Ze){_t(!0),ut(en=>({...en,initialMessage:!0})),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),xe.conversationId||""),ye({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const tn=2e3;let an=tn;const Sn=[{type:"collections",condition:((Re=xe.collections)==null?void 0:Re.length)&&((ce=xe.collections)==null?void 0:ce.length)>0},{type:"products",condition:((Oe=xe.products)==null?void 0:Oe.length)&&((P=xe.products)==null?void 0:P.length)>0},{type:"leadingQueries",condition:h.length>=1&&((W=xe.leading_queries)==null?void 0:W.length)&&((ue=xe.leading_queries)==null?void 0:ue.length)>0},{type:"cartSummary",condition:(I==null?void 0:I.itemCount)&&(I==null?void 0:I.itemCount)>0},{type:"bulkItems",condition:(dt==null?void 0:dt.length)>0}].filter(en=>en.condition);if(Sn.length===0){_t(!1),ut(en=>({...en,initialMessage:!1,leadingQueries:!1}));return}Sn.forEach(({type:en},Wr)=>{setTimeout(()=>{if(ut(cr=>({...cr,[en]:!0})),ye(cr=>({...cr,[en]:!0})),Gt&&B.current){const cr=B.current;cr.scrollHeight-cr.scrollTop<=cr.clientHeight&&$a(B)}Wr===Sn.length-1&&(console.log("setting isLoadingComponents to false"),_t(!1))},an),an+=tn})}else Tt&&ye(tn=>({...tn,cartSummary:!0}))}},[h,p,l,I==null?void 0:I.itemCount,dt==null?void 0:dt.length,Gt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const Re=B.current;Re&&Gt&&Re.scrollHeight-Re.scrollTop<=Re.clientHeight+100&&setTimeout(()=>$a(B),100)}},[h.length,o,Gt]),Z.useEffect(()=>{const Re=document.querySelector('meta[name="viewport"]'),ce=Re==null?void 0:Re.content;if(pe){let Oe=Re;const P=window.matchMedia("(max-width: 768px)").matches;Oe?Oe.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(Oe=document.createElement("meta"),Oe.name="viewport",Oe.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(Oe)),P&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const W=Oe;return()=>{ce&&W&&(W.content=ce),P&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[pe,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{const Re=setTimeout(()=>{Et(!0)},1e3);return()=>clearTimeout(Re)},[]),Z.useEffect(()=>{if(pe&&h.length>0&&!o){const Re=B.current;Re&&setTimeout(()=>{Re.scrollTop=Re.scrollHeight},100)}},[pe,h.length,o]),Z.useEffect(()=>{I!=null&&I.total&&!o&&setTimeout(()=>$a(B),100)},[I==null?void 0:I.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const Vt=Z.useRef(window.location.pathname.split("?")[0]),Lt=Z.useRef(w),Xt=Jc("acquisition_agent");Z.useEffect(()=>{Lt.current=w},[w]);const Dt=Z.useCallback(async Re=>{if(!Xt||(t==null?void 0:t.show_bot)===!1){console.warn("Acquisition agent is disabled");return}console.log("Calling acquisition API for path:",Re);try{const ce=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(ce.ok){const Oe=await ce.json();if(Oe.Popup_Message){const P=[...Lt.current];P.push({question:Oe.Popup_Message,answer:"",path:Re,nameSpace:e,type:"dynamic",Follow_up_Question:Oe.Follow_up_Question}),E(P)}}}catch(ce){console.error("Error fetching acquisition data:",ce)}},[e,E,Xt,t==null?void 0:t.show_bot]),mn=Z.useCallback(()=>{const Re=window.location.pathname.split("?")[0],ce=Vt.current;console.log("URL change detected:",{currentPath:ce,newPath:Re}),Re!==ce&&(console.log("Path changed, calling acquisition API"),Vt.current=Re,Dt(Re))},[Dt]);Z.useEffect(()=>{if(!Xt||(t==null?void 0:t.show_bot)===!1){console.warn("Acquisition agent is disabled");return}console.log("Setting up acquisition agent");const Re=window.location.pathname.split("?")[0];Dt(Re);const ce=()=>{mn()},Oe=history.pushState,P=history.replaceState;return history.pushState=function(...W){Oe.apply(this,W),setTimeout(mn,0)},history.replaceState=function(...W){P.apply(this,W),setTimeout(mn,0)},window.addEventListener("popstate",ce),()=>{window.removeEventListener("popstate",ce),history.pushState=Oe,history.replaceState=P}},[Xt,t==null?void 0:t.show_bot,Dt,mn]);const[Pn,Ui]=Z.useState(!1),[zn,vn]=Z.useState(!1),[Qt,Br]=Z.useState(null),nr=async Re=>{const ce=tr();if(he(!1),Re&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:ce,userRating:Re,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(Oe){console.error("Error submitting rating:",Oe)}setTimeout(()=>{vn(!1),Ie(!1,"close_button_clicked")},1e3)},la=Re=>{m(!0),dt.forEach(Oe=>{console.debug("handleBulkItemsAddition : Adding item to cart:",Oe),z(Oe.id,Oe.quantity)}),V(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:dt,message:Re});const ce=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:Re,isBot:!0}];y(ce),x(ce),d(Re),lt([]),m(!1)},Ro=()=>{var Re;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((Re=window.shiprocketCheckoutEvents)!=null&&Re.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=L((t==null?void 0:t.shopifyShopDomain)??""),!1},Po=async Re=>{Re.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(I==null?void 0:I.total),cart:I}),H({dbls_method:"checkout_clicked"}),Ro()&&Ie(!1,"checkout_clicked")},[pi,$t]=Z.useState([]);Z.useEffect(()=>{const Re=hue(xE(w));$t(Re)},[w]);const li=Z.useMemo(()=>pi.map(Re=>{if(Array.isArray(Re)){const ce=Re.filter(P=>!Ne.has(P.question));if(ce.length===0)return null;const Oe={isHighlighted:Re[0].isHighlighted,enable:Re[0].enable,type:Re[0].type};return ce.map(P=>({...P,...Oe}))}else return Ne.has(Re.question)?null:Re}).filter(Boolean),[pi,Ne]);Z.useEffect(()=>{const Re=P=>{const W=P.detail.formId;switch(P.detail.type){case"open":case"embedOpen":setTimeout(()=>{const xe=ce(W);xe&&N(xe)},800);break;case"close":Ee&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{Ie(!0,"klaviyo_form_closed"),ae(W),r({message:Ee,fromKlaviyo:!0})},1e4);break}},ce=P=>{const W=document.querySelector(`[data-testid="klaviyo-form-${P}"]`);if(console.log(`formElement text ${P} =>`,W==null?void 0:W.innerText,W==null?void 0:W.textContent),W instanceof HTMLElement){const ue=W.innerText||W.textContent;if(ue)return console.log("Found form text:",ue),`=> Klaviyo form content:
|
|
2865
2865
|
|
|
2866
2866
|
`+ue+`
|
|
2867
2867
|
|
|
2868
|
-
=> User Action: Klaviyo form closed`}return""},Re=P=>{P instanceof CustomEvent&&Oe(P)};return window.addEventListener("klaviyoForms",Re),()=>{window.removeEventListener("klaviyoForms",Re)}},[Ee,t,r]);const[Mr,fo]=Z.useState(!1),Ti=re==="Highest"?"120px":re==="Higher"?"60px":"15px",rr=async()=>{if(Be){console.warn("Support request called while already in support mode");return}try{const Oe=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:gt.name,userEmail:gt.email,userMessage:gt.message,tag:"support"})});if(Oe.ok){const ce=await Oe.json(),{contactId:Re,ticketId:P}=ce;if(Re&&P){const ue=Hp.connect(`${eF}/api/v1/live-agent`);if(!ue){console.error("Failed to create support socket connection"),y(Sn=>[...Sn,{text:"Sorry, we couldn't establish a connection to support. Please try again.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}ue.emit("join_ticket_conversation",{ticketID:P,role:"contact",contactID:Re,nameSpace:e});const xe=Sn=>{console.log("Joined support conversation:",Sn),y(en=>[...en,{text:"You are now connected to live support. A support agent will join shortly.",isBot:!0,conversationId:`support-live-${Date.now()}`}])},Ae=Sn=>{console.log("Received conversation history:",Sn.length,"messages")},Ze=Sn=>{console.log("Support agent joined:",Sn),y(en=>[...en,{text:"A support agent has joined the conversation. You can now chat directly with them.",isBot:!0,conversationId:`agent-joined-${Date.now()}`}])},Tt=Sn=>{console.log("New support message:",Sn),y(en=>[...en,{text:Sn.text||Sn.content,isBot:!0,conversationId:`support-msg-${Date.now()}`}])},tn=()=>{console.log("Support connection disconnected"),y(Sn=>[...Sn,{text:"Support connection has ended. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-end-${Date.now()}`}]),at(!1)};ue.on("joined_ticket_conversation",xe),ue.on("conversation_history",Ae),ue.on("participant_joined",Ze),ue.on("message",Tt),ue.on("disconnect",tn),be(ue),at(!0);const an=()=>{ue.off("joined_ticket_conversation",xe),ue.off("conversation_history",Ae),ue.off("participant_joined",Ze),ue.off("new_message",Tt),ue.off("disconnect",tn)};ue.cleanupHandlers=an}const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:zt,conversationId:W}]),d(W),ye(ue=>({...ue,leadingQueries:!0})),ne([]),console.log("Connected to support with existing user info:",jo())}else{const ce=await Oe.json();console.error("Failed to connect to support:",ce),y(Re=>[...Re,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Xi=()=>{if(Te(e)){const P=jp("https://test.thecollective.in/content/customersupport");P.isValid&&(t!=null&&t.shopifyShopDomain&&(P.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(P.url.toString()),"_blank"));return}if(Be){console.warn("Already in support mode");return}const Oe=jo();let ce=[];const Re=h[h.length-1];Re!=null&&Re.leading_queries&&Re.leading_queries.length>0?ce=Re.leading_queries:h.length<=1&&(ce=pi.flatMap(P=>Array.isArray(P)?P.map(W=>W.question):[P.question]).slice(0,4)),ne(ce),Oe&&Oe.name&&Oe.email&&bt({name:Oe==null?void 0:Oe.name,email:Oe==null?void 0:Oe.email,message:""}),y(P=>[...P,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),At(!0)},ho=async Oe=>{Oe.preventDefault();const ce={name:"",email:"",message:""};let Re=!0;const P=gt.name.trim(),W=gt.message.trim();P||(ce.name="Name cannot be empty or just whitespace.",Re=!1),(!gt.email||!zm.isEmail(gt.email))&&(ce.email="Please enter a valid email address.",Re=!1),W||(ce.message="Message cannot be empty or just whitespace.",Re=!1),_e(ce),Re&&(ff({name:P,email:gt.email}),At(!1),y(ue=>ue.slice(0,-1)),await rr())};Z.useEffect(()=>{if(h.length===1&&h[0].isBot){ut(ce=>({...ce,leadingQueries:!0}));const Oe=setTimeout(()=>{ut(ce=>({...ce,leadingQueries:!1}))},2e3);return()=>clearTimeout(Oe)}},[h]),Z.useEffect(()=>()=>{Fe&&(Fe.cleanupHandlers&&Fe.cleanupHandlers(),Hp.disconnect(),be(null),at(!1))},[Fe]);const Bn=()=>{Hp.emit("send_message",{content:"The Contact has left the conversation.",type:"text",timestamp:new Date().toISOString()}),Hp.emit("leave_conversation",{role:"contact"}),Fe&&(Fe.cleanupHandlers&&Fe.cleanupHandlers(),Hp.disconnect(),be(null),at(!1),y(Oe=>[...Oe,{text:"You have exited live support mode. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-exit-${Date.now()}`}]))},po=Oe=>{if(!Be){console.warn("Attempted to send support message when not in support mode");return}if(!Hp.getIsConnected()){console.error("Support socket is not connected"),y(ce=>[...ce,{text:"Connection lost. Please wait while we reconnect you to support.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}Hp.emit("send_message",{content:Oe,type:"text",timestamp:new Date().toISOString()}),y(ce=>[...ce,{text:Oe,isBot:!1,conversationId:`support-user-${Date.now()}`}])};Z.useEffect(()=>{console.log(I,l,h,wt.cartSummary,te)},[I,l,wt.cartSummary,te,h]);const Qr=()=>{const Oe=window.location.href;return!!(Oe.includes("letsgo.catch.org")&&Oe.includes("/courses"))};return!t||t.show_bot===!1||a||Qr()?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(Wpe,{}),!pe&&(li==null?void 0:li.length)!==0&&M.jsx(Kpe,{className:We?"visible":"",$botId:e,$iconSize:F,$removeLogoBackground:t.removeLogoBackground,topOffset:Ti,style:{right:J?"auto":"24px",left:J?"24px":"auto",display:"flex",flexDirection:"column",alignItems:J?"flex-start":"flex-end"},children:He.suggestions?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:He.suggestions})}):li.map((Oe,ce)=>{if(Array.isArray(Oe)){const Re=Oe.map(P=>({question:P.question,isHighlighted:P.isHighlighted??!1})).filter(P=>!Ne.has(P.question));return M.jsx(gP,{$index:ce,$totalCount:li.length,children:M.jsx(bhe,{messages:Re,botId:e,uiData:t,onClick:P=>{const W=Oe.find(ue=>ue.question===P);Ie(!0,"suggested_question_clicked"),ke(ue=>{const xe=new Set(ue);return xe.add(P),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),!O&&W?(Zt(!1),jt(!0),r({message:W.Follow_up_Question??W.question,answer:W==null?void 0:W.answer,products:W==null?void 0:W.products,fromKlaviyo:!1,leading_queries:W==null?void 0:W.leading_queries,followUpQuestion:W==null?void 0:W.Follow_up_Question,messType:"suggested_question"})):(Zt(!1),jt(!0),T(!0),R(W))}})},ce)}else return M.jsx(gP,{$index:ce,$totalCount:li.length,children:M.jsx(yhe,{value:`${Oe.question}`,index:ce,botId:e,uiData:t,onClose:()=>{ke(Re=>{const P=new Set(Re);return P.add(Oe.question),P})},onClick:()=>{Ie(!0,"suggested_question_clicked"),ke(Re=>{const P=new Set(Re);return P.add(Oe.question),P}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:Oe}),O?(Zt(!1),jt(!0),T(!0),R(Oe)):(Zt(!1),jt(!0),r({message:Oe.question,answer:Oe.answer,products:Oe.products,leading_queries:Oe.leading_queries,followUpQuestion:Oe.Follow_up_Question,messType:"suggested_question"}))},isHighlighted:Oe.isHighlighted??!1})},ce)})}),M.jsxs(Bpe,{$topOffset:Ti,$removeLogoBackground:t.removeLogoBackground,style:{display:pe?"none":"inline-flex",right:J?"auto":"24px",left:J?"24px":"auto"},children:[M.jsx(Lpe,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Ti,$iconSize:F}),M.jsx(Npe,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:F,$removeLogoBackground:t.removeLogoBackground,topOffset:Ti,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),Ie(!pe,"chat_button_clicked"),!pe){const Oe=S();Oe.length>0?(y(Oe),Zt(!1),jt(!0)):(Zt(!0),jt(!1),ut(ce=>({...ce,initialMessage:!0,leadingQueries:!0})),ye({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1}),setTimeout(()=>{Zt(!1),jt(!0),ut(Re=>({...Re,initialMessage:!1}));const ce={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([ce]),ut(Re=>({...Re,leadingQueries:!0})),setTimeout(()=>{ye(Re=>({...Re,leadingQueries:!0}))},st)},st))}},"aria-label":"Chat",style:{display:pe?"none":"inline-flex",right:J?"auto":"24px",left:J?"24px":"auto"},children:M.jsx(zpe,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"})})]}),pe&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(jpe,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:J,$topOffset:Ti,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:se,"data-testid":"debales-chat-container",children:[M.jsxs(qpe,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(cP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(Fpe,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Upe,{})]})]}):M.jsx(Hpe,{children:M.jsxs(Ppe,{children:[M.jsx(cP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[Be&&M.jsxs("div",{style:{background:"#4CAF50",color:"white",padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:"500",display:"flex",alignItems:"center",gap:"4px"},children:[M.jsx("span",{style:{fontSize:"8px"},children:"β"}),"Live Support",M.jsx("button",{onClick:Bn,style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"12px",marginLeft:"4px",padding:"2px 4px",borderRadius:"4px"},title:"Exit Support",children:"β"})]}),M.jsx(Bk,{handleSupportClick:Xi,isSupportMode:Be}),M.jsx(jx,{onClick:()=>{mt?vn(!0):Ie(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(i0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vt?1:0}})]}),M.jsxs(Ype,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Mr&&((Kr=(ot=t.pluginConfig)==null?void 0:ot.collectedUserInfo)==null?void 0:Kr.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{fo(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:Qt,showModel:Pn,setShowModel:Ui,onVariantSelect:Oe=>{console.debug("VariantSelectionModel : Adding item to cart:",Oe),z(Oe.id,1,{productId:(Qt==null?void 0:Qt.productId)||""}),V(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:Oe.title,price:Number(Oe.price),link:`https://${t.shopifyShopDomain}/variants/${Oe.id}`,message:l,chatId:tr()+e})},botId:e}),zn&&M.jsx(Vk,{setShowExitModal:vn,handleCloseChatbot:nr,chatId:tr()+e}),M.jsxs(Gpe,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:B,$mobileDisplayMode:t.mobileDisplayMode,"data-testid":"debales-conversation-group",children:[M.jsx(n0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vt?1:0}}),M.jsxs(Vpe,{children:[It&&h.map((Oe,ce)=>{const Re=Oe.isBot,P=Lp(Oe.text);return Oe.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[Re&&M.jsxs(fP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:Re?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(pP,{children:[P.map(W=>M.jsx("div",{children:M.jsx(Fi,{isBot:Re,children:M.jsx(Cd,{components:{a:({href:ue,children:xe})=>{const Ae=()=>{ue!=null&&ue.startsWith("https://shop.catch.org/")&&window.DebalesChat.track(nn.SHOPIFY_LINK_CLICKED)};return M.jsx("a",{href:ue,target:"_blank",onClick:Ae,children:xe})}},remarkPlugins:[Bw,_E],children:W})})})),Oe.collections&&(Te(e)?l===Oe.conversationId?wt.collections:!0:l===Oe.conversationId&&wt.collections)&&M.jsx(Hk,{message:Oe,botId:e,uidata:t,onSendMessage:r,loading:p}),Oe.products&&(Te(e)?l===Oe.conversationId?wt.products:!0:l===Oe.conversationId&&wt.products)&&M.jsx(Zk,{message:Oe,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:Q,setShowVariantModel:Ui,setSelectedProduct:Br}),o&&M.jsx(J6,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Y]),Ie(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),I&&I.itemCount>0&&l===Oe.conversationId&&wt.cartSummary&&te&&M.jsx(zk,{onCheckout:Po,onKeepShopping:()=>{V(!1)}}),dt&&dt.length>0&&l===Oe.conversationId&&wt.bulkItems&&M.jsx(Sk,{onClick:()=>la(Oe.conversationId),children:"Add Bulk Items to Cart"}),k&&h.indexOf(Oe)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:W=>{var xe,Ae;const ue=typeof W=="function"?W(k):W;T(ue),!ue&&((Ae=(xe=t.pluginConfig)==null?void 0:xe.collectedUserInfo)!=null&&Ae.discount)&&fo(!0)},inChat:!0,showFormInstructions:!1})}),rt&&h.indexOf(Oe)===h.length-1&&M.jsxs(Xpe,{onSubmit:ho,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:gt.name,onChange:W=>bt(ue=>({...ue,name:W.target.value})),required:!0,error:le.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:gt.email,onChange:W=>bt(ue=>({...ue,email:W.target.value})),required:!0,error:le.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:gt.message,onChange:W=>bt(ue=>({...ue,message:W.target.value})),required:!0,error:le.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(e8,{children:[M.jsxs(t8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(mP,{type:"text",required:!0,value:gt.name,onChange:W=>bt(ue=>({...ue,name:W.target.value})),placeholder:"John"}),le.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.name})]}),M.jsxs(e8,{children:[M.jsxs(t8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(mP,{type:"email",required:!0,value:gt.email,onChange:W=>bt(ue=>({...ue,email:W.target.value})),placeholder:"olivia@untitledui.com"}),le.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.email})]}),M.jsxs(e8,{children:[M.jsxs(t8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(Jpe,{required:!0,value:gt.message,onChange:W=>bt(ue=>({...ue,message:W.target.value})),placeholder:"I need help with..."}),le.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.message})]})]}),M.jsx(t0e,{children:M.jsx(e0e,{type:"submit",children:"Submit"})})]}),yt&&!p&&l===Oe.conversationId&&M.jsx(Fi,{isBot:Re,children:M.jsx(Ds,{loading:yt})})]})]}),!Re&&M.jsx(Zpe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!Re,children:M.jsx(Cd,{children:Oe.text})})}),h.length==1&&ce==0&&!k&&M.jsx(J6,{children:He.leadingQueries?M.jsx(Fi,{isBot:Re??!0,children:M.jsx(Ds,{loading:He.leadingQueries})}):pi.map(W=>Array.isArray(W)?W[0]:W).map((W,ue)=>M.jsxs(hP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{O?(T(!0),R({question:W.question,answer:W.answer,products:W.products,path:"/",nameSpace:window.DebalesChat.projectId})):(Zt(!1),jt(!0),r({message:W.question,answer:W.answer,products:W.products,leading_queries:W.leading_queries,followUpQuestion:W.Follow_up_Question,messType:"leading_query"})),ke(xe=>{const Ae=new Set(xe);return Ae.add(W.question),Ae}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:W.question})},disabled:p,$disabled:p,children:[W.question,M.jsx(dP,{color:t.callToActionFontColor})]},ue))}),Oe.leading_queries&&Oe.leading_queries.length>0&&l===Oe.conversationId&&wt.leadingQueries&&!o&&!k&&M.jsx(J6,{children:Oe.leading_queries.map((W,ue)=>M.jsxs(hP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{O?(T(!0),R({question:W,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:W,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:W})},disabled:p,$disabled:p,children:[W,M.jsx(dP,{color:t.callToActionFontColor})]},ue))})]},ce)}),(p||ln)&&!Be&&M.jsxs(fP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(pP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||ln})})})})]})]}),M.jsx(r0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:we?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1,isInSupportMode:Be,onSupportMessage:po})}),M.jsx(Pk,{})]})]})]})}),oe.shadowRoot)]})},o0e=fe.p`
|
|
2868
|
+
=> User Action: Klaviyo form closed`}return""},Oe=P=>{P instanceof CustomEvent&&Re(P)};return window.addEventListener("klaviyoForms",Oe),()=>{window.removeEventListener("klaviyoForms",Oe)}},[Ee,t,r]);const[Mr,fo]=Z.useState(!1),Ti=re==="Highest"?"120px":re==="Higher"?"60px":"15px",rr=async()=>{if(Be){console.warn("Support request called while already in support mode");return}try{const Re=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:gt.name,userEmail:gt.email,userMessage:gt.message,tag:"support"})});if(Re.ok){const ce=await Re.json(),{contactId:Oe,ticketId:P}=ce;if(Oe&&P){const ue=Hp.connect(`${eF}/api/v1/live-agent`);if(!ue){console.error("Failed to create support socket connection"),y(Sn=>[...Sn,{text:"Sorry, we couldn't establish a connection to support. Please try again.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}ue.emit("join_ticket_conversation",{ticketID:P,role:"contact",contactID:Oe,nameSpace:e});const xe=Sn=>{console.log("Joined support conversation:",Sn),y(en=>[...en,{text:"You are now connected to live support. A support agent will join shortly.",isBot:!0,conversationId:`support-live-${Date.now()}`}])},Ae=Sn=>{console.log("Received conversation history:",Sn.length,"messages")},Ze=Sn=>{console.log("Support agent joined:",Sn),y(en=>[...en,{text:"A support agent has joined the conversation. You can now chat directly with them.",isBot:!0,conversationId:`agent-joined-${Date.now()}`}])},Tt=Sn=>{console.log("New support message:",Sn),y(en=>[...en,{text:Sn.text||Sn.content,isBot:!0,conversationId:`support-msg-${Date.now()}`}])},tn=()=>{console.log("Support connection disconnected"),y(Sn=>[...Sn,{text:"Support connection has ended. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-end-${Date.now()}`}]),at(!1)};ue.on("joined_ticket_conversation",xe),ue.on("conversation_history",Ae),ue.on("participant_joined",Ze),ue.on("message",Tt),ue.on("disconnect",tn),be(ue),at(!0);const an=()=>{ue.off("joined_ticket_conversation",xe),ue.off("conversation_history",Ae),ue.off("participant_joined",Ze),ue.off("new_message",Tt),ue.off("disconnect",tn)};ue.cleanupHandlers=an}const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:zt,conversationId:W}]),d(W),ye(ue=>({...ue,leadingQueries:!0})),ne([]),console.log("Connected to support with existing user info:",jo())}else{const ce=await Re.json();console.error("Failed to connect to support:",ce),y(Oe=>[...Oe,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(ce=>[...ce,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Xi=()=>{if(Te(e)){const P=jp("https://test.thecollective.in/content/customersupport");P.isValid&&(t!=null&&t.shopifyShopDomain&&(P.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(P.url.toString()),"_blank"));return}if(Be){console.warn("Already in support mode");return}const Re=jo();let ce=[];const Oe=h[h.length-1];Oe!=null&&Oe.leading_queries&&Oe.leading_queries.length>0?ce=Oe.leading_queries:h.length<=1&&(ce=pi.flatMap(P=>Array.isArray(P)?P.map(W=>W.question):[P.question]).slice(0,4)),ne(ce),Re&&Re.name&&Re.email&&bt({name:Re==null?void 0:Re.name,email:Re==null?void 0:Re.email,message:""}),y(P=>[...P,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),At(!0)},ho=async Re=>{Re.preventDefault();const ce={name:"",email:"",message:""};let Oe=!0;const P=gt.name.trim(),W=gt.message.trim();P||(ce.name="Name cannot be empty or just whitespace.",Oe=!1),(!gt.email||!zm.isEmail(gt.email))&&(ce.email="Please enter a valid email address.",Oe=!1),W||(ce.message="Message cannot be empty or just whitespace.",Oe=!1),_e(ce),Oe&&(ff({name:P,email:gt.email}),At(!1),y(ue=>ue.slice(0,-1)),await rr())};Z.useEffect(()=>{if(h.length===1&&h[0].isBot){ut(ce=>({...ce,leadingQueries:!0}));const Re=setTimeout(()=>{ut(ce=>({...ce,leadingQueries:!1}))},2e3);return()=>clearTimeout(Re)}},[h]),Z.useEffect(()=>()=>{Fe&&(Fe.cleanupHandlers&&Fe.cleanupHandlers(),Hp.disconnect(),be(null),at(!1))},[Fe]);const Bn=()=>{Hp.emit("send_message",{content:"The Contact has left the conversation.",type:"text",timestamp:new Date().toISOString()}),Hp.emit("leave_conversation",{role:"contact"}),Fe&&(Fe.cleanupHandlers&&Fe.cleanupHandlers(),Hp.disconnect(),be(null),at(!1),y(Re=>[...Re,{text:"You have exited live support mode. You can continue chatting with me or request support again.",isBot:!0,conversationId:`support-exit-${Date.now()}`}]))},po=Re=>{if(!Be){console.warn("Attempted to send support message when not in support mode");return}if(!Hp.getIsConnected()){console.error("Support socket is not connected"),y(ce=>[...ce,{text:"Connection lost. Please wait while we reconnect you to support.",isBot:!0,conversationId:`support-error-${Date.now()}`}]);return}Hp.emit("send_message",{content:Re,type:"text",timestamp:new Date().toISOString()}),y(ce=>[...ce,{text:Re,isBot:!1,conversationId:`support-user-${Date.now()}`}])};Z.useEffect(()=>{console.log(I,l,h,wt.cartSummary,te)},[I,l,wt.cartSummary,te,h]);const Qr=()=>{const Re=window.location.href;return!!((Re.includes("letsgo.catch.org")||Re.includes("inventive-s-school.thinkific.com"))&&Re.includes("/courses"))};return!t||t.show_bot===!1||a||Qr()?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(Wpe,{}),!pe&&(li==null?void 0:li.length)!==0&&M.jsx(Kpe,{className:We?"visible":"",$botId:e,$iconSize:F,$removeLogoBackground:t.removeLogoBackground,topOffset:Ti,style:{right:J?"auto":"24px",left:J?"24px":"auto",display:"flex",flexDirection:"column",alignItems:J?"flex-start":"flex-end"},children:He.suggestions?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:He.suggestions})}):li.map((Re,ce)=>{if(Array.isArray(Re)){const Oe=Re.map(P=>({question:P.question,isHighlighted:P.isHighlighted??!1})).filter(P=>!Ne.has(P.question));return M.jsx(gP,{$index:ce,$totalCount:li.length,children:M.jsx(bhe,{messages:Oe,botId:e,uiData:t,onClick:P=>{const W=Re.find(ue=>ue.question===P);Ie(!0,"suggested_question_clicked"),ke(ue=>{const xe=new Set(ue);return xe.add(P),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),!O&&W?(Zt(!1),jt(!0),r({message:W.Follow_up_Question??W.question,answer:W==null?void 0:W.answer,products:W==null?void 0:W.products,fromKlaviyo:!1,leading_queries:W==null?void 0:W.leading_queries,followUpQuestion:W==null?void 0:W.Follow_up_Question,messType:"suggested_question"})):(Zt(!1),jt(!0),T(!0),R(W))}})},ce)}else return M.jsx(gP,{$index:ce,$totalCount:li.length,children:M.jsx(yhe,{value:`${Re.question}`,index:ce,botId:e,uiData:t,onClose:()=>{ke(Oe=>{const P=new Set(Oe);return P.add(Re.question),P})},onClick:()=>{Ie(!0,"suggested_question_clicked"),ke(Oe=>{const P=new Set(Oe);return P.add(Re.question),P}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:Re}),O?(Zt(!1),jt(!0),T(!0),R(Re)):(Zt(!1),jt(!0),r({message:Re.question,answer:Re.answer,products:Re.products,leading_queries:Re.leading_queries,followUpQuestion:Re.Follow_up_Question,messType:"suggested_question"}))},isHighlighted:Re.isHighlighted??!1})},ce)})}),M.jsxs(Bpe,{$topOffset:Ti,$removeLogoBackground:t.removeLogoBackground,style:{display:pe?"none":"inline-flex",right:J?"auto":"24px",left:J?"24px":"auto"},children:[M.jsx(Lpe,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Ti,$iconSize:F}),M.jsx(Npe,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:F,$removeLogoBackground:t.removeLogoBackground,topOffset:Ti,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),Ie(!pe,"chat_button_clicked"),!pe){const Re=S();Re.length>0?(y(Re),Zt(!1),jt(!0)):(Zt(!0),jt(!1),ut(ce=>({...ce,initialMessage:!0,leadingQueries:!0})),ye({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1}),setTimeout(()=>{Zt(!1),jt(!0),ut(Oe=>({...Oe,initialMessage:!1}));const ce={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([ce]),ut(Oe=>({...Oe,leadingQueries:!0})),setTimeout(()=>{ye(Oe=>({...Oe,leadingQueries:!0}))},st)},st))}},"aria-label":"Chat",style:{display:pe?"none":"inline-flex",right:J?"auto":"24px",left:J?"24px":"auto"},children:M.jsx(zpe,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"})})]}),pe&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(jpe,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:J,$topOffset:Ti,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:se,"data-testid":"debales-chat-container",children:[M.jsxs(qpe,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(cP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(Fpe,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Upe,{})]})]}):M.jsx(Hpe,{children:M.jsxs(Ppe,{children:[M.jsx(cP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[Be&&M.jsxs("div",{style:{background:"#4CAF50",color:"white",padding:"4px 8px",borderRadius:"12px",fontSize:"12px",fontWeight:"500",display:"flex",alignItems:"center",gap:"4px"},children:[M.jsx("span",{style:{fontSize:"8px"},children:"β"}),"Live Support",M.jsx("button",{onClick:Bn,style:{background:"none",border:"none",color:"white",cursor:"pointer",fontSize:"12px",marginLeft:"4px",padding:"2px 4px",borderRadius:"4px"},title:"Exit Support",children:"β"})]}),M.jsx(Bk,{handleSupportClick:Xi,isSupportMode:Be}),M.jsx(jx,{onClick:()=>{mt?vn(!0):Ie(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(i0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vt?1:0}})]}),M.jsxs(Ype,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Mr&&((Kr=(ot=t.pluginConfig)==null?void 0:ot.collectedUserInfo)==null?void 0:Kr.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{fo(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:Qt,showModel:Pn,setShowModel:Ui,onVariantSelect:Re=>{console.debug("VariantSelectionModel : Adding item to cart:",Re),z(Re.id,1,{productId:(Qt==null?void 0:Qt.productId)||""}),V(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:Re.title,price:Number(Re.price),link:`https://${t.shopifyShopDomain}/variants/${Re.id}`,message:l,chatId:tr()+e})},botId:e}),zn&&M.jsx(Vk,{setShowExitModal:vn,handleCloseChatbot:nr,chatId:tr()+e}),M.jsxs(Gpe,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:B,$mobileDisplayMode:t.mobileDisplayMode,"data-testid":"debales-conversation-group",children:[M.jsx(n0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vt?1:0}}),M.jsxs(Vpe,{children:[It&&h.map((Re,ce)=>{const Oe=Re.isBot,P=Lp(Re.text);return Re.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[Oe&&M.jsxs(fP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:Oe?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(pP,{children:[P.map(W=>M.jsx("div",{children:M.jsx(Fi,{isBot:Oe,children:M.jsx(Cd,{components:{a:({href:ue,children:xe})=>{const Ae=()=>{ue!=null&&ue.startsWith("https://shop.catch.org/")&&window.DebalesChat.track(nn.SHOPIFY_LINK_CLICKED)};return M.jsx("a",{href:ue,target:"_blank",onClick:Ae,children:xe})}},remarkPlugins:[Bw,_E],children:W})})})),Re.collections&&(Te(e)?l===Re.conversationId?wt.collections:!0:l===Re.conversationId&&wt.collections)&&M.jsx(Hk,{message:Re,botId:e,uidata:t,onSendMessage:r,loading:p}),Re.products&&(Te(e)?l===Re.conversationId?wt.products:!0:l===Re.conversationId&&wt.products)&&M.jsx(Zk,{message:Re,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:Q,setShowVariantModel:Ui,setSelectedProduct:Br}),o&&M.jsx(J6,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",Y]),Ie(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),I&&I.itemCount>0&&l===Re.conversationId&&wt.cartSummary&&te&&M.jsx(zk,{onCheckout:Po,onKeepShopping:()=>{V(!1)}}),dt&&dt.length>0&&l===Re.conversationId&&wt.bulkItems&&M.jsx(Sk,{onClick:()=>la(Re.conversationId),children:"Add Bulk Items to Cart"}),k&&h.indexOf(Re)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:W=>{var xe,Ae;const ue=typeof W=="function"?W(k):W;T(ue),!ue&&((Ae=(xe=t.pluginConfig)==null?void 0:xe.collectedUserInfo)!=null&&Ae.discount)&&fo(!0)},inChat:!0,showFormInstructions:!1})}),rt&&h.indexOf(Re)===h.length-1&&M.jsxs(Xpe,{onSubmit:ho,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:gt.name,onChange:W=>bt(ue=>({...ue,name:W.target.value})),required:!0,error:le.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:gt.email,onChange:W=>bt(ue=>({...ue,email:W.target.value})),required:!0,error:le.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:gt.message,onChange:W=>bt(ue=>({...ue,message:W.target.value})),required:!0,error:le.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(e8,{children:[M.jsxs(t8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(mP,{type:"text",required:!0,value:gt.name,onChange:W=>bt(ue=>({...ue,name:W.target.value})),placeholder:"John"}),le.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.name})]}),M.jsxs(e8,{children:[M.jsxs(t8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(mP,{type:"email",required:!0,value:gt.email,onChange:W=>bt(ue=>({...ue,email:W.target.value})),placeholder:"olivia@untitledui.com"}),le.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.email})]}),M.jsxs(e8,{children:[M.jsxs(t8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(Jpe,{required:!0,value:gt.message,onChange:W=>bt(ue=>({...ue,message:W.target.value})),placeholder:"I need help with..."}),le.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:le.message})]})]}),M.jsx(t0e,{children:M.jsx(e0e,{type:"submit",children:"Submit"})})]}),yt&&!p&&l===Re.conversationId&&M.jsx(Fi,{isBot:Oe,children:M.jsx(Ds,{loading:yt})})]})]}),!Oe&&M.jsx(Zpe,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!Oe,children:M.jsx(Cd,{children:Re.text})})}),h.length==1&&ce==0&&!k&&M.jsx(J6,{children:He.leadingQueries?M.jsx(Fi,{isBot:Oe??!0,children:M.jsx(Ds,{loading:He.leadingQueries})}):pi.map(W=>Array.isArray(W)?W[0]:W).map((W,ue)=>M.jsxs(hP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{O?(T(!0),R({question:W.question,answer:W.answer,products:W.products,path:"/",nameSpace:window.DebalesChat.projectId})):(Zt(!1),jt(!0),r({message:W.question,answer:W.answer,products:W.products,leading_queries:W.leading_queries,followUpQuestion:W.Follow_up_Question,messType:"leading_query"})),ke(xe=>{const Ae=new Set(xe);return Ae.add(W.question),Ae}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:W.question})},disabled:p,$disabled:p,children:[W.question,M.jsx(dP,{color:t.callToActionFontColor})]},ue))}),Re.leading_queries&&Re.leading_queries.length>0&&l===Re.conversationId&&wt.leadingQueries&&!o&&!k&&M.jsx(J6,{children:Re.leading_queries.map((W,ue)=>M.jsxs(hP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{O?(T(!0),R({question:W,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:W,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:W})},disabled:p,$disabled:p,children:[W,M.jsx(dP,{color:t.callToActionFontColor})]},ue))})]},ce)}),(p||ln)&&!Be&&M.jsxs(fP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(pP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||ln})})})})]})]}),M.jsx(r0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:we?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1,isInSupportMode:Be,onSupportMessage:po})}),M.jsx(Pk,{})]})]})]})}),oe.shadowRoot)]})},o0e=fe.p`
|
|
2869
2869
|
margin: 0;
|
|
2870
2870
|
font-size: ${e=>e.theme.typography.fontSizes.lg};
|
|
2871
2871
|
text-align: left;
|
|
@@ -3514,11 +3514,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3514
3514
|
opacity: 0;
|
|
3515
3515
|
z-index: 1;
|
|
3516
3516
|
bottom: 0;
|
|
3517
|
-
`,L0e=({botId:e})=>{var ce,Re;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),[Ie,We]=Z.useState(!1),[Et,dt]=Z.useState(!1),lt=Jc("acquisition_agent"),[rt,At]=Z.useState(window.location.pathname),gt=Z.useCallback(async()=>{try{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(P.ok){const W=await P.json(),ue=window.location.pathname,xe=3;de(Ae=>{const Ze=[...Ae],Tt={question:W.Popup_Message,answer:"",path:ue,nameSpace:e,type:"dynamic",Follow_up_Question:W.Follow_up_Question};return Ze.length>=xe&&Ze.shift(),Ze.push(Tt),console.log("updated questions in ChatbotComponent1",Ze),Ze})}else console.error("Failed to fetch new acquisition question")}catch(P){console.error("Error fetching new acquisition question:",P)}},[e,lt,t==null?void 0:t.show_bot]);Z.useEffect(()=>{const P=()=>{const xe=window.location.pathname;xe!==rt&&(At(xe),gt())};window.addEventListener("popstate",P);const W=history.pushState,ue=history.replaceState;return history.pushState=function(...xe){W.apply(this,xe),P()},history.replaceState=function(...xe){ue.apply(this,xe),P()},()=>{window.removeEventListener("popstate",P),history.pushState=W,history.replaceState=ue}},[rt,gt]),Z.useEffect(()=>{const P=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Wr=document.documentElement.scrollHeight,cr=document.documentElement.clientHeight,br=window.scrollY,ua=Wr-cr;return ua<=0?en:br/ua*100>50?0:en}return en};if(ee&&!Ie&&(re.current=P(ee.showing_delay||2e3)),!ee||Ie||B.length===0)return;let W,ue,xe,Ae;const Ze=ee.showing_delay||2e3,Tt=ee.showing_delay||2e3,tn=ee.show_for||4e3,an=ee.hide_timing||4e3,Sn=async()=>{if(B.length===0||!B[Ne]){Ae=setTimeout(()=>{B.length>0&&ke(en=>en%B.length)},an+500);return}W=setTimeout(()=>{Ie||(he(!0),ue=setTimeout(async()=>{Ie||(N(!0),ae(!0),xe=setTimeout(async()=>{Ie||(ae(!1),N(!1),he(!1),ke(en=>(en+1)%B.length),Ae=setTimeout(()=>{Sn()},an))},tn))},Tt))},re.current)};return B.length===0&&e?gt().then(()=>{if(!Ie&&B.length>0){ke(0);const en=P(Ze);re.current=en,Sn()}}):!Ie&&B.length>0&&Sn(),()=>{clearTimeout(W),clearTimeout(ue),clearTimeout(xe),clearTimeout(Ae)}},[ee,Ie,gt,B,Ne,e]);const[bt,zt]=Z.useState(!1);Z.useEffect(()=>{const P=()=>{zt(window.matchMedia("(max-width: 768px)").matches)};return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const[ne,le]=Z.useState(""),[_e,Fe]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let P=jo();if(!P&&window.Thinkific){const W=window.Thinkific.current_user;W&&(P={name:W.full_name,email:W.email},ff(P))}rc.init({projectName:e,debug:!1,testing:Cx}),P&&P.email&&(window.DebalesChat.identify(P.email,{name:P.name,phone:P.phone,email:P.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:P.email,first_name:P.name,phone:P.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const be=Z.useRef(null),Be=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[at,mt]=Z.useState(()=>{try{const P=sessionStorage.getItem(Be);return P?new Set(JSON.parse(P)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(at)))}catch(P){console.error("Failed to save to sessionStorage:",P)}},[at]);const wt=Z.useCallback((P,W)=>{P?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})),setTimeout(()=>{dt(!0)},50)):(dt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})))},[]);Z.useEffect(()=>{const P=W=>{We(W.detail.isOpen),W.detail.isOpen&&setTimeout(()=>dt(!0),50),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen,source:W.detail.source})};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[]),Z.useEffect(()=>{const P=W=>{We(W.detail.isOpen),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen})};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[]);const[ye,He]=Z.useState(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),W=sessionStorage.getItem(P);return W?JSON.parse(W):[]});Z.useEffect(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(P,JSON.stringify(ye))},[ye,e]);const[ut,yt]=Z.useState(!1),[_t,Gt]=Z.useState({name:"",email:"",message:""}),[Wt,ln]=Z.useState([]),[Zt,It]=Z.useState({name:"",email:"",message:""}),jt=Jc("exit_model"),[vt,G]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[we,tt]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){tt(W=>({...W,leadingQueries:!0}));const P=setTimeout(()=>{tt(W=>({...W,leadingQueries:!1}))},2e3);return()=>clearTimeout(P)}},[h,E]);const[st,xt]=Z.useState(!1),[Vt,Lt]=Z.useState(!0),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),[vn,Qt]=Z.useState(!1),Br=500,nr=Z.useCallback(()=>{const P=be.current;if(!P){zn(!1),Qt(!1),Lt(!0);return}if(Te(e)){zn(!1);return}const W=P.scrollTop,ue=P.scrollHeight,xe=P.clientHeight,Ae=ue>xe,Ze=1,Tt=W<=Ze,tn=W+xe>=ue-Ze;Ae?(zn(!Tt),Qt(!tn),Lt(tn)):(zn(!1),Qt(!1),Lt(!0))},[be,zn,Qt,Lt]);Z.useEffect(()=>{const P=be.current;if(Ie&&P){nr(),P.addEventListener("scroll",nr);const W=new ResizeObserver(nr);return W.observe(P),()=>{P.removeEventListener("scroll",nr),W.unobserve(P)}}else Ie||(zn(!1),Qt(!1),Lt(!0))},[Ie,h,st,nr]),Z.useEffect(()=>{var P,W,ue,xe,Ae,Ze;if(h.length>0&&!p){const Tt=h[h.length-1],tn=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),an=Tt.isBot&&Tt.conversationId===l&&Tt.conversationId!==tn,Sn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Tt.conversationId===l;if(an){xt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Tt.conversationId||""),G({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Wr=en;const cr=[{type:"collections",condition:((P=Tt.collections)==null?void 0:P.length)&&((W=Tt.collections)==null?void 0:W.length)>0},{type:"products",condition:((ue=Tt.products)==null?void 0:ue.length)&&((xe=Tt.products)==null?void 0:xe.length)>0},{type:"leadingQueries",condition:((Ae=Tt.leading_queries)==null?void 0:Ae.length)&&((Ze=Tt.leading_queries)==null?void 0:Ze.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(ye==null?void 0:ye.length)>0}].filter(br=>br.condition);if(cr.length===0){xt(!1);return}cr.forEach(({type:br},ua)=>{setTimeout(()=>{if(G(Lr=>({...Lr,[br]:!0})),Vt&&be.current){const Lr=be.current;Lr.scrollHeight-Lr.scrollTop<=Lr.clientHeight&&$a(be)}ua===cr.length-1&&xt(!1)},Wr),Wr+=en})}else Sn&&G(en=>({...en,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,ye==null?void 0:ye.length,Vt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const P=be.current;P&&Vt&&P.scrollHeight-P.scrollTop<=P.clientHeight+100&&setTimeout(()=>$a(be),100)}},[h.length,o,Vt]),Z.useEffect(()=>{const P=document.querySelector('meta[name="viewport"]'),W=P==null?void 0:P.content;if(Ie){let ue=P;const xe=window.matchMedia("(max-width: 768px)").matches;ue?ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ue=document.createElement("meta"),ue.name="viewport",ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ue)),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Ae=ue;return()=>{W&&Ae&&(Ae.content=W),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(Ie&&h.length>0&&!o){const P=setTimeout(()=>{be.current&&$a(be)},150);return()=>clearTimeout(P)}},[Ie,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(be),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(!1),[$t,li]=Z.useState(null),Mr=async P=>{const W=tr();if(dt(!1),P&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:W,userRating:P,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ue){console.error("Error submitting rating:",ue)}setTimeout(()=>{pi(!1),wt(!1,"close_button_clicked")},1e3)},fo=P=>{m(!0),ye.forEach(ue=>{I(ue.id,ue.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:ye,message:P});const W=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:P,isBot:!0}];y(W),x(W),d(P),He([]),m(!1)},Ti=()=>{var P;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((P=window.shiprocketCheckoutEvents)!=null&&P.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},rr=async P=>{P.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Ti()&&wt(!1,"checkout_clicked")};Z.useEffect(()=>{const P=xE(w);de(W=>[...P.filter(xe=>!W.some(Ae=>Ae.question===xe.question))])},[w]),Z.useEffect(()=>{const P=xe=>{const Ae=xe.detail.formId;switch(xe.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Tt=W(Ae);Tt&&le(Tt)},800);break;case"close":ne&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{wt(!0,"klaviyo_form_closed"),Fe(Ae),r({message:ne,fromKlaviyo:!0})},1e4);break}},W=xe=>{const Ae=document.querySelector(`[data-testid="klaviyo-form-${xe}"]`);if(console.log(`formElement text ${xe} =>`,Ae==null?void 0:Ae.innerText,Ae==null?void 0:Ae.textContent),Ae instanceof HTMLElement){const Ze=Ae.innerText||Ae.textContent;if(Ze)return console.log("Found form text:",Ze),`=> Klaviyo form content:
|
|
3517
|
+
`,L0e=({botId:e})=>{var ce,Oe;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),[Ie,We]=Z.useState(!1),[Et,dt]=Z.useState(!1),lt=Jc("acquisition_agent"),[rt,At]=Z.useState(window.location.pathname),gt=Z.useCallback(async()=>{try{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(P.ok){const W=await P.json(),ue=window.location.pathname,xe=3;de(Ae=>{const Ze=[...Ae],Tt={question:W.Popup_Message,answer:"",path:ue,nameSpace:e,type:"dynamic",Follow_up_Question:W.Follow_up_Question};return Ze.length>=xe&&Ze.shift(),Ze.push(Tt),console.log("updated questions in ChatbotComponent1",Ze),Ze})}else console.error("Failed to fetch new acquisition question")}catch(P){console.error("Error fetching new acquisition question:",P)}},[e,lt,t==null?void 0:t.show_bot]);Z.useEffect(()=>{const P=()=>{const xe=window.location.pathname;xe!==rt&&(At(xe),gt())};window.addEventListener("popstate",P);const W=history.pushState,ue=history.replaceState;return history.pushState=function(...xe){W.apply(this,xe),P()},history.replaceState=function(...xe){ue.apply(this,xe),P()},()=>{window.removeEventListener("popstate",P),history.pushState=W,history.replaceState=ue}},[rt,gt]),Z.useEffect(()=>{const P=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Wr=document.documentElement.scrollHeight,cr=document.documentElement.clientHeight,br=window.scrollY,ua=Wr-cr;return ua<=0?en:br/ua*100>50?0:en}return en};if(ee&&!Ie&&(re.current=P(ee.showing_delay||2e3)),!ee||Ie||B.length===0)return;let W,ue,xe,Ae;const Ze=ee.showing_delay||2e3,Tt=ee.showing_delay||2e3,tn=ee.show_for||4e3,an=ee.hide_timing||4e3,Sn=async()=>{if(B.length===0||!B[Ne]){Ae=setTimeout(()=>{B.length>0&&ke(en=>en%B.length)},an+500);return}W=setTimeout(()=>{Ie||(he(!0),ue=setTimeout(async()=>{Ie||(N(!0),ae(!0),xe=setTimeout(async()=>{Ie||(ae(!1),N(!1),he(!1),ke(en=>(en+1)%B.length),Ae=setTimeout(()=>{Sn()},an))},tn))},Tt))},re.current)};return B.length===0&&e?gt().then(()=>{if(!Ie&&B.length>0){ke(0);const en=P(Ze);re.current=en,Sn()}}):!Ie&&B.length>0&&Sn(),()=>{clearTimeout(W),clearTimeout(ue),clearTimeout(xe),clearTimeout(Ae)}},[ee,Ie,gt,B,Ne,e]);const[bt,zt]=Z.useState(!1);Z.useEffect(()=>{const P=()=>{zt(window.matchMedia("(max-width: 768px)").matches)};return P(),window.addEventListener("resize",P),()=>window.removeEventListener("resize",P)},[]);const[ne,le]=Z.useState(""),[_e,Fe]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let P=jo();if(!P&&window.Thinkific){const W=window.Thinkific.current_user;W&&(P={name:W.full_name,email:W.email},ff(P))}rc.init({projectName:e,debug:!1,testing:Cx}),P&&P.email&&(window.DebalesChat.identify(P.email,{name:P.name,phone:P.phone,email:P.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:P.email,first_name:P.name,phone:P.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const be=Z.useRef(null),Be=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[at,mt]=Z.useState(()=>{try{const P=sessionStorage.getItem(Be);return P?new Set(JSON.parse(P)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(at)))}catch(P){console.error("Failed to save to sessionStorage:",P)}},[at]);const wt=Z.useCallback((P,W)=>{P?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})),setTimeout(()=>{dt(!0)},50)):(dt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})))},[]);Z.useEffect(()=>{const P=W=>{We(W.detail.isOpen),W.detail.isOpen&&setTimeout(()=>dt(!0),50),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen,source:W.detail.source})};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[]),Z.useEffect(()=>{const P=W=>{We(W.detail.isOpen),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen})};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[]);const[ye,He]=Z.useState(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),W=sessionStorage.getItem(P);return W?JSON.parse(W):[]});Z.useEffect(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(P,JSON.stringify(ye))},[ye,e]);const[ut,yt]=Z.useState(!1),[_t,Gt]=Z.useState({name:"",email:"",message:""}),[Wt,ln]=Z.useState([]),[Zt,It]=Z.useState({name:"",email:"",message:""}),jt=Jc("exit_model"),[vt,G]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[we,tt]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){tt(W=>({...W,leadingQueries:!0}));const P=setTimeout(()=>{tt(W=>({...W,leadingQueries:!1}))},2e3);return()=>clearTimeout(P)}},[h,E]);const[st,xt]=Z.useState(!1),[Vt,Lt]=Z.useState(!0),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),[vn,Qt]=Z.useState(!1),Br=500,nr=Z.useCallback(()=>{const P=be.current;if(!P){zn(!1),Qt(!1),Lt(!0);return}if(Te(e)){zn(!1);return}const W=P.scrollTop,ue=P.scrollHeight,xe=P.clientHeight,Ae=ue>xe,Ze=1,Tt=W<=Ze,tn=W+xe>=ue-Ze;Ae?(zn(!Tt),Qt(!tn),Lt(tn)):(zn(!1),Qt(!1),Lt(!0))},[be,zn,Qt,Lt]);Z.useEffect(()=>{const P=be.current;if(Ie&&P){nr(),P.addEventListener("scroll",nr);const W=new ResizeObserver(nr);return W.observe(P),()=>{P.removeEventListener("scroll",nr),W.unobserve(P)}}else Ie||(zn(!1),Qt(!1),Lt(!0))},[Ie,h,st,nr]),Z.useEffect(()=>{var P,W,ue,xe,Ae,Ze;if(h.length>0&&!p){const Tt=h[h.length-1],tn=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),an=Tt.isBot&&Tt.conversationId===l&&Tt.conversationId!==tn,Sn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Tt.conversationId===l;if(an){xt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Tt.conversationId||""),G({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Wr=en;const cr=[{type:"collections",condition:((P=Tt.collections)==null?void 0:P.length)&&((W=Tt.collections)==null?void 0:W.length)>0},{type:"products",condition:((ue=Tt.products)==null?void 0:ue.length)&&((xe=Tt.products)==null?void 0:xe.length)>0},{type:"leadingQueries",condition:((Ae=Tt.leading_queries)==null?void 0:Ae.length)&&((Ze=Tt.leading_queries)==null?void 0:Ze.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(ye==null?void 0:ye.length)>0}].filter(br=>br.condition);if(cr.length===0){xt(!1);return}cr.forEach(({type:br},ua)=>{setTimeout(()=>{if(G(Lr=>({...Lr,[br]:!0})),Vt&&be.current){const Lr=be.current;Lr.scrollHeight-Lr.scrollTop<=Lr.clientHeight&&$a(be)}ua===cr.length-1&&xt(!1)},Wr),Wr+=en})}else Sn&&G(en=>({...en,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,ye==null?void 0:ye.length,Vt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const P=be.current;P&&Vt&&P.scrollHeight-P.scrollTop<=P.clientHeight+100&&setTimeout(()=>$a(be),100)}},[h.length,o,Vt]),Z.useEffect(()=>{const P=document.querySelector('meta[name="viewport"]'),W=P==null?void 0:P.content;if(Ie){let ue=P;const xe=window.matchMedia("(max-width: 768px)").matches;ue?ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ue=document.createElement("meta"),ue.name="viewport",ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ue)),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Ae=ue;return()=>{W&&Ae&&(Ae.content=W),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(Ie&&h.length>0&&!o){const P=setTimeout(()=>{be.current&&$a(be)},150);return()=>clearTimeout(P)}},[Ie,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(be),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(!1),[$t,li]=Z.useState(null),Mr=async P=>{const W=tr();if(dt(!1),P&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:W,userRating:P,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ue){console.error("Error submitting rating:",ue)}setTimeout(()=>{pi(!1),wt(!1,"close_button_clicked")},1e3)},fo=P=>{m(!0),ye.forEach(ue=>{I(ue.id,ue.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:ye,message:P});const W=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:P,isBot:!0}];y(W),x(W),d(P),He([]),m(!1)},Ti=()=>{var P;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((P=window.shiprocketCheckoutEvents)!=null&&P.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},rr=async P=>{P.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Ti()&&wt(!1,"checkout_clicked")};Z.useEffect(()=>{const P=xE(w);de(W=>[...P.filter(xe=>!W.some(Ae=>Ae.question===xe.question))])},[w]),Z.useEffect(()=>{const P=xe=>{const Ae=xe.detail.formId;switch(xe.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Tt=W(Ae);Tt&&le(Tt)},800);break;case"close":ne&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{wt(!0,"klaviyo_form_closed"),Fe(Ae),r({message:ne,fromKlaviyo:!0})},1e4);break}},W=xe=>{const Ae=document.querySelector(`[data-testid="klaviyo-form-${xe}"]`);if(console.log(`formElement text ${xe} =>`,Ae==null?void 0:Ae.innerText,Ae==null?void 0:Ae.textContent),Ae instanceof HTMLElement){const Ze=Ae.innerText||Ae.textContent;if(Ze)return console.log("Found form text:",Ze),`=> Klaviyo form content:
|
|
3518
3518
|
|
|
3519
3519
|
`+Ze+`
|
|
3520
3520
|
|
|
3521
|
-
=> User Action: Klaviyo form closed`}return""},ue=xe=>{xe instanceof CustomEvent&&P(xe)};return window.addEventListener("klaviyoForms",ue),()=>{window.removeEventListener("klaviyoForms",ue)}},[ne,t,r]),Z.useEffect(()=>{const P=be.current;return Ie&&P?(P.addEventListener("scroll",nr),()=>{P&&P.removeEventListener("scroll",nr)}):()=>{}},[Ie,nr]);const[Xi,ho]=Z.useState(!1),Bn=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",po=async()=>{try{const P=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:_t.name,userEmail:_t.email,userMessage:_t.message,tag:"support"})});if(P.ok){const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Wt,conversationId:W}]),d(W),G(ue=>({...ue,leadingQueries:!0})),ln([]),console.log("Connected to support with existing user info:",jo())}else{const W=await P.json();console.error("Failed to connect to support:",W),y(ue=>[...ue,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(W=>[...W,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Qr=()=>{if(Te(e)){const xe=jp("https://test.thecollective.in/content/customersupport");xe.isValid&&(t!=null&&t.shopifyShopDomain&&(xe.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(xe.url.toString()),"_blank"));return}const P=jo();let W=[];const ue=h[h.length-1];ue!=null&&ue.leading_queries&&ue.leading_queries.length>0?W=ue.leading_queries:h.length<=1&&(W=B.flatMap(xe=>Array.isArray(xe)?xe.map(Ae=>Ae.question):[xe.question]).slice(0,4)),ln(W),P&&P.name&&P.email&&Gt({name:P==null?void 0:P.name,email:P==null?void 0:P.email,message:""}),y(xe=>[...xe,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),yt(!0)},ot=async P=>{P.preventDefault();const W={name:"",email:"",message:""};let ue=!0;const xe=_t.name.trim(),Ae=_t.message.trim();xe||(W.name="Name cannot be empty or just whitespace.",ue=!1),(!_t.email||!zm.isEmail(_t.email))&&(W.email="Please enter a valid email address.",ue=!1),Ae||(W.message="Message cannot be empty or just whitespace.",ue=!1),It(W),ue&&(ff({name:xe,email:_t.email}),yt(!1),y(Ze=>Ze.slice(0,-1)),await po())},[Kr,Oe]=Z.useState({});return Z.useEffect(()=>{mn&&(h.forEach((P,W)=>{if(!P.isBot)return;const ue=Lp(P.text);if(!(W in Kr)||Kr[W]<ue.length){let xe;const Ae=Ze=>{Ze<ue.length&&(xe=setTimeout(()=>{Oe(Tt=>({...Tt,[W]:Ze+1})),Ae(Ze+1)},Br))};return W in Kr?Ae(Kr[W]):(Oe(Ze=>({...Ze,[W]:1})),Ae(1)),()=>clearTimeout(xe)}}),Oe(P=>{const W={};return h.forEach((ue,xe)=>{P[xe]!==void 0&&(W[xe]=P[xe])}),W}))},[h,mn]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(T0e,{}),M.jsxs(c0e,{$topOffset:Bn,$isLeft:Q,children:[!Ie&&B.length>0&&B[Ne]&&Ee&&M.jsx(A0e,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,style:{display:"flex",flexDirection:Q?"row":"row-reverse",alignItems:"center",marginLeft:bt?"60px":"85px",marginRight:bt?"60px":"85px",left:Q?"24px":"auto",right:Q?"auto":"24px",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&(()=>{const P=B[Ne];return M.jsx(k0e,{children:M.jsx(s0e,{messages:[{question:P.question,isHighlighted:P.isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{mt(W=>{const ue=new Set(W);return ue.add(P.question),ue})},onClick:()=>{const W=P;wt(!0,"suggested_question_clicked"),mt(ue=>{const xe=new Set(ue);return xe.add(W.question),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),T?(Dt(!1),Pn(!0),k(!0),O(W)):(Dt(!1),Pn(!0),r({message:W.Follow_up_Question??W.question,answer:W.answer,products:W.products,fromKlaviyo:!1,leading_queries:W.leading_queries,followUpQuestion:W.Follow_up_Question,messType:"suggested_question"}))}})},P.question)})()}),M.jsxs(f0e,{$topOffset:Bn,$removeLogoBackground:t.removeLogoBackground,$isLeft:Q,style:{display:Ie?"none":"inline-flex"},children:[M.jsx(d0e,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Bn,$iconSize:te}),M.jsxs(h0e,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$isLeft:Q,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),wt(!Ie,"chat_button_clicked"),!Ie){const P=S();P.length>0?(y(P),Dt(!1),Pn(!0)):(Dt(!0),Pn(!1),setTimeout(()=>{Dt(!1),Pn(!0);const W={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([W])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[M.jsx(p0e,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!Ie&&se&&M.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})]})]}),Ie&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(v0e,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Bn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Et,"data-testid":"debales-chat-container",children:[M.jsxs(b0e,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(xP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(g0e,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(m0e,{})]})]}):M.jsx(y0e,{children:M.jsxs(x0e,{children:[M.jsx(xP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Qr,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{jt?pi(!0):wt(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(B0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs(w0e,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Xi&&((Re=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)==null?void 0:Re.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ho(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:$t,showModel:la,setShowModel:Ro,onVariantSelect:P=>{I(P.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:P.title,price:Number(P.price),link:`https://${t.shopifyShopDomain}/variants/${P.id}`,message:l,chatId:tr()+e})},botId:e}),Po&&M.jsx(Vk,{setShowExitModal:pi,handleCloseChatbot:Mr,chatId:tr()+e}),M.jsxs(_0e,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:be,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(I0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}}),M.jsxs(S0e,{children:[mn&&h.map((P,W)=>{const ue=P.isBot,xe=Lp(P.text);return P.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[ue&&M.jsxs(bP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:ue?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(wP,{children:[xe.slice(0,Kr[W]||0).map((Ae,Ze)=>M.jsx("div",{children:M.jsx(Fi,{isBot:ue,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:Ae})})},Ze)),P.collections&&(Te(e)?l===P.conversationId?vt.collections:!0:l===P.conversationId&&vt.collections)&&M.jsx(Hk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p}),P.products&&(Te(e)?l===P.conversationId?vt.products:!0:l===P.conversationId&&vt.products)&&M.jsx(Zk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:Ro,setSelectedProduct:li}),o&&M.jsx(r8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_e]),wt(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===P.conversationId&&vt.cartSummary&&V&&M.jsx(zk,{onCheckout:rr,onKeepShopping:()=>{H(!1)}}),ye&&ye.length>0&&l===P.conversationId&&vt.bulkItems&&M.jsx(Sk,{onClick:()=>fo(P.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(P)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:Ae=>{var Tt,tn;const Ze=typeof Ae=="function"?Ae(E):Ae;k(Ze),!Ze&&((tn=(Tt=t.pluginConfig)==null?void 0:Tt.collectedUserInfo)!=null&&tn.discount)&&ho(!0)},inChat:!0,showFormInstructions:!1})}),ut&&h.indexOf(P)===h.length-1&&M.jsxs(R0e,{onSubmit:ot,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),required:!0,error:Zt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),required:!0,error:Zt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),required:!0,error:Zt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(i8,{children:[M.jsxs(o8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(CP,{type:"text",required:!0,value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),placeholder:"John"}),Zt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.name})]}),M.jsxs(i8,{children:[M.jsxs(o8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(CP,{type:"email",required:!0,value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),placeholder:"olivia@untitledui.com"}),Zt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.email})]}),M.jsxs(i8,{children:[M.jsxs(o8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(O0e,{required:!0,value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),placeholder:"I need help with..."}),Zt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.message})]})]}),M.jsx(M0e,{children:M.jsx(D0e,{type:"submit",children:"Submit"})})]}),st&&!p&&l===P.conversationId&&M.jsx(Fi,{isBot:ue,children:M.jsx(Ds,{loading:st})})]})]}),!ue&&M.jsx(C0e,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!ue,children:M.jsx(Cd,{children:P.text})})}),h.length==1&&W==0&&!E&&M.jsx(r8,{children:we.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:we.leadingQueries})}):B.map((Ae,Ze)=>M.jsxs(SP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Ae.question)?.5:1},onClick:()=>{T?(k(!0),O({question:Ae.question,answer:Ae.answer,products:Ae.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae.question,answer:Ae.answer,products:Ae.products,leading_queries:Ae.leading_queries,followUpQuestion:Ae.Follow_up_Question,messType:"leading_query"}),mt(Tt=>{const tn=new Set(Tt);return tn.add(Ae.question),tn}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Ae.question})},disabled:p,$disabled:p,children:[Ae.question,M.jsx(_P,{color:t.callToActionFontColor})]},Ze))}),P.leading_queries&&P.leading_queries.length>0&&l===P.conversationId&&vt.leadingQueries&&!o&&!E&&M.jsx(r8,{children:P.leading_queries.map((Ae,Ze)=>M.jsxs(SP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:Ae,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:Ae})},disabled:p,$disabled:p,children:[Ae,M.jsx(_P,{color:t.callToActionFontColor})]},Ze))})]},W)}),(p||Xt)&&M.jsxs(bP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(wP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Xt})})})})]})]}),M.jsx($0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},N0e=fe.p`
|
|
3521
|
+
=> User Action: Klaviyo form closed`}return""},ue=xe=>{xe instanceof CustomEvent&&P(xe)};return window.addEventListener("klaviyoForms",ue),()=>{window.removeEventListener("klaviyoForms",ue)}},[ne,t,r]),Z.useEffect(()=>{const P=be.current;return Ie&&P?(P.addEventListener("scroll",nr),()=>{P&&P.removeEventListener("scroll",nr)}):()=>{}},[Ie,nr]);const[Xi,ho]=Z.useState(!1),Bn=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",po=async()=>{try{const P=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:_t.name,userEmail:_t.email,userMessage:_t.message,tag:"support"})});if(P.ok){const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Wt,conversationId:W}]),d(W),G(ue=>({...ue,leadingQueries:!0})),ln([]),console.log("Connected to support with existing user info:",jo())}else{const W=await P.json();console.error("Failed to connect to support:",W),y(ue=>[...ue,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(W=>[...W,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Qr=()=>{if(Te(e)){const xe=jp("https://test.thecollective.in/content/customersupport");xe.isValid&&(t!=null&&t.shopifyShopDomain&&(xe.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(xe.url.toString()),"_blank"));return}const P=jo();let W=[];const ue=h[h.length-1];ue!=null&&ue.leading_queries&&ue.leading_queries.length>0?W=ue.leading_queries:h.length<=1&&(W=B.flatMap(xe=>Array.isArray(xe)?xe.map(Ae=>Ae.question):[xe.question]).slice(0,4)),ln(W),P&&P.name&&P.email&&Gt({name:P==null?void 0:P.name,email:P==null?void 0:P.email,message:""}),y(xe=>[...xe,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),yt(!0)},ot=async P=>{P.preventDefault();const W={name:"",email:"",message:""};let ue=!0;const xe=_t.name.trim(),Ae=_t.message.trim();xe||(W.name="Name cannot be empty or just whitespace.",ue=!1),(!_t.email||!zm.isEmail(_t.email))&&(W.email="Please enter a valid email address.",ue=!1),Ae||(W.message="Message cannot be empty or just whitespace.",ue=!1),It(W),ue&&(ff({name:xe,email:_t.email}),yt(!1),y(Ze=>Ze.slice(0,-1)),await po())},[Kr,Re]=Z.useState({});return Z.useEffect(()=>{mn&&(h.forEach((P,W)=>{if(!P.isBot)return;const ue=Lp(P.text);if(!(W in Kr)||Kr[W]<ue.length){let xe;const Ae=Ze=>{Ze<ue.length&&(xe=setTimeout(()=>{Re(Tt=>({...Tt,[W]:Ze+1})),Ae(Ze+1)},Br))};return W in Kr?Ae(Kr[W]):(Re(Ze=>({...Ze,[W]:1})),Ae(1)),()=>clearTimeout(xe)}}),Re(P=>{const W={};return h.forEach((ue,xe)=>{P[xe]!==void 0&&(W[xe]=P[xe])}),W}))},[h,mn]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(T0e,{}),M.jsxs(c0e,{$topOffset:Bn,$isLeft:Q,children:[!Ie&&B.length>0&&B[Ne]&&Ee&&M.jsx(A0e,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,style:{display:"flex",flexDirection:Q?"row":"row-reverse",alignItems:"center",marginLeft:bt?"60px":"85px",marginRight:bt?"60px":"85px",left:Q?"24px":"auto",right:Q?"auto":"24px",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&(()=>{const P=B[Ne];return M.jsx(k0e,{children:M.jsx(s0e,{messages:[{question:P.question,isHighlighted:P.isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{mt(W=>{const ue=new Set(W);return ue.add(P.question),ue})},onClick:()=>{const W=P;wt(!0,"suggested_question_clicked"),mt(ue=>{const xe=new Set(ue);return xe.add(W.question),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),T?(Dt(!1),Pn(!0),k(!0),O(W)):(Dt(!1),Pn(!0),r({message:W.Follow_up_Question??W.question,answer:W.answer,products:W.products,fromKlaviyo:!1,leading_queries:W.leading_queries,followUpQuestion:W.Follow_up_Question,messType:"suggested_question"}))}})},P.question)})()}),M.jsxs(f0e,{$topOffset:Bn,$removeLogoBackground:t.removeLogoBackground,$isLeft:Q,style:{display:Ie?"none":"inline-flex"},children:[M.jsx(d0e,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Bn,$iconSize:te}),M.jsxs(h0e,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$isLeft:Q,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),wt(!Ie,"chat_button_clicked"),!Ie){const P=S();P.length>0?(y(P),Dt(!1),Pn(!0)):(Dt(!0),Pn(!1),setTimeout(()=>{Dt(!1),Pn(!0);const W={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([W])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[M.jsx(p0e,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!Ie&&se&&M.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})]})]}),Ie&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(v0e,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Bn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Et,"data-testid":"debales-chat-container",children:[M.jsxs(b0e,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(xP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(g0e,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(m0e,{})]})]}):M.jsx(y0e,{children:M.jsxs(x0e,{children:[M.jsx(xP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Qr,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{jt?pi(!0):wt(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(B0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs(w0e,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Xi&&((Oe=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)==null?void 0:Oe.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ho(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:$t,showModel:la,setShowModel:Ro,onVariantSelect:P=>{I(P.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:P.title,price:Number(P.price),link:`https://${t.shopifyShopDomain}/variants/${P.id}`,message:l,chatId:tr()+e})},botId:e}),Po&&M.jsx(Vk,{setShowExitModal:pi,handleCloseChatbot:Mr,chatId:tr()+e}),M.jsxs(_0e,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:be,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(I0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}}),M.jsxs(S0e,{children:[mn&&h.map((P,W)=>{const ue=P.isBot,xe=Lp(P.text);return P.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[ue&&M.jsxs(bP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:ue?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(wP,{children:[xe.slice(0,Kr[W]||0).map((Ae,Ze)=>M.jsx("div",{children:M.jsx(Fi,{isBot:ue,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:Ae})})},Ze)),P.collections&&(Te(e)?l===P.conversationId?vt.collections:!0:l===P.conversationId&&vt.collections)&&M.jsx(Hk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p}),P.products&&(Te(e)?l===P.conversationId?vt.products:!0:l===P.conversationId&&vt.products)&&M.jsx(Zk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:Ro,setSelectedProduct:li}),o&&M.jsx(r8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_e]),wt(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===P.conversationId&&vt.cartSummary&&V&&M.jsx(zk,{onCheckout:rr,onKeepShopping:()=>{H(!1)}}),ye&&ye.length>0&&l===P.conversationId&&vt.bulkItems&&M.jsx(Sk,{onClick:()=>fo(P.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(P)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:Ae=>{var Tt,tn;const Ze=typeof Ae=="function"?Ae(E):Ae;k(Ze),!Ze&&((tn=(Tt=t.pluginConfig)==null?void 0:Tt.collectedUserInfo)!=null&&tn.discount)&&ho(!0)},inChat:!0,showFormInstructions:!1})}),ut&&h.indexOf(P)===h.length-1&&M.jsxs(R0e,{onSubmit:ot,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),required:!0,error:Zt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),required:!0,error:Zt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),required:!0,error:Zt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(i8,{children:[M.jsxs(o8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(CP,{type:"text",required:!0,value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),placeholder:"John"}),Zt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.name})]}),M.jsxs(i8,{children:[M.jsxs(o8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(CP,{type:"email",required:!0,value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),placeholder:"olivia@untitledui.com"}),Zt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.email})]}),M.jsxs(i8,{children:[M.jsxs(o8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(O0e,{required:!0,value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),placeholder:"I need help with..."}),Zt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.message})]})]}),M.jsx(M0e,{children:M.jsx(D0e,{type:"submit",children:"Submit"})})]}),st&&!p&&l===P.conversationId&&M.jsx(Fi,{isBot:ue,children:M.jsx(Ds,{loading:st})})]})]}),!ue&&M.jsx(C0e,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!ue,children:M.jsx(Cd,{children:P.text})})}),h.length==1&&W==0&&!E&&M.jsx(r8,{children:we.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:we.leadingQueries})}):B.map((Ae,Ze)=>M.jsxs(SP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Ae.question)?.5:1},onClick:()=>{T?(k(!0),O({question:Ae.question,answer:Ae.answer,products:Ae.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae.question,answer:Ae.answer,products:Ae.products,leading_queries:Ae.leading_queries,followUpQuestion:Ae.Follow_up_Question,messType:"leading_query"}),mt(Tt=>{const tn=new Set(Tt);return tn.add(Ae.question),tn}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Ae.question})},disabled:p,$disabled:p,children:[Ae.question,M.jsx(_P,{color:t.callToActionFontColor})]},Ze))}),P.leading_queries&&P.leading_queries.length>0&&l===P.conversationId&&vt.leadingQueries&&!o&&!E&&M.jsx(r8,{children:P.leading_queries.map((Ae,Ze)=>M.jsxs(SP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:Ae,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:Ae})},disabled:p,$disabled:p,children:[Ae,M.jsx(_P,{color:t.callToActionFontColor})]},Ze))})]},W)}),(p||Xt)&&M.jsxs(bP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(wP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Xt})})})})]})]}),M.jsx($0e,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},N0e=fe.p`
|
|
3522
3522
|
margin: 0;
|
|
3523
3523
|
font-size: ${e=>e.theme.typography.fontSizes.lg};
|
|
3524
3524
|
min-height: 24px;
|
|
@@ -4158,11 +4158,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4158
4158
|
opacity: 0;
|
|
4159
4159
|
z-index: 1;
|
|
4160
4160
|
bottom: 0;
|
|
4161
|
-
`,pge=({botId:e})=>{var ce,Re;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),[Ie,We]=Z.useState(!1),[Et,dt]=Z.useState(!1),lt=Jc("acquisition_agent"),[rt,At]=Z.useState(window.location.pathname),gt=Z.useCallback(async()=>{try{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(P.ok){const W=await P.json(),ue=window.location.pathname,xe=3;de(Ae=>{const Ze=[...Ae],Tt={question:W.Popup_Message,answer:"",path:ue,nameSpace:e,type:"dynamic",Follow_up_Question:W.Follow_up_Question};return Ze.length>=xe&&Ze.shift(),Ze.push(Tt),console.log("updated questions in ChatbotComponent2",Ze),Ze})}else console.error("Failed to fetch new acquisition question")}catch(P){console.error("Error fetching new acquisition question:",P)}},[e,lt,t==null?void 0:t.show_bot]);Z.useEffect(()=>{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=()=>{const xe=window.location.pathname;xe!==rt&&(At(xe),gt())};window.addEventListener("popstate",P);const W=history.pushState,ue=history.replaceState;return history.pushState=function(...xe){W.apply(this,xe),P()},history.replaceState=function(...xe){ue.apply(this,xe),P()},()=>{window.removeEventListener("popstate",P),history.pushState=W,history.replaceState=ue}},[rt,gt]),Z.useEffect(()=>{const P=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Wr=document.documentElement.scrollHeight,cr=document.documentElement.clientHeight,br=window.scrollY,ua=Wr-cr;return ua<=0?en:br/ua*100>50?0:en}return en};if(ee&&!Ie&&(re.current=P(ee.showing_delay||2e3)),!ee||Ie||B.length===0)return;let W,ue,xe,Ae;const Ze=ee.showing_delay||2e3,Tt=ee.showing_delay||2e3,tn=ee.show_for||4e3,an=ee.hide_timing||4e3,Sn=async()=>{if(B.length===0||!B[Ne]){Ae=setTimeout(()=>{B.length>0&&ke(en=>en%B.length)},an+500);return}W=setTimeout(()=>{Ie||(he(!0),ue=setTimeout(async()=>{Ie||(N(!0),ae(!0),xe=setTimeout(async()=>{Ie||(ae(!1),N(!1),he(!1),ke(en=>(en+1)%B.length),Ae=setTimeout(()=>{Sn()},an))},tn))},Tt))},re.current)};return B.length===0&&e?gt().then(()=>{if(!Ie&&B.length>0){ke(0);const en=P(Ze);re.current=en,Sn()}}):!Ie&&B.length>0&&Sn(),()=>{clearTimeout(W),clearTimeout(ue),clearTimeout(xe),clearTimeout(Ae)}},[ee,Ie,gt,B,Ne,e]);const[bt,zt]=Z.useState(!1);Z.useEffect(()=>{const P=()=>{zt(window.matchMedia("(max-width: 768px)").matches)};return P(),()=>window.removeEventListener("resize",P)},[]);const[ne,le]=Z.useState(""),[_e,Fe]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let P=jo();if(!P&&window.Thinkific){const W=window.Thinkific.current_user;W&&(P={name:W.full_name,email:W.email},ff(P))}rc.init({projectName:e,debug:!1,testing:Cx}),P&&P.email&&(window.DebalesChat.identify(P.email,{name:P.name,phone:P.phone,email:P.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:P.email,first_name:P.name,phone:P.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const be=Z.useRef(null),Be=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[at,mt]=Z.useState(()=>{try{const P=sessionStorage.getItem(Be);return P?new Set(JSON.parse(P)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(at)))}catch(P){console.error("Failed to save to sessionStorage:",P)}},[at]);const wt=Z.useCallback((P,W)=>{P?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})),setTimeout(()=>{dt(!0)},50)):(dt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})))},[]);Z.useEffect(()=>{const P=W=>{W.detail.projectId===e&&(We(W.detail.isOpen),W.detail.isOpen&&setTimeout(()=>dt(!0),50),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen,source:W.detail.source}))};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[e,We,dt]);const[ye,He]=Z.useState(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),W=sessionStorage.getItem(P);return W?JSON.parse(W):[]});Z.useEffect(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(P,JSON.stringify(ye))},[ye,e]);const[ut,yt]=Z.useState(!1),[_t,Gt]=Z.useState({name:"",email:"",message:""}),[Wt,ln]=Z.useState([]),[Zt,It]=Z.useState({name:"",email:"",message:""}),jt=Jc("exit_model"),[vt,G]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[we,tt]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){tt(W=>({...W,leadingQueries:!0}));const P=setTimeout(()=>{tt(W=>({...W,leadingQueries:!1}))},2e3);return()=>clearTimeout(P)}},[h,E]);const[st,xt]=Z.useState(!1),[Vt,Lt]=Z.useState(!0),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),[vn,Qt]=Z.useState(!1),Br=500,nr=Z.useCallback(()=>{const P=be.current;if(!P){zn(!1),Qt(!1),Lt(!0);return}if(Te(e)){zn(!1);return}const W=P.scrollTop,ue=P.scrollHeight,xe=P.clientHeight,Ae=ue>xe,Ze=1,Tt=W<=Ze,tn=W+xe>=ue-Ze;Ae?(zn(!Tt),Qt(!tn),Lt(tn)):(zn(!1),Qt(!1),Lt(!0))},[be,zn,Qt,Lt]);Z.useEffect(()=>{const P=be.current;if(Ie&&P){nr(),P.addEventListener("scroll",nr);const W=new ResizeObserver(nr);return W.observe(P),()=>{P.removeEventListener("scroll",nr),W.unobserve(P)}}else Ie||(zn(!1),Qt(!1),Lt(!0))},[Ie,h,st,nr]),Z.useEffect(()=>{var P,W,ue,xe,Ae,Ze;if(h.length>0&&!p){const Tt=h[h.length-1],tn=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),an=Tt.isBot&&Tt.conversationId===l&&Tt.conversationId!==tn,Sn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Tt.conversationId===l;if(an){xt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Tt.conversationId||""),G({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Wr=en;const cr=[{type:"collections",condition:((P=Tt.collections)==null?void 0:P.length)&&((W=Tt.collections)==null?void 0:W.length)>0},{type:"products",condition:((ue=Tt.products)==null?void 0:ue.length)&&((xe=Tt.products)==null?void 0:xe.length)>0},{type:"leadingQueries",condition:((Ae=Tt.leading_queries)==null?void 0:Ae.length)&&((Ze=Tt.leading_queries)==null?void 0:Ze.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(ye==null?void 0:ye.length)>0}].filter(br=>br.condition);if(cr.length===0){xt(!1);return}cr.forEach(({type:br},ua)=>{setTimeout(()=>{if(G(Lr=>({...Lr,[br]:!0})),Vt&&be.current){const Lr=be.current;Lr.scrollHeight-Lr.scrollTop<=Lr.clientHeight&&$a(be)}ua===cr.length-1&&xt(!1)},Wr),Wr+=en})}else Sn&&G(en=>({...en,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,ye==null?void 0:ye.length,Vt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const P=be.current;P&&Vt&&P.scrollHeight-P.scrollTop<=P.clientHeight+100&&setTimeout(()=>$a(be),100)}},[h.length,o,Vt]),Z.useEffect(()=>{const P=document.querySelector('meta[name="viewport"]'),W=P==null?void 0:P.content;if(Ie){let ue=P;const xe=window.matchMedia("(max-width: 768px)").matches;ue?ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ue=document.createElement("meta"),ue.name="viewport",ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ue)),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Ae=ue;return()=>{W&&Ae&&(Ae.content=W),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(Ie&&h.length>0&&!o){const P=setTimeout(()=>{be.current&&$a(be)},150);return()=>clearTimeout(P)}},[Ie,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(be),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(!1),[$t,li]=Z.useState(null),Mr=async P=>{const W=tr();if(dt(!1),P&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:W,userRating:P,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ue){console.error("Error submitting rating:",ue)}setTimeout(()=>{pi(!1),wt(!1,"close_button_clicked")},1e3)},fo=P=>{m(!0),ye.forEach(ue=>{I(ue.id,ue.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:ye,message:P});const W=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:P,isBot:!0}];y(W),x(W),d(P),He([]),m(!1)},Ti=()=>{var P;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((P=window.shiprocketCheckoutEvents)!=null&&P.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},rr=async P=>{P.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Ti()&&wt(!1,"checkout_clicked")};Z.useEffect(()=>{const P=xE(w);de(W=>[...P.filter(xe=>!W.some(Ae=>Ae.question===xe.question))])},[w]),Z.useEffect(()=>{const P=xe=>{const Ae=xe.detail.formId;switch(xe.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Tt=W(Ae);Tt&&le(Tt)},800);break;case"close":ne&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{wt(!0,"klaviyo_form_closed"),Fe(Ae),r({message:ne,fromKlaviyo:!0})},1e4);break}},W=xe=>{const Ae=document.querySelector(`[data-testid="klaviyo-form-${xe}"]`);if(console.log(`formElement text ${xe} =>`,Ae==null?void 0:Ae.innerText,Ae==null?void 0:Ae.textContent),Ae instanceof HTMLElement){const Ze=Ae.innerText||Ae.textContent;if(Ze)return console.log("Found form text:",Ze),`=> Klaviyo form content:
|
|
4161
|
+
`,pge=({botId:e})=>{var ce,Oe;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),[Ie,We]=Z.useState(!1),[Et,dt]=Z.useState(!1),lt=Jc("acquisition_agent"),[rt,At]=Z.useState(window.location.pathname),gt=Z.useCallback(async()=>{try{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(P.ok){const W=await P.json(),ue=window.location.pathname,xe=3;de(Ae=>{const Ze=[...Ae],Tt={question:W.Popup_Message,answer:"",path:ue,nameSpace:e,type:"dynamic",Follow_up_Question:W.Follow_up_Question};return Ze.length>=xe&&Ze.shift(),Ze.push(Tt),console.log("updated questions in ChatbotComponent2",Ze),Ze})}else console.error("Failed to fetch new acquisition question")}catch(P){console.error("Error fetching new acquisition question:",P)}},[e,lt,t==null?void 0:t.show_bot]);Z.useEffect(()=>{if(!lt||(t==null?void 0:t.show_bot)===!1)return;const P=()=>{const xe=window.location.pathname;xe!==rt&&(At(xe),gt())};window.addEventListener("popstate",P);const W=history.pushState,ue=history.replaceState;return history.pushState=function(...xe){W.apply(this,xe),P()},history.replaceState=function(...xe){ue.apply(this,xe),P()},()=>{window.removeEventListener("popstate",P),history.pushState=W,history.replaceState=ue}},[rt,gt]),Z.useEffect(()=>{const P=en=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Wr=document.documentElement.scrollHeight,cr=document.documentElement.clientHeight,br=window.scrollY,ua=Wr-cr;return ua<=0?en:br/ua*100>50?0:en}return en};if(ee&&!Ie&&(re.current=P(ee.showing_delay||2e3)),!ee||Ie||B.length===0)return;let W,ue,xe,Ae;const Ze=ee.showing_delay||2e3,Tt=ee.showing_delay||2e3,tn=ee.show_for||4e3,an=ee.hide_timing||4e3,Sn=async()=>{if(B.length===0||!B[Ne]){Ae=setTimeout(()=>{B.length>0&&ke(en=>en%B.length)},an+500);return}W=setTimeout(()=>{Ie||(he(!0),ue=setTimeout(async()=>{Ie||(N(!0),ae(!0),xe=setTimeout(async()=>{Ie||(ae(!1),N(!1),he(!1),ke(en=>(en+1)%B.length),Ae=setTimeout(()=>{Sn()},an))},tn))},Tt))},re.current)};return B.length===0&&e?gt().then(()=>{if(!Ie&&B.length>0){ke(0);const en=P(Ze);re.current=en,Sn()}}):!Ie&&B.length>0&&Sn(),()=>{clearTimeout(W),clearTimeout(ue),clearTimeout(xe),clearTimeout(Ae)}},[ee,Ie,gt,B,Ne,e]);const[bt,zt]=Z.useState(!1);Z.useEffect(()=>{const P=()=>{zt(window.matchMedia("(max-width: 768px)").matches)};return P(),()=>window.removeEventListener("resize",P)},[]);const[ne,le]=Z.useState(""),[_e,Fe]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let P=jo();if(!P&&window.Thinkific){const W=window.Thinkific.current_user;W&&(P={name:W.full_name,email:W.email},ff(P))}rc.init({projectName:e,debug:!1,testing:Cx}),P&&P.email&&(window.DebalesChat.identify(P.email,{name:P.name,phone:P.phone,email:P.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:P.email,first_name:P.name,phone:P.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const be=Z.useRef(null),Be=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[at,mt]=Z.useState(()=>{try{const P=sessionStorage.getItem(Be);return P?new Set(JSON.parse(P)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Be,JSON.stringify(Array.from(at)))}catch(P){console.error("Failed to save to sessionStorage:",P)}},[at]);const wt=Z.useCallback((P,W)=>{P?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})),setTimeout(()=>{dt(!0)},50)):(dt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:P,source:W,projectId:e}})))},[]);Z.useEffect(()=>{const P=W=>{W.detail.projectId===e&&(We(W.detail.isOpen),W.detail.isOpen&&setTimeout(()=>dt(!0),50),window.DebalesChat.isOpen=W.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:W.detail.isOpen,source:W.detail.source}))};return window.addEventListener(hi.OPEN_STATE_CHANGE,P),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,P)}},[e,We,dt]);const[ye,He]=Z.useState(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),W=sessionStorage.getItem(P);return W?JSON.parse(W):[]});Z.useEffect(()=>{const P=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(P,JSON.stringify(ye))},[ye,e]);const[ut,yt]=Z.useState(!1),[_t,Gt]=Z.useState({name:"",email:"",message:""}),[Wt,ln]=Z.useState([]),[Zt,It]=Z.useState({name:"",email:"",message:""}),jt=Jc("exit_model"),[vt,G]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[we,tt]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){tt(W=>({...W,leadingQueries:!0}));const P=setTimeout(()=>{tt(W=>({...W,leadingQueries:!1}))},2e3);return()=>clearTimeout(P)}},[h,E]);const[st,xt]=Z.useState(!1),[Vt,Lt]=Z.useState(!0),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),[vn,Qt]=Z.useState(!1),Br=500,nr=Z.useCallback(()=>{const P=be.current;if(!P){zn(!1),Qt(!1),Lt(!0);return}if(Te(e)){zn(!1);return}const W=P.scrollTop,ue=P.scrollHeight,xe=P.clientHeight,Ae=ue>xe,Ze=1,Tt=W<=Ze,tn=W+xe>=ue-Ze;Ae?(zn(!Tt),Qt(!tn),Lt(tn)):(zn(!1),Qt(!1),Lt(!0))},[be,zn,Qt,Lt]);Z.useEffect(()=>{const P=be.current;if(Ie&&P){nr(),P.addEventListener("scroll",nr);const W=new ResizeObserver(nr);return W.observe(P),()=>{P.removeEventListener("scroll",nr),W.unobserve(P)}}else Ie||(zn(!1),Qt(!1),Lt(!0))},[Ie,h,st,nr]),Z.useEffect(()=>{var P,W,ue,xe,Ae,Ze;if(h.length>0&&!p){const Tt=h[h.length-1],tn=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),an=Tt.isBot&&Tt.conversationId===l&&Tt.conversationId!==tn,Sn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Tt.conversationId===l;if(an){xt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Tt.conversationId||""),G({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const en=2e3;let Wr=en;const cr=[{type:"collections",condition:((P=Tt.collections)==null?void 0:P.length)&&((W=Tt.collections)==null?void 0:W.length)>0},{type:"products",condition:((ue=Tt.products)==null?void 0:ue.length)&&((xe=Tt.products)==null?void 0:xe.length)>0},{type:"leadingQueries",condition:((Ae=Tt.leading_queries)==null?void 0:Ae.length)&&((Ze=Tt.leading_queries)==null?void 0:Ze.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(ye==null?void 0:ye.length)>0}].filter(br=>br.condition);if(cr.length===0){xt(!1);return}cr.forEach(({type:br},ua)=>{setTimeout(()=>{if(G(Lr=>({...Lr,[br]:!0})),Vt&&be.current){const Lr=be.current;Lr.scrollHeight-Lr.scrollTop<=Lr.clientHeight&&$a(be)}ua===cr.length-1&&xt(!1)},Wr),Wr+=en})}else Sn&&G(en=>({...en,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,ye==null?void 0:ye.length,Vt,e]),Z.useEffect(()=>{if(!o&&h.length>0){const P=be.current;P&&Vt&&P.scrollHeight-P.scrollTop<=P.clientHeight+100&&setTimeout(()=>$a(be),100)}},[h.length,o,Vt]),Z.useEffect(()=>{const P=document.querySelector('meta[name="viewport"]'),W=P==null?void 0:P.content;if(Ie){let ue=P;const xe=window.matchMedia("(max-width: 768px)").matches;ue?ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(ue=document.createElement("meta"),ue.name="viewport",ue.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(ue)),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const Ae=ue;return()=>{W&&Ae&&(Ae.content=W),xe&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[Ie,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(Ie&&h.length>0&&!o){const P=setTimeout(()=>{be.current&&$a(be)},150);return()=>clearTimeout(P)}},[Ie,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(be),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(!1),[$t,li]=Z.useState(null),Mr=async P=>{const W=tr();if(dt(!1),P&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:W,userRating:P,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(ue){console.error("Error submitting rating:",ue)}setTimeout(()=>{pi(!1),wt(!1,"close_button_clicked")},1e3)},fo=P=>{m(!0),ye.forEach(ue=>{I(ue.id,ue.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:ye,message:P});const W=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:P,isBot:!0}];y(W),x(W),d(P),He([]),m(!1)},Ti=()=>{var P;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((P=window.shiprocketCheckoutEvents)!=null&&P.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},rr=async P=>{P.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Ti()&&wt(!1,"checkout_clicked")};Z.useEffect(()=>{const P=xE(w);de(W=>[...P.filter(xe=>!W.some(Ae=>Ae.question===xe.question))])},[w]),Z.useEffect(()=>{const P=xe=>{const Ae=xe.detail.formId;switch(xe.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Tt=W(Ae);Tt&&le(Tt)},800);break;case"close":ne&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{wt(!0,"klaviyo_form_closed"),Fe(Ae),r({message:ne,fromKlaviyo:!0})},1e4);break}},W=xe=>{const Ae=document.querySelector(`[data-testid="klaviyo-form-${xe}"]`);if(console.log(`formElement text ${xe} =>`,Ae==null?void 0:Ae.innerText,Ae==null?void 0:Ae.textContent),Ae instanceof HTMLElement){const Ze=Ae.innerText||Ae.textContent;if(Ze)return console.log("Found form text:",Ze),`=> Klaviyo form content:
|
|
4162
4162
|
|
|
4163
4163
|
`+Ze+`
|
|
4164
4164
|
|
|
4165
|
-
=> User Action: Klaviyo form closed`}return""},ue=xe=>{xe instanceof CustomEvent&&P(xe)};return window.addEventListener("klaviyoForms",ue),()=>{window.removeEventListener("klaviyoForms",ue)}},[ne,t,r]),Z.useEffect(()=>{const P=be.current;return Ie&&P?(P.addEventListener("scroll",nr),()=>{P&&P.removeEventListener("scroll",nr)}):()=>{}},[Ie,nr]);const[Xi,ho]=Z.useState(!1),Bn=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",po=async()=>{try{const P=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:_t.name,userEmail:_t.email,userMessage:_t.message,tag:"support"})});if(P.ok){const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Wt,conversationId:W}]),d(W),G(ue=>({...ue,leadingQueries:!0})),ln([]),console.log("Connected to support with existing user info:",jo())}else{const W=await P.json();console.error("Failed to connect to support:",W),y(ue=>[...ue,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(W=>[...W,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Qr=()=>{if(Te(e)){const xe=jp("https://test.thecollective.in/content/customersupport");xe.isValid&&(t!=null&&t.shopifyShopDomain&&(xe.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(xe.url.toString()),"_blank"));return}const P=jo();let W=[];const ue=h[h.length-1];ue!=null&&ue.leading_queries&&ue.leading_queries.length>0?W=ue.leading_queries:h.length<=1&&(W=B.flatMap(xe=>Array.isArray(xe)?xe.map(Ae=>Ae.question):[xe.question]).slice(0,4)),ln(W),P&&P.name&&P.email&&Gt({name:P==null?void 0:P.name,email:P==null?void 0:P.email,message:""}),y(xe=>[...xe,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),yt(!0)},ot=async P=>{P.preventDefault();const W={name:"",email:"",message:""};let ue=!0;const xe=_t.name.trim(),Ae=_t.message.trim();xe||(W.name="Name cannot be empty or just whitespace.",ue=!1),(!_t.email||!zm.isEmail(_t.email))&&(W.email="Please enter a valid email address.",ue=!1),Ae||(W.message="Message cannot be empty or just whitespace.",ue=!1),It(W),ue&&(ff({name:xe,email:_t.email}),yt(!1),y(Ze=>Ze.slice(0,-1)),await po())},[Kr,Oe]=Z.useState({});return Z.useEffect(()=>{mn&&(h.forEach((P,W)=>{if(!P.isBot)return;const ue=Lp(P.text);if(!(W in Kr)||Kr[W]<ue.length){let xe;const Ae=Ze=>{Ze<ue.length&&(xe=setTimeout(()=>{Oe(Tt=>({...Tt,[W]:Ze+1})),Ae(Ze+1)},Br))};return W in Kr?Ae(Kr[W]):(Oe(Ze=>({...Ze,[W]:1})),Ae(1)),()=>clearTimeout(xe)}}),Oe(P=>{const W={};return h.forEach((ue,xe)=>{P[xe]!==void 0&&(W[xe]=P[xe])}),W}))},[h,mn]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(age,{}),M.jsx(H0e,{$topOffset:Bn,$isLeft:Q,children:M.jsxs(rge,{$isLeft:Q,$removeLogoBackground:t.removeLogoBackground,children:[!Ie&&B.length>0&&B[Ne]&&Ee&&M.jsx(ige,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$isLeft:Q,style:{display:"flex",flexDirection:Q?"row":"row-reverse",alignItems:"center",marginRight:Q?"0px":bt?"10px":"5px",marginTop:bt?"0px":"10px",left:Q?"24px":"auto",right:Q?"auto":"24px",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&(()=>{const P=B[Ne];return M.jsx(oge,{children:M.jsx(F0e,{messages:[{question:P.question,isHighlighted:P.isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,isLeft:Q,onClose:()=>{mt(W=>{const ue=new Set(W);return ue.add(P.question),ue})},onClick:()=>{const W=P;wt(!0,"suggested_question_clicked"),mt(ue=>{const xe=new Set(ue);return xe.add(W.question),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),T?(Dt(!1),Pn(!0),k(!0),O(W)):(Dt(!1),Pn(!0),r({message:W.Follow_up_Question??W.question,answer:W.answer,products:W.products,fromKlaviyo:!1,leading_queries:W.leading_queries,messType:"suggested_question"}))}})},P.question)})()}),M.jsx(P0e,{$topOffset:Bn,$removeLogoBackground:t.removeLogoBackground,style:{display:Ie?"none":"inline-flex"},children:M.jsxs(q0e,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),wt(!Ie,"chat_button_clicked"),!Ie){const P=S();P.length>0?(y(P),Dt(!1),Pn(!0)):(Dt(!0),Pn(!1),setTimeout(()=>{Dt(!1),Pn(!0);const W={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([W])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[M.jsx(G0e,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!Ie&&se&&!Ee&&M.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})})]})}),Ie&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(Z0e,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Bn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Et,"data-testid":"debales-chat-container",children:[M.jsxs(W0e,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(EP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(V0e,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Y0e,{})]})]}):M.jsx(Q0e,{children:M.jsxs(K0e,{children:[M.jsx(EP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Qr,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{jt?pi(!0):wt(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(hge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs(ege,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Xi&&((Re=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)==null?void 0:Re.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ho(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:$t,showModel:la,setShowModel:Ro,onVariantSelect:P=>{I(P.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:P.title,price:Number(P.price),link:`https://${t.shopifyShopDomain}/variants/${P.id}`,message:l,chatId:tr()+e})},botId:e}),Po&&M.jsx(Vk,{setShowExitModal:pi,handleCloseChatbot:Mr,chatId:tr()+e}),M.jsxs(X0e,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:be,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(fge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}}),M.jsxs(J0e,{children:[mn&&h.map((P,W)=>{const ue=P.isBot,xe=Lp(P.text);return P.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[ue&&M.jsxs(AP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:ue?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(RP,{children:[xe.slice(0,Kr[W]||0).map((Ae,Ze)=>M.jsx("div",{children:M.jsx(Fi,{isBot:ue,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:Ae})})},Ze)),P.collections&&(Te(e)?l===P.conversationId?vt.collections:!0:l===P.conversationId&&vt.collections)&&M.jsx(Hk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p}),P.products&&(Te(e)?l===P.conversationId?vt.products:!0:l===P.conversationId&&vt.products)&&M.jsx(Zk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:Ro,setSelectedProduct:li}),o&&M.jsx(s8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_e]),wt(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===P.conversationId&&vt.cartSummary&&V&&M.jsx(zk,{onCheckout:rr,onKeepShopping:()=>{H(!1)}}),ye&&ye.length>0&&l===P.conversationId&&vt.bulkItems&&M.jsx(Sk,{onClick:()=>fo(P.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(P)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:Ae=>{var Tt,tn;const Ze=typeof Ae=="function"?Ae(E):Ae;k(Ze),!Ze&&((tn=(Tt=t.pluginConfig)==null?void 0:Tt.collectedUserInfo)!=null&&tn.discount)&&ho(!0)},inChat:!0,showFormInstructions:!1})}),ut&&h.indexOf(P)===h.length-1&&M.jsxs(sge,{onSubmit:ot,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),required:!0,error:Zt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),required:!0,error:Zt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),required:!0,error:Zt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(l8,{children:[M.jsxs(u8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(OP,{type:"text",required:!0,value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),placeholder:"John"}),Zt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.name})]}),M.jsxs(l8,{children:[M.jsxs(u8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(OP,{type:"email",required:!0,value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),placeholder:"olivia@untitledui.com"}),Zt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.email})]}),M.jsxs(l8,{children:[M.jsxs(u8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(lge,{required:!0,value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),placeholder:"I need help with..."}),Zt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.message})]})]}),M.jsx(cge,{children:M.jsx(uge,{type:"submit",children:"Submit"})})]}),st&&!p&&l===P.conversationId&&M.jsx(Fi,{isBot:ue,children:M.jsx(Ds,{loading:st,loadingPhrases:["π¨ Loading","β¨ Almost","π Ready"]})})]})]}),!ue&&M.jsx(tge,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!ue,children:M.jsx(Cd,{children:P.text})})}),h.length==1&&W==0&&!E&&M.jsx(s8,{children:we.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:we.leadingQueries})}):B.map((Ae,Ze)=>M.jsxs(TP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Ae.question)?.5:1},onClick:()=>{T?(k(!0),O({question:Ae.question,answer:Ae.answer,products:Ae.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae.question,answer:Ae.answer,products:Ae.products,messType:"leading_query"}),mt(Tt=>{const tn=new Set(Tt);return tn.add(Ae.question),tn}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Ae.question})},disabled:p,$disabled:p,children:[Ae.question,M.jsx(kP,{color:t.callToActionFontColor})]},Ze))}),P.leading_queries&&P.leading_queries.length>0&&l===P.conversationId&&vt.leadingQueries&&!o&&!E&&M.jsx(s8,{children:P.leading_queries.map((Ae,Ze)=>M.jsxs(TP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:Ae,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:Ae})},disabled:p,$disabled:p,children:[Ae,M.jsx(kP,{color:t.callToActionFontColor})]},Ze))})]},W)}),(p||Xt)&&M.jsxs(AP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(RP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Xt})})})})]})]}),M.jsx(dge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},gge=fe.p`
|
|
4165
|
+
=> User Action: Klaviyo form closed`}return""},ue=xe=>{xe instanceof CustomEvent&&P(xe)};return window.addEventListener("klaviyoForms",ue),()=>{window.removeEventListener("klaviyoForms",ue)}},[ne,t,r]),Z.useEffect(()=>{const P=be.current;return Ie&&P?(P.addEventListener("scroll",nr),()=>{P&&P.removeEventListener("scroll",nr)}):()=>{}},[Ie,nr]);const[Xi,ho]=Z.useState(!1),Bn=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",po=async()=>{try{const P=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:_t.name,userEmail:_t.email,userMessage:_t.message,tag:"support"})});if(P.ok){const W=`support-confirm-${Date.now()}`;y(ue=>[...ue,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:Wt,conversationId:W}]),d(W),G(ue=>({...ue,leadingQueries:!0})),ln([]),console.log("Connected to support with existing user info:",jo())}else{const W=await P.json();console.error("Failed to connect to support:",W),y(ue=>[...ue,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(W=>[...W,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Qr=()=>{if(Te(e)){const xe=jp("https://test.thecollective.in/content/customersupport");xe.isValid&&(t!=null&&t.shopifyShopDomain&&(xe.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(xe.url.toString()),"_blank"));return}const P=jo();let W=[];const ue=h[h.length-1];ue!=null&&ue.leading_queries&&ue.leading_queries.length>0?W=ue.leading_queries:h.length<=1&&(W=B.flatMap(xe=>Array.isArray(xe)?xe.map(Ae=>Ae.question):[xe.question]).slice(0,4)),ln(W),P&&P.name&&P.email&&Gt({name:P==null?void 0:P.name,email:P==null?void 0:P.email,message:""}),y(xe=>[...xe,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),yt(!0)},ot=async P=>{P.preventDefault();const W={name:"",email:"",message:""};let ue=!0;const xe=_t.name.trim(),Ae=_t.message.trim();xe||(W.name="Name cannot be empty or just whitespace.",ue=!1),(!_t.email||!zm.isEmail(_t.email))&&(W.email="Please enter a valid email address.",ue=!1),Ae||(W.message="Message cannot be empty or just whitespace.",ue=!1),It(W),ue&&(ff({name:xe,email:_t.email}),yt(!1),y(Ze=>Ze.slice(0,-1)),await po())},[Kr,Re]=Z.useState({});return Z.useEffect(()=>{mn&&(h.forEach((P,W)=>{if(!P.isBot)return;const ue=Lp(P.text);if(!(W in Kr)||Kr[W]<ue.length){let xe;const Ae=Ze=>{Ze<ue.length&&(xe=setTimeout(()=>{Re(Tt=>({...Tt,[W]:Ze+1})),Ae(Ze+1)},Br))};return W in Kr?Ae(Kr[W]):(Re(Ze=>({...Ze,[W]:1})),Ae(1)),()=>clearTimeout(xe)}}),Re(P=>{const W={};return h.forEach((ue,xe)=>{P[xe]!==void 0&&(W[xe]=P[xe])}),W}))},[h,mn]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(age,{}),M.jsx(H0e,{$topOffset:Bn,$isLeft:Q,children:M.jsxs(rge,{$isLeft:Q,$removeLogoBackground:t.removeLogoBackground,children:[!Ie&&B.length>0&&B[Ne]&&Ee&&M.jsx(ige,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$isLeft:Q,style:{display:"flex",flexDirection:Q?"row":"row-reverse",alignItems:"center",marginRight:Q?"0px":bt?"10px":"5px",marginTop:bt?"0px":"10px",left:Q?"24px":"auto",right:Q?"auto":"24px",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&(()=>{const P=B[Ne];return M.jsx(oge,{children:M.jsx(F0e,{messages:[{question:P.question,isHighlighted:P.isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,isLeft:Q,onClose:()=>{mt(W=>{const ue=new Set(W);return ue.add(P.question),ue})},onClick:()=>{const W=P;wt(!0,"suggested_question_clicked"),mt(ue=>{const xe=new Set(ue);return xe.add(W.question),xe}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:W}),T?(Dt(!1),Pn(!0),k(!0),O(W)):(Dt(!1),Pn(!0),r({message:W.Follow_up_Question??W.question,answer:W.answer,products:W.products,fromKlaviyo:!1,leading_queries:W.leading_queries,messType:"suggested_question"}))}})},P.question)})()}),M.jsx(P0e,{$topOffset:Bn,$removeLogoBackground:t.removeLogoBackground,style:{display:Ie?"none":"inline-flex"},children:M.jsxs(q0e,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Bn,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),wt(!Ie,"chat_button_clicked"),!Ie){const P=S();P.length>0?(y(P),Dt(!1),Pn(!0)):(Dt(!0),Pn(!1),setTimeout(()=>{Dt(!1),Pn(!0);const W={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([W])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:Ie?"none":"inline-flex"},children:[M.jsx(G0e,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!Ie&&se&&!Ee&&M.jsx("div",{style:{position:"absolute",top:"-5px",right:"-5px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})})]})}),Ie&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(Z0e,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Bn,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:Et,"data-testid":"debales-chat-container",children:[M.jsxs(W0e,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(EP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(V0e,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Y0e,{})]})]}):M.jsx(Q0e,{children:M.jsxs(K0e,{children:[M.jsx(EP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Qr,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{jt?pi(!0):wt(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(hge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs(ege,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Xi&&((Oe=(ce=t.pluginConfig)==null?void 0:ce.collectedUserInfo)==null?void 0:Oe.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{ho(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:$t,showModel:la,setShowModel:Ro,onVariantSelect:P=>{I(P.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:P.title,price:Number(P.price),link:`https://${t.shopifyShopDomain}/variants/${P.id}`,message:l,chatId:tr()+e})},botId:e}),Po&&M.jsx(Vk,{setShowExitModal:pi,handleCloseChatbot:Mr,chatId:tr()+e}),M.jsxs(X0e,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:be,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(fge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}}),M.jsxs(J0e,{children:[mn&&h.map((P,W)=>{const ue=P.isBot,xe=Lp(P.text);return P.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[ue&&M.jsxs(AP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:ue?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(RP,{children:[xe.slice(0,Kr[W]||0).map((Ae,Ze)=>M.jsx("div",{children:M.jsx(Fi,{isBot:ue,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:Ae})})},Ze)),P.collections&&(Te(e)?l===P.conversationId?vt.collections:!0:l===P.conversationId&&vt.collections)&&M.jsx(Hk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p}),P.products&&(Te(e)?l===P.conversationId?vt.products:!0:l===P.conversationId&&vt.products)&&M.jsx(Zk,{message:P,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:Ro,setSelectedProduct:li}),o&&M.jsx(s8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",_e]),wt(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===P.conversationId&&vt.cartSummary&&V&&M.jsx(zk,{onCheckout:rr,onKeepShopping:()=>{H(!1)}}),ye&&ye.length>0&&l===P.conversationId&&vt.bulkItems&&M.jsx(Sk,{onClick:()=>fo(P.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(P)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:Ae=>{var Tt,tn;const Ze=typeof Ae=="function"?Ae(E):Ae;k(Ze),!Ze&&((tn=(Tt=t.pluginConfig)==null?void 0:Tt.collectedUserInfo)!=null&&tn.discount)&&ho(!0)},inChat:!0,showFormInstructions:!1})}),ut&&h.indexOf(P)===h.length-1&&M.jsxs(sge,{onSubmit:ot,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),required:!0,error:Zt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),required:!0,error:Zt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),required:!0,error:Zt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(l8,{children:[M.jsxs(u8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(OP,{type:"text",required:!0,value:_t.name,onChange:Ae=>Gt(Ze=>({...Ze,name:Ae.target.value})),placeholder:"John"}),Zt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.name})]}),M.jsxs(l8,{children:[M.jsxs(u8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(OP,{type:"email",required:!0,value:_t.email,onChange:Ae=>Gt(Ze=>({...Ze,email:Ae.target.value})),placeholder:"olivia@untitledui.com"}),Zt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.email})]}),M.jsxs(l8,{children:[M.jsxs(u8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(lge,{required:!0,value:_t.message,onChange:Ae=>Gt(Ze=>({...Ze,message:Ae.target.value})),placeholder:"I need help with..."}),Zt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Zt.message})]})]}),M.jsx(cge,{children:M.jsx(uge,{type:"submit",children:"Submit"})})]}),st&&!p&&l===P.conversationId&&M.jsx(Fi,{isBot:ue,children:M.jsx(Ds,{loading:st,loadingPhrases:["π¨ Loading","β¨ Almost","π Ready"]})})]})]}),!ue&&M.jsx(tge,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!ue,children:M.jsx(Cd,{children:P.text})})}),h.length==1&&W==0&&!E&&M.jsx(s8,{children:we.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:we.leadingQueries})}):B.map((Ae,Ze)=>M.jsxs(TP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:at.has(Ae.question)?.5:1},onClick:()=>{T?(k(!0),O({question:Ae.question,answer:Ae.answer,products:Ae.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae.question,answer:Ae.answer,products:Ae.products,messType:"leading_query"}),mt(Tt=>{const tn=new Set(Tt);return tn.add(Ae.question),tn}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:Ae.question})},disabled:p,$disabled:p,children:[Ae.question,M.jsx(kP,{color:t.callToActionFontColor})]},Ze))}),P.leading_queries&&P.leading_queries.length>0&&l===P.conversationId&&vt.leadingQueries&&!o&&!E&&M.jsx(s8,{children:P.leading_queries.map((Ae,Ze)=>M.jsxs(TP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:Ae,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:Ae,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:Ae})},disabled:p,$disabled:p,children:[Ae,M.jsx(kP,{color:t.callToActionFontColor})]},Ze))})]},W)}),(p||Xt)&&M.jsxs(AP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(RP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Xt})})})})]})]}),M.jsx(dge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:vn?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"100%",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},gge=fe.p`
|
|
4166
4166
|
margin: 0;
|
|
4167
4167
|
font-size: ${e=>e.theme.typography.fontSizes.lg};
|
|
4168
4168
|
text-align: left;
|
|
@@ -4815,11 +4815,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4815
4815
|
opacity: 0;
|
|
4816
4816
|
z-index: 1;
|
|
4817
4817
|
bottom: 0;
|
|
4818
|
-
`,Vge=({botId:e})=>{var Kr,Oe;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),Ie=Jc("acquisition_agent"),[We,Et]=Z.useState(window.location.pathname),dt=Z.useCallback(async()=>{try{if(!Ie||(t==null?void 0:t.show_bot)===!1)return;const ce=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(ce.ok){const Re=await ce.json(),P=window.location.pathname,W=3;de(ue=>{const xe=[...ue],Ae={question:Re.Popup_Message,answer:"",path:P,nameSpace:e,type:"dynamic",Follow_up_Question:Re.Follow_up_Question};return xe.length>=W&&xe.shift(),xe.push(Ae),console.log("updated quesitons",xe),xe})}else console.error("Failed to fetch new acquisition question")}catch(ce){console.error("Error fetching new acquisition question:",ce)}},[e,Ie,t==null?void 0:t.show_bot]),[lt,rt]=Z.useState(!1),[At,gt]=Z.useState(!1),[bt,zt]=Z.useState(""),[ne,le]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let ce=jo();if(!ce&&window.Thinkific){const Re=window.Thinkific.current_user;Re&&(ce={name:Re.full_name,email:Re.email},ff(ce))}rc.init({projectName:e,debug:!1,testing:Cx}),ce&&ce.email&&(window.DebalesChat.identify(ce.email,{name:ce.name,phone:ce.phone,email:ce.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:ce.email,first_name:ce.name,phone:ce.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const _e=Z.useRef(null),Fe=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[be,Be]=Z.useState(()=>{try{const ce=sessionStorage.getItem(Fe);return ce?new Set(JSON.parse(ce)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Fe,JSON.stringify(Array.from(be)))}catch(ce){console.error("Failed to save to sessionStorage:",ce)}},[be]);const at=Z.useCallback((ce,Re)=>{ce?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:ce,source:Re,projectId:e}})),setTimeout(()=>{gt(!0)},50)):(gt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:ce,source:Re,projectId:e}})))},[e]);Z.useEffect(()=>{const ce=Re=>{Re.detail.projectId===e&&(rt(Re.detail.isOpen),Re.detail.isOpen&&setTimeout(()=>gt(!0),50),window.DebalesChat.isOpen=Re.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:Re.detail.isOpen,source:Re.detail.source}))};return window.addEventListener(hi.OPEN_STATE_CHANGE,ce),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,ce)}},[e]),Z.useEffect(()=>{const ce=()=>{const W=window.location.pathname;W!==We&&(Et(W),dt())};window.addEventListener("popstate",ce);const Re=history.pushState,P=history.replaceState;return history.pushState=function(...W){Re.apply(this,W),ce()},history.replaceState=function(...W){P.apply(this,W),ce()},()=>{window.removeEventListener("popstate",ce),history.pushState=Re,history.replaceState=P}},[We,dt]),Z.useEffect(()=>{const ce=an=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Sn=document.documentElement.scrollHeight,en=document.documentElement.clientHeight,Wr=window.scrollY,cr=Sn-en;return cr<=0?an:Wr/cr*100>50?0:an}return an};if(ee&&!lt&&(re.current=ce(ee.showing_delay||2e3)),!ee||lt||B.length===0)return;let Re,P,W,ue;const xe=ee.showing_delay||2e3,Ae=ee.showing_delay||2e3,Ze=ee.show_for||4e3,Tt=ee.hide_timing||4e3,tn=async()=>{if(B.length===0||!B[Ne]){ue=setTimeout(()=>{B.length>0&&ke(an=>an%B.length)},Tt+500);return}Re=setTimeout(()=>{lt||(he(!0),P=setTimeout(async()=>{lt||(N(!0),ae(!0),W=setTimeout(async()=>{lt||(ae(!1),N(!1),he(!1),ke(an=>(an+1)%B.length),ue=setTimeout(()=>{tn()},Tt))},Ze))},Ae))},re.current)};return B.length===0&&e?dt().then(()=>{if(!lt&&B.length>0){ke(0);const an=ce(xe);re.current=an,tn()}else!lt&&B.length}):!lt&&B.length>0&&tn(),()=>{clearTimeout(Re),clearTimeout(P),clearTimeout(W),clearTimeout(ue)}},[ee,lt,dt,B,Ne,e]);const[mt,wt]=Z.useState(()=>{const ce=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),Re=sessionStorage.getItem(ce);return Re?JSON.parse(Re):[]});Z.useEffect(()=>{const ce=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(ce,JSON.stringify(mt))},[mt,e]);const[ye,He]=Z.useState(!1),[ut,yt]=Z.useState({name:"",email:"",message:""}),[_t,Gt]=Z.useState([]),[Wt,ln]=Z.useState({name:"",email:"",message:""}),Zt=Jc("exit_model"),[It,jt]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[vt,G]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){G(Re=>({...Re,leadingQueries:!0}));const ce=setTimeout(()=>{G(Re=>({...Re,leadingQueries:!1}))},2e3);return()=>clearTimeout(ce)}},[h,E]);const[we,tt]=Z.useState(!1),[st,xt]=Z.useState(!0),[Vt,Lt]=Z.useState(!1),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),vn=500,Qt=Z.useCallback(()=>{const ce=_e.current;if(!ce){Pn(!1),zn(!1),xt(!0);return}if(Te(e)){Pn(!1);return}const Re=ce.scrollTop,P=ce.scrollHeight,W=ce.clientHeight,ue=P>W,xe=1,Ae=Re<=xe,Ze=Re+W>=P-xe;ue?(Pn(!Ae),zn(!Ze),xt(Ze)):(Pn(!1),zn(!1),xt(!0))},[_e,Pn,zn,xt]);Z.useEffect(()=>{const ce=_e.current;if(lt&&ce){Qt(),ce.addEventListener("scroll",Qt);const Re=new ResizeObserver(Qt);return Re.observe(ce),()=>{ce.removeEventListener("scroll",Qt),Re.unobserve(ce)}}else lt||(Pn(!1),zn(!1),xt(!0))},[lt,h,we,Qt]),Z.useEffect(()=>{var ce,Re,P,W,ue,xe;if(h.length>0&&!p){const Ae=h[h.length-1],Ze=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),Tt=Ae.isBot&&Ae.conversationId===l&&Ae.conversationId!==Ze,tn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Ae.conversationId===l;if(Tt){tt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Ae.conversationId||""),jt({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const an=2e3;let Sn=an;const en=[{type:"collections",condition:((ce=Ae.collections)==null?void 0:ce.length)&&((Re=Ae.collections)==null?void 0:Re.length)>0},{type:"products",condition:((P=Ae.products)==null?void 0:P.length)&&((W=Ae.products)==null?void 0:W.length)>0},{type:"leadingQueries",condition:((ue=Ae.leading_queries)==null?void 0:ue.length)&&((xe=Ae.leading_queries)==null?void 0:xe.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(mt==null?void 0:mt.length)>0}].filter(Wr=>Wr.condition);if(en.length===0){tt(!1);return}en.forEach(({type:Wr},cr)=>{setTimeout(()=>{if(jt(br=>({...br,[Wr]:!0})),st&&_e.current){const br=_e.current;br.scrollHeight-br.scrollTop<=br.clientHeight&&$a(_e)}cr===en.length-1&&tt(!1)},Sn),Sn+=an})}else tn&&jt(an=>({...an,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,mt==null?void 0:mt.length,st,e]),Z.useEffect(()=>{if(!o&&h.length>0){const ce=_e.current;ce&&st&&ce.scrollHeight-ce.scrollTop<=ce.clientHeight+100&&setTimeout(()=>$a(_e),100)}},[h.length,o,st]),Z.useEffect(()=>{const ce=document.querySelector('meta[name="viewport"]'),Re=ce==null?void 0:ce.content;if(lt){let P=ce;const W=window.matchMedia("(max-width: 768px)").matches;P?P.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(P=document.createElement("meta"),P.name="viewport",P.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(P)),W&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const ue=P;return()=>{Re&&ue&&(ue.content=Re),W&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[lt,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(lt&&h.length>0&&!o){const ce=setTimeout(()=>{_e.current&&$a(_e)},150);return()=>clearTimeout(ce)}},[lt,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(_e),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[Br,nr]=Z.useState(!1),[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(null),$t=async ce=>{const Re=tr();if(gt(!1),ce&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Re,userRating:ce,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(P){console.error("Error submitting rating:",P)}setTimeout(()=>{Ro(!1),at(!1,"close_button_clicked")},1e3)},li=ce=>{m(!0),mt.forEach(P=>{I(P.id,P.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:mt,message:ce});const Re=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:ce,isBot:!0}];y(Re),x(Re),d(ce),wt([]),m(!1)},Mr=()=>{var ce;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((ce=window.shiprocketCheckoutEvents)!=null&&ce.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},fo=async ce=>{ce.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Mr()&&at(!1,"checkout_clicked")};Z.useEffect(()=>{const ce=xE(w);de(Re=>[...ce.filter(W=>!Re.some(ue=>ue.question===W.question))])},[w]),Z.useEffect(()=>{const ce=W=>{const ue=W.detail.formId;switch(W.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Ae=Re(ue);Ae&&zt(Ae)},800);break;case"close":bt&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),le(ue),r({message:bt,fromKlaviyo:!0})},1e4);break}},Re=W=>{const ue=document.querySelector(`[data-testid="klaviyo-form-${W}"]`);if(console.log(`formElement text ${W} =>`,ue==null?void 0:ue.innerText,ue==null?void 0:ue.textContent),ue instanceof HTMLElement){const xe=ue.innerText||ue.textContent;if(xe)return console.log("Found form text:",xe),`=> Klaviyo form content:
|
|
4818
|
+
`,Vge=({botId:e})=>{var Kr,Re;const{uiData:t,storeMetaData:n,onSendMessage:r,isKlaviyoMessage:o,isLoading:a,lastedBotmessageId:l,setLastedBotmessageId:d,messages:h,isMessageLoading:p,setIsMessageLoading:m,setMessages:y,saveConversation:x,loadConversation:S,suggestedQuestions:w,showUserInfoModel:E,setShowUserInfoModel:k,isUserInfoNeeded:T,setPendingQuestion:O}=gl(),{cart:R,addToCart:I,generateCartUrl:z,addCartAttributes:L,setShowCartSummery:H,showCartSummery:V}=zp(),te=_d("use-chatbot-icon-size"),F=mf.detect(),Q=t==null?void 0:t.isLeft,J=Ek(),oe=t==null?void 0:t.heightOption,re=Z.useRef(0),ee=_d("new-suggested-question-design"),[se,he]=Z.useState(!1),[Ee,N]=Z.useState(!1),[Y,ae]=Z.useState(!1),[B,de]=Z.useState([]),[Ne,ke]=Z.useState(0),Ie=Jc("acquisition_agent"),[We,Et]=Z.useState(window.location.pathname),dt=Z.useCallback(async()=>{try{if(!Ie||(t==null?void 0:t.show_bot)===!1)return;const ce=await fetch(`${co}/api/wordpress/acquisition`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({timeZone:Intl.DateTimeFormat().resolvedOptions().timeZone,timestamp:new Date().toISOString(),page_information:window.location.href.split("?")[0],botid:e})});if(ce.ok){const Oe=await ce.json(),P=window.location.pathname,W=3;de(ue=>{const xe=[...ue],Ae={question:Oe.Popup_Message,answer:"",path:P,nameSpace:e,type:"dynamic",Follow_up_Question:Oe.Follow_up_Question};return xe.length>=W&&xe.shift(),xe.push(Ae),console.log("updated quesitons",xe),xe})}else console.error("Failed to fetch new acquisition question")}catch(ce){console.error("Error fetching new acquisition question:",ce)}},[e,Ie,t==null?void 0:t.show_bot]),[lt,rt]=Z.useState(!1),[At,gt]=Z.useState(!1),[bt,zt]=Z.useState(""),[ne,le]=Z.useState("");Z.useEffect(()=>{e&&wk(e)},[e]),Z.useEffect(()=>{bE(e)},[e]),Z.useEffect(()=>{let ce=jo();if(!ce&&window.Thinkific){const Oe=window.Thinkific.current_user;Oe&&(ce={name:Oe.full_name,email:Oe.email},ff(ce))}rc.init({projectName:e,debug:!1,testing:Cx}),ce&&ce.email&&(window.DebalesChat.identify(ce.email,{name:ce.name,phone:ce.phone,email:ce.email}),t!=null&&t.KlaviyoIntegration&&window.klaviyo&&window.klaviyo.identify({email:ce.email,first_name:ce.name,phone:ce.phone,from:"Debales-Chatbot"}))},[e,t==null?void 0:t.KlaviyoIntegration]);const _e=Z.useRef(null),Fe=Zn(Hn.CLICKED_QUESTIONS,{botId:e}),[be,Be]=Z.useState(()=>{try{const ce=sessionStorage.getItem(Fe);return ce?new Set(JSON.parse(ce)):new Set}catch{return new Set}});Z.useEffect(()=>{try{sessionStorage.setItem(Fe,JSON.stringify(Array.from(be)))}catch(ce){console.error("Failed to save to sessionStorage:",ce)}},[be]);const at=Z.useCallback((ce,Oe)=>{ce?(window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:ce,source:Oe,projectId:e}})),setTimeout(()=>{gt(!0)},50)):(gt(!1),window.dispatchEvent(new CustomEvent(hi.OPEN_STATE_CHANGE,{detail:{isOpen:ce,source:Oe,projectId:e}})))},[e]);Z.useEffect(()=>{const ce=Oe=>{Oe.detail.projectId===e&&(rt(Oe.detail.isOpen),Oe.detail.isOpen&&setTimeout(()=>gt(!0),50),window.DebalesChat.isOpen=Oe.detail.isOpen,window.DebalesChat.track(nn.OPEN_STATE_CHANGE,{isOpen:Oe.detail.isOpen,source:Oe.detail.source}))};return window.addEventListener(hi.OPEN_STATE_CHANGE,ce),()=>{window.removeEventListener(hi.OPEN_STATE_CHANGE,ce)}},[e]),Z.useEffect(()=>{const ce=()=>{const W=window.location.pathname;W!==We&&(Et(W),dt())};window.addEventListener("popstate",ce);const Oe=history.pushState,P=history.replaceState;return history.pushState=function(...W){Oe.apply(this,W),ce()},history.replaceState=function(...W){P.apply(this,W),ce()},()=>{window.removeEventListener("popstate",ce),history.pushState=Oe,history.replaceState=P}},[We,dt]),Z.useEffect(()=>{const ce=an=>{if(typeof window<"u"&&typeof document<"u"&&document.documentElement){const Sn=document.documentElement.scrollHeight,en=document.documentElement.clientHeight,Wr=window.scrollY,cr=Sn-en;return cr<=0?an:Wr/cr*100>50?0:an}return an};if(ee&&!lt&&(re.current=ce(ee.showing_delay||2e3)),!ee||lt||B.length===0)return;let Oe,P,W,ue;const xe=ee.showing_delay||2e3,Ae=ee.showing_delay||2e3,Ze=ee.show_for||4e3,Tt=ee.hide_timing||4e3,tn=async()=>{if(B.length===0||!B[Ne]){ue=setTimeout(()=>{B.length>0&&ke(an=>an%B.length)},Tt+500);return}Oe=setTimeout(()=>{lt||(he(!0),P=setTimeout(async()=>{lt||(N(!0),ae(!0),W=setTimeout(async()=>{lt||(ae(!1),N(!1),he(!1),ke(an=>(an+1)%B.length),ue=setTimeout(()=>{tn()},Tt))},Ze))},Ae))},re.current)};return B.length===0&&e?dt().then(()=>{if(!lt&&B.length>0){ke(0);const an=ce(xe);re.current=an,tn()}else!lt&&B.length}):!lt&&B.length>0&&tn(),()=>{clearTimeout(Oe),clearTimeout(P),clearTimeout(W),clearTimeout(ue)}},[ee,lt,dt,B,Ne,e]);const[mt,wt]=Z.useState(()=>{const ce=Zn(Hn.PENDING_BULK_ITEMS,{botId:e}),Oe=sessionStorage.getItem(ce);return Oe?JSON.parse(Oe):[]});Z.useEffect(()=>{const ce=Zn(Hn.PENDING_BULK_ITEMS,{botId:e});sessionStorage.setItem(ce,JSON.stringify(mt))},[mt,e]);const[ye,He]=Z.useState(!1),[ut,yt]=Z.useState({name:"",email:"",message:""}),[_t,Gt]=Z.useState([]),[Wt,ln]=Z.useState({name:"",email:"",message:""}),Zt=Jc("exit_model"),[It,jt]=Z.useState({text:!0,leadingQueries:!0,collections:!0,products:!0,variants:!0,cartSummary:!0,bulkItems:!0}),[vt,G]=Z.useState({suggestions:!1,products:!1,collections:!1,leadingQueries:!1,initialMessage:!1,cartSummary:!1,bulkItems:!1});Z.useEffect(()=>{if(h.length===1&&!E){G(Oe=>({...Oe,leadingQueries:!0}));const ce=setTimeout(()=>{G(Oe=>({...Oe,leadingQueries:!1}))},2e3);return()=>clearTimeout(ce)}},[h,E]);const[we,tt]=Z.useState(!1),[st,xt]=Z.useState(!0),[Vt,Lt]=Z.useState(!1),[Xt,Dt]=Z.useState(!1),[mn,Pn]=Z.useState(!1),[Ui,zn]=Z.useState(!1),vn=500,Qt=Z.useCallback(()=>{const ce=_e.current;if(!ce){Pn(!1),zn(!1),xt(!0);return}if(Te(e)){Pn(!1);return}const Oe=ce.scrollTop,P=ce.scrollHeight,W=ce.clientHeight,ue=P>W,xe=1,Ae=Oe<=xe,Ze=Oe+W>=P-xe;ue?(Pn(!Ae),zn(!Ze),xt(Ze)):(Pn(!1),zn(!1),xt(!0))},[_e,Pn,zn,xt]);Z.useEffect(()=>{const ce=_e.current;if(lt&&ce){Qt(),ce.addEventListener("scroll",Qt);const Oe=new ResizeObserver(Qt);return Oe.observe(ce),()=>{ce.removeEventListener("scroll",Qt),Oe.unobserve(ce)}}else lt||(Pn(!1),zn(!1),xt(!0))},[lt,h,we,Qt]),Z.useEffect(()=>{var ce,Oe,P,W,ue,xe;if(h.length>0&&!p){const Ae=h[h.length-1],Ze=sessionStorage.getItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e})),Tt=Ae.isBot&&Ae.conversationId===l&&Ae.conversationId!==Ze,tn=(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0&&Ae.conversationId===l;if(Tt){tt(!0),sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),Ae.conversationId||""),jt({text:!0,leadingQueries:!1,collections:!1,products:!1,variants:!1,cartSummary:!1,bulkItems:!1});const an=2e3;let Sn=an;const en=[{type:"collections",condition:((ce=Ae.collections)==null?void 0:ce.length)&&((Oe=Ae.collections)==null?void 0:Oe.length)>0},{type:"products",condition:((P=Ae.products)==null?void 0:P.length)&&((W=Ae.products)==null?void 0:W.length)>0},{type:"leadingQueries",condition:((ue=Ae.leading_queries)==null?void 0:ue.length)&&((xe=Ae.leading_queries)==null?void 0:xe.length)>0},{type:"cartSummary",condition:(R==null?void 0:R.itemCount)&&(R==null?void 0:R.itemCount)>0},{type:"bulkItems",condition:(mt==null?void 0:mt.length)>0}].filter(Wr=>Wr.condition);if(en.length===0){tt(!1);return}en.forEach(({type:Wr},cr)=>{setTimeout(()=>{if(jt(br=>({...br,[Wr]:!0})),st&&_e.current){const br=_e.current;br.scrollHeight-br.scrollTop<=br.clientHeight&&$a(_e)}cr===en.length-1&&tt(!1)},Sn),Sn+=an})}else tn&&jt(an=>({...an,cartSummary:!0}))}},[h,p,l,R==null?void 0:R.itemCount,mt==null?void 0:mt.length,st,e]),Z.useEffect(()=>{if(!o&&h.length>0){const ce=_e.current;ce&&st&&ce.scrollHeight-ce.scrollTop<=ce.clientHeight+100&&setTimeout(()=>$a(_e),100)}},[h.length,o,st]),Z.useEffect(()=>{const ce=document.querySelector('meta[name="viewport"]'),Oe=ce==null?void 0:ce.content;if(lt){let P=ce;const W=window.matchMedia("(max-width: 768px)").matches;P?P.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no":(P=document.createElement("meta"),P.name="viewport",P.content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no",document.head.appendChild(P)),W&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="hidden");const ue=P;return()=>{Oe&&ue&&(ue.content=Oe),W&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}}return()=>{window.matchMedia("(max-width: 768px)").matches&&(t==null?void 0:t.mobileDisplayMode)==="full-screen"&&(document.body.style.overflow="")}},[lt,t==null?void 0:t.mobileDisplayMode]),Z.useEffect(()=>{if(lt&&h.length>0&&!o){const ce=setTimeout(()=>{_e.current&&$a(_e)},150);return()=>clearTimeout(ce)}},[lt,h.length,o]),Z.useEffect(()=>{R!=null&&R.total&&!o&&setTimeout(()=>$a(_e),100)},[R==null?void 0:R.total,o]),Z.useEffect(()=>{l&&sessionStorage.setItem(Zn(Hn.LAST_SHOWN_MESSAGE_ID,{botId:e}),l)},[l,e]);const[Br,nr]=Z.useState(!1),[la,Ro]=Z.useState(!1),[Po,pi]=Z.useState(null),$t=async ce=>{const Oe=tr();if(gt(!1),ce&&h.length>1)try{(await fetch(`${co}/api/wordpress/userRating`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({sessionId:Oe,userRating:ce,nameSpace:e})})).ok||console.error("Error submitting rating")}catch(P){console.error("Error submitting rating:",P)}setTimeout(()=>{Ro(!1),at(!1,"close_button_clicked")},1e3)},li=ce=>{m(!0),mt.forEach(P=>{I(P.id,P.quantity)}),H(!0),window.DebalesChat.track(nn.ADD_BULK_ITEM,{products:mt,message:ce});const Oe=[...h,{text:"π Bulk items added to cart successfully.",leading_queries:["Get GST Invoice for the order","Explore more products"],conversationId:ce,isBot:!0}];y(Oe),x(Oe),d(ce),wt([]),m(!1)},Mr=()=>{var ce;switch(e){case"minature":case"bodytales":case"imemyselfcare-com":if(window.triggerGokwikCustomCheckout)return window.triggerGokwikCustomCheckout(),!0;break;case"athflex":if((ce=window.shiprocketCheckoutEvents)!=null&&ce.buyCart)return window.shiprocketCheckoutEvents.buyCart(),!0;break;case"www":if(window.openRzpCheckout)return window.openRzpCheckout(),!0;break;default:return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1}return window.location.href=z((t==null?void 0:t.shopifyShopDomain)??""),!1},fo=async ce=>{ce.preventDefault(),window.DebalesChat.track(nn.CHECKOUT_CLICKED,{chatId:tr()+e,cartValue:Number(R==null?void 0:R.total),cart:R}),L({dbls_method:"checkout_clicked"}),Mr()&&at(!1,"checkout_clicked")};Z.useEffect(()=>{const ce=xE(w);de(Oe=>[...ce.filter(W=>!Oe.some(ue=>ue.question===W.question))])},[w]),Z.useEffect(()=>{const ce=W=>{const ue=W.detail.formId;switch(W.detail.type){case"open":case"embedOpen":setTimeout(()=>{const Ae=Oe(ue);Ae&&zt(Ae)},800);break;case"close":bt&&(t==null?void 0:t.KlaviyoFormIntegration)===!0&&setTimeout(()=>{at(!0,"klaviyo_form_closed"),le(ue),r({message:bt,fromKlaviyo:!0})},1e4);break}},Oe=W=>{const ue=document.querySelector(`[data-testid="klaviyo-form-${W}"]`);if(console.log(`formElement text ${W} =>`,ue==null?void 0:ue.innerText,ue==null?void 0:ue.textContent),ue instanceof HTMLElement){const xe=ue.innerText||ue.textContent;if(xe)return console.log("Found form text:",xe),`=> Klaviyo form content:
|
|
4819
4819
|
|
|
4820
4820
|
`+xe+`
|
|
4821
4821
|
|
|
4822
|
-
=> User Action: Klaviyo form closed`}return""},P=W=>{W instanceof CustomEvent&&ce(W)};return window.addEventListener("klaviyoForms",P),()=>{window.removeEventListener("klaviyoForms",P)}},[bt,t,r]),Z.useEffect(()=>{const ce=_e.current;return lt&&ce?(ce.addEventListener("scroll",Qt),()=>{ce&&ce.removeEventListener("scroll",Qt)}):()=>{}},[lt,Qt]);const[Ti,rr]=Z.useState(!1),Xi=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",ho=async()=>{try{const ce=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:ut.name,userEmail:ut.email,userMessage:ut.message,tag:"support"})});if(ce.ok){const Re=`support-confirm-${Date.now()}`;y(P=>[...P,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:_t,conversationId:Re}]),d(Re),jt(P=>({...P,leadingQueries:!0})),Gt([]),console.log("Connected to support with existing user info:",jo())}else{const Re=await ce.json();console.error("Failed to connect to support:",Re),y(P=>[...P,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(Re=>[...Re,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Bn=()=>{if(Te(e)){const W=jp("https://test.thecollective.in/content/customersupport");W.isValid&&(t!=null&&t.shopifyShopDomain&&(W.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(W.url.toString()),"_blank"));return}const ce=jo();let Re=[];const P=h[h.length-1];P!=null&&P.leading_queries&&P.leading_queries.length>0?Re=P.leading_queries:h.length<=1&&(Re=B.flatMap(W=>Array.isArray(W)?W.map(ue=>ue.question):[W.question]).slice(0,4)),Gt(Re),ce&&ce.name&&ce.email&&yt({name:ce==null?void 0:ce.name,email:ce==null?void 0:ce.email,message:""}),y(W=>[...W,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),He(!0)},po=async ce=>{ce.preventDefault();const Re={name:"",email:"",message:""};let P=!0;const W=ut.name.trim(),ue=ut.message.trim();W||(Re.name="Name cannot be empty or just whitespace.",P=!1),(!ut.email||!zm.isEmail(ut.email))&&(Re.email="Please enter a valid email address.",P=!1),ue||(Re.message="Message cannot be empty or just whitespace.",P=!1),ln(Re),P&&(ff({name:W,email:ut.email}),He(!1),y(xe=>xe.slice(0,-1)),await ho())},[Qr,ot]=Z.useState({});return Z.useEffect(()=>{Xt&&(h.forEach((ce,Re)=>{if(!ce.isBot)return;const P=Lp(ce.text);if(!(Re in Qr)||Qr[Re]<P.length){let W;const ue=xe=>{xe<P.length&&(W=setTimeout(()=>{ot(Ae=>({...Ae,[Re]:xe+1})),ue(xe+1)},vn))};return Re in Qr?ue(Qr[Re]):(ot(xe=>({...xe,[Re]:1})),ue(1)),()=>clearTimeout(W)}}),ot(ce=>{const Re={};return h.forEach((P,W)=>{ce[W]!==void 0&&(Re[W]=ce[W])}),Re}))},[h,Xt]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(zge,{}),M.jsxs(bge,{$topOffset:Xi,$isLeft:Q,children:[!lt&&B.length>0&&B[Ne]&&Ee&&M.jsx(Lge,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Xi,style:{display:"flex",flexDirection:"column",alignItems:"center",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&M.jsx(Nge,{children:M.jsx(vge,{messages:[{question:B[Ne].question,isHighlighted:B[Ne].isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{Be(ce=>{const Re=new Set(ce);return Re.add(B[Ne].question),Re})},onClick:()=>{const ce=B[Ne];at(!0,"suggested_question_clicked"),Be(Re=>{const P=new Set(Re);return P.add(ce.question),P}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:ce}),T?(Lt(!1),Dt(!0),k(!0),O(ce)):(Lt(!1),Dt(!0),r({message:ce.Follow_up_Question??ce.question,answer:ce.answer,products:ce.products,fromKlaviyo:!1,leading_queries:ce.leading_queries,followUpQuestion:ce.Follow_up_Question,messType:"suggested_question"}))}})},B[Ne].question)}),M.jsxs(_ge,{$topOffset:Xi,$removeLogoBackground:t.removeLogoBackground,style:{display:lt||Ee?"none":"flex"},children:[M.jsx(Sge,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Xi,$iconSize:te}),M.jsxs(wge,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Xi,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),at(!lt,"chat_button_clicked"),!lt){const ce=S();ce.length>0?(y(ce),Lt(!1),Dt(!0)):(Lt(!0),Dt(!1),setTimeout(()=>{Lt(!1),Dt(!0);const Re={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([Re])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:lt||Ee?"none":"flex"},children:[M.jsx(Cge,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!lt&&se&&M.jsx("div",{style:{position:"absolute",top:"0px",right:"0px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})]})]}),lt&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(kge,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Xi,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:At,"data-testid":"debales-chat-container",children:[M.jsxs(Oge,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(MP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(Ege,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Age,{})]})]}):M.jsx(Tge,{children:M.jsxs(Rge,{children:[M.jsx(MP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Bn,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{Zt?Ro(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(Gge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:mn?1:0}})]}),M.jsxs(Ige,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Ti&&((Oe=(Kr=t.pluginConfig)==null?void 0:Kr.collectedUserInfo)==null?void 0:Oe.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{rr(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:Po,showModel:Br,setShowModel:nr,onVariantSelect:ce=>{I(ce.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:ce.title,price:Number(ce.price),link:`https://${t.shopifyShopDomain}/variants/${ce.id}`,message:l,chatId:tr()+e})},botId:e}),la&&M.jsx(Vk,{setShowExitModal:Ro,handleCloseChatbot:$t,chatId:tr()+e}),M.jsxs(Dge,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:_e,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(Pge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:mn?1:0}}),M.jsxs(Mge,{children:[Xt&&h.map((ce,Re)=>{const P=ce.isBot,W=Lp(ce.text);return ce.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[P&&M.jsxs(IP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:P?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(LP,{children:[W.slice(0,Qr[Re]||0).map((ue,xe)=>M.jsx("div",{children:M.jsx(Fi,{isBot:P,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:ue})})},xe)),ce.collections&&(Te(e)?l===ce.conversationId?It.collections:!0:l===ce.conversationId&&It.collections)&&M.jsx(Hk,{message:ce,botId:e,uidata:t,onSendMessage:r,loading:p}),ce.products&&(Te(e)?l===ce.conversationId?It.products:!0:l===ce.conversationId&&It.products)&&M.jsx(Zk,{message:ce,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:nr,setSelectedProduct:pi}),o&&M.jsx(f8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",ne]),at(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===ce.conversationId&&It.cartSummary&&V&&M.jsx(zk,{onCheckout:fo,onKeepShopping:()=>{H(!1)}}),mt&&mt.length>0&&l===ce.conversationId&&It.bulkItems&&M.jsx(Sk,{onClick:()=>li(ce.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(ce)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:ue=>{var Ae,Ze;const xe=typeof ue=="function"?ue(E):ue;k(xe),!xe&&((Ze=(Ae=t.pluginConfig)==null?void 0:Ae.collectedUserInfo)!=null&&Ze.discount)&&rr(!0)},inChat:!0,showFormInstructions:!1})}),ye&&h.indexOf(ce)===h.length-1&&M.jsxs(Fge,{onSubmit:po,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:ut.name,onChange:ue=>yt(xe=>({...xe,name:ue.target.value})),required:!0,error:Wt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:ut.email,onChange:ue=>yt(xe=>({...xe,email:ue.target.value})),required:!0,error:Wt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:ut.message,onChange:ue=>yt(xe=>({...xe,message:ue.target.value})),required:!0,error:Wt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(d8,{children:[M.jsxs(h8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(NP,{type:"text",required:!0,value:ut.name,onChange:ue=>yt(xe=>({...xe,name:ue.target.value})),placeholder:"John"}),Wt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.name})]}),M.jsxs(d8,{children:[M.jsxs(h8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(NP,{type:"email",required:!0,value:ut.email,onChange:ue=>yt(xe=>({...xe,email:ue.target.value})),placeholder:"olivia@untitledui.com"}),Wt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.email})]}),M.jsxs(d8,{children:[M.jsxs(h8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(Uge,{required:!0,value:ut.message,onChange:ue=>yt(xe=>({...xe,message:ue.target.value})),placeholder:"I need help with..."}),Wt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.message})]})]}),M.jsx(Hge,{children:M.jsx(jge,{type:"submit",children:"Submit"})})]}),we&&!p&&l===ce.conversationId&&M.jsx(Fi,{isBot:P,children:M.jsx(Ds,{loading:we,loadingPhrases:["π¨ Loading","β¨ Almost","π Ready"]})})]})]}),!P&&M.jsx($ge,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!P,children:M.jsx(Cd,{children:ce.text})})}),h.length==1&&Re==0&&!E&&M.jsx(f8,{children:vt.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:vt.leadingQueries})}):B.map((ue,xe)=>M.jsxs(BP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:be.has(ue.question)?.5:1},onClick:()=>{T?(k(!0),O({question:ue.question,answer:ue.answer,products:ue.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ue.question,answer:ue.answer,products:ue.products,messType:"leading_query"}),Be(Ae=>{const Ze=new Set(Ae);return Ze.add(ue.question),Ze}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:ue.question})},disabled:p,$disabled:p,children:[ue.question,M.jsx($P,{color:t.callToActionFontColor})]},xe))}),ce.leading_queries&&ce.leading_queries.length>0&&l===ce.conversationId&&It.leadingQueries&&!o&&!E&&M.jsx(f8,{children:ce.leading_queries.map((ue,xe)=>M.jsxs(BP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:ue,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ue,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:ue})},disabled:p,$disabled:p,children:[ue,M.jsx($P,{color:t.callToActionFontColor})]},xe))})]},Re)}),(p||Vt)&&M.jsxs(IP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(LP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Vt})})})})]})]}),M.jsx(qge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},Yge=({botId:e})=>{const t=lQ("new-suggested-question-design");let n;return t==="variant-1"?n=L0e:t==="variant-2"?n=pge:t==="variant-3"?n=Vge:n=vP,M.jsx(n,{botId:e})},zP="debales-ai-assistant",FP="debales-chatbot-container",Zge=Z.forwardRef(({children:e,globalStyles:t="",containerStyles:n={},onReady:r},o)=>{const a=Z.useRef(null),[l,d]=Z.useState(null),h=Z.useRef(null),p=Z.useRef(null),m=Z.useRef({get shadowRoot(){return h.current},get container(){return l},querySelector:y=>{var x;return((x=h.current)==null?void 0:x.querySelector(y))||null},querySelectorAll:y=>{var x;return((x=h.current)==null?void 0:x.querySelectorAll(y))||null}});return Z.useImperativeHandle(o,()=>m.current,[]),Z.useEffect(()=>{const y=document.getElementById(zP);if(y?a.current=y:a.current&&(a.current.id=zP),a.current&&(a.current.style.cssText="position: absolute; top: 0; left: 0; width: 0; height: 0;"),a.current){if(a.current.shadowRoot){h.current=a.current.shadowRoot;const w=h.current.querySelector(`#${FP}`);w&&d(w);return}const x=a.current.attachShadow({mode:"open"});if(h.current=x,t){const w=document.createElement("style");w.textContent=t,x.appendChild(w)}const S=document.createElement("div");S.id=FP,S.style.cssText="position: absolute; top: 0; left: 0; width: 0; height: 0;",x.appendChild(S),d(S),r&&r(x,S)}},[t,r]),Z.useEffect(()=>(l&&!p.current&&(p.current=WI.createRoot(l)),p.current&&l&&p.current.render(M.jsx(Ane,{target:l,children:M.jsx(Zj,{value:m.current,children:e})})),()=>{p.current&&p.current.unmount()}),[l,e]),M.jsx("div",{ref:a,style:n})});class Xk{isSupported(){return mf.detect()===this.platform}createSuccessResult(t,n){return{success:!0,data:t,message:n}}createErrorResult(t){return{success:!1,error:t}}}class Qge extends Xk{constructor(){super(...arguments);ti(this,"platform",ki.DEFAULT)}async fetchCart(){return console.log("DefaultCartAdapter: fetchCart called"),this.createSuccessResult({items:[],total:0,itemCount:0,currency:"USD",token:"default-token"},"Default cart fetched")}async addToCart(n,r=1,o){return console.log("DefaultCartAdapter: addToCart called",{variantId:n,quantity:r,properties:o}),this.createSuccessResult(void 0,"Item added to cart (mock)")}async removeFromCart(n){return console.log("DefaultCartAdapter: removeFromCart called",{itemId:n}),this.createSuccessResult(void 0,"Item removed from cart (mock)")}async updateQuantity(n){return console.log("DefaultCartAdapter: updateQuantity called",{cartItem:n}),this.createSuccessResult(void 0,"Item quantity updated (mock)")}async clearCart(){return console.log("DefaultCartAdapter: clearCart called"),this.createSuccessResult(void 0,"Cart cleared (mock)")}generateCartUrl(n){const r=n.replace(/^https?:\/\//,"");return console.log("DefaultCartAdapter: generateCartUrl called",{domain:n,sanitizedDomain:r}),`https://${r}/cart`}generateProductUrl(n,r){if(r.handle){const o=new URL(`https://${n}/products/${r.handle}`);return o.searchParams.append("variant",r.product_id),Os(o.toString())}else return Os(r.link)}async addCartAttributes(n={}){return console.log("MethodNotImplemented: addCartAttributes called",{attributes:n}),this.createSuccessResult(void 0,"Cart attributes added (mock)")}}class Kge extends Xk{constructor(){var n,r;super();ti(this,"platform",ki.SHOPIFY);ti(this,"cartEndpoint");ti(this,"localCartKey","debales_track_cart");this.cartEndpoint=((r=(n=window.Shopify)==null?void 0:n.routes)==null?void 0:r.root)||"/"}normalizeCartData(n){return{items:n.items.map(r=>({id:r.id,variant_id:r.variant_id,quantity:r.quantity,title:r.title,price:r.price,properties:r.properties})),total:n.total_price/100,itemCount:n.item_count,currency:n.currency,token:n.token.split("?")[0]}}generateProductUrl(n,r){const o=E6(n);if(!o.isValid)return"";if(r.handle){const a=new URL(`/products/${r.handle}`,o.url);return a.searchParams.append("variant",r.product_id),Os(a.toString())}else return Os(r.link)}updateTrackCart({cartToken:n,sessionId:r=tr()}){localStorage.setItem(this.localCartKey,JSON.stringify({sessionId:r,cartToken:n}))}async fetchCart(){try{const n=await fetch(`${this.cartEndpoint}cart.js`),r=await n.json();if(!n.ok){const a=r;return this.createErrorResult(a.description||`Failed to fetch cart: ${n.status}`)}const o=r;return this.createSuccessResult(this.normalizeCartData(o),"Cart fetched successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error fetching cart: ${n.message}`:"Unknown error occurred while fetching cart")}}async addToCart(n,r=1,o){try{const a=await fetch(`${this.cartEndpoint}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:n,quantity:r,properties:o}],attributes:{dbls_order_source:"direct_recommendation",dbls_session_id:tr(),dbls_method:"add_to_cart"}})}),l=await a.json();if(!a.ok){const d=l;return this.createErrorResult(d.description||`Failed to add item to cart: ${a.status}`)}return this.fetchCart().then(d=>{d.success&&this.updateTrackCart({cartToken:d==null?void 0:d.data.token})}),this.createSuccessResult(void 0,`Successfully added ${r} item(s) to cart`)}catch(a){return this.createErrorResult(a instanceof Error?`Error adding to cart: ${a.message}`:"Unknown error occurred while adding to cart")}}async removeFromCart(n){return this.updateQuantity({id:n,quantity:0})}async updateQuantity(n){try{const r=await fetch(`${this.cartEndpoint}cart/change.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:n.id,quantity:n.quantity})}),o=await r.json();if(!r.ok){const a=o;return this.createErrorResult(a.description||`Failed to update item quantity: ${r.status}`)}return this.fetchCart().then(a=>{a.success&&this.updateTrackCart({cartToken:a==null?void 0:a.data.token})}),this.createSuccessResult(void 0,n.quantity===0?"Item removed from cart":`Quantity updated to ${n.quantity}`)}catch(r){return this.createErrorResult(r instanceof Error?`Error updating quantity: ${r.message}`:"Unknown error occurred while updating quantity")}}async clearCart(){try{const n=await fetch(`${this.cartEndpoint}cart/clear.js`,{method:"POST"});if(!n.ok){const r=await n.json();return this.createErrorResult(r.description||`Failed to clear cart: ${n.status}`)}return this.createSuccessResult(void 0,"Cart cleared successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error clearing cart: ${n.message}`:"Unknown error occurred while clearing cart")}}async addCartAttributes(n={}){try{const r=await fetch(`${this.cartEndpoint}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{dbls_order_source:"direct_recommendation",dbls_session_id:tr(),...n}})});if(!r.ok){const o=await r.json();return this.createErrorResult(o.description||`Failed to update cart attributes: ${r.status}`)}return this.createSuccessResult(void 0,"Cart attributes updated successfully")}catch(r){return this.createErrorResult(r instanceof Error?`Error updating cart attributes: ${r.message}`:"Unknown error occurred while updating cart attributes")}}generateCartUrl(n){const r=E6(n);if(!r.isValid)return"";const o=new URL("/cart",r.url);return o.searchParams.append("ref",`debales-ai-${new Date().toISOString()}`),o.searchParams.append("attributes[from]","debales-ai-chatbot"),o.searchParams.append("attributes[through]","add-to-cart"),o.searchParams.append("attributes[dbls_session_id]",tr()),o.searchParams.append("timestamp",Date.now().toString()),Os(o.toString())}}class Wge extends Xk{constructor(){var n,r;super();ti(this,"platform",ki.MAGENTO);ti(this,"checkoutEndpoint");ti(this,"baseUrl");this.checkoutEndpoint=((n=window.checkout)==null?void 0:n.checkoutUrl)||"/",this.baseUrl=((r=window.checkout)==null?void 0:r.baseUrl)||"/"}normalizeCartData(n){return{items:n.items.map(r=>({id:parseInt(r.item_id),variant_id:parseInt(r.product_id),quantity:r.qty,title:r.product_name,price:r.product_price_value,properties:{name:r.product_name}})),total:parseFloat(n.subtotalAmount),itemCount:n.summary_count,currency:"USD",token:n.data_id.toString()}}async fetchCart(){try{const n=await fetch(`${this.baseUrl}customer/section/load/?sections=cart&update_section_id=false`),r=await n.json();if(!n.ok)return this.createErrorResult(`Failed to fetch cart: ${n.status}`);const o=r.cart;return this.createSuccessResult(this.normalizeCartData(o),"Cart fetched successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error fetching cart: ${n.message}`:"Unknown error occurred while fetching cart")}}async addToCart(n,r=1){var o;try{const a=(o=document.querySelector('input[name="form_key"]'))==null?void 0:o.value;if(!a)return this.createErrorResult("Form key not found");const l=await fetch(`${this.checkoutEndpoint}cart/add`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams({product:n,qty:r.toString(),form_key:a})});if(!l.ok)return this.createErrorResult(`Failed to add item to cart: ${l.status}`);try{window.require(["Magento_Customer/js/customer-data"],d=>d.reload(["cart"],!0))}catch(d){console.warn("Failed to reload cart data:",d)}return this.createSuccessResult(void 0,`Successfully added ${r} item(s) to cart`)}catch(a){return this.createErrorResult(a instanceof Error?`Error adding to cart: ${a.message}`:"Unknown error occurred while adding to cart")}}async removeFromCart(n){return console.log("MethodNotImplemented: removeFromCart called",{itemId:n}),this.createSuccessResult(void 0,"Item removed from cart (mock)")}async updateQuantity(n){return console.log("MethodNotImplemented: updateQuantity called",{cartItem:n}),this.createSuccessResult(void 0,"Item quantity updated (mock)")}async clearCart(){return console.log("MethodNotImplemented: clearCart called"),this.createSuccessResult(void 0,"Cart cleared (mock)")}generateCartUrl(n){const r=new URL(`https://${n}/checkout/cart?ref=debales-ai-${new Date().toISOString()}&attributes[from]=debales-ai-chatbot&attributes[through]=add-to-cart`);return r.searchParams.append("timestamp",Date.now().toString()),r.toString()}generateProductUrl(n,r){const o=E6(n);if(!o.isValid)return"";if(r.handle){const a=new URL(`/${r.handle}.html`,o.url);return Os(a.toString())}else return Os(r.link)}async addCartAttributes(n={}){return console.log("MethodNotImplemented: addCartAttributes called",{attributes:n}),this.createSuccessResult(void 0,"Cart attributes added (mock)")}}var Jk={exports:{}};function Xge(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eT={exports:{}};const Jge=TV(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var eme=eT.exports,UP;function Xn(){return UP||(UP=1,function(e,t){(function(n,r){e.exports=r()})(eme,function(){var n=n||function(r,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Gl<"u"&&Gl.crypto&&(a=Gl.crypto),!a&&typeof Xge=="function")try{a=Jge}catch{}var l=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function O(){}return function(R){var I;return O.prototype=R,I=new O,O.prototype=null,I}}(),h={},p=h.lib={},m=p.Base=function(){return{extend:function(O){var R=d(this);return O&&R.mixIn(O),(!R.hasOwnProperty("init")||this.init===R.init)&&(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var O=this.extend();return O.init.apply(O,arguments),O},init:function(){},mixIn:function(O){for(var R in O)O.hasOwnProperty(R)&&(this[R]=O[R]);O.hasOwnProperty("toString")&&(this.toString=O.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=p.WordArray=m.extend({init:function(O,R){O=this.words=O||[],R!=o?this.sigBytes=R:this.sigBytes=O.length*4},toString:function(O){return(O||S).stringify(this)},concat:function(O){var R=this.words,I=O.words,z=this.sigBytes,L=O.sigBytes;if(this.clamp(),z%4)for(var H=0;H<L;H++){var V=I[H>>>2]>>>24-H%4*8&255;R[z+H>>>2]|=V<<24-(z+H)%4*8}else for(var te=0;te<L;te+=4)R[z+te>>>2]=I[te>>>2];return this.sigBytes+=L,this},clamp:function(){var O=this.words,R=this.sigBytes;O[R>>>2]&=4294967295<<32-R%4*8,O.length=r.ceil(R/4)},clone:function(){var O=m.clone.call(this);return O.words=this.words.slice(0),O},random:function(O){for(var R=[],I=0;I<O;I+=4)R.push(l());return new y.init(R,O)}}),x=h.enc={},S=x.Hex={stringify:function(O){for(var R=O.words,I=O.sigBytes,z=[],L=0;L<I;L++){var H=R[L>>>2]>>>24-L%4*8&255;z.push((H>>>4).toString(16)),z.push((H&15).toString(16))}return z.join("")},parse:function(O){for(var R=O.length,I=[],z=0;z<R;z+=2)I[z>>>3]|=parseInt(O.substr(z,2),16)<<24-z%8*4;return new y.init(I,R/2)}},w=x.Latin1={stringify:function(O){for(var R=O.words,I=O.sigBytes,z=[],L=0;L<I;L++){var H=R[L>>>2]>>>24-L%4*8&255;z.push(String.fromCharCode(H))}return z.join("")},parse:function(O){for(var R=O.length,I=[],z=0;z<R;z++)I[z>>>2]|=(O.charCodeAt(z)&255)<<24-z%4*8;return new y.init(I,R)}},E=x.Utf8={stringify:function(O){try{return decodeURIComponent(escape(w.stringify(O)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(O){return w.parse(unescape(encodeURIComponent(O)))}},k=p.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(O){typeof O=="string"&&(O=E.parse(O)),this._data.concat(O),this._nDataBytes+=O.sigBytes},_process:function(O){var R,I=this._data,z=I.words,L=I.sigBytes,H=this.blockSize,V=H*4,te=L/V;O?te=r.ceil(te):te=r.max((te|0)-this._minBufferSize,0);var F=te*H,Q=r.min(F*4,L);if(F){for(var J=0;J<F;J+=H)this._doProcessBlock(z,J);R=z.splice(0,F),I.sigBytes-=Q}return new y.init(R,Q)},clone:function(){var O=m.clone.call(this);return O._data=this._data.clone(),O},_minBufferSize:0});p.Hasher=k.extend({cfg:m.extend(),init:function(O){this.cfg=this.cfg.extend(O),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(O){return this._append(O),this._process(),this},finalize:function(O){O&&this._append(O);var R=this._doFinalize();return R},blockSize:16,_createHelper:function(O){return function(R,I){return new O.init(I).finalize(R)}},_createHmacHelper:function(O){return function(R,I){return new T.HMAC.init(O,I).finalize(R)}}});var T=h.algo={};return h}(Math);return n})}(eT)),eT.exports}var tT={exports:{}},tme=tT.exports,jP;function nT(){return jP||(jP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(tme,function(n){return function(r){var o=n,a=o.lib,l=a.Base,d=a.WordArray,h=o.x64={};h.Word=l.extend({init:function(p,m){this.high=p,this.low=m}}),h.WordArray=l.extend({init:function(p,m){p=this.words=p||[],m!=r?this.sigBytes=m:this.sigBytes=p.length*8},toX32:function(){for(var p=this.words,m=p.length,y=[],x=0;x<m;x++){var S=p[x];y.push(S.high),y.push(S.low)}return d.create(y,this.sigBytes)},clone:function(){for(var p=l.clone.call(this),m=p.words=this.words.slice(0),y=m.length,x=0;x<y;x++)m[x]=m[x].clone();return p}})}(),n})}(tT)),tT.exports}var rT={exports:{}},nme=rT.exports,HP;function rme(){return HP||(HP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(nme,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,a=o.WordArray,l=a.init,d=a.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray<"u"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var p=h.byteLength,m=[],y=0;y<p;y++)m[y>>>2]|=h[y]<<24-y%4*8;l.call(this,m,p)}else l.apply(this,arguments)};d.prototype=a}}(),n.lib.WordArray})}(rT)),rT.exports}var iT={exports:{}},ime=iT.exports,PP;function ome(){return PP||(PP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ime,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Utf16=l.Utf16BE={stringify:function(h){for(var p=h.words,m=h.sigBytes,y=[],x=0;x<m;x+=2){var S=p[x>>>2]>>>16-x%4*8&65535;y.push(String.fromCharCode(S))}return y.join("")},parse:function(h){for(var p=h.length,m=[],y=0;y<p;y++)m[y>>>1]|=h.charCodeAt(y)<<16-y%2*16;return a.create(m,p*2)}},l.Utf16LE={stringify:function(h){for(var p=h.words,m=h.sigBytes,y=[],x=0;x<m;x+=2){var S=d(p[x>>>2]>>>16-x%4*8&65535);y.push(String.fromCharCode(S))}return y.join("")},parse:function(h){for(var p=h.length,m=[],y=0;y<p;y++)m[y>>>1]|=d(h.charCodeAt(y)<<16-y%2*16);return a.create(m,p*2)}};function d(h){return h<<8&4278255360|h>>>8&16711935}}(),n.enc.Utf16})}(iT)),iT.exports}var oT={exports:{}},ame=oT.exports,qP;function qp(){return qP||(qP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ame,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Base64={stringify:function(h){var p=h.words,m=h.sigBytes,y=this._map;h.clamp();for(var x=[],S=0;S<m;S+=3)for(var w=p[S>>>2]>>>24-S%4*8&255,E=p[S+1>>>2]>>>24-(S+1)%4*8&255,k=p[S+2>>>2]>>>24-(S+2)%4*8&255,T=w<<16|E<<8|k,O=0;O<4&&S+O*.75<m;O++)x.push(y.charAt(T>>>6*(3-O)&63));var R=y.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(h){var p=h.length,m=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var x=0;x<m.length;x++)y[m.charCodeAt(x)]=x}var S=m.charAt(64);if(S){var w=h.indexOf(S);w!==-1&&(p=w)}return d(h,p,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(h,p,m){for(var y=[],x=0,S=0;S<p;S++)if(S%4){var w=m[h.charCodeAt(S-1)]<<S%4*2,E=m[h.charCodeAt(S)]>>>6-S%4*2,k=w|E;y[x>>>2]|=k<<24-x%4*8,x++}return a.create(y,x)}}(),n.enc.Base64})}(oT)),oT.exports}var aT={exports:{}},sme=aT.exports,GP;function lme(){return GP||(GP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(sme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Base64url={stringify:function(h,p){p===void 0&&(p=!0);var m=h.words,y=h.sigBytes,x=p?this._safe_map:this._map;h.clamp();for(var S=[],w=0;w<y;w+=3)for(var E=m[w>>>2]>>>24-w%4*8&255,k=m[w+1>>>2]>>>24-(w+1)%4*8&255,T=m[w+2>>>2]>>>24-(w+2)%4*8&255,O=E<<16|k<<8|T,R=0;R<4&&w+R*.75<y;R++)S.push(x.charAt(O>>>6*(3-R)&63));var I=x.charAt(64);if(I)for(;S.length%4;)S.push(I);return S.join("")},parse:function(h,p){p===void 0&&(p=!0);var m=h.length,y=p?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var S=0;S<y.length;S++)x[y.charCodeAt(S)]=S}var w=y.charAt(64);if(w){var E=h.indexOf(w);E!==-1&&(m=E)}return d(h,m,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(h,p,m){for(var y=[],x=0,S=0;S<p;S++)if(S%4){var w=m[h.charCodeAt(S-1)]<<S%4*2,E=m[h.charCodeAt(S)]>>>6-S%4*2,k=w|E;y[x>>>2]|=k<<24-x%4*8,x++}return a.create(y,x)}}(),n.enc.Base64url})}(aT)),aT.exports}var sT={exports:{}},ume=sT.exports,VP;function Gp(){return VP||(VP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ume,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.algo,p=[];(function(){for(var E=0;E<64;E++)p[E]=r.abs(r.sin(E+1))*4294967296|0})();var m=h.MD5=d.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,k){for(var T=0;T<16;T++){var O=k+T,R=E[O];E[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var I=this._hash.words,z=E[k+0],L=E[k+1],H=E[k+2],V=E[k+3],te=E[k+4],F=E[k+5],Q=E[k+6],J=E[k+7],oe=E[k+8],re=E[k+9],pe=E[k+10],ee=E[k+11],se=E[k+12],he=E[k+13],Ee=E[k+14],N=E[k+15],Y=I[0],ae=I[1],B=I[2],de=I[3];Y=y(Y,ae,B,de,z,7,p[0]),de=y(de,Y,ae,B,L,12,p[1]),B=y(B,de,Y,ae,H,17,p[2]),ae=y(ae,B,de,Y,V,22,p[3]),Y=y(Y,ae,B,de,te,7,p[4]),de=y(de,Y,ae,B,F,12,p[5]),B=y(B,de,Y,ae,Q,17,p[6]),ae=y(ae,B,de,Y,J,22,p[7]),Y=y(Y,ae,B,de,oe,7,p[8]),de=y(de,Y,ae,B,re,12,p[9]),B=y(B,de,Y,ae,pe,17,p[10]),ae=y(ae,B,de,Y,ee,22,p[11]),Y=y(Y,ae,B,de,se,7,p[12]),de=y(de,Y,ae,B,he,12,p[13]),B=y(B,de,Y,ae,Ee,17,p[14]),ae=y(ae,B,de,Y,N,22,p[15]),Y=x(Y,ae,B,de,L,5,p[16]),de=x(de,Y,ae,B,Q,9,p[17]),B=x(B,de,Y,ae,ee,14,p[18]),ae=x(ae,B,de,Y,z,20,p[19]),Y=x(Y,ae,B,de,F,5,p[20]),de=x(de,Y,ae,B,pe,9,p[21]),B=x(B,de,Y,ae,N,14,p[22]),ae=x(ae,B,de,Y,te,20,p[23]),Y=x(Y,ae,B,de,re,5,p[24]),de=x(de,Y,ae,B,Ee,9,p[25]),B=x(B,de,Y,ae,V,14,p[26]),ae=x(ae,B,de,Y,oe,20,p[27]),Y=x(Y,ae,B,de,he,5,p[28]),de=x(de,Y,ae,B,H,9,p[29]),B=x(B,de,Y,ae,J,14,p[30]),ae=x(ae,B,de,Y,se,20,p[31]),Y=S(Y,ae,B,de,F,4,p[32]),de=S(de,Y,ae,B,oe,11,p[33]),B=S(B,de,Y,ae,ee,16,p[34]),ae=S(ae,B,de,Y,Ee,23,p[35]),Y=S(Y,ae,B,de,L,4,p[36]),de=S(de,Y,ae,B,te,11,p[37]),B=S(B,de,Y,ae,J,16,p[38]),ae=S(ae,B,de,Y,pe,23,p[39]),Y=S(Y,ae,B,de,he,4,p[40]),de=S(de,Y,ae,B,z,11,p[41]),B=S(B,de,Y,ae,V,16,p[42]),ae=S(ae,B,de,Y,Q,23,p[43]),Y=S(Y,ae,B,de,re,4,p[44]),de=S(de,Y,ae,B,se,11,p[45]),B=S(B,de,Y,ae,N,16,p[46]),ae=S(ae,B,de,Y,H,23,p[47]),Y=w(Y,ae,B,de,z,6,p[48]),de=w(de,Y,ae,B,J,10,p[49]),B=w(B,de,Y,ae,Ee,15,p[50]),ae=w(ae,B,de,Y,F,21,p[51]),Y=w(Y,ae,B,de,se,6,p[52]),de=w(de,Y,ae,B,V,10,p[53]),B=w(B,de,Y,ae,pe,15,p[54]),ae=w(ae,B,de,Y,L,21,p[55]),Y=w(Y,ae,B,de,oe,6,p[56]),de=w(de,Y,ae,B,N,10,p[57]),B=w(B,de,Y,ae,Q,15,p[58]),ae=w(ae,B,de,Y,he,21,p[59]),Y=w(Y,ae,B,de,te,6,p[60]),de=w(de,Y,ae,B,ee,10,p[61]),B=w(B,de,Y,ae,H,15,p[62]),ae=w(ae,B,de,Y,re,21,p[63]),I[0]=I[0]+Y|0,I[1]=I[1]+ae|0,I[2]=I[2]+B|0,I[3]=I[3]+de|0},_doFinalize:function(){var E=this._data,k=E.words,T=this._nDataBytes*8,O=E.sigBytes*8;k[O>>>5]|=128<<24-O%32;var R=r.floor(T/4294967296),I=T;k[(O+64>>>9<<4)+15]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k[(O+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,E.sigBytes=(k.length+1)*4,this._process();for(var z=this._hash,L=z.words,H=0;H<4;H++){var V=L[H];L[H]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}return z},clone:function(){var E=d.clone.call(this);return E._hash=this._hash.clone(),E}});function y(E,k,T,O,R,I,z){var L=E+(k&T|~k&O)+R+z;return(L<<I|L>>>32-I)+k}function x(E,k,T,O,R,I,z){var L=E+(k&O|T&~O)+R+z;return(L<<I|L>>>32-I)+k}function S(E,k,T,O,R,I,z){var L=E+(k^T^O)+R+z;return(L<<I|L>>>32-I)+k}function w(E,k,T,O,R,I,z){var L=E+(T^(k|~O))+R+z;return(L<<I|L>>>32-I)+k}o.MD5=d._createHelper(m),o.HmacMD5=d._createHmacHelper(m)}(Math),n.MD5})}(sT)),sT.exports}var lT={exports:{}},cme=lT.exports,YP;function ZP(){return YP||(YP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(cme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=o.Hasher,d=r.algo,h=[],p=d.SHA1=l.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,y){for(var x=this._hash.words,S=x[0],w=x[1],E=x[2],k=x[3],T=x[4],O=0;O<80;O++){if(O<16)h[O]=m[y+O]|0;else{var R=h[O-3]^h[O-8]^h[O-14]^h[O-16];h[O]=R<<1|R>>>31}var I=(S<<5|S>>>27)+T+h[O];O<20?I+=(w&E|~w&k)+1518500249:O<40?I+=(w^E^k)+1859775393:O<60?I+=(w&E|w&k|E&k)-1894007588:I+=(w^E^k)-899497514,T=k,k=E,E=w<<30|w>>>2,w=S,S=I}x[0]=x[0]+S|0,x[1]=x[1]+w|0,x[2]=x[2]+E|0,x[3]=x[3]+k|0,x[4]=x[4]+T|0},_doFinalize:function(){var m=this._data,y=m.words,x=this._nDataBytes*8,S=m.sigBytes*8;return y[S>>>5]|=128<<24-S%32,y[(S+64>>>9<<4)+14]=Math.floor(x/4294967296),y[(S+64>>>9<<4)+15]=x,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});r.SHA1=l._createHelper(p),r.HmacSHA1=l._createHmacHelper(p)}(),n.SHA1})}(lT)),lT.exports}var uT={exports:{}},fme=uT.exports,QP;function g8(){return QP||(QP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(fme,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.algo,p=[],m=[];(function(){function S(T){for(var O=r.sqrt(T),R=2;R<=O;R++)if(!(T%R))return!1;return!0}function w(T){return(T-(T|0))*4294967296|0}for(var E=2,k=0;k<64;)S(E)&&(k<8&&(p[k]=w(r.pow(E,.5))),m[k]=w(r.pow(E,.3333333333333333)),k++),E++})();var y=[],x=h.SHA256=d.extend({_doReset:function(){this._hash=new l.init(p.slice(0))},_doProcessBlock:function(S,w){for(var E=this._hash.words,k=E[0],T=E[1],O=E[2],R=E[3],I=E[4],z=E[5],L=E[6],H=E[7],V=0;V<64;V++){if(V<16)y[V]=S[w+V]|0;else{var te=y[V-15],F=(te<<25|te>>>7)^(te<<14|te>>>18)^te>>>3,Q=y[V-2],J=(Q<<15|Q>>>17)^(Q<<13|Q>>>19)^Q>>>10;y[V]=F+y[V-7]+J+y[V-16]}var oe=I&z^~I&L,re=k&T^k&O^T&O,pe=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),ee=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),se=H+ee+oe+m[V]+y[V],he=pe+re;H=L,L=z,z=I,I=R+se|0,R=O,O=T,T=k,k=se+he|0}E[0]=E[0]+k|0,E[1]=E[1]+T|0,E[2]=E[2]+O|0,E[3]=E[3]+R|0,E[4]=E[4]+I|0,E[5]=E[5]+z|0,E[6]=E[6]+L|0,E[7]=E[7]+H|0},_doFinalize:function(){var S=this._data,w=S.words,E=this._nDataBytes*8,k=S.sigBytes*8;return w[k>>>5]|=128<<24-k%32,w[(k+64>>>9<<4)+14]=r.floor(E/4294967296),w[(k+64>>>9<<4)+15]=E,S.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var S=d.clone.call(this);return S._hash=this._hash.clone(),S}});o.SHA256=d._createHelper(x),o.HmacSHA256=d._createHmacHelper(x)}(Math),n.SHA256})}(uT)),uT.exports}var cT={exports:{}},dme=cT.exports,KP;function hme(){return KP||(KP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),g8())})(dme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.algo,d=l.SHA256,h=l.SHA224=d.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var p=d._doFinalize.call(this);return p.sigBytes-=4,p}});r.SHA224=d._createHelper(h),r.HmacSHA224=d._createHmacHelper(h)}(),n.SHA224})}(cT)),cT.exports}var fT={exports:{}},pme=fT.exports,WP;function XP(){return WP||(WP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT())})(pme,function(n){return function(){var r=n,o=r.lib,a=o.Hasher,l=r.x64,d=l.Word,h=l.WordArray,p=r.algo;function m(){return d.create.apply(d,arguments)}var y=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],x=[];(function(){for(var w=0;w<80;w++)x[w]=m()})();var S=p.SHA512=a.extend({_doReset:function(){this._hash=new h.init([new d.init(1779033703,4089235720),new d.init(3144134277,2227873595),new d.init(1013904242,4271175723),new d.init(2773480762,1595750129),new d.init(1359893119,2917565137),new d.init(2600822924,725511199),new d.init(528734635,4215389547),new d.init(1541459225,327033209)])},_doProcessBlock:function(w,E){for(var k=this._hash.words,T=k[0],O=k[1],R=k[2],I=k[3],z=k[4],L=k[5],H=k[6],V=k[7],te=T.high,F=T.low,Q=O.high,J=O.low,oe=R.high,re=R.low,pe=I.high,ee=I.low,se=z.high,he=z.low,Ee=L.high,N=L.low,Y=H.high,ae=H.low,B=V.high,de=V.low,Ne=te,ke=F,Ie=Q,We=J,Et=oe,dt=re,lt=pe,rt=ee,At=se,gt=he,bt=Ee,zt=N,ne=Y,le=ae,_e=B,Fe=de,be=0;be<80;be++){var Be,at,mt=x[be];if(be<16)at=mt.high=w[E+be*2]|0,Be=mt.low=w[E+be*2+1]|0;else{var wt=x[be-15],ye=wt.high,He=wt.low,ut=(ye>>>1|He<<31)^(ye>>>8|He<<24)^ye>>>7,yt=(He>>>1|ye<<31)^(He>>>8|ye<<24)^(He>>>7|ye<<25),_t=x[be-2],Gt=_t.high,Wt=_t.low,ln=(Gt>>>19|Wt<<13)^(Gt<<3|Wt>>>29)^Gt>>>6,Zt=(Wt>>>19|Gt<<13)^(Wt<<3|Gt>>>29)^(Wt>>>6|Gt<<26),It=x[be-7],jt=It.high,vt=It.low,G=x[be-16],we=G.high,tt=G.low;Be=yt+vt,at=ut+jt+(Be>>>0<yt>>>0?1:0),Be=Be+Zt,at=at+ln+(Be>>>0<Zt>>>0?1:0),Be=Be+tt,at=at+we+(Be>>>0<tt>>>0?1:0),mt.high=at,mt.low=Be}var st=At&bt^~At&ne,xt=gt&zt^~gt&le,Vt=Ne&Ie^Ne&Et^Ie&Et,Lt=ke&We^ke&dt^We&dt,Xt=(Ne>>>28|ke<<4)^(Ne<<30|ke>>>2)^(Ne<<25|ke>>>7),Dt=(ke>>>28|Ne<<4)^(ke<<30|Ne>>>2)^(ke<<25|Ne>>>7),mn=(At>>>14|gt<<18)^(At>>>18|gt<<14)^(At<<23|gt>>>9),Pn=(gt>>>14|At<<18)^(gt>>>18|At<<14)^(gt<<23|At>>>9),Ui=y[be],zn=Ui.high,vn=Ui.low,Qt=Fe+Pn,Br=_e+mn+(Qt>>>0<Fe>>>0?1:0),Qt=Qt+xt,Br=Br+st+(Qt>>>0<xt>>>0?1:0),Qt=Qt+vn,Br=Br+zn+(Qt>>>0<vn>>>0?1:0),Qt=Qt+Be,Br=Br+at+(Qt>>>0<Be>>>0?1:0),nr=Dt+Lt,la=Xt+Vt+(nr>>>0<Dt>>>0?1:0);_e=ne,Fe=le,ne=bt,le=zt,bt=At,zt=gt,gt=rt+Qt|0,At=lt+Br+(gt>>>0<rt>>>0?1:0)|0,lt=Et,rt=dt,Et=Ie,dt=We,Ie=Ne,We=ke,ke=Qt+nr|0,Ne=Br+la+(ke>>>0<Qt>>>0?1:0)|0}F=T.low=F+ke,T.high=te+Ne+(F>>>0<ke>>>0?1:0),J=O.low=J+We,O.high=Q+Ie+(J>>>0<We>>>0?1:0),re=R.low=re+dt,R.high=oe+Et+(re>>>0<dt>>>0?1:0),ee=I.low=ee+rt,I.high=pe+lt+(ee>>>0<rt>>>0?1:0),he=z.low=he+gt,z.high=se+At+(he>>>0<gt>>>0?1:0),N=L.low=N+zt,L.high=Ee+bt+(N>>>0<zt>>>0?1:0),ae=H.low=ae+le,H.high=Y+ne+(ae>>>0<le>>>0?1:0),de=V.low=de+Fe,V.high=B+_e+(de>>>0<Fe>>>0?1:0)},_doFinalize:function(){var w=this._data,E=w.words,k=this._nDataBytes*8,T=w.sigBytes*8;E[T>>>5]|=128<<24-T%32,E[(T+128>>>10<<5)+30]=Math.floor(k/4294967296),E[(T+128>>>10<<5)+31]=k,w.sigBytes=E.length*4,this._process();var O=this._hash.toX32();return O},clone:function(){var w=a.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:1024/32});r.SHA512=a._createHelper(S),r.HmacSHA512=a._createHmacHelper(S)}(),n.SHA512})}(fT)),fT.exports}var dT={exports:{}},gme=dT.exports,JP;function mme(){return JP||(JP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT(),XP())})(gme,function(n){return function(){var r=n,o=r.x64,a=o.Word,l=o.WordArray,d=r.algo,h=d.SHA512,p=d.SHA384=h.extend({_doReset:function(){this._hash=new l.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var m=h._doFinalize.call(this);return m.sigBytes-=16,m}});r.SHA384=h._createHelper(p),r.HmacSHA384=h._createHmacHelper(p)}(),n.SHA384})}(dT)),dT.exports}var hT={exports:{}},vme=hT.exports,eq;function yme(){return eq||(eq=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT())})(vme,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.x64,p=h.Word,m=o.algo,y=[],x=[],S=[];(function(){for(var k=1,T=0,O=0;O<24;O++){y[k+5*T]=(O+1)*(O+2)/2%64;var R=T%5,I=(2*k+3*T)%5;k=R,T=I}for(var k=0;k<5;k++)for(var T=0;T<5;T++)x[k+5*T]=T+(2*k+3*T)%5*5;for(var z=1,L=0;L<24;L++){for(var H=0,V=0,te=0;te<7;te++){if(z&1){var F=(1<<te)-1;F<32?V^=1<<F:H^=1<<F-32}z&128?z=z<<1^113:z<<=1}S[L]=p.create(H,V)}})();var w=[];(function(){for(var k=0;k<25;k++)w[k]=p.create()})();var E=m.SHA3=d.extend({cfg:d.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],T=0;T<25;T++)k[T]=new p.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,T){for(var O=this._state,R=this.blockSize/2,I=0;I<R;I++){var z=k[T+2*I],L=k[T+2*I+1];z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360;var H=O[I];H.high^=L,H.low^=z}for(var V=0;V<24;V++){for(var te=0;te<5;te++){for(var F=0,Q=0,J=0;J<5;J++){var H=O[te+5*J];F^=H.high,Q^=H.low}var oe=w[te];oe.high=F,oe.low=Q}for(var te=0;te<5;te++)for(var re=w[(te+4)%5],pe=w[(te+1)%5],ee=pe.high,se=pe.low,F=re.high^(ee<<1|se>>>31),Q=re.low^(se<<1|ee>>>31),J=0;J<5;J++){var H=O[te+5*J];H.high^=F,H.low^=Q}for(var he=1;he<25;he++){var F,Q,H=O[he],Ee=H.high,N=H.low,Y=y[he];Y<32?(F=Ee<<Y|N>>>32-Y,Q=N<<Y|Ee>>>32-Y):(F=N<<Y-32|Ee>>>64-Y,Q=Ee<<Y-32|N>>>64-Y);var ae=w[x[he]];ae.high=F,ae.low=Q}var B=w[0],de=O[0];B.high=de.high,B.low=de.low;for(var te=0;te<5;te++)for(var J=0;J<5;J++){var he=te+5*J,H=O[he],Ne=w[he],ke=w[(te+1)%5+5*J],Ie=w[(te+2)%5+5*J];H.high=Ne.high^~ke.high&Ie.high,H.low=Ne.low^~ke.low&Ie.low}var H=O[0],We=S[V];H.high^=We.high,H.low^=We.low}},_doFinalize:function(){var k=this._data,T=k.words;this._nDataBytes*8;var O=k.sigBytes*8,R=this.blockSize*32;T[O>>>5]|=1<<24-O%32,T[(r.ceil((O+1)/R)*R>>>5)-1]|=128,k.sigBytes=T.length*4,this._process();for(var I=this._state,z=this.cfg.outputLength/8,L=z/8,H=[],V=0;V<L;V++){var te=I[V],F=te.high,Q=te.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,Q=(Q<<8|Q>>>24)&16711935|(Q<<24|Q>>>8)&4278255360,H.push(Q),H.push(F)}return new l.init(H,z)},clone:function(){for(var k=d.clone.call(this),T=k._state=this._state.slice(0),O=0;O<25;O++)T[O]=T[O].clone();return k}});o.SHA3=d._createHelper(E),o.HmacSHA3=d._createHmacHelper(E)}(Math),n.SHA3})}(hT)),hT.exports}var pT={exports:{}},xme=pT.exports,tq;function bme(){return tq||(tq=1,function(e,t){(function(n,r){e.exports=r(Xn())})(xme,function(n){/** @preserve
|
|
4822
|
+
=> User Action: Klaviyo form closed`}return""},P=W=>{W instanceof CustomEvent&&ce(W)};return window.addEventListener("klaviyoForms",P),()=>{window.removeEventListener("klaviyoForms",P)}},[bt,t,r]),Z.useEffect(()=>{const ce=_e.current;return lt&&ce?(ce.addEventListener("scroll",Qt),()=>{ce&&ce.removeEventListener("scroll",Qt)}):()=>{}},[lt,Qt]);const[Ti,rr]=Z.useState(!1),Xi=oe==="Highest"?"120px":oe==="Higher"?"60px":"15px",ho=async()=>{try{const ce=await fetch(`${co}/api/wordpress/support`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({chatid:tr()+e,nameSpace:e,userName:ut.name,userEmail:ut.email,userMessage:ut.message,tag:"support"})});if(ce.ok){const Oe=`support-confirm-${Date.now()}`;y(P=>[...P,{text:"Thanks for reaching out! Our support team has received your request and will get back to you within 24 hours.<br>In the meantime, feel free to continue chatting with me - I'll do my best to help!",isBot:!0,leading_queries:_t,conversationId:Oe}]),d(Oe),jt(P=>({...P,leadingQueries:!0})),Gt([]),console.log("Connected to support with existing user info:",jo())}else{const Oe=await ce.json();console.error("Failed to connect to support:",Oe),y(P=>[...P,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}}catch{y(Oe=>[...Oe,{text:"Sorry, we couldn't connect you to support at the moment.<br>Please try again later.",isBot:!0}])}},Bn=()=>{if(Te(e)){const W=jp("https://test.thecollective.in/content/customersupport");W.isValid&&(t!=null&&t.shopifyShopDomain&&(W.url.hostname=t==null?void 0:t.shopifyShopDomain),window.open(Os(W.url.toString()),"_blank"));return}const ce=jo();let Oe=[];const P=h[h.length-1];P!=null&&P.leading_queries&&P.leading_queries.length>0?Oe=P.leading_queries:h.length<=1&&(Oe=B.flatMap(W=>Array.isArray(W)?W.map(ue=>ue.question):[W.question]).slice(0,4)),Gt(Oe),ce&&ce.name&&ce.email&&yt({name:ce==null?void 0:ce.name,email:ce==null?void 0:ce.email,message:""}),y(W=>[...W,{text:"Please provide your name, email and message to connect with support.",isBot:!0}]),He(!0)},po=async ce=>{ce.preventDefault();const Oe={name:"",email:"",message:""};let P=!0;const W=ut.name.trim(),ue=ut.message.trim();W||(Oe.name="Name cannot be empty or just whitespace.",P=!1),(!ut.email||!zm.isEmail(ut.email))&&(Oe.email="Please enter a valid email address.",P=!1),ue||(Oe.message="Message cannot be empty or just whitespace.",P=!1),ln(Oe),P&&(ff({name:W,email:ut.email}),He(!1),y(xe=>xe.slice(0,-1)),await ho())},[Qr,ot]=Z.useState({});return Z.useEffect(()=>{Xt&&(h.forEach((ce,Oe)=>{if(!ce.isBot)return;const P=Lp(ce.text);if(!(Oe in Qr)||Qr[Oe]<P.length){let W;const ue=xe=>{xe<P.length&&(W=setTimeout(()=>{ot(Ae=>({...Ae,[Oe]:xe+1})),ue(xe+1)},vn))};return Oe in Qr?ue(Qr[Oe]):(ot(xe=>({...xe,[Oe]:1})),ue(1)),()=>clearTimeout(W)}}),ot(ce=>{const Oe={};return h.forEach((P,W)=>{ce[W]!==void 0&&(Oe[W]=ce[W])}),Oe}))},[h,Xt]),!t||t.show_bot===!1||a?null:M.jsxs(nC,{theme:yE(t,e),children:[M.jsx("link",{rel:"preconnect",href:"https://fonts.googleapis.com"}),M.jsx("link",{rel:"preconnect",href:"https://fonts.gstatic.com",crossOrigin:"anonymous"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap",rel:"stylesheet"}),M.jsx("link",{href:"https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap",rel:"stylesheet"}),M.jsx(zge,{}),M.jsxs(bge,{$topOffset:Xi,$isLeft:Q,children:[!lt&&B.length>0&&B[Ne]&&Ee&&M.jsx(Lge,{className:Y?"visible":"",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Xi,style:{display:"flex",flexDirection:"column",alignItems:"center",opacity:Y?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length>0&&B[Ne]&&M.jsx(Nge,{children:M.jsx(vge,{messages:[{question:B[Ne].question,isHighlighted:B[Ne].isHighlighted??!1,show_for:(ee==null?void 0:ee.show_for)||4e3,hide_timing:(ee==null?void 0:ee.hide_timing)||4e3}],botId:e,uiData:t,onClose:()=>{Be(ce=>{const Oe=new Set(ce);return Oe.add(B[Ne].question),Oe})},onClick:()=>{const ce=B[Ne];at(!0,"suggested_question_clicked"),Be(Oe=>{const P=new Set(Oe);return P.add(ce.question),P}),window.DebalesChat.track(nn.SUGGESTED_QUESTION_CLICKED,{suggested_question:ce}),T?(Lt(!1),Dt(!0),k(!0),O(ce)):(Lt(!1),Dt(!0),r({message:ce.Follow_up_Question??ce.question,answer:ce.answer,products:ce.products,fromKlaviyo:!1,leading_queries:ce.leading_queries,followUpQuestion:ce.Follow_up_Question,messType:"suggested_question"}))}})},B[Ne].question)}),M.jsxs(_ge,{$topOffset:Xi,$removeLogoBackground:t.removeLogoBackground,style:{display:lt||Ee?"none":"flex"},children:[M.jsx(Sge,{$showAnimation:t.enableChatButtonBackgroundAnimation??!1,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",$backgroundColor:t.backgroundColor||"#fff",$removeLogoBackground:t.removeLogoBackground,$topOffset:Xi,$iconSize:te}),M.jsxs(wge,{$backgroundColor:t.removeLogoBackground?"transparent":t.backgroundColor||"#fff",$botId:e,$iconSize:te,$removeLogoBackground:t.removeLogoBackground,topOffset:Xi,$showAnimation:t.enableChatButtonBackgroundAnimation,$animationType:"Ping",$animationColor:t.chatButtonBackgroundAnimationColor||"#f48722",id:"debales-chat-button","data-testid":"debales-chat-button",onClick:()=>{if(window.DebalesChat.track(nn.CHAT_BUTTON_CLICKED),at(!lt,"chat_button_clicked"),!lt){const ce=S();ce.length>0?(y(ce),Lt(!1),Dt(!0)):(Lt(!0),Dt(!1),setTimeout(()=>{Lt(!1),Dt(!0);const Oe={text:(t==null?void 0:t.initialMessage)||"Hi, I am an AI chatbot, how can I help you today?",isBot:!0};y([Oe])},(ee==null?void 0:ee.showing_delay)||2e3))}},"aria-label":"Chat",style:{display:lt||Ee?"none":"flex"},children:[M.jsx(Cge,{$botId:e,$removeLogoBackground:t.removeLogoBackground,"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),(B==null?void 0:B.length)>0&&!lt&&se&&M.jsx("div",{style:{position:"absolute",top:"0px",right:"0px",backgroundColor:"#f44336",color:"white",borderRadius:"50%",width:"20px",height:"20px",display:"flex",justifyContent:"center",alignItems:"center",fontSize:"12px",fontWeight:"bold",zIndex:2,opacity:se?1:0,transition:"opacity 0.3s ease-in-out"},children:B.length})]})]})]}),lt&&bw.createPortal(M.jsx(M.Fragment,{children:M.jsxs(kge,{$backgroundColor:t.backgroundColor||"#fff",$fullScreenOnMobile:t.fullScreenOnMobile,$headerFontColor:t.headerFontColor||"#1C1C1C",$isLeft:Q,$topOffset:Xi,$mobileDisplayMode:t.mobileDisplayMode,$isVisible:At,"data-testid":"debales-chat-container",children:[M.jsxs(Oge,{$backgroundColor:Te(e)?t.backgroundColor:t.botBackgroundColor||"#fff",style:{color:t.headerFontColor},children:[M.jsx("div",{style:{flexGrow:.1,display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",marginRight:"8px",gap:"10px"},children:Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(MP,{"aria-hidden":"true",src:t.bot_logo,alt:"Chat Bot Icon"}),Te(e)?M.jsx("div",{children:M.jsx("img",{src:Ck,alt:"Chat Bot Icon",style:{height:"36px"}})}):M.jsxs(Ege,{$botNameColor:t.headerFontColor,children:[M.jsxs("div",{style:{fontWeight:"700",wordBreak:"break-word"},children:[t.chatbotName,e==="catch-org-ai"&&M.jsx($k,{children:"Beta"})]}),M.jsx(Age,{})]})]}):M.jsx(Tge,{children:M.jsxs(Rge,{children:[M.jsx(MP,{src:t.bot_logo,alt:"Chat Bot Icon"}),M.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",display:"inline-block",maxWidth:"22ch"},children:t.chatbotName})]})})}),M.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"8px",marginLeft:"auto",flexShrink:0},children:[M.jsx(Bk,{handleSupportClick:Bn,isSupportMode:!1}),M.jsx(jx,{onClick:()=>{Zt?Ro(!0):at(!1,"close_button_clicked")},id:"debales-minimize-button","data-testid":"debales-minimize-button","aria-label":"Minimize",children:M.jsx(Zm,{botNameColor:t.headerFontColor})})]}),M.jsx(Gge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:mn?1:0}})]}),M.jsxs(Ige,{$backgroundColor:t.botBackgroundColor||"#fff",$mobileDisplayMode:t.mobileDisplayMode,children:[Ti&&((Re=(Kr=t.pluginConfig)==null?void 0:Kr.collectedUserInfo)==null?void 0:Re.discount)&&M.jsx(Gk,{discount:t.pluginConfig.collectedUserInfo.discount,uiData:t,onClose:()=>{rr(!1),window.DebalesChat.track(nn.DISCOUNT_VIEWED,{discount:t.pluginConfig.collectedUserInfo.discount})}}),M.jsx(Ik,{}),M.jsx(Kk,{uidata:t,product:Po,showModel:Br,setShowModel:nr,onVariantSelect:ce=>{I(ce.id,1),H(!0),window.DebalesChat.track(nn.ADD_TO_CART_CLICKED,{product:ce.title,price:Number(ce.price),link:`https://${t.shopifyShopDomain}/variants/${ce.id}`,message:l,chatId:tr()+e})},botId:e}),la&&M.jsx(Vk,{setShowExitModal:Ro,handleCloseChatbot:$t,chatId:tr()+e}),M.jsxs(Dge,{id:"debales-conversation-group",$botBackgroundColor:t.botBackgroundColor||"#fff",ref:_e,$mobileDisplayMode:t.mobileDisplayMode,children:[M.jsx(Pge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:mn?1:0}}),M.jsxs(Mge,{children:[Xt&&h.map((ce,Oe)=>{const P=ce.isBot,W=Lp(ce.text);return ce.hideConfirmation?null:M.jsxs(Z.Fragment,{children:[P&&M.jsxs(IP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff","data-testid":"debales-ai-message-container",children:[M.jsx("img",{src:P?t.bot_logo:t.userMessage_logo,alt:"Chat User Icon",style:{marginLeft:"8px"}}),M.jsxs(LP,{children:[W.slice(0,Qr[Oe]||0).map((ue,xe)=>M.jsx("div",{children:M.jsx(Fi,{isBot:P,children:M.jsx(Cd,{remarkPlugins:[Bw,_E],children:ue})})},xe)),ce.collections&&(Te(e)?l===ce.conversationId?It.collections:!0:l===ce.conversationId&&It.collections)&&M.jsx(Hk,{message:ce,botId:e,uidata:t,onSendMessage:r,loading:p}),ce.products&&(Te(e)?l===ce.conversationId?It.products:!0:l===ce.conversationId&&It.products)&&M.jsx(Zk,{message:ce,botId:e,uidata:t,onSendMessage:r,loading:p,storeMetaData:n,platform:F,setShowVariantModel:nr,setSelectedProduct:pi}),o&&M.jsx(f8,{children:M.jsx(Nx,{onClick:()=>{window._klOnsite&&(window._klOnsite.push(["openForm",ne]),at(!1,"klaviyo_grab_deal_button"))},children:"π Grab Deal Now!"})}),R&&R.itemCount>0&&l===ce.conversationId&&It.cartSummary&&V&&M.jsx(zk,{onCheckout:fo,onKeepShopping:()=>{H(!1)}}),mt&&mt.length>0&&l===ce.conversationId&&It.bulkItems&&M.jsx(Sk,{onClick:()=>li(ce.conversationId),children:"Add Bulk Items to Cart"}),E&&h.indexOf(ce)===h.length-1&&M.jsx(M.Fragment,{children:M.jsx(Qk,{setShowModel:ue=>{var Ae,Ze;const xe=typeof ue=="function"?ue(E):ue;k(xe),!xe&&((Ze=(Ae=t.pluginConfig)==null?void 0:Ae.collectedUserInfo)!=null&&Ze.discount)&&rr(!0)},inChat:!0,showFormInstructions:!1})}),ye&&h.indexOf(ce)===h.length-1&&M.jsxs(Fge,{onSubmit:po,noValidate:!0,"data-testid":"debales-support-form",children:[Te(e)?M.jsxs(M.Fragment,{children:[M.jsx(nu,{label:"Name",name:"name",type:"text",value:ut.name,onChange:ue=>yt(xe=>({...xe,name:ue.target.value})),required:!0,error:Wt.name,isCollectiveBot:!0}),M.jsx(nu,{label:"Email",name:"email",type:"email",value:ut.email,onChange:ue=>yt(xe=>({...xe,email:ue.target.value})),required:!0,error:Wt.email,isCollectiveBot:!0}),M.jsx(Yk,{label:"Message",name:"message",value:ut.message,onChange:ue=>yt(xe=>({...xe,message:ue.target.value})),required:!0,error:Wt.message,rows:4,isCollectiveBot:!0})]}):M.jsxs(M.Fragment,{children:[M.jsxs(d8,{children:[M.jsxs(h8,{children:["Name",M.jsx("span",{children:"*"})]}),M.jsx(NP,{type:"text",required:!0,value:ut.name,onChange:ue=>yt(xe=>({...xe,name:ue.target.value})),placeholder:"John"}),Wt.name&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.name})]}),M.jsxs(d8,{children:[M.jsxs(h8,{children:["Email",M.jsx("span",{children:"*"})]}),M.jsx(NP,{type:"email",required:!0,value:ut.email,onChange:ue=>yt(xe=>({...xe,email:ue.target.value})),placeholder:"olivia@untitledui.com"}),Wt.email&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.email})]}),M.jsxs(d8,{children:[M.jsxs(h8,{children:["Message",M.jsx("span",{children:"*"})]}),M.jsx(Uge,{required:!0,value:ut.message,onChange:ue=>yt(xe=>({...xe,message:ue.target.value})),placeholder:"I need help with..."}),Wt.message&&M.jsx("p",{style:{color:"red",fontSize:"12px",margin:"4px 0 0"},children:Wt.message})]})]}),M.jsx(Hge,{children:M.jsx(jge,{type:"submit",children:"Submit"})})]}),we&&!p&&l===ce.conversationId&&M.jsx(Fi,{isBot:P,children:M.jsx(Ds,{loading:we,loadingPhrases:["π¨ Loading","β¨ Almost","π Ready"]})})]})]}),!P&&M.jsx($ge,{$fontColor:t.userFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:M.jsx(Fi,{isBot:!!P,children:M.jsx(Cd,{children:ce.text})})}),h.length==1&&Oe==0&&!E&&M.jsx(f8,{children:vt.leadingQueries?M.jsx(Fi,{isBot:!0,children:M.jsx(Ds,{loading:vt.leadingQueries})}):B.map((ue,xe)=>M.jsxs(BP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor,opacity:be.has(ue.question)?.5:1},onClick:()=>{T?(k(!0),O({question:ue.question,answer:ue.answer,products:ue.products,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ue.question,answer:ue.answer,products:ue.products,messType:"leading_query"}),Be(Ae=>{const Ze=new Set(Ae);return Ze.add(ue.question),Ze}),window.DebalesChat.track(nn.INITIAL_LEADING_QUERY_SUGGESTED_QUESTION_CLICKED,{question:ue.question})},disabled:p,$disabled:p,children:[ue.question,M.jsx($P,{color:t.callToActionFontColor})]},xe))}),ce.leading_queries&&ce.leading_queries.length>0&&l===ce.conversationId&&It.leadingQueries&&!o&&!E&&M.jsx(f8,{children:ce.leading_queries.map((ue,xe)=>M.jsxs(BP,{style:{backgroundColor:t.callToActionBackgroundColor,color:t.callToActionFontColor},onClick:()=>{T?(k(!0),O({question:ue,path:"/",nameSpace:window.DebalesChat.projectId})):r({message:ue,messType:"leading_query"}),window.DebalesChat.track(nn.LEADING_QUERY_CLICKED,{query:ue})},disabled:p,$disabled:p,children:[ue,M.jsx($P,{color:t.callToActionFontColor})]},xe))})]},Oe)}),(p||Vt)&&M.jsxs(IP,{$fontColor:t.botFontColor||"#000",$botMessageColor:t.botBackgroundColor||"#fff",children:[M.jsx("img",{src:t.bot_logo,alt:"Chat User Icon"}),M.jsx(LP,{children:M.jsx(Fi,{isBot:!0,children:M.jsx("div",{style:{display:"flex",alignItems:"center",gap:"4px",animation:"fadeIn 0.3s ease-in-out"},children:M.jsx(Ds,{loading:p||Vt})})})})]})]}),M.jsx(qge,{$backgroundColor:t.botBackgroundColor||"#fff",style:{opacity:Ui?1:0}})]}),M.jsxs("div",{className:"debales-footer-container",style:{width:"calc(100%-24px)",backgroundColor:t.botBackgroundColor||"#fff",color:t.fontColor||"#000"},children:[M.jsx(qk,{}),M.jsx("div",{children:M.jsx(Wk,{disabled:p,inputState:!1})}),M.jsx(Pk,{})]})]})]})}),J.shadowRoot)]})},Yge=({botId:e})=>{const t=lQ("new-suggested-question-design");let n;return t==="variant-1"?n=L0e:t==="variant-2"?n=pge:t==="variant-3"?n=Vge:n=vP,M.jsx(n,{botId:e})},zP="debales-ai-assistant",FP="debales-chatbot-container",Zge=Z.forwardRef(({children:e,globalStyles:t="",containerStyles:n={},onReady:r},o)=>{const a=Z.useRef(null),[l,d]=Z.useState(null),h=Z.useRef(null),p=Z.useRef(null),m=Z.useRef({get shadowRoot(){return h.current},get container(){return l},querySelector:y=>{var x;return((x=h.current)==null?void 0:x.querySelector(y))||null},querySelectorAll:y=>{var x;return((x=h.current)==null?void 0:x.querySelectorAll(y))||null}});return Z.useImperativeHandle(o,()=>m.current,[]),Z.useEffect(()=>{const y=document.getElementById(zP);if(y?a.current=y:a.current&&(a.current.id=zP),a.current&&(a.current.style.cssText="position: absolute; top: 0; left: 0; width: 0; height: 0;"),a.current){if(a.current.shadowRoot){h.current=a.current.shadowRoot;const w=h.current.querySelector(`#${FP}`);w&&d(w);return}const x=a.current.attachShadow({mode:"open"});if(h.current=x,t){const w=document.createElement("style");w.textContent=t,x.appendChild(w)}const S=document.createElement("div");S.id=FP,S.style.cssText="position: absolute; top: 0; left: 0; width: 0; height: 0;",x.appendChild(S),d(S),r&&r(x,S)}},[t,r]),Z.useEffect(()=>(l&&!p.current&&(p.current=WI.createRoot(l)),p.current&&l&&window.self===window.top&&p.current.render(M.jsx(Ane,{target:l,children:M.jsx(Zj,{value:m.current,children:e})})),()=>{p.current&&p.current.unmount()}),[l,e]),M.jsx("div",{ref:a,style:n})});class Xk{isSupported(){return mf.detect()===this.platform}createSuccessResult(t,n){return{success:!0,data:t,message:n}}createErrorResult(t){return{success:!1,error:t}}}class Qge extends Xk{constructor(){super(...arguments);ti(this,"platform",ki.DEFAULT)}async fetchCart(){return console.log("DefaultCartAdapter: fetchCart called"),this.createSuccessResult({items:[],total:0,itemCount:0,currency:"USD",token:"default-token"},"Default cart fetched")}async addToCart(n,r=1,o){return console.log("DefaultCartAdapter: addToCart called",{variantId:n,quantity:r,properties:o}),this.createSuccessResult(void 0,"Item added to cart (mock)")}async removeFromCart(n){return console.log("DefaultCartAdapter: removeFromCart called",{itemId:n}),this.createSuccessResult(void 0,"Item removed from cart (mock)")}async updateQuantity(n){return console.log("DefaultCartAdapter: updateQuantity called",{cartItem:n}),this.createSuccessResult(void 0,"Item quantity updated (mock)")}async clearCart(){return console.log("DefaultCartAdapter: clearCart called"),this.createSuccessResult(void 0,"Cart cleared (mock)")}generateCartUrl(n){const r=n.replace(/^https?:\/\//,"");return console.log("DefaultCartAdapter: generateCartUrl called",{domain:n,sanitizedDomain:r}),`https://${r}/cart`}generateProductUrl(n,r){if(r.handle){const o=new URL(`https://${n}/products/${r.handle}`);return o.searchParams.append("variant",r.product_id),Os(o.toString())}else return Os(r.link)}async addCartAttributes(n={}){return console.log("MethodNotImplemented: addCartAttributes called",{attributes:n}),this.createSuccessResult(void 0,"Cart attributes added (mock)")}}class Kge extends Xk{constructor(){var n,r;super();ti(this,"platform",ki.SHOPIFY);ti(this,"cartEndpoint");ti(this,"localCartKey","debales_track_cart");this.cartEndpoint=((r=(n=window.Shopify)==null?void 0:n.routes)==null?void 0:r.root)||"/"}normalizeCartData(n){return{items:n.items.map(r=>({id:r.id,variant_id:r.variant_id,quantity:r.quantity,title:r.title,price:r.price,properties:r.properties})),total:n.total_price/100,itemCount:n.item_count,currency:n.currency,token:n.token.split("?")[0]}}generateProductUrl(n,r){const o=E6(n);if(!o.isValid)return"";if(r.handle){const a=new URL(`/products/${r.handle}`,o.url);return a.searchParams.append("variant",r.product_id),Os(a.toString())}else return Os(r.link)}updateTrackCart({cartToken:n,sessionId:r=tr()}){localStorage.setItem(this.localCartKey,JSON.stringify({sessionId:r,cartToken:n}))}async fetchCart(){try{const n=await fetch(`${this.cartEndpoint}cart.js`),r=await n.json();if(!n.ok){const a=r;return this.createErrorResult(a.description||`Failed to fetch cart: ${n.status}`)}const o=r;return this.createSuccessResult(this.normalizeCartData(o),"Cart fetched successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error fetching cart: ${n.message}`:"Unknown error occurred while fetching cart")}}async addToCart(n,r=1,o){try{const a=await fetch(`${this.cartEndpoint}cart/add.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({items:[{id:n,quantity:r,properties:o}],attributes:{dbls_order_source:"direct_recommendation",dbls_session_id:tr(),dbls_method:"add_to_cart"}})}),l=await a.json();if(!a.ok){const d=l;return this.createErrorResult(d.description||`Failed to add item to cart: ${a.status}`)}return this.fetchCart().then(d=>{d.success&&this.updateTrackCart({cartToken:d==null?void 0:d.data.token})}),this.createSuccessResult(void 0,`Successfully added ${r} item(s) to cart`)}catch(a){return this.createErrorResult(a instanceof Error?`Error adding to cart: ${a.message}`:"Unknown error occurred while adding to cart")}}async removeFromCart(n){return this.updateQuantity({id:n,quantity:0})}async updateQuantity(n){try{const r=await fetch(`${this.cartEndpoint}cart/change.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({id:n.id,quantity:n.quantity})}),o=await r.json();if(!r.ok){const a=o;return this.createErrorResult(a.description||`Failed to update item quantity: ${r.status}`)}return this.fetchCart().then(a=>{a.success&&this.updateTrackCart({cartToken:a==null?void 0:a.data.token})}),this.createSuccessResult(void 0,n.quantity===0?"Item removed from cart":`Quantity updated to ${n.quantity}`)}catch(r){return this.createErrorResult(r instanceof Error?`Error updating quantity: ${r.message}`:"Unknown error occurred while updating quantity")}}async clearCart(){try{const n=await fetch(`${this.cartEndpoint}cart/clear.js`,{method:"POST"});if(!n.ok){const r=await n.json();return this.createErrorResult(r.description||`Failed to clear cart: ${n.status}`)}return this.createSuccessResult(void 0,"Cart cleared successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error clearing cart: ${n.message}`:"Unknown error occurred while clearing cart")}}async addCartAttributes(n={}){try{const r=await fetch(`${this.cartEndpoint}cart/update.js`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{dbls_order_source:"direct_recommendation",dbls_session_id:tr(),...n}})});if(!r.ok){const o=await r.json();return this.createErrorResult(o.description||`Failed to update cart attributes: ${r.status}`)}return this.createSuccessResult(void 0,"Cart attributes updated successfully")}catch(r){return this.createErrorResult(r instanceof Error?`Error updating cart attributes: ${r.message}`:"Unknown error occurred while updating cart attributes")}}generateCartUrl(n){const r=E6(n);if(!r.isValid)return"";const o=new URL("/cart",r.url);return o.searchParams.append("ref",`debales-ai-${new Date().toISOString()}`),o.searchParams.append("attributes[from]","debales-ai-chatbot"),o.searchParams.append("attributes[through]","add-to-cart"),o.searchParams.append("attributes[dbls_session_id]",tr()),o.searchParams.append("timestamp",Date.now().toString()),Os(o.toString())}}class Wge extends Xk{constructor(){var n,r;super();ti(this,"platform",ki.MAGENTO);ti(this,"checkoutEndpoint");ti(this,"baseUrl");this.checkoutEndpoint=((n=window.checkout)==null?void 0:n.checkoutUrl)||"/",this.baseUrl=((r=window.checkout)==null?void 0:r.baseUrl)||"/"}normalizeCartData(n){return{items:n.items.map(r=>({id:parseInt(r.item_id),variant_id:parseInt(r.product_id),quantity:r.qty,title:r.product_name,price:r.product_price_value,properties:{name:r.product_name}})),total:parseFloat(n.subtotalAmount),itemCount:n.summary_count,currency:"USD",token:n.data_id.toString()}}async fetchCart(){try{const n=await fetch(`${this.baseUrl}customer/section/load/?sections=cart&update_section_id=false`),r=await n.json();if(!n.ok)return this.createErrorResult(`Failed to fetch cart: ${n.status}`);const o=r.cart;return this.createSuccessResult(this.normalizeCartData(o),"Cart fetched successfully")}catch(n){return this.createErrorResult(n instanceof Error?`Error fetching cart: ${n.message}`:"Unknown error occurred while fetching cart")}}async addToCart(n,r=1){var o;try{const a=(o=document.querySelector('input[name="form_key"]'))==null?void 0:o.value;if(!a)return this.createErrorResult("Form key not found");const l=await fetch(`${this.checkoutEndpoint}cart/add`,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},body:new URLSearchParams({product:n,qty:r.toString(),form_key:a})});if(!l.ok)return this.createErrorResult(`Failed to add item to cart: ${l.status}`);try{window.require(["Magento_Customer/js/customer-data"],d=>d.reload(["cart"],!0))}catch(d){console.warn("Failed to reload cart data:",d)}return this.createSuccessResult(void 0,`Successfully added ${r} item(s) to cart`)}catch(a){return this.createErrorResult(a instanceof Error?`Error adding to cart: ${a.message}`:"Unknown error occurred while adding to cart")}}async removeFromCart(n){return console.log("MethodNotImplemented: removeFromCart called",{itemId:n}),this.createSuccessResult(void 0,"Item removed from cart (mock)")}async updateQuantity(n){return console.log("MethodNotImplemented: updateQuantity called",{cartItem:n}),this.createSuccessResult(void 0,"Item quantity updated (mock)")}async clearCart(){return console.log("MethodNotImplemented: clearCart called"),this.createSuccessResult(void 0,"Cart cleared (mock)")}generateCartUrl(n){const r=new URL(`https://${n}/checkout/cart?ref=debales-ai-${new Date().toISOString()}&attributes[from]=debales-ai-chatbot&attributes[through]=add-to-cart`);return r.searchParams.append("timestamp",Date.now().toString()),r.toString()}generateProductUrl(n,r){const o=E6(n);if(!o.isValid)return"";if(r.handle){const a=new URL(`/${r.handle}.html`,o.url);return Os(a.toString())}else return Os(r.link)}async addCartAttributes(n={}){return console.log("MethodNotImplemented: addCartAttributes called",{attributes:n}),this.createSuccessResult(void 0,"Cart attributes added (mock)")}}var Jk={exports:{}};function Xge(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var eT={exports:{}};const Jge=TV(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var eme=eT.exports,UP;function Xn(){return UP||(UP=1,function(e,t){(function(n,r){e.exports=r()})(eme,function(){var n=n||function(r,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof Gl<"u"&&Gl.crypto&&(a=Gl.crypto),!a&&typeof Xge=="function")try{a=Jge}catch{}var l=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function O(){}return function(R){var I;return O.prototype=R,I=new O,O.prototype=null,I}}(),h={},p=h.lib={},m=p.Base=function(){return{extend:function(O){var R=d(this);return O&&R.mixIn(O),(!R.hasOwnProperty("init")||this.init===R.init)&&(R.init=function(){R.$super.init.apply(this,arguments)}),R.init.prototype=R,R.$super=this,R},create:function(){var O=this.extend();return O.init.apply(O,arguments),O},init:function(){},mixIn:function(O){for(var R in O)O.hasOwnProperty(R)&&(this[R]=O[R]);O.hasOwnProperty("toString")&&(this.toString=O.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),y=p.WordArray=m.extend({init:function(O,R){O=this.words=O||[],R!=o?this.sigBytes=R:this.sigBytes=O.length*4},toString:function(O){return(O||S).stringify(this)},concat:function(O){var R=this.words,I=O.words,z=this.sigBytes,L=O.sigBytes;if(this.clamp(),z%4)for(var H=0;H<L;H++){var V=I[H>>>2]>>>24-H%4*8&255;R[z+H>>>2]|=V<<24-(z+H)%4*8}else for(var te=0;te<L;te+=4)R[z+te>>>2]=I[te>>>2];return this.sigBytes+=L,this},clamp:function(){var O=this.words,R=this.sigBytes;O[R>>>2]&=4294967295<<32-R%4*8,O.length=r.ceil(R/4)},clone:function(){var O=m.clone.call(this);return O.words=this.words.slice(0),O},random:function(O){for(var R=[],I=0;I<O;I+=4)R.push(l());return new y.init(R,O)}}),x=h.enc={},S=x.Hex={stringify:function(O){for(var R=O.words,I=O.sigBytes,z=[],L=0;L<I;L++){var H=R[L>>>2]>>>24-L%4*8&255;z.push((H>>>4).toString(16)),z.push((H&15).toString(16))}return z.join("")},parse:function(O){for(var R=O.length,I=[],z=0;z<R;z+=2)I[z>>>3]|=parseInt(O.substr(z,2),16)<<24-z%8*4;return new y.init(I,R/2)}},w=x.Latin1={stringify:function(O){for(var R=O.words,I=O.sigBytes,z=[],L=0;L<I;L++){var H=R[L>>>2]>>>24-L%4*8&255;z.push(String.fromCharCode(H))}return z.join("")},parse:function(O){for(var R=O.length,I=[],z=0;z<R;z++)I[z>>>2]|=(O.charCodeAt(z)&255)<<24-z%4*8;return new y.init(I,R)}},E=x.Utf8={stringify:function(O){try{return decodeURIComponent(escape(w.stringify(O)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(O){return w.parse(unescape(encodeURIComponent(O)))}},k=p.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new y.init,this._nDataBytes=0},_append:function(O){typeof O=="string"&&(O=E.parse(O)),this._data.concat(O),this._nDataBytes+=O.sigBytes},_process:function(O){var R,I=this._data,z=I.words,L=I.sigBytes,H=this.blockSize,V=H*4,te=L/V;O?te=r.ceil(te):te=r.max((te|0)-this._minBufferSize,0);var F=te*H,Q=r.min(F*4,L);if(F){for(var J=0;J<F;J+=H)this._doProcessBlock(z,J);R=z.splice(0,F),I.sigBytes-=Q}return new y.init(R,Q)},clone:function(){var O=m.clone.call(this);return O._data=this._data.clone(),O},_minBufferSize:0});p.Hasher=k.extend({cfg:m.extend(),init:function(O){this.cfg=this.cfg.extend(O),this.reset()},reset:function(){k.reset.call(this),this._doReset()},update:function(O){return this._append(O),this._process(),this},finalize:function(O){O&&this._append(O);var R=this._doFinalize();return R},blockSize:16,_createHelper:function(O){return function(R,I){return new O.init(I).finalize(R)}},_createHmacHelper:function(O){return function(R,I){return new T.HMAC.init(O,I).finalize(R)}}});var T=h.algo={};return h}(Math);return n})}(eT)),eT.exports}var tT={exports:{}},tme=tT.exports,jP;function nT(){return jP||(jP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(tme,function(n){return function(r){var o=n,a=o.lib,l=a.Base,d=a.WordArray,h=o.x64={};h.Word=l.extend({init:function(p,m){this.high=p,this.low=m}}),h.WordArray=l.extend({init:function(p,m){p=this.words=p||[],m!=r?this.sigBytes=m:this.sigBytes=p.length*8},toX32:function(){for(var p=this.words,m=p.length,y=[],x=0;x<m;x++){var S=p[x];y.push(S.high),y.push(S.low)}return d.create(y,this.sigBytes)},clone:function(){for(var p=l.clone.call(this),m=p.words=this.words.slice(0),y=m.length,x=0;x<y;x++)m[x]=m[x].clone();return p}})}(),n})}(tT)),tT.exports}var rT={exports:{}},nme=rT.exports,HP;function rme(){return HP||(HP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(nme,function(n){return function(){if(typeof ArrayBuffer=="function"){var r=n,o=r.lib,a=o.WordArray,l=a.init,d=a.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray<"u"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var p=h.byteLength,m=[],y=0;y<p;y++)m[y>>>2]|=h[y]<<24-y%4*8;l.call(this,m,p)}else l.apply(this,arguments)};d.prototype=a}}(),n.lib.WordArray})}(rT)),rT.exports}var iT={exports:{}},ime=iT.exports,PP;function ome(){return PP||(PP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ime,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Utf16=l.Utf16BE={stringify:function(h){for(var p=h.words,m=h.sigBytes,y=[],x=0;x<m;x+=2){var S=p[x>>>2]>>>16-x%4*8&65535;y.push(String.fromCharCode(S))}return y.join("")},parse:function(h){for(var p=h.length,m=[],y=0;y<p;y++)m[y>>>1]|=h.charCodeAt(y)<<16-y%2*16;return a.create(m,p*2)}},l.Utf16LE={stringify:function(h){for(var p=h.words,m=h.sigBytes,y=[],x=0;x<m;x+=2){var S=d(p[x>>>2]>>>16-x%4*8&65535);y.push(String.fromCharCode(S))}return y.join("")},parse:function(h){for(var p=h.length,m=[],y=0;y<p;y++)m[y>>>1]|=d(h.charCodeAt(y)<<16-y%2*16);return a.create(m,p*2)}};function d(h){return h<<8&4278255360|h>>>8&16711935}}(),n.enc.Utf16})}(iT)),iT.exports}var oT={exports:{}},ame=oT.exports,qP;function qp(){return qP||(qP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ame,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Base64={stringify:function(h){var p=h.words,m=h.sigBytes,y=this._map;h.clamp();for(var x=[],S=0;S<m;S+=3)for(var w=p[S>>>2]>>>24-S%4*8&255,E=p[S+1>>>2]>>>24-(S+1)%4*8&255,k=p[S+2>>>2]>>>24-(S+2)%4*8&255,T=w<<16|E<<8|k,O=0;O<4&&S+O*.75<m;O++)x.push(y.charAt(T>>>6*(3-O)&63));var R=y.charAt(64);if(R)for(;x.length%4;)x.push(R);return x.join("")},parse:function(h){var p=h.length,m=this._map,y=this._reverseMap;if(!y){y=this._reverseMap=[];for(var x=0;x<m.length;x++)y[m.charCodeAt(x)]=x}var S=m.charAt(64);if(S){var w=h.indexOf(S);w!==-1&&(p=w)}return d(h,p,y)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(h,p,m){for(var y=[],x=0,S=0;S<p;S++)if(S%4){var w=m[h.charCodeAt(S-1)]<<S%4*2,E=m[h.charCodeAt(S)]>>>6-S%4*2,k=w|E;y[x>>>2]|=k<<24-x%4*8,x++}return a.create(y,x)}}(),n.enc.Base64})}(oT)),oT.exports}var aT={exports:{}},sme=aT.exports,GP;function lme(){return GP||(GP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(sme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.enc;l.Base64url={stringify:function(h,p){p===void 0&&(p=!0);var m=h.words,y=h.sigBytes,x=p?this._safe_map:this._map;h.clamp();for(var S=[],w=0;w<y;w+=3)for(var E=m[w>>>2]>>>24-w%4*8&255,k=m[w+1>>>2]>>>24-(w+1)%4*8&255,T=m[w+2>>>2]>>>24-(w+2)%4*8&255,O=E<<16|k<<8|T,R=0;R<4&&w+R*.75<y;R++)S.push(x.charAt(O>>>6*(3-R)&63));var I=x.charAt(64);if(I)for(;S.length%4;)S.push(I);return S.join("")},parse:function(h,p){p===void 0&&(p=!0);var m=h.length,y=p?this._safe_map:this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var S=0;S<y.length;S++)x[y.charCodeAt(S)]=S}var w=y.charAt(64);if(w){var E=h.indexOf(w);E!==-1&&(m=E)}return d(h,m,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(h,p,m){for(var y=[],x=0,S=0;S<p;S++)if(S%4){var w=m[h.charCodeAt(S-1)]<<S%4*2,E=m[h.charCodeAt(S)]>>>6-S%4*2,k=w|E;y[x>>>2]|=k<<24-x%4*8,x++}return a.create(y,x)}}(),n.enc.Base64url})}(aT)),aT.exports}var sT={exports:{}},ume=sT.exports,VP;function Gp(){return VP||(VP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(ume,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.algo,p=[];(function(){for(var E=0;E<64;E++)p[E]=r.abs(r.sin(E+1))*4294967296|0})();var m=h.MD5=d.extend({_doReset:function(){this._hash=new l.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,k){for(var T=0;T<16;T++){var O=k+T,R=E[O];E[O]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360}var I=this._hash.words,z=E[k+0],L=E[k+1],H=E[k+2],V=E[k+3],te=E[k+4],F=E[k+5],Q=E[k+6],J=E[k+7],oe=E[k+8],re=E[k+9],pe=E[k+10],ee=E[k+11],se=E[k+12],he=E[k+13],Ee=E[k+14],N=E[k+15],Y=I[0],ae=I[1],B=I[2],de=I[3];Y=y(Y,ae,B,de,z,7,p[0]),de=y(de,Y,ae,B,L,12,p[1]),B=y(B,de,Y,ae,H,17,p[2]),ae=y(ae,B,de,Y,V,22,p[3]),Y=y(Y,ae,B,de,te,7,p[4]),de=y(de,Y,ae,B,F,12,p[5]),B=y(B,de,Y,ae,Q,17,p[6]),ae=y(ae,B,de,Y,J,22,p[7]),Y=y(Y,ae,B,de,oe,7,p[8]),de=y(de,Y,ae,B,re,12,p[9]),B=y(B,de,Y,ae,pe,17,p[10]),ae=y(ae,B,de,Y,ee,22,p[11]),Y=y(Y,ae,B,de,se,7,p[12]),de=y(de,Y,ae,B,he,12,p[13]),B=y(B,de,Y,ae,Ee,17,p[14]),ae=y(ae,B,de,Y,N,22,p[15]),Y=x(Y,ae,B,de,L,5,p[16]),de=x(de,Y,ae,B,Q,9,p[17]),B=x(B,de,Y,ae,ee,14,p[18]),ae=x(ae,B,de,Y,z,20,p[19]),Y=x(Y,ae,B,de,F,5,p[20]),de=x(de,Y,ae,B,pe,9,p[21]),B=x(B,de,Y,ae,N,14,p[22]),ae=x(ae,B,de,Y,te,20,p[23]),Y=x(Y,ae,B,de,re,5,p[24]),de=x(de,Y,ae,B,Ee,9,p[25]),B=x(B,de,Y,ae,V,14,p[26]),ae=x(ae,B,de,Y,oe,20,p[27]),Y=x(Y,ae,B,de,he,5,p[28]),de=x(de,Y,ae,B,H,9,p[29]),B=x(B,de,Y,ae,J,14,p[30]),ae=x(ae,B,de,Y,se,20,p[31]),Y=S(Y,ae,B,de,F,4,p[32]),de=S(de,Y,ae,B,oe,11,p[33]),B=S(B,de,Y,ae,ee,16,p[34]),ae=S(ae,B,de,Y,Ee,23,p[35]),Y=S(Y,ae,B,de,L,4,p[36]),de=S(de,Y,ae,B,te,11,p[37]),B=S(B,de,Y,ae,J,16,p[38]),ae=S(ae,B,de,Y,pe,23,p[39]),Y=S(Y,ae,B,de,he,4,p[40]),de=S(de,Y,ae,B,z,11,p[41]),B=S(B,de,Y,ae,V,16,p[42]),ae=S(ae,B,de,Y,Q,23,p[43]),Y=S(Y,ae,B,de,re,4,p[44]),de=S(de,Y,ae,B,se,11,p[45]),B=S(B,de,Y,ae,N,16,p[46]),ae=S(ae,B,de,Y,H,23,p[47]),Y=w(Y,ae,B,de,z,6,p[48]),de=w(de,Y,ae,B,J,10,p[49]),B=w(B,de,Y,ae,Ee,15,p[50]),ae=w(ae,B,de,Y,F,21,p[51]),Y=w(Y,ae,B,de,se,6,p[52]),de=w(de,Y,ae,B,V,10,p[53]),B=w(B,de,Y,ae,pe,15,p[54]),ae=w(ae,B,de,Y,L,21,p[55]),Y=w(Y,ae,B,de,oe,6,p[56]),de=w(de,Y,ae,B,N,10,p[57]),B=w(B,de,Y,ae,Q,15,p[58]),ae=w(ae,B,de,Y,he,21,p[59]),Y=w(Y,ae,B,de,te,6,p[60]),de=w(de,Y,ae,B,ee,10,p[61]),B=w(B,de,Y,ae,H,15,p[62]),ae=w(ae,B,de,Y,re,21,p[63]),I[0]=I[0]+Y|0,I[1]=I[1]+ae|0,I[2]=I[2]+B|0,I[3]=I[3]+de|0},_doFinalize:function(){var E=this._data,k=E.words,T=this._nDataBytes*8,O=E.sigBytes*8;k[O>>>5]|=128<<24-O%32;var R=r.floor(T/4294967296),I=T;k[(O+64>>>9<<4)+15]=(R<<8|R>>>24)&16711935|(R<<24|R>>>8)&4278255360,k[(O+64>>>9<<4)+14]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,E.sigBytes=(k.length+1)*4,this._process();for(var z=this._hash,L=z.words,H=0;H<4;H++){var V=L[H];L[H]=(V<<8|V>>>24)&16711935|(V<<24|V>>>8)&4278255360}return z},clone:function(){var E=d.clone.call(this);return E._hash=this._hash.clone(),E}});function y(E,k,T,O,R,I,z){var L=E+(k&T|~k&O)+R+z;return(L<<I|L>>>32-I)+k}function x(E,k,T,O,R,I,z){var L=E+(k&O|T&~O)+R+z;return(L<<I|L>>>32-I)+k}function S(E,k,T,O,R,I,z){var L=E+(k^T^O)+R+z;return(L<<I|L>>>32-I)+k}function w(E,k,T,O,R,I,z){var L=E+(T^(k|~O))+R+z;return(L<<I|L>>>32-I)+k}o.MD5=d._createHelper(m),o.HmacMD5=d._createHmacHelper(m)}(Math),n.MD5})}(sT)),sT.exports}var lT={exports:{}},cme=lT.exports,YP;function ZP(){return YP||(YP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(cme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=o.Hasher,d=r.algo,h=[],p=d.SHA1=l.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(m,y){for(var x=this._hash.words,S=x[0],w=x[1],E=x[2],k=x[3],T=x[4],O=0;O<80;O++){if(O<16)h[O]=m[y+O]|0;else{var R=h[O-3]^h[O-8]^h[O-14]^h[O-16];h[O]=R<<1|R>>>31}var I=(S<<5|S>>>27)+T+h[O];O<20?I+=(w&E|~w&k)+1518500249:O<40?I+=(w^E^k)+1859775393:O<60?I+=(w&E|w&k|E&k)-1894007588:I+=(w^E^k)-899497514,T=k,k=E,E=w<<30|w>>>2,w=S,S=I}x[0]=x[0]+S|0,x[1]=x[1]+w|0,x[2]=x[2]+E|0,x[3]=x[3]+k|0,x[4]=x[4]+T|0},_doFinalize:function(){var m=this._data,y=m.words,x=this._nDataBytes*8,S=m.sigBytes*8;return y[S>>>5]|=128<<24-S%32,y[(S+64>>>9<<4)+14]=Math.floor(x/4294967296),y[(S+64>>>9<<4)+15]=x,m.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var m=l.clone.call(this);return m._hash=this._hash.clone(),m}});r.SHA1=l._createHelper(p),r.HmacSHA1=l._createHmacHelper(p)}(),n.SHA1})}(lT)),lT.exports}var uT={exports:{}},fme=uT.exports,QP;function g8(){return QP||(QP=1,function(e,t){(function(n,r){e.exports=r(Xn())})(fme,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.algo,p=[],m=[];(function(){function S(T){for(var O=r.sqrt(T),R=2;R<=O;R++)if(!(T%R))return!1;return!0}function w(T){return(T-(T|0))*4294967296|0}for(var E=2,k=0;k<64;)S(E)&&(k<8&&(p[k]=w(r.pow(E,.5))),m[k]=w(r.pow(E,.3333333333333333)),k++),E++})();var y=[],x=h.SHA256=d.extend({_doReset:function(){this._hash=new l.init(p.slice(0))},_doProcessBlock:function(S,w){for(var E=this._hash.words,k=E[0],T=E[1],O=E[2],R=E[3],I=E[4],z=E[5],L=E[6],H=E[7],V=0;V<64;V++){if(V<16)y[V]=S[w+V]|0;else{var te=y[V-15],F=(te<<25|te>>>7)^(te<<14|te>>>18)^te>>>3,Q=y[V-2],J=(Q<<15|Q>>>17)^(Q<<13|Q>>>19)^Q>>>10;y[V]=F+y[V-7]+J+y[V-16]}var oe=I&z^~I&L,re=k&T^k&O^T&O,pe=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),ee=(I<<26|I>>>6)^(I<<21|I>>>11)^(I<<7|I>>>25),se=H+ee+oe+m[V]+y[V],he=pe+re;H=L,L=z,z=I,I=R+se|0,R=O,O=T,T=k,k=se+he|0}E[0]=E[0]+k|0,E[1]=E[1]+T|0,E[2]=E[2]+O|0,E[3]=E[3]+R|0,E[4]=E[4]+I|0,E[5]=E[5]+z|0,E[6]=E[6]+L|0,E[7]=E[7]+H|0},_doFinalize:function(){var S=this._data,w=S.words,E=this._nDataBytes*8,k=S.sigBytes*8;return w[k>>>5]|=128<<24-k%32,w[(k+64>>>9<<4)+14]=r.floor(E/4294967296),w[(k+64>>>9<<4)+15]=E,S.sigBytes=w.length*4,this._process(),this._hash},clone:function(){var S=d.clone.call(this);return S._hash=this._hash.clone(),S}});o.SHA256=d._createHelper(x),o.HmacSHA256=d._createHmacHelper(x)}(Math),n.SHA256})}(uT)),uT.exports}var cT={exports:{}},dme=cT.exports,KP;function hme(){return KP||(KP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),g8())})(dme,function(n){return function(){var r=n,o=r.lib,a=o.WordArray,l=r.algo,d=l.SHA256,h=l.SHA224=d.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var p=d._doFinalize.call(this);return p.sigBytes-=4,p}});r.SHA224=d._createHelper(h),r.HmacSHA224=d._createHmacHelper(h)}(),n.SHA224})}(cT)),cT.exports}var fT={exports:{}},pme=fT.exports,WP;function XP(){return WP||(WP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT())})(pme,function(n){return function(){var r=n,o=r.lib,a=o.Hasher,l=r.x64,d=l.Word,h=l.WordArray,p=r.algo;function m(){return d.create.apply(d,arguments)}var y=[m(1116352408,3609767458),m(1899447441,602891725),m(3049323471,3964484399),m(3921009573,2173295548),m(961987163,4081628472),m(1508970993,3053834265),m(2453635748,2937671579),m(2870763221,3664609560),m(3624381080,2734883394),m(310598401,1164996542),m(607225278,1323610764),m(1426881987,3590304994),m(1925078388,4068182383),m(2162078206,991336113),m(2614888103,633803317),m(3248222580,3479774868),m(3835390401,2666613458),m(4022224774,944711139),m(264347078,2341262773),m(604807628,2007800933),m(770255983,1495990901),m(1249150122,1856431235),m(1555081692,3175218132),m(1996064986,2198950837),m(2554220882,3999719339),m(2821834349,766784016),m(2952996808,2566594879),m(3210313671,3203337956),m(3336571891,1034457026),m(3584528711,2466948901),m(113926993,3758326383),m(338241895,168717936),m(666307205,1188179964),m(773529912,1546045734),m(1294757372,1522805485),m(1396182291,2643833823),m(1695183700,2343527390),m(1986661051,1014477480),m(2177026350,1206759142),m(2456956037,344077627),m(2730485921,1290863460),m(2820302411,3158454273),m(3259730800,3505952657),m(3345764771,106217008),m(3516065817,3606008344),m(3600352804,1432725776),m(4094571909,1467031594),m(275423344,851169720),m(430227734,3100823752),m(506948616,1363258195),m(659060556,3750685593),m(883997877,3785050280),m(958139571,3318307427),m(1322822218,3812723403),m(1537002063,2003034995),m(1747873779,3602036899),m(1955562222,1575990012),m(2024104815,1125592928),m(2227730452,2716904306),m(2361852424,442776044),m(2428436474,593698344),m(2756734187,3733110249),m(3204031479,2999351573),m(3329325298,3815920427),m(3391569614,3928383900),m(3515267271,566280711),m(3940187606,3454069534),m(4118630271,4000239992),m(116418474,1914138554),m(174292421,2731055270),m(289380356,3203993006),m(460393269,320620315),m(685471733,587496836),m(852142971,1086792851),m(1017036298,365543100),m(1126000580,2618297676),m(1288033470,3409855158),m(1501505948,4234509866),m(1607167915,987167468),m(1816402316,1246189591)],x=[];(function(){for(var w=0;w<80;w++)x[w]=m()})();var S=p.SHA512=a.extend({_doReset:function(){this._hash=new h.init([new d.init(1779033703,4089235720),new d.init(3144134277,2227873595),new d.init(1013904242,4271175723),new d.init(2773480762,1595750129),new d.init(1359893119,2917565137),new d.init(2600822924,725511199),new d.init(528734635,4215389547),new d.init(1541459225,327033209)])},_doProcessBlock:function(w,E){for(var k=this._hash.words,T=k[0],O=k[1],R=k[2],I=k[3],z=k[4],L=k[5],H=k[6],V=k[7],te=T.high,F=T.low,Q=O.high,J=O.low,oe=R.high,re=R.low,pe=I.high,ee=I.low,se=z.high,he=z.low,Ee=L.high,N=L.low,Y=H.high,ae=H.low,B=V.high,de=V.low,Ne=te,ke=F,Ie=Q,We=J,Et=oe,dt=re,lt=pe,rt=ee,At=se,gt=he,bt=Ee,zt=N,ne=Y,le=ae,_e=B,Fe=de,be=0;be<80;be++){var Be,at,mt=x[be];if(be<16)at=mt.high=w[E+be*2]|0,Be=mt.low=w[E+be*2+1]|0;else{var wt=x[be-15],ye=wt.high,He=wt.low,ut=(ye>>>1|He<<31)^(ye>>>8|He<<24)^ye>>>7,yt=(He>>>1|ye<<31)^(He>>>8|ye<<24)^(He>>>7|ye<<25),_t=x[be-2],Gt=_t.high,Wt=_t.low,ln=(Gt>>>19|Wt<<13)^(Gt<<3|Wt>>>29)^Gt>>>6,Zt=(Wt>>>19|Gt<<13)^(Wt<<3|Gt>>>29)^(Wt>>>6|Gt<<26),It=x[be-7],jt=It.high,vt=It.low,G=x[be-16],we=G.high,tt=G.low;Be=yt+vt,at=ut+jt+(Be>>>0<yt>>>0?1:0),Be=Be+Zt,at=at+ln+(Be>>>0<Zt>>>0?1:0),Be=Be+tt,at=at+we+(Be>>>0<tt>>>0?1:0),mt.high=at,mt.low=Be}var st=At&bt^~At&ne,xt=gt&zt^~gt&le,Vt=Ne&Ie^Ne&Et^Ie&Et,Lt=ke&We^ke&dt^We&dt,Xt=(Ne>>>28|ke<<4)^(Ne<<30|ke>>>2)^(Ne<<25|ke>>>7),Dt=(ke>>>28|Ne<<4)^(ke<<30|Ne>>>2)^(ke<<25|Ne>>>7),mn=(At>>>14|gt<<18)^(At>>>18|gt<<14)^(At<<23|gt>>>9),Pn=(gt>>>14|At<<18)^(gt>>>18|At<<14)^(gt<<23|At>>>9),Ui=y[be],zn=Ui.high,vn=Ui.low,Qt=Fe+Pn,Br=_e+mn+(Qt>>>0<Fe>>>0?1:0),Qt=Qt+xt,Br=Br+st+(Qt>>>0<xt>>>0?1:0),Qt=Qt+vn,Br=Br+zn+(Qt>>>0<vn>>>0?1:0),Qt=Qt+Be,Br=Br+at+(Qt>>>0<Be>>>0?1:0),nr=Dt+Lt,la=Xt+Vt+(nr>>>0<Dt>>>0?1:0);_e=ne,Fe=le,ne=bt,le=zt,bt=At,zt=gt,gt=rt+Qt|0,At=lt+Br+(gt>>>0<rt>>>0?1:0)|0,lt=Et,rt=dt,Et=Ie,dt=We,Ie=Ne,We=ke,ke=Qt+nr|0,Ne=Br+la+(ke>>>0<Qt>>>0?1:0)|0}F=T.low=F+ke,T.high=te+Ne+(F>>>0<ke>>>0?1:0),J=O.low=J+We,O.high=Q+Ie+(J>>>0<We>>>0?1:0),re=R.low=re+dt,R.high=oe+Et+(re>>>0<dt>>>0?1:0),ee=I.low=ee+rt,I.high=pe+lt+(ee>>>0<rt>>>0?1:0),he=z.low=he+gt,z.high=se+At+(he>>>0<gt>>>0?1:0),N=L.low=N+zt,L.high=Ee+bt+(N>>>0<zt>>>0?1:0),ae=H.low=ae+le,H.high=Y+ne+(ae>>>0<le>>>0?1:0),de=V.low=de+Fe,V.high=B+_e+(de>>>0<Fe>>>0?1:0)},_doFinalize:function(){var w=this._data,E=w.words,k=this._nDataBytes*8,T=w.sigBytes*8;E[T>>>5]|=128<<24-T%32,E[(T+128>>>10<<5)+30]=Math.floor(k/4294967296),E[(T+128>>>10<<5)+31]=k,w.sigBytes=E.length*4,this._process();var O=this._hash.toX32();return O},clone:function(){var w=a.clone.call(this);return w._hash=this._hash.clone(),w},blockSize:1024/32});r.SHA512=a._createHelper(S),r.HmacSHA512=a._createHmacHelper(S)}(),n.SHA512})}(fT)),fT.exports}var dT={exports:{}},gme=dT.exports,JP;function mme(){return JP||(JP=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT(),XP())})(gme,function(n){return function(){var r=n,o=r.x64,a=o.Word,l=o.WordArray,d=r.algo,h=d.SHA512,p=d.SHA384=h.extend({_doReset:function(){this._hash=new l.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var m=h._doFinalize.call(this);return m.sigBytes-=16,m}});r.SHA384=h._createHelper(p),r.HmacSHA384=h._createHmacHelper(p)}(),n.SHA384})}(dT)),dT.exports}var hT={exports:{}},vme=hT.exports,eq;function yme(){return eq||(eq=1,function(e,t){(function(n,r,o){e.exports=r(Xn(),nT())})(vme,function(n){return function(r){var o=n,a=o.lib,l=a.WordArray,d=a.Hasher,h=o.x64,p=h.Word,m=o.algo,y=[],x=[],S=[];(function(){for(var k=1,T=0,O=0;O<24;O++){y[k+5*T]=(O+1)*(O+2)/2%64;var R=T%5,I=(2*k+3*T)%5;k=R,T=I}for(var k=0;k<5;k++)for(var T=0;T<5;T++)x[k+5*T]=T+(2*k+3*T)%5*5;for(var z=1,L=0;L<24;L++){for(var H=0,V=0,te=0;te<7;te++){if(z&1){var F=(1<<te)-1;F<32?V^=1<<F:H^=1<<F-32}z&128?z=z<<1^113:z<<=1}S[L]=p.create(H,V)}})();var w=[];(function(){for(var k=0;k<25;k++)w[k]=p.create()})();var E=m.SHA3=d.extend({cfg:d.cfg.extend({outputLength:512}),_doReset:function(){for(var k=this._state=[],T=0;T<25;T++)k[T]=new p.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(k,T){for(var O=this._state,R=this.blockSize/2,I=0;I<R;I++){var z=k[T+2*I],L=k[T+2*I+1];z=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,L=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360;var H=O[I];H.high^=L,H.low^=z}for(var V=0;V<24;V++){for(var te=0;te<5;te++){for(var F=0,Q=0,J=0;J<5;J++){var H=O[te+5*J];F^=H.high,Q^=H.low}var oe=w[te];oe.high=F,oe.low=Q}for(var te=0;te<5;te++)for(var re=w[(te+4)%5],pe=w[(te+1)%5],ee=pe.high,se=pe.low,F=re.high^(ee<<1|se>>>31),Q=re.low^(se<<1|ee>>>31),J=0;J<5;J++){var H=O[te+5*J];H.high^=F,H.low^=Q}for(var he=1;he<25;he++){var F,Q,H=O[he],Ee=H.high,N=H.low,Y=y[he];Y<32?(F=Ee<<Y|N>>>32-Y,Q=N<<Y|Ee>>>32-Y):(F=N<<Y-32|Ee>>>64-Y,Q=Ee<<Y-32|N>>>64-Y);var ae=w[x[he]];ae.high=F,ae.low=Q}var B=w[0],de=O[0];B.high=de.high,B.low=de.low;for(var te=0;te<5;te++)for(var J=0;J<5;J++){var he=te+5*J,H=O[he],Ne=w[he],ke=w[(te+1)%5+5*J],Ie=w[(te+2)%5+5*J];H.high=Ne.high^~ke.high&Ie.high,H.low=Ne.low^~ke.low&Ie.low}var H=O[0],We=S[V];H.high^=We.high,H.low^=We.low}},_doFinalize:function(){var k=this._data,T=k.words;this._nDataBytes*8;var O=k.sigBytes*8,R=this.blockSize*32;T[O>>>5]|=1<<24-O%32,T[(r.ceil((O+1)/R)*R>>>5)-1]|=128,k.sigBytes=T.length*4,this._process();for(var I=this._state,z=this.cfg.outputLength/8,L=z/8,H=[],V=0;V<L;V++){var te=I[V],F=te.high,Q=te.low;F=(F<<8|F>>>24)&16711935|(F<<24|F>>>8)&4278255360,Q=(Q<<8|Q>>>24)&16711935|(Q<<24|Q>>>8)&4278255360,H.push(Q),H.push(F)}return new l.init(H,z)},clone:function(){for(var k=d.clone.call(this),T=k._state=this._state.slice(0),O=0;O<25;O++)T[O]=T[O].clone();return k}});o.SHA3=d._createHelper(E),o.HmacSHA3=d._createHmacHelper(E)}(Math),n.SHA3})}(hT)),hT.exports}var pT={exports:{}},xme=pT.exports,tq;function bme(){return tq||(tq=1,function(e,t){(function(n,r){e.exports=r(Xn())})(xme,function(n){/** @preserve
|
|
4823
4823
|
(c) 2012 by CΓ©dric Mesnil. All rights reserved.
|
|
4824
4824
|
|
|
4825
4825
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|